@authhero/adapter-interfaces 0.130.0 → 0.132.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 +546 -64
- package/dist/adapter-interfaces.mjs +54 -34
- package/package.json +1 -1
|
@@ -162,9 +162,15 @@ const r = e.object({
|
|
|
162
162
|
user_id: e.string().optional(),
|
|
163
163
|
provider: e.string().optional(),
|
|
164
164
|
connection: e.string(),
|
|
165
|
-
is_social: e.boolean().optional()
|
|
165
|
+
is_social: e.boolean().optional(),
|
|
166
|
+
// Optional password for atomic user+password creation
|
|
167
|
+
// When provided, user and password are created in a single transaction
|
|
168
|
+
password: e.object({
|
|
169
|
+
hash: e.string(),
|
|
170
|
+
algorithm: e.string()
|
|
171
|
+
}).optional()
|
|
166
172
|
}), Y = e.object({
|
|
167
|
-
...q.shape,
|
|
173
|
+
...q.omit({ password: !0 }).shape,
|
|
168
174
|
...r.shape,
|
|
169
175
|
user_id: e.string(),
|
|
170
176
|
provider: e.string(),
|
|
@@ -807,12 +813,12 @@ const he = e.object({
|
|
|
807
813
|
config: e.object({
|
|
808
814
|
credential_type: e.string().optional()
|
|
809
815
|
})
|
|
810
|
-
}),
|
|
816
|
+
}), ke = E.extend({
|
|
811
817
|
type: e.literal("GMAPS_ADDRESS"),
|
|
812
818
|
config: e.object({
|
|
813
819
|
api_key: e.string().optional()
|
|
814
820
|
})
|
|
815
|
-
}),
|
|
821
|
+
}), Ue = E.extend({
|
|
816
822
|
type: e.literal("RECAPTCHA"),
|
|
817
823
|
config: e.object({
|
|
818
824
|
site_key: e.string().optional()
|
|
@@ -823,7 +829,7 @@ const he = e.object({
|
|
|
823
829
|
hint: e.string().min(1).max(500).optional(),
|
|
824
830
|
required: e.boolean().optional(),
|
|
825
831
|
sensitive: e.boolean().optional()
|
|
826
|
-
}),
|
|
832
|
+
}), Fe = o.extend({
|
|
827
833
|
type: e.literal("BOOLEAN"),
|
|
828
834
|
config: e.object({
|
|
829
835
|
default_value: e.boolean().optional()
|
|
@@ -850,13 +856,17 @@ const he = e.object({
|
|
|
850
856
|
label: e.string()
|
|
851
857
|
})
|
|
852
858
|
).optional(),
|
|
853
|
-
display: e.enum(["radio", "checkbox"]).optional()
|
|
859
|
+
display: e.enum(["radio", "checkbox"]).optional(),
|
|
860
|
+
multiple: e.boolean().optional(),
|
|
861
|
+
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
854
862
|
}).optional()
|
|
855
863
|
}), Pe = o.extend({
|
|
856
864
|
type: e.literal("CUSTOM"),
|
|
857
865
|
config: e.object({
|
|
858
866
|
component: e.string().optional(),
|
|
859
|
-
props: e.record(e.any()).optional()
|
|
867
|
+
props: e.record(e.any()).optional(),
|
|
868
|
+
schema: e.record(e.any()).optional(),
|
|
869
|
+
code: e.string().optional()
|
|
860
870
|
})
|
|
861
871
|
}), Me = o.extend({
|
|
862
872
|
type: e.literal("DATE"),
|
|
@@ -875,7 +885,9 @@ const he = e.object({
|
|
|
875
885
|
})
|
|
876
886
|
).optional(),
|
|
877
887
|
placeholder: e.string().optional(),
|
|
878
|
-
searchable: e.boolean().optional()
|
|
888
|
+
searchable: e.boolean().optional(),
|
|
889
|
+
multiple: e.boolean().optional(),
|
|
890
|
+
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
879
891
|
}).optional()
|
|
880
892
|
}), Ge = o.extend({
|
|
881
893
|
type: e.literal("EMAIL"),
|
|
@@ -960,10 +972,10 @@ const he = e.object({
|
|
|
960
972
|
we
|
|
961
973
|
]), Ze = e.discriminatedUnion("type", [
|
|
962
974
|
je,
|
|
963
|
-
Ue,
|
|
964
|
-
Fe
|
|
965
|
-
]), $e = e.discriminatedUnion("type", [
|
|
966
975
|
ke,
|
|
976
|
+
Ue
|
|
977
|
+
]), $e = e.discriminatedUnion("type", [
|
|
978
|
+
Fe,
|
|
967
979
|
ve,
|
|
968
980
|
xe,
|
|
969
981
|
Pe,
|
|
@@ -1061,7 +1073,11 @@ const he = e.object({
|
|
|
1061
1073
|
coordinates: _.optional(),
|
|
1062
1074
|
resume_flow: e.boolean().optional()
|
|
1063
1075
|
}).optional(),
|
|
1064
|
-
style: e.object({ css: e.string().optional() }).optional()
|
|
1076
|
+
style: e.object({ css: e.string().optional() }).optional(),
|
|
1077
|
+
links: e.object({
|
|
1078
|
+
sdkSrc: e.string().optional(),
|
|
1079
|
+
sdk_src: e.string().optional()
|
|
1080
|
+
}).optional()
|
|
1065
1081
|
}).openapi({
|
|
1066
1082
|
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1067
1083
|
}), bo = e.object({
|
|
@@ -1078,13 +1094,17 @@ const he = e.object({
|
|
|
1078
1094
|
href: e.string(),
|
|
1079
1095
|
linkText: e.string().optional()
|
|
1080
1096
|
}), fo = e.object({
|
|
1097
|
+
/** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
|
|
1098
|
+
name: e.string().optional(),
|
|
1081
1099
|
action: e.string(),
|
|
1082
1100
|
method: e.enum(["POST", "GET"]),
|
|
1083
1101
|
title: e.string().optional(),
|
|
1084
1102
|
description: e.string().optional(),
|
|
1085
1103
|
components: e.array(R),
|
|
1086
1104
|
messages: e.array(at).optional(),
|
|
1087
|
-
links: e.array(rt).optional()
|
|
1105
|
+
links: e.array(rt).optional(),
|
|
1106
|
+
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
1107
|
+
footer: e.string().optional()
|
|
1088
1108
|
});
|
|
1089
1109
|
function Eo(t) {
|
|
1090
1110
|
return t.category === "BLOCK";
|
|
@@ -1636,7 +1656,7 @@ const mt = e.nativeEnum(w), ht = e.object({
|
|
|
1636
1656
|
id: e.string()
|
|
1637
1657
|
});
|
|
1638
1658
|
var Tt = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(Tt || {});
|
|
1639
|
-
const
|
|
1659
|
+
const ko = e.object({
|
|
1640
1660
|
access_token: e.string(),
|
|
1641
1661
|
id_token: e.string().optional(),
|
|
1642
1662
|
scope: e.string().optional(),
|
|
@@ -1709,9 +1729,9 @@ const Ot = e.object({
|
|
|
1709
1729
|
fonts: Rt,
|
|
1710
1730
|
page_background: Dt,
|
|
1711
1731
|
widget: Lt
|
|
1712
|
-
}),
|
|
1732
|
+
}), Uo = wt.extend({
|
|
1713
1733
|
themeId: e.string()
|
|
1714
|
-
}),
|
|
1734
|
+
}), Fo = e.object({
|
|
1715
1735
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1716
1736
|
identifier_first: e.boolean().default(!0),
|
|
1717
1737
|
password_first: e.boolean().default(!1),
|
|
@@ -1778,10 +1798,10 @@ const Ot = e.object({
|
|
|
1778
1798
|
}), Mo = e.object({
|
|
1779
1799
|
name: e.string(),
|
|
1780
1800
|
options: e.object({})
|
|
1781
|
-
}),
|
|
1801
|
+
}), kt = e.object({
|
|
1782
1802
|
value: e.string(),
|
|
1783
1803
|
description: e.string().optional()
|
|
1784
|
-
}),
|
|
1804
|
+
}), Ut = e.object({
|
|
1785
1805
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1786
1806
|
enforce_policies: e.boolean().optional(),
|
|
1787
1807
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1791,11 +1811,11 @@ const Ot = e.object({
|
|
|
1791
1811
|
mtls: e.object({
|
|
1792
1812
|
bound_access_tokens: e.boolean().optional()
|
|
1793
1813
|
}).optional()
|
|
1794
|
-
}),
|
|
1814
|
+
}), Ft = e.object({
|
|
1795
1815
|
id: e.string().optional(),
|
|
1796
1816
|
name: e.string(),
|
|
1797
1817
|
identifier: e.string(),
|
|
1798
|
-
scopes: e.array(
|
|
1818
|
+
scopes: e.array(kt).optional(),
|
|
1799
1819
|
signing_alg: e.string().optional(),
|
|
1800
1820
|
signing_secret: e.string().optional(),
|
|
1801
1821
|
token_lifetime: e.number().optional(),
|
|
@@ -1803,11 +1823,11 @@ const Ot = e.object({
|
|
|
1803
1823
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1804
1824
|
allow_offline_access: e.boolean().optional(),
|
|
1805
1825
|
verificationKey: e.string().optional(),
|
|
1806
|
-
options:
|
|
1826
|
+
options: Ut.optional(),
|
|
1807
1827
|
is_system: e.boolean().optional(),
|
|
1808
1828
|
metadata: e.record(e.any()).optional()
|
|
1809
1829
|
}), vt = e.object({
|
|
1810
|
-
...
|
|
1830
|
+
...Ft.shape,
|
|
1811
1831
|
created_at: e.string().optional(),
|
|
1812
1832
|
updated_at: e.string().optional()
|
|
1813
1833
|
}), Ho = e.array(vt), xt = e.object({
|
|
@@ -2081,14 +2101,14 @@ function $o(t) {
|
|
|
2081
2101
|
const {
|
|
2082
2102
|
primary: a,
|
|
2083
2103
|
secondaries: s,
|
|
2084
|
-
syncMethods:
|
|
2085
|
-
} = t,
|
|
2104
|
+
syncMethods: k = ["create", "update", "remove", "delete", "set"]
|
|
2105
|
+
} = t, U = {
|
|
2086
2106
|
get(d, n) {
|
|
2087
2107
|
if (typeof n == "symbol")
|
|
2088
2108
|
return d[n];
|
|
2089
2109
|
const g = d[n];
|
|
2090
|
-
return typeof g != "function" ? g :
|
|
2091
|
-
const
|
|
2110
|
+
return typeof g != "function" ? g : k.includes(n) ? async (...h) => {
|
|
2111
|
+
const F = await g.apply(d, h), b = [];
|
|
2092
2112
|
for (const p of s) {
|
|
2093
2113
|
const S = p.adapter[n];
|
|
2094
2114
|
if (typeof S != "function")
|
|
@@ -2112,11 +2132,11 @@ function $o(t) {
|
|
|
2112
2132
|
})();
|
|
2113
2133
|
p.blocking && b.push(v);
|
|
2114
2134
|
}
|
|
2115
|
-
return b.length > 0 && await Promise.all(b),
|
|
2135
|
+
return b.length > 0 && await Promise.all(b), F;
|
|
2116
2136
|
} : g.bind(d);
|
|
2117
2137
|
}
|
|
2118
2138
|
};
|
|
2119
|
-
return new Proxy(a,
|
|
2139
|
+
return new Proxy(a, U);
|
|
2120
2140
|
}
|
|
2121
2141
|
function en(t) {
|
|
2122
2142
|
return t;
|
|
@@ -2225,15 +2245,15 @@ export {
|
|
|
2225
2245
|
Do as passwordSchema,
|
|
2226
2246
|
z as profileDataSchema,
|
|
2227
2247
|
Jt as promptScreenSchema,
|
|
2228
|
-
|
|
2248
|
+
Fo as promptSettingSchema,
|
|
2229
2249
|
B as redirectActionSchema,
|
|
2230
2250
|
jt as refreshTokenInsertSchema,
|
|
2231
2251
|
xo as refreshTokenSchema,
|
|
2232
|
-
|
|
2252
|
+
Ft as resourceServerInsertSchema,
|
|
2233
2253
|
Ho as resourceServerListSchema,
|
|
2234
|
-
|
|
2254
|
+
Ut as resourceServerOptionsSchema,
|
|
2235
2255
|
vt as resourceServerSchema,
|
|
2236
|
-
|
|
2256
|
+
kt as resourceServerScopeSchema,
|
|
2237
2257
|
te as richTextComponentSchema,
|
|
2238
2258
|
Wt as roleInsertSchema,
|
|
2239
2259
|
zo as roleListSchema,
|
|
@@ -2252,8 +2272,8 @@ export {
|
|
|
2252
2272
|
jo as tenantSchema,
|
|
2253
2273
|
qo as tenantSettingsSchema,
|
|
2254
2274
|
wt as themeInsertSchema,
|
|
2255
|
-
|
|
2256
|
-
|
|
2275
|
+
Uo as themeSchema,
|
|
2276
|
+
ko as tokenResponseSchema,
|
|
2257
2277
|
ao as totalsSchema,
|
|
2258
2278
|
fo as uiScreenSchema,
|
|
2259
2279
|
q as userInsertSchema,
|