@deepnote/database-integrations 1.3.5 → 1.4.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.cjs +14 -4
- package/dist/index.d.cts +289 -21
- package/dist/index.d.ts +289 -21
- package/dist/index.js +14 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -174,11 +174,21 @@ const commonSnowflakeMetadataSchema = zod.z.object({
|
|
|
174
174
|
accountName: zod.z.string(),
|
|
175
175
|
warehouse: zod.z.string().optional(),
|
|
176
176
|
database: zod.z.string().optional(),
|
|
177
|
-
role: zod.z.string().optional()
|
|
177
|
+
role: zod.z.string().optional(),
|
|
178
|
+
dbt: zod.z.boolean().optional(),
|
|
179
|
+
dbtServiceToken: zod.z.string().optional(),
|
|
180
|
+
dbtPrimaryJobId: zod.z.string().optional(),
|
|
181
|
+
dbtProxyServerUrl: zod.z.string().optional()
|
|
178
182
|
});
|
|
179
|
-
const snowflakeMetadataSchema = zod.z.
|
|
183
|
+
const snowflakeMetadataSchema = zod.z.preprocess((data) => {
|
|
184
|
+
if (typeof data === "object" && data !== null && (!("authMethod" in data) || !data.authMethod)) return {
|
|
185
|
+
...data,
|
|
186
|
+
authMethod: SnowflakeAuthMethods.Password
|
|
187
|
+
};
|
|
188
|
+
return data;
|
|
189
|
+
}, zod.z.discriminatedUnion("authMethod", [
|
|
180
190
|
commonSnowflakeMetadataSchema.extend({
|
|
181
|
-
authMethod: zod.z.literal(SnowflakeAuthMethods.Password),
|
|
191
|
+
authMethod: zod.z.literal(SnowflakeAuthMethods.Password).optional(),
|
|
182
192
|
username: zod.z.string(),
|
|
183
193
|
password: zod.z.string()
|
|
184
194
|
}),
|
|
@@ -209,7 +219,7 @@ const snowflakeMetadataSchema = zod.z.discriminatedUnion("authMethod", [
|
|
|
209
219
|
privateKey: zod.z.string(),
|
|
210
220
|
privateKeyPassphrase: zod.z.string().optional()
|
|
211
221
|
})
|
|
212
|
-
]);
|
|
222
|
+
]));
|
|
213
223
|
const spannerMetadataSchema = zod.z.object({
|
|
214
224
|
service_account: zod.z.string(),
|
|
215
225
|
dataBoostEnabled: zod.z.boolean(),
|
package/dist/index.d.cts
CHANGED
|
@@ -1213,36 +1213,52 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1213
1213
|
name: z$1.ZodString;
|
|
1214
1214
|
} & {
|
|
1215
1215
|
type: z$1.ZodLiteral<"snowflake">;
|
|
1216
|
-
metadata: z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
|
|
1216
|
+
metadata: z$1.ZodEffects<z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
|
|
1217
1217
|
accountName: z$1.ZodString;
|
|
1218
1218
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1219
1219
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1220
1220
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1222
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1223
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1224
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
1225
|
} & {
|
|
1222
|
-
authMethod: z$1.ZodLiteral<"password"
|
|
1226
|
+
authMethod: z$1.ZodOptional<z$1.ZodLiteral<"password">>;
|
|
1223
1227
|
username: z$1.ZodString;
|
|
1224
1228
|
password: z$1.ZodString;
|
|
1225
1229
|
}, "strip", z$1.ZodTypeAny, {
|
|
1226
1230
|
password: string;
|
|
1227
|
-
authMethod: "password";
|
|
1228
1231
|
accountName: string;
|
|
1229
1232
|
username: string;
|
|
1230
1233
|
database?: string | undefined;
|
|
1234
|
+
authMethod?: "password" | undefined;
|
|
1231
1235
|
warehouse?: string | undefined;
|
|
1232
1236
|
role?: string | undefined;
|
|
1237
|
+
dbt?: boolean | undefined;
|
|
1238
|
+
dbtServiceToken?: string | undefined;
|
|
1239
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1240
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1233
1241
|
}, {
|
|
1234
1242
|
password: string;
|
|
1235
|
-
authMethod: "password";
|
|
1236
1243
|
accountName: string;
|
|
1237
1244
|
username: string;
|
|
1238
1245
|
database?: string | undefined;
|
|
1246
|
+
authMethod?: "password" | undefined;
|
|
1239
1247
|
warehouse?: string | undefined;
|
|
1240
1248
|
role?: string | undefined;
|
|
1249
|
+
dbt?: boolean | undefined;
|
|
1250
|
+
dbtServiceToken?: string | undefined;
|
|
1251
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1252
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1241
1253
|
}>, z$1.ZodObject<{
|
|
1242
1254
|
accountName: z$1.ZodString;
|
|
1243
1255
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1244
1256
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1245
1257
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1258
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1259
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1260
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1261
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1246
1262
|
} & {
|
|
1247
1263
|
authMethod: z$1.ZodLiteral<"okta">;
|
|
1248
1264
|
clientId: z$1.ZodString;
|
|
@@ -1261,6 +1277,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1261
1277
|
database?: string | undefined;
|
|
1262
1278
|
warehouse?: string | undefined;
|
|
1263
1279
|
role?: string | undefined;
|
|
1280
|
+
dbt?: boolean | undefined;
|
|
1281
|
+
dbtServiceToken?: string | undefined;
|
|
1282
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1283
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1264
1284
|
}, {
|
|
1265
1285
|
authMethod: "okta";
|
|
1266
1286
|
clientId: string;
|
|
@@ -1272,11 +1292,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1272
1292
|
database?: string | undefined;
|
|
1273
1293
|
warehouse?: string | undefined;
|
|
1274
1294
|
role?: string | undefined;
|
|
1295
|
+
dbt?: boolean | undefined;
|
|
1296
|
+
dbtServiceToken?: string | undefined;
|
|
1297
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1298
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1275
1299
|
}>, z$1.ZodObject<{
|
|
1276
1300
|
accountName: z$1.ZodString;
|
|
1277
1301
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1278
1302
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1279
1303
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1304
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1305
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1306
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1307
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1280
1308
|
} & {
|
|
1281
1309
|
authMethod: z$1.ZodLiteral<"snowflake">;
|
|
1282
1310
|
clientId: z$1.ZodString;
|
|
@@ -1289,6 +1317,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1289
1317
|
database?: string | undefined;
|
|
1290
1318
|
warehouse?: string | undefined;
|
|
1291
1319
|
role?: string | undefined;
|
|
1320
|
+
dbt?: boolean | undefined;
|
|
1321
|
+
dbtServiceToken?: string | undefined;
|
|
1322
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1323
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1292
1324
|
}, {
|
|
1293
1325
|
authMethod: "snowflake";
|
|
1294
1326
|
clientId: string;
|
|
@@ -1297,11 +1329,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1297
1329
|
database?: string | undefined;
|
|
1298
1330
|
warehouse?: string | undefined;
|
|
1299
1331
|
role?: string | undefined;
|
|
1332
|
+
dbt?: boolean | undefined;
|
|
1333
|
+
dbtServiceToken?: string | undefined;
|
|
1334
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1335
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1300
1336
|
}>, z$1.ZodObject<{
|
|
1301
1337
|
accountName: z$1.ZodString;
|
|
1302
1338
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1303
1339
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1304
1340
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1341
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1342
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1343
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1344
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1305
1345
|
} & {
|
|
1306
1346
|
authMethod: z$1.ZodLiteral<"azure">;
|
|
1307
1347
|
clientId: z$1.ZodString;
|
|
@@ -1318,6 +1358,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1318
1358
|
database?: string | undefined;
|
|
1319
1359
|
warehouse?: string | undefined;
|
|
1320
1360
|
role?: string | undefined;
|
|
1361
|
+
dbt?: boolean | undefined;
|
|
1362
|
+
dbtServiceToken?: string | undefined;
|
|
1363
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1364
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1321
1365
|
}, {
|
|
1322
1366
|
authMethod: "azure";
|
|
1323
1367
|
clientId: string;
|
|
@@ -1328,11 +1372,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1328
1372
|
database?: string | undefined;
|
|
1329
1373
|
warehouse?: string | undefined;
|
|
1330
1374
|
role?: string | undefined;
|
|
1375
|
+
dbt?: boolean | undefined;
|
|
1376
|
+
dbtServiceToken?: string | undefined;
|
|
1377
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1378
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1331
1379
|
}>, z$1.ZodObject<{
|
|
1332
1380
|
accountName: z$1.ZodString;
|
|
1333
1381
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1334
1382
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1335
1383
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1384
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1385
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1386
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1387
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1336
1388
|
} & {
|
|
1337
1389
|
authMethod: z$1.ZodLiteral<"key-pair">;
|
|
1338
1390
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -1341,17 +1393,29 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1341
1393
|
database?: string | undefined;
|
|
1342
1394
|
warehouse?: string | undefined;
|
|
1343
1395
|
role?: string | undefined;
|
|
1396
|
+
dbt?: boolean | undefined;
|
|
1397
|
+
dbtServiceToken?: string | undefined;
|
|
1398
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1399
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1344
1400
|
}, {
|
|
1345
1401
|
authMethod: "key-pair";
|
|
1346
1402
|
accountName: string;
|
|
1347
1403
|
database?: string | undefined;
|
|
1348
1404
|
warehouse?: string | undefined;
|
|
1349
1405
|
role?: string | undefined;
|
|
1406
|
+
dbt?: boolean | undefined;
|
|
1407
|
+
dbtServiceToken?: string | undefined;
|
|
1408
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1409
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1350
1410
|
}>, z$1.ZodObject<{
|
|
1351
1411
|
accountName: z$1.ZodString;
|
|
1352
1412
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1353
1413
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1354
1414
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1415
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1416
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1417
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1418
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1355
1419
|
} & {
|
|
1356
1420
|
authMethod: z$1.ZodLiteral<"service-account-key-pair">;
|
|
1357
1421
|
username: z$1.ZodString;
|
|
@@ -1365,6 +1429,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1365
1429
|
database?: string | undefined;
|
|
1366
1430
|
warehouse?: string | undefined;
|
|
1367
1431
|
role?: string | undefined;
|
|
1432
|
+
dbt?: boolean | undefined;
|
|
1433
|
+
dbtServiceToken?: string | undefined;
|
|
1434
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1435
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1368
1436
|
privateKeyPassphrase?: string | undefined;
|
|
1369
1437
|
}, {
|
|
1370
1438
|
authMethod: "service-account-key-pair";
|
|
@@ -1374,21 +1442,23 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1374
1442
|
database?: string | undefined;
|
|
1375
1443
|
warehouse?: string | undefined;
|
|
1376
1444
|
role?: string | undefined;
|
|
1445
|
+
dbt?: boolean | undefined;
|
|
1446
|
+
dbtServiceToken?: string | undefined;
|
|
1447
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1448
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1377
1449
|
privateKeyPassphrase?: string | undefined;
|
|
1378
|
-
}>]
|
|
1379
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair", "password", "service-account-key-pair"]>>>;
|
|
1380
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
1381
|
-
type: "snowflake";
|
|
1382
|
-
id: string;
|
|
1383
|
-
name: string;
|
|
1384
|
-
metadata: {
|
|
1450
|
+
}>]>, {
|
|
1385
1451
|
password: string;
|
|
1386
|
-
authMethod: "password";
|
|
1387
1452
|
accountName: string;
|
|
1388
1453
|
username: string;
|
|
1389
1454
|
database?: string | undefined;
|
|
1455
|
+
authMethod?: "password" | undefined;
|
|
1390
1456
|
warehouse?: string | undefined;
|
|
1391
1457
|
role?: string | undefined;
|
|
1458
|
+
dbt?: boolean | undefined;
|
|
1459
|
+
dbtServiceToken?: string | undefined;
|
|
1460
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1461
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1392
1462
|
} | {
|
|
1393
1463
|
authMethod: "okta";
|
|
1394
1464
|
clientId: string;
|
|
@@ -1400,6 +1470,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1400
1470
|
database?: string | undefined;
|
|
1401
1471
|
warehouse?: string | undefined;
|
|
1402
1472
|
role?: string | undefined;
|
|
1473
|
+
dbt?: boolean | undefined;
|
|
1474
|
+
dbtServiceToken?: string | undefined;
|
|
1475
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1476
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1403
1477
|
} | {
|
|
1404
1478
|
authMethod: "snowflake";
|
|
1405
1479
|
clientId: string;
|
|
@@ -1408,6 +1482,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1408
1482
|
database?: string | undefined;
|
|
1409
1483
|
warehouse?: string | undefined;
|
|
1410
1484
|
role?: string | undefined;
|
|
1485
|
+
dbt?: boolean | undefined;
|
|
1486
|
+
dbtServiceToken?: string | undefined;
|
|
1487
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1488
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1411
1489
|
} | {
|
|
1412
1490
|
authMethod: "azure";
|
|
1413
1491
|
clientId: string;
|
|
@@ -1418,12 +1496,20 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1418
1496
|
database?: string | undefined;
|
|
1419
1497
|
warehouse?: string | undefined;
|
|
1420
1498
|
role?: string | undefined;
|
|
1499
|
+
dbt?: boolean | undefined;
|
|
1500
|
+
dbtServiceToken?: string | undefined;
|
|
1501
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1502
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1421
1503
|
} | {
|
|
1422
1504
|
authMethod: "key-pair";
|
|
1423
1505
|
accountName: string;
|
|
1424
1506
|
database?: string | undefined;
|
|
1425
1507
|
warehouse?: string | undefined;
|
|
1426
1508
|
role?: string | undefined;
|
|
1509
|
+
dbt?: boolean | undefined;
|
|
1510
|
+
dbtServiceToken?: string | undefined;
|
|
1511
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1512
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1427
1513
|
} | {
|
|
1428
1514
|
authMethod: "service-account-key-pair";
|
|
1429
1515
|
accountName: string;
|
|
@@ -1432,21 +1518,29 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1432
1518
|
database?: string | undefined;
|
|
1433
1519
|
warehouse?: string | undefined;
|
|
1434
1520
|
role?: string | undefined;
|
|
1521
|
+
dbt?: boolean | undefined;
|
|
1522
|
+
dbtServiceToken?: string | undefined;
|
|
1523
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1524
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1435
1525
|
privateKeyPassphrase?: string | undefined;
|
|
1436
|
-
}
|
|
1437
|
-
federated_auth_method
|
|
1438
|
-
}, {
|
|
1526
|
+
}, unknown>;
|
|
1527
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair", "password", "service-account-key-pair"]>>>;
|
|
1528
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1439
1529
|
type: "snowflake";
|
|
1440
1530
|
id: string;
|
|
1441
1531
|
name: string;
|
|
1442
1532
|
metadata: {
|
|
1443
1533
|
password: string;
|
|
1444
|
-
authMethod: "password";
|
|
1445
1534
|
accountName: string;
|
|
1446
1535
|
username: string;
|
|
1447
1536
|
database?: string | undefined;
|
|
1537
|
+
authMethod?: "password" | undefined;
|
|
1448
1538
|
warehouse?: string | undefined;
|
|
1449
1539
|
role?: string | undefined;
|
|
1540
|
+
dbt?: boolean | undefined;
|
|
1541
|
+
dbtServiceToken?: string | undefined;
|
|
1542
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1543
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1450
1544
|
} | {
|
|
1451
1545
|
authMethod: "okta";
|
|
1452
1546
|
clientId: string;
|
|
@@ -1458,6 +1552,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1458
1552
|
database?: string | undefined;
|
|
1459
1553
|
warehouse?: string | undefined;
|
|
1460
1554
|
role?: string | undefined;
|
|
1555
|
+
dbt?: boolean | undefined;
|
|
1556
|
+
dbtServiceToken?: string | undefined;
|
|
1557
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1558
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1461
1559
|
} | {
|
|
1462
1560
|
authMethod: "snowflake";
|
|
1463
1561
|
clientId: string;
|
|
@@ -1466,6 +1564,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1466
1564
|
database?: string | undefined;
|
|
1467
1565
|
warehouse?: string | undefined;
|
|
1468
1566
|
role?: string | undefined;
|
|
1567
|
+
dbt?: boolean | undefined;
|
|
1568
|
+
dbtServiceToken?: string | undefined;
|
|
1569
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1570
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1469
1571
|
} | {
|
|
1470
1572
|
authMethod: "azure";
|
|
1471
1573
|
clientId: string;
|
|
@@ -1476,12 +1578,20 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1476
1578
|
database?: string | undefined;
|
|
1477
1579
|
warehouse?: string | undefined;
|
|
1478
1580
|
role?: string | undefined;
|
|
1581
|
+
dbt?: boolean | undefined;
|
|
1582
|
+
dbtServiceToken?: string | undefined;
|
|
1583
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1584
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1479
1585
|
} | {
|
|
1480
1586
|
authMethod: "key-pair";
|
|
1481
1587
|
accountName: string;
|
|
1482
1588
|
database?: string | undefined;
|
|
1483
1589
|
warehouse?: string | undefined;
|
|
1484
1590
|
role?: string | undefined;
|
|
1591
|
+
dbt?: boolean | undefined;
|
|
1592
|
+
dbtServiceToken?: string | undefined;
|
|
1593
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1594
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1485
1595
|
} | {
|
|
1486
1596
|
authMethod: "service-account-key-pair";
|
|
1487
1597
|
accountName: string;
|
|
@@ -1490,9 +1600,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1490
1600
|
database?: string | undefined;
|
|
1491
1601
|
warehouse?: string | undefined;
|
|
1492
1602
|
role?: string | undefined;
|
|
1603
|
+
dbt?: boolean | undefined;
|
|
1604
|
+
dbtServiceToken?: string | undefined;
|
|
1605
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1606
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1493
1607
|
privateKeyPassphrase?: string | undefined;
|
|
1494
1608
|
};
|
|
1495
1609
|
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1610
|
+
}, {
|
|
1611
|
+
type: "snowflake";
|
|
1612
|
+
id: string;
|
|
1613
|
+
name: string;
|
|
1614
|
+
metadata?: unknown;
|
|
1615
|
+
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1496
1616
|
}>, z$1.ZodObject<{
|
|
1497
1617
|
id: z$1.ZodString;
|
|
1498
1618
|
name: z$1.ZodString;
|
|
@@ -2403,36 +2523,52 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2403
2523
|
caCertificateName?: string | undefined;
|
|
2404
2524
|
caCertificateText?: string | undefined;
|
|
2405
2525
|
}, unknown>;
|
|
2406
|
-
readonly snowflake: z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
|
|
2526
|
+
readonly snowflake: z.ZodEffects<z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
|
|
2407
2527
|
accountName: z.ZodString;
|
|
2408
2528
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2409
2529
|
database: z.ZodOptional<z.ZodString>;
|
|
2410
2530
|
role: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2532
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2411
2535
|
} & {
|
|
2412
|
-
authMethod: z.ZodLiteral<"password"
|
|
2536
|
+
authMethod: z.ZodOptional<z.ZodLiteral<"password">>;
|
|
2413
2537
|
username: z.ZodString;
|
|
2414
2538
|
password: z.ZodString;
|
|
2415
2539
|
}, "strip", z.ZodTypeAny, {
|
|
2416
2540
|
password: string;
|
|
2417
|
-
authMethod: "password";
|
|
2418
2541
|
accountName: string;
|
|
2419
2542
|
username: string;
|
|
2420
2543
|
database?: string | undefined;
|
|
2544
|
+
authMethod?: "password" | undefined;
|
|
2421
2545
|
warehouse?: string | undefined;
|
|
2422
2546
|
role?: string | undefined;
|
|
2547
|
+
dbt?: boolean | undefined;
|
|
2548
|
+
dbtServiceToken?: string | undefined;
|
|
2549
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2550
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2423
2551
|
}, {
|
|
2424
2552
|
password: string;
|
|
2425
|
-
authMethod: "password";
|
|
2426
2553
|
accountName: string;
|
|
2427
2554
|
username: string;
|
|
2428
2555
|
database?: string | undefined;
|
|
2556
|
+
authMethod?: "password" | undefined;
|
|
2429
2557
|
warehouse?: string | undefined;
|
|
2430
2558
|
role?: string | undefined;
|
|
2559
|
+
dbt?: boolean | undefined;
|
|
2560
|
+
dbtServiceToken?: string | undefined;
|
|
2561
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2562
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2431
2563
|
}>, z.ZodObject<{
|
|
2432
2564
|
accountName: z.ZodString;
|
|
2433
2565
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2434
2566
|
database: z.ZodOptional<z.ZodString>;
|
|
2435
2567
|
role: z.ZodOptional<z.ZodString>;
|
|
2568
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2569
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2570
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2571
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2436
2572
|
} & {
|
|
2437
2573
|
authMethod: z.ZodLiteral<"okta">;
|
|
2438
2574
|
clientId: z.ZodString;
|
|
@@ -2451,6 +2587,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2451
2587
|
database?: string | undefined;
|
|
2452
2588
|
warehouse?: string | undefined;
|
|
2453
2589
|
role?: string | undefined;
|
|
2590
|
+
dbt?: boolean | undefined;
|
|
2591
|
+
dbtServiceToken?: string | undefined;
|
|
2592
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2593
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2454
2594
|
}, {
|
|
2455
2595
|
authMethod: "okta";
|
|
2456
2596
|
clientId: string;
|
|
@@ -2462,11 +2602,19 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2462
2602
|
database?: string | undefined;
|
|
2463
2603
|
warehouse?: string | undefined;
|
|
2464
2604
|
role?: string | undefined;
|
|
2605
|
+
dbt?: boolean | undefined;
|
|
2606
|
+
dbtServiceToken?: string | undefined;
|
|
2607
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2608
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2465
2609
|
}>, z.ZodObject<{
|
|
2466
2610
|
accountName: z.ZodString;
|
|
2467
2611
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2468
2612
|
database: z.ZodOptional<z.ZodString>;
|
|
2469
2613
|
role: z.ZodOptional<z.ZodString>;
|
|
2614
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2615
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2617
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2470
2618
|
} & {
|
|
2471
2619
|
authMethod: z.ZodLiteral<"snowflake">;
|
|
2472
2620
|
clientId: z.ZodString;
|
|
@@ -2479,6 +2627,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2479
2627
|
database?: string | undefined;
|
|
2480
2628
|
warehouse?: string | undefined;
|
|
2481
2629
|
role?: string | undefined;
|
|
2630
|
+
dbt?: boolean | undefined;
|
|
2631
|
+
dbtServiceToken?: string | undefined;
|
|
2632
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2633
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2482
2634
|
}, {
|
|
2483
2635
|
authMethod: "snowflake";
|
|
2484
2636
|
clientId: string;
|
|
@@ -2487,11 +2639,19 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2487
2639
|
database?: string | undefined;
|
|
2488
2640
|
warehouse?: string | undefined;
|
|
2489
2641
|
role?: string | undefined;
|
|
2642
|
+
dbt?: boolean | undefined;
|
|
2643
|
+
dbtServiceToken?: string | undefined;
|
|
2644
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2645
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2490
2646
|
}>, z.ZodObject<{
|
|
2491
2647
|
accountName: z.ZodString;
|
|
2492
2648
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2493
2649
|
database: z.ZodOptional<z.ZodString>;
|
|
2494
2650
|
role: z.ZodOptional<z.ZodString>;
|
|
2651
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2652
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2654
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2495
2655
|
} & {
|
|
2496
2656
|
authMethod: z.ZodLiteral<"azure">;
|
|
2497
2657
|
clientId: z.ZodString;
|
|
@@ -2508,6 +2668,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2508
2668
|
database?: string | undefined;
|
|
2509
2669
|
warehouse?: string | undefined;
|
|
2510
2670
|
role?: string | undefined;
|
|
2671
|
+
dbt?: boolean | undefined;
|
|
2672
|
+
dbtServiceToken?: string | undefined;
|
|
2673
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2674
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2511
2675
|
}, {
|
|
2512
2676
|
authMethod: "azure";
|
|
2513
2677
|
clientId: string;
|
|
@@ -2518,11 +2682,19 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2518
2682
|
database?: string | undefined;
|
|
2519
2683
|
warehouse?: string | undefined;
|
|
2520
2684
|
role?: string | undefined;
|
|
2685
|
+
dbt?: boolean | undefined;
|
|
2686
|
+
dbtServiceToken?: string | undefined;
|
|
2687
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2688
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2521
2689
|
}>, z.ZodObject<{
|
|
2522
2690
|
accountName: z.ZodString;
|
|
2523
2691
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2524
2692
|
database: z.ZodOptional<z.ZodString>;
|
|
2525
2693
|
role: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2695
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2696
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2526
2698
|
} & {
|
|
2527
2699
|
authMethod: z.ZodLiteral<"key-pair">;
|
|
2528
2700
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2531,17 +2703,29 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2531
2703
|
database?: string | undefined;
|
|
2532
2704
|
warehouse?: string | undefined;
|
|
2533
2705
|
role?: string | undefined;
|
|
2706
|
+
dbt?: boolean | undefined;
|
|
2707
|
+
dbtServiceToken?: string | undefined;
|
|
2708
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2709
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2534
2710
|
}, {
|
|
2535
2711
|
authMethod: "key-pair";
|
|
2536
2712
|
accountName: string;
|
|
2537
2713
|
database?: string | undefined;
|
|
2538
2714
|
warehouse?: string | undefined;
|
|
2539
2715
|
role?: string | undefined;
|
|
2716
|
+
dbt?: boolean | undefined;
|
|
2717
|
+
dbtServiceToken?: string | undefined;
|
|
2718
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2719
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2540
2720
|
}>, z.ZodObject<{
|
|
2541
2721
|
accountName: z.ZodString;
|
|
2542
2722
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2543
2723
|
database: z.ZodOptional<z.ZodString>;
|
|
2544
2724
|
role: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2726
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2545
2729
|
} & {
|
|
2546
2730
|
authMethod: z.ZodLiteral<"service-account-key-pair">;
|
|
2547
2731
|
username: z.ZodString;
|
|
@@ -2555,6 +2739,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2555
2739
|
database?: string | undefined;
|
|
2556
2740
|
warehouse?: string | undefined;
|
|
2557
2741
|
role?: string | undefined;
|
|
2742
|
+
dbt?: boolean | undefined;
|
|
2743
|
+
dbtServiceToken?: string | undefined;
|
|
2744
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2745
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2558
2746
|
privateKeyPassphrase?: string | undefined;
|
|
2559
2747
|
}, {
|
|
2560
2748
|
authMethod: "service-account-key-pair";
|
|
@@ -2564,8 +2752,88 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2564
2752
|
database?: string | undefined;
|
|
2565
2753
|
warehouse?: string | undefined;
|
|
2566
2754
|
role?: string | undefined;
|
|
2755
|
+
dbt?: boolean | undefined;
|
|
2756
|
+
dbtServiceToken?: string | undefined;
|
|
2757
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2758
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2567
2759
|
privateKeyPassphrase?: string | undefined;
|
|
2568
|
-
}>]
|
|
2760
|
+
}>]>, {
|
|
2761
|
+
password: string;
|
|
2762
|
+
accountName: string;
|
|
2763
|
+
username: string;
|
|
2764
|
+
database?: string | undefined;
|
|
2765
|
+
authMethod?: "password" | undefined;
|
|
2766
|
+
warehouse?: string | undefined;
|
|
2767
|
+
role?: string | undefined;
|
|
2768
|
+
dbt?: boolean | undefined;
|
|
2769
|
+
dbtServiceToken?: string | undefined;
|
|
2770
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2771
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2772
|
+
} | {
|
|
2773
|
+
authMethod: "okta";
|
|
2774
|
+
clientId: string;
|
|
2775
|
+
clientSecret: string;
|
|
2776
|
+
accountName: string;
|
|
2777
|
+
oktaSubdomain: string;
|
|
2778
|
+
identityProvider: string;
|
|
2779
|
+
authorizationServer: string;
|
|
2780
|
+
database?: string | undefined;
|
|
2781
|
+
warehouse?: string | undefined;
|
|
2782
|
+
role?: string | undefined;
|
|
2783
|
+
dbt?: boolean | undefined;
|
|
2784
|
+
dbtServiceToken?: string | undefined;
|
|
2785
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2786
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2787
|
+
} | {
|
|
2788
|
+
authMethod: "snowflake";
|
|
2789
|
+
clientId: string;
|
|
2790
|
+
clientSecret: string;
|
|
2791
|
+
accountName: string;
|
|
2792
|
+
database?: string | undefined;
|
|
2793
|
+
warehouse?: string | undefined;
|
|
2794
|
+
role?: string | undefined;
|
|
2795
|
+
dbt?: boolean | undefined;
|
|
2796
|
+
dbtServiceToken?: string | undefined;
|
|
2797
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2798
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2799
|
+
} | {
|
|
2800
|
+
authMethod: "azure";
|
|
2801
|
+
clientId: string;
|
|
2802
|
+
clientSecret: string;
|
|
2803
|
+
accountName: string;
|
|
2804
|
+
resource: string;
|
|
2805
|
+
tenant: string;
|
|
2806
|
+
database?: string | undefined;
|
|
2807
|
+
warehouse?: string | undefined;
|
|
2808
|
+
role?: string | undefined;
|
|
2809
|
+
dbt?: boolean | undefined;
|
|
2810
|
+
dbtServiceToken?: string | undefined;
|
|
2811
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2812
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2813
|
+
} | {
|
|
2814
|
+
authMethod: "key-pair";
|
|
2815
|
+
accountName: string;
|
|
2816
|
+
database?: string | undefined;
|
|
2817
|
+
warehouse?: string | undefined;
|
|
2818
|
+
role?: string | undefined;
|
|
2819
|
+
dbt?: boolean | undefined;
|
|
2820
|
+
dbtServiceToken?: string | undefined;
|
|
2821
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2822
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2823
|
+
} | {
|
|
2824
|
+
authMethod: "service-account-key-pair";
|
|
2825
|
+
accountName: string;
|
|
2826
|
+
username: string;
|
|
2827
|
+
privateKey: string;
|
|
2828
|
+
database?: string | undefined;
|
|
2829
|
+
warehouse?: string | undefined;
|
|
2830
|
+
role?: string | undefined;
|
|
2831
|
+
dbt?: boolean | undefined;
|
|
2832
|
+
dbtServiceToken?: string | undefined;
|
|
2833
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2834
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2835
|
+
privateKeyPassphrase?: string | undefined;
|
|
2836
|
+
}, unknown>;
|
|
2569
2837
|
readonly spanner: z.ZodObject<{
|
|
2570
2838
|
service_account: z.ZodString;
|
|
2571
2839
|
dataBoostEnabled: z.ZodBoolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1213,36 +1213,52 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1213
1213
|
name: z$1.ZodString;
|
|
1214
1214
|
} & {
|
|
1215
1215
|
type: z$1.ZodLiteral<"snowflake">;
|
|
1216
|
-
metadata: z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
|
|
1216
|
+
metadata: z$1.ZodEffects<z$1.ZodDiscriminatedUnion<"authMethod", [z$1.ZodObject<{
|
|
1217
1217
|
accountName: z$1.ZodString;
|
|
1218
1218
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1219
1219
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1220
1220
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1222
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1223
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1224
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
1225
|
} & {
|
|
1222
|
-
authMethod: z$1.ZodLiteral<"password"
|
|
1226
|
+
authMethod: z$1.ZodOptional<z$1.ZodLiteral<"password">>;
|
|
1223
1227
|
username: z$1.ZodString;
|
|
1224
1228
|
password: z$1.ZodString;
|
|
1225
1229
|
}, "strip", z$1.ZodTypeAny, {
|
|
1226
1230
|
password: string;
|
|
1227
|
-
authMethod: "password";
|
|
1228
1231
|
accountName: string;
|
|
1229
1232
|
username: string;
|
|
1230
1233
|
database?: string | undefined;
|
|
1234
|
+
authMethod?: "password" | undefined;
|
|
1231
1235
|
warehouse?: string | undefined;
|
|
1232
1236
|
role?: string | undefined;
|
|
1237
|
+
dbt?: boolean | undefined;
|
|
1238
|
+
dbtServiceToken?: string | undefined;
|
|
1239
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1240
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1233
1241
|
}, {
|
|
1234
1242
|
password: string;
|
|
1235
|
-
authMethod: "password";
|
|
1236
1243
|
accountName: string;
|
|
1237
1244
|
username: string;
|
|
1238
1245
|
database?: string | undefined;
|
|
1246
|
+
authMethod?: "password" | undefined;
|
|
1239
1247
|
warehouse?: string | undefined;
|
|
1240
1248
|
role?: string | undefined;
|
|
1249
|
+
dbt?: boolean | undefined;
|
|
1250
|
+
dbtServiceToken?: string | undefined;
|
|
1251
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1252
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1241
1253
|
}>, z$1.ZodObject<{
|
|
1242
1254
|
accountName: z$1.ZodString;
|
|
1243
1255
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1244
1256
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1245
1257
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1258
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1259
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1260
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1261
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1246
1262
|
} & {
|
|
1247
1263
|
authMethod: z$1.ZodLiteral<"okta">;
|
|
1248
1264
|
clientId: z$1.ZodString;
|
|
@@ -1261,6 +1277,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1261
1277
|
database?: string | undefined;
|
|
1262
1278
|
warehouse?: string | undefined;
|
|
1263
1279
|
role?: string | undefined;
|
|
1280
|
+
dbt?: boolean | undefined;
|
|
1281
|
+
dbtServiceToken?: string | undefined;
|
|
1282
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1283
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1264
1284
|
}, {
|
|
1265
1285
|
authMethod: "okta";
|
|
1266
1286
|
clientId: string;
|
|
@@ -1272,11 +1292,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1272
1292
|
database?: string | undefined;
|
|
1273
1293
|
warehouse?: string | undefined;
|
|
1274
1294
|
role?: string | undefined;
|
|
1295
|
+
dbt?: boolean | undefined;
|
|
1296
|
+
dbtServiceToken?: string | undefined;
|
|
1297
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1298
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1275
1299
|
}>, z$1.ZodObject<{
|
|
1276
1300
|
accountName: z$1.ZodString;
|
|
1277
1301
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1278
1302
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1279
1303
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1304
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1305
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1306
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1307
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1280
1308
|
} & {
|
|
1281
1309
|
authMethod: z$1.ZodLiteral<"snowflake">;
|
|
1282
1310
|
clientId: z$1.ZodString;
|
|
@@ -1289,6 +1317,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1289
1317
|
database?: string | undefined;
|
|
1290
1318
|
warehouse?: string | undefined;
|
|
1291
1319
|
role?: string | undefined;
|
|
1320
|
+
dbt?: boolean | undefined;
|
|
1321
|
+
dbtServiceToken?: string | undefined;
|
|
1322
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1323
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1292
1324
|
}, {
|
|
1293
1325
|
authMethod: "snowflake";
|
|
1294
1326
|
clientId: string;
|
|
@@ -1297,11 +1329,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1297
1329
|
database?: string | undefined;
|
|
1298
1330
|
warehouse?: string | undefined;
|
|
1299
1331
|
role?: string | undefined;
|
|
1332
|
+
dbt?: boolean | undefined;
|
|
1333
|
+
dbtServiceToken?: string | undefined;
|
|
1334
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1335
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1300
1336
|
}>, z$1.ZodObject<{
|
|
1301
1337
|
accountName: z$1.ZodString;
|
|
1302
1338
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1303
1339
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1304
1340
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1341
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1342
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1343
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1344
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1305
1345
|
} & {
|
|
1306
1346
|
authMethod: z$1.ZodLiteral<"azure">;
|
|
1307
1347
|
clientId: z$1.ZodString;
|
|
@@ -1318,6 +1358,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1318
1358
|
database?: string | undefined;
|
|
1319
1359
|
warehouse?: string | undefined;
|
|
1320
1360
|
role?: string | undefined;
|
|
1361
|
+
dbt?: boolean | undefined;
|
|
1362
|
+
dbtServiceToken?: string | undefined;
|
|
1363
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1364
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1321
1365
|
}, {
|
|
1322
1366
|
authMethod: "azure";
|
|
1323
1367
|
clientId: string;
|
|
@@ -1328,11 +1372,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1328
1372
|
database?: string | undefined;
|
|
1329
1373
|
warehouse?: string | undefined;
|
|
1330
1374
|
role?: string | undefined;
|
|
1375
|
+
dbt?: boolean | undefined;
|
|
1376
|
+
dbtServiceToken?: string | undefined;
|
|
1377
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1378
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1331
1379
|
}>, z$1.ZodObject<{
|
|
1332
1380
|
accountName: z$1.ZodString;
|
|
1333
1381
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1334
1382
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1335
1383
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1384
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1385
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1386
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1387
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1336
1388
|
} & {
|
|
1337
1389
|
authMethod: z$1.ZodLiteral<"key-pair">;
|
|
1338
1390
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -1341,17 +1393,29 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1341
1393
|
database?: string | undefined;
|
|
1342
1394
|
warehouse?: string | undefined;
|
|
1343
1395
|
role?: string | undefined;
|
|
1396
|
+
dbt?: boolean | undefined;
|
|
1397
|
+
dbtServiceToken?: string | undefined;
|
|
1398
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1399
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1344
1400
|
}, {
|
|
1345
1401
|
authMethod: "key-pair";
|
|
1346
1402
|
accountName: string;
|
|
1347
1403
|
database?: string | undefined;
|
|
1348
1404
|
warehouse?: string | undefined;
|
|
1349
1405
|
role?: string | undefined;
|
|
1406
|
+
dbt?: boolean | undefined;
|
|
1407
|
+
dbtServiceToken?: string | undefined;
|
|
1408
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1409
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1350
1410
|
}>, z$1.ZodObject<{
|
|
1351
1411
|
accountName: z$1.ZodString;
|
|
1352
1412
|
warehouse: z$1.ZodOptional<z$1.ZodString>;
|
|
1353
1413
|
database: z$1.ZodOptional<z$1.ZodString>;
|
|
1354
1414
|
role: z$1.ZodOptional<z$1.ZodString>;
|
|
1415
|
+
dbt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1416
|
+
dbtServiceToken: z$1.ZodOptional<z$1.ZodString>;
|
|
1417
|
+
dbtPrimaryJobId: z$1.ZodOptional<z$1.ZodString>;
|
|
1418
|
+
dbtProxyServerUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1355
1419
|
} & {
|
|
1356
1420
|
authMethod: z$1.ZodLiteral<"service-account-key-pair">;
|
|
1357
1421
|
username: z$1.ZodString;
|
|
@@ -1365,6 +1429,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1365
1429
|
database?: string | undefined;
|
|
1366
1430
|
warehouse?: string | undefined;
|
|
1367
1431
|
role?: string | undefined;
|
|
1432
|
+
dbt?: boolean | undefined;
|
|
1433
|
+
dbtServiceToken?: string | undefined;
|
|
1434
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1435
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1368
1436
|
privateKeyPassphrase?: string | undefined;
|
|
1369
1437
|
}, {
|
|
1370
1438
|
authMethod: "service-account-key-pair";
|
|
@@ -1374,21 +1442,23 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1374
1442
|
database?: string | undefined;
|
|
1375
1443
|
warehouse?: string | undefined;
|
|
1376
1444
|
role?: string | undefined;
|
|
1445
|
+
dbt?: boolean | undefined;
|
|
1446
|
+
dbtServiceToken?: string | undefined;
|
|
1447
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1448
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1377
1449
|
privateKeyPassphrase?: string | undefined;
|
|
1378
|
-
}>]
|
|
1379
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair", "password", "service-account-key-pair"]>>>;
|
|
1380
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
1381
|
-
type: "snowflake";
|
|
1382
|
-
id: string;
|
|
1383
|
-
name: string;
|
|
1384
|
-
metadata: {
|
|
1450
|
+
}>]>, {
|
|
1385
1451
|
password: string;
|
|
1386
|
-
authMethod: "password";
|
|
1387
1452
|
accountName: string;
|
|
1388
1453
|
username: string;
|
|
1389
1454
|
database?: string | undefined;
|
|
1455
|
+
authMethod?: "password" | undefined;
|
|
1390
1456
|
warehouse?: string | undefined;
|
|
1391
1457
|
role?: string | undefined;
|
|
1458
|
+
dbt?: boolean | undefined;
|
|
1459
|
+
dbtServiceToken?: string | undefined;
|
|
1460
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1461
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1392
1462
|
} | {
|
|
1393
1463
|
authMethod: "okta";
|
|
1394
1464
|
clientId: string;
|
|
@@ -1400,6 +1470,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1400
1470
|
database?: string | undefined;
|
|
1401
1471
|
warehouse?: string | undefined;
|
|
1402
1472
|
role?: string | undefined;
|
|
1473
|
+
dbt?: boolean | undefined;
|
|
1474
|
+
dbtServiceToken?: string | undefined;
|
|
1475
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1476
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1403
1477
|
} | {
|
|
1404
1478
|
authMethod: "snowflake";
|
|
1405
1479
|
clientId: string;
|
|
@@ -1408,6 +1482,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1408
1482
|
database?: string | undefined;
|
|
1409
1483
|
warehouse?: string | undefined;
|
|
1410
1484
|
role?: string | undefined;
|
|
1485
|
+
dbt?: boolean | undefined;
|
|
1486
|
+
dbtServiceToken?: string | undefined;
|
|
1487
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1488
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1411
1489
|
} | {
|
|
1412
1490
|
authMethod: "azure";
|
|
1413
1491
|
clientId: string;
|
|
@@ -1418,12 +1496,20 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1418
1496
|
database?: string | undefined;
|
|
1419
1497
|
warehouse?: string | undefined;
|
|
1420
1498
|
role?: string | undefined;
|
|
1499
|
+
dbt?: boolean | undefined;
|
|
1500
|
+
dbtServiceToken?: string | undefined;
|
|
1501
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1502
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1421
1503
|
} | {
|
|
1422
1504
|
authMethod: "key-pair";
|
|
1423
1505
|
accountName: string;
|
|
1424
1506
|
database?: string | undefined;
|
|
1425
1507
|
warehouse?: string | undefined;
|
|
1426
1508
|
role?: string | undefined;
|
|
1509
|
+
dbt?: boolean | undefined;
|
|
1510
|
+
dbtServiceToken?: string | undefined;
|
|
1511
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1512
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1427
1513
|
} | {
|
|
1428
1514
|
authMethod: "service-account-key-pair";
|
|
1429
1515
|
accountName: string;
|
|
@@ -1432,21 +1518,29 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1432
1518
|
database?: string | undefined;
|
|
1433
1519
|
warehouse?: string | undefined;
|
|
1434
1520
|
role?: string | undefined;
|
|
1521
|
+
dbt?: boolean | undefined;
|
|
1522
|
+
dbtServiceToken?: string | undefined;
|
|
1523
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1524
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1435
1525
|
privateKeyPassphrase?: string | undefined;
|
|
1436
|
-
}
|
|
1437
|
-
federated_auth_method
|
|
1438
|
-
}, {
|
|
1526
|
+
}, unknown>;
|
|
1527
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair", "password", "service-account-key-pair"]>>>;
|
|
1528
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1439
1529
|
type: "snowflake";
|
|
1440
1530
|
id: string;
|
|
1441
1531
|
name: string;
|
|
1442
1532
|
metadata: {
|
|
1443
1533
|
password: string;
|
|
1444
|
-
authMethod: "password";
|
|
1445
1534
|
accountName: string;
|
|
1446
1535
|
username: string;
|
|
1447
1536
|
database?: string | undefined;
|
|
1537
|
+
authMethod?: "password" | undefined;
|
|
1448
1538
|
warehouse?: string | undefined;
|
|
1449
1539
|
role?: string | undefined;
|
|
1540
|
+
dbt?: boolean | undefined;
|
|
1541
|
+
dbtServiceToken?: string | undefined;
|
|
1542
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1543
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1450
1544
|
} | {
|
|
1451
1545
|
authMethod: "okta";
|
|
1452
1546
|
clientId: string;
|
|
@@ -1458,6 +1552,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1458
1552
|
database?: string | undefined;
|
|
1459
1553
|
warehouse?: string | undefined;
|
|
1460
1554
|
role?: string | undefined;
|
|
1555
|
+
dbt?: boolean | undefined;
|
|
1556
|
+
dbtServiceToken?: string | undefined;
|
|
1557
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1558
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1461
1559
|
} | {
|
|
1462
1560
|
authMethod: "snowflake";
|
|
1463
1561
|
clientId: string;
|
|
@@ -1466,6 +1564,10 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1466
1564
|
database?: string | undefined;
|
|
1467
1565
|
warehouse?: string | undefined;
|
|
1468
1566
|
role?: string | undefined;
|
|
1567
|
+
dbt?: boolean | undefined;
|
|
1568
|
+
dbtServiceToken?: string | undefined;
|
|
1569
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1570
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1469
1571
|
} | {
|
|
1470
1572
|
authMethod: "azure";
|
|
1471
1573
|
clientId: string;
|
|
@@ -1476,12 +1578,20 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1476
1578
|
database?: string | undefined;
|
|
1477
1579
|
warehouse?: string | undefined;
|
|
1478
1580
|
role?: string | undefined;
|
|
1581
|
+
dbt?: boolean | undefined;
|
|
1582
|
+
dbtServiceToken?: string | undefined;
|
|
1583
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1584
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1479
1585
|
} | {
|
|
1480
1586
|
authMethod: "key-pair";
|
|
1481
1587
|
accountName: string;
|
|
1482
1588
|
database?: string | undefined;
|
|
1483
1589
|
warehouse?: string | undefined;
|
|
1484
1590
|
role?: string | undefined;
|
|
1591
|
+
dbt?: boolean | undefined;
|
|
1592
|
+
dbtServiceToken?: string | undefined;
|
|
1593
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1594
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1485
1595
|
} | {
|
|
1486
1596
|
authMethod: "service-account-key-pair";
|
|
1487
1597
|
accountName: string;
|
|
@@ -1490,9 +1600,19 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1490
1600
|
database?: string | undefined;
|
|
1491
1601
|
warehouse?: string | undefined;
|
|
1492
1602
|
role?: string | undefined;
|
|
1603
|
+
dbt?: boolean | undefined;
|
|
1604
|
+
dbtServiceToken?: string | undefined;
|
|
1605
|
+
dbtPrimaryJobId?: string | undefined;
|
|
1606
|
+
dbtProxyServerUrl?: string | undefined;
|
|
1493
1607
|
privateKeyPassphrase?: string | undefined;
|
|
1494
1608
|
};
|
|
1495
1609
|
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1610
|
+
}, {
|
|
1611
|
+
type: "snowflake";
|
|
1612
|
+
id: string;
|
|
1613
|
+
name: string;
|
|
1614
|
+
metadata?: unknown;
|
|
1615
|
+
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1496
1616
|
}>, z$1.ZodObject<{
|
|
1497
1617
|
id: z$1.ZodString;
|
|
1498
1618
|
name: z$1.ZodString;
|
|
@@ -2403,36 +2523,52 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2403
2523
|
caCertificateName?: string | undefined;
|
|
2404
2524
|
caCertificateText?: string | undefined;
|
|
2405
2525
|
}, unknown>;
|
|
2406
|
-
readonly snowflake: z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
|
|
2526
|
+
readonly snowflake: z.ZodEffects<z.ZodDiscriminatedUnion<"authMethod", [z.ZodObject<{
|
|
2407
2527
|
accountName: z.ZodString;
|
|
2408
2528
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2409
2529
|
database: z.ZodOptional<z.ZodString>;
|
|
2410
2530
|
role: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2532
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2411
2535
|
} & {
|
|
2412
|
-
authMethod: z.ZodLiteral<"password"
|
|
2536
|
+
authMethod: z.ZodOptional<z.ZodLiteral<"password">>;
|
|
2413
2537
|
username: z.ZodString;
|
|
2414
2538
|
password: z.ZodString;
|
|
2415
2539
|
}, "strip", z.ZodTypeAny, {
|
|
2416
2540
|
password: string;
|
|
2417
|
-
authMethod: "password";
|
|
2418
2541
|
accountName: string;
|
|
2419
2542
|
username: string;
|
|
2420
2543
|
database?: string | undefined;
|
|
2544
|
+
authMethod?: "password" | undefined;
|
|
2421
2545
|
warehouse?: string | undefined;
|
|
2422
2546
|
role?: string | undefined;
|
|
2547
|
+
dbt?: boolean | undefined;
|
|
2548
|
+
dbtServiceToken?: string | undefined;
|
|
2549
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2550
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2423
2551
|
}, {
|
|
2424
2552
|
password: string;
|
|
2425
|
-
authMethod: "password";
|
|
2426
2553
|
accountName: string;
|
|
2427
2554
|
username: string;
|
|
2428
2555
|
database?: string | undefined;
|
|
2556
|
+
authMethod?: "password" | undefined;
|
|
2429
2557
|
warehouse?: string | undefined;
|
|
2430
2558
|
role?: string | undefined;
|
|
2559
|
+
dbt?: boolean | undefined;
|
|
2560
|
+
dbtServiceToken?: string | undefined;
|
|
2561
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2562
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2431
2563
|
}>, z.ZodObject<{
|
|
2432
2564
|
accountName: z.ZodString;
|
|
2433
2565
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2434
2566
|
database: z.ZodOptional<z.ZodString>;
|
|
2435
2567
|
role: z.ZodOptional<z.ZodString>;
|
|
2568
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2569
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2570
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2571
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2436
2572
|
} & {
|
|
2437
2573
|
authMethod: z.ZodLiteral<"okta">;
|
|
2438
2574
|
clientId: z.ZodString;
|
|
@@ -2451,6 +2587,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2451
2587
|
database?: string | undefined;
|
|
2452
2588
|
warehouse?: string | undefined;
|
|
2453
2589
|
role?: string | undefined;
|
|
2590
|
+
dbt?: boolean | undefined;
|
|
2591
|
+
dbtServiceToken?: string | undefined;
|
|
2592
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2593
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2454
2594
|
}, {
|
|
2455
2595
|
authMethod: "okta";
|
|
2456
2596
|
clientId: string;
|
|
@@ -2462,11 +2602,19 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2462
2602
|
database?: string | undefined;
|
|
2463
2603
|
warehouse?: string | undefined;
|
|
2464
2604
|
role?: string | undefined;
|
|
2605
|
+
dbt?: boolean | undefined;
|
|
2606
|
+
dbtServiceToken?: string | undefined;
|
|
2607
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2608
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2465
2609
|
}>, z.ZodObject<{
|
|
2466
2610
|
accountName: z.ZodString;
|
|
2467
2611
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2468
2612
|
database: z.ZodOptional<z.ZodString>;
|
|
2469
2613
|
role: z.ZodOptional<z.ZodString>;
|
|
2614
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2615
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2617
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2470
2618
|
} & {
|
|
2471
2619
|
authMethod: z.ZodLiteral<"snowflake">;
|
|
2472
2620
|
clientId: z.ZodString;
|
|
@@ -2479,6 +2627,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2479
2627
|
database?: string | undefined;
|
|
2480
2628
|
warehouse?: string | undefined;
|
|
2481
2629
|
role?: string | undefined;
|
|
2630
|
+
dbt?: boolean | undefined;
|
|
2631
|
+
dbtServiceToken?: string | undefined;
|
|
2632
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2633
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2482
2634
|
}, {
|
|
2483
2635
|
authMethod: "snowflake";
|
|
2484
2636
|
clientId: string;
|
|
@@ -2487,11 +2639,19 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2487
2639
|
database?: string | undefined;
|
|
2488
2640
|
warehouse?: string | undefined;
|
|
2489
2641
|
role?: string | undefined;
|
|
2642
|
+
dbt?: boolean | undefined;
|
|
2643
|
+
dbtServiceToken?: string | undefined;
|
|
2644
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2645
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2490
2646
|
}>, z.ZodObject<{
|
|
2491
2647
|
accountName: z.ZodString;
|
|
2492
2648
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2493
2649
|
database: z.ZodOptional<z.ZodString>;
|
|
2494
2650
|
role: z.ZodOptional<z.ZodString>;
|
|
2651
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2652
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2654
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2495
2655
|
} & {
|
|
2496
2656
|
authMethod: z.ZodLiteral<"azure">;
|
|
2497
2657
|
clientId: z.ZodString;
|
|
@@ -2508,6 +2668,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2508
2668
|
database?: string | undefined;
|
|
2509
2669
|
warehouse?: string | undefined;
|
|
2510
2670
|
role?: string | undefined;
|
|
2671
|
+
dbt?: boolean | undefined;
|
|
2672
|
+
dbtServiceToken?: string | undefined;
|
|
2673
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2674
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2511
2675
|
}, {
|
|
2512
2676
|
authMethod: "azure";
|
|
2513
2677
|
clientId: string;
|
|
@@ -2518,11 +2682,19 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2518
2682
|
database?: string | undefined;
|
|
2519
2683
|
warehouse?: string | undefined;
|
|
2520
2684
|
role?: string | undefined;
|
|
2685
|
+
dbt?: boolean | undefined;
|
|
2686
|
+
dbtServiceToken?: string | undefined;
|
|
2687
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2688
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2521
2689
|
}>, z.ZodObject<{
|
|
2522
2690
|
accountName: z.ZodString;
|
|
2523
2691
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2524
2692
|
database: z.ZodOptional<z.ZodString>;
|
|
2525
2693
|
role: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2695
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2696
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2526
2698
|
} & {
|
|
2527
2699
|
authMethod: z.ZodLiteral<"key-pair">;
|
|
2528
2700
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2531,17 +2703,29 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2531
2703
|
database?: string | undefined;
|
|
2532
2704
|
warehouse?: string | undefined;
|
|
2533
2705
|
role?: string | undefined;
|
|
2706
|
+
dbt?: boolean | undefined;
|
|
2707
|
+
dbtServiceToken?: string | undefined;
|
|
2708
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2709
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2534
2710
|
}, {
|
|
2535
2711
|
authMethod: "key-pair";
|
|
2536
2712
|
accountName: string;
|
|
2537
2713
|
database?: string | undefined;
|
|
2538
2714
|
warehouse?: string | undefined;
|
|
2539
2715
|
role?: string | undefined;
|
|
2716
|
+
dbt?: boolean | undefined;
|
|
2717
|
+
dbtServiceToken?: string | undefined;
|
|
2718
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2719
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2540
2720
|
}>, z.ZodObject<{
|
|
2541
2721
|
accountName: z.ZodString;
|
|
2542
2722
|
warehouse: z.ZodOptional<z.ZodString>;
|
|
2543
2723
|
database: z.ZodOptional<z.ZodString>;
|
|
2544
2724
|
role: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
dbt: z.ZodOptional<z.ZodBoolean>;
|
|
2726
|
+
dbtServiceToken: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
dbtPrimaryJobId: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
dbtProxyServerUrl: z.ZodOptional<z.ZodString>;
|
|
2545
2729
|
} & {
|
|
2546
2730
|
authMethod: z.ZodLiteral<"service-account-key-pair">;
|
|
2547
2731
|
username: z.ZodString;
|
|
@@ -2555,6 +2739,10 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2555
2739
|
database?: string | undefined;
|
|
2556
2740
|
warehouse?: string | undefined;
|
|
2557
2741
|
role?: string | undefined;
|
|
2742
|
+
dbt?: boolean | undefined;
|
|
2743
|
+
dbtServiceToken?: string | undefined;
|
|
2744
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2745
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2558
2746
|
privateKeyPassphrase?: string | undefined;
|
|
2559
2747
|
}, {
|
|
2560
2748
|
authMethod: "service-account-key-pair";
|
|
@@ -2564,8 +2752,88 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2564
2752
|
database?: string | undefined;
|
|
2565
2753
|
warehouse?: string | undefined;
|
|
2566
2754
|
role?: string | undefined;
|
|
2755
|
+
dbt?: boolean | undefined;
|
|
2756
|
+
dbtServiceToken?: string | undefined;
|
|
2757
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2758
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2567
2759
|
privateKeyPassphrase?: string | undefined;
|
|
2568
|
-
}>]
|
|
2760
|
+
}>]>, {
|
|
2761
|
+
password: string;
|
|
2762
|
+
accountName: string;
|
|
2763
|
+
username: string;
|
|
2764
|
+
database?: string | undefined;
|
|
2765
|
+
authMethod?: "password" | undefined;
|
|
2766
|
+
warehouse?: string | undefined;
|
|
2767
|
+
role?: string | undefined;
|
|
2768
|
+
dbt?: boolean | undefined;
|
|
2769
|
+
dbtServiceToken?: string | undefined;
|
|
2770
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2771
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2772
|
+
} | {
|
|
2773
|
+
authMethod: "okta";
|
|
2774
|
+
clientId: string;
|
|
2775
|
+
clientSecret: string;
|
|
2776
|
+
accountName: string;
|
|
2777
|
+
oktaSubdomain: string;
|
|
2778
|
+
identityProvider: string;
|
|
2779
|
+
authorizationServer: string;
|
|
2780
|
+
database?: string | undefined;
|
|
2781
|
+
warehouse?: string | undefined;
|
|
2782
|
+
role?: string | undefined;
|
|
2783
|
+
dbt?: boolean | undefined;
|
|
2784
|
+
dbtServiceToken?: string | undefined;
|
|
2785
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2786
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2787
|
+
} | {
|
|
2788
|
+
authMethod: "snowflake";
|
|
2789
|
+
clientId: string;
|
|
2790
|
+
clientSecret: string;
|
|
2791
|
+
accountName: string;
|
|
2792
|
+
database?: string | undefined;
|
|
2793
|
+
warehouse?: string | undefined;
|
|
2794
|
+
role?: string | undefined;
|
|
2795
|
+
dbt?: boolean | undefined;
|
|
2796
|
+
dbtServiceToken?: string | undefined;
|
|
2797
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2798
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2799
|
+
} | {
|
|
2800
|
+
authMethod: "azure";
|
|
2801
|
+
clientId: string;
|
|
2802
|
+
clientSecret: string;
|
|
2803
|
+
accountName: string;
|
|
2804
|
+
resource: string;
|
|
2805
|
+
tenant: string;
|
|
2806
|
+
database?: string | undefined;
|
|
2807
|
+
warehouse?: string | undefined;
|
|
2808
|
+
role?: string | undefined;
|
|
2809
|
+
dbt?: boolean | undefined;
|
|
2810
|
+
dbtServiceToken?: string | undefined;
|
|
2811
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2812
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2813
|
+
} | {
|
|
2814
|
+
authMethod: "key-pair";
|
|
2815
|
+
accountName: string;
|
|
2816
|
+
database?: string | undefined;
|
|
2817
|
+
warehouse?: string | undefined;
|
|
2818
|
+
role?: string | undefined;
|
|
2819
|
+
dbt?: boolean | undefined;
|
|
2820
|
+
dbtServiceToken?: string | undefined;
|
|
2821
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2822
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2823
|
+
} | {
|
|
2824
|
+
authMethod: "service-account-key-pair";
|
|
2825
|
+
accountName: string;
|
|
2826
|
+
username: string;
|
|
2827
|
+
privateKey: string;
|
|
2828
|
+
database?: string | undefined;
|
|
2829
|
+
warehouse?: string | undefined;
|
|
2830
|
+
role?: string | undefined;
|
|
2831
|
+
dbt?: boolean | undefined;
|
|
2832
|
+
dbtServiceToken?: string | undefined;
|
|
2833
|
+
dbtPrimaryJobId?: string | undefined;
|
|
2834
|
+
dbtProxyServerUrl?: string | undefined;
|
|
2835
|
+
privateKeyPassphrase?: string | undefined;
|
|
2836
|
+
}, unknown>;
|
|
2569
2837
|
readonly spanner: z.ZodObject<{
|
|
2570
2838
|
service_account: z.ZodString;
|
|
2571
2839
|
dataBoostEnabled: z.ZodBoolean;
|
package/dist/index.js
CHANGED
|
@@ -150,11 +150,21 @@ const commonSnowflakeMetadataSchema = z.object({
|
|
|
150
150
|
accountName: z.string(),
|
|
151
151
|
warehouse: z.string().optional(),
|
|
152
152
|
database: z.string().optional(),
|
|
153
|
-
role: z.string().optional()
|
|
153
|
+
role: z.string().optional(),
|
|
154
|
+
dbt: z.boolean().optional(),
|
|
155
|
+
dbtServiceToken: z.string().optional(),
|
|
156
|
+
dbtPrimaryJobId: z.string().optional(),
|
|
157
|
+
dbtProxyServerUrl: z.string().optional()
|
|
154
158
|
});
|
|
155
|
-
const snowflakeMetadataSchema = z.
|
|
159
|
+
const snowflakeMetadataSchema = z.preprocess((data) => {
|
|
160
|
+
if (typeof data === "object" && data !== null && (!("authMethod" in data) || !data.authMethod)) return {
|
|
161
|
+
...data,
|
|
162
|
+
authMethod: SnowflakeAuthMethods.Password
|
|
163
|
+
};
|
|
164
|
+
return data;
|
|
165
|
+
}, z.discriminatedUnion("authMethod", [
|
|
156
166
|
commonSnowflakeMetadataSchema.extend({
|
|
157
|
-
authMethod: z.literal(SnowflakeAuthMethods.Password),
|
|
167
|
+
authMethod: z.literal(SnowflakeAuthMethods.Password).optional(),
|
|
158
168
|
username: z.string(),
|
|
159
169
|
password: z.string()
|
|
160
170
|
}),
|
|
@@ -185,7 +195,7 @@ const snowflakeMetadataSchema = z.discriminatedUnion("authMethod", [
|
|
|
185
195
|
privateKey: z.string(),
|
|
186
196
|
privateKeyPassphrase: z.string().optional()
|
|
187
197
|
})
|
|
188
|
-
]);
|
|
198
|
+
]));
|
|
189
199
|
const spannerMetadataSchema = z.object({
|
|
190
200
|
service_account: z.string(),
|
|
191
201
|
dataBoostEnabled: z.boolean(),
|