@keystrokehq/snowflake 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -233
  3. package/package.json +39 -171
  4. package/dist/accounts/index.d.mts +0 -40
  5. package/dist/accounts/index.mjs +0 -51
  6. package/dist/bulk/index.d.mts +0 -71
  7. package/dist/bulk/index.mjs +0 -65
  8. package/dist/catalog/index.d.mts +0 -144
  9. package/dist/catalog/index.mjs +0 -158
  10. package/dist/client/index.d.mts +0 -44
  11. package/dist/client/index.mjs +0 -273
  12. package/dist/common-DfpCwJx5.mjs +0 -92
  13. package/dist/credential-sets/index.d.mts +0 -3
  14. package/dist/credential-sets/index.mjs +0 -4
  15. package/dist/databases/index.d.mts +0 -2
  16. package/dist/databases/index.mjs +0 -3
  17. package/dist/errors-60AsF7Su.mjs +0 -95
  18. package/dist/events/index.d.mts +0 -382
  19. package/dist/events/index.mjs +0 -291
  20. package/dist/file-formats/index.d.mts +0 -39
  21. package/dist/file-formats/index.mjs +0 -48
  22. package/dist/functions/index.d.mts +0 -53
  23. package/dist/functions/index.mjs +0 -56
  24. package/dist/grants/index.d.mts +0 -93
  25. package/dist/grants/index.mjs +0 -102
  26. package/dist/index.d.mts +0 -4
  27. package/dist/index.mjs +0 -6
  28. package/dist/operations/index.d.mts +0 -1
  29. package/dist/operations/index.mjs +0 -1
  30. package/dist/org-admin/index.d.mts +0 -80
  31. package/dist/org-admin/index.mjs +0 -79
  32. package/dist/pipes/index.d.mts +0 -119
  33. package/dist/pipes/index.mjs +0 -106
  34. package/dist/procedures/index.d.mts +0 -61
  35. package/dist/procedures/index.mjs +0 -79
  36. package/dist/results/index.d.mts +0 -16
  37. package/dist/results/index.mjs +0 -64
  38. package/dist/retry-B4-9MZIp.mjs +0 -164
  39. package/dist/retry-w7cTp1QL.d.mts +0 -10
  40. package/dist/roles/index.d.mts +0 -60
  41. package/dist/roles/index.mjs +0 -74
  42. package/dist/rows/index.d.mts +0 -106
  43. package/dist/rows/index.mjs +0 -223
  44. package/dist/schemas/index.d.mts +0 -2
  45. package/dist/schemas/index.mjs +0 -4
  46. package/dist/schemas-catalog/index.d.mts +0 -2
  47. package/dist/schemas-catalog/index.mjs +0 -3
  48. package/dist/shares/index.d.mts +0 -56
  49. package/dist/shares/index.mjs +0 -77
  50. package/dist/snowflake-s3-sns-webhook.credential-set-D6bLAWy5.d.mts +0 -50
  51. package/dist/snowflake-s3-sns-webhook.credential-set-DzR7oWNK.mjs +0 -44
  52. package/dist/snowflake.credential-set-BxT7Gf3A.d.mts +0 -114
  53. package/dist/snowflake.credential-set-DE3gXf-a.mjs +0 -106
  54. package/dist/sql/index.d.mts +0 -84
  55. package/dist/sql/index.mjs +0 -209
  56. package/dist/sql-options-2k5xQ-oS.d.mts +0 -32
  57. package/dist/sql-options-D6GEa21F.mjs +0 -79
  58. package/dist/sql-safety-BZpAPsq6.mjs +0 -56
  59. package/dist/stages/index.d.mts +0 -64
  60. package/dist/stages/index.mjs +0 -81
  61. package/dist/statements-BumhMhN4.mjs +0 -81
  62. package/dist/statements-DJL0qVNA.d.mts +0 -238
  63. package/dist/status-page/index.d.mts +0 -510
  64. package/dist/status-page/index.mjs +0 -261
  65. package/dist/streaming/index.d.mts +0 -70
  66. package/dist/streaming/index.mjs +0 -56
  67. package/dist/streams/index.d.mts +0 -71
  68. package/dist/streams/index.mjs +0 -78
  69. package/dist/tables/index.d.mts +0 -2
  70. package/dist/tables/index.mjs +0 -3
  71. package/dist/tasks/index.d.mts +0 -79
  72. package/dist/tasks/index.mjs +0 -104
  73. package/dist/triggers/index.d.mts +0 -381
  74. package/dist/triggers/index.mjs +0 -1100
  75. package/dist/users/index.d.mts +0 -61
  76. package/dist/users/index.mjs +0 -67
  77. package/dist/verification/index.d.mts +0 -201
  78. package/dist/verification/index.mjs +0 -512
  79. package/dist/views/index.d.mts +0 -2
  80. package/dist/views/index.mjs +0 -3
  81. package/dist/warehouses/index.d.mts +0 -68
  82. package/dist/warehouses/index.mjs +0 -101
@@ -1,510 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/status-page/index.d.ts
4
- declare const statusPagePageSchema: z.ZodObject<{
5
- id: z.ZodString;
6
- name: z.ZodString;
7
- url: z.ZodString;
8
- time_zone: z.ZodOptional<z.ZodString>;
9
- updated_at: z.ZodString;
10
- }, z.core.$catchall<z.ZodUnknown>>;
11
- type StatusPagePage = z.infer<typeof statusPagePageSchema>;
12
- declare const statusPageIndicatorSchema: z.ZodEnum<{
13
- none: "none";
14
- minor: "minor";
15
- major: "major";
16
- critical: "critical";
17
- maintenance: "maintenance";
18
- }>;
19
- type StatusPageIndicator = z.infer<typeof statusPageIndicatorSchema>;
20
- declare const statusPageOverallStatusSchema: z.ZodObject<{
21
- indicator: z.ZodEnum<{
22
- none: "none";
23
- minor: "minor";
24
- major: "major";
25
- critical: "critical";
26
- maintenance: "maintenance";
27
- }>;
28
- description: z.ZodString;
29
- }, z.core.$catchall<z.ZodUnknown>>;
30
- type StatusPageOverallStatus = z.infer<typeof statusPageOverallStatusSchema>;
31
- declare const statusPageComponentStatusSchema: z.ZodEnum<{
32
- operational: "operational";
33
- degraded_performance: "degraded_performance";
34
- partial_outage: "partial_outage";
35
- major_outage: "major_outage";
36
- under_maintenance: "under_maintenance";
37
- }>;
38
- type StatusPageComponentStatus = z.infer<typeof statusPageComponentStatusSchema>;
39
- declare const statusPageComponentSchema: z.ZodObject<{
40
- id: z.ZodString;
41
- name: z.ZodString;
42
- status: z.ZodEnum<{
43
- operational: "operational";
44
- degraded_performance: "degraded_performance";
45
- partial_outage: "partial_outage";
46
- major_outage: "major_outage";
47
- under_maintenance: "under_maintenance";
48
- }>;
49
- created_at: z.ZodString;
50
- updated_at: z.ZodString;
51
- position: z.ZodOptional<z.ZodNumber>;
52
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
- showcase: z.ZodOptional<z.ZodBoolean>;
54
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- page_id: z.ZodOptional<z.ZodString>;
56
- group: z.ZodOptional<z.ZodBoolean>;
57
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
58
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
- }, z.core.$catchall<z.ZodUnknown>>;
60
- type StatusPageComponent = z.infer<typeof statusPageComponentSchema>;
61
- declare const statusPageIncidentUpdateSchema: z.ZodObject<{
62
- id: z.ZodString;
63
- status: z.ZodString;
64
- body: z.ZodString;
65
- created_at: z.ZodString;
66
- updated_at: z.ZodString;
67
- display_at: z.ZodOptional<z.ZodString>;
68
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
- code: z.ZodOptional<z.ZodString>;
70
- name: z.ZodOptional<z.ZodString>;
71
- old_status: z.ZodOptional<z.ZodString>;
72
- new_status: z.ZodOptional<z.ZodString>;
73
- }, z.core.$catchall<z.ZodUnknown>>>>;
74
- }, z.core.$catchall<z.ZodUnknown>>;
75
- declare const statusPageIncidentSchema: z.ZodObject<{
76
- id: z.ZodString;
77
- name: z.ZodString;
78
- status: z.ZodString;
79
- impact: z.ZodOptional<z.ZodString>;
80
- created_at: z.ZodString;
81
- updated_at: z.ZodString;
82
- monitoring_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- resolved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
- shortlink: z.ZodOptional<z.ZodString>;
85
- started_at: z.ZodOptional<z.ZodString>;
86
- page_id: z.ZodOptional<z.ZodString>;
87
- incident_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
- id: z.ZodString;
89
- status: z.ZodString;
90
- body: z.ZodString;
91
- created_at: z.ZodString;
92
- updated_at: z.ZodString;
93
- display_at: z.ZodOptional<z.ZodString>;
94
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
- code: z.ZodOptional<z.ZodString>;
96
- name: z.ZodOptional<z.ZodString>;
97
- old_status: z.ZodOptional<z.ZodString>;
98
- new_status: z.ZodOptional<z.ZodString>;
99
- }, z.core.$catchall<z.ZodUnknown>>>>;
100
- }, z.core.$catchall<z.ZodUnknown>>>>;
101
- components: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
- id: z.ZodString;
103
- name: z.ZodString;
104
- status: z.ZodEnum<{
105
- operational: "operational";
106
- degraded_performance: "degraded_performance";
107
- partial_outage: "partial_outage";
108
- major_outage: "major_outage";
109
- under_maintenance: "under_maintenance";
110
- }>;
111
- created_at: z.ZodString;
112
- updated_at: z.ZodString;
113
- position: z.ZodOptional<z.ZodNumber>;
114
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
- showcase: z.ZodOptional<z.ZodBoolean>;
116
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
- page_id: z.ZodOptional<z.ZodString>;
118
- group: z.ZodOptional<z.ZodBoolean>;
119
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
120
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
121
- }, z.core.$catchall<z.ZodUnknown>>>>;
122
- }, z.core.$catchall<z.ZodUnknown>>;
123
- type StatusPageIncident = z.infer<typeof statusPageIncidentSchema>;
124
- declare const statusPageScheduledMaintenanceSchema: z.ZodObject<{
125
- id: z.ZodString;
126
- name: z.ZodString;
127
- status: z.ZodString;
128
- impact: z.ZodOptional<z.ZodString>;
129
- created_at: z.ZodString;
130
- updated_at: z.ZodString;
131
- monitoring_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
- resolved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
- scheduled_for: z.ZodString;
134
- scheduled_until: z.ZodString;
135
- shortlink: z.ZodOptional<z.ZodString>;
136
- started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
- page_id: z.ZodOptional<z.ZodString>;
138
- incident_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
- id: z.ZodString;
140
- status: z.ZodString;
141
- body: z.ZodString;
142
- created_at: z.ZodString;
143
- updated_at: z.ZodString;
144
- display_at: z.ZodOptional<z.ZodString>;
145
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
146
- code: z.ZodOptional<z.ZodString>;
147
- name: z.ZodOptional<z.ZodString>;
148
- old_status: z.ZodOptional<z.ZodString>;
149
- new_status: z.ZodOptional<z.ZodString>;
150
- }, z.core.$catchall<z.ZodUnknown>>>>;
151
- }, z.core.$catchall<z.ZodUnknown>>>>;
152
- components: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
- id: z.ZodString;
154
- name: z.ZodString;
155
- status: z.ZodEnum<{
156
- operational: "operational";
157
- degraded_performance: "degraded_performance";
158
- partial_outage: "partial_outage";
159
- major_outage: "major_outage";
160
- under_maintenance: "under_maintenance";
161
- }>;
162
- created_at: z.ZodString;
163
- updated_at: z.ZodString;
164
- position: z.ZodOptional<z.ZodNumber>;
165
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
- showcase: z.ZodOptional<z.ZodBoolean>;
167
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
- page_id: z.ZodOptional<z.ZodString>;
169
- group: z.ZodOptional<z.ZodBoolean>;
170
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
171
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
172
- }, z.core.$catchall<z.ZodUnknown>>>>;
173
- }, z.core.$catchall<z.ZodUnknown>>;
174
- type StatusPageScheduledMaintenance = z.infer<typeof statusPageScheduledMaintenanceSchema>;
175
- declare const summaryResponseSchema: z.ZodObject<{
176
- page: z.ZodObject<{
177
- id: z.ZodString;
178
- name: z.ZodString;
179
- url: z.ZodString;
180
- time_zone: z.ZodOptional<z.ZodString>;
181
- updated_at: z.ZodString;
182
- }, z.core.$catchall<z.ZodUnknown>>;
183
- status: z.ZodObject<{
184
- indicator: z.ZodEnum<{
185
- none: "none";
186
- minor: "minor";
187
- major: "major";
188
- critical: "critical";
189
- maintenance: "maintenance";
190
- }>;
191
- description: z.ZodString;
192
- }, z.core.$catchall<z.ZodUnknown>>;
193
- components: z.ZodArray<z.ZodObject<{
194
- id: z.ZodString;
195
- name: z.ZodString;
196
- status: z.ZodEnum<{
197
- operational: "operational";
198
- degraded_performance: "degraded_performance";
199
- partial_outage: "partial_outage";
200
- major_outage: "major_outage";
201
- under_maintenance: "under_maintenance";
202
- }>;
203
- created_at: z.ZodString;
204
- updated_at: z.ZodString;
205
- position: z.ZodOptional<z.ZodNumber>;
206
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
- showcase: z.ZodOptional<z.ZodBoolean>;
208
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
- page_id: z.ZodOptional<z.ZodString>;
210
- group: z.ZodOptional<z.ZodBoolean>;
211
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
212
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
- }, z.core.$catchall<z.ZodUnknown>>>;
214
- incidents: z.ZodArray<z.ZodObject<{
215
- id: z.ZodString;
216
- name: z.ZodString;
217
- status: z.ZodString;
218
- impact: z.ZodOptional<z.ZodString>;
219
- created_at: z.ZodString;
220
- updated_at: z.ZodString;
221
- monitoring_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
- resolved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
- shortlink: z.ZodOptional<z.ZodString>;
224
- started_at: z.ZodOptional<z.ZodString>;
225
- page_id: z.ZodOptional<z.ZodString>;
226
- incident_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
227
- id: z.ZodString;
228
- status: z.ZodString;
229
- body: z.ZodString;
230
- created_at: z.ZodString;
231
- updated_at: z.ZodString;
232
- display_at: z.ZodOptional<z.ZodString>;
233
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
- code: z.ZodOptional<z.ZodString>;
235
- name: z.ZodOptional<z.ZodString>;
236
- old_status: z.ZodOptional<z.ZodString>;
237
- new_status: z.ZodOptional<z.ZodString>;
238
- }, z.core.$catchall<z.ZodUnknown>>>>;
239
- }, z.core.$catchall<z.ZodUnknown>>>>;
240
- components: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
- id: z.ZodString;
242
- name: z.ZodString;
243
- status: z.ZodEnum<{
244
- operational: "operational";
245
- degraded_performance: "degraded_performance";
246
- partial_outage: "partial_outage";
247
- major_outage: "major_outage";
248
- under_maintenance: "under_maintenance";
249
- }>;
250
- created_at: z.ZodString;
251
- updated_at: z.ZodString;
252
- position: z.ZodOptional<z.ZodNumber>;
253
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
- showcase: z.ZodOptional<z.ZodBoolean>;
255
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
- page_id: z.ZodOptional<z.ZodString>;
257
- group: z.ZodOptional<z.ZodBoolean>;
258
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
259
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
260
- }, z.core.$catchall<z.ZodUnknown>>>>;
261
- }, z.core.$catchall<z.ZodUnknown>>>;
262
- scheduled_maintenances: z.ZodArray<z.ZodObject<{
263
- id: z.ZodString;
264
- name: z.ZodString;
265
- status: z.ZodString;
266
- impact: z.ZodOptional<z.ZodString>;
267
- created_at: z.ZodString;
268
- updated_at: z.ZodString;
269
- monitoring_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
- resolved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
- scheduled_for: z.ZodString;
272
- scheduled_until: z.ZodString;
273
- shortlink: z.ZodOptional<z.ZodString>;
274
- started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
- page_id: z.ZodOptional<z.ZodString>;
276
- incident_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
- id: z.ZodString;
278
- status: z.ZodString;
279
- body: z.ZodString;
280
- created_at: z.ZodString;
281
- updated_at: z.ZodString;
282
- display_at: z.ZodOptional<z.ZodString>;
283
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
- code: z.ZodOptional<z.ZodString>;
285
- name: z.ZodOptional<z.ZodString>;
286
- old_status: z.ZodOptional<z.ZodString>;
287
- new_status: z.ZodOptional<z.ZodString>;
288
- }, z.core.$catchall<z.ZodUnknown>>>>;
289
- }, z.core.$catchall<z.ZodUnknown>>>>;
290
- components: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
- id: z.ZodString;
292
- name: z.ZodString;
293
- status: z.ZodEnum<{
294
- operational: "operational";
295
- degraded_performance: "degraded_performance";
296
- partial_outage: "partial_outage";
297
- major_outage: "major_outage";
298
- under_maintenance: "under_maintenance";
299
- }>;
300
- created_at: z.ZodString;
301
- updated_at: z.ZodString;
302
- position: z.ZodOptional<z.ZodNumber>;
303
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
- showcase: z.ZodOptional<z.ZodBoolean>;
305
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
- page_id: z.ZodOptional<z.ZodString>;
307
- group: z.ZodOptional<z.ZodBoolean>;
308
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
309
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
- }, z.core.$catchall<z.ZodUnknown>>>>;
311
- }, z.core.$catchall<z.ZodUnknown>>>;
312
- }, z.core.$catchall<z.ZodUnknown>>;
313
- type StatusPageSummary = z.infer<typeof summaryResponseSchema>;
314
- declare const rollupResponseSchema: z.ZodObject<{
315
- page: z.ZodObject<{
316
- id: z.ZodString;
317
- name: z.ZodString;
318
- url: z.ZodString;
319
- time_zone: z.ZodOptional<z.ZodString>;
320
- updated_at: z.ZodString;
321
- }, z.core.$catchall<z.ZodUnknown>>;
322
- status: z.ZodObject<{
323
- indicator: z.ZodEnum<{
324
- none: "none";
325
- minor: "minor";
326
- major: "major";
327
- critical: "critical";
328
- maintenance: "maintenance";
329
- }>;
330
- description: z.ZodString;
331
- }, z.core.$catchall<z.ZodUnknown>>;
332
- }, z.core.$catchall<z.ZodUnknown>>;
333
- type StatusPageRollup = z.infer<typeof rollupResponseSchema>;
334
- declare const incidentsResponseSchema: z.ZodObject<{
335
- page: z.ZodObject<{
336
- id: z.ZodString;
337
- name: z.ZodString;
338
- url: z.ZodString;
339
- time_zone: z.ZodOptional<z.ZodString>;
340
- updated_at: z.ZodString;
341
- }, z.core.$catchall<z.ZodUnknown>>;
342
- incidents: z.ZodArray<z.ZodObject<{
343
- id: z.ZodString;
344
- name: z.ZodString;
345
- status: z.ZodString;
346
- impact: z.ZodOptional<z.ZodString>;
347
- created_at: z.ZodString;
348
- updated_at: z.ZodString;
349
- monitoring_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
- resolved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
- shortlink: z.ZodOptional<z.ZodString>;
352
- started_at: z.ZodOptional<z.ZodString>;
353
- page_id: z.ZodOptional<z.ZodString>;
354
- incident_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
- id: z.ZodString;
356
- status: z.ZodString;
357
- body: z.ZodString;
358
- created_at: z.ZodString;
359
- updated_at: z.ZodString;
360
- display_at: z.ZodOptional<z.ZodString>;
361
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
362
- code: z.ZodOptional<z.ZodString>;
363
- name: z.ZodOptional<z.ZodString>;
364
- old_status: z.ZodOptional<z.ZodString>;
365
- new_status: z.ZodOptional<z.ZodString>;
366
- }, z.core.$catchall<z.ZodUnknown>>>>;
367
- }, z.core.$catchall<z.ZodUnknown>>>>;
368
- components: z.ZodOptional<z.ZodArray<z.ZodObject<{
369
- id: z.ZodString;
370
- name: z.ZodString;
371
- status: z.ZodEnum<{
372
- operational: "operational";
373
- degraded_performance: "degraded_performance";
374
- partial_outage: "partial_outage";
375
- major_outage: "major_outage";
376
- under_maintenance: "under_maintenance";
377
- }>;
378
- created_at: z.ZodString;
379
- updated_at: z.ZodString;
380
- position: z.ZodOptional<z.ZodNumber>;
381
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
- showcase: z.ZodOptional<z.ZodBoolean>;
383
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
- page_id: z.ZodOptional<z.ZodString>;
385
- group: z.ZodOptional<z.ZodBoolean>;
386
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
387
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
- }, z.core.$catchall<z.ZodUnknown>>>>;
389
- }, z.core.$catchall<z.ZodUnknown>>>;
390
- }, z.core.$catchall<z.ZodUnknown>>;
391
- type StatusPageIncidentsResponse = z.infer<typeof incidentsResponseSchema>;
392
- declare const maintenancesResponseSchema: z.ZodObject<{
393
- page: z.ZodObject<{
394
- id: z.ZodString;
395
- name: z.ZodString;
396
- url: z.ZodString;
397
- time_zone: z.ZodOptional<z.ZodString>;
398
- updated_at: z.ZodString;
399
- }, z.core.$catchall<z.ZodUnknown>>;
400
- scheduled_maintenances: z.ZodArray<z.ZodObject<{
401
- id: z.ZodString;
402
- name: z.ZodString;
403
- status: z.ZodString;
404
- impact: z.ZodOptional<z.ZodString>;
405
- created_at: z.ZodString;
406
- updated_at: z.ZodString;
407
- monitoring_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
- resolved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
- scheduled_for: z.ZodString;
410
- scheduled_until: z.ZodString;
411
- shortlink: z.ZodOptional<z.ZodString>;
412
- started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
- page_id: z.ZodOptional<z.ZodString>;
414
- incident_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
- id: z.ZodString;
416
- status: z.ZodString;
417
- body: z.ZodString;
418
- created_at: z.ZodString;
419
- updated_at: z.ZodString;
420
- display_at: z.ZodOptional<z.ZodString>;
421
- affected_components: z.ZodOptional<z.ZodArray<z.ZodObject<{
422
- code: z.ZodOptional<z.ZodString>;
423
- name: z.ZodOptional<z.ZodString>;
424
- old_status: z.ZodOptional<z.ZodString>;
425
- new_status: z.ZodOptional<z.ZodString>;
426
- }, z.core.$catchall<z.ZodUnknown>>>>;
427
- }, z.core.$catchall<z.ZodUnknown>>>>;
428
- components: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
- id: z.ZodString;
430
- name: z.ZodString;
431
- status: z.ZodEnum<{
432
- operational: "operational";
433
- degraded_performance: "degraded_performance";
434
- partial_outage: "partial_outage";
435
- major_outage: "major_outage";
436
- under_maintenance: "under_maintenance";
437
- }>;
438
- created_at: z.ZodString;
439
- updated_at: z.ZodString;
440
- position: z.ZodOptional<z.ZodNumber>;
441
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
- showcase: z.ZodOptional<z.ZodBoolean>;
443
- group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
- page_id: z.ZodOptional<z.ZodString>;
445
- group: z.ZodOptional<z.ZodBoolean>;
446
- only_show_if_degraded: z.ZodOptional<z.ZodBoolean>;
447
- components: z.ZodOptional<z.ZodArray<z.ZodString>>;
448
- }, z.core.$catchall<z.ZodUnknown>>>>;
449
- }, z.core.$catchall<z.ZodUnknown>>>;
450
- }, z.core.$catchall<z.ZodUnknown>>;
451
- type StatusPageMaintenancesResponse = z.infer<typeof maintenancesResponseSchema>;
452
- interface StatusPageOptions {
453
- /** Override the default `https://status.snowflake.com` host (e.g., for tests / mirrors). */
454
- readonly baseUrl?: string;
455
- /** Override `fetch`; defaults to the global `fetch`. */
456
- readonly fetchImpl?: typeof fetch;
457
- /** Request timeout in milliseconds (default 15s). */
458
- readonly timeoutMs?: number;
459
- /** Extra headers to send with the GET. */
460
- readonly headers?: Readonly<Record<string, string>>;
461
- /** Pre-constructed `AbortSignal` — composed with the internal timeout. */
462
- readonly signal?: AbortSignal;
463
- }
464
- /**
465
- * Error thrown when the status-page endpoint returns a non-2xx response or
466
- * a body that fails Zod validation.
467
- */
468
- declare class SnowflakeStatusPageError extends Error {
469
- readonly name = "SnowflakeStatusPageError";
470
- readonly status: number;
471
- readonly url: string;
472
- readonly body: string | undefined;
473
- constructor(input: {
474
- message: string;
475
- status: number;
476
- url: string;
477
- body?: string;
478
- cause?: unknown;
479
- });
480
- }
481
- /** `GET /api/v2/summary.json` — overall page, components, active incidents, maintenances. */
482
- declare function getStatusSummary(options?: StatusPageOptions): Promise<StatusPageSummary>;
483
- /** `GET /api/v2/status.json` — top-level indicator + description only. */
484
- declare function getStatusRollup(options?: StatusPageOptions): Promise<StatusPageRollup>;
485
- interface GetComponentStatusOptions extends StatusPageOptions {
486
- /** Component id (e.g., `abcd1234`) — when provided, returns only that component. */
487
- readonly componentId?: string;
488
- /** Component display name — case-insensitive exact match. */
489
- readonly name?: string;
490
- }
491
- interface ComponentStatusResult {
492
- readonly page: StatusPagePage;
493
- readonly components: readonly StatusPageComponent[];
494
- }
495
- /**
496
- * `GET /api/v2/components.json` — returns every component. When `componentId`
497
- * or `name` are provided, the result is filtered client-side because the
498
- * Statuspage.io public endpoint does not expose a server-side filter.
499
- */
500
- declare function getComponentStatus(options?: GetComponentStatusOptions): Promise<ComponentStatusResult>;
501
- /** `GET /api/v2/incidents/unresolved.json` — active, non-resolved incidents. */
502
- declare function getUnresolvedIncidents(options?: StatusPageOptions): Promise<StatusPageIncidentsResponse>;
503
- /** `GET /api/v2/scheduled-maintenances/active.json` — maintenances currently in progress. */
504
- declare function getActiveScheduledMaintenances(options?: StatusPageOptions): Promise<StatusPageMaintenancesResponse>;
505
- /** `GET /api/v2/scheduled-maintenances.json` — every scheduled maintenance on record. */
506
- declare function getAllScheduledMaintenances(options?: StatusPageOptions): Promise<StatusPageMaintenancesResponse>;
507
- /** `GET /api/v2/scheduled-maintenances/upcoming.json` — maintenances not yet started. */
508
- declare function getUpcomingScheduledMaintenances(options?: StatusPageOptions): Promise<StatusPageMaintenancesResponse>;
509
- //#endregion
510
- export { ComponentStatusResult, GetComponentStatusOptions, SnowflakeStatusPageError, StatusPageComponent, StatusPageComponentStatus, StatusPageIncident, StatusPageIncidentsResponse, StatusPageIndicator, StatusPageMaintenancesResponse, StatusPageOptions, StatusPageOverallStatus, StatusPagePage, StatusPageRollup, StatusPageScheduledMaintenance, StatusPageSummary, getActiveScheduledMaintenances, getAllScheduledMaintenances, getComponentStatus, getStatusRollup, getStatusSummary, getUnresolvedIncidents, getUpcomingScheduledMaintenances, statusPageComponentSchema, statusPageComponentStatusSchema, statusPageIncidentSchema, statusPageIncidentUpdateSchema, statusPageIndicatorSchema, statusPageOverallStatusSchema, statusPagePageSchema, statusPageScheduledMaintenanceSchema };