@authhero/kysely-adapter 0.8.1 → 0.9.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.
@@ -249,6 +249,7 @@ declare const applicationInsertSchema: z.ZodObject<{
249
249
  allowed_origins: z.ZodArray<z.ZodString, "many">;
250
250
  web_origins: z.ZodArray<z.ZodString, "many">;
251
251
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
252
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
252
253
  addons: z.ZodOptional<z.ZodObject<{
253
254
  samlp: z.ZodOptional<z.ZodObject<{
254
255
  audience: z.ZodOptional<z.ZodString>;
@@ -355,6 +356,7 @@ declare const applicationInsertSchema: z.ZodObject<{
355
356
  allowed_origins: string[];
356
357
  web_origins: string[];
357
358
  allowed_logout_urls: string[];
359
+ allowed_clients: string[];
358
360
  email_validation: "enabled" | "disabled" | "enforced";
359
361
  client_secret: string;
360
362
  disable_sign_ups: boolean;
@@ -385,6 +387,7 @@ declare const applicationInsertSchema: z.ZodObject<{
385
387
  allowed_origins: string[];
386
388
  web_origins: string[];
387
389
  allowed_logout_urls: string[];
390
+ allowed_clients: string[];
388
391
  addons?: {
389
392
  samlp?: {
390
393
  audience?: string | undefined;
@@ -417,6 +420,7 @@ declare const applicationSchema: z.ZodObject<{
417
420
  allowed_origins: z.ZodArray<z.ZodString, "many">;
418
421
  web_origins: z.ZodArray<z.ZodString, "many">;
419
422
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
423
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
420
424
  addons: z.ZodOptional<z.ZodObject<{
421
425
  samlp: z.ZodOptional<z.ZodObject<{
422
426
  audience: z.ZodOptional<z.ZodString>;
@@ -527,6 +531,7 @@ declare const applicationSchema: z.ZodObject<{
527
531
  allowed_origins: string[];
528
532
  web_origins: string[];
529
533
  allowed_logout_urls: string[];
534
+ allowed_clients: string[];
530
535
  email_validation: "enabled" | "disabled" | "enforced";
531
536
  client_secret: string;
532
537
  disable_sign_ups: boolean;
@@ -559,6 +564,7 @@ declare const applicationSchema: z.ZodObject<{
559
564
  allowed_origins: string[];
560
565
  web_origins: string[];
561
566
  allowed_logout_urls: string[];
567
+ allowed_clients: string[];
562
568
  addons?: {
563
569
  samlp?: {
564
570
  audience?: string | undefined;
@@ -747,11 +753,44 @@ declare const ClientSchema: z.ZodObject<{
747
753
  }, {
748
754
  id: z.ZodOptional<z.ZodString>;
749
755
  name: z.ZodString;
750
- client_id: z.ZodOptional<z.ZodString>;
751
- client_secret: z.ZodOptional<z.ZodString>;
756
+ strategy: z.ZodOptional<z.ZodEnum<[
757
+ "google-oauth2",
758
+ "facebook",
759
+ "vipps",
760
+ "apple",
761
+ "email"
762
+ ]>>;
763
+ options: z.ZodObject<{
764
+ kid: z.ZodOptional<z.ZodString>;
765
+ team_id: z.ZodOptional<z.ZodString>;
766
+ realms: z.ZodOptional<z.ZodString>;
767
+ client_id: z.ZodOptional<z.ZodString>;
768
+ client_secret: z.ZodOptional<z.ZodString>;
769
+ app_secret: z.ZodOptional<z.ZodString>;
770
+ scope: z.ZodOptional<z.ZodString>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ client_secret?: string | undefined;
773
+ client_id?: string | undefined;
774
+ scope?: string | undefined;
775
+ kid?: string | undefined;
776
+ team_id?: string | undefined;
777
+ realms?: string | undefined;
778
+ app_secret?: string | undefined;
779
+ }, {
780
+ client_secret?: string | undefined;
781
+ client_id?: string | undefined;
782
+ scope?: string | undefined;
783
+ kid?: string | undefined;
784
+ team_id?: string | undefined;
785
+ realms?: string | undefined;
786
+ app_secret?: string | undefined;
787
+ }>;
788
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
752
789
  authorization_endpoint: z.ZodOptional<z.ZodString>;
753
790
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
754
791
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
792
+ client_id: z.ZodOptional<z.ZodString>;
793
+ client_secret: z.ZodOptional<z.ZodString>;
755
794
  private_key: z.ZodOptional<z.ZodString>;
756
795
  kid: z.ZodOptional<z.ZodString>;
757
796
  team_id: z.ZodOptional<z.ZodString>;
@@ -760,6 +799,15 @@ declare const ClientSchema: z.ZodObject<{
760
799
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
761
800
  scope: z.ZodOptional<z.ZodString>;
762
801
  }>, "strip", z.ZodTypeAny, {
802
+ options: {
803
+ client_secret?: string | undefined;
804
+ client_id?: string | undefined;
805
+ scope?: string | undefined;
806
+ kid?: string | undefined;
807
+ team_id?: string | undefined;
808
+ realms?: string | undefined;
809
+ app_secret?: string | undefined;
810
+ };
763
811
  created_at: string;
764
812
  updated_at: string;
765
813
  name: string;
@@ -769,14 +817,25 @@ declare const ClientSchema: z.ZodObject<{
769
817
  response_type?: AuthorizationResponseType | undefined;
770
818
  response_mode?: AuthorizationResponseMode | undefined;
771
819
  scope?: string | undefined;
772
- authorization_endpoint?: string | undefined;
773
- private_key?: string | undefined;
820
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
774
821
  kid?: string | undefined;
775
822
  team_id?: string | undefined;
823
+ enabled_clients?: string[] | undefined;
824
+ authorization_endpoint?: string | undefined;
825
+ private_key?: string | undefined;
776
826
  token_endpoint?: string | undefined;
777
827
  token_exchange_basic_auth?: boolean | undefined;
778
828
  userinfo_endpoint?: string | undefined;
779
829
  }, {
830
+ options: {
831
+ client_secret?: string | undefined;
832
+ client_id?: string | undefined;
833
+ scope?: string | undefined;
834
+ kid?: string | undefined;
835
+ team_id?: string | undefined;
836
+ realms?: string | undefined;
837
+ app_secret?: string | undefined;
838
+ };
780
839
  created_at: string;
781
840
  updated_at: string;
782
841
  name: string;
@@ -786,10 +845,12 @@ declare const ClientSchema: z.ZodObject<{
786
845
  response_type?: AuthorizationResponseType | undefined;
787
846
  response_mode?: AuthorizationResponseMode | undefined;
788
847
  scope?: string | undefined;
789
- authorization_endpoint?: string | undefined;
790
- private_key?: string | undefined;
848
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
791
849
  kid?: string | undefined;
792
850
  team_id?: string | undefined;
851
+ enabled_clients?: string[] | undefined;
852
+ authorization_endpoint?: string | undefined;
853
+ private_key?: string | undefined;
793
854
  token_endpoint?: string | undefined;
794
855
  token_exchange_basic_auth?: boolean | undefined;
795
856
  userinfo_endpoint?: string | undefined;
@@ -800,6 +861,7 @@ declare const ClientSchema: z.ZodObject<{
800
861
  allowed_origins: z.ZodArray<z.ZodString, "many">;
801
862
  web_origins: z.ZodArray<z.ZodString, "many">;
802
863
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
864
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
803
865
  addons: z.ZodOptional<z.ZodObject<{
804
866
  samlp: z.ZodOptional<z.ZodObject<{
805
867
  audience: z.ZodOptional<z.ZodString>;
@@ -910,6 +972,7 @@ declare const ClientSchema: z.ZodObject<{
910
972
  allowed_origins: string[];
911
973
  web_origins: string[];
912
974
  allowed_logout_urls: string[];
975
+ allowed_clients: string[];
913
976
  email_validation: "enabled" | "disabled" | "enforced";
914
977
  client_secret: string;
915
978
  disable_sign_ups: boolean;
@@ -935,6 +998,15 @@ declare const ClientSchema: z.ZodObject<{
935
998
  language?: string | undefined;
936
999
  };
937
1000
  connections: {
1001
+ options: {
1002
+ client_secret?: string | undefined;
1003
+ client_id?: string | undefined;
1004
+ scope?: string | undefined;
1005
+ kid?: string | undefined;
1006
+ team_id?: string | undefined;
1007
+ realms?: string | undefined;
1008
+ app_secret?: string | undefined;
1009
+ };
938
1010
  created_at: string;
939
1011
  updated_at: string;
940
1012
  name: string;
@@ -944,10 +1016,12 @@ declare const ClientSchema: z.ZodObject<{
944
1016
  response_type?: AuthorizationResponseType | undefined;
945
1017
  response_mode?: AuthorizationResponseMode | undefined;
946
1018
  scope?: string | undefined;
947
- authorization_endpoint?: string | undefined;
948
- private_key?: string | undefined;
1019
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
949
1020
  kid?: string | undefined;
950
1021
  team_id?: string | undefined;
1022
+ enabled_clients?: string[] | undefined;
1023
+ authorization_endpoint?: string | undefined;
1024
+ private_key?: string | undefined;
951
1025
  token_endpoint?: string | undefined;
952
1026
  token_exchange_basic_auth?: boolean | undefined;
953
1027
  userinfo_endpoint?: string | undefined;
@@ -981,6 +1055,7 @@ declare const ClientSchema: z.ZodObject<{
981
1055
  allowed_origins: string[];
982
1056
  web_origins: string[];
983
1057
  allowed_logout_urls: string[];
1058
+ allowed_clients: string[];
984
1059
  domains: {
985
1060
  domain: string;
986
1061
  dkim_private_key?: string | undefined;
@@ -1003,6 +1078,15 @@ declare const ClientSchema: z.ZodObject<{
1003
1078
  language?: string | undefined;
1004
1079
  };
1005
1080
  connections: {
1081
+ options: {
1082
+ client_secret?: string | undefined;
1083
+ client_id?: string | undefined;
1084
+ scope?: string | undefined;
1085
+ kid?: string | undefined;
1086
+ team_id?: string | undefined;
1087
+ realms?: string | undefined;
1088
+ app_secret?: string | undefined;
1089
+ };
1006
1090
  created_at: string;
1007
1091
  updated_at: string;
1008
1092
  name: string;
@@ -1012,10 +1096,12 @@ declare const ClientSchema: z.ZodObject<{
1012
1096
  response_type?: AuthorizationResponseType | undefined;
1013
1097
  response_mode?: AuthorizationResponseMode | undefined;
1014
1098
  scope?: string | undefined;
1015
- authorization_endpoint?: string | undefined;
1016
- private_key?: string | undefined;
1099
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1017
1100
  kid?: string | undefined;
1018
1101
  team_id?: string | undefined;
1102
+ enabled_clients?: string[] | undefined;
1103
+ authorization_endpoint?: string | undefined;
1104
+ private_key?: string | undefined;
1019
1105
  token_endpoint?: string | undefined;
1020
1106
  token_exchange_basic_auth?: boolean | undefined;
1021
1107
  userinfo_endpoint?: string | undefined;
@@ -1126,11 +1212,44 @@ export type Code = z.infer<typeof codeSchema>;
1126
1212
  declare const connectionInsertSchema: z.ZodObject<{
1127
1213
  id: z.ZodOptional<z.ZodString>;
1128
1214
  name: z.ZodString;
1129
- client_id: z.ZodOptional<z.ZodString>;
1130
- client_secret: z.ZodOptional<z.ZodString>;
1215
+ strategy: z.ZodOptional<z.ZodEnum<[
1216
+ "google-oauth2",
1217
+ "facebook",
1218
+ "vipps",
1219
+ "apple",
1220
+ "email"
1221
+ ]>>;
1222
+ options: z.ZodObject<{
1223
+ kid: z.ZodOptional<z.ZodString>;
1224
+ team_id: z.ZodOptional<z.ZodString>;
1225
+ realms: z.ZodOptional<z.ZodString>;
1226
+ client_id: z.ZodOptional<z.ZodString>;
1227
+ client_secret: z.ZodOptional<z.ZodString>;
1228
+ app_secret: z.ZodOptional<z.ZodString>;
1229
+ scope: z.ZodOptional<z.ZodString>;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ client_secret?: string | undefined;
1232
+ client_id?: string | undefined;
1233
+ scope?: string | undefined;
1234
+ kid?: string | undefined;
1235
+ team_id?: string | undefined;
1236
+ realms?: string | undefined;
1237
+ app_secret?: string | undefined;
1238
+ }, {
1239
+ client_secret?: string | undefined;
1240
+ client_id?: string | undefined;
1241
+ scope?: string | undefined;
1242
+ kid?: string | undefined;
1243
+ team_id?: string | undefined;
1244
+ realms?: string | undefined;
1245
+ app_secret?: string | undefined;
1246
+ }>;
1247
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1131
1248
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1132
1249
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1133
1250
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1251
+ client_id: z.ZodOptional<z.ZodString>;
1252
+ client_secret: z.ZodOptional<z.ZodString>;
1134
1253
  private_key: z.ZodOptional<z.ZodString>;
1135
1254
  kid: z.ZodOptional<z.ZodString>;
1136
1255
  team_id: z.ZodOptional<z.ZodString>;
@@ -1139,6 +1258,15 @@ declare const connectionInsertSchema: z.ZodObject<{
1139
1258
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1140
1259
  scope: z.ZodOptional<z.ZodString>;
1141
1260
  }, "strip", z.ZodTypeAny, {
1261
+ options: {
1262
+ client_secret?: string | undefined;
1263
+ client_id?: string | undefined;
1264
+ scope?: string | undefined;
1265
+ kid?: string | undefined;
1266
+ team_id?: string | undefined;
1267
+ realms?: string | undefined;
1268
+ app_secret?: string | undefined;
1269
+ };
1142
1270
  name: string;
1143
1271
  id?: string | undefined;
1144
1272
  client_secret?: string | undefined;
@@ -1146,14 +1274,25 @@ declare const connectionInsertSchema: z.ZodObject<{
1146
1274
  response_type?: AuthorizationResponseType | undefined;
1147
1275
  response_mode?: AuthorizationResponseMode | undefined;
1148
1276
  scope?: string | undefined;
1149
- authorization_endpoint?: string | undefined;
1150
- private_key?: string | undefined;
1277
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1151
1278
  kid?: string | undefined;
1152
1279
  team_id?: string | undefined;
1280
+ enabled_clients?: string[] | undefined;
1281
+ authorization_endpoint?: string | undefined;
1282
+ private_key?: string | undefined;
1153
1283
  token_endpoint?: string | undefined;
1154
1284
  token_exchange_basic_auth?: boolean | undefined;
1155
1285
  userinfo_endpoint?: string | undefined;
1156
1286
  }, {
1287
+ options: {
1288
+ client_secret?: string | undefined;
1289
+ client_id?: string | undefined;
1290
+ scope?: string | undefined;
1291
+ kid?: string | undefined;
1292
+ team_id?: string | undefined;
1293
+ realms?: string | undefined;
1294
+ app_secret?: string | undefined;
1295
+ };
1157
1296
  name: string;
1158
1297
  id?: string | undefined;
1159
1298
  client_secret?: string | undefined;
@@ -1161,10 +1300,12 @@ declare const connectionInsertSchema: z.ZodObject<{
1161
1300
  response_type?: AuthorizationResponseType | undefined;
1162
1301
  response_mode?: AuthorizationResponseMode | undefined;
1163
1302
  scope?: string | undefined;
1164
- authorization_endpoint?: string | undefined;
1165
- private_key?: string | undefined;
1303
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1166
1304
  kid?: string | undefined;
1167
1305
  team_id?: string | undefined;
1306
+ enabled_clients?: string[] | undefined;
1307
+ authorization_endpoint?: string | undefined;
1308
+ private_key?: string | undefined;
1168
1309
  token_endpoint?: string | undefined;
1169
1310
  token_exchange_basic_auth?: boolean | undefined;
1170
1311
  userinfo_endpoint?: string | undefined;
@@ -1177,11 +1318,44 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1177
1318
  }, {
1178
1319
  id: z.ZodOptional<z.ZodString>;
1179
1320
  name: z.ZodString;
1180
- client_id: z.ZodOptional<z.ZodString>;
1181
- client_secret: z.ZodOptional<z.ZodString>;
1321
+ strategy: z.ZodOptional<z.ZodEnum<[
1322
+ "google-oauth2",
1323
+ "facebook",
1324
+ "vipps",
1325
+ "apple",
1326
+ "email"
1327
+ ]>>;
1328
+ options: z.ZodObject<{
1329
+ kid: z.ZodOptional<z.ZodString>;
1330
+ team_id: z.ZodOptional<z.ZodString>;
1331
+ realms: z.ZodOptional<z.ZodString>;
1332
+ client_id: z.ZodOptional<z.ZodString>;
1333
+ client_secret: z.ZodOptional<z.ZodString>;
1334
+ app_secret: z.ZodOptional<z.ZodString>;
1335
+ scope: z.ZodOptional<z.ZodString>;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ client_secret?: string | undefined;
1338
+ client_id?: string | undefined;
1339
+ scope?: string | undefined;
1340
+ kid?: string | undefined;
1341
+ team_id?: string | undefined;
1342
+ realms?: string | undefined;
1343
+ app_secret?: string | undefined;
1344
+ }, {
1345
+ client_secret?: string | undefined;
1346
+ client_id?: string | undefined;
1347
+ scope?: string | undefined;
1348
+ kid?: string | undefined;
1349
+ team_id?: string | undefined;
1350
+ realms?: string | undefined;
1351
+ app_secret?: string | undefined;
1352
+ }>;
1353
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
1354
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1183
1355
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1184
1356
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1357
+ client_id: z.ZodOptional<z.ZodString>;
1358
+ client_secret: z.ZodOptional<z.ZodString>;
1185
1359
  private_key: z.ZodOptional<z.ZodString>;
1186
1360
  kid: z.ZodOptional<z.ZodString>;
1187
1361
  team_id: z.ZodOptional<z.ZodString>;
@@ -1190,6 +1364,15 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1190
1364
  userinfo_endpoint: z.ZodOptional<z.ZodString>;
1191
1365
  scope: z.ZodOptional<z.ZodString>;
1192
1366
  }>, "strip", z.ZodTypeAny, {
1367
+ options: {
1368
+ client_secret?: string | undefined;
1369
+ client_id?: string | undefined;
1370
+ scope?: string | undefined;
1371
+ kid?: string | undefined;
1372
+ team_id?: string | undefined;
1373
+ realms?: string | undefined;
1374
+ app_secret?: string | undefined;
1375
+ };
1193
1376
  created_at: string;
1194
1377
  updated_at: string;
1195
1378
  name: string;
@@ -1199,14 +1382,25 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1199
1382
  response_type?: AuthorizationResponseType | undefined;
1200
1383
  response_mode?: AuthorizationResponseMode | undefined;
1201
1384
  scope?: string | undefined;
1202
- authorization_endpoint?: string | undefined;
1203
- private_key?: string | undefined;
1385
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1204
1386
  kid?: string | undefined;
1205
1387
  team_id?: string | undefined;
1388
+ enabled_clients?: string[] | undefined;
1389
+ authorization_endpoint?: string | undefined;
1390
+ private_key?: string | undefined;
1206
1391
  token_endpoint?: string | undefined;
1207
1392
  token_exchange_basic_auth?: boolean | undefined;
1208
1393
  userinfo_endpoint?: string | undefined;
1209
1394
  }, {
1395
+ options: {
1396
+ client_secret?: string | undefined;
1397
+ client_id?: string | undefined;
1398
+ scope?: string | undefined;
1399
+ kid?: string | undefined;
1400
+ team_id?: string | undefined;
1401
+ realms?: string | undefined;
1402
+ app_secret?: string | undefined;
1403
+ };
1210
1404
  created_at: string;
1211
1405
  updated_at: string;
1212
1406
  name: string;
@@ -1216,10 +1410,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1216
1410
  response_type?: AuthorizationResponseType | undefined;
1217
1411
  response_mode?: AuthorizationResponseMode | undefined;
1218
1412
  scope?: string | undefined;
1219
- authorization_endpoint?: string | undefined;
1220
- private_key?: string | undefined;
1413
+ strategy?: "email" | "google-oauth2" | "facebook" | "vipps" | "apple" | undefined;
1221
1414
  kid?: string | undefined;
1222
1415
  team_id?: string | undefined;
1416
+ enabled_clients?: string[] | undefined;
1417
+ authorization_endpoint?: string | undefined;
1418
+ private_key?: string | undefined;
1223
1419
  token_endpoint?: string | undefined;
1224
1420
  token_exchange_basic_auth?: boolean | undefined;
1225
1421
  userinfo_endpoint?: string | undefined;
@@ -1607,13 +1803,13 @@ declare const logSchema: z.ZodObject<{
1607
1803
  audience?: string | undefined;
1608
1804
  client_id?: string | undefined;
1609
1805
  scope?: string[] | undefined;
1806
+ strategy?: string | undefined;
1610
1807
  connection_id?: string | undefined;
1611
1808
  log_id?: string | undefined;
1612
1809
  _id?: string | undefined;
1613
1810
  details?: any;
1614
1811
  user_name?: string | undefined;
1615
1812
  client_name?: string | undefined;
1616
- strategy?: string | undefined;
1617
1813
  strategy_type?: string | undefined;
1618
1814
  hostname?: string | undefined;
1619
1815
  auth0_client?: {
@@ -1635,13 +1831,13 @@ declare const logSchema: z.ZodObject<{
1635
1831
  audience?: string | undefined;
1636
1832
  client_id?: string | undefined;
1637
1833
  scope?: string[] | undefined;
1834
+ strategy?: string | undefined;
1638
1835
  connection_id?: string | undefined;
1639
1836
  log_id?: string | undefined;
1640
1837
  _id?: string | undefined;
1641
1838
  details?: any;
1642
1839
  user_name?: string | undefined;
1643
1840
  client_name?: string | undefined;
1644
- strategy?: string | undefined;
1645
1841
  strategy_type?: string | undefined;
1646
1842
  hostname?: string | undefined;
1647
1843
  auth0_client?: {
@@ -2635,6 +2831,26 @@ declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
2635
2831
  themeId: string;
2636
2832
  }>;
2637
2833
  export type Theme = z.infer<typeof themeSchema>;
2834
+ declare const promptSettingSchema: z.ZodObject<{
2835
+ universal_login_experience: z.ZodDefault<z.ZodEnum<[
2836
+ "new",
2837
+ "classic"
2838
+ ]>>;
2839
+ identifier_first: z.ZodDefault<z.ZodBoolean>;
2840
+ password_first: z.ZodDefault<z.ZodBoolean>;
2841
+ webauthn_platform_first_factor: z.ZodBoolean;
2842
+ }, "strip", z.ZodTypeAny, {
2843
+ universal_login_experience: "new" | "classic";
2844
+ identifier_first: boolean;
2845
+ password_first: boolean;
2846
+ webauthn_platform_first_factor: boolean;
2847
+ }, {
2848
+ webauthn_platform_first_factor: boolean;
2849
+ universal_login_experience?: "new" | "classic" | undefined;
2850
+ identifier_first?: boolean | undefined;
2851
+ password_first?: boolean | undefined;
2852
+ }>;
2853
+ export type PromptSetting = z.infer<typeof promptSettingSchema>;
2638
2854
  export interface Ticket {
2639
2855
  id: string;
2640
2856
  tenant_id: string;
@@ -2790,6 +3006,10 @@ export interface LoginsAdapter {
2790
3006
  get: (tenant_id: string, login_id: string) => Promise<Login | null>;
2791
3007
  remove: (tenant_id: string, login_id: string) => Promise<boolean>;
2792
3008
  }
3009
+ export interface PromptSettingsAdapter {
3010
+ set: (tenant_id: string, promptSetting: PromptSetting) => Promise<void>;
3011
+ get: (tenant_id: string) => Promise<PromptSetting>;
3012
+ }
2793
3013
  export interface DataAdapters {
2794
3014
  applications: ApplicationsAdapter;
2795
3015
  branding: BrandingAdapter;
@@ -2802,6 +3022,7 @@ export interface DataAdapters {
2802
3022
  logins: LoginsAdapter;
2803
3023
  logs: LogsDataAdapter;
2804
3024
  passwords: PasswordsAdapter;
3025
+ promptSettings: PromptSettingsAdapter;
2805
3026
  sessions: SessionsAdapter;
2806
3027
  tenants: TenantsDataAdapter;
2807
3028
  themes: ThemesAdapter;
@@ -2880,6 +3101,16 @@ declare const sqlLoginSchema: z.ZodObject<z.objectUtil.extendShape<any, {
2880
3101
  tenant_id?: unknown;
2881
3102
  }>;
2882
3103
  export type SqlLogin = z.infer<typeof sqlLoginSchema>;
3104
+ declare const sqlConnectionSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3105
+ tenant_id: z.ZodString;
3106
+ }>, "strip", z.ZodTypeAny, {
3107
+ [x: string]: any;
3108
+ tenant_id?: unknown;
3109
+ }, {
3110
+ [x: string]: any;
3111
+ tenant_id?: unknown;
3112
+ }>;
3113
+ export type SqlConnection = z.infer<typeof sqlConnectionSchema>;
2883
3114
  declare const sqlApplicationSchema: z.ZodObject<{
2884
3115
  tenant_id: z.ZodString;
2885
3116
  addons: z.ZodString;
@@ -2890,6 +3121,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
2890
3121
  allowed_logout_urls: z.ZodString;
2891
3122
  id: z.ZodString;
2892
3123
  name: z.ZodString;
3124
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
2893
3125
  email_validation: z.ZodDefault<z.ZodEnum<[
2894
3126
  "enabled",
2895
3127
  "disabled",
@@ -2908,6 +3140,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
2908
3140
  allowed_logout_urls: string;
2909
3141
  id: string;
2910
3142
  name: string;
3143
+ allowed_clients: string[];
2911
3144
  email_validation: "enabled" | "disabled" | "enforced";
2912
3145
  client_secret: string;
2913
3146
  created_at: string;
@@ -2922,6 +3155,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
2922
3155
  allowed_logout_urls: string;
2923
3156
  id: string;
2924
3157
  name: string;
3158
+ allowed_clients: string[];
2925
3159
  created_at: string;
2926
3160
  updated_at: string;
2927
3161
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
@@ -2933,9 +3167,7 @@ export interface Database {
2933
3167
  codes: Code & {
2934
3168
  tenant_id: string;
2935
3169
  };
2936
- connections: Connection & {
2937
- tenant_id: string;
2938
- };
3170
+ connections: SqlConnection;
2939
3171
  domains: Domain & {
2940
3172
  tenant_id: string;
2941
3173
  };
@@ -2950,6 +3182,9 @@ export interface Database {
2950
3182
  passwords: Password & {
2951
3183
  tenant_id: string;
2952
3184
  };
3185
+ promptSettings: PromptSetting & {
3186
+ tenant_id: string;
3187
+ };
2953
3188
  users: SqlUser;
2954
3189
  sessions: Session & {
2955
3190
  tenant_id: string;