@keystrokehq/snowflake 0.1.0 → 0.1.2
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/cancel-statement-execution.cjs +5 -5
- package/dist/actions/cancel-statement-execution.cjs.map +1 -1
- package/dist/actions/cancel-statement-execution.d.cts +15 -3
- package/dist/actions/cancel-statement-execution.d.cts.map +1 -1
- package/dist/actions/cancel-statement-execution.d.mts +15 -3
- package/dist/actions/cancel-statement-execution.d.mts.map +1 -1
- package/dist/actions/cancel-statement-execution.mjs +5 -5
- package/dist/actions/cancel-statement-execution.mjs.map +1 -1
- package/dist/actions/check-statement-status.cjs +11 -11
- package/dist/actions/check-statement-status.cjs.map +1 -1
- package/dist/actions/check-statement-status.d.cts +41 -3
- package/dist/actions/check-statement-status.d.cts.map +1 -1
- package/dist/actions/check-statement-status.d.mts +41 -3
- package/dist/actions/check-statement-status.d.mts.map +1 -1
- package/dist/actions/check-statement-status.mjs +11 -11
- package/dist/actions/check-statement-status.mjs.map +1 -1
- package/dist/actions/drop-warehouse.cjs.map +1 -1
- package/dist/actions/drop-warehouse.d.cts +14 -3
- package/dist/actions/drop-warehouse.d.cts.map +1 -1
- package/dist/actions/drop-warehouse.d.mts +14 -3
- package/dist/actions/drop-warehouse.d.mts.map +1 -1
- package/dist/actions/drop-warehouse.mjs.map +1 -1
- package/dist/actions/execute-sql.cjs +11 -11
- package/dist/actions/execute-sql.cjs.map +1 -1
- package/dist/actions/execute-sql.d.cts +52 -3
- package/dist/actions/execute-sql.d.cts.map +1 -1
- package/dist/actions/execute-sql.d.mts +52 -3
- package/dist/actions/execute-sql.d.mts.map +1 -1
- package/dist/actions/execute-sql.mjs +11 -11
- package/dist/actions/execute-sql.mjs.map +1 -1
- package/dist/actions/fetch-catalog-integration.cjs.map +1 -1
- package/dist/actions/fetch-catalog-integration.d.cts +18 -3
- package/dist/actions/fetch-catalog-integration.d.cts.map +1 -1
- package/dist/actions/fetch-catalog-integration.d.mts +18 -3
- package/dist/actions/fetch-catalog-integration.d.mts.map +1 -1
- package/dist/actions/fetch-catalog-integration.mjs.map +1 -1
- package/dist/actions/get-active-scheduled-maintenances.cjs +22 -22
- package/dist/actions/get-active-scheduled-maintenances.cjs.map +1 -1
- package/dist/actions/get-active-scheduled-maintenances.d.cts +35 -3
- package/dist/actions/get-active-scheduled-maintenances.d.cts.map +1 -1
- package/dist/actions/get-active-scheduled-maintenances.d.mts +35 -3
- package/dist/actions/get-active-scheduled-maintenances.d.mts.map +1 -1
- package/dist/actions/get-active-scheduled-maintenances.mjs +22 -22
- package/dist/actions/get-active-scheduled-maintenances.mjs.map +1 -1
- package/dist/actions/get-all-scheduled-maintenances.cjs +24 -24
- package/dist/actions/get-all-scheduled-maintenances.cjs.map +1 -1
- package/dist/actions/get-all-scheduled-maintenances.d.cts +44 -3
- package/dist/actions/get-all-scheduled-maintenances.d.cts.map +1 -1
- package/dist/actions/get-all-scheduled-maintenances.d.mts +44 -3
- package/dist/actions/get-all-scheduled-maintenances.d.mts.map +1 -1
- package/dist/actions/get-all-scheduled-maintenances.mjs +24 -24
- package/dist/actions/get-all-scheduled-maintenances.mjs.map +1 -1
- package/dist/actions/get-component-status.cjs +14 -14
- package/dist/actions/get-component-status.cjs.map +1 -1
- package/dist/actions/get-component-status.d.cts +29 -3
- package/dist/actions/get-component-status.d.cts.map +1 -1
- package/dist/actions/get-component-status.d.mts +29 -3
- package/dist/actions/get-component-status.d.mts.map +1 -1
- package/dist/actions/get-component-status.mjs +14 -14
- package/dist/actions/get-component-status.mjs.map +1 -1
- package/dist/actions/get-status-rollup.cjs +7 -7
- package/dist/actions/get-status-rollup.cjs.map +1 -1
- package/dist/actions/get-status-rollup.d.cts +15 -3
- package/dist/actions/get-status-rollup.d.cts.map +1 -1
- package/dist/actions/get-status-rollup.d.mts +15 -3
- package/dist/actions/get-status-rollup.d.mts.map +1 -1
- package/dist/actions/get-status-rollup.mjs +7 -7
- package/dist/actions/get-status-rollup.mjs.map +1 -1
- package/dist/actions/get-status-summary.cjs.map +1 -1
- package/dist/actions/get-status-summary.d.cts +75 -3
- package/dist/actions/get-status-summary.d.cts.map +1 -1
- package/dist/actions/get-status-summary.d.mts +75 -3
- package/dist/actions/get-status-summary.d.mts.map +1 -1
- package/dist/actions/get-status-summary.mjs.map +1 -1
- package/dist/actions/get-unresolved-incidents.cjs +20 -20
- package/dist/actions/get-unresolved-incidents.cjs.map +1 -1
- package/dist/actions/get-unresolved-incidents.d.cts +32 -3
- package/dist/actions/get-unresolved-incidents.d.cts.map +1 -1
- package/dist/actions/get-unresolved-incidents.d.mts +32 -3
- package/dist/actions/get-unresolved-incidents.d.mts.map +1 -1
- package/dist/actions/get-unresolved-incidents.mjs +20 -20
- package/dist/actions/get-unresolved-incidents.mjs.map +1 -1
- package/dist/actions/get-upcoming-scheduled-maintenances.cjs +22 -22
- package/dist/actions/get-upcoming-scheduled-maintenances.cjs.map +1 -1
- package/dist/actions/get-upcoming-scheduled-maintenances.d.cts +34 -3
- package/dist/actions/get-upcoming-scheduled-maintenances.d.cts.map +1 -1
- package/dist/actions/get-upcoming-scheduled-maintenances.d.mts +34 -3
- package/dist/actions/get-upcoming-scheduled-maintenances.d.mts.map +1 -1
- package/dist/actions/get-upcoming-scheduled-maintenances.mjs +22 -22
- package/dist/actions/get-upcoming-scheduled-maintenances.mjs.map +1 -1
- package/dist/actions/show-databases.cjs.map +1 -1
- package/dist/actions/show-databases.d.cts +26 -3
- package/dist/actions/show-databases.d.cts.map +1 -1
- package/dist/actions/show-databases.d.mts +26 -3
- package/dist/actions/show-databases.d.mts.map +1 -1
- package/dist/actions/show-databases.mjs.map +1 -1
- package/dist/actions/show-schemas.cjs.map +1 -1
- package/dist/actions/show-schemas.d.cts +30 -3
- package/dist/actions/show-schemas.d.cts.map +1 -1
- package/dist/actions/show-schemas.d.mts +30 -3
- package/dist/actions/show-schemas.d.mts.map +1 -1
- package/dist/actions/show-schemas.mjs.map +1 -1
- package/dist/actions/show-tables.cjs.map +1 -1
- package/dist/actions/show-tables.d.cts +32 -3
- package/dist/actions/show-tables.d.cts.map +1 -1
- package/dist/actions/show-tables.d.mts +32 -3
- package/dist/actions/show-tables.d.mts.map +1 -1
- package/dist/actions/show-tables.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +1 -1
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +7 -3
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +7 -3
- package/dist/actions/validate-credential.d.mts.map +1 -1
- package/dist/actions/validate-credential.mjs +1 -1
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["snowflake","executeSnowflakeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { snowflake } from \"./app\";\nimport { executeSnowflakeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["snowflake","executeSnowflakeTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { snowflake } from \"./app\";\nimport { executeSnowflakeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return snowflake.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSnowflakeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { snowflake } from \"./app\";\nimport { executeSnowflakeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { snowflake } from \"./app\";\nimport { executeSnowflakeTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return snowflake.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSnowflakeTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -6,11 +6,11 @@ const SnowflakeCancelStatementExecutionInput = zod.z.object({
|
|
|
6
6
|
statementHandle: zod.z.string().describe("The handle of the statement to be cancelled. This can be obtained from the response of the execute_statement action.")
|
|
7
7
|
});
|
|
8
8
|
const SnowflakeCancelStatementExecutionOutput = zod.z.object({
|
|
9
|
-
code: zod.z.string().describe("The response code from the Snowflake API."),
|
|
10
|
-
message: zod.z.string().describe("A message indicating the result of the cancellation request."),
|
|
11
|
-
sqlState: zod.z.string().describe("The SQL state of the statement after the cancellation request."),
|
|
12
|
-
statementHandle: zod.z.string().describe("The handle of the statement that was cancelled."),
|
|
13
|
-
statementStatusUrl: zod.z.string().describe("The URL to check the status of the statement.")
|
|
9
|
+
code: zod.z.string().describe("The response code from the Snowflake API.").nullable(),
|
|
10
|
+
message: zod.z.string().describe("A message indicating the result of the cancellation request.").nullable(),
|
|
11
|
+
sqlState: zod.z.string().describe("The SQL state of the statement after the cancellation request.").nullable(),
|
|
12
|
+
statementHandle: zod.z.string().describe("The handle of the statement that was cancelled.").nullable(),
|
|
13
|
+
statementStatusUrl: zod.z.string().describe("The URL to check the status of the statement.").nullable()
|
|
14
14
|
});
|
|
15
15
|
const snowflakeCancelStatementExecution = require_action.action("SNOWFLAKE_CANCEL_STATEMENT_EXECUTION", {
|
|
16
16
|
slug: "snowflake-cancel-statement-execution",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-statement-execution.cjs","names":["z","action"],"sources":["../../src/actions/cancel-statement-execution.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCancelStatementExecutionInput
|
|
1
|
+
{"version":3,"file":"cancel-statement-execution.cjs","names":["z","action"],"sources":["../../src/actions/cancel-statement-execution.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCancelStatementExecutionInput = z.object({\n request_id: z.string().describe(\"Unique ID (a UUID) of the API request. This is an optional parameter that can be used to track the request.\").optional(),\n statementHandle: z.string().describe(\"The handle of the statement to be cancelled. This can be obtained from the response of the execute_statement action.\"),\n});\nexport const SnowflakeCancelStatementExecutionOutput = z.object({\n code: z.string().describe(\"The response code from the Snowflake API.\").nullable(),\n message: z.string().describe(\"A message indicating the result of the cancellation request.\").nullable(),\n sqlState: z.string().describe(\"The SQL state of the statement after the cancellation request.\").nullable(),\n statementHandle: z.string().describe(\"The handle of the statement that was cancelled.\").nullable(),\n statementStatusUrl: z.string().describe(\"The URL to check the status of the statement.\").nullable(),\n});\n\nexport const snowflakeCancelStatementExecution = action(\"SNOWFLAKE_CANCEL_STATEMENT_EXECUTION\", {\n slug: \"snowflake-cancel-statement-execution\",\n name: \"Cancel Statement Execution\",\n description: \"Cancels the execution of a running SQL statement. Use this action to stop a long-running query.\",\n input: SnowflakeCancelStatementExecutionInput,\n output: SnowflakeCancelStatementExecutionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACxJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC7J,CAAC;AACD,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACpG,CAAC;AAED,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/cancel-statement-execution.d.ts
|
|
4
|
-
declare const SnowflakeCancelStatementExecutionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SnowflakeCancelStatementExecutionInput: z.ZodObject<{
|
|
5
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
statementHandle: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SnowflakeCancelStatementExecutionOutput: z.ZodObject<{
|
|
9
|
+
code: z.ZodNullable<z.ZodString>;
|
|
10
|
+
message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
sqlState: z.ZodNullable<z.ZodString>;
|
|
12
|
+
statementHandle: z.ZodNullable<z.ZodString>;
|
|
13
|
+
statementStatusUrl: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const snowflakeCancelStatementExecution: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
statementHandle: string;
|
|
17
|
+
request_id?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { snowflakeCancelStatementExecution };
|
|
9
21
|
//# sourceMappingURL=cancel-statement-execution.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-statement-execution.d.cts","names":[],"sources":["../../src/actions/cancel-statement-execution.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"cancel-statement-execution.d.cts","names":[],"sources":["../../src/actions/cancel-statement-execution.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAQvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/cancel-statement-execution.d.ts
|
|
4
|
-
declare const SnowflakeCancelStatementExecutionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SnowflakeCancelStatementExecutionInput: z.ZodObject<{
|
|
5
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
statementHandle: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SnowflakeCancelStatementExecutionOutput: z.ZodObject<{
|
|
9
|
+
code: z.ZodNullable<z.ZodString>;
|
|
10
|
+
message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
sqlState: z.ZodNullable<z.ZodString>;
|
|
12
|
+
statementHandle: z.ZodNullable<z.ZodString>;
|
|
13
|
+
statementStatusUrl: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const snowflakeCancelStatementExecution: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
+
statementHandle: string;
|
|
17
|
+
request_id?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { snowflakeCancelStatementExecution };
|
|
9
21
|
//# sourceMappingURL=cancel-statement-execution.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-statement-execution.d.mts","names":[],"sources":["../../src/actions/cancel-statement-execution.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"cancel-statement-execution.d.mts","names":[],"sources":["../../src/actions/cancel-statement-execution.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;cAItC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAQvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -9,11 +9,11 @@ const snowflakeCancelStatementExecution = action("SNOWFLAKE_CANCEL_STATEMENT_EXE
|
|
|
9
9
|
statementHandle: z.string().describe("The handle of the statement to be cancelled. This can be obtained from the response of the execute_statement action.")
|
|
10
10
|
}),
|
|
11
11
|
output: z.object({
|
|
12
|
-
code: z.string().describe("The response code from the Snowflake API."),
|
|
13
|
-
message: z.string().describe("A message indicating the result of the cancellation request."),
|
|
14
|
-
sqlState: z.string().describe("The SQL state of the statement after the cancellation request."),
|
|
15
|
-
statementHandle: z.string().describe("The handle of the statement that was cancelled."),
|
|
16
|
-
statementStatusUrl: z.string().describe("The URL to check the status of the statement.")
|
|
12
|
+
code: z.string().describe("The response code from the Snowflake API.").nullable(),
|
|
13
|
+
message: z.string().describe("A message indicating the result of the cancellation request.").nullable(),
|
|
14
|
+
sqlState: z.string().describe("The SQL state of the statement after the cancellation request.").nullable(),
|
|
15
|
+
statementHandle: z.string().describe("The handle of the statement that was cancelled.").nullable(),
|
|
16
|
+
statementStatusUrl: z.string().describe("The URL to check the status of the statement.").nullable()
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-statement-execution.mjs","names":[],"sources":["../../src/actions/cancel-statement-execution.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCancelStatementExecutionInput
|
|
1
|
+
{"version":3,"file":"cancel-statement-execution.mjs","names":[],"sources":["../../src/actions/cancel-statement-execution.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCancelStatementExecutionInput = z.object({\n request_id: z.string().describe(\"Unique ID (a UUID) of the API request. This is an optional parameter that can be used to track the request.\").optional(),\n statementHandle: z.string().describe(\"The handle of the statement to be cancelled. This can be obtained from the response of the execute_statement action.\"),\n});\nexport const SnowflakeCancelStatementExecutionOutput = z.object({\n code: z.string().describe(\"The response code from the Snowflake API.\").nullable(),\n message: z.string().describe(\"A message indicating the result of the cancellation request.\").nullable(),\n sqlState: z.string().describe(\"The SQL state of the statement after the cancellation request.\").nullable(),\n statementHandle: z.string().describe(\"The handle of the statement that was cancelled.\").nullable(),\n statementStatusUrl: z.string().describe(\"The URL to check the status of the statement.\").nullable(),\n});\n\nexport const snowflakeCancelStatementExecution = action(\"SNOWFLAKE_CANCEL_STATEMENT_EXECUTION\", {\n slug: \"snowflake-cancel-statement-execution\",\n name: \"Cancel Statement Execution\",\n description: \"Cancels the execution of a running SQL statement. Use this action to stop a long-running query.\",\n input: SnowflakeCancelStatementExecutionInput,\n output: SnowflakeCancelStatementExecutionOutput,\n});\n"],"mappings":";;AAgBA,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBoD,EAAE,OAAO;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EACxJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC7J,CAaS;CACP,QAbqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACtG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACzG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpG,CAOU;AACV,CAAC"}
|
|
@@ -7,25 +7,25 @@ const SnowflakeCheckStatementStatusInput = zod.z.object({
|
|
|
7
7
|
statementHandle: zod.z.string().describe("The handle of the statement to be checked.")
|
|
8
8
|
});
|
|
9
9
|
const SnowflakeCheckStatementStatus_RowTypeInfoSchema = zod.z.object({
|
|
10
|
-
name: zod.z.string().describe("Name of the column."),
|
|
11
|
-
type: zod.z.string().describe("Data type of the column (e.g., 'text', 'fixed', 'timestamp_ltz')."),
|
|
10
|
+
name: zod.z.string().describe("Name of the column.").nullable(),
|
|
11
|
+
type: zod.z.string().describe("Data type of the column (e.g., 'text', 'fixed', 'timestamp_ltz').").nullable(),
|
|
12
12
|
scale: zod.z.number().int().describe("Scale for numeric types.").nullable().optional(),
|
|
13
|
-
table: zod.z.string().describe("Table name."),
|
|
13
|
+
table: zod.z.string().describe("Table name.").nullable(),
|
|
14
14
|
length: zod.z.number().int().describe("Length for text types.").nullable().optional(),
|
|
15
|
-
schema: zod.z.string().describe("Schema name."),
|
|
16
|
-
database: zod.z.string().describe("Database name."),
|
|
17
|
-
nullable: zod.z.boolean().describe("Whether the column is nullable."),
|
|
15
|
+
schema: zod.z.string().describe("Schema name.").nullable(),
|
|
16
|
+
database: zod.z.string().describe("Database name.").nullable(),
|
|
17
|
+
nullable: zod.z.boolean().describe("Whether the column is nullable.").nullable(),
|
|
18
18
|
collation: zod.z.string().describe("Collation for text types.").nullable().optional(),
|
|
19
19
|
precision: zod.z.number().int().describe("Precision for numeric types.").nullable().optional(),
|
|
20
20
|
byteLength: zod.z.number().int().describe("Byte length for text types.").nullable().optional()
|
|
21
21
|
});
|
|
22
22
|
const SnowflakeCheckStatementStatus_PartitionInfoSchema = zod.z.object({
|
|
23
|
-
rowCount: zod.z.number().int().describe("Number of rows in this partition."),
|
|
24
|
-
uncompressedSize: zod.z.number().int().describe("Uncompressed size of the partition in bytes.")
|
|
23
|
+
rowCount: zod.z.number().int().describe("Number of rows in this partition.").nullable(),
|
|
24
|
+
uncompressedSize: zod.z.number().int().describe("Uncompressed size of the partition in bytes.").nullable()
|
|
25
25
|
});
|
|
26
26
|
const SnowflakeCheckStatementStatus_ResultSetMetadataSchema = zod.z.object({
|
|
27
|
-
format: zod.z.string().describe("Format of the result set (e.g., 'jsonv2')."),
|
|
28
|
-
numRows: zod.z.number().int().describe("Total number of rows in the result set."),
|
|
27
|
+
format: zod.z.string().describe("Format of the result set (e.g., 'jsonv2').").nullable(),
|
|
28
|
+
numRows: zod.z.number().int().describe("Total number of rows in the result set.").nullable(),
|
|
29
29
|
rowType: zod.z.array(SnowflakeCheckStatementStatus_RowTypeInfoSchema).describe("Metadata describing each column in the result set."),
|
|
30
30
|
partitionInfo: zod.z.array(SnowflakeCheckStatementStatus_PartitionInfoSchema).describe("Information about result set partitions.")
|
|
31
31
|
});
|
|
@@ -36,7 +36,7 @@ const SnowflakeCheckStatementStatusOutput = zod.z.object({
|
|
|
36
36
|
zod.z.number().int(),
|
|
37
37
|
zod.z.number(),
|
|
38
38
|
zod.z.boolean()
|
|
39
|
-
]).nullable())).describe("The result set data as a 2D array, where each inner array represents a row.").optional(),
|
|
39
|
+
]).nullable())).describe("The result set data as a 2D array, where each inner array represents a row.").nullable().optional(),
|
|
40
40
|
message: zod.z.string().describe("Human-readable message describing the statement execution status.").nullable().optional(),
|
|
41
41
|
sqlState: zod.z.string().describe("SQL state code (e.g., '00000' for success).").nullable().optional(),
|
|
42
42
|
createdOn: zod.z.number().int().describe("Unix timestamp (in milliseconds) when the statement execution started.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-statement-status.cjs","names":["z","action"],"sources":["../../src/actions/check-statement-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCheckStatementStatusInput
|
|
1
|
+
{"version":3,"file":"check-statement-status.cjs","names":["z","action"],"sources":["../../src/actions/check-statement-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCheckStatementStatusInput = z.object({\n partition: z.number().int().describe(\"The partition number to return. The size of each partition is determined by Snowflake.\").optional(),\n requestId: z.string().describe(\"Unique ID (UUID) of the API request for idempotency.\").optional(),\n statementHandle: z.string().describe(\"The handle of the statement to be checked.\"),\n});\nconst SnowflakeCheckStatementStatus_RowTypeInfoSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column (e.g., 'text', 'fixed', 'timestamp_ltz').\").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});\nconst SnowflakeCheckStatementStatus_PartitionInfoSchema = z.object({\n rowCount: z.number().int().describe(\"Number of rows in this partition.\").nullable(),\n uncompressedSize: z.number().int().describe(\"Uncompressed size of the partition in bytes.\").nullable(),\n});\nconst SnowflakeCheckStatementStatus_ResultSetMetadataSchema = z.object({\n format: z.string().describe(\"Format of the result set (e.g., 'jsonv2').\").nullable(),\n numRows: z.number().int().describe(\"Total number of rows in the result set.\").nullable(),\n rowType: z.array(SnowflakeCheckStatementStatus_RowTypeInfoSchema).describe(\"Metadata describing each column in the result set.\"),\n partitionInfo: z.array(SnowflakeCheckStatementStatus_PartitionInfoSchema).describe(\"Information about result set partitions.\"),\n});\nexport const SnowflakeCheckStatementStatusOutput = z.object({\n code: z.string().describe(\"Response code (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 data as a 2D array, where each inner array represents a row.\").nullable().optional(),\n message: z.string().describe(\"Human-readable message describing the statement execution status.\").nullable().optional(),\n sqlState: z.string().describe(\"SQL state code (e.g., '00000' for success).\").nullable().optional(),\n createdOn: z.number().int().describe(\"Unix timestamp (in milliseconds) when the statement execution started.\").nullable().optional(),\n requestId: z.string().describe(\"Unique ID (UUID) of the API request.\").nullable().optional(),\n statementHandle: z.string().describe(\"Unique identifier (UUID) for the statement being executed.\").nullable().optional(),\n resultSetMetaData: SnowflakeCheckStatementStatus_ResultSetMetadataSchema.nullable().optional(),\n statementStatusUrl: z.string().describe(\"URL path to retrieve the statement status and result set.\").nullable().optional(),\n});\n\nexport const snowflakeCheckStatementStatus = action(\"SNOWFLAKE_CHECK_STATEMENT_STATUS\", {\n slug: \"snowflake-check-statement-status\",\n name: \"Check Statement Status\",\n description: \"Retrieves the status and results of a previously submitted SQL statement using its statement handle. Use this to poll async queries submitted via SNOWFLAKE_SUBMIT_SQL_STATEMENT; call repeatedly until status is no longer pending. Use SNOWFLAKE_CANCEL_STATEMENT to abort a hanging query.\",\n input: SnowflakeCheckStatementStatusInput,\n output: SnowflakeCheckStatementStatusOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/check-statement-status.d.ts
|
|
4
|
-
declare const SnowflakeCheckStatementStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SnowflakeCheckStatementStatusInput: z.ZodObject<{
|
|
5
|
+
partition: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
statementHandle: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SnowflakeCheckStatementStatusOutput: z.ZodObject<{
|
|
10
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>>>;
|
|
12
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
sqlState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
createdOn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
statementHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
resultSetMetaData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
format: z.ZodNullable<z.ZodString>;
|
|
19
|
+
numRows: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
rowType: z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
type: z.ZodNullable<z.ZodString>;
|
|
23
|
+
scale: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
table: z.ZodNullable<z.ZodString>;
|
|
25
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
schema: z.ZodNullable<z.ZodString>;
|
|
27
|
+
database: z.ZodNullable<z.ZodString>;
|
|
28
|
+
nullable: z.ZodNullable<z.ZodBoolean>;
|
|
29
|
+
collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
precision: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
byteLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
partitionInfo: z.ZodArray<z.ZodObject<{
|
|
34
|
+
rowCount: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
uncompressedSize: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
statementStatusUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const snowflakeCheckStatementStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
|
+
statementHandle: string;
|
|
42
|
+
partition?: number | undefined;
|
|
43
|
+
requestId?: string | undefined;
|
|
44
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
45
|
//#endregion
|
|
8
46
|
export { snowflakeCheckStatementStatus };
|
|
9
47
|
//# sourceMappingURL=check-statement-status.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-statement-status.d.cts","names":[],"sources":["../../src/actions/check-statement-status.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"check-statement-status.d.cts","names":[],"sources":["../../src/actions/check-statement-status.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA4BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1,9 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/check-statement-status.d.ts
|
|
4
|
-
declare const SnowflakeCheckStatementStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SnowflakeCheckStatementStatusInput: z.ZodObject<{
|
|
5
|
+
partition: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
statementHandle: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SnowflakeCheckStatementStatusOutput: z.ZodObject<{
|
|
10
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>>>>;
|
|
12
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
sqlState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
createdOn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
statementHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
resultSetMetaData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
format: z.ZodNullable<z.ZodString>;
|
|
19
|
+
numRows: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
rowType: z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
type: z.ZodNullable<z.ZodString>;
|
|
23
|
+
scale: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
table: z.ZodNullable<z.ZodString>;
|
|
25
|
+
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
schema: z.ZodNullable<z.ZodString>;
|
|
27
|
+
database: z.ZodNullable<z.ZodString>;
|
|
28
|
+
nullable: z.ZodNullable<z.ZodBoolean>;
|
|
29
|
+
collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
precision: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
byteLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
partitionInfo: z.ZodArray<z.ZodObject<{
|
|
34
|
+
rowCount: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
uncompressedSize: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
statementStatusUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
declare const snowflakeCheckStatementStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
|
+
statementHandle: string;
|
|
42
|
+
partition?: number | undefined;
|
|
43
|
+
requestId?: string | undefined;
|
|
44
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
45
|
//#endregion
|
|
8
46
|
export { snowflakeCheckStatementStatus };
|
|
9
47
|
//# sourceMappingURL=check-statement-status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-statement-status.d.mts","names":[],"sources":["../../src/actions/check-statement-status.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"check-statement-status.d.mts","names":[],"sources":["../../src/actions/check-statement-status.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cA4BlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -7,25 +7,25 @@ const SnowflakeCheckStatementStatusInput = z.object({
|
|
|
7
7
|
statementHandle: z.string().describe("The handle of the statement to be checked.")
|
|
8
8
|
});
|
|
9
9
|
const SnowflakeCheckStatementStatus_RowTypeInfoSchema = z.object({
|
|
10
|
-
name: z.string().describe("Name of the column."),
|
|
11
|
-
type: z.string().describe("Data type of the column (e.g., 'text', 'fixed', 'timestamp_ltz')."),
|
|
10
|
+
name: z.string().describe("Name of the column.").nullable(),
|
|
11
|
+
type: z.string().describe("Data type of the column (e.g., 'text', 'fixed', 'timestamp_ltz').").nullable(),
|
|
12
12
|
scale: z.number().int().describe("Scale for numeric types.").nullable().optional(),
|
|
13
|
-
table: z.string().describe("Table name."),
|
|
13
|
+
table: z.string().describe("Table name.").nullable(),
|
|
14
14
|
length: z.number().int().describe("Length for text types.").nullable().optional(),
|
|
15
|
-
schema: z.string().describe("Schema name."),
|
|
16
|
-
database: z.string().describe("Database name."),
|
|
17
|
-
nullable: z.boolean().describe("Whether the column is nullable."),
|
|
15
|
+
schema: z.string().describe("Schema name.").nullable(),
|
|
16
|
+
database: z.string().describe("Database name.").nullable(),
|
|
17
|
+
nullable: z.boolean().describe("Whether the column is nullable.").nullable(),
|
|
18
18
|
collation: z.string().describe("Collation for text types.").nullable().optional(),
|
|
19
19
|
precision: z.number().int().describe("Precision for numeric types.").nullable().optional(),
|
|
20
20
|
byteLength: z.number().int().describe("Byte length for text types.").nullable().optional()
|
|
21
21
|
});
|
|
22
22
|
const SnowflakeCheckStatementStatus_PartitionInfoSchema = z.object({
|
|
23
|
-
rowCount: z.number().int().describe("Number of rows in this partition."),
|
|
24
|
-
uncompressedSize: z.number().int().describe("Uncompressed size of the partition in bytes.")
|
|
23
|
+
rowCount: z.number().int().describe("Number of rows in this partition.").nullable(),
|
|
24
|
+
uncompressedSize: z.number().int().describe("Uncompressed size of the partition in bytes.").nullable()
|
|
25
25
|
});
|
|
26
26
|
const SnowflakeCheckStatementStatus_ResultSetMetadataSchema = z.object({
|
|
27
|
-
format: z.string().describe("Format of the result set (e.g., 'jsonv2')."),
|
|
28
|
-
numRows: z.number().int().describe("Total number of rows in the result set."),
|
|
27
|
+
format: z.string().describe("Format of the result set (e.g., 'jsonv2').").nullable(),
|
|
28
|
+
numRows: z.number().int().describe("Total number of rows in the result set.").nullable(),
|
|
29
29
|
rowType: z.array(SnowflakeCheckStatementStatus_RowTypeInfoSchema).describe("Metadata describing each column in the result set."),
|
|
30
30
|
partitionInfo: z.array(SnowflakeCheckStatementStatus_PartitionInfoSchema).describe("Information about result set partitions.")
|
|
31
31
|
});
|
|
@@ -41,7 +41,7 @@ const snowflakeCheckStatementStatus = action("SNOWFLAKE_CHECK_STATEMENT_STATUS",
|
|
|
41
41
|
z.number().int(),
|
|
42
42
|
z.number(),
|
|
43
43
|
z.boolean()
|
|
44
|
-
]).nullable())).describe("The result set data as a 2D array, where each inner array represents a row.").optional(),
|
|
44
|
+
]).nullable())).describe("The result set data as a 2D array, where each inner array represents a row.").nullable().optional(),
|
|
45
45
|
message: z.string().describe("Human-readable message describing the statement execution status.").nullable().optional(),
|
|
46
46
|
sqlState: z.string().describe("SQL state code (e.g., '00000' for success).").nullable().optional(),
|
|
47
47
|
createdOn: z.number().int().describe("Unix timestamp (in milliseconds) when the statement execution started.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-statement-status.mjs","names":[],"sources":["../../src/actions/check-statement-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCheckStatementStatusInput
|
|
1
|
+
{"version":3,"file":"check-statement-status.mjs","names":[],"sources":["../../src/actions/check-statement-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeCheckStatementStatusInput = z.object({\n partition: z.number().int().describe(\"The partition number to return. The size of each partition is determined by Snowflake.\").optional(),\n requestId: z.string().describe(\"Unique ID (UUID) of the API request for idempotency.\").optional(),\n statementHandle: z.string().describe(\"The handle of the statement to be checked.\"),\n});\nconst SnowflakeCheckStatementStatus_RowTypeInfoSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column (e.g., 'text', 'fixed', 'timestamp_ltz').\").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});\nconst SnowflakeCheckStatementStatus_PartitionInfoSchema = z.object({\n rowCount: z.number().int().describe(\"Number of rows in this partition.\").nullable(),\n uncompressedSize: z.number().int().describe(\"Uncompressed size of the partition in bytes.\").nullable(),\n});\nconst SnowflakeCheckStatementStatus_ResultSetMetadataSchema = z.object({\n format: z.string().describe(\"Format of the result set (e.g., 'jsonv2').\").nullable(),\n numRows: z.number().int().describe(\"Total number of rows in the result set.\").nullable(),\n rowType: z.array(SnowflakeCheckStatementStatus_RowTypeInfoSchema).describe(\"Metadata describing each column in the result set.\"),\n partitionInfo: z.array(SnowflakeCheckStatementStatus_PartitionInfoSchema).describe(\"Information about result set partitions.\"),\n});\nexport const SnowflakeCheckStatementStatusOutput = z.object({\n code: z.string().describe(\"Response code (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 data as a 2D array, where each inner array represents a row.\").nullable().optional(),\n message: z.string().describe(\"Human-readable message describing the statement execution status.\").nullable().optional(),\n sqlState: z.string().describe(\"SQL state code (e.g., '00000' for success).\").nullable().optional(),\n createdOn: z.number().int().describe(\"Unix timestamp (in milliseconds) when the statement execution started.\").nullable().optional(),\n requestId: z.string().describe(\"Unique ID (UUID) of the API request.\").nullable().optional(),\n statementHandle: z.string().describe(\"Unique identifier (UUID) for the statement being executed.\").nullable().optional(),\n resultSetMetaData: SnowflakeCheckStatementStatus_ResultSetMetadataSchema.nullable().optional(),\n statementStatusUrl: z.string().describe(\"URL path to retrieve the statement status and result set.\").nullable().optional(),\n});\n\nexport const snowflakeCheckStatementStatus = action(\"SNOWFLAKE_CHECK_STATEMENT_STATUS\", {\n slug: \"snowflake-check-statement-status\",\n name: \"Check Statement Status\",\n description: \"Retrieves the status and results of a previously submitted SQL statement using its statement handle. Use this to poll async queries submitted via SNOWFLAKE_SUBMIT_SQL_STATEMENT; call repeatedly until status is no longer pending. Use SNOWFLAKE_CANCEL_STATEMENT to abort a hanging query.\",\n input: SnowflakeCheckStatementStatusInput,\n output: SnowflakeCheckStatementStatusOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-warehouse.cjs","names":["z","action"],"sources":["../../src/actions/drop-warehouse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeDropWarehouseInput
|
|
1
|
+
{"version":3,"file":"drop-warehouse.cjs","names":["z","action"],"sources":["../../src/actions/drop-warehouse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeDropWarehouseInput = z.object({\n name: z.string().describe(\"Identifier (i.e. name) for the warehouse to drop. The value is case-sensitive and must match the exact warehouse name in Snowflake.\"),\n if_exists: z.boolean().default(false).describe(\"If true, the endpoint does not throw an error if the warehouse does not exist. It returns a 200 success response without taking action. If false, the endpoint throws an error if the warehouse doesn't exist.\").optional(),\n});\nexport const SnowflakeDropWarehouseOutput = z.object({\n code: z.string().describe(\"Message code for asynchronous deletion (202 response).\").nullable().optional(),\n status: z.string().describe(\"Status message for successful synchronous deletion (200 response).\").nullable().optional(),\n message: z.string().describe(\"Message for asynchronous deletion indicating execution in progress (202 response).\").nullable().optional(),\n resultHandler: z.string().describe(\"Opaque result ID used for checking request completion status (202 response).\").nullable().optional(),\n});\n\nexport const snowflakeDropWarehouse = action(\"SNOWFLAKE_DROP_WAREHOUSE\", {\n slug: \"snowflake-drop-warehouse\",\n name: \"Drop Warehouse\",\n description: \"Drops (permanently deletes) a warehouse in Snowflake. This operation is irreversible — once a warehouse is dropped, it cannot be recovered. Use this action when you need to permanently remove a warehouse that is no longer needed. Requires OWNERSHIP privilege on the warehouse.\",\n input: SnowflakeDropWarehouseInput,\n output: SnowflakeDropWarehouseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CAC/J,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;AAC5Q,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/drop-warehouse.d.ts
|
|
4
|
-
declare const SnowflakeDropWarehouseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SnowflakeDropWarehouseInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
if_exists: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SnowflakeDropWarehouseOutput: z.ZodObject<{
|
|
9
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
resultHandler: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const snowflakeDropWarehouse: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
name: string;
|
|
16
|
+
if_exists?: boolean | undefined;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { snowflakeDropWarehouse };
|
|
9
20
|
//# sourceMappingURL=drop-warehouse.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-warehouse.d.cts","names":[],"sources":["../../src/actions/drop-warehouse.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"drop-warehouse.d.cts","names":[],"sources":["../../src/actions/drop-warehouse.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/drop-warehouse.d.ts
|
|
4
|
-
declare const SnowflakeDropWarehouseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SnowflakeDropWarehouseInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
if_exists: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SnowflakeDropWarehouseOutput: z.ZodObject<{
|
|
9
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
resultHandler: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const snowflakeDropWarehouse: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
name: string;
|
|
16
|
+
if_exists?: boolean | undefined;
|
|
17
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
18
|
//#endregion
|
|
8
19
|
export { snowflakeDropWarehouse };
|
|
9
20
|
//# sourceMappingURL=drop-warehouse.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-warehouse.d.mts","names":[],"sources":["../../src/actions/drop-warehouse.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"drop-warehouse.d.mts","names":[],"sources":["../../src/actions/drop-warehouse.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-warehouse.mjs","names":[],"sources":["../../src/actions/drop-warehouse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeDropWarehouseInput
|
|
1
|
+
{"version":3,"file":"drop-warehouse.mjs","names":[],"sources":["../../src/actions/drop-warehouse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeDropWarehouseInput = z.object({\n name: z.string().describe(\"Identifier (i.e. name) for the warehouse to drop. The value is case-sensitive and must match the exact warehouse name in Snowflake.\"),\n if_exists: z.boolean().default(false).describe(\"If true, the endpoint does not throw an error if the warehouse does not exist. It returns a 200 success response without taking action. If false, the endpoint throws an error if the warehouse doesn't exist.\").optional(),\n});\nexport const SnowflakeDropWarehouseOutput = z.object({\n code: z.string().describe(\"Message code for asynchronous deletion (202 response).\").nullable().optional(),\n status: z.string().describe(\"Status message for successful synchronous deletion (200 response).\").nullable().optional(),\n message: z.string().describe(\"Message for asynchronous deletion indicating execution in progress (202 response).\").nullable().optional(),\n resultHandler: z.string().describe(\"Opaque result ID used for checking request completion status (202 response).\").nullable().optional(),\n});\n\nexport const snowflakeDropWarehouse = action(\"SNOWFLAKE_DROP_WAREHOUSE\", {\n slug: \"snowflake-drop-warehouse\",\n name: \"Drop Warehouse\",\n description: \"Drops (permanently deletes) a warehouse in Snowflake. This operation is irreversible — once a warehouse is dropped, it cannot be recovered. Use this action when you need to permanently remove a warehouse that is no longer needed. Requires OWNERSHIP privilege on the warehouse.\",\n input: SnowflakeDropWarehouseInput,\n output: SnowflakeDropWarehouseOutput,\n});\n"],"mappings":";;AAeA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;EAC/J,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CAC5Q,CAYS;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAOU;AACV,CAAC"}
|
|
@@ -12,25 +12,25 @@ 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
|
});
|
|
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")
|
|
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
30
|
});
|
|
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
|
});
|
|
@@ -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(),
|