@authhero/adapter-interfaces 0.102.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +207 -58
- package/dist/adapter-interfaces.mjs +63 -54
- package/package.json +1 -1
|
@@ -257,7 +257,7 @@ const O = e.object({
|
|
|
257
257
|
created_at: e.string(),
|
|
258
258
|
updated_at: e.string(),
|
|
259
259
|
...O.shape
|
|
260
|
-
}),
|
|
260
|
+
}), y = e.object({
|
|
261
261
|
client_id: e.string().min(1).openapi({
|
|
262
262
|
description: "ID of the client."
|
|
263
263
|
}),
|
|
@@ -282,14 +282,14 @@ const O = e.object({
|
|
|
282
282
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
283
283
|
description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
|
|
284
284
|
})
|
|
285
|
-
}),
|
|
285
|
+
}), N = e.object({
|
|
286
286
|
id: e.string().openapi({
|
|
287
287
|
description: "ID of the client grant."
|
|
288
288
|
}),
|
|
289
|
-
...
|
|
289
|
+
...y.shape,
|
|
290
290
|
created_at: e.string().optional(),
|
|
291
291
|
updated_at: e.string().optional()
|
|
292
|
-
}), qe = e.array(
|
|
292
|
+
}), qe = e.array(N), a = e.object({
|
|
293
293
|
x: e.number(),
|
|
294
294
|
y: e.number()
|
|
295
295
|
});
|
|
@@ -298,7 +298,7 @@ const r = e.object({
|
|
|
298
298
|
id: e.string(),
|
|
299
299
|
category: e.nativeEnum(p),
|
|
300
300
|
type: e.nativeEnum(c)
|
|
301
|
-
}),
|
|
301
|
+
}), L = r.extend({
|
|
302
302
|
category: e.literal(
|
|
303
303
|
"BLOCK"
|
|
304
304
|
/* BLOCK */
|
|
@@ -310,7 +310,7 @@ const r = e.object({
|
|
|
310
310
|
config: e.object({
|
|
311
311
|
content: e.string()
|
|
312
312
|
}).passthrough()
|
|
313
|
-
}),
|
|
313
|
+
}), R = r.extend({
|
|
314
314
|
category: e.literal(
|
|
315
315
|
"BLOCK"
|
|
316
316
|
/* BLOCK */
|
|
@@ -346,7 +346,7 @@ const r = e.object({
|
|
|
346
346
|
config: e.object({
|
|
347
347
|
text: e.string()
|
|
348
348
|
}).passthrough()
|
|
349
|
-
}),
|
|
349
|
+
}), w = r.extend({
|
|
350
350
|
category: e.literal(
|
|
351
351
|
"FIELD"
|
|
352
352
|
/* FIELD */
|
|
@@ -399,19 +399,19 @@ const r = e.object({
|
|
|
399
399
|
label: e.string().optional(),
|
|
400
400
|
placeholder: e.string().optional()
|
|
401
401
|
}).passthrough()
|
|
402
|
-
}),
|
|
402
|
+
}), j = e.object({
|
|
403
403
|
id: e.string(),
|
|
404
404
|
category: e.string(),
|
|
405
405
|
type: e.string()
|
|
406
406
|
}).passthrough(), k = e.union([
|
|
407
|
-
R,
|
|
408
407
|
L,
|
|
408
|
+
R,
|
|
409
409
|
D,
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
w,
|
|
411
|
+
j
|
|
412
412
|
]);
|
|
413
|
-
var
|
|
414
|
-
const
|
|
413
|
+
var F = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(F || {});
|
|
414
|
+
const U = e.object({
|
|
415
415
|
id: e.string(),
|
|
416
416
|
type: e.literal(
|
|
417
417
|
"STEP"
|
|
@@ -440,7 +440,7 @@ const F = e.object({
|
|
|
440
440
|
type: e.string(),
|
|
441
441
|
coordinates: a
|
|
442
442
|
}).passthrough(), x = e.union([
|
|
443
|
-
|
|
443
|
+
U,
|
|
444
444
|
v,
|
|
445
445
|
P
|
|
446
446
|
]), H = e.object({
|
|
@@ -522,15 +522,20 @@ const K = e.object({
|
|
|
522
522
|
provider: e.string().optional(),
|
|
523
523
|
from: e.string().optional(),
|
|
524
524
|
twilio_sid: e.string().optional(),
|
|
525
|
-
twilio_token: e.string().optional()
|
|
525
|
+
twilio_token: e.string().optional(),
|
|
526
|
+
icon_url: e.string().optional()
|
|
526
527
|
}), B = e.object({
|
|
527
528
|
id: e.string().optional(),
|
|
528
529
|
name: e.string(),
|
|
530
|
+
display_name: e.string().optional(),
|
|
529
531
|
strategy: e.string(),
|
|
530
532
|
options: z.default({}),
|
|
531
533
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
532
534
|
response_type: e.custom().optional(),
|
|
533
|
-
response_mode: e.custom().optional()
|
|
535
|
+
response_mode: e.custom().optional(),
|
|
536
|
+
is_domain_connection: e.boolean().optional(),
|
|
537
|
+
show_as_button: e.boolean().optional(),
|
|
538
|
+
metadata: e.record(e.any()).optional()
|
|
534
539
|
}), W = e.object({
|
|
535
540
|
id: e.string(),
|
|
536
541
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
@@ -750,6 +755,7 @@ const q = e.enum([
|
|
|
750
755
|
}), $ = e.discriminatedUnion("type", [
|
|
751
756
|
e.object({
|
|
752
757
|
id: e.string(),
|
|
758
|
+
category: e.literal("BLOCK").optional(),
|
|
753
759
|
type: e.literal("RICH_TEXT"),
|
|
754
760
|
config: e.object({
|
|
755
761
|
content: e.string()
|
|
@@ -759,6 +765,7 @@ const q = e.enum([
|
|
|
759
765
|
}),
|
|
760
766
|
e.object({
|
|
761
767
|
id: e.string(),
|
|
768
|
+
category: e.literal("FIELD").optional(),
|
|
762
769
|
type: e.literal("LEGAL"),
|
|
763
770
|
config: e.object({
|
|
764
771
|
text: e.string(),
|
|
@@ -770,6 +777,7 @@ const q = e.enum([
|
|
|
770
777
|
}),
|
|
771
778
|
e.object({
|
|
772
779
|
id: e.string(),
|
|
780
|
+
category: e.literal("FIELD").optional(),
|
|
773
781
|
type: e.literal("TEXT"),
|
|
774
782
|
config: e.object({
|
|
775
783
|
placeholder: e.string().optional(),
|
|
@@ -782,6 +790,7 @@ const q = e.enum([
|
|
|
782
790
|
}),
|
|
783
791
|
e.object({
|
|
784
792
|
id: e.string(),
|
|
793
|
+
category: e.literal("BLOCK").optional(),
|
|
785
794
|
type: e.literal("NEXT_BUTTON"),
|
|
786
795
|
config: e.object({
|
|
787
796
|
text: e.string().optional()
|
|
@@ -813,7 +822,7 @@ const q = e.enum([
|
|
|
813
822
|
alias: e.string().min(1).max(150).optional(),
|
|
814
823
|
config: e.object({
|
|
815
824
|
flow_id: e.string().max(30),
|
|
816
|
-
next_node: e.string()
|
|
825
|
+
next_node: e.string().optional()
|
|
817
826
|
})
|
|
818
827
|
}),
|
|
819
828
|
// ROUTER node
|
|
@@ -831,7 +840,7 @@ const q = e.enum([
|
|
|
831
840
|
next_node: e.string()
|
|
832
841
|
})
|
|
833
842
|
),
|
|
834
|
-
fallback: e.
|
|
843
|
+
fallback: e.string()
|
|
835
844
|
})
|
|
836
845
|
}),
|
|
837
846
|
// STEP node
|
|
@@ -842,7 +851,7 @@ const q = e.enum([
|
|
|
842
851
|
alias: e.string().min(1).max(150).optional(),
|
|
843
852
|
config: e.object({
|
|
844
853
|
components: e.array($),
|
|
845
|
-
next_node: e.string()
|
|
854
|
+
next_node: e.string().optional()
|
|
846
855
|
})
|
|
847
856
|
})
|
|
848
857
|
])
|
|
@@ -1411,7 +1420,7 @@ const Ee = e.object({
|
|
|
1411
1420
|
}), Te = e.object({
|
|
1412
1421
|
value: e.string(),
|
|
1413
1422
|
description: e.string().optional()
|
|
1414
|
-
}),
|
|
1423
|
+
}), ye = e.object({
|
|
1415
1424
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1416
1425
|
enforce_policies: e.boolean().optional(),
|
|
1417
1426
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1421,7 +1430,7 @@ const Ee = e.object({
|
|
|
1421
1430
|
mtls: e.object({
|
|
1422
1431
|
bound_access_tokens: e.boolean().optional()
|
|
1423
1432
|
}).optional()
|
|
1424
|
-
}),
|
|
1433
|
+
}), Ne = e.object({
|
|
1425
1434
|
name: e.string(),
|
|
1426
1435
|
identifier: e.string(),
|
|
1427
1436
|
scopes: e.array(Te).optional(),
|
|
@@ -1432,29 +1441,29 @@ const Ee = e.object({
|
|
|
1432
1441
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1433
1442
|
allow_offline_access: e.boolean().optional(),
|
|
1434
1443
|
verificationKey: e.string().optional(),
|
|
1435
|
-
options:
|
|
1436
|
-
}),
|
|
1444
|
+
options: ye.optional()
|
|
1445
|
+
}), Le = e.object({
|
|
1437
1446
|
id: e.string().optional(),
|
|
1438
|
-
...
|
|
1447
|
+
...Ne.shape,
|
|
1439
1448
|
created_at: e.string().optional(),
|
|
1440
1449
|
updated_at: e.string().optional()
|
|
1441
|
-
}), Et = e.array(
|
|
1450
|
+
}), Et = e.array(Le), Re = e.object({
|
|
1442
1451
|
role_id: e.string(),
|
|
1443
1452
|
resource_server_identifier: e.string(),
|
|
1444
1453
|
permission_name: e.string()
|
|
1445
1454
|
}), De = e.object({
|
|
1446
|
-
...
|
|
1455
|
+
...Re.shape,
|
|
1447
1456
|
created_at: e.string()
|
|
1448
|
-
}), ft = e.array(De),
|
|
1457
|
+
}), ft = e.array(De), we = e.object({
|
|
1449
1458
|
user_id: e.string(),
|
|
1450
1459
|
resource_server_identifier: e.string(),
|
|
1451
1460
|
permission_name: e.string(),
|
|
1452
1461
|
organization_id: e.string().optional()
|
|
1453
|
-
}),
|
|
1454
|
-
...
|
|
1462
|
+
}), je = e.object({
|
|
1463
|
+
...we.shape,
|
|
1455
1464
|
tenant_id: e.string(),
|
|
1456
1465
|
created_at: e.string().optional()
|
|
1457
|
-
}), St = e.array(
|
|
1466
|
+
}), St = e.array(je), ke = e.object({
|
|
1458
1467
|
user_id: e.string(),
|
|
1459
1468
|
resource_server_identifier: e.string(),
|
|
1460
1469
|
resource_server_name: e.string(),
|
|
@@ -1464,15 +1473,15 @@ const Ee = e.object({
|
|
|
1464
1473
|
organization_id: e.string().optional()
|
|
1465
1474
|
}), At = e.array(
|
|
1466
1475
|
ke
|
|
1467
|
-
),
|
|
1476
|
+
), Fe = e.object({
|
|
1468
1477
|
user_id: e.string(),
|
|
1469
1478
|
role_id: e.string(),
|
|
1470
1479
|
organization_id: e.string().optional()
|
|
1471
|
-
}),
|
|
1472
|
-
...
|
|
1480
|
+
}), Ue = e.object({
|
|
1481
|
+
...Fe.shape,
|
|
1473
1482
|
tenant_id: e.string(),
|
|
1474
1483
|
created_at: e.string().optional()
|
|
1475
|
-
}), It = e.array(
|
|
1484
|
+
}), It = e.array(Ue), ve = e.object({
|
|
1476
1485
|
name: e.string().min(1).max(50).openapi({
|
|
1477
1486
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1478
1487
|
}),
|
|
@@ -1554,7 +1563,7 @@ const Ee = e.object({
|
|
|
1554
1563
|
...Ke.shape,
|
|
1555
1564
|
...n.shape,
|
|
1556
1565
|
id: e.string()
|
|
1557
|
-
}),
|
|
1566
|
+
}), yt = e.object({
|
|
1558
1567
|
// Session settings
|
|
1559
1568
|
idle_session_lifetime: e.number().optional(),
|
|
1560
1569
|
session_lifetime: e.number().optional(),
|
|
@@ -1624,7 +1633,7 @@ const Ee = e.object({
|
|
|
1624
1633
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1625
1634
|
}).optional()
|
|
1626
1635
|
});
|
|
1627
|
-
function
|
|
1636
|
+
function Nt(t) {
|
|
1628
1637
|
const [i, s] = t.split("|");
|
|
1629
1638
|
if (!i || !s)
|
|
1630
1639
|
throw new Error(`Invalid user_id: ${t}`);
|
|
@@ -1640,7 +1649,7 @@ export {
|
|
|
1640
1649
|
be as GrantType,
|
|
1641
1650
|
ge as LocationInfo,
|
|
1642
1651
|
ce as LogTypes,
|
|
1643
|
-
|
|
1652
|
+
F as NodeType,
|
|
1644
1653
|
Ye as auth0FlowInsertSchema,
|
|
1645
1654
|
G as auth0FlowSchema,
|
|
1646
1655
|
Be as auth0QuerySchema,
|
|
@@ -1649,10 +1658,10 @@ export {
|
|
|
1649
1658
|
_ as baseUserSchema,
|
|
1650
1659
|
Ee as bordersSchema,
|
|
1651
1660
|
Qe as brandingSchema,
|
|
1652
|
-
|
|
1653
|
-
|
|
1661
|
+
R as buttonComponentSchema,
|
|
1662
|
+
y as clientGrantInsertSchema,
|
|
1654
1663
|
qe as clientGrantListSchema,
|
|
1655
|
-
|
|
1664
|
+
N as clientGrantSchema,
|
|
1656
1665
|
O as clientInsertSchema,
|
|
1657
1666
|
T as clientSchema,
|
|
1658
1667
|
Y as codeInsertSchema,
|
|
@@ -1669,7 +1678,7 @@ export {
|
|
|
1669
1678
|
Ze as customDomainWithTenantIdSchema,
|
|
1670
1679
|
ut as emailProviderSchema,
|
|
1671
1680
|
M as endingSchema,
|
|
1672
|
-
|
|
1681
|
+
w as fieldComponentSchema,
|
|
1673
1682
|
v as flowNodeSchema,
|
|
1674
1683
|
o as fontDetailsSchema,
|
|
1675
1684
|
Se as fontsSchema,
|
|
@@ -1677,7 +1686,7 @@ export {
|
|
|
1677
1686
|
ee as formInsertSchema,
|
|
1678
1687
|
$ as formNodeComponentDefinition,
|
|
1679
1688
|
et as formSchema,
|
|
1680
|
-
|
|
1689
|
+
j as genericComponentSchema,
|
|
1681
1690
|
P as genericNodeSchema,
|
|
1682
1691
|
tt as hookInsertSchema,
|
|
1683
1692
|
ot as hookSchema,
|
|
@@ -1701,22 +1710,22 @@ export {
|
|
|
1701
1710
|
Ot as organizationSchema,
|
|
1702
1711
|
Me as organizationTokenQuotaSchema,
|
|
1703
1712
|
Ae as pageBackgroundSchema,
|
|
1704
|
-
|
|
1713
|
+
Nt as parseUserId,
|
|
1705
1714
|
me as passwordInsertSchema,
|
|
1706
1715
|
lt as passwordSchema,
|
|
1707
1716
|
E as profileDataSchema,
|
|
1708
1717
|
gt as promptSettingSchema,
|
|
1709
1718
|
Oe as refreshTokenInsertSchema,
|
|
1710
1719
|
mt as refreshTokenSchema,
|
|
1711
|
-
|
|
1720
|
+
Ne as resourceServerInsertSchema,
|
|
1712
1721
|
Et as resourceServerListSchema,
|
|
1713
|
-
|
|
1714
|
-
|
|
1722
|
+
ye as resourceServerOptionsSchema,
|
|
1723
|
+
Le as resourceServerSchema,
|
|
1715
1724
|
Te as resourceServerScopeSchema,
|
|
1716
|
-
|
|
1725
|
+
L as richTextComponentSchema,
|
|
1717
1726
|
ve as roleInsertSchema,
|
|
1718
1727
|
Ct as roleListSchema,
|
|
1719
|
-
|
|
1728
|
+
Re as rolePermissionInsertSchema,
|
|
1720
1729
|
ft as rolePermissionListSchema,
|
|
1721
1730
|
De as rolePermissionSchema,
|
|
1722
1731
|
Pe as roleSchema,
|
|
@@ -1726,10 +1735,10 @@ export {
|
|
|
1726
1735
|
bt as smsProviderSchema,
|
|
1727
1736
|
ht as smsSendParamsSchema,
|
|
1728
1737
|
H as startSchema,
|
|
1729
|
-
|
|
1738
|
+
U as stepNodeSchema,
|
|
1730
1739
|
X as tenantInsertSchema,
|
|
1731
1740
|
V as tenantSchema,
|
|
1732
|
-
|
|
1741
|
+
yt as tenantSettingsSchema,
|
|
1733
1742
|
Ce as themeInsertSchema,
|
|
1734
1743
|
dt as themeSchema,
|
|
1735
1744
|
pt as tokenResponseSchema,
|
|
@@ -1737,15 +1746,15 @@ export {
|
|
|
1737
1746
|
S as userInsertSchema,
|
|
1738
1747
|
Ke as userOrganizationInsertSchema,
|
|
1739
1748
|
Tt as userOrganizationSchema,
|
|
1740
|
-
|
|
1749
|
+
we as userPermissionInsertSchema,
|
|
1741
1750
|
St as userPermissionListSchema,
|
|
1742
|
-
|
|
1751
|
+
je as userPermissionSchema,
|
|
1743
1752
|
At as userPermissionWithDetailsListSchema,
|
|
1744
1753
|
ke as userPermissionWithDetailsSchema,
|
|
1745
1754
|
Ve as userResponseSchema,
|
|
1746
|
-
|
|
1755
|
+
Fe as userRoleInsertSchema,
|
|
1747
1756
|
It as userRoleListSchema,
|
|
1748
|
-
|
|
1757
|
+
Ue as userRoleSchema,
|
|
1749
1758
|
A as userSchema,
|
|
1750
1759
|
J as verificationMethodsSchema,
|
|
1751
1760
|
Ie as widgetSchema
|