@keystrokehq/snowflake_basic 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/describe-table.cjs +29 -0
- package/dist/actions/describe-table.cjs.map +1 -0
- package/dist/actions/describe-table.d.cts +9 -0
- package/dist/actions/describe-table.d.cts.map +1 -0
- package/dist/actions/describe-table.d.mts +9 -0
- package/dist/actions/describe-table.d.mts.map +1 -0
- package/dist/actions/describe-table.mjs +28 -0
- package/dist/actions/describe-table.mjs.map +1 -0
- package/dist/actions/explore-columns.cjs +22 -0
- package/dist/actions/explore-columns.cjs.map +1 -0
- package/dist/actions/explore-columns.d.cts +9 -0
- package/dist/actions/explore-columns.d.cts.map +1 -0
- package/dist/actions/explore-columns.d.mts +9 -0
- package/dist/actions/explore-columns.d.mts.map +1 -0
- package/dist/actions/explore-columns.mjs +19 -0
- package/dist/actions/explore-columns.mjs.map +1 -0
- package/dist/actions/index.cjs +13 -0
- package/dist/actions/index.d.cts +7 -0
- package/dist/actions/index.d.mts +7 -0
- package/dist/actions/index.mjs +7 -0
- package/dist/actions/run-query.cjs +20 -0
- package/dist/actions/run-query.cjs.map +1 -0
- package/dist/actions/run-query.d.cts +9 -0
- package/dist/actions/run-query.d.cts.map +1 -0
- package/dist/actions/run-query.d.mts +9 -0
- package/dist/actions/run-query.d.mts.map +1 -0
- package/dist/actions/run-query.mjs +17 -0
- package/dist/actions/run-query.mjs.map +1 -0
- package/dist/actions/show-databases.cjs +27 -0
- package/dist/actions/show-databases.cjs.map +1 -0
- package/dist/actions/show-databases.d.cts +9 -0
- package/dist/actions/show-databases.d.cts.map +1 -0
- package/dist/actions/show-databases.d.mts +9 -0
- package/dist/actions/show-databases.d.mts.map +1 -0
- package/dist/actions/show-databases.mjs +26 -0
- package/dist/actions/show-databases.mjs.map +1 -0
- package/dist/actions/show-schemas.cjs +27 -0
- package/dist/actions/show-schemas.cjs.map +1 -0
- package/dist/actions/show-schemas.d.cts +9 -0
- package/dist/actions/show-schemas.d.cts.map +1 -0
- package/dist/actions/show-schemas.d.mts +9 -0
- package/dist/actions/show-schemas.d.mts.map +1 -0
- package/dist/actions/show-schemas.mjs +26 -0
- package/dist/actions/show-schemas.mjs.map +1 -0
- package/dist/actions/show-tables.cjs +24 -0
- package/dist/actions/show-tables.cjs.map +1 -0
- package/dist/actions/show-tables.d.cts +9 -0
- package/dist/actions/show-tables.d.cts.map +1 -0
- package/dist/actions/show-tables.d.mts +9 -0
- package/dist/actions/show-tables.d.mts.map +1 -0
- package/dist/actions/show-tables.mjs +23 -0
- package/dist/actions/show-tables.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +18 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +10 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/snowflake_basic
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `snowflake_basic`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 6
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { snowflakeBasicDescribeTable } from "@keystrokehq/snowflake_basic/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "snowflake_basic-agent",
|
|
15
|
+
tools: [snowflakeBasicDescribeTable],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.snowflakeBasic.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeSnowflakeBasicTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["snowflakeBasic","executeSnowflakeBasicTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { snowflakeBasic } from \"./app\";\nimport { executeSnowflakeBasicTool } 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: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return snowflakeBasic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSnowflakeBasicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,eAAe,OAAO;EAC3B,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,0BAA0B,MAAM,KAAgC,CAAC;EACjG;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { snowflakeBasic } from "./app.mjs";
|
|
2
|
+
import { executeSnowflakeBasicTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return snowflakeBasic.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeSnowflakeBasicTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { snowflakeBasic } from \"./app\";\nimport { executeSnowflakeBasicTool } 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: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return snowflakeBasic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSnowflakeBasicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,eAAe,OAAO;EAC3B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,0BAA0B,MAAM,KAAgC,CAAC;EACjG;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/describe-table.ts
|
|
4
|
+
const SnowflakeBasicDescribeTableInput = zod.z.object({
|
|
5
|
+
database: zod.z.string().describe("The name of the Snowflake database containing the table."),
|
|
6
|
+
table_name: zod.z.string().describe("The name of the table to describe."),
|
|
7
|
+
schema_name: zod.z.string().describe("The name of the schema within the database that contains the table.")
|
|
8
|
+
});
|
|
9
|
+
const SnowflakeBasicDescribeTable_ColumnItemSchema = zod.z.object({
|
|
10
|
+
kind: zod.z.string().describe("Kind of the column (e.g., 'COLUMN', 'GEOGRAPHY_COLUMN')."),
|
|
11
|
+
name: zod.z.string().describe("Name of the column."),
|
|
12
|
+
dataType: zod.z.string().describe("Data type of the column in Snowflake (e.g., VARCHAR, NUMBER, DATE)."),
|
|
13
|
+
nullable: zod.z.boolean().describe("True if the column can store NULL values."),
|
|
14
|
+
uniqueKey: zod.z.boolean().default(false).describe("True if the column is part of a unique key constraint.").nullable().optional(),
|
|
15
|
+
primaryKey: zod.z.boolean().default(false).describe("True if the column is part of the table's primary key.").nullable().optional(),
|
|
16
|
+
defaultValue: zod.z.string().describe("Default value of the column as a string, or `None` if not defined.").nullable().optional()
|
|
17
|
+
});
|
|
18
|
+
const SnowflakeBasicDescribeTableOutput = zod.z.object({ columns: zod.z.array(SnowflakeBasicDescribeTable_ColumnItemSchema).default([]).describe("List of objects, each detailing a column's properties in the specified table.").nullable().optional() });
|
|
19
|
+
const snowflakeBasicDescribeTable = require_action.action("SNOWFLAKE_BASIC_DESCRIBE_TABLE", {
|
|
20
|
+
slug: "snowflake_basic-describe-table",
|
|
21
|
+
name: "Describe table",
|
|
22
|
+
description: "Retrieves detailed information for each column (including name, data type, kind, nullability, default value, and key status) in a specified Snowflake table.",
|
|
23
|
+
input: SnowflakeBasicDescribeTableInput,
|
|
24
|
+
output: SnowflakeBasicDescribeTableOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.snowflakeBasicDescribeTable = snowflakeBasicDescribeTable;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=describe-table.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-table.cjs","names":["z","action"],"sources":["../../src/actions/describe-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicDescribeTableInput: z.ZodTypeAny = z.object({\n database: z.string().describe(\"The name of the Snowflake database containing the table.\"),\n table_name: z.string().describe(\"The name of the table to describe.\"),\n schema_name: z.string().describe(\"The name of the schema within the database that contains the table.\"),\n});\nconst SnowflakeBasicDescribeTable_ColumnItemSchema: z.ZodTypeAny = z.object({\n kind: z.string().describe(\"Kind of the column (e.g., 'COLUMN', 'GEOGRAPHY_COLUMN').\"),\n name: z.string().describe(\"Name of the column.\"),\n dataType: z.string().describe(\"Data type of the column in Snowflake (e.g., VARCHAR, NUMBER, DATE).\"),\n nullable: z.boolean().describe(\"True if the column can store NULL values.\"),\n uniqueKey: z.boolean().default(false).describe(\"True if the column is part of a unique key constraint.\").nullable().optional(),\n primaryKey: z.boolean().default(false).describe(\"True if the column is part of the table's primary key.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value of the column as a string, or `None` if not defined.\").nullable().optional(),\n});\nexport const SnowflakeBasicDescribeTableOutput: z.ZodTypeAny = z.object({\n columns: z.array(SnowflakeBasicDescribeTable_ColumnItemSchema).default([]).describe(\"List of objects, each detailing a column's properties in the specified table.\").nullable().optional(),\n});\n\nexport const snowflakeBasicDescribeTable = action(\"SNOWFLAKE_BASIC_DESCRIBE_TABLE\", {\n slug: \"snowflake_basic-describe-table\",\n name: \"Describe table\",\n description: \"Retrieves detailed information for each column (including name, data type, kind, nullability, default value, and key status) in a specified Snowflake table.\",\n input: SnowflakeBasicDescribeTableInput,\n output: SnowflakeBasicDescribeTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC;AACD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC1E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3L,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/describe-table.d.ts
|
|
4
|
+
declare const SnowflakeBasicDescribeTableInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicDescribeTableOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicDescribeTable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicDescribeTable };
|
|
9
|
+
//# sourceMappingURL=describe-table.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-table.d.cts","names":[],"sources":["../../src/actions/describe-table.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI/C;AAAA,cAUW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/describe-table.d.ts
|
|
4
|
+
declare const SnowflakeBasicDescribeTableInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicDescribeTableOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicDescribeTable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicDescribeTable };
|
|
9
|
+
//# sourceMappingURL=describe-table.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-table.d.mts","names":[],"sources":["../../src/actions/describe-table.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI/C;AAAA,cAUW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/describe-table.ts
|
|
4
|
+
const SnowflakeBasicDescribeTableInput = z.object({
|
|
5
|
+
database: z.string().describe("The name of the Snowflake database containing the table."),
|
|
6
|
+
table_name: z.string().describe("The name of the table to describe."),
|
|
7
|
+
schema_name: z.string().describe("The name of the schema within the database that contains the table.")
|
|
8
|
+
});
|
|
9
|
+
const SnowflakeBasicDescribeTable_ColumnItemSchema = z.object({
|
|
10
|
+
kind: z.string().describe("Kind of the column (e.g., 'COLUMN', 'GEOGRAPHY_COLUMN')."),
|
|
11
|
+
name: z.string().describe("Name of the column."),
|
|
12
|
+
dataType: z.string().describe("Data type of the column in Snowflake (e.g., VARCHAR, NUMBER, DATE)."),
|
|
13
|
+
nullable: z.boolean().describe("True if the column can store NULL values."),
|
|
14
|
+
uniqueKey: z.boolean().default(false).describe("True if the column is part of a unique key constraint.").nullable().optional(),
|
|
15
|
+
primaryKey: z.boolean().default(false).describe("True if the column is part of the table's primary key.").nullable().optional(),
|
|
16
|
+
defaultValue: z.string().describe("Default value of the column as a string, or `None` if not defined.").nullable().optional()
|
|
17
|
+
});
|
|
18
|
+
const snowflakeBasicDescribeTable = action("SNOWFLAKE_BASIC_DESCRIBE_TABLE", {
|
|
19
|
+
slug: "snowflake_basic-describe-table",
|
|
20
|
+
name: "Describe table",
|
|
21
|
+
description: "Retrieves detailed information for each column (including name, data type, kind, nullability, default value, and key status) in a specified Snowflake table.",
|
|
22
|
+
input: SnowflakeBasicDescribeTableInput,
|
|
23
|
+
output: z.object({ columns: z.array(SnowflakeBasicDescribeTable_ColumnItemSchema).default([]).describe("List of objects, each detailing a column's properties in the specified table.").nullable().optional() })
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { snowflakeBasicDescribeTable };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=describe-table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe-table.mjs","names":[],"sources":["../../src/actions/describe-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicDescribeTableInput: z.ZodTypeAny = z.object({\n database: z.string().describe(\"The name of the Snowflake database containing the table.\"),\n table_name: z.string().describe(\"The name of the table to describe.\"),\n schema_name: z.string().describe(\"The name of the schema within the database that contains the table.\"),\n});\nconst SnowflakeBasicDescribeTable_ColumnItemSchema: z.ZodTypeAny = z.object({\n kind: z.string().describe(\"Kind of the column (e.g., 'COLUMN', 'GEOGRAPHY_COLUMN').\"),\n name: z.string().describe(\"Name of the column.\"),\n dataType: z.string().describe(\"Data type of the column in Snowflake (e.g., VARCHAR, NUMBER, DATE).\"),\n nullable: z.boolean().describe(\"True if the column can store NULL values.\"),\n uniqueKey: z.boolean().default(false).describe(\"True if the column is part of a unique key constraint.\").nullable().optional(),\n primaryKey: z.boolean().default(false).describe(\"True if the column is part of the table's primary key.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value of the column as a string, or `None` if not defined.\").nullable().optional(),\n});\nexport const SnowflakeBasicDescribeTableOutput: z.ZodTypeAny = z.object({\n columns: z.array(SnowflakeBasicDescribeTable_ColumnItemSchema).default([]).describe(\"List of objects, each detailing a column's properties in the specified table.\").nullable().optional(),\n});\n\nexport const snowflakeBasicDescribeTable = action(\"SNOWFLAKE_BASIC_DESCRIBE_TABLE\", {\n slug: \"snowflake_basic-describe-table\",\n name: \"Describe table\",\n description: \"Retrieves detailed information for each column (including name, data type, kind, nullability, default value, and key status) in a specified Snowflake table.\",\n input: SnowflakeBasicDescribeTableInput,\n output: SnowflakeBasicDescribeTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC;AACD,MAAM,+CAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC1E,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC;AAKD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC3L,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/explore-columns.ts
|
|
4
|
+
const SnowflakeBasicExploreColumnsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().default(10).describe("The maximum number of distinct values to return for each specified column.").optional(),
|
|
6
|
+
database: zod.z.string().describe("The name of the Snowflake database."),
|
|
7
|
+
table_name: zod.z.string().describe("The name of the table within the specified schema."),
|
|
8
|
+
schema_name: zod.z.string().describe("The name of the schema within the specified database."),
|
|
9
|
+
column_names: zod.z.array(zod.z.string()).default([]).describe("A list of specific column names to explore. If left empty, all columns in the table will be explored.").optional()
|
|
10
|
+
});
|
|
11
|
+
const SnowflakeBasicExploreColumnsOutput = zod.z.object({ values: zod.z.object({}).describe("A dictionary mapping column names to a list of distinct values found in that column.") });
|
|
12
|
+
const snowflakeBasicExploreColumns = require_action.action("SNOWFLAKE_BASIC_EXPLORE_COLUMNS", {
|
|
13
|
+
slug: "snowflake_basic-explore-columns",
|
|
14
|
+
name: "Explore Columns",
|
|
15
|
+
description: "Retrieves a sample of distinct values for specified columns from a Snowflake table.",
|
|
16
|
+
input: SnowflakeBasicExploreColumnsInput,
|
|
17
|
+
output: SnowflakeBasicExploreColumnsOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.snowflakeBasicExploreColumns = snowflakeBasicExploreColumns;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=explore-columns.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore-columns.cjs","names":["z","action"],"sources":["../../src/actions/explore-columns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicExploreColumnsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(10).describe(\"The maximum number of distinct values to return for each specified column.\").optional(),\n database: z.string().describe(\"The name of the Snowflake database.\"),\n table_name: z.string().describe(\"The name of the table within the specified schema.\"),\n schema_name: z.string().describe(\"The name of the schema within the specified database.\"),\n column_names: z.array(z.string()).default([]).describe(\"A list of specific column names to explore. If left empty, all columns in the table will be explored.\").optional(),\n});\nexport const SnowflakeBasicExploreColumnsOutput: z.ZodTypeAny = z.object({\n values: z.object({}).describe(\"A dictionary mapping column names to a list of distinct values found in that column.\"),\n});\n\nexport const snowflakeBasicExploreColumns = action(\"SNOWFLAKE_BASIC_EXPLORE_COLUMNS\", {\n slug: \"snowflake_basic-explore-columns\",\n name: \"Explore Columns\",\n description: \"Retrieves a sample of distinct values for specified columns from a Snowflake table.\",\n input: SnowflakeBasicExploreColumnsInput,\n output: SnowflakeBasicExploreColumnsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AAC3K,CAAC;AACD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF,EACtH,CAAC;AAED,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/explore-columns.d.ts
|
|
4
|
+
declare const SnowflakeBasicExploreColumnsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicExploreColumnsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicExploreColumns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicExploreColumns };
|
|
9
|
+
//# sourceMappingURL=explore-columns.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore-columns.d.cts","names":[],"sources":["../../src/actions/explore-columns.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAMhD;AAAA,cACW,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/explore-columns.d.ts
|
|
4
|
+
declare const SnowflakeBasicExploreColumnsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicExploreColumnsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicExploreColumns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicExploreColumns };
|
|
9
|
+
//# sourceMappingURL=explore-columns.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore-columns.d.mts","names":[],"sources":["../../src/actions/explore-columns.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAMhD;AAAA,cACW,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const snowflakeBasicExploreColumns = action("SNOWFLAKE_BASIC_EXPLORE_COLUMNS", {
|
|
4
|
+
slug: "snowflake_basic-explore-columns",
|
|
5
|
+
name: "Explore Columns",
|
|
6
|
+
description: "Retrieves a sample of distinct values for specified columns from a Snowflake table.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
limit: z.number().int().default(10).describe("The maximum number of distinct values to return for each specified column.").optional(),
|
|
9
|
+
database: z.string().describe("The name of the Snowflake database."),
|
|
10
|
+
table_name: z.string().describe("The name of the table within the specified schema."),
|
|
11
|
+
schema_name: z.string().describe("The name of the schema within the specified database."),
|
|
12
|
+
column_names: z.array(z.string()).default([]).describe("A list of specific column names to explore. If left empty, all columns in the table will be explored.").optional()
|
|
13
|
+
}),
|
|
14
|
+
output: z.object({ values: z.object({}).describe("A dictionary mapping column names to a list of distinct values found in that column.") })
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { snowflakeBasicExploreColumns };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=explore-columns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore-columns.mjs","names":[],"sources":["../../src/actions/explore-columns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicExploreColumnsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(10).describe(\"The maximum number of distinct values to return for each specified column.\").optional(),\n database: z.string().describe(\"The name of the Snowflake database.\"),\n table_name: z.string().describe(\"The name of the table within the specified schema.\"),\n schema_name: z.string().describe(\"The name of the schema within the specified database.\"),\n column_names: z.array(z.string()).default([]).describe(\"A list of specific column names to explore. If left empty, all columns in the table will be explored.\").optional(),\n});\nexport const SnowflakeBasicExploreColumnsOutput: z.ZodTypeAny = z.object({\n values: z.object({}).describe(\"A dictionary mapping column names to a list of distinct values found in that column.\"),\n});\n\nexport const snowflakeBasicExploreColumns = action(\"SNOWFLAKE_BASIC_EXPLORE_COLUMNS\", {\n slug: \"snowflake_basic-explore-columns\",\n name: \"Explore Columns\",\n description: \"Retrieves a sample of distinct values for specified columns from a Snowflake table.\",\n input: SnowflakeBasicExploreColumnsInput,\n output: SnowflakeBasicExploreColumnsOutput,\n});\n"],"mappings":";;AAeA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6D,EAAE,OAAO;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACpI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACxF,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC3K,CASS;CACP,QAT8D,EAAE,OAAO,EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF,EACtH,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_describe_table = require("./describe-table.cjs");
|
|
3
|
+
const require_explore_columns = require("./explore-columns.cjs");
|
|
4
|
+
const require_run_query = require("./run-query.cjs");
|
|
5
|
+
const require_show_databases = require("./show-databases.cjs");
|
|
6
|
+
const require_show_schemas = require("./show-schemas.cjs");
|
|
7
|
+
const require_show_tables = require("./show-tables.cjs");
|
|
8
|
+
exports.snowflakeBasicDescribeTable = require_describe_table.snowflakeBasicDescribeTable;
|
|
9
|
+
exports.snowflakeBasicExploreColumns = require_explore_columns.snowflakeBasicExploreColumns;
|
|
10
|
+
exports.snowflakeBasicRunQuery = require_run_query.snowflakeBasicRunQuery;
|
|
11
|
+
exports.snowflakeBasicShowDatabases = require_show_databases.snowflakeBasicShowDatabases;
|
|
12
|
+
exports.snowflakeBasicShowSchemas = require_show_schemas.snowflakeBasicShowSchemas;
|
|
13
|
+
exports.snowflakeBasicShowTables = require_show_tables.snowflakeBasicShowTables;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { snowflakeBasicDescribeTable } from "./describe-table.cjs";
|
|
2
|
+
import { snowflakeBasicExploreColumns } from "./explore-columns.cjs";
|
|
3
|
+
import { snowflakeBasicRunQuery } from "./run-query.cjs";
|
|
4
|
+
import { snowflakeBasicShowDatabases } from "./show-databases.cjs";
|
|
5
|
+
import { snowflakeBasicShowSchemas } from "./show-schemas.cjs";
|
|
6
|
+
import { snowflakeBasicShowTables } from "./show-tables.cjs";
|
|
7
|
+
export { snowflakeBasicDescribeTable, snowflakeBasicExploreColumns, snowflakeBasicRunQuery, snowflakeBasicShowDatabases, snowflakeBasicShowSchemas, snowflakeBasicShowTables };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { snowflakeBasicDescribeTable } from "./describe-table.mjs";
|
|
2
|
+
import { snowflakeBasicExploreColumns } from "./explore-columns.mjs";
|
|
3
|
+
import { snowflakeBasicRunQuery } from "./run-query.mjs";
|
|
4
|
+
import { snowflakeBasicShowDatabases } from "./show-databases.mjs";
|
|
5
|
+
import { snowflakeBasicShowSchemas } from "./show-schemas.mjs";
|
|
6
|
+
import { snowflakeBasicShowTables } from "./show-tables.mjs";
|
|
7
|
+
export { snowflakeBasicDescribeTable, snowflakeBasicExploreColumns, snowflakeBasicRunQuery, snowflakeBasicShowDatabases, snowflakeBasicShowSchemas, snowflakeBasicShowTables };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { snowflakeBasicDescribeTable } from "./describe-table.mjs";
|
|
2
|
+
import { snowflakeBasicExploreColumns } from "./explore-columns.mjs";
|
|
3
|
+
import { snowflakeBasicRunQuery } from "./run-query.mjs";
|
|
4
|
+
import { snowflakeBasicShowDatabases } from "./show-databases.mjs";
|
|
5
|
+
import { snowflakeBasicShowSchemas } from "./show-schemas.mjs";
|
|
6
|
+
import { snowflakeBasicShowTables } from "./show-tables.mjs";
|
|
7
|
+
export { snowflakeBasicDescribeTable, snowflakeBasicExploreColumns, snowflakeBasicRunQuery, snowflakeBasicShowDatabases, snowflakeBasicShowSchemas, snowflakeBasicShowTables };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/run-query.ts
|
|
4
|
+
const SnowflakeBasicRunQueryInput = zod.z.object({
|
|
5
|
+
query: zod.z.string().describe("SQL query to execute; runs within the context of the specified database and schema."),
|
|
6
|
+
database: zod.z.string().describe("Name of the Snowflake database."),
|
|
7
|
+
schema_name: zod.z.string().describe("Name of the schema within the specified database.")
|
|
8
|
+
});
|
|
9
|
+
const SnowflakeBasicRunQueryOutput = zod.z.object({ data: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).default([]).describe("A list of dictionaries, where each dictionary represents a row returned by the query. Keys in the dictionaries are column names. For SELECT statements, this contains the query results. For DML/DDL statements or queries that do not return a rowset, this will typically be an empty list.").nullable().optional() });
|
|
10
|
+
const snowflakeBasicRunQuery = require_action.action("SNOWFLAKE_BASIC_RUN_QUERY", {
|
|
11
|
+
slug: "snowflake_basic-run-query",
|
|
12
|
+
name: "Run Query",
|
|
13
|
+
description: "Executes the given SQL query in Snowflake within the specified database and schema (which must exist and be accessible), automatically setting context first.",
|
|
14
|
+
input: SnowflakeBasicRunQueryInput,
|
|
15
|
+
output: SnowflakeBasicRunQueryOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.snowflakeBasicRunQuery = snowflakeBasicRunQuery;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=run-query.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-query.cjs","names":["z","action"],"sources":["../../src/actions/run-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicRunQueryInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"SQL query to execute; runs within the context of the specified database and schema.\"),\n database: z.string().describe(\"Name of the Snowflake database.\"),\n schema_name: z.string().describe(\"Name of the schema within the specified database.\"),\n});\nexport const SnowflakeBasicRunQueryOutput: z.ZodTypeAny = z.object({\n data: z.array(z.record(z.string(), z.unknown())).default([]).describe(\"A list of dictionaries, where each dictionary represents a row returned by the query. Keys in the dictionaries are column names. For SELECT statements, this contains the query results. For DML/DDL statements or queries that do not return a rowset, this will typically be an empty list.\").nullable().optional(),\n});\n\nexport const snowflakeBasicRunQuery = action(\"SNOWFLAKE_BASIC_RUN_QUERY\", {\n slug: \"snowflake_basic-run-query\",\n name: \"Run Query\",\n description: \"Executes the given SQL query in Snowflake within the specified database and schema (which must exist and be accessible), automatically setting context first.\",\n input: SnowflakeBasicRunQueryInput,\n output: SnowflakeBasicRunQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACtF,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7X,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-query.d.ts
|
|
4
|
+
declare const SnowflakeBasicRunQueryInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicRunQueryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicRunQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicRunQuery };
|
|
9
|
+
//# sourceMappingURL=run-query.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-query.d.cts","names":[],"sources":["../../src/actions/run-query.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAE3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-query.d.ts
|
|
4
|
+
declare const SnowflakeBasicRunQueryInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicRunQueryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicRunQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicRunQuery };
|
|
9
|
+
//# sourceMappingURL=run-query.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-query.d.mts","names":[],"sources":["../../src/actions/run-query.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAE3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const snowflakeBasicRunQuery = action("SNOWFLAKE_BASIC_RUN_QUERY", {
|
|
4
|
+
slug: "snowflake_basic-run-query",
|
|
5
|
+
name: "Run Query",
|
|
6
|
+
description: "Executes the given SQL query in Snowflake within the specified database and schema (which must exist and be accessible), automatically setting context first.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
query: z.string().describe("SQL query to execute; runs within the context of the specified database and schema."),
|
|
9
|
+
database: z.string().describe("Name of the Snowflake database."),
|
|
10
|
+
schema_name: z.string().describe("Name of the schema within the specified database.")
|
|
11
|
+
}),
|
|
12
|
+
output: z.object({ data: z.array(z.record(z.string(), z.unknown())).default([]).describe("A list of dictionaries, where each dictionary represents a row returned by the query. Keys in the dictionaries are column names. For SELECT statements, this contains the query results. For DML/DDL statements or queries that do not return a rowset, this will typically be an empty list.").nullable().optional() })
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { snowflakeBasicRunQuery };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=run-query.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-query.mjs","names":[],"sources":["../../src/actions/run-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicRunQueryInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"SQL query to execute; runs within the context of the specified database and schema.\"),\n database: z.string().describe(\"Name of the Snowflake database.\"),\n schema_name: z.string().describe(\"Name of the schema within the specified database.\"),\n});\nexport const SnowflakeBasicRunQueryOutput: z.ZodTypeAny = z.object({\n data: z.array(z.record(z.string(), z.unknown())).default([]).describe(\"A list of dictionaries, where each dictionary represents a row returned by the query. Keys in the dictionaries are column names. For SELECT statements, this contains the query results. For DML/DDL statements or queries that do not return a rowset, this will typically be an empty list.\").nullable().optional(),\n});\n\nexport const snowflakeBasicRunQuery = action(\"SNOWFLAKE_BASIC_RUN_QUERY\", {\n slug: \"snowflake_basic-run-query\",\n name: \"Run Query\",\n description: \"Executes the given SQL query in Snowflake within the specified database and schema (which must exist and be accessible), automatically setting context first.\",\n input: SnowflakeBasicRunQueryInput,\n output: SnowflakeBasicRunQueryOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuD,EAAE,OAAO;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,CASS;CACP,QATwD,EAAE,OAAO,EACjE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+RAA+R,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7X,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-databases.ts
|
|
4
|
+
const SnowflakeBasicShowDatabasesInput = zod.z.object({}).describe("Request model for showing databases.\nNo parameters required as this shows all accessible databases.");
|
|
5
|
+
const SnowflakeBasicShowDatabases_DatabaseItemSchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("The name of the database."),
|
|
7
|
+
owner: zod.z.string().describe("The owner/role that owns this database."),
|
|
8
|
+
origin: zod.z.string().describe("The origin of the database (e.g., 'SNOWFLAKE')."),
|
|
9
|
+
comment: zod.z.string().default("").describe("Any comments associated with the database.").nullable().optional(),
|
|
10
|
+
options: zod.z.string().default("").describe("Database options.").nullable().optional(),
|
|
11
|
+
created_on: zod.z.string().describe("When the database was created."),
|
|
12
|
+
is_current: zod.z.string().describe("Whether this is the current database (Y/N)."),
|
|
13
|
+
is_default: zod.z.string().describe("Whether this is the default database (Y/N)."),
|
|
14
|
+
retention_time: zod.z.string().default("").describe("Data retention time for the database.").nullable().optional()
|
|
15
|
+
});
|
|
16
|
+
const SnowflakeBasicShowDatabasesOutput = zod.z.object({ databases: zod.z.array(SnowflakeBasicShowDatabases_DatabaseItemSchema).default([]).describe("A list of databases available in the Snowflake account.").nullable().optional() });
|
|
17
|
+
const snowflakeBasicShowDatabases = require_action.action("SNOWFLAKE_BASIC_SHOW_DATABASES", {
|
|
18
|
+
slug: "snowflake_basic-show-databases",
|
|
19
|
+
name: "Show databases",
|
|
20
|
+
description: "Retrieves a list of all databases available in the Snowflake account.",
|
|
21
|
+
input: SnowflakeBasicShowDatabasesInput,
|
|
22
|
+
output: SnowflakeBasicShowDatabasesOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.snowflakeBasicShowDatabases = snowflakeBasicShowDatabases;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=show-databases.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-databases.cjs","names":["z","action"],"sources":["../../src/actions/show-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicShowDatabasesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for showing databases.\\nNo parameters required as this shows all accessible databases.\");\nconst SnowflakeBasicShowDatabases_DatabaseItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the database.\"),\n owner: z.string().describe(\"The owner/role that owns this database.\"),\n origin: z.string().describe(\"The origin of the database (e.g., 'SNOWFLAKE').\"),\n comment: z.string().default(\"\").describe(\"Any comments associated with the database.\").nullable().optional(),\n options: z.string().default(\"\").describe(\"Database options.\").nullable().optional(),\n created_on: z.string().describe(\"When the database was created.\"),\n is_current: z.string().describe(\"Whether this is the current database (Y/N).\"),\n is_default: z.string().describe(\"Whether this is the default database (Y/N).\"),\n retention_time: z.string().default(\"\").describe(\"Data retention time for the database.\").nullable().optional(),\n});\nexport const SnowflakeBasicShowDatabasesOutput: z.ZodTypeAny = z.object({\n databases: z.array(SnowflakeBasicShowDatabases_DatabaseItemSchema).default([]).describe(\"A list of databases available in the Snowflake account.\").nullable().optional(),\n});\n\nexport const snowflakeBasicShowDatabases = action(\"SNOWFLAKE_BASIC_SHOW_DATABASES\", {\n slug: \"snowflake_basic-show-databases\",\n name: \"Show databases\",\n description: \"Retrieves a list of all databases available in the Snowflake account.\",\n input: SnowflakeBasicShowDatabasesInput,\n output: SnowflakeBasicShowDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAC1L,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,WAAWA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzK,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-databases.d.ts
|
|
4
|
+
declare const SnowflakeBasicShowDatabasesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicShowDatabasesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicShowDatabases: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicShowDatabases };
|
|
9
|
+
//# sourceMappingURL=show-databases.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-databases.d.cts","names":[],"sources":["../../src/actions/show-databases.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA0I;AAAA,cAY9K,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-databases.d.ts
|
|
4
|
+
declare const SnowflakeBasicShowDatabasesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicShowDatabasesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicShowDatabases: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicShowDatabases };
|
|
9
|
+
//# sourceMappingURL=show-databases.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-databases.d.mts","names":[],"sources":["../../src/actions/show-databases.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA0I;AAAA,cAY9K,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-databases.ts
|
|
4
|
+
const SnowflakeBasicShowDatabasesInput = z.object({}).describe("Request model for showing databases.\nNo parameters required as this shows all accessible databases.");
|
|
5
|
+
const SnowflakeBasicShowDatabases_DatabaseItemSchema = z.object({
|
|
6
|
+
name: z.string().describe("The name of the database."),
|
|
7
|
+
owner: z.string().describe("The owner/role that owns this database."),
|
|
8
|
+
origin: z.string().describe("The origin of the database (e.g., 'SNOWFLAKE')."),
|
|
9
|
+
comment: z.string().default("").describe("Any comments associated with the database.").nullable().optional(),
|
|
10
|
+
options: z.string().default("").describe("Database options.").nullable().optional(),
|
|
11
|
+
created_on: z.string().describe("When the database was created."),
|
|
12
|
+
is_current: z.string().describe("Whether this is the current database (Y/N)."),
|
|
13
|
+
is_default: z.string().describe("Whether this is the default database (Y/N)."),
|
|
14
|
+
retention_time: z.string().default("").describe("Data retention time for the database.").nullable().optional()
|
|
15
|
+
});
|
|
16
|
+
const snowflakeBasicShowDatabases = action("SNOWFLAKE_BASIC_SHOW_DATABASES", {
|
|
17
|
+
slug: "snowflake_basic-show-databases",
|
|
18
|
+
name: "Show databases",
|
|
19
|
+
description: "Retrieves a list of all databases available in the Snowflake account.",
|
|
20
|
+
input: SnowflakeBasicShowDatabasesInput,
|
|
21
|
+
output: z.object({ databases: z.array(SnowflakeBasicShowDatabases_DatabaseItemSchema).default([]).describe("A list of databases available in the Snowflake account.").nullable().optional() })
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { snowflakeBasicShowDatabases };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=show-databases.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-databases.mjs","names":[],"sources":["../../src/actions/show-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicShowDatabasesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for showing databases.\\nNo parameters required as this shows all accessible databases.\");\nconst SnowflakeBasicShowDatabases_DatabaseItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the database.\"),\n owner: z.string().describe(\"The owner/role that owns this database.\"),\n origin: z.string().describe(\"The origin of the database (e.g., 'SNOWFLAKE').\"),\n comment: z.string().default(\"\").describe(\"Any comments associated with the database.\").nullable().optional(),\n options: z.string().default(\"\").describe(\"Database options.\").nullable().optional(),\n created_on: z.string().describe(\"When the database was created.\"),\n is_current: z.string().describe(\"Whether this is the current database (Y/N).\"),\n is_default: z.string().describe(\"Whether this is the default database (Y/N).\"),\n retention_time: z.string().default(\"\").describe(\"Data retention time for the database.\").nullable().optional(),\n});\nexport const SnowflakeBasicShowDatabasesOutput: z.ZodTypeAny = z.object({\n databases: z.array(SnowflakeBasicShowDatabases_DatabaseItemSchema).default([]).describe(\"A list of databases available in the Snowflake account.\").nullable().optional(),\n});\n\nexport const snowflakeBasicShowDatabases = action(\"SNOWFLAKE_BASIC_SHOW_DATABASES\", {\n slug: \"snowflake_basic-show-databases\",\n name: \"Show databases\",\n description: \"Retrieves a list of all databases available in the Snowflake account.\",\n input: SnowflakeBasicShowDatabasesInput,\n output: SnowflakeBasicShowDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAC1L,MAAM,iDAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC;AAKD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,WAAW,EAAE,MAAM,8CAA8C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzK,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-schemas.ts
|
|
4
|
+
const SnowflakeBasicShowSchemasInput = zod.z.object({ database: zod.z.string().describe("The name of the database for which to list schemas.") });
|
|
5
|
+
const SnowflakeBasicShowSchemas_SchemaItemSchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("The name of the schema."),
|
|
7
|
+
owner: zod.z.string().describe("The owner/role that owns this schema."),
|
|
8
|
+
comment: zod.z.string().default("").describe("Any comments associated with the schema.").nullable().optional(),
|
|
9
|
+
options: zod.z.string().default("").describe("Schema options.").nullable().optional(),
|
|
10
|
+
created_on: zod.z.string().describe("When the schema was created."),
|
|
11
|
+
is_current: zod.z.string().describe("Whether this is the current schema (Y/N)."),
|
|
12
|
+
is_default: zod.z.string().describe("Whether this is the default schema (Y/N)."),
|
|
13
|
+
database_name: zod.z.string().describe("The name of the database containing this schema."),
|
|
14
|
+
retention_time: zod.z.string().default("").describe("Data retention time for the schema.").nullable().optional()
|
|
15
|
+
});
|
|
16
|
+
const SnowflakeBasicShowSchemasOutput = zod.z.object({ schemas: zod.z.array(SnowflakeBasicShowSchemas_SchemaItemSchema).default([]).describe("A list of schemas found in the specified database, including their metadata.").nullable().optional() });
|
|
17
|
+
const snowflakeBasicShowSchemas = require_action.action("SNOWFLAKE_BASIC_SHOW_SCHEMAS", {
|
|
18
|
+
slug: "snowflake_basic-show-schemas",
|
|
19
|
+
name: "Show schemas",
|
|
20
|
+
description: "Retrieves a list of all schemas within a specified Snowflake database.",
|
|
21
|
+
input: SnowflakeBasicShowSchemasInput,
|
|
22
|
+
output: SnowflakeBasicShowSchemasOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.snowflakeBasicShowSchemas = snowflakeBasicShowSchemas;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=show-schemas.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-schemas.cjs","names":["z","action"],"sources":["../../src/actions/show-schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicShowSchemasInput: z.ZodTypeAny = z.object({\n database: z.string().describe(\"The name of the database for which to list schemas.\"),\n});\nconst SnowflakeBasicShowSchemas_SchemaItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the schema.\"),\n owner: z.string().describe(\"The owner/role that owns this schema.\"),\n comment: z.string().default(\"\").describe(\"Any comments associated with the schema.\").nullable().optional(),\n options: z.string().default(\"\").describe(\"Schema options.\").nullable().optional(),\n created_on: z.string().describe(\"When the schema was created.\"),\n is_current: z.string().describe(\"Whether this is the current schema (Y/N).\"),\n is_default: z.string().describe(\"Whether this is the default schema (Y/N).\"),\n database_name: z.string().describe(\"The name of the database containing this schema.\"),\n retention_time: z.string().default(\"\").describe(\"Data retention time for the schema.\").nullable().optional(),\n});\nexport const SnowflakeBasicShowSchemasOutput: z.ZodTypeAny = z.object({\n schemas: z.array(SnowflakeBasicShowSchemas_SchemaItemSchema).default([]).describe(\"A list of schemas found in the specified database, including their metadata.\").nullable().optional(),\n});\n\nexport const snowflakeBasicShowSchemas = action(\"SNOWFLAKE_BASIC_SHOW_SCHEMAS\", {\n slug: \"snowflake_basic-show-schemas\",\n name: \"Show schemas\",\n description: \"Retrieves a list of all schemas within a specified Snowflake database.\",\n input: SnowflakeBasicShowSchemasInput,\n output: SnowflakeBasicShowSchemasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACrF,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxL,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-schemas.d.ts
|
|
4
|
+
declare const SnowflakeBasicShowSchemasInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicShowSchemasOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicShowSchemas: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicShowSchemas };
|
|
9
|
+
//# sourceMappingURL=show-schemas.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-schemas.d.cts","names":[],"sources":["../../src/actions/show-schemas.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE7C;AAAA,cAYW,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-schemas.d.ts
|
|
4
|
+
declare const SnowflakeBasicShowSchemasInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicShowSchemasOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicShowSchemas: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicShowSchemas };
|
|
9
|
+
//# sourceMappingURL=show-schemas.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-schemas.d.mts","names":[],"sources":["../../src/actions/show-schemas.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE7C;AAAA,cAYW,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cAEW,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-schemas.ts
|
|
4
|
+
const SnowflakeBasicShowSchemasInput = z.object({ database: z.string().describe("The name of the database for which to list schemas.") });
|
|
5
|
+
const SnowflakeBasicShowSchemas_SchemaItemSchema = z.object({
|
|
6
|
+
name: z.string().describe("The name of the schema."),
|
|
7
|
+
owner: z.string().describe("The owner/role that owns this schema."),
|
|
8
|
+
comment: z.string().default("").describe("Any comments associated with the schema.").nullable().optional(),
|
|
9
|
+
options: z.string().default("").describe("Schema options.").nullable().optional(),
|
|
10
|
+
created_on: z.string().describe("When the schema was created."),
|
|
11
|
+
is_current: z.string().describe("Whether this is the current schema (Y/N)."),
|
|
12
|
+
is_default: z.string().describe("Whether this is the default schema (Y/N)."),
|
|
13
|
+
database_name: z.string().describe("The name of the database containing this schema."),
|
|
14
|
+
retention_time: z.string().default("").describe("Data retention time for the schema.").nullable().optional()
|
|
15
|
+
});
|
|
16
|
+
const snowflakeBasicShowSchemas = action("SNOWFLAKE_BASIC_SHOW_SCHEMAS", {
|
|
17
|
+
slug: "snowflake_basic-show-schemas",
|
|
18
|
+
name: "Show schemas",
|
|
19
|
+
description: "Retrieves a list of all schemas within a specified Snowflake database.",
|
|
20
|
+
input: SnowflakeBasicShowSchemasInput,
|
|
21
|
+
output: z.object({ schemas: z.array(SnowflakeBasicShowSchemas_SchemaItemSchema).default([]).describe("A list of schemas found in the specified database, including their metadata.").nullable().optional() })
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { snowflakeBasicShowSchemas };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=show-schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-schemas.mjs","names":[],"sources":["../../src/actions/show-schemas.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicShowSchemasInput: z.ZodTypeAny = z.object({\n database: z.string().describe(\"The name of the database for which to list schemas.\"),\n});\nconst SnowflakeBasicShowSchemas_SchemaItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the schema.\"),\n owner: z.string().describe(\"The owner/role that owns this schema.\"),\n comment: z.string().default(\"\").describe(\"Any comments associated with the schema.\").nullable().optional(),\n options: z.string().default(\"\").describe(\"Schema options.\").nullable().optional(),\n created_on: z.string().describe(\"When the schema was created.\"),\n is_current: z.string().describe(\"Whether this is the current schema (Y/N).\"),\n is_default: z.string().describe(\"Whether this is the default schema (Y/N).\"),\n database_name: z.string().describe(\"The name of the database containing this schema.\"),\n retention_time: z.string().default(\"\").describe(\"Data retention time for the schema.\").nullable().optional(),\n});\nexport const SnowflakeBasicShowSchemasOutput: z.ZodTypeAny = z.object({\n schemas: z.array(SnowflakeBasicShowSchemas_SchemaItemSchema).default([]).describe(\"A list of schemas found in the specified database, including their metadata.\").nullable().optional(),\n});\n\nexport const snowflakeBasicShowSchemas = action(\"SNOWFLAKE_BASIC_SHOW_SCHEMAS\", {\n slug: \"snowflake_basic-show-schemas\",\n name: \"Show schemas\",\n description: \"Retrieves a list of all schemas within a specified Snowflake database.\",\n input: SnowflakeBasicShowSchemasInput,\n output: SnowflakeBasicShowSchemasOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EACrF,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC;AAKD,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxL,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-tables.ts
|
|
4
|
+
const SnowflakeBasicShowTablesInput = zod.z.object({
|
|
5
|
+
database: zod.z.string().describe("The name of the database containing the schema from which to list tables."),
|
|
6
|
+
schema_name: zod.z.string().describe("The name of the schema within the specified database for which to list tables.")
|
|
7
|
+
});
|
|
8
|
+
const SnowflakeBasicShowTables_TableItemSchema = zod.z.object({
|
|
9
|
+
name: zod.z.string().describe("The name of the table."),
|
|
10
|
+
bytes: zod.z.number().int().describe("The size of the table in bytes."),
|
|
11
|
+
rowCount: zod.z.number().int().describe("The total number of rows in the table.")
|
|
12
|
+
});
|
|
13
|
+
const SnowflakeBasicShowTablesOutput = zod.z.object({ tables: zod.z.array(SnowflakeBasicShowTables_TableItemSchema).default([]).describe("A list of tables found in the specified schema, including their names, row counts, and sizes in bytes.").nullable().optional() });
|
|
14
|
+
const snowflakeBasicShowTables = require_action.action("SNOWFLAKE_BASIC_SHOW_TABLES", {
|
|
15
|
+
slug: "snowflake_basic-show-tables",
|
|
16
|
+
name: "Show Tables",
|
|
17
|
+
description: "Retrieves a list of tables, including their row counts and sizes in bytes, from a specified schema within a Snowflake database.",
|
|
18
|
+
input: SnowflakeBasicShowTablesInput,
|
|
19
|
+
output: SnowflakeBasicShowTablesOutput
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.snowflakeBasicShowTables = snowflakeBasicShowTables;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=show-tables.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-tables.cjs","names":["z","action"],"sources":["../../src/actions/show-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicShowTablesInput: z.ZodTypeAny = z.object({\n database: z.string().describe(\"The name of the database containing the schema from which to list tables.\"),\n schema_name: z.string().describe(\"The name of the schema within the specified database for which to list tables.\"),\n});\nconst SnowflakeBasicShowTables_TableItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the table.\"),\n bytes: z.number().int().describe(\"The size of the table in bytes.\"),\n rowCount: z.number().int().describe(\"The total number of rows in the table.\"),\n});\nexport const SnowflakeBasicShowTablesOutput: z.ZodTypeAny = z.object({\n tables: z.array(SnowflakeBasicShowTables_TableItemSchema).default([]).describe(\"A list of tables found in the specified schema, including their names, row counts, and sizes in bytes.\").nullable().optional(),\n});\n\nexport const snowflakeBasicShowTables = action(\"SNOWFLAKE_BASIC_SHOW_TABLES\", {\n slug: \"snowflake_basic-show-tables\",\n name: \"Show Tables\",\n description: \"Retrieves a list of tables, including their row counts and sizes in bytes, from a specified schema within a Snowflake database.\",\n input: SnowflakeBasicShowTablesInput,\n output: SnowflakeBasicShowTablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACzG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;AACnH,CAAC;AACD,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AAC9E,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/M,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-tables.d.ts
|
|
4
|
+
declare const SnowflakeBasicShowTablesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicShowTablesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicShowTables: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicShowTables };
|
|
9
|
+
//# sourceMappingURL=show-tables.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-tables.d.cts","names":[],"sources":["../../src/actions/show-tables.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cAMW,8BAAA,EAAgC,CAAA,CAAE,UAE7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-tables.d.ts
|
|
4
|
+
declare const SnowflakeBasicShowTablesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SnowflakeBasicShowTablesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const snowflakeBasicShowTables: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { snowflakeBasicShowTables };
|
|
9
|
+
//# sourceMappingURL=show-tables.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-tables.d.mts","names":[],"sources":["../../src/actions/show-tables.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cAMW,8BAAA,EAAgC,CAAA,CAAE,UAE7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-tables.ts
|
|
4
|
+
const SnowflakeBasicShowTablesInput = z.object({
|
|
5
|
+
database: z.string().describe("The name of the database containing the schema from which to list tables."),
|
|
6
|
+
schema_name: z.string().describe("The name of the schema within the specified database for which to list tables.")
|
|
7
|
+
});
|
|
8
|
+
const SnowflakeBasicShowTables_TableItemSchema = z.object({
|
|
9
|
+
name: z.string().describe("The name of the table."),
|
|
10
|
+
bytes: z.number().int().describe("The size of the table in bytes."),
|
|
11
|
+
rowCount: z.number().int().describe("The total number of rows in the table.")
|
|
12
|
+
});
|
|
13
|
+
const snowflakeBasicShowTables = action("SNOWFLAKE_BASIC_SHOW_TABLES", {
|
|
14
|
+
slug: "snowflake_basic-show-tables",
|
|
15
|
+
name: "Show Tables",
|
|
16
|
+
description: "Retrieves a list of tables, including their row counts and sizes in bytes, from a specified schema within a Snowflake database.",
|
|
17
|
+
input: SnowflakeBasicShowTablesInput,
|
|
18
|
+
output: z.object({ tables: z.array(SnowflakeBasicShowTables_TableItemSchema).default([]).describe("A list of tables found in the specified schema, including their names, row counts, and sizes in bytes.").nullable().optional() })
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { snowflakeBasicShowTables };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=show-tables.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-tables.mjs","names":[],"sources":["../../src/actions/show-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SnowflakeBasicShowTablesInput: z.ZodTypeAny = z.object({\n database: z.string().describe(\"The name of the database containing the schema from which to list tables.\"),\n schema_name: z.string().describe(\"The name of the schema within the specified database for which to list tables.\"),\n});\nconst SnowflakeBasicShowTables_TableItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the table.\"),\n bytes: z.number().int().describe(\"The size of the table in bytes.\"),\n rowCount: z.number().int().describe(\"The total number of rows in the table.\"),\n});\nexport const SnowflakeBasicShowTablesOutput: z.ZodTypeAny = z.object({\n tables: z.array(SnowflakeBasicShowTables_TableItemSchema).default([]).describe(\"A list of tables found in the specified schema, including their names, row counts, and sizes in bytes.\").nullable().optional(),\n});\n\nexport const snowflakeBasicShowTables = action(\"SNOWFLAKE_BASIC_SHOW_TABLES\", {\n slug: \"snowflake_basic-show-tables\",\n name: \"Show Tables\",\n description: \"Retrieves a list of tables, including their row counts and sizes in bytes, from a specified schema within a Snowflake database.\",\n input: SnowflakeBasicShowTablesInput,\n output: SnowflakeBasicShowTablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACzG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;AACnH,CAAC;AACD,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;AAC9E,CAAC;AAKD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/M,CAOU;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const snowflakeBasic = defineApp({\n slug: \"snowflake_basic\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,kBAAA,uCAAA,CAAA,CAAA,UAAA,CAA2B;CACtC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,cAAA,6BAAc,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,cAAA,6BAAc,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const snowflakeBasic = defineApp({\n slug: \"snowflake_basic\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,iBAAiB,UAAU;CACtC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const snowflakeBasicCatalog = {
|
|
4
|
+
"slug": "snowflake_basic",
|
|
5
|
+
"name": "Snowflake Basic",
|
|
6
|
+
"description": "Snowflake is a cloud-based data warehouse offering elastic scaling, secure data sharing, and SQL analytics across multiple cloud environments",
|
|
7
|
+
"category": "Databases",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/snowflake_basic",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.snowflakeBasicCatalog = snowflakeBasicCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const snowflakeBasicCatalog = {\n \"slug\": \"snowflake_basic\",\n \"name\": \"Snowflake Basic\",\n \"description\": \"Snowflake is a cloud-based data warehouse offering elastic scaling, secure data sharing, and SQL analytics across multiple cloud environments\",\n \"category\": \"Databases\",\n \"logo\": \"https://logos.composio.dev/api/snowflake_basic\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,wBAAwB;CACnC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const snowflakeBasicCatalog: {
|
|
4
|
+
readonly slug: "snowflake_basic";
|
|
5
|
+
readonly name: "Snowflake Basic";
|
|
6
|
+
readonly description: "Snowflake is a cloud-based data warehouse offering elastic scaling, secure data sharing, and SQL analytics across multiple cloud environments";
|
|
7
|
+
readonly category: "Databases";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/snowflake_basic";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { snowflakeBasicCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,qBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const snowflakeBasicCatalog: {
|
|
4
|
+
readonly slug: "snowflake_basic";
|
|
5
|
+
readonly name: "Snowflake Basic";
|
|
6
|
+
readonly description: "Snowflake is a cloud-based data warehouse offering elastic scaling, secure data sharing, and SQL analytics across multiple cloud environments";
|
|
7
|
+
readonly category: "Databases";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/snowflake_basic";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { snowflakeBasicCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,qBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const snowflakeBasicCatalog = {
|
|
4
|
+
"slug": "snowflake_basic",
|
|
5
|
+
"name": "Snowflake Basic",
|
|
6
|
+
"description": "Snowflake is a cloud-based data warehouse offering elastic scaling, secure data sharing, and SQL analytics across multiple cloud environments",
|
|
7
|
+
"category": "Databases",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/snowflake_basic",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { snowflakeBasicCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const snowflakeBasicCatalog = {\n \"slug\": \"snowflake_basic\",\n \"name\": \"Snowflake Basic\",\n \"description\": \"Snowflake is a cloud-based data warehouse offering elastic scaling, secure data sharing, and SQL analytics across multiple cloud environments\",\n \"category\": \"Databases\",\n \"logo\": \"https://logos.composio.dev/api/snowflake_basic\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,wBAAwB;CACnC,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "snowflake_basic";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSnowflakeBasicTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSnowflakeBasicTool = executeSnowflakeBasicTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"snowflake_basic\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSnowflakeBasicTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,0BACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "snowflake_basic";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSnowflakeBasicTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSnowflakeBasicTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"snowflake_basic\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSnowflakeBasicTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,0BACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_describe_table = require("./actions/describe-table.cjs");
|
|
5
|
+
const require_explore_columns = require("./actions/explore-columns.cjs");
|
|
6
|
+
const require_run_query = require("./actions/run-query.cjs");
|
|
7
|
+
const require_show_databases = require("./actions/show-databases.cjs");
|
|
8
|
+
const require_show_schemas = require("./actions/show-schemas.cjs");
|
|
9
|
+
const require_show_tables = require("./actions/show-tables.cjs");
|
|
10
|
+
require("./actions/index.cjs");
|
|
11
|
+
exports.snowflakeBasic = require_app.snowflakeBasic;
|
|
12
|
+
exports.snowflakeBasicCatalog = require_catalog.snowflakeBasicCatalog;
|
|
13
|
+
exports.snowflakeBasicDescribeTable = require_describe_table.snowflakeBasicDescribeTable;
|
|
14
|
+
exports.snowflakeBasicExploreColumns = require_explore_columns.snowflakeBasicExploreColumns;
|
|
15
|
+
exports.snowflakeBasicRunQuery = require_run_query.snowflakeBasicRunQuery;
|
|
16
|
+
exports.snowflakeBasicShowDatabases = require_show_databases.snowflakeBasicShowDatabases;
|
|
17
|
+
exports.snowflakeBasicShowSchemas = require_show_schemas.snowflakeBasicShowSchemas;
|
|
18
|
+
exports.snowflakeBasicShowTables = require_show_tables.snowflakeBasicShowTables;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { snowflakeBasicDescribeTable } from "./actions/describe-table.cjs";
|
|
2
|
+
import { snowflakeBasicExploreColumns } from "./actions/explore-columns.cjs";
|
|
3
|
+
import { snowflakeBasicRunQuery } from "./actions/run-query.cjs";
|
|
4
|
+
import { snowflakeBasicShowDatabases } from "./actions/show-databases.cjs";
|
|
5
|
+
import { snowflakeBasicShowSchemas } from "./actions/show-schemas.cjs";
|
|
6
|
+
import { snowflakeBasicShowTables } from "./actions/show-tables.cjs";
|
|
7
|
+
import { snowflakeBasic } from "./app.cjs";
|
|
8
|
+
import { snowflakeBasicCatalog } from "./catalog.cjs";
|
|
9
|
+
export { snowflakeBasic, snowflakeBasicCatalog, snowflakeBasicDescribeTable, snowflakeBasicExploreColumns, snowflakeBasicRunQuery, snowflakeBasicShowDatabases, snowflakeBasicShowSchemas, snowflakeBasicShowTables };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { snowflakeBasicDescribeTable } from "./actions/describe-table.mjs";
|
|
2
|
+
import { snowflakeBasicExploreColumns } from "./actions/explore-columns.mjs";
|
|
3
|
+
import { snowflakeBasicRunQuery } from "./actions/run-query.mjs";
|
|
4
|
+
import { snowflakeBasicShowDatabases } from "./actions/show-databases.mjs";
|
|
5
|
+
import { snowflakeBasicShowSchemas } from "./actions/show-schemas.mjs";
|
|
6
|
+
import { snowflakeBasicShowTables } from "./actions/show-tables.mjs";
|
|
7
|
+
import { snowflakeBasic } from "./app.mjs";
|
|
8
|
+
import { snowflakeBasicCatalog } from "./catalog.mjs";
|
|
9
|
+
export { snowflakeBasic, snowflakeBasicCatalog, snowflakeBasicDescribeTable, snowflakeBasicExploreColumns, snowflakeBasicRunQuery, snowflakeBasicShowDatabases, snowflakeBasicShowSchemas, snowflakeBasicShowTables };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { snowflakeBasic } from "./app.mjs";
|
|
2
|
+
import { snowflakeBasicCatalog } from "./catalog.mjs";
|
|
3
|
+
import { snowflakeBasicDescribeTable } from "./actions/describe-table.mjs";
|
|
4
|
+
import { snowflakeBasicExploreColumns } from "./actions/explore-columns.mjs";
|
|
5
|
+
import { snowflakeBasicRunQuery } from "./actions/run-query.mjs";
|
|
6
|
+
import { snowflakeBasicShowDatabases } from "./actions/show-databases.mjs";
|
|
7
|
+
import { snowflakeBasicShowSchemas } from "./actions/show-schemas.mjs";
|
|
8
|
+
import { snowflakeBasicShowTables } from "./actions/show-tables.mjs";
|
|
9
|
+
import "./actions/index.mjs";
|
|
10
|
+
export { snowflakeBasic, snowflakeBasicCatalog, snowflakeBasicDescribeTable, snowflakeBasicExploreColumns, snowflakeBasicRunQuery, snowflakeBasicShowDatabases, snowflakeBasicShowSchemas, snowflakeBasicShowTables };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/snowflake_basic",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/snowflake_basic"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|