@deepnote/database-integrations 1.2.1 → 1.3.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 +10 -4
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +10 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -302,7 +302,7 @@ const databaseIntegrationConfigSchema = zod.default.discriminatedUnion("type", [
|
|
|
302
302
|
commonIntegrationConfig.extend({
|
|
303
303
|
type: zod.default.literal("big-query"),
|
|
304
304
|
metadata: databaseMetadataSchemasByType["big-query"],
|
|
305
|
-
federated_auth_method: zod.default.enum(["google-oauth"]).optional().nullable()
|
|
305
|
+
federated_auth_method: zod.default.enum(["service-account", "google-oauth"]).optional().nullable()
|
|
306
306
|
}),
|
|
307
307
|
commonIntegrationConfig.extend({
|
|
308
308
|
type: zod.default.literal("clickhouse"),
|
|
@@ -357,7 +357,11 @@ const databaseIntegrationConfigSchema = zod.default.discriminatedUnion("type", [
|
|
|
357
357
|
commonIntegrationConfig.extend({
|
|
358
358
|
type: zod.default.literal("redshift"),
|
|
359
359
|
metadata: databaseMetadataSchemasByType["redshift"],
|
|
360
|
-
federated_auth_method: zod.default.enum([
|
|
360
|
+
federated_auth_method: zod.default.enum([
|
|
361
|
+
"username-and-password",
|
|
362
|
+
"iam-role",
|
|
363
|
+
"individual-credentials"
|
|
364
|
+
]).optional().nullable()
|
|
361
365
|
}),
|
|
362
366
|
commonIntegrationConfig.extend({
|
|
363
367
|
type: zod.default.literal("snowflake"),
|
|
@@ -366,7 +370,9 @@ const databaseIntegrationConfigSchema = zod.default.discriminatedUnion("type", [
|
|
|
366
370
|
"okta",
|
|
367
371
|
"snowflake",
|
|
368
372
|
"azure",
|
|
369
|
-
"key-pair"
|
|
373
|
+
"key-pair",
|
|
374
|
+
"password",
|
|
375
|
+
"service-account-key-pair"
|
|
370
376
|
]).optional().nullable()
|
|
371
377
|
}),
|
|
372
378
|
commonIntegrationConfig.extend({
|
|
@@ -692,7 +698,7 @@ const getTrinoEnvVars = (integrationId, metadata, projectRootDirectory) => {
|
|
|
692
698
|
caCertificateName: metadata.caCertificateName
|
|
693
699
|
}) } : {}
|
|
694
700
|
} },
|
|
695
|
-
param_style: "
|
|
701
|
+
param_style: "qmark"
|
|
696
702
|
};
|
|
697
703
|
};
|
|
698
704
|
const getAthenaSqlAlchemyInput = ({ access_key_id, region, s3_output_path, secret_access_key, workgroup }) => {
|
package/dist/index.d.cts
CHANGED
|
@@ -176,7 +176,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
176
176
|
clientId: string;
|
|
177
177
|
clientSecret: string;
|
|
178
178
|
}>]>;
|
|
179
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["google-oauth"]>>>;
|
|
179
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["service-account", "google-oauth"]>>>;
|
|
180
180
|
}, "strip", z$1.ZodTypeAny, {
|
|
181
181
|
type: "big-query";
|
|
182
182
|
id: string;
|
|
@@ -190,7 +190,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
190
190
|
clientId: string;
|
|
191
191
|
clientSecret: string;
|
|
192
192
|
};
|
|
193
|
-
federated_auth_method?: "google-oauth" | null | undefined;
|
|
193
|
+
federated_auth_method?: "service-account" | "google-oauth" | null | undefined;
|
|
194
194
|
}, {
|
|
195
195
|
type: "big-query";
|
|
196
196
|
id: string;
|
|
@@ -204,7 +204,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
204
204
|
clientId: string;
|
|
205
205
|
clientSecret: string;
|
|
206
206
|
};
|
|
207
|
-
federated_auth_method?: "google-oauth" | null | undefined;
|
|
207
|
+
federated_auth_method?: "service-account" | "google-oauth" | null | undefined;
|
|
208
208
|
}>, z$1.ZodObject<{
|
|
209
209
|
id: z$1.ZodString;
|
|
210
210
|
name: z$1.ZodString;
|
|
@@ -712,7 +712,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
712
712
|
caCertificateText: z$1.ZodOptional<z$1.ZodString>;
|
|
713
713
|
}, "strip", z$1.ZodTypeAny, {
|
|
714
714
|
connection_string: string;
|
|
715
|
-
options?: string | undefined;
|
|
716
715
|
host?: string | undefined;
|
|
717
716
|
user?: string | undefined;
|
|
718
717
|
password?: string | undefined;
|
|
@@ -721,6 +720,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
721
720
|
sshHost?: string | undefined;
|
|
722
721
|
sshPort?: string | undefined;
|
|
723
722
|
sshUser?: string | undefined;
|
|
723
|
+
options?: string | undefined;
|
|
724
724
|
port?: string | undefined;
|
|
725
725
|
sslEnabled?: boolean | undefined;
|
|
726
726
|
caCertificateName?: string | undefined;
|
|
@@ -729,7 +729,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
729
729
|
prefix?: string | undefined;
|
|
730
730
|
}, {
|
|
731
731
|
connection_string: string;
|
|
732
|
-
options?: string | undefined;
|
|
733
732
|
host?: string | undefined;
|
|
734
733
|
user?: string | undefined;
|
|
735
734
|
password?: string | undefined;
|
|
@@ -738,6 +737,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
738
737
|
sshHost?: string | undefined;
|
|
739
738
|
sshPort?: string | undefined;
|
|
740
739
|
sshUser?: string | undefined;
|
|
740
|
+
options?: string | undefined;
|
|
741
741
|
port?: string | undefined;
|
|
742
742
|
sslEnabled?: boolean | undefined;
|
|
743
743
|
caCertificateName?: string | undefined;
|
|
@@ -752,7 +752,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
752
752
|
name: string;
|
|
753
753
|
metadata: {
|
|
754
754
|
connection_string: string;
|
|
755
|
-
options?: string | undefined;
|
|
756
755
|
host?: string | undefined;
|
|
757
756
|
user?: string | undefined;
|
|
758
757
|
password?: string | undefined;
|
|
@@ -761,6 +760,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
761
760
|
sshHost?: string | undefined;
|
|
762
761
|
sshPort?: string | undefined;
|
|
763
762
|
sshUser?: string | undefined;
|
|
763
|
+
options?: string | undefined;
|
|
764
764
|
port?: string | undefined;
|
|
765
765
|
sslEnabled?: boolean | undefined;
|
|
766
766
|
caCertificateName?: string | undefined;
|
|
@@ -775,7 +775,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
775
775
|
name: string;
|
|
776
776
|
metadata: {
|
|
777
777
|
connection_string: string;
|
|
778
|
-
options?: string | undefined;
|
|
779
778
|
host?: string | undefined;
|
|
780
779
|
user?: string | undefined;
|
|
781
780
|
password?: string | undefined;
|
|
@@ -784,6 +783,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
784
783
|
sshHost?: string | undefined;
|
|
785
784
|
sshPort?: string | undefined;
|
|
786
785
|
sshUser?: string | undefined;
|
|
786
|
+
options?: string | undefined;
|
|
787
787
|
port?: string | undefined;
|
|
788
788
|
sslEnabled?: boolean | undefined;
|
|
789
789
|
caCertificateName?: string | undefined;
|
|
@@ -1113,7 +1113,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1113
1113
|
caCertificateName?: string | undefined;
|
|
1114
1114
|
caCertificateText?: string | undefined;
|
|
1115
1115
|
}>]>;
|
|
1116
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["individual-credentials"]>>>;
|
|
1116
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["username-and-password", "iam-role", "individual-credentials"]>>>;
|
|
1117
1117
|
}, "strip", z$1.ZodTypeAny, {
|
|
1118
1118
|
type: "redshift";
|
|
1119
1119
|
id: string;
|
|
@@ -1160,7 +1160,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1160
1160
|
caCertificateName?: string | undefined;
|
|
1161
1161
|
caCertificateText?: string | undefined;
|
|
1162
1162
|
};
|
|
1163
|
-
federated_auth_method?: "individual-credentials" | null | undefined;
|
|
1163
|
+
federated_auth_method?: "username-and-password" | "individual-credentials" | "iam-role" | null | undefined;
|
|
1164
1164
|
}, {
|
|
1165
1165
|
type: "redshift";
|
|
1166
1166
|
id: string;
|
|
@@ -1207,7 +1207,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1207
1207
|
caCertificateName?: string | undefined;
|
|
1208
1208
|
caCertificateText?: string | undefined;
|
|
1209
1209
|
};
|
|
1210
|
-
federated_auth_method?: "individual-credentials" | null | undefined;
|
|
1210
|
+
federated_auth_method?: "username-and-password" | "individual-credentials" | "iam-role" | null | undefined;
|
|
1211
1211
|
}>, z$1.ZodObject<{
|
|
1212
1212
|
id: z$1.ZodString;
|
|
1213
1213
|
name: z$1.ZodString;
|
|
@@ -1376,7 +1376,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1376
1376
|
role?: string | undefined;
|
|
1377
1377
|
privateKeyPassphrase?: string | undefined;
|
|
1378
1378
|
}>]>;
|
|
1379
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair"]>>>;
|
|
1379
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair", "password", "service-account-key-pair"]>>>;
|
|
1380
1380
|
}, "strip", z$1.ZodTypeAny, {
|
|
1381
1381
|
type: "snowflake";
|
|
1382
1382
|
id: string;
|
|
@@ -1434,7 +1434,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1434
1434
|
role?: string | undefined;
|
|
1435
1435
|
privateKeyPassphrase?: string | undefined;
|
|
1436
1436
|
};
|
|
1437
|
-
federated_auth_method?: "snowflake" | "azure" | "key-pair" | "okta" | null | undefined;
|
|
1437
|
+
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1438
1438
|
}, {
|
|
1439
1439
|
type: "snowflake";
|
|
1440
1440
|
id: string;
|
|
@@ -1492,7 +1492,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1492
1492
|
role?: string | undefined;
|
|
1493
1493
|
privateKeyPassphrase?: string | undefined;
|
|
1494
1494
|
};
|
|
1495
|
-
federated_auth_method?: "snowflake" | "azure" | "key-pair" | "okta" | null | undefined;
|
|
1495
|
+
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1496
1496
|
}>, z$1.ZodObject<{
|
|
1497
1497
|
id: z$1.ZodString;
|
|
1498
1498
|
name: z$1.ZodString;
|
|
@@ -2032,7 +2032,6 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2032
2032
|
caCertificateText: z.ZodOptional<z.ZodString>;
|
|
2033
2033
|
}, "strip", z.ZodTypeAny, {
|
|
2034
2034
|
connection_string: string;
|
|
2035
|
-
options?: string | undefined;
|
|
2036
2035
|
host?: string | undefined;
|
|
2037
2036
|
user?: string | undefined;
|
|
2038
2037
|
password?: string | undefined;
|
|
@@ -2041,6 +2040,7 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2041
2040
|
sshHost?: string | undefined;
|
|
2042
2041
|
sshPort?: string | undefined;
|
|
2043
2042
|
sshUser?: string | undefined;
|
|
2043
|
+
options?: string | undefined;
|
|
2044
2044
|
port?: string | undefined;
|
|
2045
2045
|
sslEnabled?: boolean | undefined;
|
|
2046
2046
|
caCertificateName?: string | undefined;
|
|
@@ -2049,7 +2049,6 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2049
2049
|
prefix?: string | undefined;
|
|
2050
2050
|
}, {
|
|
2051
2051
|
connection_string: string;
|
|
2052
|
-
options?: string | undefined;
|
|
2053
2052
|
host?: string | undefined;
|
|
2054
2053
|
user?: string | undefined;
|
|
2055
2054
|
password?: string | undefined;
|
|
@@ -2058,6 +2057,7 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2058
2057
|
sshHost?: string | undefined;
|
|
2059
2058
|
sshPort?: string | undefined;
|
|
2060
2059
|
sshUser?: string | undefined;
|
|
2060
|
+
options?: string | undefined;
|
|
2061
2061
|
port?: string | undefined;
|
|
2062
2062
|
sslEnabled?: boolean | undefined;
|
|
2063
2063
|
caCertificateName?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
176
176
|
clientId: string;
|
|
177
177
|
clientSecret: string;
|
|
178
178
|
}>]>;
|
|
179
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["google-oauth"]>>>;
|
|
179
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["service-account", "google-oauth"]>>>;
|
|
180
180
|
}, "strip", z$1.ZodTypeAny, {
|
|
181
181
|
type: "big-query";
|
|
182
182
|
id: string;
|
|
@@ -190,7 +190,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
190
190
|
clientId: string;
|
|
191
191
|
clientSecret: string;
|
|
192
192
|
};
|
|
193
|
-
federated_auth_method?: "google-oauth" | null | undefined;
|
|
193
|
+
federated_auth_method?: "service-account" | "google-oauth" | null | undefined;
|
|
194
194
|
}, {
|
|
195
195
|
type: "big-query";
|
|
196
196
|
id: string;
|
|
@@ -204,7 +204,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
204
204
|
clientId: string;
|
|
205
205
|
clientSecret: string;
|
|
206
206
|
};
|
|
207
|
-
federated_auth_method?: "google-oauth" | null | undefined;
|
|
207
|
+
federated_auth_method?: "service-account" | "google-oauth" | null | undefined;
|
|
208
208
|
}>, z$1.ZodObject<{
|
|
209
209
|
id: z$1.ZodString;
|
|
210
210
|
name: z$1.ZodString;
|
|
@@ -712,7 +712,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
712
712
|
caCertificateText: z$1.ZodOptional<z$1.ZodString>;
|
|
713
713
|
}, "strip", z$1.ZodTypeAny, {
|
|
714
714
|
connection_string: string;
|
|
715
|
-
options?: string | undefined;
|
|
716
715
|
host?: string | undefined;
|
|
717
716
|
user?: string | undefined;
|
|
718
717
|
password?: string | undefined;
|
|
@@ -721,6 +720,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
721
720
|
sshHost?: string | undefined;
|
|
722
721
|
sshPort?: string | undefined;
|
|
723
722
|
sshUser?: string | undefined;
|
|
723
|
+
options?: string | undefined;
|
|
724
724
|
port?: string | undefined;
|
|
725
725
|
sslEnabled?: boolean | undefined;
|
|
726
726
|
caCertificateName?: string | undefined;
|
|
@@ -729,7 +729,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
729
729
|
prefix?: string | undefined;
|
|
730
730
|
}, {
|
|
731
731
|
connection_string: string;
|
|
732
|
-
options?: string | undefined;
|
|
733
732
|
host?: string | undefined;
|
|
734
733
|
user?: string | undefined;
|
|
735
734
|
password?: string | undefined;
|
|
@@ -738,6 +737,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
738
737
|
sshHost?: string | undefined;
|
|
739
738
|
sshPort?: string | undefined;
|
|
740
739
|
sshUser?: string | undefined;
|
|
740
|
+
options?: string | undefined;
|
|
741
741
|
port?: string | undefined;
|
|
742
742
|
sslEnabled?: boolean | undefined;
|
|
743
743
|
caCertificateName?: string | undefined;
|
|
@@ -752,7 +752,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
752
752
|
name: string;
|
|
753
753
|
metadata: {
|
|
754
754
|
connection_string: string;
|
|
755
|
-
options?: string | undefined;
|
|
756
755
|
host?: string | undefined;
|
|
757
756
|
user?: string | undefined;
|
|
758
757
|
password?: string | undefined;
|
|
@@ -761,6 +760,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
761
760
|
sshHost?: string | undefined;
|
|
762
761
|
sshPort?: string | undefined;
|
|
763
762
|
sshUser?: string | undefined;
|
|
763
|
+
options?: string | undefined;
|
|
764
764
|
port?: string | undefined;
|
|
765
765
|
sslEnabled?: boolean | undefined;
|
|
766
766
|
caCertificateName?: string | undefined;
|
|
@@ -775,7 +775,6 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
775
775
|
name: string;
|
|
776
776
|
metadata: {
|
|
777
777
|
connection_string: string;
|
|
778
|
-
options?: string | undefined;
|
|
779
778
|
host?: string | undefined;
|
|
780
779
|
user?: string | undefined;
|
|
781
780
|
password?: string | undefined;
|
|
@@ -784,6 +783,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
784
783
|
sshHost?: string | undefined;
|
|
785
784
|
sshPort?: string | undefined;
|
|
786
785
|
sshUser?: string | undefined;
|
|
786
|
+
options?: string | undefined;
|
|
787
787
|
port?: string | undefined;
|
|
788
788
|
sslEnabled?: boolean | undefined;
|
|
789
789
|
caCertificateName?: string | undefined;
|
|
@@ -1113,7 +1113,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1113
1113
|
caCertificateName?: string | undefined;
|
|
1114
1114
|
caCertificateText?: string | undefined;
|
|
1115
1115
|
}>]>;
|
|
1116
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["individual-credentials"]>>>;
|
|
1116
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["username-and-password", "iam-role", "individual-credentials"]>>>;
|
|
1117
1117
|
}, "strip", z$1.ZodTypeAny, {
|
|
1118
1118
|
type: "redshift";
|
|
1119
1119
|
id: string;
|
|
@@ -1160,7 +1160,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1160
1160
|
caCertificateName?: string | undefined;
|
|
1161
1161
|
caCertificateText?: string | undefined;
|
|
1162
1162
|
};
|
|
1163
|
-
federated_auth_method?: "individual-credentials" | null | undefined;
|
|
1163
|
+
federated_auth_method?: "username-and-password" | "individual-credentials" | "iam-role" | null | undefined;
|
|
1164
1164
|
}, {
|
|
1165
1165
|
type: "redshift";
|
|
1166
1166
|
id: string;
|
|
@@ -1207,7 +1207,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1207
1207
|
caCertificateName?: string | undefined;
|
|
1208
1208
|
caCertificateText?: string | undefined;
|
|
1209
1209
|
};
|
|
1210
|
-
federated_auth_method?: "individual-credentials" | null | undefined;
|
|
1210
|
+
federated_auth_method?: "username-and-password" | "individual-credentials" | "iam-role" | null | undefined;
|
|
1211
1211
|
}>, z$1.ZodObject<{
|
|
1212
1212
|
id: z$1.ZodString;
|
|
1213
1213
|
name: z$1.ZodString;
|
|
@@ -1376,7 +1376,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1376
1376
|
role?: string | undefined;
|
|
1377
1377
|
privateKeyPassphrase?: string | undefined;
|
|
1378
1378
|
}>]>;
|
|
1379
|
-
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair"]>>>;
|
|
1379
|
+
federated_auth_method: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodEnum<["okta", "snowflake", "azure", "key-pair", "password", "service-account-key-pair"]>>>;
|
|
1380
1380
|
}, "strip", z$1.ZodTypeAny, {
|
|
1381
1381
|
type: "snowflake";
|
|
1382
1382
|
id: string;
|
|
@@ -1434,7 +1434,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1434
1434
|
role?: string | undefined;
|
|
1435
1435
|
privateKeyPassphrase?: string | undefined;
|
|
1436
1436
|
};
|
|
1437
|
-
federated_auth_method?: "snowflake" | "azure" | "key-pair" | "okta" | null | undefined;
|
|
1437
|
+
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1438
1438
|
}, {
|
|
1439
1439
|
type: "snowflake";
|
|
1440
1440
|
id: string;
|
|
@@ -1492,7 +1492,7 @@ declare const databaseIntegrationConfigSchema: z$1.ZodDiscriminatedUnion<"type",
|
|
|
1492
1492
|
role?: string | undefined;
|
|
1493
1493
|
privateKeyPassphrase?: string | undefined;
|
|
1494
1494
|
};
|
|
1495
|
-
federated_auth_method?: "snowflake" | "azure" | "key-pair" | "okta" | null | undefined;
|
|
1495
|
+
federated_auth_method?: "snowflake" | "password" | "azure" | "key-pair" | "service-account-key-pair" | "okta" | null | undefined;
|
|
1496
1496
|
}>, z$1.ZodObject<{
|
|
1497
1497
|
id: z$1.ZodString;
|
|
1498
1498
|
name: z$1.ZodString;
|
|
@@ -2032,7 +2032,6 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2032
2032
|
caCertificateText: z.ZodOptional<z.ZodString>;
|
|
2033
2033
|
}, "strip", z.ZodTypeAny, {
|
|
2034
2034
|
connection_string: string;
|
|
2035
|
-
options?: string | undefined;
|
|
2036
2035
|
host?: string | undefined;
|
|
2037
2036
|
user?: string | undefined;
|
|
2038
2037
|
password?: string | undefined;
|
|
@@ -2041,6 +2040,7 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2041
2040
|
sshHost?: string | undefined;
|
|
2042
2041
|
sshPort?: string | undefined;
|
|
2043
2042
|
sshUser?: string | undefined;
|
|
2043
|
+
options?: string | undefined;
|
|
2044
2044
|
port?: string | undefined;
|
|
2045
2045
|
sslEnabled?: boolean | undefined;
|
|
2046
2046
|
caCertificateName?: string | undefined;
|
|
@@ -2049,7 +2049,6 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2049
2049
|
prefix?: string | undefined;
|
|
2050
2050
|
}, {
|
|
2051
2051
|
connection_string: string;
|
|
2052
|
-
options?: string | undefined;
|
|
2053
2052
|
host?: string | undefined;
|
|
2054
2053
|
user?: string | undefined;
|
|
2055
2054
|
password?: string | undefined;
|
|
@@ -2058,6 +2057,7 @@ declare const databaseMetadataSchemasByType: {
|
|
|
2058
2057
|
sshHost?: string | undefined;
|
|
2059
2058
|
sshPort?: string | undefined;
|
|
2060
2059
|
sshUser?: string | undefined;
|
|
2060
|
+
options?: string | undefined;
|
|
2061
2061
|
port?: string | undefined;
|
|
2062
2062
|
sslEnabled?: boolean | undefined;
|
|
2063
2063
|
caCertificateName?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -278,7 +278,7 @@ const databaseIntegrationConfigSchema = z$1.discriminatedUnion("type", [
|
|
|
278
278
|
commonIntegrationConfig.extend({
|
|
279
279
|
type: z$1.literal("big-query"),
|
|
280
280
|
metadata: databaseMetadataSchemasByType["big-query"],
|
|
281
|
-
federated_auth_method: z$1.enum(["google-oauth"]).optional().nullable()
|
|
281
|
+
federated_auth_method: z$1.enum(["service-account", "google-oauth"]).optional().nullable()
|
|
282
282
|
}),
|
|
283
283
|
commonIntegrationConfig.extend({
|
|
284
284
|
type: z$1.literal("clickhouse"),
|
|
@@ -333,7 +333,11 @@ const databaseIntegrationConfigSchema = z$1.discriminatedUnion("type", [
|
|
|
333
333
|
commonIntegrationConfig.extend({
|
|
334
334
|
type: z$1.literal("redshift"),
|
|
335
335
|
metadata: databaseMetadataSchemasByType["redshift"],
|
|
336
|
-
federated_auth_method: z$1.enum([
|
|
336
|
+
federated_auth_method: z$1.enum([
|
|
337
|
+
"username-and-password",
|
|
338
|
+
"iam-role",
|
|
339
|
+
"individual-credentials"
|
|
340
|
+
]).optional().nullable()
|
|
337
341
|
}),
|
|
338
342
|
commonIntegrationConfig.extend({
|
|
339
343
|
type: z$1.literal("snowflake"),
|
|
@@ -342,7 +346,9 @@ const databaseIntegrationConfigSchema = z$1.discriminatedUnion("type", [
|
|
|
342
346
|
"okta",
|
|
343
347
|
"snowflake",
|
|
344
348
|
"azure",
|
|
345
|
-
"key-pair"
|
|
349
|
+
"key-pair",
|
|
350
|
+
"password",
|
|
351
|
+
"service-account-key-pair"
|
|
346
352
|
]).optional().nullable()
|
|
347
353
|
}),
|
|
348
354
|
commonIntegrationConfig.extend({
|
|
@@ -668,7 +674,7 @@ const getTrinoEnvVars = (integrationId, metadata, projectRootDirectory) => {
|
|
|
668
674
|
caCertificateName: metadata.caCertificateName
|
|
669
675
|
}) } : {}
|
|
670
676
|
} },
|
|
671
|
-
param_style: "
|
|
677
|
+
param_style: "qmark"
|
|
672
678
|
};
|
|
673
679
|
};
|
|
674
680
|
const getAthenaSqlAlchemyInput = ({ access_key_id, region, s3_output_path, secret_access_key, workgroup }) => {
|