@deepnote/database-integrations 1.1.0 → 1.2.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
@@ -1,12 +1,1701 @@
1
- import { z } from "zod";
1
+ import z$1, { z } from "zod";
2
2
 
3
3
  //#region src/database-integration-types.d.ts
4
4
  declare const sqlIntegrationTypes: readonly ["alloydb", "athena", "big-query", "clickhouse", "databricks", "dremio", "mariadb", "materialize", "mindsdb", "mysql", "pandas-dataframe", "pgsql", "redshift", "snowflake", "spanner", "sql-server", "trino"];
5
5
  type SqlIntegrationType = (typeof sqlIntegrationTypes)[number];
6
6
  declare const databaseIntegrationTypes: readonly ["alloydb", "athena", "big-query", "clickhouse", "databricks", "dremio", "mariadb", "materialize", "mindsdb", "mysql", "pandas-dataframe", "pgsql", "redshift", "snowflake", "spanner", "sql-server", "trino", "mongodb"];
7
7
  type DatabaseIntegrationType = (typeof databaseIntegrationTypes)[number];
8
- declare const databaseIntegrationTypesWithSslSupport: readonly ["clickhouse", "dremio", "mariadb", "mindsdb", "mongodb", "mysql", "pgsql", "redshift", "trino"];
8
+ declare const databaseIntegrationTypesWithSslSupport: readonly ["alloydb", "clickhouse", "dremio", "mariadb", "mindsdb", "mongodb", "mysql", "pgsql", "redshift", "trino"];
9
9
  type DatabaseIntegrationTypeWithSslSupport = (typeof databaseIntegrationTypesWithSslSupport)[number];
10
+ declare function isDatabaseIntegrationType(type: string): type is DatabaseIntegrationType;
11
+ declare function isSqlIntegrationType(type: string): type is SqlIntegrationType;
12
+ declare function isDatabaseIntegrationTypeWithSslSupport(type: string): type is DatabaseIntegrationTypeWithSslSupport;
13
+ //#endregion
14
+ //#region src/database-integration-config.d.ts
15
+ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
16
+ id: z$1.ZodString;
17
+ name: z$1.ZodString;
18
+ } & {
19
+ type: z$1.ZodLiteral<"alloydb">;
20
+ metadata: z$1.ZodObject<{
21
+ host: z$1.ZodString;
22
+ user: z$1.ZodString;
23
+ password: z$1.ZodString;
24
+ database: z$1.ZodString;
25
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
26
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
27
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
28
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
29
+ } & {
30
+ port: z$1.ZodOptional<z$1.ZodString>;
31
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
32
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
33
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
34
+ }, "strip", z$1.ZodTypeAny, {
35
+ host: string;
36
+ user: string;
37
+ password: string;
38
+ database: string;
39
+ sshEnabled?: boolean | undefined;
40
+ sshHost?: string | undefined;
41
+ sshPort?: string | undefined;
42
+ sshUser?: string | undefined;
43
+ port?: string | undefined;
44
+ sslEnabled?: boolean | undefined;
45
+ caCertificateName?: string | undefined;
46
+ caCertificateText?: string | undefined;
47
+ }, {
48
+ host: string;
49
+ user: string;
50
+ password: string;
51
+ database: string;
52
+ sshEnabled?: boolean | undefined;
53
+ sshHost?: string | undefined;
54
+ sshPort?: string | undefined;
55
+ sshUser?: string | undefined;
56
+ port?: string | undefined;
57
+ sslEnabled?: boolean | undefined;
58
+ caCertificateName?: string | undefined;
59
+ caCertificateText?: string | undefined;
60
+ }>;
61
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
62
+ }, "strip", z$1.ZodTypeAny, {
63
+ type: "alloydb";
64
+ id: string;
65
+ name: string;
66
+ metadata: {
67
+ host: string;
68
+ user: string;
69
+ password: string;
70
+ database: string;
71
+ sshEnabled?: boolean | undefined;
72
+ sshHost?: string | undefined;
73
+ sshPort?: string | undefined;
74
+ sshUser?: string | undefined;
75
+ port?: string | undefined;
76
+ sslEnabled?: boolean | undefined;
77
+ caCertificateName?: string | undefined;
78
+ caCertificateText?: string | undefined;
79
+ };
80
+ federated_auth_method?: null | undefined;
81
+ }, {
82
+ type: "alloydb";
83
+ id: string;
84
+ name: string;
85
+ metadata: {
86
+ host: string;
87
+ user: string;
88
+ password: string;
89
+ database: string;
90
+ sshEnabled?: boolean | undefined;
91
+ sshHost?: string | undefined;
92
+ sshPort?: string | undefined;
93
+ sshUser?: string | undefined;
94
+ port?: string | undefined;
95
+ sslEnabled?: boolean | undefined;
96
+ caCertificateName?: string | undefined;
97
+ caCertificateText?: string | undefined;
98
+ };
99
+ federated_auth_method?: null | undefined;
100
+ }>, z$1.ZodObject<{
101
+ id: z$1.ZodString;
102
+ name: z$1.ZodString;
103
+ } & {
104
+ type: z$1.ZodLiteral<"athena">;
105
+ metadata: z$1.ZodObject<{
106
+ access_key_id: z$1.ZodString;
107
+ region: z$1.ZodString;
108
+ s3_output_path: z$1.ZodString;
109
+ secret_access_key: z$1.ZodString;
110
+ workgroup: z$1.ZodOptional<z$1.ZodString>;
111
+ }, "strip", z$1.ZodTypeAny, {
112
+ access_key_id: string;
113
+ region: string;
114
+ s3_output_path: string;
115
+ secret_access_key: string;
116
+ workgroup?: string | undefined;
117
+ }, {
118
+ access_key_id: string;
119
+ region: string;
120
+ s3_output_path: string;
121
+ secret_access_key: string;
122
+ workgroup?: string | undefined;
123
+ }>;
124
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
125
+ }, "strip", z$1.ZodTypeAny, {
126
+ type: "athena";
127
+ id: string;
128
+ name: string;
129
+ metadata: {
130
+ access_key_id: string;
131
+ region: string;
132
+ s3_output_path: string;
133
+ secret_access_key: string;
134
+ workgroup?: string | undefined;
135
+ };
136
+ federated_auth_method?: null | undefined;
137
+ }, {
138
+ type: "athena";
139
+ id: string;
140
+ name: string;
141
+ metadata: {
142
+ access_key_id: string;
143
+ region: string;
144
+ s3_output_path: string;
145
+ secret_access_key: string;
146
+ workgroup?: string | undefined;
147
+ };
148
+ federated_auth_method?: null | undefined;
149
+ }>, z$1.ZodObject<{
150
+ id: z$1.ZodString;
151
+ name: z$1.ZodString;
152
+ } & {
153
+ type: z$1.ZodLiteral<"big-query">;
154
+ metadata: z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
155
+ authMethod: z$1.ZodLiteral<"service-account">;
156
+ service_account: z$1.ZodString;
157
+ }, "strip", z$1.ZodTypeAny, {
158
+ authMethod: "service-account";
159
+ service_account: string;
160
+ }, {
161
+ authMethod: "service-account";
162
+ service_account: string;
163
+ }>, z$1.ZodObject<{
164
+ authMethod: z$1.ZodLiteral<"google-oauth">;
165
+ project: z$1.ZodString;
166
+ clientId: z$1.ZodString;
167
+ clientSecret: z$1.ZodString;
168
+ }, "strip", z$1.ZodTypeAny, {
169
+ authMethod: "google-oauth";
170
+ project: string;
171
+ clientId: string;
172
+ clientSecret: string;
173
+ }, {
174
+ authMethod: "google-oauth";
175
+ project: string;
176
+ clientId: string;
177
+ clientSecret: string;
178
+ }>]>;
179
+ federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["google-oauth"]>>>;
180
+ }, "strip", z$1.ZodTypeAny, {
181
+ type: "big-query";
182
+ id: string;
183
+ name: string;
184
+ metadata: {
185
+ authMethod: "service-account";
186
+ service_account: string;
187
+ } | {
188
+ authMethod: "google-oauth";
189
+ project: string;
190
+ clientId: string;
191
+ clientSecret: string;
192
+ };
193
+ federated_auth_method?: "google-oauth" | null | undefined;
194
+ }, {
195
+ type: "big-query";
196
+ id: string;
197
+ name: string;
198
+ metadata: {
199
+ authMethod: "service-account";
200
+ service_account: string;
201
+ } | {
202
+ authMethod: "google-oauth";
203
+ project: string;
204
+ clientId: string;
205
+ clientSecret: string;
206
+ };
207
+ federated_auth_method?: "google-oauth" | null | undefined;
208
+ }>, z$1.ZodObject<{
209
+ id: z$1.ZodString;
210
+ name: z$1.ZodString;
211
+ } & {
212
+ type: z$1.ZodLiteral<"clickhouse">;
213
+ metadata: z$1.ZodObject<{
214
+ host: z$1.ZodString;
215
+ user: z$1.ZodString;
216
+ password: z$1.ZodOptional<z$1.ZodString>;
217
+ database: z$1.ZodString;
218
+ port: z$1.ZodOptional<z$1.ZodString>;
219
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
220
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
221
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
222
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
223
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
224
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
225
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
226
+ }, "strip", z$1.ZodTypeAny, {
227
+ host: string;
228
+ user: string;
229
+ database: string;
230
+ password?: string | undefined;
231
+ sshEnabled?: boolean | undefined;
232
+ sshHost?: string | undefined;
233
+ sshPort?: string | undefined;
234
+ sshUser?: string | undefined;
235
+ port?: string | undefined;
236
+ sslEnabled?: boolean | undefined;
237
+ caCertificateName?: string | undefined;
238
+ caCertificateText?: string | undefined;
239
+ }, {
240
+ host: string;
241
+ user: string;
242
+ database: string;
243
+ password?: string | undefined;
244
+ sshEnabled?: boolean | undefined;
245
+ sshHost?: string | undefined;
246
+ sshPort?: string | undefined;
247
+ sshUser?: string | undefined;
248
+ port?: string | undefined;
249
+ sslEnabled?: boolean | undefined;
250
+ caCertificateName?: string | undefined;
251
+ caCertificateText?: string | undefined;
252
+ }>;
253
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
254
+ }, "strip", z$1.ZodTypeAny, {
255
+ type: "clickhouse";
256
+ id: string;
257
+ name: string;
258
+ metadata: {
259
+ host: string;
260
+ user: string;
261
+ database: string;
262
+ password?: string | undefined;
263
+ sshEnabled?: boolean | undefined;
264
+ sshHost?: string | undefined;
265
+ sshPort?: string | undefined;
266
+ sshUser?: string | undefined;
267
+ port?: string | undefined;
268
+ sslEnabled?: boolean | undefined;
269
+ caCertificateName?: string | undefined;
270
+ caCertificateText?: string | undefined;
271
+ };
272
+ federated_auth_method?: null | undefined;
273
+ }, {
274
+ type: "clickhouse";
275
+ id: string;
276
+ name: string;
277
+ metadata: {
278
+ host: string;
279
+ user: string;
280
+ database: string;
281
+ password?: string | undefined;
282
+ sshEnabled?: boolean | undefined;
283
+ sshHost?: string | undefined;
284
+ sshPort?: string | undefined;
285
+ sshUser?: string | undefined;
286
+ port?: string | undefined;
287
+ sslEnabled?: boolean | undefined;
288
+ caCertificateName?: string | undefined;
289
+ caCertificateText?: string | undefined;
290
+ };
291
+ federated_auth_method?: null | undefined;
292
+ }>, z$1.ZodObject<{
293
+ id: z$1.ZodString;
294
+ name: z$1.ZodString;
295
+ } & {
296
+ type: z$1.ZodLiteral<"databricks">;
297
+ metadata: z$1.ZodObject<{
298
+ host: z$1.ZodString;
299
+ httpPath: z$1.ZodString;
300
+ token: z$1.ZodString;
301
+ port: z$1.ZodString;
302
+ schema: z$1.ZodOptional<z$1.ZodString>;
303
+ catalog: z$1.ZodOptional<z$1.ZodString>;
304
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
305
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
306
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
307
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
308
+ }, "strip", z$1.ZodTypeAny, {
309
+ host: string;
310
+ port: string;
311
+ httpPath: string;
312
+ token: string;
313
+ sshEnabled?: boolean | undefined;
314
+ sshHost?: string | undefined;
315
+ sshPort?: string | undefined;
316
+ sshUser?: string | undefined;
317
+ schema?: string | undefined;
318
+ catalog?: string | undefined;
319
+ }, {
320
+ host: string;
321
+ port: string;
322
+ httpPath: string;
323
+ token: string;
324
+ sshEnabled?: boolean | undefined;
325
+ sshHost?: string | undefined;
326
+ sshPort?: string | undefined;
327
+ sshUser?: string | undefined;
328
+ schema?: string | undefined;
329
+ catalog?: string | undefined;
330
+ }>;
331
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
332
+ }, "strip", z$1.ZodTypeAny, {
333
+ type: "databricks";
334
+ id: string;
335
+ name: string;
336
+ metadata: {
337
+ host: string;
338
+ port: string;
339
+ httpPath: string;
340
+ token: string;
341
+ sshEnabled?: boolean | undefined;
342
+ sshHost?: string | undefined;
343
+ sshPort?: string | undefined;
344
+ sshUser?: string | undefined;
345
+ schema?: string | undefined;
346
+ catalog?: string | undefined;
347
+ };
348
+ federated_auth_method?: null | undefined;
349
+ }, {
350
+ type: "databricks";
351
+ id: string;
352
+ name: string;
353
+ metadata: {
354
+ host: string;
355
+ port: string;
356
+ httpPath: string;
357
+ token: string;
358
+ sshEnabled?: boolean | undefined;
359
+ sshHost?: string | undefined;
360
+ sshPort?: string | undefined;
361
+ sshUser?: string | undefined;
362
+ schema?: string | undefined;
363
+ catalog?: string | undefined;
364
+ };
365
+ federated_auth_method?: null | undefined;
366
+ }>, z$1.ZodObject<{
367
+ id: z$1.ZodString;
368
+ name: z$1.ZodString;
369
+ } & {
370
+ type: z$1.ZodLiteral<"dremio">;
371
+ metadata: z$1.ZodObject<{
372
+ schema: z$1.ZodString;
373
+ host: z$1.ZodString;
374
+ port: z$1.ZodString;
375
+ token: z$1.ZodString;
376
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
377
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
378
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
379
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
380
+ }, "strip", z$1.ZodTypeAny, {
381
+ host: string;
382
+ port: string;
383
+ token: string;
384
+ schema: string;
385
+ sshEnabled?: boolean | undefined;
386
+ sshHost?: string | undefined;
387
+ sshPort?: string | undefined;
388
+ sshUser?: string | undefined;
389
+ }, {
390
+ host: string;
391
+ port: string;
392
+ token: string;
393
+ schema: string;
394
+ sshEnabled?: boolean | undefined;
395
+ sshHost?: string | undefined;
396
+ sshPort?: string | undefined;
397
+ sshUser?: string | undefined;
398
+ }>;
399
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
400
+ }, "strip", z$1.ZodTypeAny, {
401
+ type: "dremio";
402
+ id: string;
403
+ name: string;
404
+ metadata: {
405
+ host: string;
406
+ port: string;
407
+ token: string;
408
+ schema: string;
409
+ sshEnabled?: boolean | undefined;
410
+ sshHost?: string | undefined;
411
+ sshPort?: string | undefined;
412
+ sshUser?: string | undefined;
413
+ };
414
+ federated_auth_method?: null | undefined;
415
+ }, {
416
+ type: "dremio";
417
+ id: string;
418
+ name: string;
419
+ metadata: {
420
+ host: string;
421
+ port: string;
422
+ token: string;
423
+ schema: string;
424
+ sshEnabled?: boolean | undefined;
425
+ sshHost?: string | undefined;
426
+ sshPort?: string | undefined;
427
+ sshUser?: string | undefined;
428
+ };
429
+ federated_auth_method?: null | undefined;
430
+ }>, z$1.ZodObject<{
431
+ id: z$1.ZodString;
432
+ name: z$1.ZodString;
433
+ } & {
434
+ type: z$1.ZodLiteral<"mariadb">;
435
+ metadata: z$1.ZodObject<{
436
+ host: z$1.ZodString;
437
+ user: z$1.ZodString;
438
+ password: z$1.ZodString;
439
+ database: z$1.ZodString;
440
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
441
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
442
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
443
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
444
+ } & {
445
+ port: z$1.ZodOptional<z$1.ZodString>;
446
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
447
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
448
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
449
+ }, "strip", z$1.ZodTypeAny, {
450
+ host: string;
451
+ user: string;
452
+ password: string;
453
+ database: string;
454
+ sshEnabled?: boolean | undefined;
455
+ sshHost?: string | undefined;
456
+ sshPort?: string | undefined;
457
+ sshUser?: string | undefined;
458
+ port?: string | undefined;
459
+ sslEnabled?: boolean | undefined;
460
+ caCertificateName?: string | undefined;
461
+ caCertificateText?: string | undefined;
462
+ }, {
463
+ host: string;
464
+ user: string;
465
+ password: string;
466
+ database: string;
467
+ sshEnabled?: boolean | undefined;
468
+ sshHost?: string | undefined;
469
+ sshPort?: string | undefined;
470
+ sshUser?: string | undefined;
471
+ port?: string | undefined;
472
+ sslEnabled?: boolean | undefined;
473
+ caCertificateName?: string | undefined;
474
+ caCertificateText?: string | undefined;
475
+ }>;
476
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
477
+ }, "strip", z$1.ZodTypeAny, {
478
+ type: "mariadb";
479
+ id: string;
480
+ name: string;
481
+ metadata: {
482
+ host: string;
483
+ user: string;
484
+ password: string;
485
+ database: string;
486
+ sshEnabled?: boolean | undefined;
487
+ sshHost?: string | undefined;
488
+ sshPort?: string | undefined;
489
+ sshUser?: string | undefined;
490
+ port?: string | undefined;
491
+ sslEnabled?: boolean | undefined;
492
+ caCertificateName?: string | undefined;
493
+ caCertificateText?: string | undefined;
494
+ };
495
+ federated_auth_method?: null | undefined;
496
+ }, {
497
+ type: "mariadb";
498
+ id: string;
499
+ name: string;
500
+ metadata: {
501
+ host: string;
502
+ user: string;
503
+ password: string;
504
+ database: string;
505
+ sshEnabled?: boolean | undefined;
506
+ sshHost?: string | undefined;
507
+ sshPort?: string | undefined;
508
+ sshUser?: string | undefined;
509
+ port?: string | undefined;
510
+ sslEnabled?: boolean | undefined;
511
+ caCertificateName?: string | undefined;
512
+ caCertificateText?: string | undefined;
513
+ };
514
+ federated_auth_method?: null | undefined;
515
+ }>, z$1.ZodObject<{
516
+ id: z$1.ZodString;
517
+ name: z$1.ZodString;
518
+ } & {
519
+ type: z$1.ZodLiteral<"materialize">;
520
+ metadata: z$1.ZodObject<{
521
+ host: z$1.ZodString;
522
+ user: z$1.ZodString;
523
+ password: z$1.ZodString;
524
+ database: z$1.ZodString;
525
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
526
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
527
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
528
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
529
+ } & {
530
+ port: z$1.ZodOptional<z$1.ZodString>;
531
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
532
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
533
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
534
+ } & {
535
+ cluster: z$1.ZodString;
536
+ }, "strip", z$1.ZodTypeAny, {
537
+ host: string;
538
+ user: string;
539
+ password: string;
540
+ database: string;
541
+ cluster: string;
542
+ sshEnabled?: boolean | undefined;
543
+ sshHost?: string | undefined;
544
+ sshPort?: string | undefined;
545
+ sshUser?: string | undefined;
546
+ port?: string | undefined;
547
+ sslEnabled?: boolean | undefined;
548
+ caCertificateName?: string | undefined;
549
+ caCertificateText?: string | undefined;
550
+ }, {
551
+ host: string;
552
+ user: string;
553
+ password: string;
554
+ database: string;
555
+ cluster: string;
556
+ sshEnabled?: boolean | undefined;
557
+ sshHost?: string | undefined;
558
+ sshPort?: string | undefined;
559
+ sshUser?: string | undefined;
560
+ port?: string | undefined;
561
+ sslEnabled?: boolean | undefined;
562
+ caCertificateName?: string | undefined;
563
+ caCertificateText?: string | undefined;
564
+ }>;
565
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
566
+ }, "strip", z$1.ZodTypeAny, {
567
+ type: "materialize";
568
+ id: string;
569
+ name: string;
570
+ metadata: {
571
+ host: string;
572
+ user: string;
573
+ password: string;
574
+ database: string;
575
+ cluster: string;
576
+ sshEnabled?: boolean | undefined;
577
+ sshHost?: string | undefined;
578
+ sshPort?: string | undefined;
579
+ sshUser?: string | undefined;
580
+ port?: string | undefined;
581
+ sslEnabled?: boolean | undefined;
582
+ caCertificateName?: string | undefined;
583
+ caCertificateText?: string | undefined;
584
+ };
585
+ federated_auth_method?: null | undefined;
586
+ }, {
587
+ type: "materialize";
588
+ id: string;
589
+ name: string;
590
+ metadata: {
591
+ host: string;
592
+ user: string;
593
+ password: string;
594
+ database: string;
595
+ cluster: string;
596
+ sshEnabled?: boolean | undefined;
597
+ sshHost?: string | undefined;
598
+ sshPort?: string | undefined;
599
+ sshUser?: string | undefined;
600
+ port?: string | undefined;
601
+ sslEnabled?: boolean | undefined;
602
+ caCertificateName?: string | undefined;
603
+ caCertificateText?: string | undefined;
604
+ };
605
+ federated_auth_method?: null | undefined;
606
+ }>, z$1.ZodObject<{
607
+ id: z$1.ZodString;
608
+ name: z$1.ZodString;
609
+ } & {
610
+ type: z$1.ZodLiteral<"mindsdb">;
611
+ metadata: z$1.ZodObject<{
612
+ host: z$1.ZodString;
613
+ user: z$1.ZodString;
614
+ password: z$1.ZodString;
615
+ database: z$1.ZodString;
616
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
617
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
618
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
619
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
620
+ } & {
621
+ port: z$1.ZodOptional<z$1.ZodString>;
622
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
623
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
624
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
625
+ }, "strip", z$1.ZodTypeAny, {
626
+ host: string;
627
+ user: string;
628
+ password: string;
629
+ database: string;
630
+ sshEnabled?: boolean | undefined;
631
+ sshHost?: string | undefined;
632
+ sshPort?: string | undefined;
633
+ sshUser?: string | undefined;
634
+ port?: string | undefined;
635
+ sslEnabled?: boolean | undefined;
636
+ caCertificateName?: string | undefined;
637
+ caCertificateText?: string | undefined;
638
+ }, {
639
+ host: string;
640
+ user: string;
641
+ password: string;
642
+ database: string;
643
+ sshEnabled?: boolean | undefined;
644
+ sshHost?: string | undefined;
645
+ sshPort?: string | undefined;
646
+ sshUser?: string | undefined;
647
+ port?: string | undefined;
648
+ sslEnabled?: boolean | undefined;
649
+ caCertificateName?: string | undefined;
650
+ caCertificateText?: string | undefined;
651
+ }>;
652
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
653
+ }, "strip", z$1.ZodTypeAny, {
654
+ type: "mindsdb";
655
+ id: string;
656
+ name: string;
657
+ metadata: {
658
+ host: string;
659
+ user: string;
660
+ password: string;
661
+ database: string;
662
+ sshEnabled?: boolean | undefined;
663
+ sshHost?: string | undefined;
664
+ sshPort?: string | undefined;
665
+ sshUser?: string | undefined;
666
+ port?: string | undefined;
667
+ sslEnabled?: boolean | undefined;
668
+ caCertificateName?: string | undefined;
669
+ caCertificateText?: string | undefined;
670
+ };
671
+ federated_auth_method?: null | undefined;
672
+ }, {
673
+ type: "mindsdb";
674
+ id: string;
675
+ name: string;
676
+ metadata: {
677
+ host: string;
678
+ user: string;
679
+ password: string;
680
+ database: string;
681
+ sshEnabled?: boolean | undefined;
682
+ sshHost?: string | undefined;
683
+ sshPort?: string | undefined;
684
+ sshUser?: string | undefined;
685
+ port?: string | undefined;
686
+ sslEnabled?: boolean | undefined;
687
+ caCertificateName?: string | undefined;
688
+ caCertificateText?: string | undefined;
689
+ };
690
+ federated_auth_method?: null | undefined;
691
+ }>, z$1.ZodObject<{
692
+ id: z$1.ZodString;
693
+ name: z$1.ZodString;
694
+ } & {
695
+ type: z$1.ZodLiteral<"mongodb">;
696
+ metadata: z$1.ZodObject<{
697
+ connection_string: z$1.ZodString;
698
+ rawConnectionString: z$1.ZodOptional<z$1.ZodString>;
699
+ prefix: z$1.ZodOptional<z$1.ZodString>;
700
+ host: z$1.ZodOptional<z$1.ZodString>;
701
+ port: z$1.ZodOptional<z$1.ZodString>;
702
+ user: z$1.ZodOptional<z$1.ZodString>;
703
+ password: z$1.ZodOptional<z$1.ZodString>;
704
+ database: z$1.ZodOptional<z$1.ZodString>;
705
+ options: z$1.ZodOptional<z$1.ZodString>;
706
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
707
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
708
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
709
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
710
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
711
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
712
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
713
+ }, "strip", z$1.ZodTypeAny, {
714
+ connection_string: string;
715
+ host?: string | undefined;
716
+ user?: string | undefined;
717
+ password?: string | undefined;
718
+ database?: string | undefined;
719
+ sshEnabled?: boolean | undefined;
720
+ sshHost?: string | undefined;
721
+ sshPort?: string | undefined;
722
+ sshUser?: string | undefined;
723
+ options?: string | undefined;
724
+ port?: string | undefined;
725
+ sslEnabled?: boolean | undefined;
726
+ caCertificateName?: string | undefined;
727
+ caCertificateText?: string | undefined;
728
+ rawConnectionString?: string | undefined;
729
+ prefix?: string | undefined;
730
+ }, {
731
+ connection_string: string;
732
+ host?: string | undefined;
733
+ user?: string | undefined;
734
+ password?: string | undefined;
735
+ database?: string | undefined;
736
+ sshEnabled?: boolean | undefined;
737
+ sshHost?: string | undefined;
738
+ sshPort?: string | undefined;
739
+ sshUser?: string | undefined;
740
+ options?: string | undefined;
741
+ port?: string | undefined;
742
+ sslEnabled?: boolean | undefined;
743
+ caCertificateName?: string | undefined;
744
+ caCertificateText?: string | undefined;
745
+ rawConnectionString?: string | undefined;
746
+ prefix?: string | undefined;
747
+ }>;
748
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
749
+ }, "strip", z$1.ZodTypeAny, {
750
+ type: "mongodb";
751
+ id: string;
752
+ name: string;
753
+ metadata: {
754
+ connection_string: string;
755
+ host?: string | undefined;
756
+ user?: string | undefined;
757
+ password?: string | undefined;
758
+ database?: string | undefined;
759
+ sshEnabled?: boolean | undefined;
760
+ sshHost?: string | undefined;
761
+ sshPort?: string | undefined;
762
+ sshUser?: string | undefined;
763
+ options?: string | undefined;
764
+ port?: string | undefined;
765
+ sslEnabled?: boolean | undefined;
766
+ caCertificateName?: string | undefined;
767
+ caCertificateText?: string | undefined;
768
+ rawConnectionString?: string | undefined;
769
+ prefix?: string | undefined;
770
+ };
771
+ federated_auth_method?: null | undefined;
772
+ }, {
773
+ type: "mongodb";
774
+ id: string;
775
+ name: string;
776
+ metadata: {
777
+ connection_string: string;
778
+ host?: string | undefined;
779
+ user?: string | undefined;
780
+ password?: string | undefined;
781
+ database?: string | undefined;
782
+ sshEnabled?: boolean | undefined;
783
+ sshHost?: string | undefined;
784
+ sshPort?: string | undefined;
785
+ sshUser?: string | undefined;
786
+ options?: string | undefined;
787
+ port?: string | undefined;
788
+ sslEnabled?: boolean | undefined;
789
+ caCertificateName?: string | undefined;
790
+ caCertificateText?: string | undefined;
791
+ rawConnectionString?: string | undefined;
792
+ prefix?: string | undefined;
793
+ };
794
+ federated_auth_method?: null | undefined;
795
+ }>, z$1.ZodObject<{
796
+ id: z$1.ZodString;
797
+ name: z$1.ZodString;
798
+ } & {
799
+ type: z$1.ZodLiteral<"mysql">;
800
+ metadata: z$1.ZodObject<{
801
+ host: z$1.ZodString;
802
+ user: z$1.ZodString;
803
+ password: z$1.ZodString;
804
+ database: z$1.ZodString;
805
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
806
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
807
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
808
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
809
+ } & {
810
+ port: z$1.ZodOptional<z$1.ZodString>;
811
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
812
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
813
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
814
+ }, "strip", z$1.ZodTypeAny, {
815
+ host: string;
816
+ user: string;
817
+ password: string;
818
+ database: string;
819
+ sshEnabled?: boolean | undefined;
820
+ sshHost?: string | undefined;
821
+ sshPort?: string | undefined;
822
+ sshUser?: string | undefined;
823
+ port?: string | undefined;
824
+ sslEnabled?: boolean | undefined;
825
+ caCertificateName?: string | undefined;
826
+ caCertificateText?: string | undefined;
827
+ }, {
828
+ host: string;
829
+ user: string;
830
+ password: string;
831
+ database: string;
832
+ sshEnabled?: boolean | undefined;
833
+ sshHost?: string | undefined;
834
+ sshPort?: string | undefined;
835
+ sshUser?: string | undefined;
836
+ port?: string | undefined;
837
+ sslEnabled?: boolean | undefined;
838
+ caCertificateName?: string | undefined;
839
+ caCertificateText?: string | undefined;
840
+ }>;
841
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
842
+ }, "strip", z$1.ZodTypeAny, {
843
+ type: "mysql";
844
+ id: string;
845
+ name: string;
846
+ metadata: {
847
+ host: string;
848
+ user: string;
849
+ password: string;
850
+ database: string;
851
+ sshEnabled?: boolean | undefined;
852
+ sshHost?: string | undefined;
853
+ sshPort?: string | undefined;
854
+ sshUser?: string | undefined;
855
+ port?: string | undefined;
856
+ sslEnabled?: boolean | undefined;
857
+ caCertificateName?: string | undefined;
858
+ caCertificateText?: string | undefined;
859
+ };
860
+ federated_auth_method?: null | undefined;
861
+ }, {
862
+ type: "mysql";
863
+ id: string;
864
+ name: string;
865
+ metadata: {
866
+ host: string;
867
+ user: string;
868
+ password: string;
869
+ database: string;
870
+ sshEnabled?: boolean | undefined;
871
+ sshHost?: string | undefined;
872
+ sshPort?: string | undefined;
873
+ sshUser?: string | undefined;
874
+ port?: string | undefined;
875
+ sslEnabled?: boolean | undefined;
876
+ caCertificateName?: string | undefined;
877
+ caCertificateText?: string | undefined;
878
+ };
879
+ federated_auth_method?: null | undefined;
880
+ }>, z$1.ZodObject<{
881
+ id: z$1.ZodString;
882
+ name: z$1.ZodString;
883
+ } & {
884
+ type: z$1.ZodLiteral<"pandas-dataframe">;
885
+ metadata: z$1.ZodObject<{}, "strip", z$1.ZodTypeAny, {}, {}>;
886
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
887
+ }, "strip", z$1.ZodTypeAny, {
888
+ type: "pandas-dataframe";
889
+ id: string;
890
+ name: string;
891
+ metadata: {};
892
+ federated_auth_method?: null | undefined;
893
+ }, {
894
+ type: "pandas-dataframe";
895
+ id: string;
896
+ name: string;
897
+ metadata: {};
898
+ federated_auth_method?: null | undefined;
899
+ }>, z$1.ZodObject<{
900
+ id: z$1.ZodString;
901
+ name: z$1.ZodString;
902
+ } & {
903
+ type: z$1.ZodLiteral<"pgsql">;
904
+ metadata: z$1.ZodObject<{
905
+ host: z$1.ZodString;
906
+ user: z$1.ZodString;
907
+ password: z$1.ZodString;
908
+ database: z$1.ZodString;
909
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
910
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
911
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
912
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
913
+ } & {
914
+ port: z$1.ZodOptional<z$1.ZodString>;
915
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
916
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
917
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
918
+ }, "strip", z$1.ZodTypeAny, {
919
+ host: string;
920
+ user: string;
921
+ password: string;
922
+ database: string;
923
+ sshEnabled?: boolean | undefined;
924
+ sshHost?: string | undefined;
925
+ sshPort?: string | undefined;
926
+ sshUser?: string | undefined;
927
+ port?: string | undefined;
928
+ sslEnabled?: boolean | undefined;
929
+ caCertificateName?: string | undefined;
930
+ caCertificateText?: string | undefined;
931
+ }, {
932
+ host: string;
933
+ user: string;
934
+ password: string;
935
+ database: string;
936
+ sshEnabled?: boolean | undefined;
937
+ sshHost?: string | undefined;
938
+ sshPort?: string | undefined;
939
+ sshUser?: string | undefined;
940
+ port?: string | undefined;
941
+ sslEnabled?: boolean | undefined;
942
+ caCertificateName?: string | undefined;
943
+ caCertificateText?: string | undefined;
944
+ }>;
945
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
946
+ }, "strip", z$1.ZodTypeAny, {
947
+ type: "pgsql";
948
+ id: string;
949
+ name: string;
950
+ metadata: {
951
+ host: string;
952
+ user: string;
953
+ password: string;
954
+ database: string;
955
+ sshEnabled?: boolean | undefined;
956
+ sshHost?: string | undefined;
957
+ sshPort?: string | undefined;
958
+ sshUser?: string | undefined;
959
+ port?: string | undefined;
960
+ sslEnabled?: boolean | undefined;
961
+ caCertificateName?: string | undefined;
962
+ caCertificateText?: string | undefined;
963
+ };
964
+ federated_auth_method?: null | undefined;
965
+ }, {
966
+ type: "pgsql";
967
+ id: string;
968
+ name: string;
969
+ metadata: {
970
+ host: string;
971
+ user: string;
972
+ password: string;
973
+ database: string;
974
+ sshEnabled?: boolean | undefined;
975
+ sshHost?: string | undefined;
976
+ sshPort?: string | undefined;
977
+ sshUser?: string | undefined;
978
+ port?: string | undefined;
979
+ sslEnabled?: boolean | undefined;
980
+ caCertificateName?: string | undefined;
981
+ caCertificateText?: string | undefined;
982
+ };
983
+ federated_auth_method?: null | undefined;
984
+ }>, z$1.ZodObject<{
985
+ id: z$1.ZodString;
986
+ name: z$1.ZodString;
987
+ } & {
988
+ type: z$1.ZodLiteral<"redshift">;
989
+ metadata: z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
990
+ database: z$1.ZodString;
991
+ host: z$1.ZodString;
992
+ port: z$1.ZodOptional<z$1.ZodString>;
993
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
994
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
995
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
996
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
997
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
998
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
999
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
1000
+ } & {
1001
+ authMethod: z$1.ZodLiteral<"username-and-password">;
1002
+ user: z$1.ZodString;
1003
+ password: z$1.ZodString;
1004
+ }, "strip", z$1.ZodTypeAny, {
1005
+ host: string;
1006
+ user: string;
1007
+ password: string;
1008
+ database: string;
1009
+ authMethod: "username-and-password";
1010
+ sshEnabled?: boolean | undefined;
1011
+ sshHost?: string | undefined;
1012
+ sshPort?: string | undefined;
1013
+ sshUser?: string | undefined;
1014
+ port?: string | undefined;
1015
+ sslEnabled?: boolean | undefined;
1016
+ caCertificateName?: string | undefined;
1017
+ caCertificateText?: string | undefined;
1018
+ }, {
1019
+ host: string;
1020
+ user: string;
1021
+ password: string;
1022
+ database: string;
1023
+ authMethod: "username-and-password";
1024
+ sshEnabled?: boolean | undefined;
1025
+ sshHost?: string | undefined;
1026
+ sshPort?: string | undefined;
1027
+ sshUser?: string | undefined;
1028
+ port?: string | undefined;
1029
+ sslEnabled?: boolean | undefined;
1030
+ caCertificateName?: string | undefined;
1031
+ caCertificateText?: string | undefined;
1032
+ }>, z$1.ZodObject<{
1033
+ database: z$1.ZodString;
1034
+ host: z$1.ZodString;
1035
+ port: z$1.ZodOptional<z$1.ZodString>;
1036
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1037
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
1038
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
1039
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
1040
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1041
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
1042
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
1043
+ } & {
1044
+ authMethod: z$1.ZodLiteral<"iam-role">;
1045
+ roleArn: z$1.ZodString;
1046
+ roleExternalId: z$1.ZodString;
1047
+ roleNonce: z$1.ZodString;
1048
+ }, "strip", z$1.ZodTypeAny, {
1049
+ host: string;
1050
+ database: string;
1051
+ authMethod: "iam-role";
1052
+ roleArn: string;
1053
+ roleExternalId: string;
1054
+ roleNonce: string;
1055
+ sshEnabled?: boolean | undefined;
1056
+ sshHost?: string | undefined;
1057
+ sshPort?: string | undefined;
1058
+ sshUser?: string | undefined;
1059
+ port?: string | undefined;
1060
+ sslEnabled?: boolean | undefined;
1061
+ caCertificateName?: string | undefined;
1062
+ caCertificateText?: string | undefined;
1063
+ }, {
1064
+ host: string;
1065
+ database: string;
1066
+ authMethod: "iam-role";
1067
+ roleArn: string;
1068
+ roleExternalId: string;
1069
+ roleNonce: string;
1070
+ sshEnabled?: boolean | undefined;
1071
+ sshHost?: string | undefined;
1072
+ sshPort?: string | undefined;
1073
+ sshUser?: string | undefined;
1074
+ port?: string | undefined;
1075
+ sslEnabled?: boolean | undefined;
1076
+ caCertificateName?: string | undefined;
1077
+ caCertificateText?: string | undefined;
1078
+ }>, z$1.ZodObject<{
1079
+ database: z$1.ZodString;
1080
+ host: z$1.ZodString;
1081
+ port: z$1.ZodOptional<z$1.ZodString>;
1082
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1083
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
1084
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
1085
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
1086
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1087
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
1088
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
1089
+ } & {
1090
+ authMethod: z$1.ZodLiteral<"individual-credentials">;
1091
+ }, "strip", z$1.ZodTypeAny, {
1092
+ host: string;
1093
+ database: string;
1094
+ authMethod: "individual-credentials";
1095
+ sshEnabled?: boolean | undefined;
1096
+ sshHost?: string | undefined;
1097
+ sshPort?: string | undefined;
1098
+ sshUser?: string | undefined;
1099
+ port?: string | undefined;
1100
+ sslEnabled?: boolean | undefined;
1101
+ caCertificateName?: string | undefined;
1102
+ caCertificateText?: string | undefined;
1103
+ }, {
1104
+ host: string;
1105
+ database: string;
1106
+ authMethod: "individual-credentials";
1107
+ sshEnabled?: boolean | undefined;
1108
+ sshHost?: string | undefined;
1109
+ sshPort?: string | undefined;
1110
+ sshUser?: string | undefined;
1111
+ port?: string | undefined;
1112
+ sslEnabled?: boolean | undefined;
1113
+ caCertificateName?: string | undefined;
1114
+ caCertificateText?: string | undefined;
1115
+ }>]>;
1116
+ federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["individual-credentials"]>>>;
1117
+ }, "strip", z$1.ZodTypeAny, {
1118
+ type: "redshift";
1119
+ id: string;
1120
+ name: string;
1121
+ metadata: {
1122
+ host: string;
1123
+ user: string;
1124
+ password: string;
1125
+ database: string;
1126
+ authMethod: "username-and-password";
1127
+ sshEnabled?: boolean | undefined;
1128
+ sshHost?: string | undefined;
1129
+ sshPort?: string | undefined;
1130
+ sshUser?: string | undefined;
1131
+ port?: string | undefined;
1132
+ sslEnabled?: boolean | undefined;
1133
+ caCertificateName?: string | undefined;
1134
+ caCertificateText?: string | undefined;
1135
+ } | {
1136
+ host: string;
1137
+ database: string;
1138
+ authMethod: "iam-role";
1139
+ roleArn: string;
1140
+ roleExternalId: string;
1141
+ roleNonce: string;
1142
+ sshEnabled?: boolean | undefined;
1143
+ sshHost?: string | undefined;
1144
+ sshPort?: string | undefined;
1145
+ sshUser?: string | undefined;
1146
+ port?: string | undefined;
1147
+ sslEnabled?: boolean | undefined;
1148
+ caCertificateName?: string | undefined;
1149
+ caCertificateText?: string | undefined;
1150
+ } | {
1151
+ host: string;
1152
+ database: string;
1153
+ authMethod: "individual-credentials";
1154
+ sshEnabled?: boolean | undefined;
1155
+ sshHost?: string | undefined;
1156
+ sshPort?: string | undefined;
1157
+ sshUser?: string | undefined;
1158
+ port?: string | undefined;
1159
+ sslEnabled?: boolean | undefined;
1160
+ caCertificateName?: string | undefined;
1161
+ caCertificateText?: string | undefined;
1162
+ };
1163
+ federated_auth_method?: "individual-credentials" | null | undefined;
1164
+ }, {
1165
+ type: "redshift";
1166
+ id: string;
1167
+ name: string;
1168
+ metadata: {
1169
+ host: string;
1170
+ user: string;
1171
+ password: string;
1172
+ database: string;
1173
+ authMethod: "username-and-password";
1174
+ sshEnabled?: boolean | undefined;
1175
+ sshHost?: string | undefined;
1176
+ sshPort?: string | undefined;
1177
+ sshUser?: string | undefined;
1178
+ port?: string | undefined;
1179
+ sslEnabled?: boolean | undefined;
1180
+ caCertificateName?: string | undefined;
1181
+ caCertificateText?: string | undefined;
1182
+ } | {
1183
+ host: string;
1184
+ database: string;
1185
+ authMethod: "iam-role";
1186
+ roleArn: string;
1187
+ roleExternalId: string;
1188
+ roleNonce: string;
1189
+ sshEnabled?: boolean | undefined;
1190
+ sshHost?: string | undefined;
1191
+ sshPort?: string | undefined;
1192
+ sshUser?: string | undefined;
1193
+ port?: string | undefined;
1194
+ sslEnabled?: boolean | undefined;
1195
+ caCertificateName?: string | undefined;
1196
+ caCertificateText?: string | undefined;
1197
+ } | {
1198
+ host: string;
1199
+ database: string;
1200
+ authMethod: "individual-credentials";
1201
+ sshEnabled?: boolean | undefined;
1202
+ sshHost?: string | undefined;
1203
+ sshPort?: string | undefined;
1204
+ sshUser?: string | undefined;
1205
+ port?: string | undefined;
1206
+ sslEnabled?: boolean | undefined;
1207
+ caCertificateName?: string | undefined;
1208
+ caCertificateText?: string | undefined;
1209
+ };
1210
+ federated_auth_method?: "individual-credentials" | null | undefined;
1211
+ }>, z$1.ZodObject<{
1212
+ id: z$1.ZodString;
1213
+ name: z$1.ZodString;
1214
+ } & {
1215
+ type: z$1.ZodLiteral<"snowflake">;
1216
+ metadata: z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
1217
+ accountName: z$1.ZodString;
1218
+ warehouse: z$1.ZodOptional<z$1.ZodString>;
1219
+ database: z$1.ZodOptional<z$1.ZodString>;
1220
+ role: z$1.ZodOptional<z$1.ZodString>;
1221
+ } & {
1222
+ authMethod: z$1.ZodLiteral<"password">;
1223
+ username: z$1.ZodString;
1224
+ password: z$1.ZodString;
1225
+ }, "strip", z$1.ZodTypeAny, {
1226
+ password: string;
1227
+ authMethod: "password";
1228
+ accountName: string;
1229
+ username: string;
1230
+ database?: string | undefined;
1231
+ warehouse?: string | undefined;
1232
+ role?: string | undefined;
1233
+ }, {
1234
+ password: string;
1235
+ authMethod: "password";
1236
+ accountName: string;
1237
+ username: string;
1238
+ database?: string | undefined;
1239
+ warehouse?: string | undefined;
1240
+ role?: string | undefined;
1241
+ }>, z$1.ZodObject<{
1242
+ accountName: z$1.ZodString;
1243
+ warehouse: z$1.ZodOptional<z$1.ZodString>;
1244
+ database: z$1.ZodOptional<z$1.ZodString>;
1245
+ role: z$1.ZodOptional<z$1.ZodString>;
1246
+ } & {
1247
+ authMethod: z$1.ZodLiteral<"okta">;
1248
+ clientId: z$1.ZodString;
1249
+ clientSecret: z$1.ZodString;
1250
+ oktaSubdomain: z$1.ZodString;
1251
+ identityProvider: z$1.ZodString;
1252
+ authorizationServer: z$1.ZodString;
1253
+ }, "strip", z$1.ZodTypeAny, {
1254
+ authMethod: "okta";
1255
+ clientId: string;
1256
+ clientSecret: string;
1257
+ accountName: string;
1258
+ oktaSubdomain: string;
1259
+ identityProvider: string;
1260
+ authorizationServer: string;
1261
+ database?: string | undefined;
1262
+ warehouse?: string | undefined;
1263
+ role?: string | undefined;
1264
+ }, {
1265
+ authMethod: "okta";
1266
+ clientId: string;
1267
+ clientSecret: string;
1268
+ accountName: string;
1269
+ oktaSubdomain: string;
1270
+ identityProvider: string;
1271
+ authorizationServer: string;
1272
+ database?: string | undefined;
1273
+ warehouse?: string | undefined;
1274
+ role?: string | undefined;
1275
+ }>, z$1.ZodObject<{
1276
+ accountName: z$1.ZodString;
1277
+ warehouse: z$1.ZodOptional<z$1.ZodString>;
1278
+ database: z$1.ZodOptional<z$1.ZodString>;
1279
+ role: z$1.ZodOptional<z$1.ZodString>;
1280
+ } & {
1281
+ authMethod: z$1.ZodLiteral<"snowflake">;
1282
+ clientId: z$1.ZodString;
1283
+ clientSecret: z$1.ZodString;
1284
+ }, "strip", z$1.ZodTypeAny, {
1285
+ authMethod: "snowflake";
1286
+ clientId: string;
1287
+ clientSecret: string;
1288
+ accountName: string;
1289
+ database?: string | undefined;
1290
+ warehouse?: string | undefined;
1291
+ role?: string | undefined;
1292
+ }, {
1293
+ authMethod: "snowflake";
1294
+ clientId: string;
1295
+ clientSecret: string;
1296
+ accountName: string;
1297
+ database?: string | undefined;
1298
+ warehouse?: string | undefined;
1299
+ role?: string | undefined;
1300
+ }>, z$1.ZodObject<{
1301
+ accountName: z$1.ZodString;
1302
+ warehouse: z$1.ZodOptional<z$1.ZodString>;
1303
+ database: z$1.ZodOptional<z$1.ZodString>;
1304
+ role: z$1.ZodOptional<z$1.ZodString>;
1305
+ } & {
1306
+ authMethod: z$1.ZodLiteral<"azure">;
1307
+ clientId: z$1.ZodString;
1308
+ clientSecret: z$1.ZodString;
1309
+ resource: z$1.ZodString;
1310
+ tenant: z$1.ZodString;
1311
+ }, "strip", z$1.ZodTypeAny, {
1312
+ authMethod: "azure";
1313
+ clientId: string;
1314
+ clientSecret: string;
1315
+ accountName: string;
1316
+ resource: string;
1317
+ tenant: string;
1318
+ database?: string | undefined;
1319
+ warehouse?: string | undefined;
1320
+ role?: string | undefined;
1321
+ }, {
1322
+ authMethod: "azure";
1323
+ clientId: string;
1324
+ clientSecret: string;
1325
+ accountName: string;
1326
+ resource: string;
1327
+ tenant: string;
1328
+ database?: string | undefined;
1329
+ warehouse?: string | undefined;
1330
+ role?: string | undefined;
1331
+ }>, z$1.ZodObject<{
1332
+ accountName: z$1.ZodString;
1333
+ warehouse: z$1.ZodOptional<z$1.ZodString>;
1334
+ database: z$1.ZodOptional<z$1.ZodString>;
1335
+ role: z$1.ZodOptional<z$1.ZodString>;
1336
+ } & {
1337
+ authMethod: z$1.ZodLiteral<"key-pair">;
1338
+ }, "strip", z$1.ZodTypeAny, {
1339
+ authMethod: "key-pair";
1340
+ accountName: string;
1341
+ database?: string | undefined;
1342
+ warehouse?: string | undefined;
1343
+ role?: string | undefined;
1344
+ }, {
1345
+ authMethod: "key-pair";
1346
+ accountName: string;
1347
+ database?: string | undefined;
1348
+ warehouse?: string | undefined;
1349
+ role?: string | undefined;
1350
+ }>, z$1.ZodObject<{
1351
+ accountName: z$1.ZodString;
1352
+ warehouse: z$1.ZodOptional<z$1.ZodString>;
1353
+ database: z$1.ZodOptional<z$1.ZodString>;
1354
+ role: z$1.ZodOptional<z$1.ZodString>;
1355
+ } & {
1356
+ authMethod: z$1.ZodLiteral<"service-account-key-pair">;
1357
+ username: z$1.ZodString;
1358
+ privateKey: z$1.ZodString;
1359
+ privateKeyPassphrase: z$1.ZodOptional<z$1.ZodString>;
1360
+ }, "strip", z$1.ZodTypeAny, {
1361
+ authMethod: "service-account-key-pair";
1362
+ accountName: string;
1363
+ username: string;
1364
+ privateKey: string;
1365
+ database?: string | undefined;
1366
+ warehouse?: string | undefined;
1367
+ role?: string | undefined;
1368
+ privateKeyPassphrase?: string | undefined;
1369
+ }, {
1370
+ authMethod: "service-account-key-pair";
1371
+ accountName: string;
1372
+ username: string;
1373
+ privateKey: string;
1374
+ database?: string | undefined;
1375
+ warehouse?: string | undefined;
1376
+ role?: string | undefined;
1377
+ privateKeyPassphrase?: string | undefined;
1378
+ }>]>;
1379
+ federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair"]>>>;
1380
+ }, "strip", z$1.ZodTypeAny, {
1381
+ type: "snowflake";
1382
+ id: string;
1383
+ name: string;
1384
+ metadata: {
1385
+ password: string;
1386
+ authMethod: "password";
1387
+ accountName: string;
1388
+ username: string;
1389
+ database?: string | undefined;
1390
+ warehouse?: string | undefined;
1391
+ role?: string | undefined;
1392
+ } | {
1393
+ authMethod: "okta";
1394
+ clientId: string;
1395
+ clientSecret: string;
1396
+ accountName: string;
1397
+ oktaSubdomain: string;
1398
+ identityProvider: string;
1399
+ authorizationServer: string;
1400
+ database?: string | undefined;
1401
+ warehouse?: string | undefined;
1402
+ role?: string | undefined;
1403
+ } | {
1404
+ authMethod: "snowflake";
1405
+ clientId: string;
1406
+ clientSecret: string;
1407
+ accountName: string;
1408
+ database?: string | undefined;
1409
+ warehouse?: string | undefined;
1410
+ role?: string | undefined;
1411
+ } | {
1412
+ authMethod: "azure";
1413
+ clientId: string;
1414
+ clientSecret: string;
1415
+ accountName: string;
1416
+ resource: string;
1417
+ tenant: string;
1418
+ database?: string | undefined;
1419
+ warehouse?: string | undefined;
1420
+ role?: string | undefined;
1421
+ } | {
1422
+ authMethod: "key-pair";
1423
+ accountName: string;
1424
+ database?: string | undefined;
1425
+ warehouse?: string | undefined;
1426
+ role?: string | undefined;
1427
+ } | {
1428
+ authMethod: "service-account-key-pair";
1429
+ accountName: string;
1430
+ username: string;
1431
+ privateKey: string;
1432
+ database?: string | undefined;
1433
+ warehouse?: string | undefined;
1434
+ role?: string | undefined;
1435
+ privateKeyPassphrase?: string | undefined;
1436
+ };
1437
+ federated_auth_method?: "snowflake" | "azure" | "key-pair" | "okta" | null | undefined;
1438
+ }, {
1439
+ type: "snowflake";
1440
+ id: string;
1441
+ name: string;
1442
+ metadata: {
1443
+ password: string;
1444
+ authMethod: "password";
1445
+ accountName: string;
1446
+ username: string;
1447
+ database?: string | undefined;
1448
+ warehouse?: string | undefined;
1449
+ role?: string | undefined;
1450
+ } | {
1451
+ authMethod: "okta";
1452
+ clientId: string;
1453
+ clientSecret: string;
1454
+ accountName: string;
1455
+ oktaSubdomain: string;
1456
+ identityProvider: string;
1457
+ authorizationServer: string;
1458
+ database?: string | undefined;
1459
+ warehouse?: string | undefined;
1460
+ role?: string | undefined;
1461
+ } | {
1462
+ authMethod: "snowflake";
1463
+ clientId: string;
1464
+ clientSecret: string;
1465
+ accountName: string;
1466
+ database?: string | undefined;
1467
+ warehouse?: string | undefined;
1468
+ role?: string | undefined;
1469
+ } | {
1470
+ authMethod: "azure";
1471
+ clientId: string;
1472
+ clientSecret: string;
1473
+ accountName: string;
1474
+ resource: string;
1475
+ tenant: string;
1476
+ database?: string | undefined;
1477
+ warehouse?: string | undefined;
1478
+ role?: string | undefined;
1479
+ } | {
1480
+ authMethod: "key-pair";
1481
+ accountName: string;
1482
+ database?: string | undefined;
1483
+ warehouse?: string | undefined;
1484
+ role?: string | undefined;
1485
+ } | {
1486
+ authMethod: "service-account-key-pair";
1487
+ accountName: string;
1488
+ username: string;
1489
+ privateKey: string;
1490
+ database?: string | undefined;
1491
+ warehouse?: string | undefined;
1492
+ role?: string | undefined;
1493
+ privateKeyPassphrase?: string | undefined;
1494
+ };
1495
+ federated_auth_method?: "snowflake" | "azure" | "key-pair" | "okta" | null | undefined;
1496
+ }>, z$1.ZodObject<{
1497
+ id: z$1.ZodString;
1498
+ name: z$1.ZodString;
1499
+ } & {
1500
+ type: z$1.ZodLiteral<"spanner">;
1501
+ metadata: z$1.ZodObject<{
1502
+ service_account: z$1.ZodString;
1503
+ dataBoostEnabled: z$1.ZodBoolean;
1504
+ instance: z$1.ZodString;
1505
+ database: z$1.ZodString;
1506
+ }, "strip", z$1.ZodTypeAny, {
1507
+ database: string;
1508
+ service_account: string;
1509
+ dataBoostEnabled: boolean;
1510
+ instance: string;
1511
+ }, {
1512
+ database: string;
1513
+ service_account: string;
1514
+ dataBoostEnabled: boolean;
1515
+ instance: string;
1516
+ }>;
1517
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
1518
+ }, "strip", z$1.ZodTypeAny, {
1519
+ type: "spanner";
1520
+ id: string;
1521
+ name: string;
1522
+ metadata: {
1523
+ database: string;
1524
+ service_account: string;
1525
+ dataBoostEnabled: boolean;
1526
+ instance: string;
1527
+ };
1528
+ federated_auth_method?: null | undefined;
1529
+ }, {
1530
+ type: "spanner";
1531
+ id: string;
1532
+ name: string;
1533
+ metadata: {
1534
+ database: string;
1535
+ service_account: string;
1536
+ dataBoostEnabled: boolean;
1537
+ instance: string;
1538
+ };
1539
+ federated_auth_method?: null | undefined;
1540
+ }>, z$1.ZodObject<{
1541
+ id: z$1.ZodString;
1542
+ name: z$1.ZodString;
1543
+ } & {
1544
+ type: z$1.ZodLiteral<"sql-server">;
1545
+ metadata: z$1.ZodObject<{
1546
+ host: z$1.ZodString;
1547
+ user: z$1.ZodString;
1548
+ password: z$1.ZodString;
1549
+ database: z$1.ZodString;
1550
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1551
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
1552
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
1553
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
1554
+ } & {
1555
+ port: z$1.ZodString;
1556
+ }, "strip", z$1.ZodTypeAny, {
1557
+ host: string;
1558
+ user: string;
1559
+ password: string;
1560
+ database: string;
1561
+ port: string;
1562
+ sshEnabled?: boolean | undefined;
1563
+ sshHost?: string | undefined;
1564
+ sshPort?: string | undefined;
1565
+ sshUser?: string | undefined;
1566
+ }, {
1567
+ host: string;
1568
+ user: string;
1569
+ password: string;
1570
+ database: string;
1571
+ port: string;
1572
+ sshEnabled?: boolean | undefined;
1573
+ sshHost?: string | undefined;
1574
+ sshPort?: string | undefined;
1575
+ sshUser?: string | undefined;
1576
+ }>;
1577
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
1578
+ }, "strip", z$1.ZodTypeAny, {
1579
+ type: "sql-server";
1580
+ id: string;
1581
+ name: string;
1582
+ metadata: {
1583
+ host: string;
1584
+ user: string;
1585
+ password: string;
1586
+ database: string;
1587
+ port: string;
1588
+ sshEnabled?: boolean | undefined;
1589
+ sshHost?: string | undefined;
1590
+ sshPort?: string | undefined;
1591
+ sshUser?: string | undefined;
1592
+ };
1593
+ federated_auth_method?: null | undefined;
1594
+ }, {
1595
+ type: "sql-server";
1596
+ id: string;
1597
+ name: string;
1598
+ metadata: {
1599
+ host: string;
1600
+ user: string;
1601
+ password: string;
1602
+ database: string;
1603
+ port: string;
1604
+ sshEnabled?: boolean | undefined;
1605
+ sshHost?: string | undefined;
1606
+ sshPort?: string | undefined;
1607
+ sshUser?: string | undefined;
1608
+ };
1609
+ federated_auth_method?: null | undefined;
1610
+ }>, z$1.ZodObject<{
1611
+ id: z$1.ZodString;
1612
+ name: z$1.ZodString;
1613
+ } & {
1614
+ type: z$1.ZodLiteral<"trino">;
1615
+ metadata: z$1.ZodObject<{
1616
+ host: z$1.ZodString;
1617
+ user: z$1.ZodString;
1618
+ password: z$1.ZodString;
1619
+ database: z$1.ZodString;
1620
+ port: z$1.ZodString;
1621
+ sshEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1622
+ sshHost: z$1.ZodOptional<z$1.ZodString>;
1623
+ sshPort: z$1.ZodOptional<z$1.ZodString>;
1624
+ sshUser: z$1.ZodOptional<z$1.ZodString>;
1625
+ sslEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
1626
+ caCertificateName: z$1.ZodOptional<z$1.ZodString>;
1627
+ caCertificateText: z$1.ZodOptional<z$1.ZodString>;
1628
+ }, "strip", z$1.ZodTypeAny, {
1629
+ host: string;
1630
+ user: string;
1631
+ password: string;
1632
+ database: string;
1633
+ port: string;
1634
+ sshEnabled?: boolean | undefined;
1635
+ sshHost?: string | undefined;
1636
+ sshPort?: string | undefined;
1637
+ sshUser?: string | undefined;
1638
+ sslEnabled?: boolean | undefined;
1639
+ caCertificateName?: string | undefined;
1640
+ caCertificateText?: string | undefined;
1641
+ }, {
1642
+ host: string;
1643
+ user: string;
1644
+ password: string;
1645
+ database: string;
1646
+ port: string;
1647
+ sshEnabled?: boolean | undefined;
1648
+ sshHost?: string | undefined;
1649
+ sshPort?: string | undefined;
1650
+ sshUser?: string | undefined;
1651
+ sslEnabled?: boolean | undefined;
1652
+ caCertificateName?: string | undefined;
1653
+ caCertificateText?: string | undefined;
1654
+ }>;
1655
+ federated_auth_method: z$1.ZodOptional<z$1.ZodNull>;
1656
+ }, "strip", z$1.ZodTypeAny, {
1657
+ type: "trino";
1658
+ id: string;
1659
+ name: string;
1660
+ metadata: {
1661
+ host: string;
1662
+ user: string;
1663
+ password: string;
1664
+ database: string;
1665
+ port: string;
1666
+ sshEnabled?: boolean | undefined;
1667
+ sshHost?: string | undefined;
1668
+ sshPort?: string | undefined;
1669
+ sshUser?: string | undefined;
1670
+ sslEnabled?: boolean | undefined;
1671
+ caCertificateName?: string | undefined;
1672
+ caCertificateText?: string | undefined;
1673
+ };
1674
+ federated_auth_method?: null | undefined;
1675
+ }, {
1676
+ type: "trino";
1677
+ id: string;
1678
+ name: string;
1679
+ metadata: {
1680
+ host: string;
1681
+ user: string;
1682
+ password: string;
1683
+ database: string;
1684
+ port: string;
1685
+ sshEnabled?: boolean | undefined;
1686
+ sshHost?: string | undefined;
1687
+ sshPort?: string | undefined;
1688
+ sshUser?: string | undefined;
1689
+ sslEnabled?: boolean | undefined;
1690
+ caCertificateName?: string | undefined;
1691
+ caCertificateText?: string | undefined;
1692
+ };
1693
+ federated_auth_method?: null | undefined;
1694
+ }>]>;
1695
+ type DatabaseIntegrationConfig = z$1.infer<typeof databaseIntegrationConfigSchema>;
1696
+ type SqlIntegrationConfig = Extract<DatabaseIntegrationConfig, {
1697
+ type: SqlIntegrationType;
1698
+ }>;
10
1699
  //#endregion
11
1700
  //#region src/database-integration-metadata-schemas.d.ts
12
1701
  declare const databaseMetadataSchemasByType: {
@@ -208,7 +1897,9 @@ declare const databaseMetadataSchemasByType: {
208
1897
  sshUser: z.ZodOptional<z.ZodString>;
209
1898
  } & {
210
1899
  port: z.ZodOptional<z.ZodString>;
1900
+ sslEnabled: z.ZodOptional<z.ZodBoolean>;
211
1901
  caCertificateName: z.ZodOptional<z.ZodString>;
1902
+ caCertificateText: z.ZodOptional<z.ZodString>;
212
1903
  }, "strip", z.ZodTypeAny, {
213
1904
  host: string;
214
1905
  user: string;
@@ -219,7 +1910,9 @@ declare const databaseMetadataSchemasByType: {
219
1910
  sshPort?: string | undefined;
220
1911
  sshUser?: string | undefined;
221
1912
  port?: string | undefined;
1913
+ sslEnabled?: boolean | undefined;
222
1914
  caCertificateName?: string | undefined;
1915
+ caCertificateText?: string | undefined;
223
1916
  }, {
224
1917
  host: string;
225
1918
  user: string;
@@ -230,7 +1923,9 @@ declare const databaseMetadataSchemasByType: {
230
1923
  sshPort?: string | undefined;
231
1924
  sshUser?: string | undefined;
232
1925
  port?: string | undefined;
1926
+ sslEnabled?: boolean | undefined;
233
1927
  caCertificateName?: string | undefined;
1928
+ caCertificateText?: string | undefined;
234
1929
  }>;
235
1930
  readonly materialize: z.ZodObject<{
236
1931
  host: z.ZodString;
@@ -288,7 +1983,9 @@ declare const databaseMetadataSchemasByType: {
288
1983
  sshUser: z.ZodOptional<z.ZodString>;
289
1984
  } & {
290
1985
  port: z.ZodOptional<z.ZodString>;
1986
+ sslEnabled: z.ZodOptional<z.ZodBoolean>;
291
1987
  caCertificateName: z.ZodOptional<z.ZodString>;
1988
+ caCertificateText: z.ZodOptional<z.ZodString>;
292
1989
  }, "strip", z.ZodTypeAny, {
293
1990
  host: string;
294
1991
  user: string;
@@ -299,7 +1996,9 @@ declare const databaseMetadataSchemasByType: {
299
1996
  sshPort?: string | undefined;
300
1997
  sshUser?: string | undefined;
301
1998
  port?: string | undefined;
1999
+ sslEnabled?: boolean | undefined;
302
2000
  caCertificateName?: string | undefined;
2001
+ caCertificateText?: string | undefined;
303
2002
  }, {
304
2003
  host: string;
305
2004
  user: string;
@@ -310,7 +2009,9 @@ declare const databaseMetadataSchemasByType: {
310
2009
  sshPort?: string | undefined;
311
2010
  sshUser?: string | undefined;
312
2011
  port?: string | undefined;
2012
+ sslEnabled?: boolean | undefined;
313
2013
  caCertificateName?: string | undefined;
2014
+ caCertificateText?: string | undefined;
314
2015
  }>;
315
2016
  readonly mongodb: z.ZodObject<{
316
2017
  connection_string: z.ZodString;
@@ -375,7 +2076,9 @@ declare const databaseMetadataSchemasByType: {
375
2076
  sshUser: z.ZodOptional<z.ZodString>;
376
2077
  } & {
377
2078
  port: z.ZodOptional<z.ZodString>;
2079
+ sslEnabled: z.ZodOptional<z.ZodBoolean>;
378
2080
  caCertificateName: z.ZodOptional<z.ZodString>;
2081
+ caCertificateText: z.ZodOptional<z.ZodString>;
379
2082
  }, "strip", z.ZodTypeAny, {
380
2083
  host: string;
381
2084
  user: string;
@@ -386,7 +2089,9 @@ declare const databaseMetadataSchemasByType: {
386
2089
  sshPort?: string | undefined;
387
2090
  sshUser?: string | undefined;
388
2091
  port?: string | undefined;
2092
+ sslEnabled?: boolean | undefined;
389
2093
  caCertificateName?: string | undefined;
2094
+ caCertificateText?: string | undefined;
390
2095
  }, {
391
2096
  host: string;
392
2097
  user: string;
@@ -397,7 +2102,9 @@ declare const databaseMetadataSchemasByType: {
397
2102
  sshPort?: string | undefined;
398
2103
  sshUser?: string | undefined;
399
2104
  port?: string | undefined;
2105
+ sslEnabled?: boolean | undefined;
400
2106
  caCertificateName?: string | undefined;
2107
+ caCertificateText?: string | undefined;
401
2108
  }>;
402
2109
  readonly 'pandas-dataframe': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
403
2110
  readonly pgsql: z.ZodObject<{
@@ -845,55 +2552,11 @@ interface SqlAlchemyInput {
845
2552
  };
846
2553
  }
847
2554
  //#endregion
848
- //#region src/sql-integration-auth-methods.d.ts
849
- declare const AwsAuthMethods: {
850
- readonly AccessKeys: "access-keys";
851
- readonly IamRole: "iam-role";
852
- };
853
- type AwsAuthMethod = (typeof AwsAuthMethods)[keyof typeof AwsAuthMethods];
854
- declare const SnowflakeAuthMethods: {
855
- readonly AzureAd: "azure";
856
- readonly KeyPair: "key-pair";
857
- readonly ServiceAccountKeyPair: "service-account-key-pair";
858
- readonly NativeSnowflake: "snowflake";
859
- readonly Okta: "okta";
860
- readonly Password: "password";
861
- };
862
- type SnowflakeAuthMethod = (typeof SnowflakeAuthMethods)[keyof typeof SnowflakeAuthMethods];
863
- declare const BigQueryAuthMethods: {
864
- readonly ServiceAccount: "service-account";
865
- readonly GoogleOauth: "google-oauth";
866
- };
867
- type BigQueryAuthMethod = (typeof BigQueryAuthMethods)[keyof typeof BigQueryAuthMethods];
868
- declare const DatabaseAuthMethods: {
869
- readonly UsernameAndPassword: "username-and-password";
870
- readonly IndividualCredentials: "individual-credentials";
871
- };
872
- type DatabaseAuthMethod = (typeof DatabaseAuthMethods)[keyof typeof DatabaseAuthMethods];
873
- declare const federatedAuthMethods: readonly ["okta", "snowflake", "azure", "key-pair", "google-oauth", "individual-credentials"];
874
- type FederatedAuthMethod = (typeof federatedAuthMethods)[number];
875
- declare function isFederatedAuthMethod(authMethod: string): authMethod is FederatedAuthMethod;
876
- declare function isFederatedAuthMetadata<M extends {
877
- authMethod: string;
878
- }>(metadata: M): metadata is Extract<M, {
879
- authMethod: FederatedAuthMethod;
880
- }>;
881
- //#endregion
882
2555
  //#region src/database-integration-env-vars.d.ts
883
2556
  interface EnvVar {
884
2557
  name: string;
885
2558
  value: string;
886
2559
  }
887
- type DatabaseIntegrationConfig = { [integrationType in DatabaseIntegrationType]: {
888
- type: integrationType;
889
- id: string;
890
- name: string;
891
- metadata: DatabaseIntegrationMetadataByType[integrationType];
892
- federated_auth_method?: FederatedAuthMethod;
893
- } }[DatabaseIntegrationType];
894
- type SqlIntegrationConfig = Extract<DatabaseIntegrationConfig, {
895
- type: SqlIntegrationType;
896
- }>;
897
2560
  declare function getEnvironmentVariablesForIntegrations(integrations: Array<DatabaseIntegrationConfig>, params: {
898
2561
  projectRootDirectory: string;
899
2562
  snowflakePartnerIdentifier?: string;
@@ -928,4 +2591,55 @@ declare class SpannerServiceAccountParseError extends Error {
928
2591
  });
929
2592
  }
930
2593
  //#endregion
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 };
2594
+ //#region src/sql-integration-auth-methods.d.ts
2595
+ declare const AwsAuthMethods: {
2596
+ readonly AccessKeys: "access-keys";
2597
+ readonly IamRole: "iam-role";
2598
+ };
2599
+ type AwsAuthMethod = (typeof AwsAuthMethods)[keyof typeof AwsAuthMethods];
2600
+ declare const SnowflakeAuthMethods: {
2601
+ readonly AzureAd: "azure";
2602
+ readonly KeyPair: "key-pair";
2603
+ readonly ServiceAccountKeyPair: "service-account-key-pair";
2604
+ readonly NativeSnowflake: "snowflake";
2605
+ readonly Okta: "okta";
2606
+ readonly Password: "password";
2607
+ };
2608
+ type SnowflakeAuthMethod = (typeof SnowflakeAuthMethods)[keyof typeof SnowflakeAuthMethods];
2609
+ declare const BigQueryAuthMethods: {
2610
+ readonly ServiceAccount: "service-account";
2611
+ readonly GoogleOauth: "google-oauth";
2612
+ };
2613
+ type BigQueryAuthMethod = (typeof BigQueryAuthMethods)[keyof typeof BigQueryAuthMethods];
2614
+ declare const DatabaseAuthMethods: {
2615
+ readonly UsernameAndPassword: "username-and-password";
2616
+ readonly IndividualCredentials: "individual-credentials";
2617
+ };
2618
+ type DatabaseAuthMethod = (typeof DatabaseAuthMethods)[keyof typeof DatabaseAuthMethods];
2619
+ declare const federatedAuthMethods: readonly ["okta", "snowflake", "azure", "key-pair", "google-oauth", "individual-credentials"];
2620
+ type FederatedAuthMethod = (typeof federatedAuthMethods)[number];
2621
+ declare function isFederatedAuthMethod(authMethod: string): authMethod is FederatedAuthMethod;
2622
+ declare function isFederatedAuthMetadata<M extends {
2623
+ authMethod: string;
2624
+ }>(metadata: M): metadata is Extract<M, {
2625
+ authMethod: FederatedAuthMethod;
2626
+ }>;
2627
+ //#endregion
2628
+ //#region src/snowflake-integration-env-vars.d.ts
2629
+ interface SnowflakeConnectionParamsForFederatedAuthOptions {
2630
+ accessToken?: string;
2631
+ keyPair?: SnowflakeKeyPair;
2632
+ /** If passed, overrides the default role in the metadata */
2633
+ role?: string;
2634
+ snowflakePartnerIdentifier?: string;
2635
+ }
2636
+ declare function getSnowflakeFederatedAuthSqlAlchemyInput(metadata: Extract<DatabaseIntegrationMetadataByType['snowflake'], {
2637
+ authMethod: FederatedAuthMethod;
2638
+ }>, options?: SnowflakeConnectionParamsForFederatedAuthOptions): SqlAlchemyInput;
2639
+ interface SnowflakeKeyPair {
2640
+ password?: string | null;
2641
+ privateKey: string;
2642
+ username: string;
2643
+ }
2644
+ //#endregion
2645
+ 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, databaseIntegrationConfigSchema, databaseIntegrationTypes, databaseIntegrationTypesWithSslSupport, databaseMetadataSchemasByType, federatedAuthMethods, getEnvironmentVariablesForIntegrations, getSnowflakeFederatedAuthSqlAlchemyInput, getSqlAlchemyInput, isDatabaseIntegrationType, isDatabaseIntegrationTypeWithSslSupport, isFederatedAuthMetadata, isFederatedAuthMethod, isSqlIntegrationType, sqlIntegrationTypes };