{"version":3,"file":"fetch-catalog-integration.mjs","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { snowflake } from \"../app\";\n\nexport const SnowflakeFetchCatalogIntegrationInput = z.object({\n  name: z.string().describe(\"The name (identifier) of the catalog integration to fetch details for. This is case-sensitive.\"),\n});\nconst SnowflakeFetchCatalogIntegration_CatalogSchema = z.object({\n  catalog_source: z.string().describe(\"The catalog source type. Common values include 'GLUE' (AWS Glue), 'POLARIS' (Snowflake Open Catalog), or 'ICEBERG_REST' (Apache Iceberg REST catalog).\").nullable().optional(),\n}).passthrough();\nexport const SnowflakeFetchCatalogIntegrationOutput = z.object({\n  name: z.string().describe(\"The name (identifier) of the catalog integration.\").nullable().optional(),\n  type: z.string().describe(\"The type classification of the integration object.\").nullable().optional(),\n  catalog: SnowflakeFetchCatalogIntegration_CatalogSchema.nullable().optional(),\n  comment: z.string().describe(\"User-provided comment or description for the catalog integration.\").nullable().optional(),\n  enabled: z.boolean().describe(\"Whether the catalog integration is currently enabled (TRUE) or disabled (FALSE).\").nullable().optional(),\n  category: z.string().describe(\"The category classification of the catalog integration.\").nullable().optional(),\n  created_on: z.string().describe(\"ISO 8601 timestamp indicating when the catalog integration was created.\").nullable().optional(),\n  table_format: z.string().describe(\"The table format supported by this catalog integration. Typically 'ICEBERG' for Apache Iceberg tables.\").nullable().optional(),\n}).passthrough();\n\nexport const snowflakeFetchCatalogIntegration: AppAction<\n  typeof SnowflakeFetchCatalogIntegrationInput,\n  typeof SnowflakeFetchCatalogIntegrationOutput,\n  typeof snowflake.credential\n> = action(\"SNOWFLAKE_FETCH_CATALOG_INTEGRATION\", {\n  slug: \"snowflake-fetch-catalog-integration\",\n  name: \"Fetch Catalog Integration\",\n  description: \"Retrieves detailed configuration and metadata for a specific catalog integration. Catalog integrations allow Snowflake to connect to external Apache Iceberg catalogs (AWS Glue, Snowflake Open Catalog/Polaris, or Apache Iceberg REST catalogs) to query Iceberg tables managed by those external systems.\",\n  input: SnowflakeFetchCatalogIntegrationInput,\n  output: SnowflakeFetchCatalogIntegrationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO,EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,EAC5H,CAAC;AACD,MAAM,iDAAiD,EAAE,OAAO,EAC9D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpN,CAAC,CAAC,CAAC,YAAY;AAYf,MAAa,mCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApBoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,+CAA+C,SAAS,CAAC,CAAC,SAAS;EAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}