@authhero/adapter-interfaces 0.11.3 → 0.11.4

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.
@@ -28,11 +28,11 @@ function ut(t) {
28
28
  if (lt(this, "ZodObject")) {
29
29
  const ot = this.extend;
30
30
  ze.extend = function(...ct) {
31
- var Se, Te, Ee, Ce, Oe, je;
31
+ var Se, Te, Ce, Ee, Oe, je;
32
32
  const Ie = ot.apply(this, ct);
33
33
  return Ie._def.openapi = {
34
34
  _internal: {
35
- extendedFrom: !((Te = (Se = this._def.openapi) === null || Se === void 0 ? void 0 : Se._internal) === null || Te === void 0) && Te.refId ? { refId: (Ce = (Ee = this._def.openapi) === null || Ee === void 0 ? void 0 : Ee._internal) === null || Ce === void 0 ? void 0 : Ce.refId, schema: this } : (Oe = this._def.openapi) === null || Oe === void 0 ? void 0 : Oe._internal.extendedFrom
35
+ extendedFrom: !((Te = (Se = this._def.openapi) === null || Se === void 0 ? void 0 : Se._internal) === null || Te === void 0) && Te.refId ? { refId: (Ee = (Ce = this._def.openapi) === null || Ce === void 0 ? void 0 : Ce._internal) === null || Ee === void 0 ? void 0 : Ee.refId, schema: this } : (Oe = this._def.openapi) === null || Oe === void 0 ? void 0 : Oe._internal.extendedFrom
36
36
  },
37
37
  metadata: (je = Ie._def.openapi) === null || je === void 0 ? void 0 : je.metadata
38
38
  }, Ie;
@@ -534,7 +534,7 @@ class v {
534
534
  return this.nullable().optional();
535
535
  }
536
536
  array() {
537
- return C.create(this, this._def);
537
+ return E.create(this, this._def);
538
538
  }
539
539
  promise() {
540
540
  return K.create(this, this._def);
@@ -600,12 +600,12 @@ class v {
600
600
  }
601
601
  const mt = /^c[^\s-]{8,}$/i, _t = /^[0-9a-z]+$/, gt = /^[0-9A-HJKMNP-TV-Z]{26}$/, yt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, vt = /^[a-z0-9_-]{21}$/i, bt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, kt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, xt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
602
602
  let Ne;
603
- const wt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, St = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Tt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, qe = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Et = new RegExp(`^${qe}$`);
603
+ const wt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, St = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Tt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, qe = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ct = new RegExp(`^${qe}$`);
604
604
  function Fe(t) {
605
605
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
606
606
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
607
607
  }
608
- function Ct(t) {
608
+ function Et(t) {
609
609
  return new RegExp(`^${Fe(t)}$`);
610
610
  }
611
611
  function Ye(t) {
@@ -616,7 +616,7 @@ function Ye(t) {
616
616
  function Ot(t, e) {
617
617
  return !!((e === "v4" || !e) && wt.test(t) || (e === "v6" || !e) && St.test(t));
618
618
  }
619
- class E extends v {
619
+ class C extends v {
620
620
  _parse(e) {
621
621
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== h.string) {
622
622
  const i = this._getOrReturnCtx(e);
@@ -736,11 +736,11 @@ class E extends v {
736
736
  code: d.invalid_string,
737
737
  validation: "datetime",
738
738
  message: i.message
739
- }), s.dirty()) : i.kind === "date" ? Et.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
739
+ }), s.dirty()) : i.kind === "date" ? Ct.test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
740
740
  code: d.invalid_string,
741
741
  validation: "date",
742
742
  message: i.message
743
- }), s.dirty()) : i.kind === "time" ? Ct(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
743
+ }), s.dirty()) : i.kind === "time" ? Et(i).test(e.data) || (a = this._getOrReturnCtx(e, a), p(a, {
744
744
  code: d.invalid_string,
745
745
  validation: "time",
746
746
  message: i.message
@@ -767,7 +767,7 @@ class E extends v {
767
767
  });
768
768
  }
769
769
  _addCheck(e) {
770
- return new E({
770
+ return new C({
771
771
  ...this._def,
772
772
  checks: [...this._def.checks, e]
773
773
  });
@@ -893,19 +893,19 @@ class E extends v {
893
893
  return this.min(1, f.errToObj(e));
894
894
  }
895
895
  trim() {
896
- return new E({
896
+ return new C({
897
897
  ...this._def,
898
898
  checks: [...this._def.checks, { kind: "trim" }]
899
899
  });
900
900
  }
901
901
  toLowerCase() {
902
- return new E({
902
+ return new C({
903
903
  ...this._def,
904
904
  checks: [...this._def.checks, { kind: "toLowerCase" }]
905
905
  });
906
906
  }
907
907
  toUpperCase() {
908
- return new E({
908
+ return new C({
909
909
  ...this._def,
910
910
  checks: [...this._def.checks, { kind: "toUpperCase" }]
911
911
  });
@@ -965,9 +965,9 @@ class E extends v {
965
965
  return e;
966
966
  }
967
967
  }
968
- E.create = (t) => {
968
+ C.create = (t) => {
969
969
  var e;
970
- return new E({
970
+ return new C({
971
971
  checks: [],
972
972
  typeName: _.ZodString,
973
973
  coerce: (e = t == null ? void 0 : t.coerce) !== null && e !== void 0 ? e : !1,
@@ -1480,7 +1480,7 @@ ve.create = (t) => new ve({
1480
1480
  typeName: _.ZodVoid,
1481
1481
  ...y(t)
1482
1482
  });
1483
- class C extends v {
1483
+ class E extends v {
1484
1484
  _parse(e) {
1485
1485
  const { ctx: n, status: s } = this._processInputParams(e), a = this._def;
1486
1486
  if (n.parsedType !== h.array)
@@ -1524,19 +1524,19 @@ class C extends v {
1524
1524
  return this._def.type;
1525
1525
  }
1526
1526
  min(e, n) {
1527
- return new C({
1527
+ return new E({
1528
1528
  ...this._def,
1529
1529
  minLength: { value: e, message: f.toString(n) }
1530
1530
  });
1531
1531
  }
1532
1532
  max(e, n) {
1533
- return new C({
1533
+ return new E({
1534
1534
  ...this._def,
1535
1535
  maxLength: { value: e, message: f.toString(n) }
1536
1536
  });
1537
1537
  }
1538
1538
  length(e, n) {
1539
- return new C({
1539
+ return new E({
1540
1540
  ...this._def,
1541
1541
  exactLength: { value: e, message: f.toString(n) }
1542
1542
  });
@@ -1545,7 +1545,7 @@ class C extends v {
1545
1545
  return this.min(1, e);
1546
1546
  }
1547
1547
  }
1548
- C.create = (t, e) => new C({
1548
+ E.create = (t, e) => new E({
1549
1549
  type: t,
1550
1550
  minLength: null,
1551
1551
  maxLength: null,
@@ -1564,7 +1564,7 @@ function G(t) {
1564
1564
  ...t._def,
1565
1565
  shape: () => e
1566
1566
  });
1567
- } else return t instanceof C ? new C({
1567
+ } else return t instanceof E ? new E({
1568
1568
  ...t._def,
1569
1569
  type: G(t.element)
1570
1570
  }) : t instanceof j ? j.create(G(t.unwrap())) : t instanceof U ? U.create(G(t.unwrap())) : t instanceof N ? N.create(t.items.map((e) => G(e))) : t;
@@ -2140,7 +2140,7 @@ class oe extends v {
2140
2140
  typeName: _.ZodRecord,
2141
2141
  ...y(s)
2142
2142
  }) : new oe({
2143
- keyType: E.create(),
2143
+ keyType: C.create(),
2144
2144
  valueType: e,
2145
2145
  typeName: _.ZodRecord,
2146
2146
  ...y(n)
@@ -2800,8 +2800,8 @@ var _;
2800
2800
  })(_ || (_ = {}));
2801
2801
  const Zt = (t, e = {
2802
2802
  message: `Input not instance of ${t.name}`
2803
- }) => Je((n) => n instanceof t, e), Qe = E.create, Xe = P.create, Rt = ke.create, At = M.create, et = ne.create, Pt = V.create, Mt = ye.create, Dt = re.create, Ut = se.create, $t = Y.create, Vt = $.create, Lt = R.create, zt = ve.create, Bt = C.create, Wt = k.create, Gt = k.strictCreate, Ht = ae.create, qt = xe.create, Ft = ie.create, Yt = N.create, Kt = oe.create, Jt = be.create, Qt = L.create, Xt = q.create, en = ce.create, tn = de.create, nn = D.create, rn = le.create, sn = K.create, We = O.create, an = j.create, on = U.create, cn = O.createWithPreprocess, dn = fe.create, ln = () => Qe().optional(), un = () => Xe().optional(), pn = () => et().optional(), hn = {
2804
- string: (t) => E.create({ ...t, coerce: !0 }),
2803
+ }) => Je((n) => n instanceof t, e), Qe = C.create, Xe = P.create, Rt = ke.create, At = M.create, et = ne.create, Pt = V.create, Mt = ye.create, Dt = re.create, Ut = se.create, $t = Y.create, Vt = $.create, Lt = R.create, zt = ve.create, Bt = E.create, Wt = k.create, Gt = k.strictCreate, Ht = ae.create, qt = xe.create, Ft = ie.create, Yt = N.create, Kt = oe.create, Jt = be.create, Qt = L.create, Xt = q.create, en = ce.create, tn = de.create, nn = D.create, rn = le.create, sn = K.create, We = O.create, an = j.create, on = U.create, cn = O.createWithPreprocess, dn = fe.create, ln = () => Qe().optional(), un = () => Xe().optional(), pn = () => et().optional(), hn = {
2804
+ string: (t) => C.create({ ...t, coerce: !0 }),
2805
2805
  number: (t) => P.create({ ...t, coerce: !0 }),
2806
2806
  boolean: (t) => ne.create({
2807
2807
  ...t,
@@ -2836,7 +2836,7 @@ var r = /* @__PURE__ */ Object.freeze({
2836
2836
  getParsedType: A,
2837
2837
  ZodType: v,
2838
2838
  datetimeRegex: Ye,
2839
- ZodString: E,
2839
+ ZodString: C,
2840
2840
  ZodNumber: P,
2841
2841
  ZodBigInt: M,
2842
2842
  ZodBoolean: ne,
@@ -2848,7 +2848,7 @@ var r = /* @__PURE__ */ Object.freeze({
2848
2848
  ZodUnknown: $,
2849
2849
  ZodNever: R,
2850
2850
  ZodVoid: ve,
2851
- ZodArray: C,
2851
+ ZodArray: E,
2852
2852
  ZodObject: k,
2853
2853
  ZodUnion: ae,
2854
2854
  ZodDiscriminatedUnion: xe,
@@ -2927,7 +2927,7 @@ var r = /* @__PURE__ */ Object.freeze({
2927
2927
  ZodError: T
2928
2928
  });
2929
2929
  ut(r);
2930
- const Hn = r.object({
2930
+ const qn = r.object({
2931
2931
  start: r.number(),
2932
2932
  limit: r.number(),
2933
2933
  length: r.number()
@@ -2979,7 +2979,7 @@ const Hn = r.object({
2979
2979
  is_social: r.boolean(),
2980
2980
  login_count: r.number(),
2981
2981
  identities: r.array(_n).optional()
2982
- }), qn = yn, Fn = tt.extend({
2982
+ }), Fn = yn, Yn = tt.extend({
2983
2983
  email: r.string(),
2984
2984
  login_count: r.number(),
2985
2985
  multifactor: r.array(r.string()).optional(),
@@ -2987,6 +2987,23 @@ const Hn = r.object({
2987
2987
  last_login: r.string().optional(),
2988
2988
  user_id: r.string()
2989
2989
  }).catchall(r.any()), vn = r.object({
2990
+ audience: r.string().optional(),
2991
+ recipient: r.string().optional(),
2992
+ createUpnClaim: r.boolean().optional(),
2993
+ mapUnknownClaimsAsIs: r.boolean().optional(),
2994
+ passthroughClaimsWithNoMapping: r.boolean().optional(),
2995
+ mapIdentities: r.boolean().optional(),
2996
+ signatureAlgorithm: r.string().optional(),
2997
+ digestAlgorithm: r.string().optional(),
2998
+ issuer: r.string().optional(),
2999
+ destination: r.string().optional(),
3000
+ lifetimeInSeconds: r.number().optional(),
3001
+ signResponse: r.boolean().optional(),
3002
+ nameIdentifierFormat: r.string().optional(),
3003
+ nameIdentifierProbes: r.array(r.string()).optional(),
3004
+ authnContextClassRef: r.string().optional(),
3005
+ mappings: r.record(r.string()).optional()
3006
+ }), bn = r.object({
2990
3007
  id: r.string(),
2991
3008
  name: r.string(),
2992
3009
  callbacks: r.array(r.string()).openapi({
@@ -3001,7 +3018,9 @@ const Hn = r.object({
3001
3018
  allowed_logout_urls: r.array(r.string()).openapi({
3002
3019
  description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
3003
3020
  }),
3004
- addons: r.record(r.string(), r.record(r.string(), r.union([r.string(), r.number()]))).optional().openapi({
3021
+ addons: r.object({
3022
+ samlp: vn.optional()
3023
+ }).optional().openapi({
3005
3024
  description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
3006
3025
  }),
3007
3026
  email_validation: r.enum(["enabled", "disabled", "enforced"]).default("enforced").openapi({
@@ -3011,10 +3030,10 @@ const Hn = r.object({
3011
3030
  disable_sign_ups: r.boolean().default(!1).openapi({
3012
3031
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
3013
3032
  })
3014
- }), bn = r.object({
3033
+ }), kn = r.object({
3015
3034
  created_at: r.string().transform((t) => t === null ? "" : t),
3016
3035
  updated_at: r.string().transform((t) => t === null ? "" : t),
3017
- ...vn.shape
3036
+ ...bn.shape
3018
3037
  });
3019
3038
  var nt = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(nt || {}), rt = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(rt || {}), st = /* @__PURE__ */ ((t) => (t.S265 = "S256", t.plain = "plain", t))(st || {});
3020
3039
  const we = r.object({
@@ -3030,7 +3049,7 @@ const we = r.object({
3030
3049
  code_challenge_method: r.nativeEnum(st).optional(),
3031
3050
  code_challenge: r.string().optional(),
3032
3051
  username: r.string().optional()
3033
- }), Yn = r.object({
3052
+ }), Kn = r.object({
3034
3053
  colors: r.object({
3035
3054
  primary: r.string(),
3036
3055
  page_background: r.object({
@@ -3045,7 +3064,7 @@ const we = r.object({
3045
3064
  font: r.object({
3046
3065
  url: r.string()
3047
3066
  }).optional()
3048
- }), kn = r.object({
3067
+ }), xn = r.object({
3049
3068
  id: r.string().optional(),
3050
3069
  name: r.string(),
3051
3070
  client_id: r.string().optional(),
@@ -3060,11 +3079,11 @@ const we = r.object({
3060
3079
  token_exchange_basic_auth: r.boolean().optional(),
3061
3080
  userinfo_endpoint: r.string().optional(),
3062
3081
  scope: r.string().optional()
3063
- }), xn = r.object({
3082
+ }), wn = r.object({
3064
3083
  id: r.string(),
3065
3084
  created_at: r.string().transform((t) => t === null ? "" : t),
3066
3085
  updated_at: r.string().transform((t) => t === null ? "" : t)
3067
- }).extend(kn.shape), wn = r.object({
3086
+ }).extend(xn.shape), Sn = r.object({
3068
3087
  name: r.string(),
3069
3088
  audience: r.string(),
3070
3089
  sender_email: r.string().email(),
@@ -3074,12 +3093,12 @@ const we = r.object({
3074
3093
  primary_color: r.string().optional(),
3075
3094
  secondary_color: r.string().optional(),
3076
3095
  language: r.string().optional()
3077
- }), Sn = r.object({
3096
+ }), Tn = r.object({
3078
3097
  created_at: r.string().transform((t) => t === null ? "" : t),
3079
3098
  updated_at: r.string().transform((t) => t === null ? "" : t),
3080
3099
  id: r.string(),
3081
- ...wn.shape
3082
- }), Kn = r.object({
3100
+ ...Sn.shape
3101
+ }), Jn = r.object({
3083
3102
  logoUrl: r.string(),
3084
3103
  loginBackgroundImage: r.string().nullish(),
3085
3104
  style: r.object({
@@ -3096,7 +3115,7 @@ const we = r.object({
3096
3115
  checkoutHideSocial: r.boolean().optional(),
3097
3116
  siteUrl: r.string().nullable(),
3098
3117
  manageSubscriptionsUrl: r.string().optional()
3099
- }), Tn = r.object({
3118
+ }), Cn = r.object({
3100
3119
  domain: r.string(),
3101
3120
  dkim_private_key: r.string().optional(),
3102
3121
  dkim_public_key: r.string().optional(),
@@ -3104,10 +3123,10 @@ const we = r.object({
3104
3123
  email_service: r.union([r.literal("mailgun"), r.literal("mailchannels")]).optional()
3105
3124
  });
3106
3125
  r.object({
3107
- ...bn.shape,
3108
- domains: r.array(Tn),
3109
- tenant: Sn,
3110
- connections: r.array(xn)
3126
+ ...kn.shape,
3127
+ domains: r.array(Cn),
3128
+ tenant: Tn,
3129
+ connections: r.array(wn)
3111
3130
  });
3112
3131
  const En = r.enum([
3113
3132
  "password_reset",
@@ -3116,7 +3135,7 @@ const En = r.enum([
3116
3135
  "oauth2",
3117
3136
  "oauth2_state",
3118
3137
  "ticket"
3119
- ]), Cn = r.object({
3138
+ ]), On = r.object({
3120
3139
  code_id: r.string().openapi({
3121
3140
  description: "The code that will be used in for instance an email verification flow"
3122
3141
  }),
@@ -3126,19 +3145,19 @@ const En = r.enum([
3126
3145
  code_type: En,
3127
3146
  expires_at: r.string(),
3128
3147
  used_at: r.string().optional()
3129
- }), Jn = r.object({
3130
- ...Cn.shape,
3148
+ }), Qn = r.object({
3149
+ ...On.shape,
3131
3150
  created_at: r.string()
3132
- }), On = r.object({
3151
+ }), jn = r.object({
3133
3152
  domain: r.string(),
3134
3153
  dkim_private_key: r.string().optional(),
3135
3154
  dkim_public_key: r.string().optional(),
3136
3155
  email_api_key: r.string().optional(),
3137
3156
  email_service: r.enum(["mailgun", "mailchannels"])
3138
- }), Qn = De.extend({
3139
- ...On.shape,
3157
+ }), Xn = De.extend({
3158
+ ...jn.shape,
3140
3159
  id: r.string()
3141
- }), jn = r.object({
3160
+ }), In = r.object({
3142
3161
  trigger_id: r.enum([
3143
3162
  "pre-user-signup",
3144
3163
  "post-user-registration",
@@ -3149,19 +3168,19 @@ const En = r.enum([
3149
3168
  hook_id: r.string().optional(),
3150
3169
  synchronous: r.boolean().default(!1),
3151
3170
  priority: r.number().optional()
3152
- }), Xn = jn.extend({
3171
+ }), er = In.extend({
3153
3172
  ...De.shape,
3154
3173
  hook_id: r.string()
3155
- }), In = r.object({
3174
+ }), Nn = r.object({
3156
3175
  alg: r.string(),
3157
3176
  e: r.string(),
3158
3177
  kid: r.string(),
3159
3178
  kty: r.string(),
3160
3179
  n: r.string(),
3161
3180
  use: r.string().optional()
3162
- }), er = r.object({
3163
- keys: r.array(In)
3164
3181
  }), tr = r.object({
3182
+ keys: r.array(Nn)
3183
+ }), nr = r.object({
3165
3184
  issuer: r.string(),
3166
3185
  authorization_endpoint: r.string(),
3167
3186
  token_endpoint: r.string(),
@@ -3182,7 +3201,7 @@ const En = r.enum([
3182
3201
  request_uri_parameter_supported: r.boolean(),
3183
3202
  request_parameter_supported: r.boolean(),
3184
3203
  token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
3185
- }), Nn = r.object({
3204
+ }), Zn = r.object({
3186
3205
  auth0Client: r.string().optional(),
3187
3206
  authParams: we,
3188
3207
  expires_at: r.string(),
@@ -3190,16 +3209,16 @@ const En = r.enum([
3190
3209
  ip: r.string().optional()
3191
3210
  }).openapi({
3192
3211
  description: "This represents a login sesion"
3193
- }), nr = r.object({
3194
- ...Nn.shape,
3212
+ }), rr = r.object({
3213
+ ...Zn.shape,
3195
3214
  login_id: r.string().openapi({
3196
3215
  description: "This is is used as the state in the universal login"
3197
3216
  }),
3198
3217
  created_at: r.string(),
3199
3218
  updated_at: r.string()
3200
3219
  });
3201
- var Zn = /* @__PURE__ */ ((t) => (t.FAILED_SILENT_AUTH = "fsa", t.FAILED_SIGNUP = "fs", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.FAILED_CHANGE_PASSWORD = "fcp", t.FAILED_BY_CONNECTOR = "fc", t.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", t.FAILED_HOOK = "fh", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_CHANGE_PASSWORD = "scp", t.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", t.SUCCESS_CHANGE_USERNAME = "scu", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.SUCCESS_LOGIN = "s", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_SIGNUP = "ss", t.SUCCESS_SILENT_AUTH = "ssa", t.SUCCESS_VERIFICATION_EMAIL = "sv", t.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", t.CODE_LINK_SENT = "cls", t))(Zn || {});
3202
- const Rn = r.enum([
3220
+ var Rn = /* @__PURE__ */ ((t) => (t.FAILED_SILENT_AUTH = "fsa", t.FAILED_SIGNUP = "fs", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.FAILED_CHANGE_PASSWORD = "fcp", t.FAILED_BY_CONNECTOR = "fc", t.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", t.FAILED_HOOK = "fh", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_CHANGE_PASSWORD = "scp", t.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", t.SUCCESS_CHANGE_USERNAME = "scu", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.SUCCESS_LOGIN = "s", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_SIGNUP = "ss", t.SUCCESS_SILENT_AUTH = "ssa", t.SUCCESS_VERIFICATION_EMAIL = "sv", t.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", t.CODE_LINK_SENT = "cls", t))(Rn || {});
3221
+ const An = r.enum([
3203
3222
  "cls",
3204
3223
  // CODE_LINK_SENT
3205
3224
  "fsa",
@@ -3248,14 +3267,14 @@ const Rn = r.enum([
3248
3267
  // SUCCESS_VERIFICATION_EMAIL
3249
3268
  "svr"
3250
3269
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
3251
- ]), An = r.object({
3270
+ ]), Pn = r.object({
3252
3271
  name: r.string(),
3253
3272
  version: r.string(),
3254
3273
  env: r.object({
3255
3274
  node: r.string().optional()
3256
3275
  }).optional()
3257
- }), rr = r.object({
3258
- type: Rn,
3276
+ }), sr = r.object({
3277
+ type: An,
3259
3278
  date: r.string(),
3260
3279
  description: r.string().optional(),
3261
3280
  log_id: r.string().optional(),
@@ -3276,32 +3295,32 @@ const Rn = r.enum([
3276
3295
  strategy: r.string().optional(),
3277
3296
  strategy_type: r.string().optional(),
3278
3297
  hostname: r.string().optional(),
3279
- auth0_client: An.optional()
3280
- }), Pn = r.object({
3298
+ auth0_client: Pn.optional()
3299
+ }), Mn = r.object({
3281
3300
  user_id: r.string(),
3282
3301
  password: r.string(),
3283
3302
  algorithm: r.enum(["bcrypt", "argon2id"]).default("argon2id")
3284
- }), sr = r.object({
3285
- ...Pn.shape,
3303
+ }), ar = r.object({
3304
+ ...Mn.shape,
3286
3305
  created_at: r.string(),
3287
3306
  updated_at: r.string()
3288
- }), Mn = r.object({
3307
+ }), Dn = r.object({
3289
3308
  session_id: r.string(),
3290
3309
  client_id: r.string(),
3291
3310
  expires_at: r.string(),
3292
3311
  used_at: r.string(),
3293
3312
  deleted_at: r.string().optional(),
3294
3313
  user_id: r.string()
3295
- }), ar = r.object({
3296
- created_at: r.string(),
3297
- ...Mn.shape
3298
3314
  }), ir = r.object({
3315
+ created_at: r.string(),
3316
+ ...Dn.shape
3317
+ }), or = r.object({
3299
3318
  private_key: r.string(),
3300
3319
  public_key: r.string(),
3301
3320
  kid: r.string(),
3302
3321
  created_at: r.string(),
3303
3322
  revoked_at: r.string().optional()
3304
- }), or = r.object({
3323
+ }), cr = r.object({
3305
3324
  kid: r.string().openapi({ description: "The key id of the signing key" }),
3306
3325
  cert: r.string().openapi({ description: "The public certificate of the signing key" }),
3307
3326
  fingerprint: r.string().openapi({ description: "The cert fingerprint" }),
@@ -3322,7 +3341,7 @@ const Rn = r.enum([
3322
3341
  revoked_at: r.string().optional().openapi({ description: "The date and time when the key was revoked" })
3323
3342
  });
3324
3343
  var at = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(at || {});
3325
- const Ue = r.nativeEnum(at), cr = r.object({
3344
+ const Ue = r.nativeEnum(at), dr = r.object({
3326
3345
  grant_type: Ue.refine(
3327
3346
  (t) => t === "authorization_code"
3328
3347
  /* AuthorizationCode */
@@ -3330,7 +3349,7 @@ const Ue = r.nativeEnum(at), cr = r.object({
3330
3349
  code: r.string(),
3331
3350
  client_secret: r.string(),
3332
3351
  client_id: r.string()
3333
- }), dr = r.object({
3352
+ }), lr = r.object({
3334
3353
  grant_type: Ue.refine(
3335
3354
  (t) => t === "authorization_code"
3336
3355
  /* AuthorizationCode */
@@ -3339,7 +3358,7 @@ const Ue = r.nativeEnum(at), cr = r.object({
3339
3358
  code_verifier: r.string(),
3340
3359
  client_id: r.string().optional(),
3341
3360
  redirect_uri: r.string()
3342
- }), lr = r.object({
3361
+ }), ur = r.object({
3343
3362
  grant_type: Ue.refine(
3344
3363
  (t) => t === "client_credentials"
3345
3364
  /* ClientCredential */
@@ -3362,7 +3381,7 @@ r.object({
3362
3381
  code: r.string(),
3363
3382
  state: r.string().optional()
3364
3383
  });
3365
- const Dn = r.object({
3384
+ const Un = r.object({
3366
3385
  button_border_radius: r.number(),
3367
3386
  button_border_weight: r.number(),
3368
3387
  buttons_style: r.enum(["pill"]),
@@ -3372,7 +3391,7 @@ const Dn = r.object({
3372
3391
  show_widget_shadow: r.boolean(),
3373
3392
  widget_border_weight: r.number(),
3374
3393
  widget_corner_radius: r.number()
3375
- }), Un = r.object({
3394
+ }), $n = r.object({
3376
3395
  base_focus_color: r.string(),
3377
3396
  base_hover_color: r.string(),
3378
3397
  body_text: r.string(),
@@ -3395,7 +3414,7 @@ const Dn = r.object({
3395
3414
  }), W = r.object({
3396
3415
  bold: r.boolean(),
3397
3416
  size: r.number()
3398
- }), $n = r.object({
3417
+ }), Vn = r.object({
3399
3418
  body_text: W,
3400
3419
  buttons_text: W,
3401
3420
  font_url: r.string(),
@@ -3405,35 +3424,35 @@ const Dn = r.object({
3405
3424
  reference_text_size: r.number(),
3406
3425
  subtitle: W,
3407
3426
  title: W
3408
- }), Vn = r.object({
3427
+ }), Ln = r.object({
3409
3428
  background_color: r.string(),
3410
3429
  background_image_url: r.string(),
3411
3430
  page_layout: r.enum(["center"])
3412
- }), Ln = r.object({
3431
+ }), zn = r.object({
3413
3432
  header_text_alignment: r.enum(["center"]),
3414
3433
  logo_height: r.number(),
3415
3434
  logo_position: r.enum(["center"]),
3416
3435
  logo_url: r.string(),
3417
3436
  social_buttons_layout: r.enum(["bottom"])
3418
- }), zn = r.object({
3419
- borders: Dn,
3420
- colors: Un,
3437
+ }), Bn = r.object({
3438
+ borders: Un,
3439
+ colors: $n,
3421
3440
  displayName: r.string(),
3422
- fonts: $n,
3423
- page_background: Vn,
3424
- widget: Ln
3425
- }), ur = zn.extend({
3441
+ fonts: Vn,
3442
+ page_background: Ln,
3443
+ widget: zn
3444
+ }), pr = Bn.extend({
3426
3445
  themeId: r.string()
3427
- }), Bn = r.object({
3446
+ }), Wn = r.object({
3428
3447
  id: r.string(),
3429
3448
  expires_at: r.string(),
3430
3449
  auth0Client: r.string().optional(),
3431
3450
  authParams: we
3432
- }), pr = r.object({
3433
- ...Bn.shape,
3451
+ }), hr = r.object({
3452
+ ...Wn.shape,
3434
3453
  created_at: r.string(),
3435
3454
  updated_at: r.string()
3436
- }), Wn = r.object({
3455
+ }), Gn = r.object({
3437
3456
  id: r.string(),
3438
3457
  email: r.string(),
3439
3458
  code: r.string(),
@@ -3443,85 +3462,86 @@ const Dn = r.object({
3443
3462
  expires_at: r.string(),
3444
3463
  used_at: r.string().optional(),
3445
3464
  user_id: r.string().optional()
3446
- }), hr = r.object({
3465
+ }), fr = r.object({
3447
3466
  created_at: r.string(),
3448
- ...Wn.shape
3449
- }), Gn = r.object({
3467
+ ...Gn.shape
3468
+ }), Hn = r.object({
3450
3469
  authParams: we,
3451
3470
  code: r.string(),
3452
3471
  user_id: r.string(),
3453
3472
  created_at: r.string(),
3454
3473
  expires_at: r.string(),
3455
3474
  used_at: r.string().optional()
3456
- }), fr = r.object({
3457
- ...Gn.shape,
3475
+ }), mr = r.object({
3476
+ ...Hn.shape,
3458
3477
  created_at: r.string()
3459
3478
  });
3460
- function mr(t) {
3479
+ function _r(t) {
3461
3480
  const [e, n] = t.split("|");
3462
3481
  if (!e || !n)
3463
3482
  throw new Error(`Invalid user_id: ${t}`);
3464
3483
  return { connection: e, id: n };
3465
3484
  }
3466
3485
  export {
3467
- An as Auth0Client,
3486
+ Pn as Auth0Client,
3468
3487
  rt as AuthorizationResponseMode,
3469
3488
  nt as AuthorizationResponseType,
3470
3489
  st as CodeChallengeMethod,
3471
3490
  at as GrantType,
3472
- Zn as LogTypes,
3473
- vn as applicationInsertSchema,
3474
- bn as applicationSchema,
3475
- qn as auth0UserResponseSchema,
3491
+ Rn as LogTypes,
3492
+ bn as applicationInsertSchema,
3493
+ kn as applicationSchema,
3494
+ Fn as auth0UserResponseSchema,
3476
3495
  we as authParamsSchema,
3477
- Gn as authenticationCodeInsertSchema,
3478
- fr as authenticationCodeSchema,
3479
- cr as authorizationCodeGrantTypeParamsSchema,
3496
+ Hn as authenticationCodeInsertSchema,
3497
+ mr as authenticationCodeSchema,
3498
+ dr as authorizationCodeGrantTypeParamsSchema,
3480
3499
  tt as baseUserSchema,
3481
- Dn as bordersSchema,
3482
- Yn as brandingSchema,
3483
- ir as certificateSchema,
3484
- lr as clientCredentialGrantTypeParamsSchema,
3485
- Cn as codeInsertSchema,
3486
- Jn as codeSchema,
3500
+ Un as bordersSchema,
3501
+ Kn as brandingSchema,
3502
+ or as certificateSchema,
3503
+ ur as clientCredentialGrantTypeParamsSchema,
3504
+ On as codeInsertSchema,
3505
+ Qn as codeSchema,
3487
3506
  En as codeTypeSchema,
3488
- Un as colorsSchema,
3489
- kn as connectionInsertSchema,
3490
- xn as connectionSchema,
3491
- On as domainInsertSchema,
3492
- Qn as domainSchema,
3507
+ $n as colorsSchema,
3508
+ xn as connectionInsertSchema,
3509
+ wn as connectionSchema,
3510
+ jn as domainInsertSchema,
3511
+ Xn as domainSchema,
3493
3512
  W as fontDetailsSchema,
3494
- $n as fontsSchema,
3495
- jn as hookInsertSchema,
3496
- Xn as hookSchema,
3513
+ Vn as fontsSchema,
3514
+ In as hookInsertSchema,
3515
+ er as hookSchema,
3497
3516
  _n as identitySchema,
3498
- er as jwksKeySchema,
3499
- In as jwksSchema,
3500
- rr as logSchema,
3501
- Nn as loginInsertSchema,
3502
- nr as loginSchema,
3503
- tr as openIDConfigurationSchema,
3504
- Wn as otpInsertSchema,
3505
- hr as otpSchema,
3506
- Vn as pageBackgroundSchema,
3507
- mr as parseUserId,
3508
- Pn as passwordInsertSchema,
3509
- sr as passwordSchema,
3510
- dr as pkceAuthorizationCodeGrantTypeParamsSchema,
3517
+ tr as jwksKeySchema,
3518
+ Nn as jwksSchema,
3519
+ sr as logSchema,
3520
+ Zn as loginInsertSchema,
3521
+ rr as loginSchema,
3522
+ nr as openIDConfigurationSchema,
3523
+ Gn as otpInsertSchema,
3524
+ fr as otpSchema,
3525
+ Ln as pageBackgroundSchema,
3526
+ _r as parseUserId,
3527
+ Mn as passwordInsertSchema,
3528
+ ar as passwordSchema,
3529
+ lr as pkceAuthorizationCodeGrantTypeParamsSchema,
3511
3530
  mn as profileDataSchema,
3512
- Mn as sessionInsertSchema,
3513
- ar as sessionSchema,
3514
- or as signingKeySchema,
3515
- wn as tenantInsertSchema,
3516
- Sn as tenantSchema,
3517
- zn as themeInsertSchema,
3518
- ur as themeSchema,
3519
- Hn as totalsSchema,
3520
- Bn as universalLoginSessionInsertSchema,
3521
- pr as universalLoginSessionSchema,
3531
+ vn as samlpAddon,
3532
+ Dn as sessionInsertSchema,
3533
+ ir as sessionSchema,
3534
+ cr as signingKeySchema,
3535
+ Sn as tenantInsertSchema,
3536
+ Tn as tenantSchema,
3537
+ Bn as themeInsertSchema,
3538
+ pr as themeSchema,
3539
+ qn as totalsSchema,
3540
+ Wn as universalLoginSessionInsertSchema,
3541
+ hr as universalLoginSessionSchema,
3522
3542
  gn as userInsertSchema,
3523
- Fn as userResponseSchema,
3543
+ Yn as userResponseSchema,
3524
3544
  yn as userSchema,
3525
- Kn as vendorSettingsSchema,
3526
- Ln as widgetSchema
3545
+ Jn as vendorSettingsSchema,
3546
+ zn as widgetSchema
3527
3547
  };