@keystrokehq/snowflake 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/cancel-statement-execution.cjs +6 -6
  4. package/dist/actions/cancel-statement-execution.cjs.map +1 -1
  5. package/dist/actions/cancel-statement-execution.d.cts +15 -3
  6. package/dist/actions/cancel-statement-execution.d.cts.map +1 -1
  7. package/dist/actions/cancel-statement-execution.d.mts +15 -3
  8. package/dist/actions/cancel-statement-execution.d.mts.map +1 -1
  9. package/dist/actions/cancel-statement-execution.mjs +6 -6
  10. package/dist/actions/cancel-statement-execution.mjs.map +1 -1
  11. package/dist/actions/check-statement-status.cjs +15 -15
  12. package/dist/actions/check-statement-status.cjs.map +1 -1
  13. package/dist/actions/check-statement-status.d.cts +41 -3
  14. package/dist/actions/check-statement-status.d.cts.map +1 -1
  15. package/dist/actions/check-statement-status.d.mts +41 -3
  16. package/dist/actions/check-statement-status.d.mts.map +1 -1
  17. package/dist/actions/check-statement-status.mjs +15 -15
  18. package/dist/actions/check-statement-status.mjs.map +1 -1
  19. package/dist/actions/drop-warehouse.cjs +1 -1
  20. package/dist/actions/drop-warehouse.cjs.map +1 -1
  21. package/dist/actions/drop-warehouse.d.cts +14 -3
  22. package/dist/actions/drop-warehouse.d.cts.map +1 -1
  23. package/dist/actions/drop-warehouse.d.mts +14 -3
  24. package/dist/actions/drop-warehouse.d.mts.map +1 -1
  25. package/dist/actions/drop-warehouse.mjs +1 -1
  26. package/dist/actions/drop-warehouse.mjs.map +1 -1
  27. package/dist/actions/execute-sql.cjs +15 -15
  28. package/dist/actions/execute-sql.cjs.map +1 -1
  29. package/dist/actions/execute-sql.d.cts +52 -3
  30. package/dist/actions/execute-sql.d.cts.map +1 -1
  31. package/dist/actions/execute-sql.d.mts +52 -3
  32. package/dist/actions/execute-sql.d.mts.map +1 -1
  33. package/dist/actions/execute-sql.mjs +15 -15
  34. package/dist/actions/execute-sql.mjs.map +1 -1
  35. package/dist/actions/fetch-catalog-integration.cjs +2 -2
  36. package/dist/actions/fetch-catalog-integration.cjs.map +1 -1
  37. package/dist/actions/fetch-catalog-integration.d.cts +18 -3
  38. package/dist/actions/fetch-catalog-integration.d.cts.map +1 -1
  39. package/dist/actions/fetch-catalog-integration.d.mts +18 -3
  40. package/dist/actions/fetch-catalog-integration.d.mts.map +1 -1
  41. package/dist/actions/fetch-catalog-integration.mjs +2 -2
  42. package/dist/actions/fetch-catalog-integration.mjs.map +1 -1
  43. package/dist/actions/get-active-scheduled-maintenances.cjs +26 -26
  44. package/dist/actions/get-active-scheduled-maintenances.cjs.map +1 -1
  45. package/dist/actions/get-active-scheduled-maintenances.d.cts +35 -3
  46. package/dist/actions/get-active-scheduled-maintenances.d.cts.map +1 -1
  47. package/dist/actions/get-active-scheduled-maintenances.d.mts +35 -3
  48. package/dist/actions/get-active-scheduled-maintenances.d.mts.map +1 -1
  49. package/dist/actions/get-active-scheduled-maintenances.mjs +26 -26
  50. package/dist/actions/get-active-scheduled-maintenances.mjs.map +1 -1
  51. package/dist/actions/get-all-scheduled-maintenances.cjs +29 -29
  52. package/dist/actions/get-all-scheduled-maintenances.cjs.map +1 -1
  53. package/dist/actions/get-all-scheduled-maintenances.d.cts +44 -3
  54. package/dist/actions/get-all-scheduled-maintenances.d.cts.map +1 -1
  55. package/dist/actions/get-all-scheduled-maintenances.d.mts +44 -3
  56. package/dist/actions/get-all-scheduled-maintenances.d.mts.map +1 -1
  57. package/dist/actions/get-all-scheduled-maintenances.mjs +29 -29
  58. package/dist/actions/get-all-scheduled-maintenances.mjs.map +1 -1
  59. package/dist/actions/get-component-status.cjs +17 -17
  60. package/dist/actions/get-component-status.cjs.map +1 -1
  61. package/dist/actions/get-component-status.d.cts +29 -3
  62. package/dist/actions/get-component-status.d.cts.map +1 -1
  63. package/dist/actions/get-component-status.d.mts +29 -3
  64. package/dist/actions/get-component-status.d.mts.map +1 -1
  65. package/dist/actions/get-component-status.mjs +17 -17
  66. package/dist/actions/get-component-status.mjs.map +1 -1
  67. package/dist/actions/get-status-rollup.cjs +10 -10
  68. package/dist/actions/get-status-rollup.cjs.map +1 -1
  69. package/dist/actions/get-status-rollup.d.cts +15 -3
  70. package/dist/actions/get-status-rollup.d.cts.map +1 -1
  71. package/dist/actions/get-status-rollup.d.mts +15 -3
  72. package/dist/actions/get-status-rollup.d.mts.map +1 -1
  73. package/dist/actions/get-status-rollup.mjs +10 -10
  74. package/dist/actions/get-status-rollup.mjs.map +1 -1
  75. package/dist/actions/get-status-summary.cjs +7 -7
  76. package/dist/actions/get-status-summary.cjs.map +1 -1
  77. package/dist/actions/get-status-summary.d.cts +75 -3
  78. package/dist/actions/get-status-summary.d.cts.map +1 -1
  79. package/dist/actions/get-status-summary.d.mts +75 -3
  80. package/dist/actions/get-status-summary.d.mts.map +1 -1
  81. package/dist/actions/get-status-summary.mjs +7 -7
  82. package/dist/actions/get-status-summary.mjs.map +1 -1
  83. package/dist/actions/get-unresolved-incidents.cjs +24 -24
  84. package/dist/actions/get-unresolved-incidents.cjs.map +1 -1
  85. package/dist/actions/get-unresolved-incidents.d.cts +32 -3
  86. package/dist/actions/get-unresolved-incidents.d.cts.map +1 -1
  87. package/dist/actions/get-unresolved-incidents.d.mts +32 -3
  88. package/dist/actions/get-unresolved-incidents.d.mts.map +1 -1
  89. package/dist/actions/get-unresolved-incidents.mjs +24 -24
  90. package/dist/actions/get-unresolved-incidents.mjs.map +1 -1
  91. package/dist/actions/get-upcoming-scheduled-maintenances.cjs +26 -26
  92. package/dist/actions/get-upcoming-scheduled-maintenances.cjs.map +1 -1
  93. package/dist/actions/get-upcoming-scheduled-maintenances.d.cts +34 -3
  94. package/dist/actions/get-upcoming-scheduled-maintenances.d.cts.map +1 -1
  95. package/dist/actions/get-upcoming-scheduled-maintenances.d.mts +34 -3
  96. package/dist/actions/get-upcoming-scheduled-maintenances.d.mts.map +1 -1
  97. package/dist/actions/get-upcoming-scheduled-maintenances.mjs +26 -26
  98. package/dist/actions/get-upcoming-scheduled-maintenances.mjs.map +1 -1
  99. package/dist/actions/show-databases.cjs +1 -1
  100. package/dist/actions/show-databases.cjs.map +1 -1
  101. package/dist/actions/show-databases.d.cts +26 -3
  102. package/dist/actions/show-databases.d.cts.map +1 -1
  103. package/dist/actions/show-databases.d.mts +26 -3
  104. package/dist/actions/show-databases.d.mts.map +1 -1
  105. package/dist/actions/show-databases.mjs +1 -1
  106. package/dist/actions/show-databases.mjs.map +1 -1
  107. package/dist/actions/show-schemas.cjs +1 -1
  108. package/dist/actions/show-schemas.cjs.map +1 -1
  109. package/dist/actions/show-schemas.d.cts +30 -3
  110. package/dist/actions/show-schemas.d.cts.map +1 -1
  111. package/dist/actions/show-schemas.d.mts +30 -3
  112. package/dist/actions/show-schemas.d.mts.map +1 -1
  113. package/dist/actions/show-schemas.mjs +1 -1
  114. package/dist/actions/show-schemas.mjs.map +1 -1
  115. package/dist/actions/show-tables.cjs +1 -1
  116. package/dist/actions/show-tables.cjs.map +1 -1
  117. package/dist/actions/show-tables.d.cts +32 -3
  118. package/dist/actions/show-tables.d.cts.map +1 -1
  119. package/dist/actions/show-tables.d.mts +32 -3
  120. package/dist/actions/show-tables.d.mts.map +1 -1
  121. package/dist/actions/show-tables.mjs +1 -1
  122. package/dist/actions/show-tables.mjs.map +1 -1
  123. package/dist/actions/validate-credential.cjs +2 -2
  124. package/dist/actions/validate-credential.cjs.map +1 -1
  125. package/dist/actions/validate-credential.d.cts +7 -3
  126. package/dist/actions/validate-credential.d.cts.map +1 -1
  127. package/dist/actions/validate-credential.d.mts +7 -3
  128. package/dist/actions/validate-credential.d.mts.map +1 -1
  129. package/dist/actions/validate-credential.mjs +2 -2
  130. package/dist/actions/validate-credential.mjs.map +1 -1
  131. package/package.json +2 -2
@@ -12,28 +12,28 @@ const SnowflakeExecuteSqlInput = zod.z.object({
12
12
  schema_name: zod.z.string().describe("Schema name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.").optional()
13
13
  });
14
14
  const SnowflakeExecuteSql_RowTypeMetadataSchema = zod.z.object({
15
- name: zod.z.string().describe("Column name"),
16
- type: zod.z.string().describe("Data type of the column"),
15
+ name: zod.z.string().describe("Column name").nullable(),
16
+ type: zod.z.string().describe("Data type of the column").nullable(),
17
17
  scale: zod.z.number().int().describe("Scale for numeric types").nullable().optional(),
18
- table: zod.z.string().describe("Table name"),
18
+ table: zod.z.string().describe("Table name").nullable(),
19
19
  length: zod.z.number().int().describe("Length for text types").nullable().optional(),
20
- schema: zod.z.string().describe("Schema name"),
21
- database: zod.z.string().describe("Database name"),
22
- nullable: zod.z.boolean().describe("Whether the column is nullable"),
20
+ schema: zod.z.string().describe("Schema name").nullable(),
21
+ database: zod.z.string().describe("Database name").nullable(),
22
+ nullable: zod.z.boolean().describe("Whether the column is nullable").nullable(),
23
23
  collation: zod.z.string().describe("Collation for text types").nullable().optional(),
24
24
  precision: zod.z.number().int().describe("Precision for numeric types").nullable().optional(),
25
25
  byteLength: zod.z.number().int().describe("Byte length for text types").nullable().optional()
26
- });
26
+ }).passthrough();
27
27
  const SnowflakeExecuteSql_PartitionInfoSchema = zod.z.object({
28
- rowCount: zod.z.number().int().describe("Number of rows in this partition"),
29
- uncompressedSize: zod.z.number().int().describe("Uncompressed size in bytes")
30
- });
28
+ rowCount: zod.z.number().int().describe("Number of rows in this partition").nullable(),
29
+ uncompressedSize: zod.z.number().int().describe("Uncompressed size in bytes").nullable()
30
+ }).passthrough();
31
31
  const SnowflakeExecuteSql_ResultSetMetaDataSchema = zod.z.object({
32
- format: zod.z.string().describe("Format of the result data (e.g., 'jsonv2')"),
33
- numRows: zod.z.number().int().describe("Total number of rows in the result set"),
32
+ format: zod.z.string().describe("Format of the result data (e.g., 'jsonv2')").nullable(),
33
+ numRows: zod.z.number().int().describe("Total number of rows in the result set").nullable(),
34
34
  rowType: zod.z.array(SnowflakeExecuteSql_RowTypeMetadataSchema).describe("Metadata for each column in the result set"),
35
35
  partitionInfo: zod.z.array(SnowflakeExecuteSql_PartitionInfoSchema).describe("Information about data partitions")
36
- });
36
+ }).passthrough();
37
37
  const SnowflakeExecuteSqlOutput = zod.z.object({
38
38
  code: zod.z.string().describe("Status code from Snowflake (e.g., '090001' for success)").nullable().optional(),
39
39
  data: zod.z.array(zod.z.array(zod.z.union([
@@ -41,7 +41,7 @@ const SnowflakeExecuteSqlOutput = zod.z.object({
41
41
  zod.z.number().int(),
42
42
  zod.z.number(),
43
43
  zod.z.boolean()
44
- ]).nullable())).describe("The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.").optional(),
44
+ ]).nullable())).describe("The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.").nullable().optional(),
45
45
  message: zod.z.string().describe("Execution status message").nullable().optional(),
46
46
  sqlState: zod.z.string().describe("SQL state code (e.g., '00000' for success)").nullable().optional(),
47
47
  createdOn: zod.z.number().int().describe("Timestamp in milliseconds since epoch when the statement was created").nullable().optional(),
@@ -50,7 +50,7 @@ const SnowflakeExecuteSqlOutput = zod.z.object({
50
50
  resultSetMetaData: SnowflakeExecuteSql_ResultSetMetaDataSchema.nullable().optional(),
51
51
  statementStatusUrl: zod.z.string().describe("URL to check the execution status").nullable().optional(),
52
52
  composio_execution_message: zod.z.string().describe("Additional execution information from Composio").nullable().optional()
53
- });
53
+ }).passthrough();
54
54
  const snowflakeExecuteSql = require_action.action("SNOWFLAKE_EXECUTE_SQL", {
55
55
  slug: "snowflake-execute-sql",
56
56
  name: "Execute SQL",
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeExecuteSqlInput: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_ROLE setting.\").optional(),\n timeout: z.number().int().describe(\"Execution timeout in seconds. Set to 0 for maximum timeout (604800 seconds). If not specified, uses the default timeout.\").optional(),\n bindings: z.record(z.string(), z.unknown()).describe(\"Values of bind variables in the SQL statement. Use this for parameterized queries to prevent SQL injection.\").optional(),\n database: z.string().describe(\"Database name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n statement: z.string().describe(\"SQL statement(s) to execute. Supports SELECT queries, DDL (CREATE, ALTER, DROP), and DML (INSERT, UPDATE, DELETE). Multiple statements can be separated by semicolons; they will be executed in sequence automatically. When querying INFORMATION_SCHEMA, always filter on both `table_schema` and `table_catalog` and wrap mixed AND/OR conditions in parentheses. For multi-statement batches, test critical sections in isolation first — a single failing statement obscures root cause.\"),\n warehouse: z.string().describe(\"Warehouse name to use for query execution (case-sensitive). Required for queries that need compute resources. If not specified, uses the user's DEFAULT_WAREHOUSE setting. Suspended or undersized warehouses cause high latency or timeouts; verify the warehouse is active and appropriately sized before execution.\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Session parameters to set for the statement execution. These are Snowflake session-level parameters.\").optional(),\n schema_name: z.string().describe(\"Schema name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n});\nconst SnowflakeExecuteSql_RowTypeMetadataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Column name\"),\n type: z.string().describe(\"Data type of the column\"),\n scale: z.number().int().describe(\"Scale for numeric types\").nullable().optional(),\n table: z.string().describe(\"Table name\"),\n length: z.number().int().describe(\"Length for text types\").nullable().optional(),\n schema: z.string().describe(\"Schema name\"),\n database: z.string().describe(\"Database name\"),\n nullable: z.boolean().describe(\"Whether the column is nullable\"),\n collation: z.string().describe(\"Collation for text types\").nullable().optional(),\n precision: z.number().int().describe(\"Precision for numeric types\").nullable().optional(),\n byteLength: z.number().int().describe(\"Byte length for text types\").nullable().optional(),\n});\nconst SnowflakeExecuteSql_PartitionInfoSchema: z.ZodTypeAny = z.object({\n rowCount: z.number().int().describe(\"Number of rows in this partition\"),\n uncompressedSize: z.number().int().describe(\"Uncompressed size in bytes\"),\n});\nconst SnowflakeExecuteSql_ResultSetMetaDataSchema: z.ZodTypeAny = z.object({\n format: z.string().describe(\"Format of the result data (e.g., 'jsonv2')\"),\n numRows: z.number().int().describe(\"Total number of rows in the result set\"),\n rowType: z.array(SnowflakeExecuteSql_RowTypeMetadataSchema).describe(\"Metadata for each column in the result set\"),\n partitionInfo: z.array(SnowflakeExecuteSql_PartitionInfoSchema).describe(\"Information about data partitions\"),\n});\nexport const SnowflakeExecuteSqlOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Status code from Snowflake (e.g., '090001' for success)\").nullable().optional(),\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable())).describe(\"The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.\").optional(),\n message: z.string().describe(\"Execution status message\").nullable().optional(),\n sqlState: z.string().describe(\"SQL state code (e.g., '00000' for success)\").nullable().optional(),\n createdOn: z.number().int().describe(\"Timestamp in milliseconds since epoch when the statement was created\").nullable().optional(),\n statementHandle: z.string().describe(\"Unique identifier for the executed statement (single statement only)\").nullable().optional(),\n statementHandles: z.array(z.string()).describe(\"Array of statement handles for multi-statement execution. Use these handles with CHECK_STATEMENT_STATUS to retrieve results for each statement.\").nullable().optional(),\n resultSetMetaData: SnowflakeExecuteSql_ResultSetMetaDataSchema.nullable().optional(),\n statementStatusUrl: z.string().describe(\"URL to check the execution status\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Additional execution information from Composio\").nullable().optional(),\n});\n\nexport const snowflakeExecuteSql = action(\"SNOWFLAKE_EXECUTE_SQL\", {\n slug: \"snowflake-execute-sql\",\n name: \"Execute SQL\",\n description: \"Execute SQL statements in Snowflake and retrieve results. Supports SELECT queries for data retrieval, DDL statements (CREATE, ALTER, DROP) for schema management, and DML statements (INSERT, UPDATE, DELETE) for data modification. Returns comprehensive result metadata including column types, row counts, and execution status. Unquoted SQL identifiers are auto-uppercased by Snowflake — use matching case in `database`, `schema_name`, `warehouse`, and `role` parameters to avoid 'object not found' errors. Always apply explicit time-range filters and a LIMIT clause to unbounded SELECT queries to prevent large, slow result sets.\",\n input: SnowflakeExecuteSqlInput,\n output: SnowflakeExecuteSqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACxK,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC7K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAC5J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8dAA8d;CAC7f,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wTAAwT,CAAC,CAAC,SAAS;CAClW,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AAC/J,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAA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AC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"execute-sql.cjs","names":["z","action"],"sources":["../../src/actions/execute-sql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeExecuteSqlInput = z.object({\n role: z.string().describe(\"Role name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_ROLE setting.\").optional(),\n timeout: z.number().int().describe(\"Execution timeout in seconds. Set to 0 for maximum timeout (604800 seconds). If not specified, uses the default timeout.\").optional(),\n bindings: z.record(z.string(), z.unknown()).describe(\"Values of bind variables in the SQL statement. Use this for parameterized queries to prevent SQL injection.\").optional(),\n database: z.string().describe(\"Database name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n statement: z.string().describe(\"SQL statement(s) to execute. Supports SELECT queries, DDL (CREATE, ALTER, DROP), and DML (INSERT, UPDATE, DELETE). Multiple statements can be separated by semicolons; they will be executed in sequence automatically. When querying INFORMATION_SCHEMA, always filter on both `table_schema` and `table_catalog` and wrap mixed AND/OR conditions in parentheses. For multi-statement batches, test critical sections in isolation first — a single failing statement obscures root cause.\"),\n warehouse: z.string().describe(\"Warehouse name to use for query execution (case-sensitive). Required for queries that need compute resources. If not specified, uses the user's DEFAULT_WAREHOUSE setting. Suspended or undersized warehouses cause high latency or timeouts; verify the warehouse is active and appropriately sized before execution.\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Session parameters to set for the statement execution. These are Snowflake session-level parameters.\").optional(),\n schema_name: z.string().describe(\"Schema name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n});\nconst SnowflakeExecuteSql_RowTypeMetadataSchema = z.object({\n name: z.string().describe(\"Column name\").nullable(),\n type: z.string().describe(\"Data type of the column\").nullable(),\n scale: z.number().int().describe(\"Scale for numeric types\").nullable().optional(),\n table: z.string().describe(\"Table name\").nullable(),\n length: z.number().int().describe(\"Length for text types\").nullable().optional(),\n schema: z.string().describe(\"Schema name\").nullable(),\n database: z.string().describe(\"Database name\").nullable(),\n nullable: z.boolean().describe(\"Whether the column is nullable\").nullable(),\n collation: z.string().describe(\"Collation for text types\").nullable().optional(),\n precision: z.number().int().describe(\"Precision for numeric types\").nullable().optional(),\n byteLength: z.number().int().describe(\"Byte length for text types\").nullable().optional(),\n}).passthrough();\nconst SnowflakeExecuteSql_PartitionInfoSchema = z.object({\n rowCount: z.number().int().describe(\"Number of rows in this partition\").nullable(),\n uncompressedSize: z.number().int().describe(\"Uncompressed size in bytes\").nullable(),\n}).passthrough();\nconst SnowflakeExecuteSql_ResultSetMetaDataSchema = z.object({\n format: z.string().describe(\"Format of the result data (e.g., 'jsonv2')\").nullable(),\n numRows: z.number().int().describe(\"Total number of rows in the result set\").nullable(),\n rowType: z.array(SnowflakeExecuteSql_RowTypeMetadataSchema).describe(\"Metadata for each column in the result set\"),\n partitionInfo: z.array(SnowflakeExecuteSql_PartitionInfoSchema).describe(\"Information about data partitions\"),\n}).passthrough();\nexport const SnowflakeExecuteSqlOutput = z.object({\n code: z.string().describe(\"Status code from Snowflake (e.g., '090001' for success)\").nullable().optional(),\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable())).describe(\"The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.\").nullable().optional(),\n message: z.string().describe(\"Execution status message\").nullable().optional(),\n sqlState: z.string().describe(\"SQL state code (e.g., '00000' for success)\").nullable().optional(),\n createdOn: z.number().int().describe(\"Timestamp in milliseconds since epoch when the statement was created\").nullable().optional(),\n statementHandle: z.string().describe(\"Unique identifier for the executed statement (single statement only)\").nullable().optional(),\n statementHandles: z.array(z.string()).describe(\"Array of statement handles for multi-statement execution. Use these handles with CHECK_STATEMENT_STATUS to retrieve results for each statement.\").nullable().optional(),\n resultSetMetaData: SnowflakeExecuteSql_ResultSetMetaDataSchema.nullable().optional(),\n statementStatusUrl: z.string().describe(\"URL to check the execution status\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Additional execution information from Composio\").nullable().optional(),\n}).passthrough();\n\nexport const snowflakeExecuteSql = action(\"SNOWFLAKE_EXECUTE_SQL\", {\n slug: \"snowflake-execute-sql\",\n name: \"Execute SQL\",\n description: \"Execute SQL statements in Snowflake and retrieve results. Supports SELECT queries for data retrieval, DDL statements (CREATE, ALTER, DROP) for schema management, and DML statements (INSERT, UPDATE, DELETE) for data modification. Returns comprehensive result metadata including column types, row counts, and execution status. Unquoted SQL identifiers are auto-uppercased by Snowflake — use matching case in `database`, `schema_name`, `warehouse`, and `role` parameters to avoid 'object not found' errors. Always apply explicit time-range filters and a LIMIT clause to unbounded SELECT queries to prevent large, slow result sets.\",\n input: SnowflakeExecuteSqlInput,\n output: SnowflakeExecuteSqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACxK,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC7K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAC5J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8dAA8d;CAC7f,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wTAAwT,CAAC,CAAC,SAAS;CAClW,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,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C,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtN,mBAAmB,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACnF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,58 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/execute-sql.d.ts
4
- declare const SnowflakeExecuteSqlInput: z.ZodTypeAny;
5
- declare const SnowflakeExecuteSqlOutput: z.ZodTypeAny;
6
- declare const snowflakeExecuteSql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SnowflakeExecuteSqlInput: z.ZodObject<{
5
+ role: z.ZodOptional<z.ZodString>;
6
+ timeout: z.ZodOptional<z.ZodNumber>;
7
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ database: z.ZodOptional<z.ZodString>;
9
+ statement: z.ZodString;
10
+ warehouse: z.ZodOptional<z.ZodString>;
11
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ schema_name: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const SnowflakeExecuteSqlOutput: z.ZodObject<{
15
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>>>;
17
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ sqlState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ createdOn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ statementHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ statementHandles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
22
+ resultSetMetaData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ format: z.ZodNullable<z.ZodString>;
24
+ numRows: z.ZodNullable<z.ZodNumber>;
25
+ rowType: z.ZodArray<z.ZodObject<{
26
+ name: z.ZodNullable<z.ZodString>;
27
+ type: z.ZodNullable<z.ZodString>;
28
+ scale: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ table: z.ZodNullable<z.ZodString>;
30
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ schema: z.ZodNullable<z.ZodString>;
32
+ database: z.ZodNullable<z.ZodString>;
33
+ nullable: z.ZodNullable<z.ZodBoolean>;
34
+ collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ precision: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ byteLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ }, z.core.$loose>>;
38
+ partitionInfo: z.ZodArray<z.ZodObject<{
39
+ rowCount: z.ZodNullable<z.ZodNumber>;
40
+ uncompressedSize: z.ZodNullable<z.ZodNumber>;
41
+ }, z.core.$loose>>;
42
+ }, z.core.$loose>>>;
43
+ statementStatusUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ }, z.core.$loose>;
46
+ declare const snowflakeExecuteSql: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ statement: string;
48
+ role?: string | undefined;
49
+ timeout?: number | undefined;
50
+ bindings?: Record<string, unknown> | undefined;
51
+ database?: string | undefined;
52
+ warehouse?: string | undefined;
53
+ parameters?: Record<string, unknown> | undefined;
54
+ schema_name?: string | undefined;
55
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
56
  //#endregion
8
57
  export { snowflakeExecuteSql };
9
58
  //# sourceMappingURL=execute-sql.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql.d.cts","names":[],"sources":["../../src/actions/execute-sql.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cAwBW,yBAAA,EAA2B,CAAA,CAAE,UAWxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"execute-sql.d.cts","names":[],"sources":["../../src/actions/execute-sql.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAiCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAazB,mBAAA,gCAAmB,wBAAA;;;;aAM9B,MAAA;;;eAAA,MAAA"}
@@ -1,9 +1,58 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/execute-sql.d.ts
4
- declare const SnowflakeExecuteSqlInput: z.ZodTypeAny;
5
- declare const SnowflakeExecuteSqlOutput: z.ZodTypeAny;
6
- declare const snowflakeExecuteSql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SnowflakeExecuteSqlInput: z.ZodObject<{
5
+ role: z.ZodOptional<z.ZodString>;
6
+ timeout: z.ZodOptional<z.ZodNumber>;
7
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ database: z.ZodOptional<z.ZodString>;
9
+ statement: z.ZodString;
10
+ warehouse: z.ZodOptional<z.ZodString>;
11
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ schema_name: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const SnowflakeExecuteSqlOutput: z.ZodObject<{
15
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>>>;
17
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ sqlState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ createdOn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ statementHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ statementHandles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
22
+ resultSetMetaData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ format: z.ZodNullable<z.ZodString>;
24
+ numRows: z.ZodNullable<z.ZodNumber>;
25
+ rowType: z.ZodArray<z.ZodObject<{
26
+ name: z.ZodNullable<z.ZodString>;
27
+ type: z.ZodNullable<z.ZodString>;
28
+ scale: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ table: z.ZodNullable<z.ZodString>;
30
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ schema: z.ZodNullable<z.ZodString>;
32
+ database: z.ZodNullable<z.ZodString>;
33
+ nullable: z.ZodNullable<z.ZodBoolean>;
34
+ collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ precision: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ byteLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ }, z.core.$loose>>;
38
+ partitionInfo: z.ZodArray<z.ZodObject<{
39
+ rowCount: z.ZodNullable<z.ZodNumber>;
40
+ uncompressedSize: z.ZodNullable<z.ZodNumber>;
41
+ }, z.core.$loose>>;
42
+ }, z.core.$loose>>>;
43
+ statementStatusUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ }, z.core.$loose>;
46
+ declare const snowflakeExecuteSql: import("@keystrokehq/action").WorkflowActionDefinition<{
47
+ statement: string;
48
+ role?: string | undefined;
49
+ timeout?: number | undefined;
50
+ bindings?: Record<string, unknown> | undefined;
51
+ database?: string | undefined;
52
+ warehouse?: string | undefined;
53
+ parameters?: Record<string, unknown> | undefined;
54
+ schema_name?: string | undefined;
55
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
56
  //#endregion
8
57
  export { snowflakeExecuteSql };
9
58
  //# sourceMappingURL=execute-sql.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql.d.mts","names":[],"sources":["../../src/actions/execute-sql.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cAwBW,yBAAA,EAA2B,CAAA,CAAE,UAWxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"execute-sql.d.mts","names":[],"sources":["../../src/actions/execute-sql.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAiCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAazB,mBAAA,gCAAmB,wBAAA;;;;aAM9B,MAAA;;;eAAA,MAAA"}
@@ -12,28 +12,28 @@ const SnowflakeExecuteSqlInput = z.object({
12
12
  schema_name: z.string().describe("Schema name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.").optional()
13
13
  });
14
14
  const SnowflakeExecuteSql_RowTypeMetadataSchema = z.object({
15
- name: z.string().describe("Column name"),
16
- type: z.string().describe("Data type of the column"),
15
+ name: z.string().describe("Column name").nullable(),
16
+ type: z.string().describe("Data type of the column").nullable(),
17
17
  scale: z.number().int().describe("Scale for numeric types").nullable().optional(),
18
- table: z.string().describe("Table name"),
18
+ table: z.string().describe("Table name").nullable(),
19
19
  length: z.number().int().describe("Length for text types").nullable().optional(),
20
- schema: z.string().describe("Schema name"),
21
- database: z.string().describe("Database name"),
22
- nullable: z.boolean().describe("Whether the column is nullable"),
20
+ schema: z.string().describe("Schema name").nullable(),
21
+ database: z.string().describe("Database name").nullable(),
22
+ nullable: z.boolean().describe("Whether the column is nullable").nullable(),
23
23
  collation: z.string().describe("Collation for text types").nullable().optional(),
24
24
  precision: z.number().int().describe("Precision for numeric types").nullable().optional(),
25
25
  byteLength: z.number().int().describe("Byte length for text types").nullable().optional()
26
- });
26
+ }).passthrough();
27
27
  const SnowflakeExecuteSql_PartitionInfoSchema = z.object({
28
- rowCount: z.number().int().describe("Number of rows in this partition"),
29
- uncompressedSize: z.number().int().describe("Uncompressed size in bytes")
30
- });
28
+ rowCount: z.number().int().describe("Number of rows in this partition").nullable(),
29
+ uncompressedSize: z.number().int().describe("Uncompressed size in bytes").nullable()
30
+ }).passthrough();
31
31
  const SnowflakeExecuteSql_ResultSetMetaDataSchema = z.object({
32
- format: z.string().describe("Format of the result data (e.g., 'jsonv2')"),
33
- numRows: z.number().int().describe("Total number of rows in the result set"),
32
+ format: z.string().describe("Format of the result data (e.g., 'jsonv2')").nullable(),
33
+ numRows: z.number().int().describe("Total number of rows in the result set").nullable(),
34
34
  rowType: z.array(SnowflakeExecuteSql_RowTypeMetadataSchema).describe("Metadata for each column in the result set"),
35
35
  partitionInfo: z.array(SnowflakeExecuteSql_PartitionInfoSchema).describe("Information about data partitions")
36
- });
36
+ }).passthrough();
37
37
  const snowflakeExecuteSql = action("SNOWFLAKE_EXECUTE_SQL", {
38
38
  slug: "snowflake-execute-sql",
39
39
  name: "Execute SQL",
@@ -46,7 +46,7 @@ const snowflakeExecuteSql = action("SNOWFLAKE_EXECUTE_SQL", {
46
46
  z.number().int(),
47
47
  z.number(),
48
48
  z.boolean()
49
- ]).nullable())).describe("The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.").optional(),
49
+ ]).nullable())).describe("The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.").nullable().optional(),
50
50
  message: z.string().describe("Execution status message").nullable().optional(),
51
51
  sqlState: z.string().describe("SQL state code (e.g., '00000' for success)").nullable().optional(),
52
52
  createdOn: z.number().int().describe("Timestamp in milliseconds since epoch when the statement was created").nullable().optional(),
@@ -55,7 +55,7 @@ const snowflakeExecuteSql = action("SNOWFLAKE_EXECUTE_SQL", {
55
55
  resultSetMetaData: SnowflakeExecuteSql_ResultSetMetaDataSchema.nullable().optional(),
56
56
  statementStatusUrl: z.string().describe("URL to check the execution status").nullable().optional(),
57
57
  composio_execution_message: z.string().describe("Additional execution information from Composio").nullable().optional()
58
- })
58
+ }).passthrough()
59
59
  });
60
60
  //#endregion
61
61
  export { snowflakeExecuteSql };
@@ -1 +1 @@
1
- {"version":3,"file":"execute-sql.mjs","names":[],"sources":["../../src/actions/execute-sql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeExecuteSqlInput: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_ROLE setting.\").optional(),\n timeout: z.number().int().describe(\"Execution timeout in seconds. Set to 0 for maximum timeout (604800 seconds). If not specified, uses the default timeout.\").optional(),\n bindings: z.record(z.string(), z.unknown()).describe(\"Values of bind variables in the SQL statement. Use this for parameterized queries to prevent SQL injection.\").optional(),\n database: z.string().describe(\"Database name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n statement: z.string().describe(\"SQL statement(s) to execute. Supports SELECT queries, DDL (CREATE, ALTER, DROP), and DML (INSERT, UPDATE, DELETE). Multiple statements can be separated by semicolons; they will be executed in sequence automatically. When querying INFORMATION_SCHEMA, always filter on both `table_schema` and `table_catalog` and wrap mixed AND/OR conditions in parentheses. For multi-statement batches, test critical sections in isolation first — a single failing statement obscures root cause.\"),\n warehouse: z.string().describe(\"Warehouse name to use for query execution (case-sensitive). Required for queries that need compute resources. If not specified, uses the user's DEFAULT_WAREHOUSE setting. Suspended or undersized warehouses cause high latency or timeouts; verify the warehouse is active and appropriately sized before execution.\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Session parameters to set for the statement execution. These are Snowflake session-level parameters.\").optional(),\n schema_name: z.string().describe(\"Schema name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n});\nconst SnowflakeExecuteSql_RowTypeMetadataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Column name\"),\n type: z.string().describe(\"Data type of the column\"),\n scale: z.number().int().describe(\"Scale for numeric types\").nullable().optional(),\n table: z.string().describe(\"Table name\"),\n length: z.number().int().describe(\"Length for text types\").nullable().optional(),\n schema: z.string().describe(\"Schema name\"),\n database: z.string().describe(\"Database name\"),\n nullable: z.boolean().describe(\"Whether the column is nullable\"),\n collation: z.string().describe(\"Collation for text types\").nullable().optional(),\n precision: z.number().int().describe(\"Precision for numeric types\").nullable().optional(),\n byteLength: z.number().int().describe(\"Byte length for text types\").nullable().optional(),\n});\nconst SnowflakeExecuteSql_PartitionInfoSchema: z.ZodTypeAny = z.object({\n rowCount: z.number().int().describe(\"Number of rows in this partition\"),\n uncompressedSize: z.number().int().describe(\"Uncompressed size in bytes\"),\n});\nconst SnowflakeExecuteSql_ResultSetMetaDataSchema: z.ZodTypeAny = z.object({\n format: z.string().describe(\"Format of the result data (e.g., 'jsonv2')\"),\n numRows: z.number().int().describe(\"Total number of rows in the result set\"),\n rowType: z.array(SnowflakeExecuteSql_RowTypeMetadataSchema).describe(\"Metadata for each column in the result set\"),\n partitionInfo: z.array(SnowflakeExecuteSql_PartitionInfoSchema).describe(\"Information about data partitions\"),\n});\nexport const SnowflakeExecuteSqlOutput: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Status code from Snowflake (e.g., '090001' for success)\").nullable().optional(),\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable())).describe(\"The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.\").optional(),\n message: z.string().describe(\"Execution status message\").nullable().optional(),\n sqlState: z.string().describe(\"SQL state code (e.g., '00000' for success)\").nullable().optional(),\n createdOn: z.number().int().describe(\"Timestamp in milliseconds since epoch when the statement was created\").nullable().optional(),\n statementHandle: z.string().describe(\"Unique identifier for the executed statement (single statement only)\").nullable().optional(),\n statementHandles: z.array(z.string()).describe(\"Array of statement handles for multi-statement execution. Use these handles with CHECK_STATEMENT_STATUS to retrieve results for each statement.\").nullable().optional(),\n resultSetMetaData: SnowflakeExecuteSql_ResultSetMetaDataSchema.nullable().optional(),\n statementStatusUrl: z.string().describe(\"URL to check the execution status\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Additional execution information from Composio\").nullable().optional(),\n});\n\nexport const snowflakeExecuteSql = action(\"SNOWFLAKE_EXECUTE_SQL\", {\n slug: \"snowflake-execute-sql\",\n name: \"Execute SQL\",\n description: \"Execute SQL statements in Snowflake and retrieve results. Supports SELECT queries for data retrieval, DDL statements (CREATE, ALTER, DROP) for schema management, and DML statements (INSERT, UPDATE, DELETE) for data modification. Returns comprehensive result metadata including column types, row counts, and execution status. Unquoted SQL identifiers are auto-uppercased by Snowflake — use matching case in `database`, `schema_name`, `warehouse`, and `role` parameters to avoid 'object not found' errors. Always apply explicit time-range filters and a LIMIT clause to unbounded SELECT queries to prevent large, slow result sets.\",\n input: SnowflakeExecuteSqlInput,\n output: SnowflakeExecuteSqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACxK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC7K,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAC5J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8dAA8d;CAC7f,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wTAAwT,CAAC,CAAC,SAAS;CAClW,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AAC/J,CAAC;AACD,MAAM,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC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AAC,CAAC,SAAS;EACzG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EAC5P,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtN,mBAAmB,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACnF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"execute-sql.mjs","names":[],"sources":["../../src/actions/execute-sql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeExecuteSqlInput = z.object({\n role: z.string().describe(\"Role name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_ROLE setting.\").optional(),\n timeout: z.number().int().describe(\"Execution timeout in seconds. Set to 0 for maximum timeout (604800 seconds). If not specified, uses the default timeout.\").optional(),\n bindings: z.record(z.string(), z.unknown()).describe(\"Values of bind variables in the SQL statement. Use this for parameterized queries to prevent SQL injection.\").optional(),\n database: z.string().describe(\"Database name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n statement: z.string().describe(\"SQL statement(s) to execute. Supports SELECT queries, DDL (CREATE, ALTER, DROP), and DML (INSERT, UPDATE, DELETE). Multiple statements can be separated by semicolons; they will be executed in sequence automatically. When querying INFORMATION_SCHEMA, always filter on both `table_schema` and `table_catalog` and wrap mixed AND/OR conditions in parentheses. For multi-statement batches, test critical sections in isolation first — a single failing statement obscures root cause.\"),\n warehouse: z.string().describe(\"Warehouse name to use for query execution (case-sensitive). Required for queries that need compute resources. If not specified, uses the user's DEFAULT_WAREHOUSE setting. Suspended or undersized warehouses cause high latency or timeouts; verify the warehouse is active and appropriately sized before execution.\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"Session parameters to set for the statement execution. These are Snowflake session-level parameters.\").optional(),\n schema_name: z.string().describe(\"Schema name to use for execution (case-sensitive). If not specified, uses the user's DEFAULT_NAMESPACE setting.\").optional(),\n});\nconst SnowflakeExecuteSql_RowTypeMetadataSchema = z.object({\n name: z.string().describe(\"Column name\").nullable(),\n type: z.string().describe(\"Data type of the column\").nullable(),\n scale: z.number().int().describe(\"Scale for numeric types\").nullable().optional(),\n table: z.string().describe(\"Table name\").nullable(),\n length: z.number().int().describe(\"Length for text types\").nullable().optional(),\n schema: z.string().describe(\"Schema name\").nullable(),\n database: z.string().describe(\"Database name\").nullable(),\n nullable: z.boolean().describe(\"Whether the column is nullable\").nullable(),\n collation: z.string().describe(\"Collation for text types\").nullable().optional(),\n precision: z.number().int().describe(\"Precision for numeric types\").nullable().optional(),\n byteLength: z.number().int().describe(\"Byte length for text types\").nullable().optional(),\n}).passthrough();\nconst SnowflakeExecuteSql_PartitionInfoSchema = z.object({\n rowCount: z.number().int().describe(\"Number of rows in this partition\").nullable(),\n uncompressedSize: z.number().int().describe(\"Uncompressed size in bytes\").nullable(),\n}).passthrough();\nconst SnowflakeExecuteSql_ResultSetMetaDataSchema = z.object({\n format: z.string().describe(\"Format of the result data (e.g., 'jsonv2')\").nullable(),\n numRows: z.number().int().describe(\"Total number of rows in the result set\").nullable(),\n rowType: z.array(SnowflakeExecuteSql_RowTypeMetadataSchema).describe(\"Metadata for each column in the result set\"),\n partitionInfo: z.array(SnowflakeExecuteSql_PartitionInfoSchema).describe(\"Information about data partitions\"),\n}).passthrough();\nexport const SnowflakeExecuteSqlOutput = z.object({\n code: z.string().describe(\"Status code from Snowflake (e.g., '090001' for success)\").nullable().optional(),\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable())).describe(\"The result set rows (single statement only). For multi-statement execution, use statementHandles to retrieve results individually.\").nullable().optional(),\n message: z.string().describe(\"Execution status message\").nullable().optional(),\n sqlState: z.string().describe(\"SQL state code (e.g., '00000' for success)\").nullable().optional(),\n createdOn: z.number().int().describe(\"Timestamp in milliseconds since epoch when the statement was created\").nullable().optional(),\n statementHandle: z.string().describe(\"Unique identifier for the executed statement (single statement only)\").nullable().optional(),\n statementHandles: z.array(z.string()).describe(\"Array of statement handles for multi-statement execution. Use these handles with CHECK_STATEMENT_STATUS to retrieve results for each statement.\").nullable().optional(),\n resultSetMetaData: SnowflakeExecuteSql_ResultSetMetaDataSchema.nullable().optional(),\n statementStatusUrl: z.string().describe(\"URL to check the execution status\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Additional execution information from Composio\").nullable().optional(),\n}).passthrough();\n\nexport const snowflakeExecuteSql = action(\"SNOWFLAKE_EXECUTE_SQL\", {\n slug: \"snowflake-execute-sql\",\n name: \"Execute SQL\",\n description: \"Execute SQL statements in Snowflake and retrieve results. Supports SELECT queries for data retrieval, DDL statements (CREATE, ALTER, DROP) for schema management, and DML statements (INSERT, UPDATE, DELETE) for data modification. Returns comprehensive result metadata including column types, row counts, and execution status. Unquoted SQL identifiers are auto-uppercased by Snowflake — use matching case in `database`, `schema_name`, `warehouse`, and `role` parameters to avoid 'object not found' errors. Always apply explicit time-range filters and a LIMIT clause to unbounded SELECT queries to prevent large, slow result sets.\",\n input: SnowflakeExecuteSqlInput,\n output: SnowflakeExecuteSqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACxK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC7K,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAC5J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8dAA8d;CAC7f,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wTAAwT,CAAC,CAAC,SAAS;CAClW,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;AAC/J,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAClD,QAAQ,EAA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ts
4
4
  const SnowflakeFetchCatalogIntegrationInput = zod.z.object({ name: zod.z.string().describe("The name (identifier) of the catalog integration to fetch details for. This is case-sensitive.") });
5
- const SnowflakeFetchCatalogIntegration_CatalogSchema = zod.z.object({ catalog_source: zod.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() });
5
+ const SnowflakeFetchCatalogIntegration_CatalogSchema = zod.z.object({ catalog_source: zod.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() }).passthrough();
6
6
  const SnowflakeFetchCatalogIntegrationOutput = zod.z.object({
7
7
  name: zod.z.string().describe("The name (identifier) of the catalog integration.").nullable().optional(),
8
8
  type: zod.z.string().describe("The type classification of the integration object.").nullable().optional(),
@@ -12,7 +12,7 @@ const SnowflakeFetchCatalogIntegrationOutput = zod.z.object({
12
12
  category: zod.z.string().describe("The category classification of the catalog integration.").nullable().optional(),
13
13
  created_on: zod.z.string().describe("ISO 8601 timestamp indicating when the catalog integration was created.").nullable().optional(),
14
14
  table_format: zod.z.string().describe("The table format supported by this catalog integration. Typically 'ICEBERG' for Apache Iceberg tables.").nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const snowflakeFetchCatalogIntegration = require_action.action("SNOWFLAKE_FETCH_CATALOG_INTEGRATION", {
17
17
  slug: "snowflake-fetch-catalog-integration",
18
18
  name: "Fetch Catalog Integration",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-catalog-integration.cjs","names":["z","action"],"sources":["../../src/actions/fetch-catalog-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeFetchCatalogIntegrationInput: z.ZodTypeAny = 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.ZodTypeAny = 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});\nexport const SnowflakeFetchCatalogIntegrationOutput: z.ZodTypeAny = 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});\n\nexport const snowflakeFetchCatalogIntegration = 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":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,EAC5H,CAAC;AACD,MAAM,iDAA+DA,IAAAA,EAAE,OAAO,EAC5E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpN,CAAC;AACD,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,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;AAED,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-catalog-integration.cjs","names":["z","action"],"sources":["../../src/actions/fetch-catalog-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\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 = 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":";;;AAIA,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,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-catalog-integration.d.ts
4
- declare const SnowflakeFetchCatalogIntegrationInput: z.ZodTypeAny;
5
- declare const SnowflakeFetchCatalogIntegrationOutput: z.ZodTypeAny;
6
- declare const snowflakeFetchCatalogIntegration: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SnowflakeFetchCatalogIntegrationInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SnowflakeFetchCatalogIntegrationOutput: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
+ catalog_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>>>;
13
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ created_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ table_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>;
19
+ declare const snowflakeFetchCatalogIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ name: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { snowflakeFetchCatalogIntegration };
9
24
  //# sourceMappingURL=fetch-catalog-integration.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-catalog-integration.d.cts","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cAIW,sCAAA,EAAwC,CAAA,CAAE,UASrD;AAAA,cAEW,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-catalog-integration.d.cts","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAMrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAWtC,gCAAA,gCAAgC,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-catalog-integration.d.ts
4
- declare const SnowflakeFetchCatalogIntegrationInput: z.ZodTypeAny;
5
- declare const SnowflakeFetchCatalogIntegrationOutput: z.ZodTypeAny;
6
- declare const snowflakeFetchCatalogIntegration: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SnowflakeFetchCatalogIntegrationInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SnowflakeFetchCatalogIntegrationOutput: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ catalog: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11
+ catalog_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>>>;
13
+ comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ created_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ table_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>;
19
+ declare const snowflakeFetchCatalogIntegration: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ name: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { snowflakeFetchCatalogIntegration };
9
24
  //# sourceMappingURL=fetch-catalog-integration.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-catalog-integration.d.mts","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAEpD;AAAA,cAIW,sCAAA,EAAwC,CAAA,CAAE,UASrD;AAAA,cAEW,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-catalog-integration.d.mts","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAMrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAWtC,gCAAA,gCAAgC,wBAAA"}
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/fetch-catalog-integration.ts
4
4
  const SnowflakeFetchCatalogIntegrationInput = z.object({ name: z.string().describe("The name (identifier) of the catalog integration to fetch details for. This is case-sensitive.") });
5
- const SnowflakeFetchCatalogIntegration_CatalogSchema = z.object({ 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() });
5
+ const SnowflakeFetchCatalogIntegration_CatalogSchema = z.object({ 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() }).passthrough();
6
6
  const snowflakeFetchCatalogIntegration = action("SNOWFLAKE_FETCH_CATALOG_INTEGRATION", {
7
7
  slug: "snowflake-fetch-catalog-integration",
8
8
  name: "Fetch Catalog Integration",
@@ -17,7 +17,7 @@ const snowflakeFetchCatalogIntegration = action("SNOWFLAKE_FETCH_CATALOG_INTEGRA
17
17
  category: z.string().describe("The category classification of the catalog integration.").nullable().optional(),
18
18
  created_on: z.string().describe("ISO 8601 timestamp indicating when the catalog integration was created.").nullable().optional(),
19
19
  table_format: z.string().describe("The table format supported by this catalog integration. Typically 'ICEBERG' for Apache Iceberg tables.").nullable().optional()
20
- })
20
+ }).passthrough()
21
21
  });
22
22
  //#endregion
23
23
  export { snowflakeFetchCatalogIntegration };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-catalog-integration.mjs","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeFetchCatalogIntegrationInput: z.ZodTypeAny = 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.ZodTypeAny = 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});\nexport const SnowflakeFetchCatalogIntegrationOutput: z.ZodTypeAny = 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});\n\nexport const snowflakeFetchCatalogIntegration = 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":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO,EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,EAC5H,CAAC;AACD,MAAM,iDAA+D,EAAE,OAAO,EAC5E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpN,CAAC;AAYD,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBkE,EAAE,OAAO;EAC3E,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,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-catalog-integration.mjs","names":[],"sources":["../../src/actions/fetch-catalog-integration.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\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 = 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":";;;AAIA,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,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBoD,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,YAOO;AACV,CAAC"}
@@ -3,41 +3,41 @@ let zod = require("zod");
3
3
  //#region src/actions/get-active-scheduled-maintenances.ts
4
4
  const SnowflakeGetActiveScheduledMaintenancesInput = zod.z.object({});
5
5
  const SnowflakeGetActiveScheduledMaintenances_PageSchema = zod.z.object({
6
- id: zod.z.string().describe("The unique identifier of the status page."),
7
- url: zod.z.string().describe("The URL of the status page."),
8
- name: zod.z.string().describe("The name of the status page."),
9
- time_zone: zod.z.string().describe("The time zone of the status page."),
10
- updated_at: zod.z.string().describe("The last update time of the status page.")
11
- });
6
+ id: zod.z.string().describe("The unique identifier of the status page.").nullable(),
7
+ url: zod.z.string().describe("The URL of the status page.").nullable(),
8
+ name: zod.z.string().describe("The name of the status page.").nullable(),
9
+ time_zone: zod.z.string().describe("The time zone of the status page.").nullable(),
10
+ updated_at: zod.z.string().describe("The last update time of the status page.").nullable()
11
+ }).passthrough();
12
12
  const SnowflakeGetActiveScheduledMaintenances_IncidentUpdateSchema = zod.z.object({
13
- id: zod.z.string().describe("The unique identifier of the incident update."),
14
- body: zod.z.string().describe("The body of the incident update."),
15
- status: zod.z.string().describe("The status of the incident update."),
16
- created_at: zod.z.string().describe("The creation time of the incident update."),
17
- display_at: zod.z.string().describe("The display time of the incident update."),
18
- updated_at: zod.z.string().describe("The last update time of the incident update."),
19
- incident_id: zod.z.string().describe("The unique identifier of the incident.")
20
- });
13
+ id: zod.z.string().describe("The unique identifier of the incident update.").nullable(),
14
+ body: zod.z.string().describe("The body of the incident update.").nullable(),
15
+ status: zod.z.string().describe("The status of the incident update.").nullable(),
16
+ created_at: zod.z.string().describe("The creation time of the incident update.").nullable(),
17
+ display_at: zod.z.string().describe("The display time of the incident update.").nullable(),
18
+ updated_at: zod.z.string().describe("The last update time of the incident update.").nullable(),
19
+ incident_id: zod.z.string().describe("The unique identifier of the incident.").nullable()
20
+ }).passthrough();
21
21
  const SnowflakeGetActiveScheduledMaintenances_ScheduledMaintenanceSchema = zod.z.object({
22
- id: zod.z.string().describe("The unique identifier of the maintenance."),
23
- name: zod.z.string().describe("The name of the maintenance."),
24
- impact: zod.z.string().describe("The impact level of the maintenance."),
25
- status: zod.z.string().describe("The current status of the maintenance."),
26
- page_id: zod.z.string().describe("The unique identifier of the status page."),
27
- shortlink: zod.z.string().describe("A short URL link to the maintenance details."),
28
- created_at: zod.z.string().describe("The creation time of the maintenance."),
22
+ id: zod.z.string().describe("The unique identifier of the maintenance.").nullable(),
23
+ name: zod.z.string().describe("The name of the maintenance.").nullable(),
24
+ impact: zod.z.string().describe("The impact level of the maintenance.").nullable(),
25
+ status: zod.z.string().describe("The current status of the maintenance.").nullable(),
26
+ page_id: zod.z.string().describe("The unique identifier of the status page.").nullable(),
27
+ shortlink: zod.z.string().describe("A short URL link to the maintenance details.").nullable(),
28
+ created_at: zod.z.string().describe("The creation time of the maintenance.").nullable(),
29
29
  started_at: zod.z.string().describe("The actual start time of the maintenance.").nullable().optional(),
30
- updated_at: zod.z.string().describe("The last update time of the maintenance."),
30
+ updated_at: zod.z.string().describe("The last update time of the maintenance.").nullable(),
31
31
  resolved_at: zod.z.string().describe("The time when the maintenance was resolved.").nullable().optional(),
32
32
  monitoring_at: zod.z.string().describe("The time when monitoring started for the maintenance.").nullable().optional(),
33
- scheduled_for: zod.z.string().describe("The scheduled start time of the maintenance."),
34
- scheduled_until: zod.z.string().describe("The scheduled end time of the maintenance."),
33
+ scheduled_for: zod.z.string().describe("The scheduled start time of the maintenance.").nullable(),
34
+ scheduled_until: zod.z.string().describe("The scheduled end time of the maintenance.").nullable(),
35
35
  incident_updates: zod.z.array(SnowflakeGetActiveScheduledMaintenances_IncidentUpdateSchema).describe("A list of updates related to the maintenance.")
36
- });
36
+ }).passthrough();
37
37
  const SnowflakeGetActiveScheduledMaintenancesOutput = zod.z.object({
38
38
  page: SnowflakeGetActiveScheduledMaintenances_PageSchema.nullable(),
39
39
  scheduled_maintenances: zod.z.array(SnowflakeGetActiveScheduledMaintenances_ScheduledMaintenanceSchema).describe("A list of active scheduled maintenances currently in progress or being verified.")
40
- });
40
+ }).passthrough();
41
41
  const snowflakeGetActiveScheduledMaintenances = require_action.action("SNOWFLAKE_GET_ACTIVE_SCHEDULED_MAINTENANCES", {
42
42
  slug: "snowflake-get-active-scheduled-maintenances",
43
43
  name: "Get Active Scheduled Maintenances",