@deepnote/database-integrations 1.0.0 → 1.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/dist/index.d.ts CHANGED
@@ -19,27 +19,82 @@ declare const databaseMetadataSchemasByType: {
19
19
  sshHost: z.ZodOptional<z.ZodString>;
20
20
  sshPort: z.ZodOptional<z.ZodString>;
21
21
  sshUser: z.ZodOptional<z.ZodString>;
22
+ } & {
22
23
  port: z.ZodOptional<z.ZodString>;
23
24
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
24
25
  caCertificateName: z.ZodOptional<z.ZodString>;
25
26
  caCertificateText: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ host: string;
29
+ user: string;
30
+ password: string;
31
+ database: string;
32
+ sshEnabled?: boolean | undefined;
33
+ sshHost?: string | undefined;
34
+ sshPort?: string | undefined;
35
+ sshUser?: string | undefined;
36
+ port?: string | undefined;
37
+ sslEnabled?: boolean | undefined;
38
+ caCertificateName?: string | undefined;
39
+ caCertificateText?: string | undefined;
40
+ }, {
41
+ host: string;
42
+ user: string;
43
+ password: string;
44
+ database: string;
45
+ sshEnabled?: boolean | undefined;
46
+ sshHost?: string | undefined;
47
+ sshPort?: string | undefined;
48
+ sshUser?: string | undefined;
49
+ port?: string | undefined;
50
+ sslEnabled?: boolean | undefined;
51
+ caCertificateName?: string | undefined;
52
+ caCertificateText?: string | undefined;
53
+ }>;
27
54
  readonly athena: z.ZodObject<{
28
55
  access_key_id: z.ZodString;
29
56
  region: z.ZodString;
30
57
  s3_output_path: z.ZodString;
31
58
  secret_access_key: z.ZodString;
32
59
  workgroup: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>;
34
- readonly 'big-query': z.ZodDiscriminatedUnion<[z.ZodObject<{
60
+ }, "strip", z.ZodTypeAny, {
61
+ access_key_id: string;
62
+ region: string;
63
+ s3_output_path: string;
64
+ secret_access_key: string;
65
+ workgroup?: string | undefined;
66
+ }, {
67
+ access_key_id: string;
68
+ region: string;
69
+ s3_output_path: string;
70
+ secret_access_key: string;
71
+ workgroup?: string | undefined;
72
+ }>;
73
+ readonly 'big-query': z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
35
74
  authMethod: z.ZodLiteral<"service-account">;
36
75
  service_account: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
76
+ }, "strip", z.ZodTypeAny, {
77
+ authMethod: "service-account";
78
+ service_account: string;
79
+ }, {
80
+ authMethod: "service-account";
81
+ service_account: string;
82
+ }>, z.ZodObject<{
38
83
  authMethod: z.ZodLiteral<"google-oauth">;
39
84
  project: z.ZodString;
40
85
  clientId: z.ZodString;
41
86
  clientSecret: z.ZodString;
42
- }, z.core.$strip>], "authMethod">;
87
+ }, "strip", z.ZodTypeAny, {
88
+ authMethod: "google-oauth";
89
+ project: string;
90
+ clientId: string;
91
+ clientSecret: string;
92
+ }, {
93
+ authMethod: "google-oauth";
94
+ project: string;
95
+ clientId: string;
96
+ clientSecret: string;
97
+ }>]>;
43
98
  readonly clickhouse: z.ZodObject<{
44
99
  host: z.ZodString;
45
100
  user: z.ZodString;
@@ -53,7 +108,33 @@ declare const databaseMetadataSchemasByType: {
53
108
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
54
109
  caCertificateName: z.ZodOptional<z.ZodString>;
55
110
  caCertificateText: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strip>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ host: string;
113
+ user: string;
114
+ database: string;
115
+ password?: string | undefined;
116
+ sshEnabled?: boolean | undefined;
117
+ sshHost?: string | undefined;
118
+ sshPort?: string | undefined;
119
+ sshUser?: string | undefined;
120
+ port?: string | undefined;
121
+ sslEnabled?: boolean | undefined;
122
+ caCertificateName?: string | undefined;
123
+ caCertificateText?: string | undefined;
124
+ }, {
125
+ host: string;
126
+ user: string;
127
+ database: string;
128
+ password?: string | undefined;
129
+ sshEnabled?: boolean | undefined;
130
+ sshHost?: string | undefined;
131
+ sshPort?: string | undefined;
132
+ sshUser?: string | undefined;
133
+ port?: string | undefined;
134
+ sslEnabled?: boolean | undefined;
135
+ caCertificateName?: string | undefined;
136
+ caCertificateText?: string | undefined;
137
+ }>;
57
138
  readonly databricks: z.ZodObject<{
58
139
  host: z.ZodString;
59
140
  httpPath: z.ZodString;
@@ -65,7 +146,29 @@ declare const databaseMetadataSchemasByType: {
65
146
  sshHost: z.ZodOptional<z.ZodString>;
66
147
  sshPort: z.ZodOptional<z.ZodString>;
67
148
  sshUser: z.ZodOptional<z.ZodString>;
68
- }, z.core.$strip>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ host: string;
151
+ port: string;
152
+ httpPath: string;
153
+ token: string;
154
+ sshEnabled?: boolean | undefined;
155
+ sshHost?: string | undefined;
156
+ sshPort?: string | undefined;
157
+ sshUser?: string | undefined;
158
+ schema?: string | undefined;
159
+ catalog?: string | undefined;
160
+ }, {
161
+ host: string;
162
+ port: string;
163
+ httpPath: string;
164
+ token: string;
165
+ sshEnabled?: boolean | undefined;
166
+ sshHost?: string | undefined;
167
+ sshPort?: string | undefined;
168
+ sshUser?: string | undefined;
169
+ schema?: string | undefined;
170
+ catalog?: string | undefined;
171
+ }>;
69
172
  readonly dremio: z.ZodObject<{
70
173
  schema: z.ZodString;
71
174
  host: z.ZodString;
@@ -75,7 +178,25 @@ declare const databaseMetadataSchemasByType: {
75
178
  sshHost: z.ZodOptional<z.ZodString>;
76
179
  sshPort: z.ZodOptional<z.ZodString>;
77
180
  sshUser: z.ZodOptional<z.ZodString>;
78
- }, z.core.$strip>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ host: string;
183
+ port: string;
184
+ token: string;
185
+ schema: string;
186
+ sshEnabled?: boolean | undefined;
187
+ sshHost?: string | undefined;
188
+ sshPort?: string | undefined;
189
+ sshUser?: string | undefined;
190
+ }, {
191
+ host: string;
192
+ port: string;
193
+ token: string;
194
+ schema: string;
195
+ sshEnabled?: boolean | undefined;
196
+ sshHost?: string | undefined;
197
+ sshPort?: string | undefined;
198
+ sshUser?: string | undefined;
199
+ }>;
79
200
  readonly mariadb: z.ZodObject<{
80
201
  host: z.ZodString;
81
202
  user: z.ZodString;
@@ -85,9 +206,32 @@ declare const databaseMetadataSchemasByType: {
85
206
  sshHost: z.ZodOptional<z.ZodString>;
86
207
  sshPort: z.ZodOptional<z.ZodString>;
87
208
  sshUser: z.ZodOptional<z.ZodString>;
209
+ } & {
88
210
  port: z.ZodOptional<z.ZodString>;
89
211
  caCertificateName: z.ZodOptional<z.ZodString>;
90
- }, z.core.$strip>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ host: string;
214
+ user: string;
215
+ password: string;
216
+ database: string;
217
+ sshEnabled?: boolean | undefined;
218
+ sshHost?: string | undefined;
219
+ sshPort?: string | undefined;
220
+ sshUser?: string | undefined;
221
+ port?: string | undefined;
222
+ caCertificateName?: string | undefined;
223
+ }, {
224
+ host: string;
225
+ user: string;
226
+ password: string;
227
+ database: string;
228
+ sshEnabled?: boolean | undefined;
229
+ sshHost?: string | undefined;
230
+ sshPort?: string | undefined;
231
+ sshUser?: string | undefined;
232
+ port?: string | undefined;
233
+ caCertificateName?: string | undefined;
234
+ }>;
91
235
  readonly materialize: z.ZodObject<{
92
236
  host: z.ZodString;
93
237
  user: z.ZodString;
@@ -97,12 +241,42 @@ declare const databaseMetadataSchemasByType: {
97
241
  sshHost: z.ZodOptional<z.ZodString>;
98
242
  sshPort: z.ZodOptional<z.ZodString>;
99
243
  sshUser: z.ZodOptional<z.ZodString>;
244
+ } & {
100
245
  port: z.ZodOptional<z.ZodString>;
101
246
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
102
247
  caCertificateName: z.ZodOptional<z.ZodString>;
103
248
  caCertificateText: z.ZodOptional<z.ZodString>;
249
+ } & {
104
250
  cluster: z.ZodString;
105
- }, z.core.$strip>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ host: string;
253
+ user: string;
254
+ password: string;
255
+ database: string;
256
+ cluster: string;
257
+ sshEnabled?: boolean | undefined;
258
+ sshHost?: string | undefined;
259
+ sshPort?: string | undefined;
260
+ sshUser?: string | undefined;
261
+ port?: string | undefined;
262
+ sslEnabled?: boolean | undefined;
263
+ caCertificateName?: string | undefined;
264
+ caCertificateText?: string | undefined;
265
+ }, {
266
+ host: string;
267
+ user: string;
268
+ password: string;
269
+ database: string;
270
+ cluster: string;
271
+ sshEnabled?: boolean | undefined;
272
+ sshHost?: string | undefined;
273
+ sshPort?: string | undefined;
274
+ sshUser?: string | undefined;
275
+ port?: string | undefined;
276
+ sslEnabled?: boolean | undefined;
277
+ caCertificateName?: string | undefined;
278
+ caCertificateText?: string | undefined;
279
+ }>;
106
280
  readonly mindsdb: z.ZodObject<{
107
281
  host: z.ZodString;
108
282
  user: z.ZodString;
@@ -112,9 +286,32 @@ declare const databaseMetadataSchemasByType: {
112
286
  sshHost: z.ZodOptional<z.ZodString>;
113
287
  sshPort: z.ZodOptional<z.ZodString>;
114
288
  sshUser: z.ZodOptional<z.ZodString>;
289
+ } & {
115
290
  port: z.ZodOptional<z.ZodString>;
116
291
  caCertificateName: z.ZodOptional<z.ZodString>;
117
- }, z.core.$strip>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ host: string;
294
+ user: string;
295
+ password: string;
296
+ database: string;
297
+ sshEnabled?: boolean | undefined;
298
+ sshHost?: string | undefined;
299
+ sshPort?: string | undefined;
300
+ sshUser?: string | undefined;
301
+ port?: string | undefined;
302
+ caCertificateName?: string | undefined;
303
+ }, {
304
+ host: string;
305
+ user: string;
306
+ password: string;
307
+ database: string;
308
+ sshEnabled?: boolean | undefined;
309
+ sshHost?: string | undefined;
310
+ sshPort?: string | undefined;
311
+ sshUser?: string | undefined;
312
+ port?: string | undefined;
313
+ caCertificateName?: string | undefined;
314
+ }>;
118
315
  readonly mongodb: z.ZodObject<{
119
316
  connection_string: z.ZodString;
120
317
  rawConnectionString: z.ZodOptional<z.ZodString>;
@@ -132,7 +329,41 @@ declare const databaseMetadataSchemasByType: {
132
329
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
133
330
  caCertificateName: z.ZodOptional<z.ZodString>;
134
331
  caCertificateText: z.ZodOptional<z.ZodString>;
135
- }, z.core.$strip>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ connection_string: string;
334
+ host?: string | undefined;
335
+ user?: string | undefined;
336
+ password?: string | undefined;
337
+ database?: string | undefined;
338
+ sshEnabled?: boolean | undefined;
339
+ sshHost?: string | undefined;
340
+ sshPort?: string | undefined;
341
+ sshUser?: string | undefined;
342
+ options?: string | undefined;
343
+ port?: string | undefined;
344
+ sslEnabled?: boolean | undefined;
345
+ caCertificateName?: string | undefined;
346
+ caCertificateText?: string | undefined;
347
+ rawConnectionString?: string | undefined;
348
+ prefix?: string | undefined;
349
+ }, {
350
+ connection_string: string;
351
+ host?: string | undefined;
352
+ user?: string | undefined;
353
+ password?: string | undefined;
354
+ database?: string | undefined;
355
+ sshEnabled?: boolean | undefined;
356
+ sshHost?: string | undefined;
357
+ sshPort?: string | undefined;
358
+ sshUser?: string | undefined;
359
+ options?: string | undefined;
360
+ port?: string | undefined;
361
+ sslEnabled?: boolean | undefined;
362
+ caCertificateName?: string | undefined;
363
+ caCertificateText?: string | undefined;
364
+ rawConnectionString?: string | undefined;
365
+ prefix?: string | undefined;
366
+ }>;
136
367
  readonly mysql: z.ZodObject<{
137
368
  host: z.ZodString;
138
369
  user: z.ZodString;
@@ -142,10 +373,33 @@ declare const databaseMetadataSchemasByType: {
142
373
  sshHost: z.ZodOptional<z.ZodString>;
143
374
  sshPort: z.ZodOptional<z.ZodString>;
144
375
  sshUser: z.ZodOptional<z.ZodString>;
376
+ } & {
145
377
  port: z.ZodOptional<z.ZodString>;
146
378
  caCertificateName: z.ZodOptional<z.ZodString>;
147
- }, z.core.$strip>;
148
- readonly 'pandas-dataframe': z.ZodObject<{}, z.core.$strip>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ host: string;
381
+ user: string;
382
+ password: string;
383
+ database: string;
384
+ sshEnabled?: boolean | undefined;
385
+ sshHost?: string | undefined;
386
+ sshPort?: string | undefined;
387
+ sshUser?: string | undefined;
388
+ port?: string | undefined;
389
+ caCertificateName?: string | undefined;
390
+ }, {
391
+ host: string;
392
+ user: string;
393
+ password: string;
394
+ database: string;
395
+ sshEnabled?: boolean | undefined;
396
+ sshHost?: string | undefined;
397
+ sshPort?: string | undefined;
398
+ sshUser?: string | undefined;
399
+ port?: string | undefined;
400
+ caCertificateName?: string | undefined;
401
+ }>;
402
+ readonly 'pandas-dataframe': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
149
403
  readonly pgsql: z.ZodObject<{
150
404
  host: z.ZodString;
151
405
  user: z.ZodString;
@@ -155,12 +409,39 @@ declare const databaseMetadataSchemasByType: {
155
409
  sshHost: z.ZodOptional<z.ZodString>;
156
410
  sshPort: z.ZodOptional<z.ZodString>;
157
411
  sshUser: z.ZodOptional<z.ZodString>;
412
+ } & {
158
413
  port: z.ZodOptional<z.ZodString>;
159
414
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
160
415
  caCertificateName: z.ZodOptional<z.ZodString>;
161
416
  caCertificateText: z.ZodOptional<z.ZodString>;
162
- }, z.core.$strip>;
163
- readonly redshift: z.ZodDiscriminatedUnion<[z.ZodObject<{
417
+ }, "strip", z.ZodTypeAny, {
418
+ host: string;
419
+ user: string;
420
+ password: string;
421
+ database: string;
422
+ sshEnabled?: boolean | undefined;
423
+ sshHost?: string | undefined;
424
+ sshPort?: string | undefined;
425
+ sshUser?: string | undefined;
426
+ port?: string | undefined;
427
+ sslEnabled?: boolean | undefined;
428
+ caCertificateName?: string | undefined;
429
+ caCertificateText?: string | undefined;
430
+ }, {
431
+ host: string;
432
+ user: string;
433
+ password: string;
434
+ database: string;
435
+ sshEnabled?: boolean | undefined;
436
+ sshHost?: string | undefined;
437
+ sshPort?: string | undefined;
438
+ sshUser?: string | undefined;
439
+ port?: string | undefined;
440
+ sslEnabled?: boolean | undefined;
441
+ caCertificateName?: string | undefined;
442
+ caCertificateText?: string | undefined;
443
+ }>;
444
+ readonly redshift: z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
164
445
  database: z.ZodString;
165
446
  host: z.ZodString;
166
447
  port: z.ZodOptional<z.ZodString>;
@@ -171,10 +452,39 @@ declare const databaseMetadataSchemasByType: {
171
452
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
172
453
  caCertificateName: z.ZodOptional<z.ZodString>;
173
454
  caCertificateText: z.ZodOptional<z.ZodString>;
455
+ } & {
174
456
  authMethod: z.ZodLiteral<"username-and-password">;
175
457
  user: z.ZodString;
176
458
  password: z.ZodString;
177
- }, z.core.$strip>, z.ZodObject<{
459
+ }, "strip", z.ZodTypeAny, {
460
+ host: string;
461
+ user: string;
462
+ password: string;
463
+ database: string;
464
+ authMethod: "username-and-password";
465
+ sshEnabled?: boolean | undefined;
466
+ sshHost?: string | undefined;
467
+ sshPort?: string | undefined;
468
+ sshUser?: string | undefined;
469
+ port?: string | undefined;
470
+ sslEnabled?: boolean | undefined;
471
+ caCertificateName?: string | undefined;
472
+ caCertificateText?: string | undefined;
473
+ }, {
474
+ host: string;
475
+ user: string;
476
+ password: string;
477
+ database: string;
478
+ authMethod: "username-and-password";
479
+ sshEnabled?: boolean | undefined;
480
+ sshHost?: string | undefined;
481
+ sshPort?: string | undefined;
482
+ sshUser?: string | undefined;
483
+ port?: string | undefined;
484
+ sslEnabled?: boolean | undefined;
485
+ caCertificateName?: string | undefined;
486
+ caCertificateText?: string | undefined;
487
+ }>, z.ZodObject<{
178
488
  database: z.ZodString;
179
489
  host: z.ZodString;
180
490
  port: z.ZodOptional<z.ZodString>;
@@ -185,11 +495,42 @@ declare const databaseMetadataSchemasByType: {
185
495
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
186
496
  caCertificateName: z.ZodOptional<z.ZodString>;
187
497
  caCertificateText: z.ZodOptional<z.ZodString>;
498
+ } & {
188
499
  authMethod: z.ZodLiteral<"iam-role">;
189
500
  roleArn: z.ZodString;
190
501
  roleExternalId: z.ZodString;
191
502
  roleNonce: z.ZodString;
192
- }, z.core.$strip>, z.ZodObject<{
503
+ }, "strip", z.ZodTypeAny, {
504
+ host: string;
505
+ database: string;
506
+ authMethod: "iam-role";
507
+ roleArn: string;
508
+ roleExternalId: string;
509
+ roleNonce: string;
510
+ sshEnabled?: boolean | undefined;
511
+ sshHost?: string | undefined;
512
+ sshPort?: string | undefined;
513
+ sshUser?: string | undefined;
514
+ port?: string | undefined;
515
+ sslEnabled?: boolean | undefined;
516
+ caCertificateName?: string | undefined;
517
+ caCertificateText?: string | undefined;
518
+ }, {
519
+ host: string;
520
+ database: string;
521
+ authMethod: "iam-role";
522
+ roleArn: string;
523
+ roleExternalId: string;
524
+ roleNonce: string;
525
+ sshEnabled?: boolean | undefined;
526
+ sshHost?: string | undefined;
527
+ sshPort?: string | undefined;
528
+ sshUser?: string | undefined;
529
+ port?: string | undefined;
530
+ sslEnabled?: boolean | undefined;
531
+ caCertificateName?: string | undefined;
532
+ caCertificateText?: string | undefined;
533
+ }>, z.ZodObject<{
193
534
  database: z.ZodString;
194
535
  host: z.ZodString;
195
536
  port: z.ZodOptional<z.ZodString>;
@@ -200,67 +541,212 @@ declare const databaseMetadataSchemasByType: {
200
541
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
201
542
  caCertificateName: z.ZodOptional<z.ZodString>;
202
543
  caCertificateText: z.ZodOptional<z.ZodString>;
544
+ } & {
203
545
  authMethod: z.ZodLiteral<"individual-credentials">;
204
- }, z.core.$strip>], "authMethod">;
205
- readonly snowflake: z.ZodDiscriminatedUnion<[z.ZodObject<{
546
+ }, "strip", z.ZodTypeAny, {
547
+ host: string;
548
+ database: string;
549
+ authMethod: "individual-credentials";
550
+ sshEnabled?: boolean | undefined;
551
+ sshHost?: string | undefined;
552
+ sshPort?: string | undefined;
553
+ sshUser?: string | undefined;
554
+ port?: string | undefined;
555
+ sslEnabled?: boolean | undefined;
556
+ caCertificateName?: string | undefined;
557
+ caCertificateText?: string | undefined;
558
+ }, {
559
+ host: string;
560
+ database: string;
561
+ authMethod: "individual-credentials";
562
+ sshEnabled?: boolean | undefined;
563
+ sshHost?: string | undefined;
564
+ sshPort?: string | undefined;
565
+ sshUser?: string | undefined;
566
+ port?: string | undefined;
567
+ sslEnabled?: boolean | undefined;
568
+ caCertificateName?: string | undefined;
569
+ caCertificateText?: string | undefined;
570
+ }>]>;
571
+ readonly snowflake: z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
206
572
  accountName: z.ZodString;
207
573
  warehouse: z.ZodOptional<z.ZodString>;
208
574
  database: z.ZodOptional<z.ZodString>;
209
575
  role: z.ZodOptional<z.ZodString>;
576
+ } & {
210
577
  authMethod: z.ZodLiteral<"password">;
211
578
  username: z.ZodString;
212
579
  password: z.ZodString;
213
- }, z.core.$strip>, z.ZodObject<{
580
+ }, "strip", z.ZodTypeAny, {
581
+ password: string;
582
+ authMethod: "password";
583
+ accountName: string;
584
+ username: string;
585
+ database?: string | undefined;
586
+ warehouse?: string | undefined;
587
+ role?: string | undefined;
588
+ }, {
589
+ password: string;
590
+ authMethod: "password";
591
+ accountName: string;
592
+ username: string;
593
+ database?: string | undefined;
594
+ warehouse?: string | undefined;
595
+ role?: string | undefined;
596
+ }>, z.ZodObject<{
214
597
  accountName: z.ZodString;
215
598
  warehouse: z.ZodOptional<z.ZodString>;
216
599
  database: z.ZodOptional<z.ZodString>;
217
600
  role: z.ZodOptional<z.ZodString>;
601
+ } & {
218
602
  authMethod: z.ZodLiteral<"okta">;
219
603
  clientId: z.ZodString;
220
604
  clientSecret: z.ZodString;
221
605
  oktaSubdomain: z.ZodString;
222
606
  identityProvider: z.ZodString;
223
607
  authorizationServer: z.ZodString;
224
- }, z.core.$strip>, z.ZodObject<{
608
+ }, "strip", z.ZodTypeAny, {
609
+ authMethod: "okta";
610
+ clientId: string;
611
+ clientSecret: string;
612
+ accountName: string;
613
+ oktaSubdomain: string;
614
+ identityProvider: string;
615
+ authorizationServer: string;
616
+ database?: string | undefined;
617
+ warehouse?: string | undefined;
618
+ role?: string | undefined;
619
+ }, {
620
+ authMethod: "okta";
621
+ clientId: string;
622
+ clientSecret: string;
623
+ accountName: string;
624
+ oktaSubdomain: string;
625
+ identityProvider: string;
626
+ authorizationServer: string;
627
+ database?: string | undefined;
628
+ warehouse?: string | undefined;
629
+ role?: string | undefined;
630
+ }>, z.ZodObject<{
225
631
  accountName: z.ZodString;
226
632
  warehouse: z.ZodOptional<z.ZodString>;
227
633
  database: z.ZodOptional<z.ZodString>;
228
634
  role: z.ZodOptional<z.ZodString>;
635
+ } & {
229
636
  authMethod: z.ZodLiteral<"snowflake">;
230
637
  clientId: z.ZodString;
231
638
  clientSecret: z.ZodString;
232
- }, z.core.$strip>, z.ZodObject<{
639
+ }, "strip", z.ZodTypeAny, {
640
+ authMethod: "snowflake";
641
+ clientId: string;
642
+ clientSecret: string;
643
+ accountName: string;
644
+ database?: string | undefined;
645
+ warehouse?: string | undefined;
646
+ role?: string | undefined;
647
+ }, {
648
+ authMethod: "snowflake";
649
+ clientId: string;
650
+ clientSecret: string;
651
+ accountName: string;
652
+ database?: string | undefined;
653
+ warehouse?: string | undefined;
654
+ role?: string | undefined;
655
+ }>, z.ZodObject<{
233
656
  accountName: z.ZodString;
234
657
  warehouse: z.ZodOptional<z.ZodString>;
235
658
  database: z.ZodOptional<z.ZodString>;
236
659
  role: z.ZodOptional<z.ZodString>;
660
+ } & {
237
661
  authMethod: z.ZodLiteral<"azure">;
238
662
  clientId: z.ZodString;
239
663
  clientSecret: z.ZodString;
240
664
  resource: z.ZodString;
241
665
  tenant: z.ZodString;
242
- }, z.core.$strip>, z.ZodObject<{
666
+ }, "strip", z.ZodTypeAny, {
667
+ authMethod: "azure";
668
+ clientId: string;
669
+ clientSecret: string;
670
+ accountName: string;
671
+ resource: string;
672
+ tenant: string;
673
+ database?: string | undefined;
674
+ warehouse?: string | undefined;
675
+ role?: string | undefined;
676
+ }, {
677
+ authMethod: "azure";
678
+ clientId: string;
679
+ clientSecret: string;
680
+ accountName: string;
681
+ resource: string;
682
+ tenant: string;
683
+ database?: string | undefined;
684
+ warehouse?: string | undefined;
685
+ role?: string | undefined;
686
+ }>, z.ZodObject<{
243
687
  accountName: z.ZodString;
244
688
  warehouse: z.ZodOptional<z.ZodString>;
245
689
  database: z.ZodOptional<z.ZodString>;
246
690
  role: z.ZodOptional<z.ZodString>;
691
+ } & {
247
692
  authMethod: z.ZodLiteral<"key-pair">;
248
- }, z.core.$strip>, z.ZodObject<{
693
+ }, "strip", z.ZodTypeAny, {
694
+ authMethod: "key-pair";
695
+ accountName: string;
696
+ database?: string | undefined;
697
+ warehouse?: string | undefined;
698
+ role?: string | undefined;
699
+ }, {
700
+ authMethod: "key-pair";
701
+ accountName: string;
702
+ database?: string | undefined;
703
+ warehouse?: string | undefined;
704
+ role?: string | undefined;
705
+ }>, z.ZodObject<{
249
706
  accountName: z.ZodString;
250
707
  warehouse: z.ZodOptional<z.ZodString>;
251
708
  database: z.ZodOptional<z.ZodString>;
252
709
  role: z.ZodOptional<z.ZodString>;
710
+ } & {
253
711
  authMethod: z.ZodLiteral<"service-account-key-pair">;
254
712
  username: z.ZodString;
255
713
  privateKey: z.ZodString;
256
714
  privateKeyPassphrase: z.ZodOptional<z.ZodString>;
257
- }, z.core.$strip>], "authMethod">;
715
+ }, "strip", z.ZodTypeAny, {
716
+ authMethod: "service-account-key-pair";
717
+ accountName: string;
718
+ username: string;
719
+ privateKey: string;
720
+ database?: string | undefined;
721
+ warehouse?: string | undefined;
722
+ role?: string | undefined;
723
+ privateKeyPassphrase?: string | undefined;
724
+ }, {
725
+ authMethod: "service-account-key-pair";
726
+ accountName: string;
727
+ username: string;
728
+ privateKey: string;
729
+ database?: string | undefined;
730
+ warehouse?: string | undefined;
731
+ role?: string | undefined;
732
+ privateKeyPassphrase?: string | undefined;
733
+ }>]>;
258
734
  readonly spanner: z.ZodObject<{
259
735
  service_account: z.ZodString;
260
736
  dataBoostEnabled: z.ZodBoolean;
261
737
  instance: z.ZodString;
262
738
  database: z.ZodString;
263
- }, z.core.$strip>;
739
+ }, "strip", z.ZodTypeAny, {
740
+ database: string;
741
+ service_account: string;
742
+ dataBoostEnabled: boolean;
743
+ instance: string;
744
+ }, {
745
+ database: string;
746
+ service_account: string;
747
+ dataBoostEnabled: boolean;
748
+ instance: string;
749
+ }>;
264
750
  readonly 'sql-server': z.ZodObject<{
265
751
  host: z.ZodString;
266
752
  user: z.ZodString;
@@ -270,8 +756,29 @@ declare const databaseMetadataSchemasByType: {
270
756
  sshHost: z.ZodOptional<z.ZodString>;
271
757
  sshPort: z.ZodOptional<z.ZodString>;
272
758
  sshUser: z.ZodOptional<z.ZodString>;
759
+ } & {
273
760
  port: z.ZodString;
274
- }, z.core.$strip>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ host: string;
763
+ user: string;
764
+ password: string;
765
+ database: string;
766
+ port: string;
767
+ sshEnabled?: boolean | undefined;
768
+ sshHost?: string | undefined;
769
+ sshPort?: string | undefined;
770
+ sshUser?: string | undefined;
771
+ }, {
772
+ host: string;
773
+ user: string;
774
+ password: string;
775
+ database: string;
776
+ port: string;
777
+ sshEnabled?: boolean | undefined;
778
+ sshHost?: string | undefined;
779
+ sshPort?: string | undefined;
780
+ sshUser?: string | undefined;
781
+ }>;
275
782
  readonly trino: z.ZodObject<{
276
783
  host: z.ZodString;
277
784
  user: z.ZodString;
@@ -285,7 +792,33 @@ declare const databaseMetadataSchemasByType: {
285
792
  sslEnabled: z.ZodOptional<z.ZodBoolean>;
286
793
  caCertificateName: z.ZodOptional<z.ZodString>;
287
794
  caCertificateText: z.ZodOptional<z.ZodString>;
288
- }, z.core.$strip>;
795
+ }, "strip", z.ZodTypeAny, {
796
+ host: string;
797
+ user: string;
798
+ password: string;
799
+ database: string;
800
+ port: string;
801
+ sshEnabled?: boolean | undefined;
802
+ sshHost?: string | undefined;
803
+ sshPort?: string | undefined;
804
+ sshUser?: string | undefined;
805
+ sslEnabled?: boolean | undefined;
806
+ caCertificateName?: string | undefined;
807
+ caCertificateText?: string | undefined;
808
+ }, {
809
+ host: string;
810
+ user: string;
811
+ password: string;
812
+ database: string;
813
+ port: string;
814
+ sshEnabled?: boolean | undefined;
815
+ sshHost?: string | undefined;
816
+ sshPort?: string | undefined;
817
+ sshUser?: string | undefined;
818
+ sslEnabled?: boolean | undefined;
819
+ caCertificateName?: string | undefined;
820
+ caCertificateText?: string | undefined;
821
+ }>;
289
822
  };
290
823
  type DatabaseIntegrationMetadataByType = { [integrationType in DatabaseIntegrationType]: z.infer<(typeof databaseMetadataSchemasByType)[integrationType]> };
291
824
  //#endregion
@@ -361,7 +894,7 @@ type DatabaseIntegrationConfig = { [integrationType in DatabaseIntegrationType]:
361
894
  type SqlIntegrationConfig = Extract<DatabaseIntegrationConfig, {
362
895
  type: SqlIntegrationType;
363
896
  }>;
364
- declare function getIntegrationListEnv(sqlIntegrations: Array<DatabaseIntegrationConfig>, params: {
897
+ declare function getEnvironmentVariablesForIntegrations(integrations: Array<DatabaseIntegrationConfig>, params: {
365
898
  projectRootDirectory: string;
366
899
  snowflakePartnerIdentifier?: string;
367
900
  }): {
@@ -395,4 +928,4 @@ declare class SpannerServiceAccountParseError extends Error {
395
928
  });
396
929
  }
397
930
  //#endregion
398
- export { type AwsAuthMethod, AwsAuthMethods, type BigQueryAuthMethod, BigQueryAuthMethods, BigQueryServiceAccountParseError, type DatabaseAuthMethod, DatabaseAuthMethods, type DatabaseIntegrationConfig, type DatabaseIntegrationMetadataByType, type DatabaseIntegrationType, type DatabaseIntegrationTypeWithSslSupport, type EnvVar, type FederatedAuthMethod, type SnowflakeAuthMethod, SnowflakeAuthMethods, SpannerServiceAccountParseError, type SqlAlchemyInput, type SqlIntegrationConfig, type SqlIntegrationType, databaseIntegrationTypes, databaseIntegrationTypesWithSslSupport, databaseMetadataSchemasByType, getIntegrationListEnv, getSqlAlchemyInput, isFederatedAuthMetadata, isFederatedAuthMethod, sqlIntegrationTypes };
931
+ export { type AwsAuthMethod, AwsAuthMethods, type BigQueryAuthMethod, BigQueryAuthMethods, BigQueryServiceAccountParseError, type DatabaseAuthMethod, DatabaseAuthMethods, type DatabaseIntegrationConfig, type DatabaseIntegrationMetadataByType, type DatabaseIntegrationType, type DatabaseIntegrationTypeWithSslSupport, type EnvVar, type FederatedAuthMethod, type SnowflakeAuthMethod, SnowflakeAuthMethods, SpannerServiceAccountParseError, type SqlAlchemyInput, type SqlIntegrationConfig, type SqlIntegrationType, databaseIntegrationTypes, databaseIntegrationTypesWithSslSupport, databaseMetadataSchemasByType, getEnvironmentVariablesForIntegrations, getSqlAlchemyInput, isFederatedAuthMetadata, isFederatedAuthMethod, sqlIntegrationTypes };