@keystrokehq/snowflake 0.0.1
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 +247 -0
- package/dist/_official/index.d.mts +2 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +1 -0
- package/dist/_runtime/index.mjs +1 -0
- package/dist/accounts.d.mts +40 -0
- package/dist/accounts.mjs +51 -0
- package/dist/bulk.d.mts +71 -0
- package/dist/bulk.mjs +65 -0
- package/dist/catalog.d.mts +144 -0
- package/dist/catalog.mjs +158 -0
- package/dist/client.d.mts +44 -0
- package/dist/client.mjs +273 -0
- package/dist/common-BnKTPQXc.mjs +92 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/databases.d.mts +2 -0
- package/dist/databases.mjs +3 -0
- package/dist/errors-DKnc9o_a.mjs +95 -0
- package/dist/events.d.mts +382 -0
- package/dist/events.mjs +291 -0
- package/dist/file-formats.d.mts +39 -0
- package/dist/file-formats.mjs +48 -0
- package/dist/functions.d.mts +53 -0
- package/dist/functions.mjs +56 -0
- package/dist/grants.d.mts +93 -0
- package/dist/grants.mjs +102 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-CCWMSTlO.d.mts +170 -0
- package/dist/integration-Dptv8L0L.mjs +207 -0
- package/dist/org-admin.d.mts +80 -0
- package/dist/org-admin.mjs +79 -0
- package/dist/pipes.d.mts +119 -0
- package/dist/pipes.mjs +106 -0
- package/dist/procedures.d.mts +61 -0
- package/dist/procedures.mjs +79 -0
- package/dist/results.d.mts +16 -0
- package/dist/results.mjs +64 -0
- package/dist/retry-0hMfb8cC.mjs +164 -0
- package/dist/retry-w7cTp1QL.d.mts +10 -0
- package/dist/roles.d.mts +60 -0
- package/dist/roles.mjs +74 -0
- package/dist/rows.d.mts +106 -0
- package/dist/rows.mjs +223 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +4 -0
- package/dist/schemas-catalog.d.mts +2 -0
- package/dist/schemas-catalog.mjs +3 -0
- package/dist/shares.d.mts +56 -0
- package/dist/shares.mjs +77 -0
- package/dist/sql-options-2k5xQ-oS.d.mts +32 -0
- package/dist/sql-options-DI-OmLU6.mjs +79 -0
- package/dist/sql-safety-CywdR3EP.mjs +56 -0
- package/dist/sql.d.mts +84 -0
- package/dist/sql.mjs +209 -0
- package/dist/stages.d.mts +64 -0
- package/dist/stages.mjs +81 -0
- package/dist/statements-B2ThF_4b.mjs +81 -0
- package/dist/statements-DJL0qVNA.d.mts +238 -0
- package/dist/status-page.d.mts +510 -0
- package/dist/status-page.mjs +261 -0
- package/dist/streaming.d.mts +70 -0
- package/dist/streaming.mjs +56 -0
- package/dist/streams.d.mts +71 -0
- package/dist/streams.mjs +78 -0
- package/dist/tables.d.mts +2 -0
- package/dist/tables.mjs +3 -0
- package/dist/tasks.d.mts +79 -0
- package/dist/tasks.mjs +104 -0
- package/dist/triggers.d.mts +578 -0
- package/dist/triggers.mjs +1363 -0
- package/dist/users.d.mts +61 -0
- package/dist/users.mjs +67 -0
- package/dist/verification.d.mts +201 -0
- package/dist/verification.mjs +512 -0
- package/dist/views.d.mts +2 -0
- package/dist/views.mjs +3 -0
- package/dist/warehouses.d.mts +68 -0
- package/dist/warehouses.mjs +101 -0
- package/package.json +190 -0
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
import { i as snowflake } from "./integration-CCWMSTlO.mjs";
|
|
2
|
+
import { scheduledDeltaEventSchema, scheduledSqlEventSchema, snowpipeObjectBatchSchema, streamAppendOnlyEventSchema, streamHasDataEventSchema } from "./events.mjs";
|
|
3
|
+
import { RowValue } from "./rows.mjs";
|
|
4
|
+
import { StatusPageOptions } from "./status-page.mjs";
|
|
5
|
+
import { VerifyEventGridRequestOptions, VerifyPubSubPushOptions, VerifySnsMessageOptions } from "./verification.mjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
8
|
+
import { BoundTrigger, CredentialSet } from "@keystrokehq/core";
|
|
9
|
+
import { IntegrationTriggerBindingOptions, createPollingTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
10
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
11
|
+
import { AnyCredentialSet, InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
12
|
+
import { PollingTriggerManifest, WebhookRequest, WebhookTriggerManifest } from "@keystrokehq/core/trigger";
|
|
13
|
+
|
|
14
|
+
//#region src/webhook-credentials.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* AWS SNS webhook credentials.
|
|
17
|
+
*
|
|
18
|
+
* SNS verifies message authenticity via an X.509 signature whose public
|
|
19
|
+
* cert is published at an SNS-hosted URL. The only real secret is the
|
|
20
|
+
* optional {@link expectedTopicArn}: tight-scoping to a single topic
|
|
21
|
+
* prevents an attacker that fooled SNS signing (not possible absent a
|
|
22
|
+
* certificate compromise) from posting events from an unrelated topic.
|
|
23
|
+
*/
|
|
24
|
+
declare const snowflakeS3SnsWebhookCredentialSet: CredentialSet<"snowflake-s3-sns-webhook", z.ZodObject<{
|
|
25
|
+
expectedTopicArn: z.ZodOptional<z.ZodString>;
|
|
26
|
+
allowedSigningCertHostPattern: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
27
|
+
autoConfirmSubscriptions: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
28
|
+
true: "true";
|
|
29
|
+
false: "false";
|
|
30
|
+
}>>>;
|
|
31
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
32
|
+
expectedTopicArn: z.ZodOptional<z.ZodString>;
|
|
33
|
+
allowedSigningCertHostPattern: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
34
|
+
autoConfirmSubscriptions: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
35
|
+
true: "true";
|
|
36
|
+
false: "false";
|
|
37
|
+
}>>>;
|
|
38
|
+
}, z.core.$strip>>[] | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* GCP Pub/Sub push subscriptions sign each request with a Google-minted
|
|
41
|
+
* OIDC JWT (RS256) in the `Authorization` header. Verification requires
|
|
42
|
+
* knowing:
|
|
43
|
+
*
|
|
44
|
+
* - `expectedAudience`: the OIDC audience configured on the push
|
|
45
|
+
* subscription (commonly the webhook URL itself).
|
|
46
|
+
* - `expectedServiceAccount`: the push subscription's service-account
|
|
47
|
+
* email, which appears as the JWT `email` claim.
|
|
48
|
+
*
|
|
49
|
+
* Both are public identifiers, but pinning them prevents an attacker
|
|
50
|
+
* with any valid Google OIDC token from impersonating the subscription.
|
|
51
|
+
*/
|
|
52
|
+
declare const snowflakeGcsPubSubWebhookCredentialSet: CredentialSet<"snowflake-gcs-pubsub-webhook", z.ZodObject<{
|
|
53
|
+
expectedAudience: z.ZodString;
|
|
54
|
+
expectedServiceAccount: z.ZodString;
|
|
55
|
+
jwksUri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
56
|
+
issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
57
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
58
|
+
expectedAudience: z.ZodString;
|
|
59
|
+
expectedServiceAccount: z.ZodString;
|
|
60
|
+
jwksUri: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
61
|
+
issuer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>>[] | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Azure Event Grid authenticates webhook endpoints via one-time
|
|
65
|
+
* handshake validation (validation code or URL) rather than per-request
|
|
66
|
+
* signatures. If the operator wires a **shared secret** into the
|
|
67
|
+
* Event Grid subscription as a custom header, that secret can be
|
|
68
|
+
* checked here as a defence-in-depth measure.
|
|
69
|
+
*
|
|
70
|
+
* Event Grid's synchronous handshake (`SubscriptionValidationEvent`) is
|
|
71
|
+
* not fulfillable through the Keystroke static-response webhook
|
|
72
|
+
* primitive; Snowflake operators should use **manual handshake** or
|
|
73
|
+
* Cloud-Events schema. See `IMPLEMENTATION_NOTES.md` § trigger webhooks.
|
|
74
|
+
*/
|
|
75
|
+
declare const snowflakeAzureEventGridWebhookCredentialSet: CredentialSet<"snowflake-azure-eventgrid-webhook", z.ZodObject<{
|
|
76
|
+
sharedSecret: z.ZodOptional<z.ZodString>;
|
|
77
|
+
sharedSecretHeader: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
78
|
+
expectedTopicArn: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
80
|
+
sharedSecret: z.ZodOptional<z.ZodString>;
|
|
81
|
+
sharedSecretHeader: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
82
|
+
expectedTopicArn: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>[] | undefined>;
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/triggers.d.ts
|
|
86
|
+
type Schedule = Parameters<typeof createPollingTriggerBindingFactory>[0]['schedule'];
|
|
87
|
+
type SnowflakeCredentialSets = readonly [typeof snowflake];
|
|
88
|
+
type SnowflakePollingBoundTrigger<TResponse extends z.ZodTypeAny, TOutput = z.output<TResponse>> = BoundTrigger<z.output<TResponse>, SnowflakeCredentialSets, PollingTriggerManifest, TOutput>;
|
|
89
|
+
type SnowflakeWebhookBoundTrigger<TPayloadSchema extends z.ZodTypeAny, TCredentialSets extends readonly [typeof snowflake, ...AnyCredentialSet[]], TOutput = SnowpipeObjectBatchOutput> = BoundTrigger<z.output<TPayloadSchema>, TCredentialSets, WebhookTriggerManifest, TOutput, WebhookRequest>;
|
|
90
|
+
interface SnowflakePollingBindingOptions<TResponse extends z.ZodTypeAny, TOutput = z.output<TResponse>> extends IntegrationTriggerBindingOptions<z.output<TResponse>, TOutput> {
|
|
91
|
+
readonly schedule?: Schedule;
|
|
92
|
+
}
|
|
93
|
+
interface StreamHasNewRowsParams {
|
|
94
|
+
readonly streamName: string;
|
|
95
|
+
readonly database?: string;
|
|
96
|
+
readonly schema?: string;
|
|
97
|
+
readonly warehouse?: string;
|
|
98
|
+
readonly role?: string;
|
|
99
|
+
}
|
|
100
|
+
declare function streamHasNewRows<TOutput = z.output<typeof streamHasDataEventSchema>>(input: StreamHasNewRowsParams & SnowflakePollingBindingOptions<typeof streamHasDataEventSchema, TOutput>): SnowflakePollingBoundTrigger<typeof streamHasDataEventSchema, TOutput>;
|
|
101
|
+
interface StreamAppendOnlyParams {
|
|
102
|
+
readonly streamName: string;
|
|
103
|
+
readonly database?: string;
|
|
104
|
+
readonly schema?: string;
|
|
105
|
+
readonly warehouse?: string;
|
|
106
|
+
readonly role?: string;
|
|
107
|
+
readonly limit?: number;
|
|
108
|
+
/** Extra WHERE fragment appended after the default `METADATA$ACTION = 'INSERT'` clause. */
|
|
109
|
+
readonly where?: string;
|
|
110
|
+
}
|
|
111
|
+
declare function streamAppendOnly<TOutput = z.output<typeof streamAppendOnlyEventSchema>>(input: StreamAppendOnlyParams & SnowflakePollingBindingOptions<typeof streamAppendOnlyEventSchema, TOutput>): SnowflakePollingBoundTrigger<typeof streamAppendOnlyEventSchema, TOutput>;
|
|
112
|
+
interface ScheduledSqlParams {
|
|
113
|
+
readonly statement: string;
|
|
114
|
+
readonly warehouse?: string;
|
|
115
|
+
readonly role?: string;
|
|
116
|
+
readonly database?: string;
|
|
117
|
+
readonly schema?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Positional bindings for `?` placeholders in {@link statement}. Values
|
|
120
|
+
* flow through `BindingBuilder` (same type inference as `insertRow`).
|
|
121
|
+
*/
|
|
122
|
+
readonly bindings?: readonly RowValue[];
|
|
123
|
+
/** When true, emit even if the statement returns zero rows. Default false. */
|
|
124
|
+
readonly emitOnEmpty?: boolean;
|
|
125
|
+
}
|
|
126
|
+
declare function scheduledSql<TOutput = z.output<typeof scheduledSqlEventSchema>>(input: ScheduledSqlParams & SnowflakePollingBindingOptions<typeof scheduledSqlEventSchema, TOutput>): SnowflakePollingBoundTrigger<typeof scheduledSqlEventSchema, TOutput>;
|
|
127
|
+
interface ScheduledDeltaParams {
|
|
128
|
+
readonly table: string;
|
|
129
|
+
readonly cursorColumn: string;
|
|
130
|
+
readonly database?: string;
|
|
131
|
+
readonly schema?: string;
|
|
132
|
+
readonly warehouse?: string;
|
|
133
|
+
readonly role?: string;
|
|
134
|
+
readonly columns?: readonly string[];
|
|
135
|
+
/** Extra WHERE fragment appended to the high-water comparison. */
|
|
136
|
+
readonly where?: string;
|
|
137
|
+
readonly limit?: number;
|
|
138
|
+
/** Initial high-water value (used only on the first poll). */
|
|
139
|
+
readonly initialHighWater?: string | number;
|
|
140
|
+
}
|
|
141
|
+
declare function scheduledDelta<TOutput = z.output<typeof scheduledDeltaEventSchema>>(input: ScheduledDeltaParams & SnowflakePollingBindingOptions<typeof scheduledDeltaEventSchema, TOutput>): SnowflakePollingBoundTrigger<typeof scheduledDeltaEventSchema, TOutput>;
|
|
142
|
+
interface TaskRunCompletedParams {
|
|
143
|
+
readonly taskName?: string;
|
|
144
|
+
readonly database?: string;
|
|
145
|
+
readonly schema?: string;
|
|
146
|
+
readonly warehouse?: string;
|
|
147
|
+
readonly role?: string;
|
|
148
|
+
/** Initial lookback when no prior poll exists — defaults to 1 hour. */
|
|
149
|
+
readonly lookbackMinutes?: number;
|
|
150
|
+
/** Max rows per poll. Defaults to 200. */
|
|
151
|
+
readonly limit?: number;
|
|
152
|
+
/** Restrict to terminal states (default: `['SUCCEEDED', 'FAILED', 'FAILED_AND_AUTO_SUSPENDED', 'CANCELLED']`). */
|
|
153
|
+
readonly states?: readonly string[];
|
|
154
|
+
}
|
|
155
|
+
declare const taskRunEventsBatchSchema: z.ZodObject<{
|
|
156
|
+
events: z.ZodArray<z.ZodObject<{
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
databaseName: z.ZodOptional<z.ZodString>;
|
|
159
|
+
schemaName: z.ZodOptional<z.ZodString>;
|
|
160
|
+
state: z.ZodString;
|
|
161
|
+
queryId: z.ZodOptional<z.ZodString>;
|
|
162
|
+
scheduledTime: z.ZodOptional<z.ZodString>;
|
|
163
|
+
completedTime: z.ZodOptional<z.ZodString>;
|
|
164
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
+
attemptNumber: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
168
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
169
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
170
|
+
highWaterValue: z.ZodNullable<z.ZodString>;
|
|
171
|
+
fetchedAt: z.ZodString;
|
|
172
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
173
|
+
declare function taskRunCompleted<TOutput = z.output<typeof taskRunEventsBatchSchema>>(input?: TaskRunCompletedParams & SnowflakePollingBindingOptions<typeof taskRunEventsBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof taskRunEventsBatchSchema, TOutput>;
|
|
174
|
+
interface StatementCompletedParams {
|
|
175
|
+
readonly warehouse?: string;
|
|
176
|
+
readonly role?: string;
|
|
177
|
+
readonly database?: string;
|
|
178
|
+
readonly schema?: string;
|
|
179
|
+
readonly userName?: string;
|
|
180
|
+
readonly queryTextLike?: string;
|
|
181
|
+
readonly lookbackMinutes?: number;
|
|
182
|
+
readonly limit?: number;
|
|
183
|
+
readonly executionStatuses?: readonly string[];
|
|
184
|
+
/** Set to `true` to include pending / running statements (default: terminal only). */
|
|
185
|
+
readonly includeInFlight?: boolean;
|
|
186
|
+
}
|
|
187
|
+
declare const statementCompletedBatchSchema: z.ZodObject<{
|
|
188
|
+
events: z.ZodArray<z.ZodObject<{
|
|
189
|
+
queryId: z.ZodString;
|
|
190
|
+
executionStatus: z.ZodString;
|
|
191
|
+
queryText: z.ZodOptional<z.ZodString>;
|
|
192
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
startTime: z.ZodOptional<z.ZodString>;
|
|
195
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
196
|
+
warehouseName: z.ZodOptional<z.ZodString>;
|
|
197
|
+
databaseName: z.ZodOptional<z.ZodString>;
|
|
198
|
+
schemaName: z.ZodOptional<z.ZodString>;
|
|
199
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
200
|
+
roleName: z.ZodOptional<z.ZodString>;
|
|
201
|
+
totalElapsedTimeMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
202
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
203
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
204
|
+
highWaterValue: z.ZodNullable<z.ZodString>;
|
|
205
|
+
fetchedAt: z.ZodString;
|
|
206
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
207
|
+
declare function statementCompleted<TOutput = z.output<typeof statementCompletedBatchSchema>>(input?: StatementCompletedParams & SnowflakePollingBindingOptions<typeof statementCompletedBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof statementCompletedBatchSchema, TOutput>;
|
|
208
|
+
interface PipeLoadParams {
|
|
209
|
+
readonly pipeName?: string;
|
|
210
|
+
readonly database?: string;
|
|
211
|
+
readonly schema?: string;
|
|
212
|
+
readonly tableName?: string;
|
|
213
|
+
readonly warehouse?: string;
|
|
214
|
+
readonly role?: string;
|
|
215
|
+
readonly lookbackMinutes?: number;
|
|
216
|
+
readonly limit?: number;
|
|
217
|
+
}
|
|
218
|
+
declare const pipeLoadBatchSchema: z.ZodObject<{
|
|
219
|
+
events: z.ZodArray<z.ZodObject<{
|
|
220
|
+
pipeName: z.ZodString;
|
|
221
|
+
filePath: z.ZodString;
|
|
222
|
+
status: z.ZodString;
|
|
223
|
+
loadTime: z.ZodOptional<z.ZodString>;
|
|
224
|
+
rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
225
|
+
rowParsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
226
|
+
errorLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
227
|
+
errorsSeen: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
228
|
+
firstErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
firstErrorLineNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
230
|
+
firstErrorColumnName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
232
|
+
stageLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
234
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
235
|
+
highWaterValue: z.ZodNullable<z.ZodString>;
|
|
236
|
+
fetchedAt: z.ZodString;
|
|
237
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
238
|
+
declare function pipeLoadCompleted<TOutput = z.output<typeof pipeLoadBatchSchema>>(input?: PipeLoadParams & SnowflakePollingBindingOptions<typeof pipeLoadBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof pipeLoadBatchSchema, TOutput>;
|
|
239
|
+
declare function pipeLoadFailed<TOutput = z.output<typeof pipeLoadBatchSchema>>(input?: PipeLoadParams & SnowflakePollingBindingOptions<typeof pipeLoadBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof pipeLoadBatchSchema, TOutput>;
|
|
240
|
+
interface LifecycleParams {
|
|
241
|
+
readonly database?: string;
|
|
242
|
+
readonly schema?: string;
|
|
243
|
+
readonly warehouse?: string;
|
|
244
|
+
readonly role?: string;
|
|
245
|
+
readonly like?: string;
|
|
246
|
+
/** Surface every currently-present row on the first poll. Default false. */
|
|
247
|
+
readonly emitInitialSnapshot?: boolean;
|
|
248
|
+
}
|
|
249
|
+
interface LifecycleTableParams extends LifecycleParams {
|
|
250
|
+
readonly in?: {
|
|
251
|
+
readonly database?: string;
|
|
252
|
+
readonly schema?: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
declare const lifecycleBatchSchema: z.ZodObject<{
|
|
256
|
+
events: z.ZodArray<z.ZodObject<{
|
|
257
|
+
kind: z.ZodString;
|
|
258
|
+
name: z.ZodString;
|
|
259
|
+
change: z.ZodEnum<{
|
|
260
|
+
created: "created";
|
|
261
|
+
dropped: "dropped";
|
|
262
|
+
}>;
|
|
263
|
+
identity: z.ZodString;
|
|
264
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
265
|
+
createdOn: z.ZodOptional<z.ZodString>;
|
|
266
|
+
detectedAt: z.ZodString;
|
|
267
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
268
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
269
|
+
snapshot: z.ZodArray<z.ZodObject<{
|
|
270
|
+
identity: z.ZodString;
|
|
271
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
273
|
+
fetchedAt: z.ZodString;
|
|
274
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
275
|
+
declare function userCreated<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
276
|
+
declare function userDropped<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
277
|
+
declare function roleCreated<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
278
|
+
declare function roleDropped<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
279
|
+
declare function databaseCreated<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
280
|
+
declare function databaseDropped<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
281
|
+
declare function tableCreated<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleTableParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
282
|
+
declare function tableDropped<TOutput = z.output<typeof lifecycleBatchSchema>>(input?: LifecycleTableParams & SnowflakePollingBindingOptions<typeof lifecycleBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof lifecycleBatchSchema, TOutput>;
|
|
283
|
+
interface ShareChangedParams {
|
|
284
|
+
readonly warehouse?: string;
|
|
285
|
+
readonly role?: string;
|
|
286
|
+
readonly like?: string;
|
|
287
|
+
readonly emitInitialSnapshot?: boolean;
|
|
288
|
+
}
|
|
289
|
+
declare const shareChangedBatchSchema: z.ZodObject<{
|
|
290
|
+
events: z.ZodArray<z.ZodObject<{
|
|
291
|
+
name: z.ZodString;
|
|
292
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
293
|
+
change: z.ZodEnum<{
|
|
294
|
+
created: "created";
|
|
295
|
+
dropped: "dropped";
|
|
296
|
+
modified: "modified";
|
|
297
|
+
}>;
|
|
298
|
+
identity: z.ZodString;
|
|
299
|
+
detectedAt: z.ZodString;
|
|
300
|
+
previousRow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
301
|
+
currentRow: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
302
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
303
|
+
snapshot: z.ZodArray<z.ZodObject<{
|
|
304
|
+
identity: z.ZodString;
|
|
305
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
307
|
+
fetchedAt: z.ZodString;
|
|
308
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
309
|
+
declare function shareChanged<TOutput = z.output<typeof shareChangedBatchSchema>>(input?: ShareChangedParams & SnowflakePollingBindingOptions<typeof shareChangedBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof shareChangedBatchSchema, TOutput>;
|
|
310
|
+
interface GrantsChangedParams {
|
|
311
|
+
readonly grantee: {
|
|
312
|
+
readonly role: string;
|
|
313
|
+
} | {
|
|
314
|
+
readonly user: string;
|
|
315
|
+
} | {
|
|
316
|
+
readonly share: string;
|
|
317
|
+
};
|
|
318
|
+
readonly warehouse?: string;
|
|
319
|
+
readonly sessionRole?: string;
|
|
320
|
+
}
|
|
321
|
+
declare const grantsChangedBatchSchema: z.ZodObject<{
|
|
322
|
+
events: z.ZodArray<z.ZodObject<{
|
|
323
|
+
privilege: z.ZodString;
|
|
324
|
+
grantedOn: z.ZodString;
|
|
325
|
+
objectName: z.ZodString;
|
|
326
|
+
granteeName: z.ZodString;
|
|
327
|
+
granteeType: z.ZodOptional<z.ZodString>;
|
|
328
|
+
change: z.ZodEnum<{
|
|
329
|
+
granted: "granted";
|
|
330
|
+
revoked: "revoked";
|
|
331
|
+
}>;
|
|
332
|
+
identity: z.ZodString;
|
|
333
|
+
detectedAt: z.ZodString;
|
|
334
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
335
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
336
|
+
snapshot: z.ZodArray<z.ZodObject<{
|
|
337
|
+
identity: z.ZodString;
|
|
338
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
340
|
+
fetchedAt: z.ZodString;
|
|
341
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
342
|
+
declare function grantsChanged<TOutput = z.output<typeof grantsChangedBatchSchema>>(input: GrantsChangedParams & SnowflakePollingBindingOptions<typeof grantsChangedBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof grantsChangedBatchSchema, TOutput>;
|
|
343
|
+
interface WarehouseMetricsParams {
|
|
344
|
+
readonly warehouseName?: string;
|
|
345
|
+
readonly warehouse?: string;
|
|
346
|
+
readonly role?: string;
|
|
347
|
+
readonly database?: string;
|
|
348
|
+
readonly schema?: string;
|
|
349
|
+
readonly lookbackMinutes?: number;
|
|
350
|
+
readonly limit?: number;
|
|
351
|
+
/** Emit only when the threshold field exceeds this value (inclusive). */
|
|
352
|
+
readonly minimum?: number;
|
|
353
|
+
}
|
|
354
|
+
declare const warehouseCreditsBatchSchema: z.ZodObject<{
|
|
355
|
+
events: z.ZodArray<z.ZodObject<{
|
|
356
|
+
warehouseName: z.ZodString;
|
|
357
|
+
startTime: z.ZodOptional<z.ZodString>;
|
|
358
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
359
|
+
creditsUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
360
|
+
creditsUsedCompute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
361
|
+
creditsUsedCloudServices: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
362
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
363
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
364
|
+
highWaterValue: z.ZodNullable<z.ZodString>;
|
|
365
|
+
fetchedAt: z.ZodString;
|
|
366
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
367
|
+
declare const warehouseQueueBatchSchema: z.ZodObject<{
|
|
368
|
+
events: z.ZodArray<z.ZodObject<{
|
|
369
|
+
warehouseName: z.ZodString;
|
|
370
|
+
startTime: z.ZodOptional<z.ZodString>;
|
|
371
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
372
|
+
avgRunning: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
373
|
+
avgQueuedLoad: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
374
|
+
avgQueuedProvisioning: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
375
|
+
avgBlocked: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
376
|
+
row: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
377
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
378
|
+
highWaterValue: z.ZodNullable<z.ZodString>;
|
|
379
|
+
fetchedAt: z.ZodString;
|
|
380
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
381
|
+
declare function warehouseCreditsUsage<TOutput = z.output<typeof warehouseCreditsBatchSchema>>(input?: WarehouseMetricsParams & SnowflakePollingBindingOptions<typeof warehouseCreditsBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof warehouseCreditsBatchSchema, TOutput>;
|
|
382
|
+
declare function warehouseQueueDepth<TOutput = z.output<typeof warehouseQueueBatchSchema>>(input?: WarehouseMetricsParams & SnowflakePollingBindingOptions<typeof warehouseQueueBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof warehouseQueueBatchSchema, TOutput>;
|
|
383
|
+
interface StatusPagePollingParams extends StatusPageOptions {
|
|
384
|
+
readonly emitInitialSnapshot?: boolean;
|
|
385
|
+
}
|
|
386
|
+
declare const statusPageIncidentBatchSchema: z.ZodObject<{
|
|
387
|
+
events: z.ZodArray<z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
name: z.ZodString;
|
|
390
|
+
status: z.ZodString;
|
|
391
|
+
impact: z.ZodOptional<z.ZodString>;
|
|
392
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
393
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
394
|
+
resolvedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
395
|
+
shortlink: z.ZodOptional<z.ZodString>;
|
|
396
|
+
detectedAt: z.ZodString;
|
|
397
|
+
raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
398
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
399
|
+
snapshot: z.ZodArray<z.ZodObject<{
|
|
400
|
+
identity: z.ZodString;
|
|
401
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
403
|
+
fetchedAt: z.ZodString;
|
|
404
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
405
|
+
declare const statusPageComponentChangeBatchSchema: z.ZodObject<{
|
|
406
|
+
events: z.ZodArray<z.ZodObject<{
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
name: z.ZodString;
|
|
409
|
+
previousStatus: z.ZodNullable<z.ZodString>;
|
|
410
|
+
currentStatus: z.ZodString;
|
|
411
|
+
description: z.ZodOptional<z.ZodString>;
|
|
412
|
+
changedAt: z.ZodString;
|
|
413
|
+
detectedAt: z.ZodString;
|
|
414
|
+
raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
415
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
416
|
+
snapshot: z.ZodArray<z.ZodObject<{
|
|
417
|
+
identity: z.ZodString;
|
|
418
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
419
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
420
|
+
fetchedAt: z.ZodString;
|
|
421
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
422
|
+
/**
|
|
423
|
+
* Status-page pollers don't need Snowflake credentials, but they still
|
|
424
|
+
* flow through the Snowflake binding factory so they show up in the
|
|
425
|
+
* polling manifest alongside the rest. Credentials are declared but
|
|
426
|
+
* unused — the poll callback ignores `ctx.credentials.snowflake`.
|
|
427
|
+
*/
|
|
428
|
+
declare function statusPageIncident<TOutput = z.output<typeof statusPageIncidentBatchSchema>>(input?: StatusPagePollingParams & SnowflakePollingBindingOptions<typeof statusPageIncidentBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof statusPageIncidentBatchSchema, TOutput>;
|
|
429
|
+
declare function statusPageComponentChanged<TOutput = z.output<typeof statusPageComponentChangeBatchSchema>>(input?: StatusPagePollingParams & SnowflakePollingBindingOptions<typeof statusPageComponentChangeBatchSchema, TOutput>): SnowflakePollingBoundTrigger<typeof statusPageComponentChangeBatchSchema, TOutput>;
|
|
430
|
+
/**
|
|
431
|
+
* Shape of the event emitted by an auto-ingest webhook trigger. Same
|
|
432
|
+
* envelope across the 3 clouds so downstream pipelines can branch on
|
|
433
|
+
* `provider` without re-modelling.
|
|
434
|
+
*/
|
|
435
|
+
type SnowpipeObjectBatchOutput = z.output<typeof snowpipeObjectBatchSchema>;
|
|
436
|
+
type SnowpipeWebhookRequest = _keystrokehq_core0.WebhookRequest;
|
|
437
|
+
interface WebhookBindingOptions<TOutput = SnowpipeObjectBatchOutput> extends IntegrationTriggerBindingOptions<SnowpipeObjectBatchOutput, TOutput, SnowpipeWebhookRequest> {
|
|
438
|
+
/**
|
|
439
|
+
* Override the default `/snowflake/...` path suffix. The router serves
|
|
440
|
+
* webhooks at `/api/v1/webhooks/{orgId}{path}` so authors only supply the
|
|
441
|
+
* suffix that follows the organization id.
|
|
442
|
+
*/
|
|
443
|
+
readonly path?: string;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* The public SNS payload schema accepted by this trigger. SNS delivers
|
|
447
|
+
* an application/json body; we validate it before signature-checking.
|
|
448
|
+
*/
|
|
449
|
+
declare const snsWebhookPayloadSchema: z.ZodObject<{
|
|
450
|
+
Type: z.ZodEnum<{
|
|
451
|
+
Notification: "Notification";
|
|
452
|
+
SubscriptionConfirmation: "SubscriptionConfirmation";
|
|
453
|
+
UnsubscribeConfirmation: "UnsubscribeConfirmation";
|
|
454
|
+
}>;
|
|
455
|
+
MessageId: z.ZodString;
|
|
456
|
+
TopicArn: z.ZodString;
|
|
457
|
+
Message: z.ZodString;
|
|
458
|
+
Timestamp: z.ZodString;
|
|
459
|
+
SignatureVersion: z.ZodString;
|
|
460
|
+
Signature: z.ZodString;
|
|
461
|
+
SigningCertURL: z.ZodString;
|
|
462
|
+
Subject: z.ZodOptional<z.ZodString>;
|
|
463
|
+
Token: z.ZodOptional<z.ZodString>;
|
|
464
|
+
SubscribeURL: z.ZodOptional<z.ZodString>;
|
|
465
|
+
UnsubscribeURL: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
467
|
+
/**
|
|
468
|
+
* `triggers.autoIngestS3Sns` — receives AWS SNS HTTPS deliveries,
|
|
469
|
+
* verifies the SNS signature against the signing certificate, and
|
|
470
|
+
* emits normalized S3 object events. Subscription-confirmation
|
|
471
|
+
* messages are surfaced via a sentinel event of type
|
|
472
|
+
* `SubscriptionConfirmation` so operators can auto-confirm in
|
|
473
|
+
* downstream logic.
|
|
474
|
+
*/
|
|
475
|
+
declare function autoIngestS3Sns<TOutput = SnowpipeObjectBatchOutput>(input?: WebhookBindingOptions<TOutput> & {
|
|
476
|
+
/** Test seam — injected verifier overrides. Not persisted. */readonly verifierOptions?: VerifySnsMessageOptions;
|
|
477
|
+
}): SnowflakeWebhookBoundTrigger<typeof snsWebhookPayloadSchema, readonly [typeof snowflake, typeof snowflakeS3SnsWebhookCredentialSet], TOutput>;
|
|
478
|
+
declare const gcsWebhookPayloadSchema: z.ZodObject<{
|
|
479
|
+
message: z.ZodObject<{
|
|
480
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
481
|
+
publishTime: z.ZodOptional<z.ZodString>;
|
|
482
|
+
data: z.ZodOptional<z.ZodString>;
|
|
483
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
484
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
485
|
+
subscription: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
487
|
+
/**
|
|
488
|
+
* `triggers.autoIngestGcsPubSub` — receives GCP Pub/Sub push deliveries,
|
|
489
|
+
* verifies the Google-signed OIDC JWT against Google's JWKS, and
|
|
490
|
+
* emits normalized GCS object events extracted from the Pub/Sub
|
|
491
|
+
* message body.
|
|
492
|
+
*/
|
|
493
|
+
declare function autoIngestGcsPubSub<TOutput = SnowpipeObjectBatchOutput>(input?: WebhookBindingOptions<TOutput> & {
|
|
494
|
+
readonly verifierOptions?: Partial<VerifyPubSubPushOptions>;
|
|
495
|
+
}): SnowflakeWebhookBoundTrigger<typeof gcsWebhookPayloadSchema, readonly [typeof snowflake, typeof snowflakeGcsPubSubWebhookCredentialSet], TOutput>;
|
|
496
|
+
/**
|
|
497
|
+
* Event Grid wire format is `AzureEventGridEvent[]`. Keystroke's
|
|
498
|
+
* webhook primitive validates a single payload schema — so we accept
|
|
499
|
+
* either a single event or a wrapper object. The runtime reparses the
|
|
500
|
+
* raw body to preserve the array shape.
|
|
501
|
+
*/
|
|
502
|
+
declare const azureWebhookPayloadSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
503
|
+
id: z.ZodString;
|
|
504
|
+
eventType: z.ZodString;
|
|
505
|
+
subject: z.ZodString;
|
|
506
|
+
eventTime: z.ZodString;
|
|
507
|
+
dataVersion: z.ZodOptional<z.ZodString>;
|
|
508
|
+
metadataVersion: z.ZodOptional<z.ZodString>;
|
|
509
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
510
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
511
|
+
}, z.core.$catchall<z.ZodUnknown>>>, z.ZodObject<{
|
|
512
|
+
id: z.ZodString;
|
|
513
|
+
eventType: z.ZodString;
|
|
514
|
+
subject: z.ZodString;
|
|
515
|
+
eventTime: z.ZodString;
|
|
516
|
+
dataVersion: z.ZodOptional<z.ZodString>;
|
|
517
|
+
metadataVersion: z.ZodOptional<z.ZodString>;
|
|
518
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
519
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
520
|
+
}, z.core.$catchall<z.ZodUnknown>>]>;
|
|
521
|
+
/**
|
|
522
|
+
* `triggers.autoIngestAzureEventGrid` — receives Azure Event Grid
|
|
523
|
+
* deliveries. Validates shared-secret header (if configured), parses
|
|
524
|
+
* the batch, and emits normalized Azure Blob object events. The
|
|
525
|
+
* synchronous subscription-validation handshake is NOT supported
|
|
526
|
+
* through the Keystroke static-response primitive; operators must
|
|
527
|
+
* use manual validation URLs (see IMPLEMENTATION_NOTES.md).
|
|
528
|
+
*/
|
|
529
|
+
declare function autoIngestAzureEventGrid<TOutput = SnowpipeObjectBatchOutput>(input?: WebhookBindingOptions<TOutput> & {
|
|
530
|
+
readonly verifierOptions?: VerifyEventGridRequestOptions;
|
|
531
|
+
}): SnowflakeWebhookBoundTrigger<typeof azureWebhookPayloadSchema, readonly [typeof snowflake, typeof snowflakeAzureEventGridWebhookCredentialSet], TOutput>;
|
|
532
|
+
/**
|
|
533
|
+
* Convenience namespace grouping every polling trigger in this package.
|
|
534
|
+
* Equivalent to calling the individual factory functions directly.
|
|
535
|
+
*/
|
|
536
|
+
declare const polling: Readonly<{
|
|
537
|
+
streamHasNewRows: typeof streamHasNewRows;
|
|
538
|
+
streamAppendOnly: typeof streamAppendOnly;
|
|
539
|
+
scheduledSql: typeof scheduledSql;
|
|
540
|
+
scheduledDelta: typeof scheduledDelta;
|
|
541
|
+
taskRunCompleted: typeof taskRunCompleted;
|
|
542
|
+
statementCompleted: typeof statementCompleted;
|
|
543
|
+
pipeLoadCompleted: typeof pipeLoadCompleted;
|
|
544
|
+
pipeLoadFailed: typeof pipeLoadFailed;
|
|
545
|
+
userCreated: typeof userCreated;
|
|
546
|
+
userDropped: typeof userDropped;
|
|
547
|
+
roleCreated: typeof roleCreated;
|
|
548
|
+
roleDropped: typeof roleDropped;
|
|
549
|
+
databaseCreated: typeof databaseCreated;
|
|
550
|
+
databaseDropped: typeof databaseDropped;
|
|
551
|
+
tableCreated: typeof tableCreated;
|
|
552
|
+
tableDropped: typeof tableDropped;
|
|
553
|
+
shareChanged: typeof shareChanged;
|
|
554
|
+
grantsChanged: typeof grantsChanged;
|
|
555
|
+
warehouseCreditsUsage: typeof warehouseCreditsUsage;
|
|
556
|
+
warehouseQueueDepth: typeof warehouseQueueDepth;
|
|
557
|
+
statusPageIncident: typeof statusPageIncident;
|
|
558
|
+
statusPageComponentChanged: typeof statusPageComponentChanged;
|
|
559
|
+
}>;
|
|
560
|
+
/**
|
|
561
|
+
* Convenience namespace grouping every auto-ingest webhook trigger.
|
|
562
|
+
*/
|
|
563
|
+
declare const webhooks: Readonly<{
|
|
564
|
+
autoIngestS3Sns: typeof autoIngestS3Sns;
|
|
565
|
+
autoIngestGcsPubSub: typeof autoIngestGcsPubSub;
|
|
566
|
+
autoIngestAzureEventGrid: typeof autoIngestAzureEventGrid;
|
|
567
|
+
}>;
|
|
568
|
+
/**
|
|
569
|
+
* Nested `autoIngest` namespace per the spec (§7 PLAN.md) so callers
|
|
570
|
+
* can reach the three webhook triggers via `triggers.autoIngest.<cloud>`.
|
|
571
|
+
*/
|
|
572
|
+
declare const autoIngest: Readonly<{
|
|
573
|
+
s3Sns: typeof autoIngestS3Sns;
|
|
574
|
+
gcsPubSub: typeof autoIngestGcsPubSub;
|
|
575
|
+
azureEventGrid: typeof autoIngestAzureEventGrid;
|
|
576
|
+
}>;
|
|
577
|
+
//#endregion
|
|
578
|
+
export { autoIngest, autoIngestAzureEventGrid, autoIngestGcsPubSub, autoIngestS3Sns, databaseCreated, databaseDropped, grantsChanged, pipeLoadCompleted, pipeLoadFailed, polling, roleCreated, roleDropped, scheduledDelta, scheduledSql, shareChanged, statementCompleted, statusPageComponentChanged, statusPageIncident, streamAppendOnly, streamHasNewRows, tableCreated, tableDropped, taskRunCompleted, userCreated, userDropped, warehouseCreditsUsage, warehouseQueueDepth, webhooks };
|