@authhero/kysely-adapter 0.8.1 → 0.9.1

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,48 @@ 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
+ "Username-Password-Authentication",
763
+ "oidc",
764
+ "oauth2",
765
+ "custom"
766
+ ]>>;
767
+ options: z.ZodOptional<z.ZodObject<{
768
+ kid: z.ZodOptional<z.ZodString>;
769
+ team_id: z.ZodOptional<z.ZodString>;
770
+ realms: z.ZodOptional<z.ZodString>;
771
+ client_id: z.ZodOptional<z.ZodString>;
772
+ client_secret: z.ZodOptional<z.ZodString>;
773
+ app_secret: z.ZodOptional<z.ZodString>;
774
+ scope: z.ZodOptional<z.ZodString>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ client_secret?: string | undefined;
777
+ client_id?: string | undefined;
778
+ scope?: string | undefined;
779
+ kid?: string | undefined;
780
+ team_id?: string | undefined;
781
+ realms?: string | undefined;
782
+ app_secret?: string | undefined;
783
+ }, {
784
+ client_secret?: string | undefined;
785
+ client_id?: string | undefined;
786
+ scope?: string | undefined;
787
+ kid?: string | undefined;
788
+ team_id?: string | undefined;
789
+ realms?: string | undefined;
790
+ app_secret?: string | undefined;
791
+ }>>;
792
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
752
793
  authorization_endpoint: z.ZodOptional<z.ZodString>;
753
794
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
754
795
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
796
+ client_id: z.ZodOptional<z.ZodString>;
797
+ client_secret: z.ZodOptional<z.ZodString>;
755
798
  private_key: z.ZodOptional<z.ZodString>;
756
799
  kid: z.ZodOptional<z.ZodString>;
757
800
  team_id: z.ZodOptional<z.ZodString>;
@@ -763,16 +806,27 @@ declare const ClientSchema: z.ZodObject<{
763
806
  created_at: string;
764
807
  updated_at: string;
765
808
  name: string;
809
+ options?: {
810
+ client_secret?: string | undefined;
811
+ client_id?: string | undefined;
812
+ scope?: string | undefined;
813
+ kid?: string | undefined;
814
+ team_id?: string | undefined;
815
+ realms?: string | undefined;
816
+ app_secret?: string | undefined;
817
+ } | undefined;
766
818
  id?: string | undefined;
767
819
  client_secret?: string | undefined;
768
820
  client_id?: string | undefined;
769
821
  response_type?: AuthorizationResponseType | undefined;
770
822
  response_mode?: AuthorizationResponseMode | undefined;
771
823
  scope?: string | undefined;
772
- authorization_endpoint?: string | undefined;
773
- private_key?: string | undefined;
824
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
774
825
  kid?: string | undefined;
775
826
  team_id?: string | undefined;
827
+ enabled_clients?: string[] | undefined;
828
+ authorization_endpoint?: string | undefined;
829
+ private_key?: string | undefined;
776
830
  token_endpoint?: string | undefined;
777
831
  token_exchange_basic_auth?: boolean | undefined;
778
832
  userinfo_endpoint?: string | undefined;
@@ -780,16 +834,27 @@ declare const ClientSchema: z.ZodObject<{
780
834
  created_at: string;
781
835
  updated_at: string;
782
836
  name: string;
837
+ options?: {
838
+ client_secret?: string | undefined;
839
+ client_id?: string | undefined;
840
+ scope?: string | undefined;
841
+ kid?: string | undefined;
842
+ team_id?: string | undefined;
843
+ realms?: string | undefined;
844
+ app_secret?: string | undefined;
845
+ } | undefined;
783
846
  id?: string | undefined;
784
847
  client_secret?: string | undefined;
785
848
  client_id?: string | undefined;
786
849
  response_type?: AuthorizationResponseType | undefined;
787
850
  response_mode?: AuthorizationResponseMode | undefined;
788
851
  scope?: string | undefined;
789
- authorization_endpoint?: string | undefined;
790
- private_key?: string | undefined;
852
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
791
853
  kid?: string | undefined;
792
854
  team_id?: string | undefined;
855
+ enabled_clients?: string[] | undefined;
856
+ authorization_endpoint?: string | undefined;
857
+ private_key?: string | undefined;
793
858
  token_endpoint?: string | undefined;
794
859
  token_exchange_basic_auth?: boolean | undefined;
795
860
  userinfo_endpoint?: string | undefined;
@@ -800,6 +865,7 @@ declare const ClientSchema: z.ZodObject<{
800
865
  allowed_origins: z.ZodArray<z.ZodString, "many">;
801
866
  web_origins: z.ZodArray<z.ZodString, "many">;
802
867
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
868
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
803
869
  addons: z.ZodOptional<z.ZodObject<{
804
870
  samlp: z.ZodOptional<z.ZodObject<{
805
871
  audience: z.ZodOptional<z.ZodString>;
@@ -910,6 +976,7 @@ declare const ClientSchema: z.ZodObject<{
910
976
  allowed_origins: string[];
911
977
  web_origins: string[];
912
978
  allowed_logout_urls: string[];
979
+ allowed_clients: string[];
913
980
  email_validation: "enabled" | "disabled" | "enforced";
914
981
  client_secret: string;
915
982
  disable_sign_ups: boolean;
@@ -938,16 +1005,27 @@ declare const ClientSchema: z.ZodObject<{
938
1005
  created_at: string;
939
1006
  updated_at: string;
940
1007
  name: string;
1008
+ options?: {
1009
+ client_secret?: string | undefined;
1010
+ client_id?: string | undefined;
1011
+ scope?: string | undefined;
1012
+ kid?: string | undefined;
1013
+ team_id?: string | undefined;
1014
+ realms?: string | undefined;
1015
+ app_secret?: string | undefined;
1016
+ } | undefined;
941
1017
  id?: string | undefined;
942
1018
  client_secret?: string | undefined;
943
1019
  client_id?: string | undefined;
944
1020
  response_type?: AuthorizationResponseType | undefined;
945
1021
  response_mode?: AuthorizationResponseMode | undefined;
946
1022
  scope?: string | undefined;
947
- authorization_endpoint?: string | undefined;
948
- private_key?: string | undefined;
1023
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
949
1024
  kid?: string | undefined;
950
1025
  team_id?: string | undefined;
1026
+ enabled_clients?: string[] | undefined;
1027
+ authorization_endpoint?: string | undefined;
1028
+ private_key?: string | undefined;
951
1029
  token_endpoint?: string | undefined;
952
1030
  token_exchange_basic_auth?: boolean | undefined;
953
1031
  userinfo_endpoint?: string | undefined;
@@ -981,6 +1059,7 @@ declare const ClientSchema: z.ZodObject<{
981
1059
  allowed_origins: string[];
982
1060
  web_origins: string[];
983
1061
  allowed_logout_urls: string[];
1062
+ allowed_clients: string[];
984
1063
  domains: {
985
1064
  domain: string;
986
1065
  dkim_private_key?: string | undefined;
@@ -1006,16 +1085,27 @@ declare const ClientSchema: z.ZodObject<{
1006
1085
  created_at: string;
1007
1086
  updated_at: string;
1008
1087
  name: string;
1088
+ options?: {
1089
+ client_secret?: string | undefined;
1090
+ client_id?: string | undefined;
1091
+ scope?: string | undefined;
1092
+ kid?: string | undefined;
1093
+ team_id?: string | undefined;
1094
+ realms?: string | undefined;
1095
+ app_secret?: string | undefined;
1096
+ } | undefined;
1009
1097
  id?: string | undefined;
1010
1098
  client_secret?: string | undefined;
1011
1099
  client_id?: string | undefined;
1012
1100
  response_type?: AuthorizationResponseType | undefined;
1013
1101
  response_mode?: AuthorizationResponseMode | undefined;
1014
1102
  scope?: string | undefined;
1015
- authorization_endpoint?: string | undefined;
1016
- private_key?: string | undefined;
1103
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1017
1104
  kid?: string | undefined;
1018
1105
  team_id?: string | undefined;
1106
+ enabled_clients?: string[] | undefined;
1107
+ authorization_endpoint?: string | undefined;
1108
+ private_key?: string | undefined;
1019
1109
  token_endpoint?: string | undefined;
1020
1110
  token_exchange_basic_auth?: boolean | undefined;
1021
1111
  userinfo_endpoint?: string | undefined;
@@ -1126,11 +1216,48 @@ export type Code = z.infer<typeof codeSchema>;
1126
1216
  declare const connectionInsertSchema: z.ZodObject<{
1127
1217
  id: z.ZodOptional<z.ZodString>;
1128
1218
  name: z.ZodString;
1129
- client_id: z.ZodOptional<z.ZodString>;
1130
- client_secret: z.ZodOptional<z.ZodString>;
1219
+ strategy: z.ZodOptional<z.ZodEnum<[
1220
+ "google-oauth2",
1221
+ "facebook",
1222
+ "vipps",
1223
+ "apple",
1224
+ "email",
1225
+ "Username-Password-Authentication",
1226
+ "oidc",
1227
+ "oauth2",
1228
+ "custom"
1229
+ ]>>;
1230
+ options: z.ZodOptional<z.ZodObject<{
1231
+ kid: z.ZodOptional<z.ZodString>;
1232
+ team_id: z.ZodOptional<z.ZodString>;
1233
+ realms: z.ZodOptional<z.ZodString>;
1234
+ client_id: z.ZodOptional<z.ZodString>;
1235
+ client_secret: z.ZodOptional<z.ZodString>;
1236
+ app_secret: z.ZodOptional<z.ZodString>;
1237
+ scope: z.ZodOptional<z.ZodString>;
1238
+ }, "strip", z.ZodTypeAny, {
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
+ client_secret?: string | undefined;
1248
+ client_id?: string | undefined;
1249
+ scope?: string | undefined;
1250
+ kid?: string | undefined;
1251
+ team_id?: string | undefined;
1252
+ realms?: string | undefined;
1253
+ app_secret?: string | undefined;
1254
+ }>>;
1255
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1131
1256
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1132
1257
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1133
1258
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1259
+ client_id: z.ZodOptional<z.ZodString>;
1260
+ client_secret: z.ZodOptional<z.ZodString>;
1134
1261
  private_key: z.ZodOptional<z.ZodString>;
1135
1262
  kid: z.ZodOptional<z.ZodString>;
1136
1263
  team_id: z.ZodOptional<z.ZodString>;
@@ -1140,31 +1267,53 @@ declare const connectionInsertSchema: z.ZodObject<{
1140
1267
  scope: z.ZodOptional<z.ZodString>;
1141
1268
  }, "strip", z.ZodTypeAny, {
1142
1269
  name: string;
1270
+ options?: {
1271
+ client_secret?: string | undefined;
1272
+ client_id?: string | undefined;
1273
+ scope?: string | undefined;
1274
+ kid?: string | undefined;
1275
+ team_id?: string | undefined;
1276
+ realms?: string | undefined;
1277
+ app_secret?: string | undefined;
1278
+ } | undefined;
1143
1279
  id?: string | undefined;
1144
1280
  client_secret?: string | undefined;
1145
1281
  client_id?: string | undefined;
1146
1282
  response_type?: AuthorizationResponseType | undefined;
1147
1283
  response_mode?: AuthorizationResponseMode | undefined;
1148
1284
  scope?: string | undefined;
1149
- authorization_endpoint?: string | undefined;
1150
- private_key?: string | undefined;
1285
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1151
1286
  kid?: string | undefined;
1152
1287
  team_id?: string | undefined;
1288
+ enabled_clients?: string[] | undefined;
1289
+ authorization_endpoint?: string | undefined;
1290
+ private_key?: string | undefined;
1153
1291
  token_endpoint?: string | undefined;
1154
1292
  token_exchange_basic_auth?: boolean | undefined;
1155
1293
  userinfo_endpoint?: string | undefined;
1156
1294
  }, {
1157
1295
  name: string;
1296
+ options?: {
1297
+ client_secret?: string | undefined;
1298
+ client_id?: string | undefined;
1299
+ scope?: string | undefined;
1300
+ kid?: string | undefined;
1301
+ team_id?: string | undefined;
1302
+ realms?: string | undefined;
1303
+ app_secret?: string | undefined;
1304
+ } | undefined;
1158
1305
  id?: string | undefined;
1159
1306
  client_secret?: string | undefined;
1160
1307
  client_id?: string | undefined;
1161
1308
  response_type?: AuthorizationResponseType | undefined;
1162
1309
  response_mode?: AuthorizationResponseMode | undefined;
1163
1310
  scope?: string | undefined;
1164
- authorization_endpoint?: string | undefined;
1165
- private_key?: string | undefined;
1311
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1166
1312
  kid?: string | undefined;
1167
1313
  team_id?: string | undefined;
1314
+ enabled_clients?: string[] | undefined;
1315
+ authorization_endpoint?: string | undefined;
1316
+ private_key?: string | undefined;
1168
1317
  token_endpoint?: string | undefined;
1169
1318
  token_exchange_basic_auth?: boolean | undefined;
1170
1319
  userinfo_endpoint?: string | undefined;
@@ -1177,11 +1326,48 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1177
1326
  }, {
1178
1327
  id: z.ZodOptional<z.ZodString>;
1179
1328
  name: z.ZodString;
1180
- client_id: z.ZodOptional<z.ZodString>;
1181
- client_secret: z.ZodOptional<z.ZodString>;
1329
+ strategy: z.ZodOptional<z.ZodEnum<[
1330
+ "google-oauth2",
1331
+ "facebook",
1332
+ "vipps",
1333
+ "apple",
1334
+ "email",
1335
+ "Username-Password-Authentication",
1336
+ "oidc",
1337
+ "oauth2",
1338
+ "custom"
1339
+ ]>>;
1340
+ options: z.ZodOptional<z.ZodObject<{
1341
+ kid: z.ZodOptional<z.ZodString>;
1342
+ team_id: z.ZodOptional<z.ZodString>;
1343
+ realms: z.ZodOptional<z.ZodString>;
1344
+ client_id: z.ZodOptional<z.ZodString>;
1345
+ client_secret: z.ZodOptional<z.ZodString>;
1346
+ app_secret: z.ZodOptional<z.ZodString>;
1347
+ scope: z.ZodOptional<z.ZodString>;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ client_secret?: string | undefined;
1350
+ client_id?: string | undefined;
1351
+ scope?: string | undefined;
1352
+ kid?: string | undefined;
1353
+ team_id?: string | undefined;
1354
+ realms?: string | undefined;
1355
+ app_secret?: string | undefined;
1356
+ }, {
1357
+ client_secret?: string | undefined;
1358
+ client_id?: string | undefined;
1359
+ scope?: string | undefined;
1360
+ kid?: string | undefined;
1361
+ team_id?: string | undefined;
1362
+ realms?: string | undefined;
1363
+ app_secret?: string | undefined;
1364
+ }>>;
1365
+ enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
1366
  authorization_endpoint: z.ZodOptional<z.ZodString>;
1183
1367
  response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
1184
1368
  response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
1369
+ client_id: z.ZodOptional<z.ZodString>;
1370
+ client_secret: z.ZodOptional<z.ZodString>;
1185
1371
  private_key: z.ZodOptional<z.ZodString>;
1186
1372
  kid: z.ZodOptional<z.ZodString>;
1187
1373
  team_id: z.ZodOptional<z.ZodString>;
@@ -1193,16 +1379,27 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1193
1379
  created_at: string;
1194
1380
  updated_at: string;
1195
1381
  name: string;
1382
+ options?: {
1383
+ client_secret?: string | undefined;
1384
+ client_id?: string | undefined;
1385
+ scope?: string | undefined;
1386
+ kid?: string | undefined;
1387
+ team_id?: string | undefined;
1388
+ realms?: string | undefined;
1389
+ app_secret?: string | undefined;
1390
+ } | undefined;
1196
1391
  id?: string | undefined;
1197
1392
  client_secret?: string | undefined;
1198
1393
  client_id?: string | undefined;
1199
1394
  response_type?: AuthorizationResponseType | undefined;
1200
1395
  response_mode?: AuthorizationResponseMode | undefined;
1201
1396
  scope?: string | undefined;
1202
- authorization_endpoint?: string | undefined;
1203
- private_key?: string | undefined;
1397
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1204
1398
  kid?: string | undefined;
1205
1399
  team_id?: string | undefined;
1400
+ enabled_clients?: string[] | undefined;
1401
+ authorization_endpoint?: string | undefined;
1402
+ private_key?: string | undefined;
1206
1403
  token_endpoint?: string | undefined;
1207
1404
  token_exchange_basic_auth?: boolean | undefined;
1208
1405
  userinfo_endpoint?: string | undefined;
@@ -1210,16 +1407,27 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1210
1407
  created_at: string;
1211
1408
  updated_at: string;
1212
1409
  name: string;
1410
+ options?: {
1411
+ client_secret?: string | undefined;
1412
+ client_id?: string | undefined;
1413
+ scope?: string | undefined;
1414
+ kid?: string | undefined;
1415
+ team_id?: string | undefined;
1416
+ realms?: string | undefined;
1417
+ app_secret?: string | undefined;
1418
+ } | undefined;
1213
1419
  id?: string | undefined;
1214
1420
  client_secret?: string | undefined;
1215
1421
  client_id?: string | undefined;
1216
1422
  response_type?: AuthorizationResponseType | undefined;
1217
1423
  response_mode?: AuthorizationResponseMode | undefined;
1218
1424
  scope?: string | undefined;
1219
- authorization_endpoint?: string | undefined;
1220
- private_key?: string | undefined;
1425
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1221
1426
  kid?: string | undefined;
1222
1427
  team_id?: string | undefined;
1428
+ enabled_clients?: string[] | undefined;
1429
+ authorization_endpoint?: string | undefined;
1430
+ private_key?: string | undefined;
1223
1431
  token_endpoint?: string | undefined;
1224
1432
  token_exchange_basic_auth?: boolean | undefined;
1225
1433
  userinfo_endpoint?: string | undefined;
@@ -1607,13 +1815,13 @@ declare const logSchema: z.ZodObject<{
1607
1815
  audience?: string | undefined;
1608
1816
  client_id?: string | undefined;
1609
1817
  scope?: string[] | undefined;
1818
+ strategy?: string | undefined;
1610
1819
  connection_id?: string | undefined;
1611
1820
  log_id?: string | undefined;
1612
1821
  _id?: string | undefined;
1613
1822
  details?: any;
1614
1823
  user_name?: string | undefined;
1615
1824
  client_name?: string | undefined;
1616
- strategy?: string | undefined;
1617
1825
  strategy_type?: string | undefined;
1618
1826
  hostname?: string | undefined;
1619
1827
  auth0_client?: {
@@ -1635,13 +1843,13 @@ declare const logSchema: z.ZodObject<{
1635
1843
  audience?: string | undefined;
1636
1844
  client_id?: string | undefined;
1637
1845
  scope?: string[] | undefined;
1846
+ strategy?: string | undefined;
1638
1847
  connection_id?: string | undefined;
1639
1848
  log_id?: string | undefined;
1640
1849
  _id?: string | undefined;
1641
1850
  details?: any;
1642
1851
  user_name?: string | undefined;
1643
1852
  client_name?: string | undefined;
1644
- strategy?: string | undefined;
1645
1853
  strategy_type?: string | undefined;
1646
1854
  hostname?: string | undefined;
1647
1855
  auth0_client?: {
@@ -2635,6 +2843,26 @@ declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
2635
2843
  themeId: string;
2636
2844
  }>;
2637
2845
  export type Theme = z.infer<typeof themeSchema>;
2846
+ declare const promptSettingSchema: z.ZodObject<{
2847
+ universal_login_experience: z.ZodDefault<z.ZodEnum<[
2848
+ "new",
2849
+ "classic"
2850
+ ]>>;
2851
+ identifier_first: z.ZodDefault<z.ZodBoolean>;
2852
+ password_first: z.ZodDefault<z.ZodBoolean>;
2853
+ webauthn_platform_first_factor: z.ZodBoolean;
2854
+ }, "strip", z.ZodTypeAny, {
2855
+ universal_login_experience: "new" | "classic";
2856
+ identifier_first: boolean;
2857
+ password_first: boolean;
2858
+ webauthn_platform_first_factor: boolean;
2859
+ }, {
2860
+ webauthn_platform_first_factor: boolean;
2861
+ universal_login_experience?: "new" | "classic" | undefined;
2862
+ identifier_first?: boolean | undefined;
2863
+ password_first?: boolean | undefined;
2864
+ }>;
2865
+ export type PromptSetting = z.infer<typeof promptSettingSchema>;
2638
2866
  export interface Ticket {
2639
2867
  id: string;
2640
2868
  tenant_id: string;
@@ -2790,6 +3018,10 @@ export interface LoginsAdapter {
2790
3018
  get: (tenant_id: string, login_id: string) => Promise<Login | null>;
2791
3019
  remove: (tenant_id: string, login_id: string) => Promise<boolean>;
2792
3020
  }
3021
+ export interface PromptSettingsAdapter {
3022
+ set: (tenant_id: string, promptSetting: PromptSetting) => Promise<void>;
3023
+ get: (tenant_id: string) => Promise<PromptSetting>;
3024
+ }
2793
3025
  export interface DataAdapters {
2794
3026
  applications: ApplicationsAdapter;
2795
3027
  branding: BrandingAdapter;
@@ -2802,6 +3034,7 @@ export interface DataAdapters {
2802
3034
  logins: LoginsAdapter;
2803
3035
  logs: LogsDataAdapter;
2804
3036
  passwords: PasswordsAdapter;
3037
+ promptSettings: PromptSettingsAdapter;
2805
3038
  sessions: SessionsAdapter;
2806
3039
  tenants: TenantsDataAdapter;
2807
3040
  themes: ThemesAdapter;
@@ -2880,6 +3113,16 @@ declare const sqlLoginSchema: z.ZodObject<z.objectUtil.extendShape<any, {
2880
3113
  tenant_id?: unknown;
2881
3114
  }>;
2882
3115
  export type SqlLogin = z.infer<typeof sqlLoginSchema>;
3116
+ declare const sqlConnectionSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3117
+ tenant_id: z.ZodString;
3118
+ }>, "strip", z.ZodTypeAny, {
3119
+ [x: string]: any;
3120
+ tenant_id?: unknown;
3121
+ }, {
3122
+ [x: string]: any;
3123
+ tenant_id?: unknown;
3124
+ }>;
3125
+ export type SqlConnection = z.infer<typeof sqlConnectionSchema>;
2883
3126
  declare const sqlApplicationSchema: z.ZodObject<{
2884
3127
  tenant_id: z.ZodString;
2885
3128
  addons: z.ZodString;
@@ -2890,6 +3133,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
2890
3133
  allowed_logout_urls: z.ZodString;
2891
3134
  id: z.ZodString;
2892
3135
  name: z.ZodString;
3136
+ allowed_clients: z.ZodArray<z.ZodString, "many">;
2893
3137
  email_validation: z.ZodDefault<z.ZodEnum<[
2894
3138
  "enabled",
2895
3139
  "disabled",
@@ -2908,6 +3152,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
2908
3152
  allowed_logout_urls: string;
2909
3153
  id: string;
2910
3154
  name: string;
3155
+ allowed_clients: string[];
2911
3156
  email_validation: "enabled" | "disabled" | "enforced";
2912
3157
  client_secret: string;
2913
3158
  created_at: string;
@@ -2922,6 +3167,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
2922
3167
  allowed_logout_urls: string;
2923
3168
  id: string;
2924
3169
  name: string;
3170
+ allowed_clients: string[];
2925
3171
  created_at: string;
2926
3172
  updated_at: string;
2927
3173
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
@@ -2933,9 +3179,7 @@ export interface Database {
2933
3179
  codes: Code & {
2934
3180
  tenant_id: string;
2935
3181
  };
2936
- connections: Connection & {
2937
- tenant_id: string;
2938
- };
3182
+ connections: SqlConnection;
2939
3183
  domains: Domain & {
2940
3184
  tenant_id: string;
2941
3185
  };
@@ -2950,6 +3194,9 @@ export interface Database {
2950
3194
  passwords: Password & {
2951
3195
  tenant_id: string;
2952
3196
  };
3197
+ promptSettings: PromptSetting & {
3198
+ tenant_id: string;
3199
+ };
2953
3200
  users: SqlUser;
2954
3201
  sessions: Session & {
2955
3202
  tenant_id: string;