@keystrokehq/snowflake 0.0.8 → 0.0.15
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/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/{integration-CQNVr6NY.d.mts → integration-D8I5-1eb.d.mts} +2 -28
- package/dist/{integration-BVS1DWxb.mjs → integration-DatCj2fe.mjs} +4 -0
- package/dist/triggers.d.mts +1 -1
- package/dist/triggers.mjs +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as snowflakeOfficialIntegration, i as snowflake, s as snowflakeBundle } from "../integration-
|
|
1
|
+
import { c as snowflakeOfficialIntegration, i as snowflake, s as snowflakeBundle } from "../integration-D8I5-1eb.mjs";
|
|
2
2
|
export { snowflake, snowflakeBundle, snowflakeOfficialIntegration };
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as snowflakeBundle, n as snowflake, o as snowflakeOfficialIntegration } from "../integration-
|
|
1
|
+
import { a as snowflakeBundle, n as snowflake, o as snowflakeOfficialIntegration } from "../integration-DatCj2fe.mjs";
|
|
2
2
|
|
|
3
3
|
export { snowflake, snowflakeBundle, snowflakeOfficialIntegration };
|
package/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as parseSnowflakeCredentials } from "./integration-
|
|
1
|
+
import { t as parseSnowflakeCredentials } from "./integration-DatCj2fe.mjs";
|
|
2
2
|
import { a as extractSnowflakeMessage, c as parseRetryAfterHeader, i as extractSnowflakeCode, n as SnowflakeSqlError, o as extractSnowflakeSqlState, r as classifySnowflakeHttpStatus, s as extractSnowflakeStatementHandle, t as SnowflakeApiError } from "./errors-DKnc9o_a.mjs";
|
|
3
3
|
import { a as createSnowflakeJwt, i as shouldRetry, n as computeBackoffMs, r as defaultSleep, t as DEFAULT_RETRY_POLICY } from "./retry-0hMfb8cC.mjs";
|
|
4
4
|
|
package/dist/connection.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as snowflakeAuthModeSchema, c as snowflakeOfficialIntegration, i as snowflake, n as SnowflakeCredentials, o as snowflakeAuthSchema, r as parseSnowflakeCredentials, s as snowflakeBundle, t as SnowflakeAuthMode } from "./integration-
|
|
1
|
+
import { a as snowflakeAuthModeSchema, c as snowflakeOfficialIntegration, i as snowflake, n as SnowflakeCredentials, o as snowflakeAuthSchema, r as parseSnowflakeCredentials, s as snowflakeBundle, t as SnowflakeAuthMode } from "./integration-D8I5-1eb.mjs";
|
|
2
2
|
export { type SnowflakeAuthMode, type SnowflakeCredentials, parseSnowflakeCredentials, snowflake, snowflakeAuthModeSchema, snowflakeAuthSchema, snowflakeBundle, snowflakeOfficialIntegration };
|
package/dist/connection.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as snowflakeBundle, i as snowflakeAuthSchema, n as snowflake, o as snowflakeOfficialIntegration, r as snowflakeAuthModeSchema, t as parseSnowflakeCredentials } from "./integration-
|
|
1
|
+
import { a as snowflakeBundle, i as snowflakeAuthSchema, n as snowflake, o as snowflakeOfficialIntegration, r as snowflakeAuthModeSchema, t as parseSnowflakeCredentials } from "./integration-DatCj2fe.mjs";
|
|
2
2
|
|
|
3
3
|
export { parseSnowflakeCredentials, snowflake, snowflakeAuthModeSchema, snowflakeAuthSchema, snowflakeBundle, snowflakeOfficialIntegration };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
5
|
|
|
7
6
|
//#region src/integration.d.ts
|
|
@@ -51,6 +50,7 @@ declare const snowflakeOfficialIntegration: {
|
|
|
51
50
|
id: "snowflake";
|
|
52
51
|
name: string;
|
|
53
52
|
description: string;
|
|
53
|
+
credentialType: "manual";
|
|
54
54
|
auth: z.ZodObject<{
|
|
55
55
|
mode: z.ZodEnum<{
|
|
56
56
|
keypair: "keypair";
|
|
@@ -132,33 +132,7 @@ declare const snowflake: _keystrokehq_core0.CredentialSet<"keystroke:snowflake",
|
|
|
132
132
|
SNOWFLAKE_HOST: z.ZodOptional<z.ZodString>;
|
|
133
133
|
SNOWFLAKE_REGION: z.ZodOptional<z.ZodString>;
|
|
134
134
|
SNOWFLAKE_PUBLIC_KEY_FP: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strip
|
|
136
|
-
mode: z.ZodEnum<{
|
|
137
|
-
keypair: "keypair";
|
|
138
|
-
oauth: "oauth";
|
|
139
|
-
pat: "pat";
|
|
140
|
-
basic: "basic";
|
|
141
|
-
}>;
|
|
142
|
-
SNOWFLAKE_ACCOUNT: z.ZodString;
|
|
143
|
-
SNOWFLAKE_USER: z.ZodOptional<z.ZodString>;
|
|
144
|
-
SNOWFLAKE_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
145
|
-
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE: z.ZodOptional<z.ZodString>;
|
|
146
|
-
SNOWFLAKE_PAT: z.ZodOptional<z.ZodString>;
|
|
147
|
-
SNOWFLAKE_PASSWORD: z.ZodOptional<z.ZodString>;
|
|
148
|
-
SNOWFLAKE_OAUTH_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
|
|
149
|
-
SNOWFLAKE_OAUTH_REFRESH_TOKEN: z.ZodOptional<z.ZodString>;
|
|
150
|
-
SNOWFLAKE_OAUTH_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
151
|
-
SNOWFLAKE_OAUTH_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
152
|
-
SNOWFLAKE_OAUTH_TOKEN_URL: z.ZodOptional<z.ZodString>;
|
|
153
|
-
SNOWFLAKE_OAUTH_SCOPES: z.ZodOptional<z.ZodString>;
|
|
154
|
-
SNOWFLAKE_ROLE: z.ZodOptional<z.ZodString>;
|
|
155
|
-
SNOWFLAKE_WAREHOUSE: z.ZodOptional<z.ZodString>;
|
|
156
|
-
SNOWFLAKE_DATABASE: z.ZodOptional<z.ZodString>;
|
|
157
|
-
SNOWFLAKE_SCHEMA: z.ZodOptional<z.ZodString>;
|
|
158
|
-
SNOWFLAKE_HOST: z.ZodOptional<z.ZodString>;
|
|
159
|
-
SNOWFLAKE_REGION: z.ZodOptional<z.ZodString>;
|
|
160
|
-
SNOWFLAKE_PUBLIC_KEY_FP: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>>[] | undefined>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
162
136
|
type SnowflakeCredentials = InferCredentialSetAuth<typeof snowflake>;
|
|
163
137
|
/**
|
|
164
138
|
* Parse raw credential values through the full refinement pipeline. Callers
|
|
@@ -29,6 +29,7 @@ import { CredentialSet } from "@keystrokehq/core";
|
|
|
29
29
|
*/
|
|
30
30
|
const snowflakeS3SnsWebhookCredentialSet = new CredentialSet({
|
|
31
31
|
id: officialCredentialSetId("snowflake-s3-sns-webhook"),
|
|
32
|
+
credentialType: "manual",
|
|
32
33
|
exposure: "platform-only",
|
|
33
34
|
name: "Snowflake Auto-Ingest — AWS SNS",
|
|
34
35
|
auth: z.object({
|
|
@@ -52,6 +53,7 @@ const snowflakeS3SnsWebhookCredentialSet = new CredentialSet({
|
|
|
52
53
|
*/
|
|
53
54
|
const snowflakeGcsPubSubWebhookCredentialSet = new CredentialSet({
|
|
54
55
|
id: officialCredentialSetId("snowflake-gcs-pubsub-webhook"),
|
|
56
|
+
credentialType: "manual",
|
|
55
57
|
exposure: "platform-only",
|
|
56
58
|
name: "Snowflake Auto-Ingest — GCS Pub/Sub",
|
|
57
59
|
auth: z.object({
|
|
@@ -75,6 +77,7 @@ const snowflakeGcsPubSubWebhookCredentialSet = new CredentialSet({
|
|
|
75
77
|
*/
|
|
76
78
|
const snowflakeAzureEventGridWebhookCredentialSet = new CredentialSet({
|
|
77
79
|
id: officialCredentialSetId("snowflake-azure-eventgrid-webhook"),
|
|
80
|
+
credentialType: "manual",
|
|
78
81
|
exposure: "platform-only",
|
|
79
82
|
name: "Snowflake Auto-Ingest — Azure Event Grid",
|
|
80
83
|
auth: z.object({
|
|
@@ -183,6 +186,7 @@ const snowflakeOfficialIntegration = {
|
|
|
183
186
|
id: "snowflake",
|
|
184
187
|
name: "Snowflake",
|
|
185
188
|
description: "Snowflake data cloud: SQL API v2, Snowpipe (file + streaming), warehouses, roles, users, grants, shares, streams, tasks, and administration for Keystroke workflows.",
|
|
189
|
+
credentialType: "manual",
|
|
186
190
|
auth: snowflakeAuthObjectSchema
|
|
187
191
|
};
|
|
188
192
|
const snowflakeBundle = defineOfficialIntegration({
|
package/dist/triggers.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as snowflake } from "./integration-
|
|
1
|
+
import { i as snowflake } from "./integration-D8I5-1eb.mjs";
|
|
2
2
|
import { scheduledDeltaEventSchema, scheduledSqlEventSchema, streamAppendOnlyEventSchema, streamHasDataEventSchema } from "./events.mjs";
|
|
3
3
|
import { RowValue } from "./rows.mjs";
|
|
4
4
|
import { StatusPageOptions } from "./status-page.mjs";
|
package/dist/triggers.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as snowflake } from "./integration-
|
|
1
|
+
import { n as snowflake } from "./integration-DatCj2fe.mjs";
|
|
2
2
|
import { createSnowflakeClient } from "./client.mjs";
|
|
3
3
|
import { grantChangedEventSchema, pipeLoadEventSchema, scheduledDeltaEventSchema, scheduledSqlEventSchema, shareChangedEventSchema, snowflakeDiffSnapshotEntrySchema, snowflakeObjectLifecycleEventSchema, statementCompletedEventSchema, statusPageComponentChangeEventSchema, statusPageIncidentEventSchema, streamAppendOnlyEventSchema, streamHasDataEventSchema, taskRunEventSchema, warehouseCreditsEventSchema, warehouseQueueEventSchema } from "./events.mjs";
|
|
4
4
|
import { executeSql } from "./sql.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/snowflake",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -148,18 +148,18 @@
|
|
|
148
148
|
"LICENSE"
|
|
149
149
|
],
|
|
150
150
|
"dependencies": {
|
|
151
|
-
"@keystrokehq/integration-authoring": "^0.0.
|
|
151
|
+
"@keystrokehq/integration-authoring": "^0.0.9",
|
|
152
152
|
"zod": "^4.3.6"
|
|
153
153
|
},
|
|
154
154
|
"peerDependencies": {
|
|
155
|
-
"@keystrokehq/core": ">=0.0.
|
|
155
|
+
"@keystrokehq/core": ">=0.0.13 <0.1.0"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
158
|
"@types/node": "^22.19.11",
|
|
159
159
|
"tsdown": "^0.20.3",
|
|
160
160
|
"typescript": "^5.9.3",
|
|
161
161
|
"vitest": "^4.0.18",
|
|
162
|
-
"@keystrokehq/core": "^0.0.
|
|
162
|
+
"@keystrokehq/core": "^0.0.13",
|
|
163
163
|
"@keystrokehq/test-utils": "0.0.0",
|
|
164
164
|
"@keystrokehq/typescript-config": "0.0.0"
|
|
165
165
|
},
|