@authhero/kysely-adapter 0.9.3 → 0.9.5
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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +114 -114
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +260 -259
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -245,12 +245,12 @@ export type User = z.infer<typeof userSchema>;
|
|
|
245
245
|
declare const applicationInsertSchema: z.ZodObject<{
|
|
246
246
|
id: z.ZodString;
|
|
247
247
|
name: z.ZodString;
|
|
248
|
-
callbacks: z.
|
|
249
|
-
allowed_origins: z.
|
|
250
|
-
web_origins: z.
|
|
251
|
-
allowed_logout_urls: z.
|
|
252
|
-
allowed_clients: z.
|
|
253
|
-
addons: z.
|
|
248
|
+
callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
249
|
+
allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
250
|
+
web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
251
|
+
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
252
|
+
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
253
|
+
addons: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
254
254
|
samlp: z.ZodOptional<z.ZodObject<{
|
|
255
255
|
audience: z.ZodOptional<z.ZodString>;
|
|
256
256
|
recipient: z.ZodOptional<z.ZodString>;
|
|
@@ -342,22 +342,23 @@ declare const applicationInsertSchema: z.ZodObject<{
|
|
|
342
342
|
mappings?: Record<string, string> | undefined;
|
|
343
343
|
} | undefined;
|
|
344
344
|
}>>>;
|
|
345
|
-
email_validation: z.
|
|
345
|
+
email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
346
346
|
"enabled",
|
|
347
347
|
"disabled",
|
|
348
348
|
"enforced"
|
|
349
349
|
]>>>;
|
|
350
|
-
client_secret: z.
|
|
350
|
+
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
351
351
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
353
|
name: string;
|
|
354
354
|
id: string;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
355
|
+
disable_sign_ups: boolean;
|
|
356
|
+
callbacks?: string[] | undefined;
|
|
357
|
+
allowed_origins?: string[] | undefined;
|
|
358
|
+
web_origins?: string[] | undefined;
|
|
359
|
+
allowed_logout_urls?: string[] | undefined;
|
|
360
|
+
allowed_clients?: string[] | undefined;
|
|
361
|
+
addons?: {
|
|
361
362
|
samlp?: {
|
|
362
363
|
audience?: string | undefined;
|
|
363
364
|
recipient?: string | undefined;
|
|
@@ -376,10 +377,9 @@ declare const applicationInsertSchema: z.ZodObject<{
|
|
|
376
377
|
authnContextClassRef?: string | undefined;
|
|
377
378
|
mappings?: Record<string, string> | undefined;
|
|
378
379
|
} | undefined;
|
|
379
|
-
};
|
|
380
|
-
email_validation
|
|
381
|
-
client_secret
|
|
382
|
-
disable_sign_ups: boolean;
|
|
380
|
+
} | undefined;
|
|
381
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
382
|
+
client_secret?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
name: string;
|
|
385
385
|
id: string;
|
|
@@ -416,12 +416,12 @@ export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
|
|
|
416
416
|
declare const applicationSchema: z.ZodObject<{
|
|
417
417
|
id: z.ZodString;
|
|
418
418
|
name: z.ZodString;
|
|
419
|
-
callbacks: z.
|
|
420
|
-
allowed_origins: z.
|
|
421
|
-
web_origins: z.
|
|
422
|
-
allowed_logout_urls: z.
|
|
423
|
-
allowed_clients: z.
|
|
424
|
-
addons: z.
|
|
419
|
+
callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
420
|
+
allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
421
|
+
web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
422
|
+
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
423
|
+
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
424
|
+
addons: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
425
425
|
samlp: z.ZodOptional<z.ZodObject<{
|
|
426
426
|
audience: z.ZodOptional<z.ZodString>;
|
|
427
427
|
recipient: z.ZodOptional<z.ZodString>;
|
|
@@ -513,12 +513,12 @@ declare const applicationSchema: z.ZodObject<{
|
|
|
513
513
|
mappings?: Record<string, string> | undefined;
|
|
514
514
|
} | undefined;
|
|
515
515
|
}>>>;
|
|
516
|
-
email_validation: z.
|
|
516
|
+
email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
517
517
|
"enabled",
|
|
518
518
|
"disabled",
|
|
519
519
|
"enforced"
|
|
520
520
|
]>>>;
|
|
521
|
-
client_secret: z.
|
|
521
|
+
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
522
522
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
523
523
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
524
524
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -527,12 +527,13 @@ declare const applicationSchema: z.ZodObject<{
|
|
|
527
527
|
updated_at: string;
|
|
528
528
|
name: string;
|
|
529
529
|
id: string;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
530
|
+
disable_sign_ups: boolean;
|
|
531
|
+
callbacks?: string[] | undefined;
|
|
532
|
+
allowed_origins?: string[] | undefined;
|
|
533
|
+
web_origins?: string[] | undefined;
|
|
534
|
+
allowed_logout_urls?: string[] | undefined;
|
|
535
|
+
allowed_clients?: string[] | undefined;
|
|
536
|
+
addons?: {
|
|
536
537
|
samlp?: {
|
|
537
538
|
audience?: string | undefined;
|
|
538
539
|
recipient?: string | undefined;
|
|
@@ -551,10 +552,9 @@ declare const applicationSchema: z.ZodObject<{
|
|
|
551
552
|
authnContextClassRef?: string | undefined;
|
|
552
553
|
mappings?: Record<string, string> | undefined;
|
|
553
554
|
} | undefined;
|
|
554
|
-
};
|
|
555
|
-
email_validation
|
|
556
|
-
client_secret
|
|
557
|
-
disable_sign_ups: boolean;
|
|
555
|
+
} | undefined;
|
|
556
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
557
|
+
client_secret?: string | undefined;
|
|
558
558
|
}, {
|
|
559
559
|
created_at: string;
|
|
560
560
|
updated_at: string;
|
|
@@ -764,7 +764,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
764
764
|
"oauth2",
|
|
765
765
|
"custom"
|
|
766
766
|
]>>;
|
|
767
|
-
options: z.
|
|
767
|
+
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
768
768
|
kid: z.ZodOptional<z.ZodString>;
|
|
769
769
|
team_id: z.ZodOptional<z.ZodString>;
|
|
770
770
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -789,8 +789,8 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
789
789
|
realms?: string | undefined;
|
|
790
790
|
app_secret?: string | undefined;
|
|
791
791
|
}>>>;
|
|
792
|
-
enabled_clients: z.
|
|
793
|
-
authorization_endpoint: z.
|
|
792
|
+
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
793
|
+
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
794
794
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
795
795
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
796
796
|
client_id: z.ZodOptional<z.ZodString>;
|
|
@@ -803,7 +803,10 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
803
803
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
804
804
|
scope: z.ZodOptional<z.ZodString>;
|
|
805
805
|
}>, "strip", z.ZodTypeAny, {
|
|
806
|
-
|
|
806
|
+
created_at: string;
|
|
807
|
+
updated_at: string;
|
|
808
|
+
name: string;
|
|
809
|
+
options?: {
|
|
807
810
|
client_secret?: string | undefined;
|
|
808
811
|
client_id?: string | undefined;
|
|
809
812
|
scope?: string | undefined;
|
|
@@ -811,12 +814,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
811
814
|
team_id?: string | undefined;
|
|
812
815
|
realms?: string | undefined;
|
|
813
816
|
app_secret?: string | undefined;
|
|
814
|
-
};
|
|
815
|
-
created_at: string;
|
|
816
|
-
updated_at: string;
|
|
817
|
-
name: string;
|
|
818
|
-
enabled_clients: string[];
|
|
819
|
-
authorization_endpoint: string;
|
|
817
|
+
} | undefined;
|
|
820
818
|
id?: string | undefined;
|
|
821
819
|
client_secret?: string | undefined;
|
|
822
820
|
client_id?: string | undefined;
|
|
@@ -826,6 +824,8 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
826
824
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
827
825
|
kid?: string | undefined;
|
|
828
826
|
team_id?: string | undefined;
|
|
827
|
+
enabled_clients?: string[] | undefined;
|
|
828
|
+
authorization_endpoint?: string | undefined;
|
|
829
829
|
private_key?: string | undefined;
|
|
830
830
|
token_endpoint?: string | undefined;
|
|
831
831
|
token_exchange_basic_auth?: boolean | undefined;
|
|
@@ -861,12 +861,12 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
861
861
|
}>, "many">;
|
|
862
862
|
id: z.ZodString;
|
|
863
863
|
name: z.ZodString;
|
|
864
|
-
callbacks: z.
|
|
865
|
-
allowed_origins: z.
|
|
866
|
-
web_origins: z.
|
|
867
|
-
allowed_logout_urls: z.
|
|
868
|
-
allowed_clients: z.
|
|
869
|
-
addons: z.
|
|
864
|
+
callbacks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
865
|
+
allowed_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
866
|
+
web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
867
|
+
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
868
|
+
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
869
|
+
addons: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
870
870
|
samlp: z.ZodOptional<z.ZodObject<{
|
|
871
871
|
audience: z.ZodOptional<z.ZodString>;
|
|
872
872
|
recipient: z.ZodOptional<z.ZodString>;
|
|
@@ -958,12 +958,12 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
958
958
|
mappings?: Record<string, string> | undefined;
|
|
959
959
|
} | undefined;
|
|
960
960
|
}>>>;
|
|
961
|
-
email_validation: z.
|
|
961
|
+
email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
962
962
|
"enabled",
|
|
963
963
|
"disabled",
|
|
964
964
|
"enforced"
|
|
965
965
|
]>>>;
|
|
966
|
-
client_secret: z.
|
|
966
|
+
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
967
967
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
968
968
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
969
969
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -972,33 +972,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
972
972
|
updated_at: string;
|
|
973
973
|
name: string;
|
|
974
974
|
id: string;
|
|
975
|
-
callbacks: string[];
|
|
976
|
-
allowed_origins: string[];
|
|
977
|
-
web_origins: string[];
|
|
978
|
-
allowed_logout_urls: string[];
|
|
979
|
-
allowed_clients: string[];
|
|
980
|
-
addons: {
|
|
981
|
-
samlp?: {
|
|
982
|
-
audience?: string | undefined;
|
|
983
|
-
recipient?: string | undefined;
|
|
984
|
-
createUpnClaim?: boolean | undefined;
|
|
985
|
-
mapUnknownClaimsAsIs?: boolean | undefined;
|
|
986
|
-
passthroughClaimsWithNoMapping?: boolean | undefined;
|
|
987
|
-
mapIdentities?: boolean | undefined;
|
|
988
|
-
signatureAlgorithm?: string | undefined;
|
|
989
|
-
digestAlgorithm?: string | undefined;
|
|
990
|
-
issuer?: string | undefined;
|
|
991
|
-
destination?: string | undefined;
|
|
992
|
-
lifetimeInSeconds?: number | undefined;
|
|
993
|
-
signResponse?: boolean | undefined;
|
|
994
|
-
nameIdentifierFormat?: string | undefined;
|
|
995
|
-
nameIdentifierProbes?: string[] | undefined;
|
|
996
|
-
authnContextClassRef?: string | undefined;
|
|
997
|
-
mappings?: Record<string, string> | undefined;
|
|
998
|
-
} | undefined;
|
|
999
|
-
};
|
|
1000
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
1001
|
-
client_secret: string;
|
|
1002
975
|
disable_sign_ups: boolean;
|
|
1003
976
|
domains: {
|
|
1004
977
|
domain: string;
|
|
@@ -1022,7 +995,10 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1022
995
|
language?: string | undefined;
|
|
1023
996
|
};
|
|
1024
997
|
connections: {
|
|
1025
|
-
|
|
998
|
+
created_at: string;
|
|
999
|
+
updated_at: string;
|
|
1000
|
+
name: string;
|
|
1001
|
+
options?: {
|
|
1026
1002
|
client_secret?: string | undefined;
|
|
1027
1003
|
client_id?: string | undefined;
|
|
1028
1004
|
scope?: string | undefined;
|
|
@@ -1030,12 +1006,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1030
1006
|
team_id?: string | undefined;
|
|
1031
1007
|
realms?: string | undefined;
|
|
1032
1008
|
app_secret?: string | undefined;
|
|
1033
|
-
};
|
|
1034
|
-
created_at: string;
|
|
1035
|
-
updated_at: string;
|
|
1036
|
-
name: string;
|
|
1037
|
-
enabled_clients: string[];
|
|
1038
|
-
authorization_endpoint: string;
|
|
1009
|
+
} | undefined;
|
|
1039
1010
|
id?: string | undefined;
|
|
1040
1011
|
client_secret?: string | undefined;
|
|
1041
1012
|
client_id?: string | undefined;
|
|
@@ -1045,11 +1016,40 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1045
1016
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1046
1017
|
kid?: string | undefined;
|
|
1047
1018
|
team_id?: string | undefined;
|
|
1019
|
+
enabled_clients?: string[] | undefined;
|
|
1020
|
+
authorization_endpoint?: string | undefined;
|
|
1048
1021
|
private_key?: string | undefined;
|
|
1049
1022
|
token_endpoint?: string | undefined;
|
|
1050
1023
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1051
1024
|
userinfo_endpoint?: string | undefined;
|
|
1052
1025
|
}[];
|
|
1026
|
+
callbacks?: string[] | undefined;
|
|
1027
|
+
allowed_origins?: string[] | undefined;
|
|
1028
|
+
web_origins?: string[] | undefined;
|
|
1029
|
+
allowed_logout_urls?: string[] | undefined;
|
|
1030
|
+
allowed_clients?: string[] | undefined;
|
|
1031
|
+
addons?: {
|
|
1032
|
+
samlp?: {
|
|
1033
|
+
audience?: string | undefined;
|
|
1034
|
+
recipient?: string | undefined;
|
|
1035
|
+
createUpnClaim?: boolean | undefined;
|
|
1036
|
+
mapUnknownClaimsAsIs?: boolean | undefined;
|
|
1037
|
+
passthroughClaimsWithNoMapping?: boolean | undefined;
|
|
1038
|
+
mapIdentities?: boolean | undefined;
|
|
1039
|
+
signatureAlgorithm?: string | undefined;
|
|
1040
|
+
digestAlgorithm?: string | undefined;
|
|
1041
|
+
issuer?: string | undefined;
|
|
1042
|
+
destination?: string | undefined;
|
|
1043
|
+
lifetimeInSeconds?: number | undefined;
|
|
1044
|
+
signResponse?: boolean | undefined;
|
|
1045
|
+
nameIdentifierFormat?: string | undefined;
|
|
1046
|
+
nameIdentifierProbes?: string[] | undefined;
|
|
1047
|
+
authnContextClassRef?: string | undefined;
|
|
1048
|
+
mappings?: Record<string, string> | undefined;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
} | undefined;
|
|
1051
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
1052
|
+
client_secret?: string | undefined;
|
|
1053
1053
|
}, {
|
|
1054
1054
|
created_at: string;
|
|
1055
1055
|
updated_at: string;
|
|
@@ -1227,7 +1227,7 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1227
1227
|
"oauth2",
|
|
1228
1228
|
"custom"
|
|
1229
1229
|
]>>;
|
|
1230
|
-
options: z.
|
|
1230
|
+
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1231
1231
|
kid: z.ZodOptional<z.ZodString>;
|
|
1232
1232
|
team_id: z.ZodOptional<z.ZodString>;
|
|
1233
1233
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -1252,8 +1252,8 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1252
1252
|
realms?: string | undefined;
|
|
1253
1253
|
app_secret?: string | undefined;
|
|
1254
1254
|
}>>>;
|
|
1255
|
-
enabled_clients: z.
|
|
1256
|
-
authorization_endpoint: z.
|
|
1255
|
+
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1256
|
+
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1257
1257
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1258
1258
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1259
1259
|
client_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1266,7 +1266,8 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1266
1266
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
1267
1267
|
scope: z.ZodOptional<z.ZodString>;
|
|
1268
1268
|
}, "strip", z.ZodTypeAny, {
|
|
1269
|
-
|
|
1269
|
+
name: string;
|
|
1270
|
+
options?: {
|
|
1270
1271
|
client_secret?: string | undefined;
|
|
1271
1272
|
client_id?: string | undefined;
|
|
1272
1273
|
scope?: string | undefined;
|
|
@@ -1274,10 +1275,7 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1274
1275
|
team_id?: string | undefined;
|
|
1275
1276
|
realms?: string | undefined;
|
|
1276
1277
|
app_secret?: string | undefined;
|
|
1277
|
-
};
|
|
1278
|
-
name: string;
|
|
1279
|
-
enabled_clients: string[];
|
|
1280
|
-
authorization_endpoint: string;
|
|
1278
|
+
} | undefined;
|
|
1281
1279
|
id?: string | undefined;
|
|
1282
1280
|
client_secret?: string | undefined;
|
|
1283
1281
|
client_id?: string | undefined;
|
|
@@ -1287,6 +1285,8 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1287
1285
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1288
1286
|
kid?: string | undefined;
|
|
1289
1287
|
team_id?: string | undefined;
|
|
1288
|
+
enabled_clients?: string[] | undefined;
|
|
1289
|
+
authorization_endpoint?: string | undefined;
|
|
1290
1290
|
private_key?: string | undefined;
|
|
1291
1291
|
token_endpoint?: string | undefined;
|
|
1292
1292
|
token_exchange_basic_auth?: boolean | undefined;
|
|
@@ -1337,7 +1337,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1337
1337
|
"oauth2",
|
|
1338
1338
|
"custom"
|
|
1339
1339
|
]>>;
|
|
1340
|
-
options: z.
|
|
1340
|
+
options: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1341
1341
|
kid: z.ZodOptional<z.ZodString>;
|
|
1342
1342
|
team_id: z.ZodOptional<z.ZodString>;
|
|
1343
1343
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -1362,8 +1362,8 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1362
1362
|
realms?: string | undefined;
|
|
1363
1363
|
app_secret?: string | undefined;
|
|
1364
1364
|
}>>>;
|
|
1365
|
-
enabled_clients: z.
|
|
1366
|
-
authorization_endpoint: z.
|
|
1365
|
+
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
1366
|
+
authorization_endpoint: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
1367
1367
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1368
1368
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1369
1369
|
client_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1376,7 +1376,10 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1376
1376
|
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
1377
1377
|
scope: z.ZodOptional<z.ZodString>;
|
|
1378
1378
|
}>, "strip", z.ZodTypeAny, {
|
|
1379
|
-
|
|
1379
|
+
created_at: string;
|
|
1380
|
+
updated_at: string;
|
|
1381
|
+
name: string;
|
|
1382
|
+
options?: {
|
|
1380
1383
|
client_secret?: string | undefined;
|
|
1381
1384
|
client_id?: string | undefined;
|
|
1382
1385
|
scope?: string | undefined;
|
|
@@ -1384,12 +1387,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1384
1387
|
team_id?: string | undefined;
|
|
1385
1388
|
realms?: string | undefined;
|
|
1386
1389
|
app_secret?: string | undefined;
|
|
1387
|
-
};
|
|
1388
|
-
created_at: string;
|
|
1389
|
-
updated_at: string;
|
|
1390
|
-
name: string;
|
|
1391
|
-
enabled_clients: string[];
|
|
1392
|
-
authorization_endpoint: string;
|
|
1390
|
+
} | undefined;
|
|
1393
1391
|
id?: string | undefined;
|
|
1394
1392
|
client_secret?: string | undefined;
|
|
1395
1393
|
client_id?: string | undefined;
|
|
@@ -1399,6 +1397,8 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1399
1397
|
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1400
1398
|
kid?: string | undefined;
|
|
1401
1399
|
team_id?: string | undefined;
|
|
1400
|
+
enabled_clients?: string[] | undefined;
|
|
1401
|
+
authorization_endpoint?: string | undefined;
|
|
1402
1402
|
private_key?: string | undefined;
|
|
1403
1403
|
token_endpoint?: string | undefined;
|
|
1404
1404
|
token_exchange_basic_auth?: boolean | undefined;
|
|
@@ -3019,7 +3019,7 @@ export interface LoginsAdapter {
|
|
|
3019
3019
|
remove: (tenant_id: string, login_id: string) => Promise<boolean>;
|
|
3020
3020
|
}
|
|
3021
3021
|
export interface PromptSettingsAdapter {
|
|
3022
|
-
set: (tenant_id: string, promptSetting: PromptSetting) => Promise<void>;
|
|
3022
|
+
set: (tenant_id: string, promptSetting: Partial<PromptSetting>) => Promise<void>;
|
|
3023
3023
|
get: (tenant_id: string) => Promise<PromptSetting>;
|
|
3024
3024
|
}
|
|
3025
3025
|
export interface DataAdapters {
|
|
@@ -3133,13 +3133,13 @@ declare const sqlApplicationSchema: z.ZodObject<{
|
|
|
3133
3133
|
allowed_logout_urls: z.ZodString;
|
|
3134
3134
|
id: z.ZodString;
|
|
3135
3135
|
name: z.ZodString;
|
|
3136
|
-
allowed_clients: z.
|
|
3137
|
-
email_validation: z.
|
|
3136
|
+
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3137
|
+
email_validation: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
3138
3138
|
"enabled",
|
|
3139
3139
|
"disabled",
|
|
3140
3140
|
"enforced"
|
|
3141
3141
|
]>>>;
|
|
3142
|
-
client_secret: z.
|
|
3142
|
+
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
3143
3143
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
3144
3144
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
3145
3145
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3152,11 +3152,11 @@ declare const sqlApplicationSchema: z.ZodObject<{
|
|
|
3152
3152
|
allowed_logout_urls: string;
|
|
3153
3153
|
id: string;
|
|
3154
3154
|
name: string;
|
|
3155
|
-
allowed_clients: string[];
|
|
3156
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
3157
|
-
client_secret: string;
|
|
3158
3155
|
created_at: string;
|
|
3159
3156
|
updated_at: string;
|
|
3157
|
+
allowed_clients?: string[] | undefined;
|
|
3158
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
3159
|
+
client_secret?: string | undefined;
|
|
3160
3160
|
}, {
|
|
3161
3161
|
tenant_id: string;
|
|
3162
3162
|
addons: string;
|
|
@@ -3194,7 +3194,7 @@ export interface Database {
|
|
|
3194
3194
|
passwords: Password & {
|
|
3195
3195
|
tenant_id: string;
|
|
3196
3196
|
};
|
|
3197
|
-
|
|
3197
|
+
prompt_settings: PromptSetting & {
|
|
3198
3198
|
tenant_id: string;
|
|
3199
3199
|
};
|
|
3200
3200
|
users: SqlUser;
|