@authhero/adapter-interfaces 0.131.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 +510 -54
- package/dist/adapter-interfaces.mjs +41 -31
- package/package.json +1 -1
|
@@ -813,12 +813,12 @@ const he = e.object({
|
|
|
813
813
|
config: e.object({
|
|
814
814
|
credential_type: e.string().optional()
|
|
815
815
|
})
|
|
816
|
-
}),
|
|
816
|
+
}), ke = E.extend({
|
|
817
817
|
type: e.literal("GMAPS_ADDRESS"),
|
|
818
818
|
config: e.object({
|
|
819
819
|
api_key: e.string().optional()
|
|
820
820
|
})
|
|
821
|
-
}),
|
|
821
|
+
}), Ue = E.extend({
|
|
822
822
|
type: e.literal("RECAPTCHA"),
|
|
823
823
|
config: e.object({
|
|
824
824
|
site_key: e.string().optional()
|
|
@@ -829,7 +829,7 @@ const he = e.object({
|
|
|
829
829
|
hint: e.string().min(1).max(500).optional(),
|
|
830
830
|
required: e.boolean().optional(),
|
|
831
831
|
sensitive: e.boolean().optional()
|
|
832
|
-
}),
|
|
832
|
+
}), Fe = o.extend({
|
|
833
833
|
type: e.literal("BOOLEAN"),
|
|
834
834
|
config: e.object({
|
|
835
835
|
default_value: e.boolean().optional()
|
|
@@ -856,13 +856,17 @@ const he = e.object({
|
|
|
856
856
|
label: e.string()
|
|
857
857
|
})
|
|
858
858
|
).optional(),
|
|
859
|
-
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()
|
|
860
862
|
}).optional()
|
|
861
863
|
}), Pe = o.extend({
|
|
862
864
|
type: e.literal("CUSTOM"),
|
|
863
865
|
config: e.object({
|
|
864
866
|
component: e.string().optional(),
|
|
865
|
-
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()
|
|
866
870
|
})
|
|
867
871
|
}), Me = o.extend({
|
|
868
872
|
type: e.literal("DATE"),
|
|
@@ -881,7 +885,9 @@ const he = e.object({
|
|
|
881
885
|
})
|
|
882
886
|
).optional(),
|
|
883
887
|
placeholder: e.string().optional(),
|
|
884
|
-
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()
|
|
885
891
|
}).optional()
|
|
886
892
|
}), Ge = o.extend({
|
|
887
893
|
type: e.literal("EMAIL"),
|
|
@@ -966,10 +972,10 @@ const he = e.object({
|
|
|
966
972
|
we
|
|
967
973
|
]), Ze = e.discriminatedUnion("type", [
|
|
968
974
|
je,
|
|
969
|
-
Ue,
|
|
970
|
-
Fe
|
|
971
|
-
]), $e = e.discriminatedUnion("type", [
|
|
972
975
|
ke,
|
|
976
|
+
Ue
|
|
977
|
+
]), $e = e.discriminatedUnion("type", [
|
|
978
|
+
Fe,
|
|
973
979
|
ve,
|
|
974
980
|
xe,
|
|
975
981
|
Pe,
|
|
@@ -1067,7 +1073,11 @@ const he = e.object({
|
|
|
1067
1073
|
coordinates: _.optional(),
|
|
1068
1074
|
resume_flow: e.boolean().optional()
|
|
1069
1075
|
}).optional(),
|
|
1070
|
-
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()
|
|
1071
1081
|
}).openapi({
|
|
1072
1082
|
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1073
1083
|
}), bo = e.object({
|
|
@@ -1646,7 +1656,7 @@ const mt = e.nativeEnum(w), ht = e.object({
|
|
|
1646
1656
|
id: e.string()
|
|
1647
1657
|
});
|
|
1648
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 || {});
|
|
1649
|
-
const
|
|
1659
|
+
const ko = e.object({
|
|
1650
1660
|
access_token: e.string(),
|
|
1651
1661
|
id_token: e.string().optional(),
|
|
1652
1662
|
scope: e.string().optional(),
|
|
@@ -1719,9 +1729,9 @@ const Ot = e.object({
|
|
|
1719
1729
|
fonts: Rt,
|
|
1720
1730
|
page_background: Dt,
|
|
1721
1731
|
widget: Lt
|
|
1722
|
-
}),
|
|
1732
|
+
}), Uo = wt.extend({
|
|
1723
1733
|
themeId: e.string()
|
|
1724
|
-
}),
|
|
1734
|
+
}), Fo = e.object({
|
|
1725
1735
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1726
1736
|
identifier_first: e.boolean().default(!0),
|
|
1727
1737
|
password_first: e.boolean().default(!1),
|
|
@@ -1788,10 +1798,10 @@ const Ot = e.object({
|
|
|
1788
1798
|
}), Mo = e.object({
|
|
1789
1799
|
name: e.string(),
|
|
1790
1800
|
options: e.object({})
|
|
1791
|
-
}),
|
|
1801
|
+
}), kt = e.object({
|
|
1792
1802
|
value: e.string(),
|
|
1793
1803
|
description: e.string().optional()
|
|
1794
|
-
}),
|
|
1804
|
+
}), Ut = e.object({
|
|
1795
1805
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1796
1806
|
enforce_policies: e.boolean().optional(),
|
|
1797
1807
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1801,11 +1811,11 @@ const Ot = e.object({
|
|
|
1801
1811
|
mtls: e.object({
|
|
1802
1812
|
bound_access_tokens: e.boolean().optional()
|
|
1803
1813
|
}).optional()
|
|
1804
|
-
}),
|
|
1814
|
+
}), Ft = e.object({
|
|
1805
1815
|
id: e.string().optional(),
|
|
1806
1816
|
name: e.string(),
|
|
1807
1817
|
identifier: e.string(),
|
|
1808
|
-
scopes: e.array(
|
|
1818
|
+
scopes: e.array(kt).optional(),
|
|
1809
1819
|
signing_alg: e.string().optional(),
|
|
1810
1820
|
signing_secret: e.string().optional(),
|
|
1811
1821
|
token_lifetime: e.number().optional(),
|
|
@@ -1813,11 +1823,11 @@ const Ot = e.object({
|
|
|
1813
1823
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1814
1824
|
allow_offline_access: e.boolean().optional(),
|
|
1815
1825
|
verificationKey: e.string().optional(),
|
|
1816
|
-
options:
|
|
1826
|
+
options: Ut.optional(),
|
|
1817
1827
|
is_system: e.boolean().optional(),
|
|
1818
1828
|
metadata: e.record(e.any()).optional()
|
|
1819
1829
|
}), vt = e.object({
|
|
1820
|
-
...
|
|
1830
|
+
...Ft.shape,
|
|
1821
1831
|
created_at: e.string().optional(),
|
|
1822
1832
|
updated_at: e.string().optional()
|
|
1823
1833
|
}), Ho = e.array(vt), xt = e.object({
|
|
@@ -2091,14 +2101,14 @@ function $o(t) {
|
|
|
2091
2101
|
const {
|
|
2092
2102
|
primary: a,
|
|
2093
2103
|
secondaries: s,
|
|
2094
|
-
syncMethods:
|
|
2095
|
-
} = t,
|
|
2104
|
+
syncMethods: k = ["create", "update", "remove", "delete", "set"]
|
|
2105
|
+
} = t, U = {
|
|
2096
2106
|
get(d, n) {
|
|
2097
2107
|
if (typeof n == "symbol")
|
|
2098
2108
|
return d[n];
|
|
2099
2109
|
const g = d[n];
|
|
2100
|
-
return typeof g != "function" ? g :
|
|
2101
|
-
const
|
|
2110
|
+
return typeof g != "function" ? g : k.includes(n) ? async (...h) => {
|
|
2111
|
+
const F = await g.apply(d, h), b = [];
|
|
2102
2112
|
for (const p of s) {
|
|
2103
2113
|
const S = p.adapter[n];
|
|
2104
2114
|
if (typeof S != "function")
|
|
@@ -2122,11 +2132,11 @@ function $o(t) {
|
|
|
2122
2132
|
})();
|
|
2123
2133
|
p.blocking && b.push(v);
|
|
2124
2134
|
}
|
|
2125
|
-
return b.length > 0 && await Promise.all(b),
|
|
2135
|
+
return b.length > 0 && await Promise.all(b), F;
|
|
2126
2136
|
} : g.bind(d);
|
|
2127
2137
|
}
|
|
2128
2138
|
};
|
|
2129
|
-
return new Proxy(a,
|
|
2139
|
+
return new Proxy(a, U);
|
|
2130
2140
|
}
|
|
2131
2141
|
function en(t) {
|
|
2132
2142
|
return t;
|
|
@@ -2235,15 +2245,15 @@ export {
|
|
|
2235
2245
|
Do as passwordSchema,
|
|
2236
2246
|
z as profileDataSchema,
|
|
2237
2247
|
Jt as promptScreenSchema,
|
|
2238
|
-
|
|
2248
|
+
Fo as promptSettingSchema,
|
|
2239
2249
|
B as redirectActionSchema,
|
|
2240
2250
|
jt as refreshTokenInsertSchema,
|
|
2241
2251
|
xo as refreshTokenSchema,
|
|
2242
|
-
|
|
2252
|
+
Ft as resourceServerInsertSchema,
|
|
2243
2253
|
Ho as resourceServerListSchema,
|
|
2244
|
-
|
|
2254
|
+
Ut as resourceServerOptionsSchema,
|
|
2245
2255
|
vt as resourceServerSchema,
|
|
2246
|
-
|
|
2256
|
+
kt as resourceServerScopeSchema,
|
|
2247
2257
|
te as richTextComponentSchema,
|
|
2248
2258
|
Wt as roleInsertSchema,
|
|
2249
2259
|
zo as roleListSchema,
|
|
@@ -2262,8 +2272,8 @@ export {
|
|
|
2262
2272
|
jo as tenantSchema,
|
|
2263
2273
|
qo as tenantSettingsSchema,
|
|
2264
2274
|
wt as themeInsertSchema,
|
|
2265
|
-
|
|
2266
|
-
|
|
2275
|
+
Uo as themeSchema,
|
|
2276
|
+
ko as tokenResponseSchema,
|
|
2267
2277
|
ao as totalsSchema,
|
|
2268
2278
|
fo as uiScreenSchema,
|
|
2269
2279
|
q as userInsertSchema,
|