@authhero/adapter-interfaces 0.11.3 → 0.11.5

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,29 +3135,32 @@ 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
  }),
3123
3142
  login_id: r.string().openapi({
3124
3143
  description: "The id of the login session that the code is connected to"
3125
3144
  }),
3145
+ connection_id: r.string().optional().openapi({
3146
+ description: "The connection that the code is connected to"
3147
+ }),
3126
3148
  code_type: En,
3127
3149
  expires_at: r.string(),
3128
3150
  used_at: r.string().optional()
3129
- }), Jn = r.object({
3130
- ...Cn.shape,
3151
+ }), Qn = r.object({
3152
+ ...On.shape,
3131
3153
  created_at: r.string()
3132
- }), On = r.object({
3154
+ }), jn = r.object({
3133
3155
  domain: r.string(),
3134
3156
  dkim_private_key: r.string().optional(),
3135
3157
  dkim_public_key: r.string().optional(),
3136
3158
  email_api_key: r.string().optional(),
3137
3159
  email_service: r.enum(["mailgun", "mailchannels"])
3138
- }), Qn = De.extend({
3139
- ...On.shape,
3160
+ }), Xn = De.extend({
3161
+ ...jn.shape,
3140
3162
  id: r.string()
3141
- }), jn = r.object({
3163
+ }), In = r.object({
3142
3164
  trigger_id: r.enum([
3143
3165
  "pre-user-signup",
3144
3166
  "post-user-registration",
@@ -3149,19 +3171,19 @@ const En = r.enum([
3149
3171
  hook_id: r.string().optional(),
3150
3172
  synchronous: r.boolean().default(!1),
3151
3173
  priority: r.number().optional()
3152
- }), Xn = jn.extend({
3174
+ }), er = In.extend({
3153
3175
  ...De.shape,
3154
3176
  hook_id: r.string()
3155
- }), In = r.object({
3177
+ }), Nn = r.object({
3156
3178
  alg: r.string(),
3157
3179
  e: r.string(),
3158
3180
  kid: r.string(),
3159
3181
  kty: r.string(),
3160
3182
  n: r.string(),
3161
3183
  use: r.string().optional()
3162
- }), er = r.object({
3163
- keys: r.array(In)
3164
3184
  }), tr = r.object({
3185
+ keys: r.array(Nn)
3186
+ }), nr = r.object({
3165
3187
  issuer: r.string(),
3166
3188
  authorization_endpoint: r.string(),
3167
3189
  token_endpoint: r.string(),
@@ -3182,7 +3204,7 @@ const En = r.enum([
3182
3204
  request_uri_parameter_supported: r.boolean(),
3183
3205
  request_parameter_supported: r.boolean(),
3184
3206
  token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
3185
- }), Nn = r.object({
3207
+ }), Zn = r.object({
3186
3208
  auth0Client: r.string().optional(),
3187
3209
  authParams: we,
3188
3210
  expires_at: r.string(),
@@ -3190,16 +3212,16 @@ const En = r.enum([
3190
3212
  ip: r.string().optional()
3191
3213
  }).openapi({
3192
3214
  description: "This represents a login sesion"
3193
- }), nr = r.object({
3194
- ...Nn.shape,
3215
+ }), rr = r.object({
3216
+ ...Zn.shape,
3195
3217
  login_id: r.string().openapi({
3196
3218
  description: "This is is used as the state in the universal login"
3197
3219
  }),
3198
3220
  created_at: r.string(),
3199
3221
  updated_at: r.string()
3200
3222
  });
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([
3223
+ 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 || {});
3224
+ const An = r.enum([
3203
3225
  "cls",
3204
3226
  // CODE_LINK_SENT
3205
3227
  "fsa",
@@ -3248,14 +3270,14 @@ const Rn = r.enum([
3248
3270
  // SUCCESS_VERIFICATION_EMAIL
3249
3271
  "svr"
3250
3272
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
3251
- ]), An = r.object({
3273
+ ]), Pn = r.object({
3252
3274
  name: r.string(),
3253
3275
  version: r.string(),
3254
3276
  env: r.object({
3255
3277
  node: r.string().optional()
3256
3278
  }).optional()
3257
- }), rr = r.object({
3258
- type: Rn,
3279
+ }), sr = r.object({
3280
+ type: An,
3259
3281
  date: r.string(),
3260
3282
  description: r.string().optional(),
3261
3283
  log_id: r.string().optional(),
@@ -3276,32 +3298,32 @@ const Rn = r.enum([
3276
3298
  strategy: r.string().optional(),
3277
3299
  strategy_type: r.string().optional(),
3278
3300
  hostname: r.string().optional(),
3279
- auth0_client: An.optional()
3280
- }), Pn = r.object({
3301
+ auth0_client: Pn.optional()
3302
+ }), Mn = r.object({
3281
3303
  user_id: r.string(),
3282
3304
  password: r.string(),
3283
3305
  algorithm: r.enum(["bcrypt", "argon2id"]).default("argon2id")
3284
- }), sr = r.object({
3285
- ...Pn.shape,
3306
+ }), ar = r.object({
3307
+ ...Mn.shape,
3286
3308
  created_at: r.string(),
3287
3309
  updated_at: r.string()
3288
- }), Mn = r.object({
3310
+ }), Dn = r.object({
3289
3311
  session_id: r.string(),
3290
3312
  client_id: r.string(),
3291
3313
  expires_at: r.string(),
3292
3314
  used_at: r.string(),
3293
3315
  deleted_at: r.string().optional(),
3294
3316
  user_id: r.string()
3295
- }), ar = r.object({
3296
- created_at: r.string(),
3297
- ...Mn.shape
3298
3317
  }), ir = r.object({
3318
+ created_at: r.string(),
3319
+ ...Dn.shape
3320
+ }), or = r.object({
3299
3321
  private_key: r.string(),
3300
3322
  public_key: r.string(),
3301
3323
  kid: r.string(),
3302
3324
  created_at: r.string(),
3303
3325
  revoked_at: r.string().optional()
3304
- }), or = r.object({
3326
+ }), cr = r.object({
3305
3327
  kid: r.string().openapi({ description: "The key id of the signing key" }),
3306
3328
  cert: r.string().openapi({ description: "The public certificate of the signing key" }),
3307
3329
  fingerprint: r.string().openapi({ description: "The cert fingerprint" }),
@@ -3322,7 +3344,7 @@ const Rn = r.enum([
3322
3344
  revoked_at: r.string().optional().openapi({ description: "The date and time when the key was revoked" })
3323
3345
  });
3324
3346
  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({
3347
+ const Ue = r.nativeEnum(at), dr = r.object({
3326
3348
  grant_type: Ue.refine(
3327
3349
  (t) => t === "authorization_code"
3328
3350
  /* AuthorizationCode */
@@ -3330,7 +3352,7 @@ const Ue = r.nativeEnum(at), cr = r.object({
3330
3352
  code: r.string(),
3331
3353
  client_secret: r.string(),
3332
3354
  client_id: r.string()
3333
- }), dr = r.object({
3355
+ }), lr = r.object({
3334
3356
  grant_type: Ue.refine(
3335
3357
  (t) => t === "authorization_code"
3336
3358
  /* AuthorizationCode */
@@ -3339,7 +3361,7 @@ const Ue = r.nativeEnum(at), cr = r.object({
3339
3361
  code_verifier: r.string(),
3340
3362
  client_id: r.string().optional(),
3341
3363
  redirect_uri: r.string()
3342
- }), lr = r.object({
3364
+ }), ur = r.object({
3343
3365
  grant_type: Ue.refine(
3344
3366
  (t) => t === "client_credentials"
3345
3367
  /* ClientCredential */
@@ -3362,7 +3384,7 @@ r.object({
3362
3384
  code: r.string(),
3363
3385
  state: r.string().optional()
3364
3386
  });
3365
- const Dn = r.object({
3387
+ const Un = r.object({
3366
3388
  button_border_radius: r.number(),
3367
3389
  button_border_weight: r.number(),
3368
3390
  buttons_style: r.enum(["pill"]),
@@ -3372,7 +3394,7 @@ const Dn = r.object({
3372
3394
  show_widget_shadow: r.boolean(),
3373
3395
  widget_border_weight: r.number(),
3374
3396
  widget_corner_radius: r.number()
3375
- }), Un = r.object({
3397
+ }), $n = r.object({
3376
3398
  base_focus_color: r.string(),
3377
3399
  base_hover_color: r.string(),
3378
3400
  body_text: r.string(),
@@ -3395,7 +3417,7 @@ const Dn = r.object({
3395
3417
  }), W = r.object({
3396
3418
  bold: r.boolean(),
3397
3419
  size: r.number()
3398
- }), $n = r.object({
3420
+ }), Vn = r.object({
3399
3421
  body_text: W,
3400
3422
  buttons_text: W,
3401
3423
  font_url: r.string(),
@@ -3405,35 +3427,35 @@ const Dn = r.object({
3405
3427
  reference_text_size: r.number(),
3406
3428
  subtitle: W,
3407
3429
  title: W
3408
- }), Vn = r.object({
3430
+ }), Ln = r.object({
3409
3431
  background_color: r.string(),
3410
3432
  background_image_url: r.string(),
3411
3433
  page_layout: r.enum(["center"])
3412
- }), Ln = r.object({
3434
+ }), zn = r.object({
3413
3435
  header_text_alignment: r.enum(["center"]),
3414
3436
  logo_height: r.number(),
3415
3437
  logo_position: r.enum(["center"]),
3416
3438
  logo_url: r.string(),
3417
3439
  social_buttons_layout: r.enum(["bottom"])
3418
- }), zn = r.object({
3419
- borders: Dn,
3420
- colors: Un,
3440
+ }), Bn = r.object({
3441
+ borders: Un,
3442
+ colors: $n,
3421
3443
  displayName: r.string(),
3422
- fonts: $n,
3423
- page_background: Vn,
3424
- widget: Ln
3425
- }), ur = zn.extend({
3444
+ fonts: Vn,
3445
+ page_background: Ln,
3446
+ widget: zn
3447
+ }), pr = Bn.extend({
3426
3448
  themeId: r.string()
3427
- }), Bn = r.object({
3449
+ }), Wn = r.object({
3428
3450
  id: r.string(),
3429
3451
  expires_at: r.string(),
3430
3452
  auth0Client: r.string().optional(),
3431
3453
  authParams: we
3432
- }), pr = r.object({
3433
- ...Bn.shape,
3454
+ }), hr = r.object({
3455
+ ...Wn.shape,
3434
3456
  created_at: r.string(),
3435
3457
  updated_at: r.string()
3436
- }), Wn = r.object({
3458
+ }), Gn = r.object({
3437
3459
  id: r.string(),
3438
3460
  email: r.string(),
3439
3461
  code: r.string(),
@@ -3443,85 +3465,86 @@ const Dn = r.object({
3443
3465
  expires_at: r.string(),
3444
3466
  used_at: r.string().optional(),
3445
3467
  user_id: r.string().optional()
3446
- }), hr = r.object({
3468
+ }), fr = r.object({
3447
3469
  created_at: r.string(),
3448
- ...Wn.shape
3449
- }), Gn = r.object({
3470
+ ...Gn.shape
3471
+ }), Hn = r.object({
3450
3472
  authParams: we,
3451
3473
  code: r.string(),
3452
3474
  user_id: r.string(),
3453
3475
  created_at: r.string(),
3454
3476
  expires_at: r.string(),
3455
3477
  used_at: r.string().optional()
3456
- }), fr = r.object({
3457
- ...Gn.shape,
3478
+ }), mr = r.object({
3479
+ ...Hn.shape,
3458
3480
  created_at: r.string()
3459
3481
  });
3460
- function mr(t) {
3482
+ function _r(t) {
3461
3483
  const [e, n] = t.split("|");
3462
3484
  if (!e || !n)
3463
3485
  throw new Error(`Invalid user_id: ${t}`);
3464
3486
  return { connection: e, id: n };
3465
3487
  }
3466
3488
  export {
3467
- An as Auth0Client,
3489
+ Pn as Auth0Client,
3468
3490
  rt as AuthorizationResponseMode,
3469
3491
  nt as AuthorizationResponseType,
3470
3492
  st as CodeChallengeMethod,
3471
3493
  at as GrantType,
3472
- Zn as LogTypes,
3473
- vn as applicationInsertSchema,
3474
- bn as applicationSchema,
3475
- qn as auth0UserResponseSchema,
3494
+ Rn as LogTypes,
3495
+ bn as applicationInsertSchema,
3496
+ kn as applicationSchema,
3497
+ Fn as auth0UserResponseSchema,
3476
3498
  we as authParamsSchema,
3477
- Gn as authenticationCodeInsertSchema,
3478
- fr as authenticationCodeSchema,
3479
- cr as authorizationCodeGrantTypeParamsSchema,
3499
+ Hn as authenticationCodeInsertSchema,
3500
+ mr as authenticationCodeSchema,
3501
+ dr as authorizationCodeGrantTypeParamsSchema,
3480
3502
  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,
3503
+ Un as bordersSchema,
3504
+ Kn as brandingSchema,
3505
+ or as certificateSchema,
3506
+ ur as clientCredentialGrantTypeParamsSchema,
3507
+ On as codeInsertSchema,
3508
+ Qn as codeSchema,
3487
3509
  En as codeTypeSchema,
3488
- Un as colorsSchema,
3489
- kn as connectionInsertSchema,
3490
- xn as connectionSchema,
3491
- On as domainInsertSchema,
3492
- Qn as domainSchema,
3510
+ $n as colorsSchema,
3511
+ xn as connectionInsertSchema,
3512
+ wn as connectionSchema,
3513
+ jn as domainInsertSchema,
3514
+ Xn as domainSchema,
3493
3515
  W as fontDetailsSchema,
3494
- $n as fontsSchema,
3495
- jn as hookInsertSchema,
3496
- Xn as hookSchema,
3516
+ Vn as fontsSchema,
3517
+ In as hookInsertSchema,
3518
+ er as hookSchema,
3497
3519
  _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,
3520
+ tr as jwksKeySchema,
3521
+ Nn as jwksSchema,
3522
+ sr as logSchema,
3523
+ Zn as loginInsertSchema,
3524
+ rr as loginSchema,
3525
+ nr as openIDConfigurationSchema,
3526
+ Gn as otpInsertSchema,
3527
+ fr as otpSchema,
3528
+ Ln as pageBackgroundSchema,
3529
+ _r as parseUserId,
3530
+ Mn as passwordInsertSchema,
3531
+ ar as passwordSchema,
3532
+ lr as pkceAuthorizationCodeGrantTypeParamsSchema,
3511
3533
  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,
3534
+ vn as samlpAddon,
3535
+ Dn as sessionInsertSchema,
3536
+ ir as sessionSchema,
3537
+ cr as signingKeySchema,
3538
+ Sn as tenantInsertSchema,
3539
+ Tn as tenantSchema,
3540
+ Bn as themeInsertSchema,
3541
+ pr as themeSchema,
3542
+ qn as totalsSchema,
3543
+ Wn as universalLoginSessionInsertSchema,
3544
+ hr as universalLoginSessionSchema,
3522
3545
  gn as userInsertSchema,
3523
- Fn as userResponseSchema,
3546
+ Yn as userResponseSchema,
3524
3547
  yn as userSchema,
3525
- Kn as vendorSettingsSchema,
3526
- Ln as widgetSchema
3548
+ Jn as vendorSettingsSchema,
3549
+ zn as widgetSchema
3527
3550
  };