@authhero/adapter-interfaces 0.14.0 → 0.15.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.
|
@@ -609,6 +609,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
609
609
|
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
610
610
|
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
611
611
|
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
612
|
+
allowed_clients: z.ZodArray<z.ZodString, "many">;
|
|
612
613
|
addons: z.ZodOptional<z.ZodObject<{
|
|
613
614
|
samlp: z.ZodOptional<z.ZodObject<{
|
|
614
615
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -715,6 +716,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
715
716
|
allowed_origins: string[];
|
|
716
717
|
web_origins: string[];
|
|
717
718
|
allowed_logout_urls: string[];
|
|
719
|
+
allowed_clients: string[];
|
|
718
720
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
719
721
|
client_secret: string;
|
|
720
722
|
disable_sign_ups: boolean;
|
|
@@ -745,6 +747,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
745
747
|
allowed_origins: string[];
|
|
746
748
|
web_origins: string[];
|
|
747
749
|
allowed_logout_urls: string[];
|
|
750
|
+
allowed_clients: string[];
|
|
748
751
|
addons?: {
|
|
749
752
|
samlp?: {
|
|
750
753
|
audience?: string | undefined;
|
|
@@ -777,6 +780,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
777
780
|
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
778
781
|
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
779
782
|
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
783
|
+
allowed_clients: z.ZodArray<z.ZodString, "many">;
|
|
780
784
|
addons: z.ZodOptional<z.ZodObject<{
|
|
781
785
|
samlp: z.ZodOptional<z.ZodObject<{
|
|
782
786
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -887,6 +891,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
887
891
|
allowed_origins: string[];
|
|
888
892
|
web_origins: string[];
|
|
889
893
|
allowed_logout_urls: string[];
|
|
894
|
+
allowed_clients: string[];
|
|
890
895
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
891
896
|
client_secret: string;
|
|
892
897
|
disable_sign_ups: boolean;
|
|
@@ -919,6 +924,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
919
924
|
allowed_origins: string[];
|
|
920
925
|
web_origins: string[];
|
|
921
926
|
allowed_logout_urls: string[];
|
|
927
|
+
allowed_clients: string[];
|
|
922
928
|
addons?: {
|
|
923
929
|
samlp?: {
|
|
924
930
|
audience?: string | undefined;
|
|
@@ -1148,11 +1154,48 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1148
1154
|
}, {
|
|
1149
1155
|
id: z.ZodOptional<z.ZodString>;
|
|
1150
1156
|
name: z.ZodString;
|
|
1151
|
-
|
|
1152
|
-
|
|
1157
|
+
strategy: z.ZodOptional<z.ZodEnum<[
|
|
1158
|
+
"google-oauth2",
|
|
1159
|
+
"facebook",
|
|
1160
|
+
"vipps",
|
|
1161
|
+
"apple",
|
|
1162
|
+
"email",
|
|
1163
|
+
"Username-Password-Authentication",
|
|
1164
|
+
"oidc",
|
|
1165
|
+
"oauth2",
|
|
1166
|
+
"custom"
|
|
1167
|
+
]>>;
|
|
1168
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1169
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
realms: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
app_secret: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
}, "strip", z.ZodTypeAny, {
|
|
1177
|
+
client_secret?: string | undefined;
|
|
1178
|
+
client_id?: string | undefined;
|
|
1179
|
+
scope?: string | undefined;
|
|
1180
|
+
kid?: string | undefined;
|
|
1181
|
+
team_id?: string | undefined;
|
|
1182
|
+
realms?: string | undefined;
|
|
1183
|
+
app_secret?: string | undefined;
|
|
1184
|
+
}, {
|
|
1185
|
+
client_secret?: string | undefined;
|
|
1186
|
+
client_id?: string | undefined;
|
|
1187
|
+
scope?: string | undefined;
|
|
1188
|
+
kid?: string | undefined;
|
|
1189
|
+
team_id?: string | undefined;
|
|
1190
|
+
realms?: string | undefined;
|
|
1191
|
+
app_secret?: string | undefined;
|
|
1192
|
+
}>>;
|
|
1193
|
+
enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1153
1194
|
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1154
1195
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1155
1196
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1197
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1156
1199
|
private_key: z.ZodOptional<z.ZodString>;
|
|
1157
1200
|
kid: z.ZodOptional<z.ZodString>;
|
|
1158
1201
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1164,16 +1207,27 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1164
1207
|
created_at: string;
|
|
1165
1208
|
updated_at: string;
|
|
1166
1209
|
name: string;
|
|
1210
|
+
options?: {
|
|
1211
|
+
client_secret?: string | undefined;
|
|
1212
|
+
client_id?: string | undefined;
|
|
1213
|
+
scope?: string | undefined;
|
|
1214
|
+
kid?: string | undefined;
|
|
1215
|
+
team_id?: string | undefined;
|
|
1216
|
+
realms?: string | undefined;
|
|
1217
|
+
app_secret?: string | undefined;
|
|
1218
|
+
} | undefined;
|
|
1167
1219
|
id?: string | undefined;
|
|
1168
1220
|
client_secret?: string | undefined;
|
|
1169
1221
|
client_id?: string | undefined;
|
|
1170
1222
|
response_type?: AuthorizationResponseType | undefined;
|
|
1171
1223
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1172
1224
|
scope?: string | undefined;
|
|
1173
|
-
|
|
1174
|
-
private_key?: string | undefined;
|
|
1225
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1175
1226
|
kid?: string | undefined;
|
|
1176
1227
|
team_id?: string | undefined;
|
|
1228
|
+
enabled_clients?: string[] | undefined;
|
|
1229
|
+
authorization_endpoint?: string | undefined;
|
|
1230
|
+
private_key?: string | undefined;
|
|
1177
1231
|
token_endpoint?: string | undefined;
|
|
1178
1232
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1179
1233
|
userinfo_endpoint?: string | undefined;
|
|
@@ -1181,16 +1235,27 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1181
1235
|
created_at: string;
|
|
1182
1236
|
updated_at: string;
|
|
1183
1237
|
name: string;
|
|
1238
|
+
options?: {
|
|
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
|
+
} | undefined;
|
|
1184
1247
|
id?: string | undefined;
|
|
1185
1248
|
client_secret?: string | undefined;
|
|
1186
1249
|
client_id?: string | undefined;
|
|
1187
1250
|
response_type?: AuthorizationResponseType | undefined;
|
|
1188
1251
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1189
1252
|
scope?: string | undefined;
|
|
1190
|
-
|
|
1191
|
-
private_key?: string | undefined;
|
|
1253
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1192
1254
|
kid?: string | undefined;
|
|
1193
1255
|
team_id?: string | undefined;
|
|
1256
|
+
enabled_clients?: string[] | undefined;
|
|
1257
|
+
authorization_endpoint?: string | undefined;
|
|
1258
|
+
private_key?: string | undefined;
|
|
1194
1259
|
token_endpoint?: string | undefined;
|
|
1195
1260
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1196
1261
|
userinfo_endpoint?: string | undefined;
|
|
@@ -1201,6 +1266,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1201
1266
|
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
1202
1267
|
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
1203
1268
|
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
1269
|
+
allowed_clients: z.ZodArray<z.ZodString, "many">;
|
|
1204
1270
|
addons: z.ZodOptional<z.ZodObject<{
|
|
1205
1271
|
samlp: z.ZodOptional<z.ZodObject<{
|
|
1206
1272
|
audience: z.ZodOptional<z.ZodString>;
|
|
@@ -1311,6 +1377,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1311
1377
|
allowed_origins: string[];
|
|
1312
1378
|
web_origins: string[];
|
|
1313
1379
|
allowed_logout_urls: string[];
|
|
1380
|
+
allowed_clients: string[];
|
|
1314
1381
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
1315
1382
|
client_secret: string;
|
|
1316
1383
|
disable_sign_ups: boolean;
|
|
@@ -1339,16 +1406,27 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1339
1406
|
created_at: string;
|
|
1340
1407
|
updated_at: string;
|
|
1341
1408
|
name: string;
|
|
1409
|
+
options?: {
|
|
1410
|
+
client_secret?: string | undefined;
|
|
1411
|
+
client_id?: string | undefined;
|
|
1412
|
+
scope?: string | undefined;
|
|
1413
|
+
kid?: string | undefined;
|
|
1414
|
+
team_id?: string | undefined;
|
|
1415
|
+
realms?: string | undefined;
|
|
1416
|
+
app_secret?: string | undefined;
|
|
1417
|
+
} | undefined;
|
|
1342
1418
|
id?: string | undefined;
|
|
1343
1419
|
client_secret?: string | undefined;
|
|
1344
1420
|
client_id?: string | undefined;
|
|
1345
1421
|
response_type?: AuthorizationResponseType | undefined;
|
|
1346
1422
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1347
1423
|
scope?: string | undefined;
|
|
1348
|
-
|
|
1349
|
-
private_key?: string | undefined;
|
|
1424
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1350
1425
|
kid?: string | undefined;
|
|
1351
1426
|
team_id?: string | undefined;
|
|
1427
|
+
enabled_clients?: string[] | undefined;
|
|
1428
|
+
authorization_endpoint?: string | undefined;
|
|
1429
|
+
private_key?: string | undefined;
|
|
1352
1430
|
token_endpoint?: string | undefined;
|
|
1353
1431
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1354
1432
|
userinfo_endpoint?: string | undefined;
|
|
@@ -1382,6 +1460,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1382
1460
|
allowed_origins: string[];
|
|
1383
1461
|
web_origins: string[];
|
|
1384
1462
|
allowed_logout_urls: string[];
|
|
1463
|
+
allowed_clients: string[];
|
|
1385
1464
|
domains: {
|
|
1386
1465
|
domain: string;
|
|
1387
1466
|
dkim_private_key?: string | undefined;
|
|
@@ -1407,16 +1486,27 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1407
1486
|
created_at: string;
|
|
1408
1487
|
updated_at: string;
|
|
1409
1488
|
name: string;
|
|
1489
|
+
options?: {
|
|
1490
|
+
client_secret?: string | undefined;
|
|
1491
|
+
client_id?: string | undefined;
|
|
1492
|
+
scope?: string | undefined;
|
|
1493
|
+
kid?: string | undefined;
|
|
1494
|
+
team_id?: string | undefined;
|
|
1495
|
+
realms?: string | undefined;
|
|
1496
|
+
app_secret?: string | undefined;
|
|
1497
|
+
} | undefined;
|
|
1410
1498
|
id?: string | undefined;
|
|
1411
1499
|
client_secret?: string | undefined;
|
|
1412
1500
|
client_id?: string | undefined;
|
|
1413
1501
|
response_type?: AuthorizationResponseType | undefined;
|
|
1414
1502
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1415
1503
|
scope?: string | undefined;
|
|
1416
|
-
|
|
1417
|
-
private_key?: string | undefined;
|
|
1504
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1418
1505
|
kid?: string | undefined;
|
|
1419
1506
|
team_id?: string | undefined;
|
|
1507
|
+
enabled_clients?: string[] | undefined;
|
|
1508
|
+
authorization_endpoint?: string | undefined;
|
|
1509
|
+
private_key?: string | undefined;
|
|
1420
1510
|
token_endpoint?: string | undefined;
|
|
1421
1511
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1422
1512
|
userinfo_endpoint?: string | undefined;
|
|
@@ -1527,11 +1617,48 @@ export type Code = z.infer<typeof codeSchema>;
|
|
|
1527
1617
|
export declare const connectionInsertSchema: z.ZodObject<{
|
|
1528
1618
|
id: z.ZodOptional<z.ZodString>;
|
|
1529
1619
|
name: z.ZodString;
|
|
1530
|
-
|
|
1531
|
-
|
|
1620
|
+
strategy: z.ZodOptional<z.ZodEnum<[
|
|
1621
|
+
"google-oauth2",
|
|
1622
|
+
"facebook",
|
|
1623
|
+
"vipps",
|
|
1624
|
+
"apple",
|
|
1625
|
+
"email",
|
|
1626
|
+
"Username-Password-Authentication",
|
|
1627
|
+
"oidc",
|
|
1628
|
+
"oauth2",
|
|
1629
|
+
"custom"
|
|
1630
|
+
]>>;
|
|
1631
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1632
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
1633
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
1634
|
+
realms: z.ZodOptional<z.ZodString>;
|
|
1635
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1637
|
+
app_secret: z.ZodOptional<z.ZodString>;
|
|
1638
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1639
|
+
}, "strip", z.ZodTypeAny, {
|
|
1640
|
+
client_secret?: string | undefined;
|
|
1641
|
+
client_id?: string | undefined;
|
|
1642
|
+
scope?: string | undefined;
|
|
1643
|
+
kid?: string | undefined;
|
|
1644
|
+
team_id?: string | undefined;
|
|
1645
|
+
realms?: string | undefined;
|
|
1646
|
+
app_secret?: string | undefined;
|
|
1647
|
+
}, {
|
|
1648
|
+
client_secret?: string | undefined;
|
|
1649
|
+
client_id?: string | undefined;
|
|
1650
|
+
scope?: string | undefined;
|
|
1651
|
+
kid?: string | undefined;
|
|
1652
|
+
team_id?: string | undefined;
|
|
1653
|
+
realms?: string | undefined;
|
|
1654
|
+
app_secret?: string | undefined;
|
|
1655
|
+
}>>;
|
|
1656
|
+
enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1532
1657
|
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1533
1658
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1534
1659
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1660
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1661
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1535
1662
|
private_key: z.ZodOptional<z.ZodString>;
|
|
1536
1663
|
kid: z.ZodOptional<z.ZodString>;
|
|
1537
1664
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1541,31 +1668,53 @@ export declare const connectionInsertSchema: z.ZodObject<{
|
|
|
1541
1668
|
scope: z.ZodOptional<z.ZodString>;
|
|
1542
1669
|
}, "strip", z.ZodTypeAny, {
|
|
1543
1670
|
name: string;
|
|
1671
|
+
options?: {
|
|
1672
|
+
client_secret?: string | undefined;
|
|
1673
|
+
client_id?: string | undefined;
|
|
1674
|
+
scope?: string | undefined;
|
|
1675
|
+
kid?: string | undefined;
|
|
1676
|
+
team_id?: string | undefined;
|
|
1677
|
+
realms?: string | undefined;
|
|
1678
|
+
app_secret?: string | undefined;
|
|
1679
|
+
} | undefined;
|
|
1544
1680
|
id?: string | undefined;
|
|
1545
1681
|
client_secret?: string | undefined;
|
|
1546
1682
|
client_id?: string | undefined;
|
|
1547
1683
|
response_type?: AuthorizationResponseType | undefined;
|
|
1548
1684
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1549
1685
|
scope?: string | undefined;
|
|
1550
|
-
|
|
1551
|
-
private_key?: string | undefined;
|
|
1686
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1552
1687
|
kid?: string | undefined;
|
|
1553
1688
|
team_id?: string | undefined;
|
|
1689
|
+
enabled_clients?: string[] | undefined;
|
|
1690
|
+
authorization_endpoint?: string | undefined;
|
|
1691
|
+
private_key?: string | undefined;
|
|
1554
1692
|
token_endpoint?: string | undefined;
|
|
1555
1693
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1556
1694
|
userinfo_endpoint?: string | undefined;
|
|
1557
1695
|
}, {
|
|
1558
1696
|
name: string;
|
|
1697
|
+
options?: {
|
|
1698
|
+
client_secret?: string | undefined;
|
|
1699
|
+
client_id?: string | undefined;
|
|
1700
|
+
scope?: string | undefined;
|
|
1701
|
+
kid?: string | undefined;
|
|
1702
|
+
team_id?: string | undefined;
|
|
1703
|
+
realms?: string | undefined;
|
|
1704
|
+
app_secret?: string | undefined;
|
|
1705
|
+
} | undefined;
|
|
1559
1706
|
id?: string | undefined;
|
|
1560
1707
|
client_secret?: string | undefined;
|
|
1561
1708
|
client_id?: string | undefined;
|
|
1562
1709
|
response_type?: AuthorizationResponseType | undefined;
|
|
1563
1710
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1564
1711
|
scope?: string | undefined;
|
|
1565
|
-
|
|
1566
|
-
private_key?: string | undefined;
|
|
1712
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1567
1713
|
kid?: string | undefined;
|
|
1568
1714
|
team_id?: string | undefined;
|
|
1715
|
+
enabled_clients?: string[] | undefined;
|
|
1716
|
+
authorization_endpoint?: string | undefined;
|
|
1717
|
+
private_key?: string | undefined;
|
|
1569
1718
|
token_endpoint?: string | undefined;
|
|
1570
1719
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1571
1720
|
userinfo_endpoint?: string | undefined;
|
|
@@ -1578,11 +1727,48 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1578
1727
|
}, {
|
|
1579
1728
|
id: z.ZodOptional<z.ZodString>;
|
|
1580
1729
|
name: z.ZodString;
|
|
1581
|
-
|
|
1582
|
-
|
|
1730
|
+
strategy: z.ZodOptional<z.ZodEnum<[
|
|
1731
|
+
"google-oauth2",
|
|
1732
|
+
"facebook",
|
|
1733
|
+
"vipps",
|
|
1734
|
+
"apple",
|
|
1735
|
+
"email",
|
|
1736
|
+
"Username-Password-Authentication",
|
|
1737
|
+
"oidc",
|
|
1738
|
+
"oauth2",
|
|
1739
|
+
"custom"
|
|
1740
|
+
]>>;
|
|
1741
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1742
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
realms: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1747
|
+
app_secret: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
}, "strip", z.ZodTypeAny, {
|
|
1750
|
+
client_secret?: string | undefined;
|
|
1751
|
+
client_id?: string | undefined;
|
|
1752
|
+
scope?: string | undefined;
|
|
1753
|
+
kid?: string | undefined;
|
|
1754
|
+
team_id?: string | undefined;
|
|
1755
|
+
realms?: string | undefined;
|
|
1756
|
+
app_secret?: string | undefined;
|
|
1757
|
+
}, {
|
|
1758
|
+
client_secret?: string | undefined;
|
|
1759
|
+
client_id?: string | undefined;
|
|
1760
|
+
scope?: string | undefined;
|
|
1761
|
+
kid?: string | undefined;
|
|
1762
|
+
team_id?: string | undefined;
|
|
1763
|
+
realms?: string | undefined;
|
|
1764
|
+
app_secret?: string | undefined;
|
|
1765
|
+
}>>;
|
|
1766
|
+
enabled_clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1583
1767
|
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
1584
1768
|
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
1585
1769
|
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
1770
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1771
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
1586
1772
|
private_key: z.ZodOptional<z.ZodString>;
|
|
1587
1773
|
kid: z.ZodOptional<z.ZodString>;
|
|
1588
1774
|
team_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1594,16 +1780,27 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1594
1780
|
created_at: string;
|
|
1595
1781
|
updated_at: string;
|
|
1596
1782
|
name: string;
|
|
1783
|
+
options?: {
|
|
1784
|
+
client_secret?: string | undefined;
|
|
1785
|
+
client_id?: string | undefined;
|
|
1786
|
+
scope?: string | undefined;
|
|
1787
|
+
kid?: string | undefined;
|
|
1788
|
+
team_id?: string | undefined;
|
|
1789
|
+
realms?: string | undefined;
|
|
1790
|
+
app_secret?: string | undefined;
|
|
1791
|
+
} | undefined;
|
|
1597
1792
|
id?: string | undefined;
|
|
1598
1793
|
client_secret?: string | undefined;
|
|
1599
1794
|
client_id?: string | undefined;
|
|
1600
1795
|
response_type?: AuthorizationResponseType | undefined;
|
|
1601
1796
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1602
1797
|
scope?: string | undefined;
|
|
1603
|
-
|
|
1604
|
-
private_key?: string | undefined;
|
|
1798
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1605
1799
|
kid?: string | undefined;
|
|
1606
1800
|
team_id?: string | undefined;
|
|
1801
|
+
enabled_clients?: string[] | undefined;
|
|
1802
|
+
authorization_endpoint?: string | undefined;
|
|
1803
|
+
private_key?: string | undefined;
|
|
1607
1804
|
token_endpoint?: string | undefined;
|
|
1608
1805
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1609
1806
|
userinfo_endpoint?: string | undefined;
|
|
@@ -1611,16 +1808,27 @@ export declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1611
1808
|
created_at: string;
|
|
1612
1809
|
updated_at: string;
|
|
1613
1810
|
name: string;
|
|
1811
|
+
options?: {
|
|
1812
|
+
client_secret?: string | undefined;
|
|
1813
|
+
client_id?: string | undefined;
|
|
1814
|
+
scope?: string | undefined;
|
|
1815
|
+
kid?: string | undefined;
|
|
1816
|
+
team_id?: string | undefined;
|
|
1817
|
+
realms?: string | undefined;
|
|
1818
|
+
app_secret?: string | undefined;
|
|
1819
|
+
} | undefined;
|
|
1614
1820
|
id?: string | undefined;
|
|
1615
1821
|
client_secret?: string | undefined;
|
|
1616
1822
|
client_id?: string | undefined;
|
|
1617
1823
|
response_type?: AuthorizationResponseType | undefined;
|
|
1618
1824
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1619
1825
|
scope?: string | undefined;
|
|
1620
|
-
|
|
1621
|
-
private_key?: string | undefined;
|
|
1826
|
+
strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
|
|
1622
1827
|
kid?: string | undefined;
|
|
1623
1828
|
team_id?: string | undefined;
|
|
1829
|
+
enabled_clients?: string[] | undefined;
|
|
1830
|
+
authorization_endpoint?: string | undefined;
|
|
1831
|
+
private_key?: string | undefined;
|
|
1624
1832
|
token_endpoint?: string | undefined;
|
|
1625
1833
|
token_exchange_basic_auth?: boolean | undefined;
|
|
1626
1834
|
userinfo_endpoint?: string | undefined;
|
|
@@ -2359,13 +2567,13 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2359
2567
|
audience?: string | undefined;
|
|
2360
2568
|
client_id?: string | undefined;
|
|
2361
2569
|
scope?: string[] | undefined;
|
|
2570
|
+
strategy?: string | undefined;
|
|
2362
2571
|
connection_id?: string | undefined;
|
|
2363
2572
|
log_id?: string | undefined;
|
|
2364
2573
|
_id?: string | undefined;
|
|
2365
2574
|
details?: any;
|
|
2366
2575
|
user_name?: string | undefined;
|
|
2367
2576
|
client_name?: string | undefined;
|
|
2368
|
-
strategy?: string | undefined;
|
|
2369
2577
|
strategy_type?: string | undefined;
|
|
2370
2578
|
hostname?: string | undefined;
|
|
2371
2579
|
auth0_client?: {
|
|
@@ -2387,13 +2595,13 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2387
2595
|
audience?: string | undefined;
|
|
2388
2596
|
client_id?: string | undefined;
|
|
2389
2597
|
scope?: string[] | undefined;
|
|
2598
|
+
strategy?: string | undefined;
|
|
2390
2599
|
connection_id?: string | undefined;
|
|
2391
2600
|
log_id?: string | undefined;
|
|
2392
2601
|
_id?: string | undefined;
|
|
2393
2602
|
details?: any;
|
|
2394
2603
|
user_name?: string | undefined;
|
|
2395
2604
|
client_name?: string | undefined;
|
|
2396
|
-
strategy?: string | undefined;
|
|
2397
2605
|
strategy_type?: string | undefined;
|
|
2398
2606
|
hostname?: string | undefined;
|
|
2399
2607
|
auth0_client?: {
|
|
@@ -3891,12 +4099,26 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3891
4099
|
themeId: string;
|
|
3892
4100
|
}>;
|
|
3893
4101
|
export type Theme = z.infer<typeof themeSchema>;
|
|
3894
|
-
export
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
4102
|
+
export declare const promptSettingSchema: z.ZodObject<{
|
|
4103
|
+
universal_login_experience: z.ZodDefault<z.ZodEnum<[
|
|
4104
|
+
"new",
|
|
4105
|
+
"classic"
|
|
4106
|
+
]>>;
|
|
4107
|
+
identifier_first: z.ZodDefault<z.ZodBoolean>;
|
|
4108
|
+
password_first: z.ZodDefault<z.ZodBoolean>;
|
|
4109
|
+
webauthn_platform_first_factor: z.ZodBoolean;
|
|
4110
|
+
}, "strip", z.ZodTypeAny, {
|
|
4111
|
+
universal_login_experience: "new" | "classic";
|
|
4112
|
+
identifier_first: boolean;
|
|
4113
|
+
password_first: boolean;
|
|
4114
|
+
webauthn_platform_first_factor: boolean;
|
|
4115
|
+
}, {
|
|
4116
|
+
webauthn_platform_first_factor: boolean;
|
|
4117
|
+
universal_login_experience?: "new" | "classic" | undefined;
|
|
4118
|
+
identifier_first?: boolean | undefined;
|
|
4119
|
+
password_first?: boolean | undefined;
|
|
4120
|
+
}>;
|
|
4121
|
+
export type PromptSetting = z.infer<typeof promptSettingSchema>;
|
|
3900
4122
|
export interface Ticket {
|
|
3901
4123
|
id: string;
|
|
3902
4124
|
tenant_id: string;
|
|
@@ -4056,6 +4278,10 @@ export interface LoginsAdapter {
|
|
|
4056
4278
|
get: (tenant_id: string, login_id: string) => Promise<Login | null>;
|
|
4057
4279
|
remove: (tenant_id: string, login_id: string) => Promise<boolean>;
|
|
4058
4280
|
}
|
|
4281
|
+
export interface PromptSettingsAdapter {
|
|
4282
|
+
set: (tenant_id: string, promptSetting: PromptSetting) => Promise<void>;
|
|
4283
|
+
get: (tenant_id: string) => Promise<PromptSetting>;
|
|
4284
|
+
}
|
|
4059
4285
|
export interface DataAdapters {
|
|
4060
4286
|
applications: ApplicationsAdapter;
|
|
4061
4287
|
branding: BrandingAdapter;
|
|
@@ -4068,6 +4294,7 @@ export interface DataAdapters {
|
|
|
4068
4294
|
logins: LoginsAdapter;
|
|
4069
4295
|
logs: LogsDataAdapter;
|
|
4070
4296
|
passwords: PasswordsAdapter;
|
|
4297
|
+
promptSettings: PromptSettingsAdapter;
|
|
4071
4298
|
sessions: SessionsAdapter;
|
|
4072
4299
|
tenants: TenantsDataAdapter;
|
|
4073
4300
|
themes: ThemesAdapter;
|