{"version":3,"file":"fetch-catalog-integration.cjs","names":["z","action"],"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,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,EAC5H,CAAC;AACD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO,EAC9D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpN,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAAS,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC5E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}