@authhero/adapter-interfaces 0.63.0 → 0.64.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.
@@ -1,5 +1,5 @@
1
1
  import { z as t } from "@hono/zod-openapi";
2
- const ut = t.object({
2
+ const _t = t.object({
3
3
  start: t.number(),
4
4
  limit: t.number(),
5
5
  length: t.number()
@@ -15,7 +15,7 @@ const ut = t.object({
15
15
  phone_number: t.string().optional(),
16
16
  phone_verified: t.boolean().optional(),
17
17
  family_name: t.string().optional()
18
- }).catchall(t.any()), h = t.object({
18
+ }).catchall(t.any()), b = t.object({
19
19
  connection: t.string(),
20
20
  user_id: t.string(),
21
21
  provider: t.string(),
@@ -25,7 +25,7 @@ const ut = t.object({
25
25
  refresh_token: t.string().optional(),
26
26
  profileData: m.optional()
27
27
  }), l = t.object({
28
- email: t.string().optional().transform((n) => n && n.toLowerCase()),
28
+ email: t.string().optional().transform((e) => e && e.toLowerCase()),
29
29
  username: t.string().optional(),
30
30
  phone_number: t.string().optional(),
31
31
  given_name: t.string().optional(),
@@ -39,7 +39,7 @@ const ut = t.object({
39
39
  user_id: t.string().optional(),
40
40
  app_metadata: t.any().default({}).optional(),
41
41
  user_metadata: t.any().default({}).optional()
42
- }), b = l.extend({
42
+ }), h = l.extend({
43
43
  email_verified: t.boolean().default(!1),
44
44
  verify_email: t.boolean().optional(),
45
45
  last_ip: t.string().optional(),
@@ -49,24 +49,24 @@ const ut = t.object({
49
49
  connection: t.string().default("email"),
50
50
  is_social: t.boolean().optional()
51
51
  }), f = t.object({
52
- ...b.shape,
52
+ ...h.shape,
53
53
  ...r.shape,
54
54
  user_id: t.string(),
55
55
  is_social: t.boolean(),
56
56
  email: t.string().optional(),
57
57
  login_count: t.number().default(0),
58
- identities: t.array(h).optional()
59
- }), _t = f, mt = l.extend({
58
+ identities: t.array(b).optional()
59
+ }), mt = f, bt = l.extend({
60
60
  login_count: t.number(),
61
61
  multifactor: t.array(t.string()).optional(),
62
62
  last_ip: t.string().optional(),
63
63
  last_login: t.string().optional(),
64
64
  user_id: t.string()
65
65
  }).catchall(t.any()), S = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
- let E = (n = 21) => {
67
- let i = "", a = crypto.getRandomValues(new Uint8Array(n));
68
- for (; n--; )
69
- i += S[a[n] & 63];
66
+ let E = (e = 21) => {
67
+ let i = "", a = crypto.getRandomValues(new Uint8Array(e));
68
+ for (; e--; )
69
+ i += S[a[e] & 63];
70
70
  return i;
71
71
  };
72
72
  const j = t.object({
@@ -117,14 +117,14 @@ const j = t.object({
117
117
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
118
118
  })
119
119
  }), I = t.object({
120
- created_at: t.string().transform((n) => n === null ? "" : n),
121
- updated_at: t.string().transform((n) => n === null ? "" : n),
120
+ created_at: t.string().transform((e) => e === null ? "" : e),
121
+ updated_at: t.string().transform((e) => e === null ? "" : e),
122
122
  ...y.shape
123
123
  }), o = t.object({
124
124
  x: t.number(),
125
125
  y: t.number()
126
126
  });
127
- var c = /* @__PURE__ */ ((n) => (n.RICH_TEXT = "RICH_TEXT", n.NEXT_BUTTON = "NEXT_BUTTON", n.BACK_BUTTON = "BACK_BUTTON", n.SUBMIT_BUTTON = "SUBMIT_BUTTON", n.DIVIDER = "DIVIDER", n.TEXT = "TEXT", n.EMAIL = "EMAIL", n.PASSWORD = "PASSWORD", n.NUMBER = "NUMBER", n.PHONE = "PHONE", n.DATE = "DATE", n.CHECKBOX = "CHECKBOX", n.RADIO = "RADIO", n.SELECT = "SELECT", n.HIDDEN = "HIDDEN", n.LEGAL = "LEGAL", n))(c || {}), p = /* @__PURE__ */ ((n) => (n.BLOCK = "BLOCK", n.FIELD = "FIELD", n))(p || {});
127
+ var c = /* @__PURE__ */ ((e) => (e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e))(c || {}), p = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(p || {});
128
128
  const s = t.object({
129
129
  id: t.string(),
130
130
  category: t.nativeEnum(p),
@@ -230,18 +230,18 @@ const s = t.object({
230
230
  label: t.string().optional(),
231
231
  placeholder: t.string().optional()
232
232
  }).passthrough()
233
- }), A = t.object({
233
+ }), v = t.object({
234
234
  id: t.string(),
235
235
  category: t.string(),
236
236
  type: t.string()
237
- }).passthrough(), v = t.union([
237
+ }).passthrough(), A = t.union([
238
238
  w,
239
239
  C,
240
240
  k,
241
241
  O,
242
- A
242
+ v
243
243
  ]);
244
- var N = /* @__PURE__ */ ((n) => (n.STEP = "STEP", n.FLOW = "FLOW", n.CONDITION = "CONDITION", n.ACTION = "ACTION", n))(N || {});
244
+ var N = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(N || {});
245
245
  const T = t.object({
246
246
  id: t.string(),
247
247
  type: t.literal(
@@ -251,7 +251,7 @@ const T = t.object({
251
251
  coordinates: o,
252
252
  alias: t.string().optional(),
253
253
  config: t.object({
254
- components: t.array(v),
254
+ components: t.array(A),
255
255
  next_node: t.string()
256
256
  }).passthrough()
257
257
  }), U = t.object({
@@ -266,41 +266,41 @@ const T = t.object({
266
266
  flow_id: t.string(),
267
267
  next_node: t.string()
268
268
  })
269
- }), D = t.object({
269
+ }), x = t.object({
270
270
  id: t.string(),
271
271
  type: t.string(),
272
272
  coordinates: o
273
- }).passthrough(), x = t.union([
273
+ }).passthrough(), D = t.union([
274
274
  T,
275
275
  U,
276
- D
276
+ x
277
277
  ]), R = t.object({
278
278
  next_node: t.string(),
279
279
  coordinates: o
280
- }).passthrough(), P = t.object({
280
+ }).passthrough(), L = t.object({
281
281
  resume_flow: t.boolean().optional(),
282
282
  coordinates: o
283
- }).passthrough(), L = t.object({
283
+ }).passthrough(), P = t.object({
284
284
  id: t.string(),
285
285
  name: t.string(),
286
286
  languages: t.object({
287
287
  primary: t.string()
288
288
  }).passthrough(),
289
- nodes: t.array(x),
289
+ nodes: t.array(D),
290
290
  start: R,
291
- ending: P,
291
+ ending: L,
292
292
  created_at: t.string(),
293
293
  updated_at: t.string(),
294
294
  links: t.object({
295
295
  sdkSrc: t.string().optional(),
296
296
  sdk_src: t.string().optional()
297
297
  }).passthrough()
298
- }).passthrough(), ht = L.omit({
298
+ }).passthrough(), ht = P.omit({
299
299
  id: !0,
300
300
  created_at: !0,
301
301
  updated_at: !0
302
302
  });
303
- var g = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(g || {}), d = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(d || {}), u = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(u || {});
303
+ var g = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(g || {}), d = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(d || {}), u = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(u || {});
304
304
  const B = t.object({
305
305
  client_id: t.string(),
306
306
  act_as: t.string().optional(),
@@ -319,7 +319,7 @@ const B = t.object({
319
319
  ui_locales: t.string().optional(),
320
320
  // The following fields are not available in Auth0
321
321
  vendor_id: t.string().optional()
322
- }), bt = t.object({
322
+ }), ft = t.object({
323
323
  colors: t.object({
324
324
  primary: t.string(),
325
325
  page_background: t.object({
@@ -362,8 +362,8 @@ const B = t.object({
362
362
  response_mode: t.custom().optional()
363
363
  }), K = t.object({
364
364
  id: t.string(),
365
- created_at: t.string().transform((n) => n === null ? "" : n),
366
- updated_at: t.string().transform((n) => n === null ? "" : n)
365
+ created_at: t.string().transform((e) => e === null ? "" : e),
366
+ updated_at: t.string().transform((e) => e === null ? "" : e)
367
367
  }).extend(H.shape), M = t.object({
368
368
  name: t.string(),
369
369
  audience: t.string(),
@@ -376,11 +376,11 @@ const B = t.object({
376
376
  language: t.string().optional(),
377
377
  id: t.string().optional()
378
378
  }), G = t.object({
379
- created_at: t.string().transform((n) => n === null ? "" : n),
380
- updated_at: t.string().transform((n) => n === null ? "" : n),
379
+ created_at: t.string().transform((e) => e === null ? "" : e),
380
+ updated_at: t.string().transform((e) => e === null ? "" : e),
381
381
  ...M.shape,
382
382
  id: t.string()
383
- }), ft = t.object({
383
+ }), St = t.object({
384
384
  logoUrl: t.string(),
385
385
  loginBackgroundImage: t.string().nullish(),
386
386
  style: t.object({
@@ -403,14 +403,14 @@ t.object({
403
403
  tenant: G,
404
404
  connections: t.array(K)
405
405
  });
406
- const W = t.enum([
406
+ const X = t.enum([
407
407
  "password_reset",
408
408
  "email_verification",
409
409
  "otp",
410
410
  "authorization_code",
411
411
  "oauth2_state",
412
412
  "ticket"
413
- ]), X = t.object({
413
+ ]), W = t.object({
414
414
  code_id: t.string().openapi({
415
415
  description: "The code that will be used in for instance an email verification flow"
416
416
  }),
@@ -420,15 +420,15 @@ const W = t.enum([
420
420
  connection_id: t.string().optional().openapi({
421
421
  description: "The connection that the code is connected to"
422
422
  }),
423
- code_type: W,
423
+ code_type: X,
424
424
  code_verifier: t.string().optional().openapi({
425
425
  description: "The code verifier used in PKCE in outbound flows"
426
426
  }),
427
427
  expires_at: t.string(),
428
428
  used_at: t.string().optional(),
429
429
  user_id: t.string().optional()
430
- }), St = t.object({
431
- ...X.shape,
430
+ }), Et = t.object({
431
+ ...W.shape,
432
432
  created_at: t.string()
433
433
  }), q = t.object({
434
434
  domain: t.string(),
@@ -458,9 +458,9 @@ const W = t.enum([
458
458
  methods: t.array(V)
459
459
  }).optional(),
460
460
  tls_policy: t.string().optional()
461
- }), Et = z.extend({
461
+ }), jt = z.extend({
462
462
  tenant_id: t.string()
463
- }), jt = t.object({
463
+ }), yt = t.object({
464
464
  id: t.string(),
465
465
  type: t.literal("submit"),
466
466
  label: t.string(),
@@ -469,7 +469,38 @@ const W = t.enum([
469
469
  order: t.number().optional(),
470
470
  visible: t.boolean().optional().default(!0),
471
471
  customizations: t.record(t.string(), t.any()).optional()
472
- }), Q = t.object({
472
+ }), Q = t.discriminatedUnion("type", [
473
+ t.object({
474
+ id: t.string(),
475
+ type: t.literal("RICH_TEXT"),
476
+ config: t.object({
477
+ content: t.string()
478
+ }),
479
+ order: t.number().optional(),
480
+ visible: t.boolean().optional().default(!0)
481
+ }),
482
+ t.object({
483
+ id: t.string(),
484
+ type: t.literal("LEGAL"),
485
+ config: t.object({
486
+ text: t.string(),
487
+ html: t.boolean().optional()
488
+ }),
489
+ required: t.boolean().optional(),
490
+ order: t.number().optional(),
491
+ visible: t.boolean().optional().default(!0)
492
+ }),
493
+ t.object({
494
+ id: t.string(),
495
+ type: t.literal("NEXT_BUTTON"),
496
+ config: t.object({
497
+ text: t.string().optional()
498
+ }),
499
+ order: t.number().optional(),
500
+ visible: t.boolean().optional().default(!0)
501
+ })
502
+ // Add more component types as needed
503
+ ]), Y = t.object({
473
504
  name: t.string().openapi({
474
505
  description: "The name of the form"
475
506
  }),
@@ -507,7 +538,6 @@ const W = t.enum([
507
538
  id: t.string(),
508
539
  alias: t.string().min(1).max(150).optional(),
509
540
  condition: t.any(),
510
- // condition is required but type is not specified
511
541
  next_node: t.string()
512
542
  })
513
543
  ),
@@ -521,8 +551,7 @@ const W = t.enum([
521
551
  coordinates: t.object({ x: t.number(), y: t.number() }),
522
552
  alias: t.string().min(1).max(150).optional(),
523
553
  config: t.object({
524
- components: t.array(t.any()),
525
- // components is an array of objects, structure not specified
554
+ components: t.array(Q),
526
555
  next_node: t.string()
527
556
  })
528
557
  })
@@ -545,11 +574,11 @@ const W = t.enum([
545
574
  style: t.object({ css: t.string().optional() }).optional()
546
575
  }).openapi({
547
576
  description: "Schema for flow-based forms (matches new JSON structure)"
548
- }), yt = t.object({
577
+ }), It = t.object({
549
578
  ...r.shape,
550
- ...Q.shape,
579
+ ...Y.shape,
551
580
  id: t.string()
552
- }), Y = t.object({
581
+ }), J = t.object({
553
582
  trigger_id: t.enum([
554
583
  "pre-user-signup",
555
584
  "post-user-registration",
@@ -560,10 +589,10 @@ const W = t.enum([
560
589
  hook_id: t.string().optional(),
561
590
  synchronous: t.boolean().default(!1),
562
591
  priority: t.number().optional()
563
- }), It = Y.extend({
592
+ }), wt = J.extend({
564
593
  ...r.shape,
565
594
  hook_id: t.string()
566
- }), J = t.object({
595
+ }), Z = t.object({
567
596
  alg: t.enum([
568
597
  "RS256",
569
598
  "RS384",
@@ -582,9 +611,9 @@ const W = t.enum([
582
611
  x5t: t.string().optional(),
583
612
  x5c: t.array(t.string()).optional(),
584
613
  use: t.enum(["sig", "enc"]).optional()
585
- }), wt = t.object({
586
- keys: t.array(J)
587
614
  }), Ct = t.object({
615
+ keys: t.array(Z)
616
+ }), kt = t.object({
588
617
  issuer: t.string(),
589
618
  authorization_endpoint: t.string(),
590
619
  token_endpoint: t.string(),
@@ -605,7 +634,7 @@ const W = t.enum([
605
634
  request_uri_parameter_supported: t.boolean(),
606
635
  request_parameter_supported: t.boolean(),
607
636
  token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
608
- }), Z = t.object({
637
+ }), $ = t.object({
609
638
  csrf_token: t.string(),
610
639
  auth0Client: t.string().optional(),
611
640
  authParams: B,
@@ -617,16 +646,16 @@ const W = t.enum([
617
646
  authorization_url: t.string().optional()
618
647
  }).openapi({
619
648
  description: "This represents a login sesion"
620
- }), kt = t.object({
621
- ...Z.shape,
649
+ }), Ot = t.object({
650
+ ...$.shape,
622
651
  id: t.string().openapi({
623
652
  description: "This is is used as the state in the universal login"
624
653
  }),
625
654
  created_at: t.string(),
626
655
  updated_at: t.string()
627
656
  });
628
- var $ = /* @__PURE__ */ ((n) => (n.FAILED_SILENT_AUTH = "fsa", n.FAILED_SIGNUP = "fs", n.FAILED_LOGIN = "f", n.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", n.FAILED_CHANGE_PASSWORD = "fcp", n.FAILED_BY_CONNECTOR = "fc", n.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", n.FAILED_HOOK = "fh", n.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", n.SUCCESS_API_OPERATION = "sapi", n.SUCCESS_CHANGE_PASSWORD = "scp", n.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", n.SUCCESS_CHANGE_USERNAME = "scu", n.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", n.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", n.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", n.SUCCESS_LOGIN = "s", n.SUCCESS_LOGOUT = "slo", n.SUCCESS_SIGNUP = "ss", n.SUCCESS_SILENT_AUTH = "ssa", n.SUCCESS_VERIFICATION_EMAIL = "sv", n.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", n.CODE_LINK_SENT = "cls", n.BLOCKED_ACCOUNT_EMAIL = "limit_wc", n.BLOCKED_ACCOUNT_IP = "limit_sul", n.BLOCKED_IP_ADDRESS = "limit_mu", n))($ || {});
629
- const tt = t.enum([
657
+ var tt = /* @__PURE__ */ ((e) => (e.FAILED_SILENT_AUTH = "fsa", e.FAILED_SIGNUP = "fs", e.FAILED_LOGIN = "f", e.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", e.FAILED_CHANGE_PASSWORD = "fcp", e.FAILED_BY_CONNECTOR = "fc", e.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", e.FAILED_HOOK = "fh", e.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", e.SUCCESS_API_OPERATION = "sapi", e.SUCCESS_CHANGE_PASSWORD = "scp", e.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", e.SUCCESS_CHANGE_USERNAME = "scu", e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", e.SUCCESS_LOGIN = "s", e.SUCCESS_LOGOUT = "slo", e.SUCCESS_SIGNUP = "ss", e.SUCCESS_SILENT_AUTH = "ssa", e.SUCCESS_VERIFICATION_EMAIL = "sv", e.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", e.CODE_LINK_SENT = "cls", e.BLOCKED_ACCOUNT_EMAIL = "limit_wc", e.BLOCKED_ACCOUNT_IP = "limit_sul", e.BLOCKED_IP_ADDRESS = "limit_mu", e))(tt || {});
658
+ const et = t.enum([
630
659
  "cls",
631
660
  // CODE_LINK_SENT
632
661
  "fsa",
@@ -681,8 +710,8 @@ const tt = t.enum([
681
710
  env: t.object({
682
711
  node: t.string().optional()
683
712
  }).optional()
684
- }), Ot = t.object({
685
- type: tt,
713
+ }), vt = t.object({
714
+ type: et,
686
715
  date: t.string(),
687
716
  description: t.string().optional(),
688
717
  log_id: t.string().optional(),
@@ -704,12 +733,12 @@ const tt = t.enum([
704
733
  strategy_type: t.string().optional(),
705
734
  hostname: t.string().optional(),
706
735
  auth0_client: nt.optional()
707
- }), et = t.object({
736
+ }), it = t.object({
708
737
  user_id: t.string(),
709
738
  password: t.string(),
710
739
  algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
711
740
  }), At = t.object({
712
- ...et.shape,
741
+ ...it.shape,
713
742
  created_at: t.string(),
714
743
  updated_at: t.string()
715
744
  }), _ = t.object({
@@ -719,7 +748,7 @@ const tt = t.enum([
719
748
  last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
720
749
  last_ip: t.string().describe("Last IP address from which this user logged in"),
721
750
  last_asn: t.string().describe("Last autonomous system number from which this user logged in")
722
- }), it = t.object({
751
+ }), ot = t.object({
723
752
  id: t.string(),
724
753
  revoked_at: t.string().optional(),
725
754
  used_at: t.string().optional(),
@@ -730,13 +759,13 @@ const tt = t.enum([
730
759
  "Metadata related to the device used in the session"
731
760
  ),
732
761
  clients: t.array(t.string()).describe("List of client details for the session")
733
- }), vt = t.object({
762
+ }), Nt = t.object({
734
763
  created_at: t.string(),
735
764
  updated_at: t.string(),
736
765
  authenticated_at: t.string(),
737
766
  last_interaction_at: t.string(),
738
- ...it.shape
739
- }), Nt = t.object({
767
+ ...ot.shape
768
+ }), Tt = t.object({
740
769
  kid: t.string().openapi({ description: "The key id of the signing key" }),
741
770
  cert: t.string().openapi({ description: "The public certificate of the signing key" }),
742
771
  fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
@@ -756,8 +785,8 @@ const tt = t.enum([
756
785
  revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
757
786
  revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
758
787
  });
759
- var ot = /* @__PURE__ */ ((n) => (n.RefreshToken = "refresh_token", n.AuthorizationCode = "authorization_code", n.ClientCredential = "client_credentials", n.Passwordless = "passwordless", n.Password = "password", n.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", n))(ot || {});
760
- const Tt = t.object({
788
+ var at = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(at || {});
789
+ const Ut = t.object({
761
790
  access_token: t.string(),
762
791
  id_token: t.string().optional(),
763
792
  scope: t.string().optional(),
@@ -770,7 +799,7 @@ t.object({
770
799
  code: t.string(),
771
800
  state: t.string().optional()
772
801
  });
773
- const at = t.object({
802
+ const st = t.object({
774
803
  button_border_radius: t.number(),
775
804
  button_border_weight: t.number(),
776
805
  buttons_style: t.enum(["pill"]),
@@ -780,7 +809,7 @@ const at = t.object({
780
809
  show_widget_shadow: t.boolean(),
781
810
  widget_border_weight: t.number(),
782
811
  widget_corner_radius: t.number()
783
- }), st = t.object({
812
+ }), rt = t.object({
784
813
  base_focus_color: t.string(),
785
814
  base_hover_color: t.string(),
786
815
  body_text: t.string(),
@@ -800,44 +829,44 @@ const at = t.object({
800
829
  success: t.string(),
801
830
  widget_background: t.string(),
802
831
  widget_border: t.string()
803
- }), e = t.object({
832
+ }), n = t.object({
804
833
  bold: t.boolean(),
805
834
  size: t.number()
806
- }), rt = t.object({
807
- body_text: e,
808
- buttons_text: e,
835
+ }), lt = t.object({
836
+ body_text: n,
837
+ buttons_text: n,
809
838
  font_url: t.string(),
810
- input_labels: e,
811
- links: e,
839
+ input_labels: n,
840
+ links: n,
812
841
  links_style: t.enum(["normal"]),
813
842
  reference_text_size: t.number(),
814
- subtitle: e,
815
- title: e
816
- }), lt = t.object({
843
+ subtitle: n,
844
+ title: n
845
+ }), ct = t.object({
817
846
  background_color: t.string(),
818
847
  background_image_url: t.string(),
819
848
  page_layout: t.enum(["center"])
820
- }), ct = t.object({
849
+ }), pt = t.object({
821
850
  header_text_alignment: t.enum(["center"]),
822
851
  logo_height: t.number(),
823
852
  logo_position: t.enum(["center"]),
824
853
  logo_url: t.string(),
825
854
  social_buttons_layout: t.enum(["bottom"])
826
- }), pt = t.object({
827
- borders: at,
828
- colors: st,
855
+ }), gt = t.object({
856
+ borders: st,
857
+ colors: rt,
829
858
  displayName: t.string(),
830
- fonts: rt,
831
- page_background: lt,
832
- widget: ct
833
- }), Ut = pt.extend({
859
+ fonts: lt,
860
+ page_background: ct,
861
+ widget: pt
862
+ }), xt = gt.extend({
834
863
  themeId: t.string()
835
864
  }), Dt = t.object({
836
865
  universal_login_experience: t.enum(["new", "classic"]).default("new"),
837
866
  identifier_first: t.boolean().default(!0),
838
867
  password_first: t.boolean().default(!1),
839
868
  webauthn_platform_first_factor: t.boolean()
840
- }), xt = t.object({
869
+ }), Rt = t.object({
841
870
  name: t.string(),
842
871
  enabled: t.boolean().optional().default(!0),
843
872
  default_from_address: t.string().optional(),
@@ -867,7 +896,7 @@ const at = t.object({
867
896
  })
868
897
  ]),
869
898
  settings: t.object({}).optional()
870
- }), gt = t.object({
899
+ }), dt = t.object({
871
900
  // The actual refresh token value (primary key).
872
901
  id: t.string(),
873
902
  // Link to the session record
@@ -888,22 +917,22 @@ const at = t.object({
888
917
  })
889
918
  ),
890
919
  rotating: t.boolean()
891
- }), Rt = t.object({
920
+ }), Lt = t.object({
892
921
  // When the refresh token record was created.
893
922
  created_at: t.string(),
894
923
  // Spread in the rest of the refresh token properties.
895
- ...gt.shape
924
+ ...dt.shape
896
925
  }), Pt = t.object({
897
926
  to: t.string(),
898
927
  message: t.string()
899
- }), Lt = t.object({
928
+ }), Bt = t.object({
900
929
  name: t.string(),
901
930
  options: t.object({})
902
931
  });
903
- function Bt(n) {
904
- const [i, a] = n.split("|");
932
+ function Ft(e) {
933
+ const [i, a] = e.split("|");
905
934
  if (!i || !a)
906
- throw new Error(`Invalid user_id: ${n}`);
935
+ throw new Error(`Invalid user_id: ${e}`);
907
936
  return { connection: i, id: a };
908
937
  }
909
938
  export {
@@ -913,80 +942,81 @@ export {
913
942
  u as CodeChallengeMethod,
914
943
  p as ComponentCategory,
915
944
  c as ComponentType,
916
- ot as GrantType,
917
- $ as LogTypes,
945
+ at as GrantType,
946
+ tt as LogTypes,
918
947
  N as NodeType,
919
948
  y as applicationInsertSchema,
920
949
  I as applicationSchema,
921
950
  ht as auth0FlowInsertSchema,
922
- L as auth0FlowSchema,
923
- _t as auth0UserResponseSchema,
951
+ P as auth0FlowSchema,
952
+ mt as auth0UserResponseSchema,
924
953
  B as authParamsSchema,
925
954
  l as baseUserSchema,
926
- at as bordersSchema,
927
- bt as brandingSchema,
955
+ st as bordersSchema,
956
+ ft as brandingSchema,
928
957
  C as buttonComponentSchema,
929
- X as codeInsertSchema,
930
- St as codeSchema,
931
- W as codeTypeSchema,
932
- st as colorsSchema,
933
- v as componentSchema,
958
+ W as codeInsertSchema,
959
+ Et as codeSchema,
960
+ X as codeTypeSchema,
961
+ rt as colorsSchema,
962
+ A as componentSchema,
934
963
  H as connectionInsertSchema,
935
964
  F as connectionOptionsSchema,
936
965
  K as connectionSchema,
937
966
  o as coordinatesSchema,
938
967
  q as customDomainInsertSchema,
939
968
  z as customDomainSchema,
940
- Et as customDomainWithTenantIdSchema,
941
- xt as emailProviderSchema,
942
- P as endingSchema,
969
+ jt as customDomainWithTenantIdSchema,
970
+ Rt as emailProviderSchema,
971
+ L as endingSchema,
943
972
  O as fieldComponentSchema,
944
973
  U as flowNodeSchema,
945
- e as fontDetailsSchema,
946
- rt as fontsSchema,
947
- jt as formControlSchema,
948
- Q as formInsertSchema,
949
- yt as formSchema,
950
- A as genericComponentSchema,
951
- D as genericNodeSchema,
952
- Y as hookInsertSchema,
953
- It as hookSchema,
954
- h as identitySchema,
955
- wt as jwksKeySchema,
956
- J as jwksSchema,
974
+ n as fontDetailsSchema,
975
+ lt as fontsSchema,
976
+ yt as formControlSchema,
977
+ Y as formInsertSchema,
978
+ Q as formNodeComponentDefinition,
979
+ It as formSchema,
980
+ v as genericComponentSchema,
981
+ x as genericNodeSchema,
982
+ J as hookInsertSchema,
983
+ wt as hookSchema,
984
+ b as identitySchema,
985
+ Ct as jwksKeySchema,
986
+ Z as jwksSchema,
957
987
  k as legalComponentSchema,
958
- Ot as logSchema,
959
- Z as loginSessionInsertSchema,
960
- kt as loginSessionSchema,
961
- x as nodeSchema,
962
- Ct as openIDConfigurationSchema,
963
- lt as pageBackgroundSchema,
964
- Bt as parseUserId,
965
- et as passwordInsertSchema,
988
+ vt as logSchema,
989
+ $ as loginSessionInsertSchema,
990
+ Ot as loginSessionSchema,
991
+ D as nodeSchema,
992
+ kt as openIDConfigurationSchema,
993
+ ct as pageBackgroundSchema,
994
+ Ft as parseUserId,
995
+ it as passwordInsertSchema,
966
996
  At as passwordSchema,
967
997
  m as profileDataSchema,
968
998
  Dt as promptSettingSchema,
969
- gt as refreshTokenInsertSchema,
970
- Rt as refreshTokenSchema,
999
+ dt as refreshTokenInsertSchema,
1000
+ Lt as refreshTokenSchema,
971
1001
  w as richTextComponentSchema,
972
1002
  j as samlpAddon,
973
- it as sessionInsertSchema,
974
- vt as sessionSchema,
975
- Nt as signingKeySchema,
976
- Lt as smsProviderSchema,
1003
+ ot as sessionInsertSchema,
1004
+ Nt as sessionSchema,
1005
+ Tt as signingKeySchema,
1006
+ Bt as smsProviderSchema,
977
1007
  Pt as smsSendParamsSchema,
978
1008
  R as startSchema,
979
1009
  T as stepNodeSchema,
980
1010
  M as tenantInsertSchema,
981
1011
  G as tenantSchema,
982
- pt as themeInsertSchema,
983
- Ut as themeSchema,
984
- Tt as tokenResponseSchema,
985
- ut as totalsSchema,
986
- b as userInsertSchema,
987
- mt as userResponseSchema,
1012
+ gt as themeInsertSchema,
1013
+ xt as themeSchema,
1014
+ Ut as tokenResponseSchema,
1015
+ _t as totalsSchema,
1016
+ h as userInsertSchema,
1017
+ bt as userResponseSchema,
988
1018
  f as userSchema,
989
- ft as vendorSettingsSchema,
1019
+ St as vendorSettingsSchema,
990
1020
  V as verificationMethodsSchema,
991
- ct as widgetSchema
1021
+ pt as widgetSchema
992
1022
  };