@authhero/adapter-interfaces 0.134.0 → 0.136.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.
@@ -2,20 +2,20 @@ import { z as e } from "@hono/zod-openapi";
2
2
  const s = e.object({
3
3
  created_at: e.string(),
4
4
  updated_at: e.string()
5
- }), ot = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), tt = e.enum([
5
+ }), pt = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), ct = e.enum([
6
6
  "CREATE_USER",
7
7
  "GET_USER",
8
8
  "UPDATE_USER",
9
9
  "SEND_REQUEST",
10
10
  "SEND_EMAIL"
11
- ]), nt = e.enum(["VERIFY_EMAIL"]), P = e.object({
11
+ ]), _t = e.enum(["VERIFY_EMAIL"]), K = e.object({
12
12
  require_mx_record: e.boolean().optional(),
13
13
  block_aliases: e.boolean().optional(),
14
14
  block_free_emails: e.boolean().optional(),
15
15
  block_disposable_emails: e.boolean().optional(),
16
16
  blocklist: e.array(e.string()).optional(),
17
17
  allowlist: e.array(e.string()).optional()
18
- }), M = e.object({
18
+ }), z = e.object({
19
19
  id: e.string(),
20
20
  alias: e.string().max(100).optional(),
21
21
  type: e.literal("AUTH0"),
@@ -27,7 +27,7 @@ const s = e.object({
27
27
  user_id: e.string(),
28
28
  changes: e.record(e.string(), e.any())
29
29
  })
30
- }), H = e.object({
30
+ }), X = e.object({
31
31
  id: e.string(),
32
32
  alias: e.string().max(100).optional(),
33
33
  type: e.literal("EMAIL"),
@@ -36,9 +36,9 @@ const s = e.object({
36
36
  mask_output: e.boolean().optional(),
37
37
  params: e.object({
38
38
  email: e.string(),
39
- rules: P.optional()
39
+ rules: K.optional()
40
40
  })
41
- }), G = e.enum(["change-email", "account", "custom"]), B = e.object({
41
+ }), q = e.enum(["change-email", "account", "custom"]), V = e.object({
42
42
  id: e.string(),
43
43
  alias: e.string().max(100).optional(),
44
44
  type: e.literal("REDIRECT"),
@@ -46,32 +46,32 @@ const s = e.object({
46
46
  allow_failure: e.boolean().optional(),
47
47
  mask_output: e.boolean().optional(),
48
48
  params: e.object({
49
- target: G.openapi({
49
+ target: q.openapi({
50
50
  description: "The predefined target to redirect to, or 'custom' for a custom URL"
51
51
  }),
52
52
  custom_url: e.string().optional().openapi({
53
53
  description: "Custom URL to redirect to when target is 'custom'"
54
54
  })
55
55
  })
56
- }), K = e.union([
57
- M,
58
- H,
59
- B
60
- ]), W = e.object({
56
+ }), Y = e.union([
57
+ z,
58
+ X,
59
+ V
60
+ ]), Q = e.object({
61
61
  name: e.string().min(1).max(150).openapi({
62
62
  description: "The name of the flow"
63
63
  }),
64
64
  // Actions is an array of action steps (Auth0 stores as JSON blob)
65
- actions: e.array(K).optional().default([]).openapi({
65
+ actions: e.array(Y).optional().default([]).openapi({
66
66
  description: "The list of actions to execute in sequence"
67
67
  })
68
- }), it = W.extend({
68
+ }), dt = Q.extend({
69
69
  ...s.shape,
70
70
  id: e.string().openapi({
71
71
  description: "Unique identifier for the flow",
72
72
  example: "af_12tMpdJ3iek7svMyZkSh5M"
73
73
  })
74
- }), at = e.object({
74
+ }), gt = e.object({
75
75
  page: e.string().min(0).optional().default("0").transform((o) => parseInt(o, 10)).openapi({
76
76
  description: "The page number where 0 is the first page"
77
77
  }),
@@ -87,12 +87,12 @@ const s = e.object({
87
87
  q: e.string().optional().openapi({
88
88
  description: "A lucene query string used to filter the results"
89
89
  })
90
- }), st = e.object({
90
+ }), ut = e.object({
91
91
  start: e.number(),
92
92
  limit: e.number(),
93
93
  length: e.number(),
94
94
  total: e.number().optional()
95
- }), z = e.object({
95
+ }), J = e.object({
96
96
  email: e.string().optional(),
97
97
  email_verified: e.boolean().optional(),
98
98
  name: e.string().optional(),
@@ -101,7 +101,7 @@ const s = e.object({
101
101
  phone_number: e.string().optional(),
102
102
  phone_verified: e.boolean().optional(),
103
103
  family_name: e.string().optional()
104
- }).catchall(e.any()), X = e.object({
104
+ }).catchall(e.any()), Z = e.object({
105
105
  connection: e.string(),
106
106
  user_id: e.string(),
107
107
  provider: e.string(),
@@ -109,8 +109,8 @@ const s = e.object({
109
109
  access_token: e.string().optional(),
110
110
  access_token_secret: e.string().optional(),
111
111
  refresh_token: e.string().optional(),
112
- profileData: z.optional()
113
- }), V = e.object({
112
+ profileData: J.optional()
113
+ }), $ = e.object({
114
114
  formatted: e.string().optional(),
115
115
  // Full mailing address
116
116
  street_address: e.string().optional(),
@@ -123,9 +123,11 @@ const s = e.object({
123
123
  // Zip code or postal code
124
124
  country: e.string().optional()
125
125
  // Country name
126
- }).optional(), I = e.object({
126
+ }).optional(), N = e.object({
127
127
  email: e.string().optional().transform((o) => o && o.toLowerCase()),
128
- username: e.string().optional(),
128
+ username: e.string().refine((o) => !o.includes("@"), {
129
+ message: 'Usernames must not contain "@". Use the email field for email addresses.'
130
+ }).optional(),
129
131
  phone_number: e.string().optional(),
130
132
  phone_verified: e.boolean().optional(),
131
133
  // OIDC phone scope claim (phone_number_verified)
@@ -153,8 +155,8 @@ const s = e.object({
153
155
  zoneinfo: e.string().optional(),
154
156
  // e.g., "Europe/Paris"
155
157
  // OIDC address claim (OIDC Core 5.1.1)
156
- address: V
157
- }), q = I.extend({
158
+ address: $
159
+ }), ee = N.extend({
158
160
  email_verified: e.boolean().default(!1),
159
161
  verify_email: e.boolean().optional(),
160
162
  last_ip: e.string().optional(),
@@ -169,29 +171,29 @@ const s = e.object({
169
171
  hash: e.string(),
170
172
  algorithm: e.string()
171
173
  }).optional()
172
- }), Y = e.object({
173
- ...q.omit({ password: !0 }).shape,
174
+ }), oe = e.object({
175
+ ...ee.omit({ password: !0 }).shape,
174
176
  ...s.shape,
175
177
  user_id: e.string(),
176
178
  provider: e.string(),
177
179
  is_social: e.boolean(),
178
180
  email: e.string().optional(),
179
181
  login_count: e.number().default(0),
180
- identities: e.array(X).optional()
181
- }), rt = Y, lt = I.extend({
182
+ identities: e.array(Z).optional()
183
+ }), mt = oe, ht = N.extend({
182
184
  login_count: e.number(),
183
185
  multifactor: e.array(e.string()).optional(),
184
186
  last_ip: e.string().optional(),
185
187
  last_login: e.string().optional(),
186
188
  user_id: e.string()
187
- }).catchall(e.any()), Q = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
188
- let J = (o = 21) => {
189
- let a = "", r = crypto.getRandomValues(new Uint8Array(o |= 0));
189
+ }).catchall(e.any()), te = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
190
+ let ne = (o = 21) => {
191
+ let n = "", i = crypto.getRandomValues(new Uint8Array(o |= 0));
190
192
  for (; o--; )
191
- a += Q[r[o] & 63];
192
- return a;
193
+ n += te[i[o] & 63];
194
+ return n;
193
195
  };
194
- const Z = e.object({
196
+ const ie = e.object({
195
197
  client_id: e.string().openapi({
196
198
  description: "ID of this client."
197
199
  }),
@@ -204,7 +206,7 @@ const Z = e.object({
204
206
  global: e.boolean().default(!1).openapi({
205
207
  description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
206
208
  }),
207
- client_secret: e.string().default(() => J()).optional().openapi({
209
+ client_secret: e.string().default(() => ne()).optional().openapi({
208
210
  description: "Client secret (which you must not make public)."
209
211
  }),
210
212
  app_type: e.enum([
@@ -364,11 +366,11 @@ const Z = e.object({
364
366
  description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
365
367
  }),
366
368
  token_quota: e.record(e.any()).default({}).optional()
367
- }), ct = e.object({
369
+ }), bt = e.object({
368
370
  created_at: e.string(),
369
371
  updated_at: e.string(),
370
- ...Z.shape
371
- }), $ = e.object({
372
+ ...ie.shape
373
+ }), ae = e.object({
372
374
  client_id: e.string().min(1).openapi({
373
375
  description: "ID of the client."
374
376
  }),
@@ -393,23 +395,23 @@ const Z = e.object({
393
395
  authorization_details_types: e.array(e.string()).optional().openapi({
394
396
  description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
395
397
  })
396
- }), ee = e.object({
398
+ }), re = e.object({
397
399
  id: e.string().openapi({
398
400
  description: "ID of the client grant."
399
401
  }),
400
- ...$.shape,
402
+ ...ae.shape,
401
403
  created_at: e.string().optional(),
402
404
  updated_at: e.string().optional()
403
- }), pt = e.array(ee), c = e.object({
405
+ }), ft = e.array(re), u = e.object({
404
406
  x: e.number(),
405
407
  y: e.number()
406
408
  });
407
- var y = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(y || {}), C = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(C || {});
408
- const u = e.object({
409
+ var R = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(R || {}), j = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(j || {});
410
+ const y = e.object({
409
411
  id: e.string(),
410
- category: e.nativeEnum(C),
411
- type: e.nativeEnum(y)
412
- }), oe = u.extend({
412
+ category: e.nativeEnum(j),
413
+ type: e.nativeEnum(R)
414
+ }), se = y.extend({
413
415
  category: e.literal(
414
416
  "BLOCK"
415
417
  /* BLOCK */
@@ -421,7 +423,7 @@ const u = e.object({
421
423
  config: e.object({
422
424
  content: e.string()
423
425
  }).passthrough()
424
- }), te = u.extend({
426
+ }), le = y.extend({
425
427
  category: e.literal(
426
428
  "BLOCK"
427
429
  /* BLOCK */
@@ -443,7 +445,7 @@ const u = e.object({
443
445
  config: e.object({
444
446
  text: e.string()
445
447
  }).passthrough()
446
- }), ne = u.extend({
448
+ }), pe = y.extend({
447
449
  category: e.literal(
448
450
  "FIELD"
449
451
  /* FIELD */
@@ -457,7 +459,7 @@ const u = e.object({
457
459
  config: e.object({
458
460
  text: e.string()
459
461
  }).passthrough()
460
- }), ie = u.extend({
462
+ }), ce = y.extend({
461
463
  category: e.literal(
462
464
  "FIELD"
463
465
  /* FIELD */
@@ -510,49 +512,49 @@ const u = e.object({
510
512
  label: e.string().optional(),
511
513
  placeholder: e.string().optional()
512
514
  }).passthrough()
513
- }), ae = e.object({
515
+ }), _e = e.object({
514
516
  id: e.string(),
515
517
  category: e.string(),
516
518
  type: e.string()
517
- }).passthrough(), se = e.union([
518
- oe,
519
- te,
520
- ne,
521
- ie,
522
- ae
519
+ }).passthrough(), de = e.union([
520
+ se,
521
+ le,
522
+ pe,
523
+ ce,
524
+ _e
523
525
  ]);
524
- var re = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(re || {});
525
- const le = e.object({
526
+ var ge = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(ge || {});
527
+ const ue = e.object({
526
528
  id: e.string(),
527
529
  type: e.literal(
528
530
  "STEP"
529
531
  /* STEP */
530
532
  ),
531
- coordinates: c,
533
+ coordinates: u,
532
534
  alias: e.string().optional(),
533
535
  config: e.object({
534
- components: e.array(se),
536
+ components: e.array(de),
535
537
  next_node: e.string()
536
538
  }).passthrough()
537
- }), ce = e.object({
539
+ }), me = e.object({
538
540
  id: e.string(),
539
541
  type: e.literal(
540
542
  "FLOW"
541
543
  /* FLOW */
542
544
  ),
543
- coordinates: c,
545
+ coordinates: u,
544
546
  alias: e.string().optional(),
545
547
  config: e.object({
546
548
  flow_id: e.string(),
547
549
  next_node: e.string()
548
550
  })
549
- }), pe = e.object({
551
+ }), he = e.object({
550
552
  id: e.string(),
551
553
  type: e.literal(
552
554
  "ACTION"
553
555
  /* ACTION */
554
556
  ),
555
- coordinates: c,
557
+ coordinates: u,
556
558
  alias: e.string().optional(),
557
559
  config: e.object({
558
560
  action_type: e.enum(["REDIRECT"]).openapi({
@@ -568,47 +570,47 @@ const le = e.object({
568
570
  description: "The next node to navigate to after action (for non-redirect actions)"
569
571
  })
570
572
  }).passthrough()
571
- }), _e = e.object({
573
+ }), be = e.object({
572
574
  id: e.string(),
573
575
  type: e.string(),
574
- coordinates: c
575
- }).passthrough(), de = e.union([
576
- le,
577
- ce,
578
- pe,
579
- _e
580
- ]), ge = e.object({
576
+ coordinates: u
577
+ }).passthrough(), fe = e.union([
578
+ ue,
579
+ me,
580
+ he,
581
+ be
582
+ ]), Ee = e.object({
581
583
  next_node: e.string(),
582
- coordinates: c
583
- }).passthrough(), ue = e.object({
584
+ coordinates: u
585
+ }).passthrough(), Se = e.object({
584
586
  resume_flow: e.boolean().optional(),
585
- coordinates: c
586
- }).passthrough(), me = e.object({
587
+ coordinates: u
588
+ }).passthrough(), Ae = e.object({
587
589
  id: e.string(),
588
590
  name: e.string(),
589
591
  languages: e.object({
590
592
  primary: e.string()
591
593
  }).passthrough(),
592
- nodes: e.array(de),
593
- start: ge,
594
- ending: ue,
594
+ nodes: e.array(fe),
595
+ start: Ee,
596
+ ending: Se,
595
597
  created_at: e.string(),
596
598
  updated_at: e.string(),
597
599
  links: e.object({
598
600
  sdkSrc: e.string().optional(),
599
601
  sdk_src: e.string().optional()
600
602
  }).passthrough()
601
- }).passthrough(), _t = me.omit({
603
+ }).passthrough(), Et = Ae.omit({
602
604
  id: !0,
603
605
  created_at: !0,
604
606
  updated_at: !0
605
607
  });
606
- var T = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(T || {}), O = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(O || {}), N = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(N || {});
607
- const he = e.object({
608
+ var w = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(w || {}), D = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(D || {}), L = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(L || {});
609
+ const Ie = e.object({
608
610
  client_id: e.string(),
609
611
  act_as: e.string().optional(),
610
- response_type: e.nativeEnum(T).optional(),
611
- response_mode: e.nativeEnum(O).optional(),
612
+ response_type: e.nativeEnum(w).optional(),
613
+ response_mode: e.nativeEnum(D).optional(),
612
614
  redirect_uri: e.string().optional(),
613
615
  audience: e.string().optional(),
614
616
  organization: e.string().optional(),
@@ -616,7 +618,7 @@ const he = e.object({
616
618
  nonce: e.string().optional(),
617
619
  scope: e.string().optional(),
618
620
  prompt: e.string().optional(),
619
- code_challenge_method: e.nativeEnum(N).optional(),
621
+ code_challenge_method: e.nativeEnum(L).optional(),
620
622
  code_challenge: e.string().optional(),
621
623
  username: e.string().optional(),
622
624
  ui_locales: e.string().optional(),
@@ -628,7 +630,7 @@ const he = e.object({
628
630
  acr_values: e.string().optional(),
629
631
  // The following fields are not available in Auth0
630
632
  vendor_id: e.string().optional()
631
- }), dt = e.object({
633
+ }), St = e.object({
632
634
  colors: e.object({
633
635
  primary: e.string(),
634
636
  page_background: e.object({
@@ -644,14 +646,14 @@ const he = e.object({
644
646
  font: e.object({
645
647
  url: e.string()
646
648
  }).optional()
647
- }), be = e.enum([
649
+ }), ye = e.enum([
648
650
  "password_reset",
649
651
  "email_verification",
650
652
  "otp",
651
653
  "authorization_code",
652
654
  "oauth2_state",
653
655
  "ticket"
654
- ]), fe = e.object({
656
+ ]), Ce = e.object({
655
657
  code_id: e.string().openapi({
656
658
  description: "The code that will be used in for instance an email verification flow"
657
659
  }),
@@ -661,7 +663,7 @@ const he = e.object({
661
663
  connection_id: e.string().optional().openapi({
662
664
  description: "The connection that the code is connected to"
663
665
  }),
664
- code_type: be,
666
+ code_type: ye,
665
667
  code_verifier: e.string().optional().openapi({
666
668
  description: "The code verifier used in PKCE in outbound flows"
667
669
  }),
@@ -683,10 +685,10 @@ const he = e.object({
683
685
  expires_at: e.string(),
684
686
  used_at: e.string().optional(),
685
687
  user_id: e.string().optional()
686
- }), gt = e.object({
687
- ...fe.shape,
688
+ }), At = e.object({
689
+ ...Ce.shape,
688
690
  created_at: e.string()
689
- }), Ee = e.object({
691
+ }), Te = e.object({
690
692
  kid: e.string().optional(),
691
693
  team_id: e.string().optional(),
692
694
  realms: e.string().optional(),
@@ -721,13 +723,87 @@ const he = e.object({
721
723
  password_dictionary: e.object({
722
724
  enable: e.boolean().optional(),
723
725
  dictionary: e.array(e.string()).optional()
726
+ }).optional(),
727
+ // Disable signup for this connection
728
+ disable_signup: e.boolean().optional(),
729
+ // Brute force protection
730
+ brute_force_protection: e.boolean().optional(),
731
+ // Import mode
732
+ import_mode: e.boolean().optional(),
733
+ // Flexible Identifiers: attributes schema (replaces legacy requires_username)
734
+ attributes: e.object({
735
+ email: e.object({
736
+ identifier: e.object({
737
+ active: e.boolean().optional()
738
+ }).optional(),
739
+ signup: e.object({
740
+ status: e.enum(["required", "optional", "disabled"]).optional(),
741
+ verification: e.object({
742
+ active: e.boolean().optional()
743
+ }).optional()
744
+ }).optional(),
745
+ validation: e.object({
746
+ allowed: e.boolean().optional()
747
+ }).optional(),
748
+ unique: e.boolean().optional(),
749
+ profile_required: e.boolean().optional(),
750
+ verification_method: e.enum(["link", "code"]).optional()
751
+ }).optional(),
752
+ username: e.object({
753
+ identifier: e.object({
754
+ active: e.boolean().optional()
755
+ }).optional(),
756
+ signup: e.object({
757
+ status: e.enum(["required", "optional", "disabled"]).optional()
758
+ }).optional(),
759
+ validation: e.object({
760
+ max_length: e.number().optional(),
761
+ min_length: e.number().optional(),
762
+ allowed_types: e.object({
763
+ email: e.boolean().optional(),
764
+ phone_number: e.boolean().optional()
765
+ }).optional()
766
+ }).optional(),
767
+ profile_required: e.boolean().optional()
768
+ }).optional(),
769
+ phone_number: e.object({
770
+ identifier: e.object({
771
+ active: e.boolean().optional()
772
+ }).optional(),
773
+ signup: e.object({
774
+ status: e.enum(["required", "optional", "disabled"]).optional()
775
+ }).optional()
776
+ }).optional()
777
+ }).optional(),
778
+ // Authentication methods for Username-Password-Authentication connections
779
+ authentication_methods: e.object({
780
+ password: e.object({
781
+ enabled: e.boolean().optional()
782
+ }).optional(),
783
+ passkey: e.object({
784
+ enabled: e.boolean().optional()
785
+ }).optional()
786
+ }).optional(),
787
+ // Passkey options for Username-Password-Authentication connections
788
+ passkey_options: e.object({
789
+ challenge_ui: e.enum(["both", "autofill", "button"]).optional(),
790
+ local_enrollment_enabled: e.boolean().optional(),
791
+ progressive_enrollment_enabled: e.boolean().optional()
792
+ }).optional(),
793
+ // Legacy username options (deprecated, use attributes instead)
794
+ requires_username: e.boolean().optional(),
795
+ validation: e.object({
796
+ username: e.object({
797
+ min: e.number().optional(),
798
+ max: e.number().optional()
799
+ }).optional()
724
800
  }).optional()
725
- }), Se = e.object({
801
+ }), Oe = e.object({
726
802
  id: e.string().optional(),
727
803
  name: e.string(),
728
804
  display_name: e.string().optional(),
729
805
  strategy: e.string(),
730
- options: Ee.default({}),
806
+ options: Te.default({}),
731
807
  enabled_clients: e.array(e.string()).default([]).optional(),
732
808
  response_type: e.custom().optional(),
733
809
  response_mode: e.custom().optional(),
@@ -735,11 +811,11 @@ const he = e.object({
735
811
  show_as_button: e.boolean().optional(),
736
812
  metadata: e.record(e.any()).optional(),
737
813
  is_system: e.boolean().optional()
738
- }), ut = e.object({
814
+ }), It = e.object({
739
815
  id: e.string(),
740
816
  created_at: e.string().transform((o) => o === null ? "" : o),
741
817
  updated_at: e.string().transform((o) => o === null ? "" : o)
742
- }).extend(Se.shape), Ae = e.object({
818
+ }).extend(Oe.shape), Ne = e.object({
743
819
  domain: e.string(),
744
820
  custom_domain_id: e.string().optional(),
745
821
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -753,37 +829,37 @@ const he = e.object({
753
829
  "null"
754
830
  ]).optional(),
755
831
  domain_metadata: e.record(e.string().max(255)).optional()
756
- }), Ie = e.object({
832
+ }), Re = e.object({
757
833
  name: e.literal("txt"),
758
834
  record: e.string(),
759
835
  domain: e.string()
760
- }), ye = e.object({
761
- ...Ae.shape,
836
+ }), je = e.object({
837
+ ...Ne.shape,
762
838
  custom_domain_id: e.string(),
763
839
  primary: e.boolean(),
764
840
  status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
765
841
  origin_domain_name: e.string().optional(),
766
842
  verification: e.object({
767
- methods: e.array(Ie)
843
+ methods: e.array(Re)
768
844
  }).optional(),
769
845
  tls_policy: e.string().optional()
770
- }), mt = ye.extend({
846
+ }), yt = je.extend({
771
847
  tenant_id: e.string()
772
- }), f = e.object({
848
+ }), C = e.object({
773
849
  id: e.string(),
774
850
  order: e.number().optional(),
775
851
  visible: e.boolean().optional().default(!0)
776
- }), i = f.extend({
852
+ }), l = C.extend({
777
853
  category: e.literal("BLOCK").optional()
778
- }), Ce = i.extend({
854
+ }), we = l.extend({
779
855
  type: e.literal("DIVIDER"),
780
856
  config: e.object({}).optional()
781
- }), Te = i.extend({
857
+ }), De = l.extend({
782
858
  type: e.literal("HTML"),
783
859
  config: e.object({
784
860
  content: e.string().optional()
785
861
  }).optional()
786
- }), Oe = i.extend({
862
+ }), Le = l.extend({
787
863
  type: e.literal("IMAGE"),
788
864
  config: e.object({
789
865
  src: e.string().optional(),
@@ -791,66 +867,66 @@ const he = e.object({
791
867
  width: e.number().optional(),
792
868
  height: e.number().optional()
793
869
  }).optional()
794
- }), Ne = i.extend({
870
+ }), ve = l.extend({
795
871
  type: e.literal("JUMP_BUTTON"),
796
872
  config: e.object({
797
873
  text: e.string().optional(),
798
874
  target_step: e.string().optional()
799
875
  })
800
- }), Re = i.extend({
876
+ }), ke = l.extend({
801
877
  type: e.literal("RESEND_BUTTON"),
802
878
  config: e.object({
803
879
  text: e.string().optional(),
804
880
  resend_action: e.string().optional()
805
881
  })
806
- }), we = i.extend({
882
+ }), Ue = l.extend({
807
883
  type: e.literal("NEXT_BUTTON"),
808
884
  config: e.object({
809
885
  text: e.string().optional()
810
886
  })
811
- }), De = i.extend({
887
+ }), Fe = l.extend({
812
888
  type: e.literal("PREVIOUS_BUTTON"),
813
889
  config: e.object({
814
890
  text: e.string().optional()
815
891
  })
816
- }), je = i.extend({
892
+ }), xe = l.extend({
817
893
  type: e.literal("RICH_TEXT"),
818
894
  config: e.object({
819
895
  content: e.string().optional()
820
896
  }).optional()
821
- }), E = f.extend({
897
+ }), T = C.extend({
822
898
  category: e.literal("WIDGET").optional(),
823
899
  label: e.string().min(1).optional(),
824
900
  hint: e.string().min(1).max(500).optional(),
825
901
  required: e.boolean().optional(),
826
902
  sensitive: e.boolean().optional()
827
- }), Le = E.extend({
903
+ }), Pe = T.extend({
828
904
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
829
905
  config: e.object({
830
906
  credential_type: e.string().optional()
831
907
  })
832
- }), ke = E.extend({
908
+ }), Me = T.extend({
833
909
  type: e.literal("GMAPS_ADDRESS"),
834
910
  config: e.object({
835
911
  api_key: e.string().optional()
836
912
  })
837
- }), ve = E.extend({
913
+ }), He = T.extend({
838
914
  type: e.literal("RECAPTCHA"),
839
915
  config: e.object({
840
916
  site_key: e.string().optional()
841
917
  })
842
- }), t = f.extend({
918
+ }), t = C.extend({
843
919
  category: e.literal("FIELD").optional(),
844
920
  label: e.string().min(1).optional(),
845
921
  hint: e.string().min(1).max(500).optional(),
846
922
  required: e.boolean().optional(),
847
923
  sensitive: e.boolean().optional()
848
- }), Ue = t.extend({
924
+ }), Ge = t.extend({
849
925
  type: e.literal("BOOLEAN"),
850
926
  config: e.object({
851
927
  default_value: e.boolean().optional()
852
928
  }).optional()
853
- }), Fe = t.extend({
929
+ }), Be = t.extend({
854
930
  type: e.literal("CARDS"),
855
931
  config: e.object({
856
932
  options: e.array(
@@ -863,7 +939,7 @@ const he = e.object({
863
939
  ).optional(),
864
940
  multi_select: e.boolean().optional()
865
941
  }).optional()
866
- }), xe = t.extend({
942
+ }), We = t.extend({
867
943
  type: e.literal("CHOICE"),
868
944
  config: e.object({
869
945
  options: e.array(
@@ -876,7 +952,7 @@ const he = e.object({
876
952
  multiple: e.boolean().optional(),
877
953
  default_value: e.union([e.string(), e.array(e.string())]).optional()
878
954
  }).optional()
879
- }), Pe = t.extend({
955
+ }), Ke = t.extend({
880
956
  type: e.literal("CUSTOM"),
881
957
  config: e.object({
882
958
  component: e.string().optional(),
@@ -884,14 +960,15 @@ const he = e.object({
884
960
  schema: e.record(e.any()).optional(),
885
961
  code: e.string().optional()
886
962
  })
887
- }), Me = t.extend({
963
+ }), ze = t.extend({
888
964
  type: e.literal("DATE"),
889
965
  config: e.object({
890
966
  format: e.string().optional(),
891
967
  min: e.string().optional(),
892
- max: e.string().optional()
968
+ max: e.string().optional(),
969
+ default_value: e.string().optional()
893
970
  }).optional()
894
- }), He = t.extend({
971
+ }), Xe = t.extend({
895
972
  type: e.literal("DROPDOWN"),
896
973
  config: e.object({
897
974
  options: e.array(
@@ -905,47 +982,50 @@ const he = e.object({
905
982
  multiple: e.boolean().optional(),
906
983
  default_value: e.union([e.string(), e.array(e.string())]).optional()
907
984
  }).optional()
908
- }), Ge = t.extend({
985
+ }), qe = t.extend({
909
986
  type: e.literal("EMAIL"),
910
987
  config: e.object({
911
- placeholder: e.string().optional()
988
+ placeholder: e.string().optional(),
989
+ default_value: e.string().optional()
912
990
  }).optional()
913
- }), Be = t.extend({
991
+ }), Ve = t.extend({
914
992
  type: e.literal("FILE"),
915
993
  config: e.object({
916
994
  accept: e.string().optional(),
917
995
  max_size: e.number().optional(),
918
996
  multiple: e.boolean().optional()
919
997
  }).optional()
920
- }), Ke = t.extend({
998
+ }), Ye = t.extend({
921
999
  type: e.literal("LEGAL"),
922
1000
  config: e.object({
923
1001
  text: e.string(),
924
1002
  html: e.boolean().optional()
925
1003
  }).optional()
926
- }), We = t.extend({
1004
+ }), Qe = t.extend({
927
1005
  type: e.literal("NUMBER"),
928
1006
  config: e.object({
929
1007
  placeholder: e.string().optional(),
930
1008
  min: e.number().optional(),
931
1009
  max: e.number().optional(),
932
- step: e.number().optional()
1010
+ step: e.number().optional(),
1011
+ default_value: e.string().optional()
933
1012
  }).optional()
934
- }), ze = t.extend({
1013
+ }), Je = t.extend({
935
1014
  type: e.literal("PASSWORD"),
936
1015
  config: e.object({
937
1016
  placeholder: e.string().optional(),
938
1017
  min_length: e.number().optional(),
939
1018
  show_toggle: e.boolean().optional(),
940
- forgot_password_link: e.string().optional()
1019
+ forgot_password_link: e.string().optional(),
1020
+ default_value: e.string().optional()
941
1021
  }).optional()
942
- }), Xe = t.extend({
1022
+ }), Ze = t.extend({
943
1023
  type: e.literal("PAYMENT"),
944
1024
  config: e.object({
945
1025
  provider: e.string().optional(),
946
1026
  currency: e.string().optional()
947
1027
  }).optional()
948
- }), Ve = t.extend({
1028
+ }), $e = t.extend({
949
1029
  type: e.literal("SOCIAL"),
950
1030
  config: e.object({
951
1031
  providers: e.array(e.string()).optional(),
@@ -959,59 +1039,75 @@ const he = e.object({
959
1039
  })
960
1040
  ).optional()
961
1041
  }).optional()
962
- }), qe = t.extend({
1042
+ }), eo = t.extend({
963
1043
  type: e.literal("TEL"),
964
1044
  config: e.object({
965
1045
  placeholder: e.string().optional(),
966
- default_country: e.string().optional()
1046
+ default_country: e.string().optional(),
1047
+ default_value: e.string().optional()
967
1048
  }).optional()
968
- }), Ye = t.extend({
1049
+ }), oo = t.extend({
969
1050
  type: e.literal("TEXT"),
970
1051
  config: e.object({
971
1052
  placeholder: e.string().optional(),
972
1053
  multiline: e.boolean().optional(),
973
- max_length: e.number().optional()
1054
+ max_length: e.number().optional(),
1055
+ default_value: e.string().optional()
974
1056
  }).optional()
975
- }), Qe = t.extend({
1057
+ }), to = t.extend({
976
1058
  type: e.literal("URL"),
977
1059
  config: e.object({
978
- placeholder: e.string().optional()
1060
+ placeholder: e.string().optional(),
1061
+ default_value: e.string().optional()
979
1062
  }).optional()
980
- }), Je = e.discriminatedUnion("type", [
981
- Ce,
982
- Te,
983
- Oe,
984
- Ne,
985
- Re,
1063
+ }), no = e.discriminatedUnion("type", [
986
1064
  we,
987
1065
  De,
988
- je
989
- ]), Ze = e.discriminatedUnion("type", [
990
1066
  Le,
1067
+ ve,
991
1068
  ke,
992
- ve
993
- ]), $e = e.discriminatedUnion("type", [
994
1069
  Ue,
995
1070
  Fe,
996
- xe,
1071
+ xe
1072
+ ]), io = e.discriminatedUnion("type", [
997
1073
  Pe,
998
1074
  Me,
999
- He,
1075
+ He
1076
+ ]), ao = e.discriminatedUnion("type", [
1000
1077
  Ge,
1001
1078
  Be,
1002
- Ke,
1003
1079
  We,
1080
+ Ke,
1004
1081
  ze,
1005
1082
  Xe,
1006
- Ve,
1007
1083
  qe,
1084
+ Ve,
1008
1085
  Ye,
1009
- Qe
1010
- ]), R = e.union([
1086
+ Qe,
1011
1087
  Je,
1012
1088
  Ze,
1013
- $e
1014
- ]), ht = e.object({
1089
+ $e,
1090
+ eo,
1091
+ oo,
1092
+ to
1093
+ ]), v = e.union([
1094
+ no,
1095
+ io,
1096
+ ao
1097
+ ]), Ct = /* @__PURE__ */ new Set([
1098
+ "BOOLEAN",
1099
+ "CARDS",
1100
+ "CHOICE",
1101
+ "DATE",
1102
+ "DROPDOWN",
1103
+ "EMAIL",
1104
+ "LEGAL",
1105
+ "NUMBER",
1106
+ "PASSWORD",
1107
+ "TEL",
1108
+ "TEXT",
1109
+ "URL"
1110
+ ]), Tt = e.object({
1015
1111
  id: e.string(),
1016
1112
  type: e.literal("submit"),
1017
1113
  label: e.string(),
@@ -1020,22 +1116,22 @@ const he = e.object({
1020
1116
  order: e.number().optional(),
1021
1117
  visible: e.boolean().optional().default(!0),
1022
1118
  customizations: e.record(e.string(), e.any()).optional()
1023
- }), _ = e.object({
1119
+ }), f = e.object({
1024
1120
  x: e.number(),
1025
1121
  y: e.number()
1026
- }), eo = e.object({
1122
+ }), ro = e.object({
1027
1123
  id: e.string(),
1028
1124
  type: e.literal("FLOW"),
1029
- coordinates: _,
1125
+ coordinates: f,
1030
1126
  alias: e.string().min(1).max(150).optional(),
1031
1127
  config: e.object({
1032
1128
  flow_id: e.string().max(30),
1033
1129
  next_node: e.string().optional()
1034
1130
  })
1035
- }), oo = e.object({
1131
+ }), so = e.object({
1036
1132
  id: e.string(),
1037
1133
  type: e.literal("ROUTER"),
1038
- coordinates: _,
1134
+ coordinates: f,
1039
1135
  alias: e.string().min(1).max(150),
1040
1136
  config: e.object({
1041
1137
  rules: e.array(
@@ -1048,20 +1144,20 @@ const he = e.object({
1048
1144
  ),
1049
1145
  fallback: e.string()
1050
1146
  })
1051
- }), to = e.object({
1147
+ }), lo = e.object({
1052
1148
  id: e.string(),
1053
1149
  type: e.literal("STEP"),
1054
- coordinates: _,
1150
+ coordinates: f,
1055
1151
  alias: e.string().min(1).max(150).optional(),
1056
1152
  config: e.object({
1057
- components: e.array(R),
1153
+ components: e.array(v),
1058
1154
  next_node: e.string().optional()
1059
1155
  })
1060
- }), no = e.discriminatedUnion("type", [
1061
- eo,
1062
- oo,
1063
- to
1064
- ]), io = e.object({
1156
+ }), po = e.discriminatedUnion("type", [
1157
+ ro,
1158
+ so,
1159
+ lo
1160
+ ]), co = e.object({
1065
1161
  name: e.string().openapi({
1066
1162
  description: "The name of the form"
1067
1163
  }),
@@ -1074,11 +1170,11 @@ const he = e.object({
1074
1170
  default: e.string().optional()
1075
1171
  }).optional(),
1076
1172
  translations: e.record(e.string(), e.any()).optional(),
1077
- nodes: e.array(no).optional(),
1173
+ nodes: e.array(po).optional(),
1078
1174
  start: e.object({
1079
1175
  hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
1080
1176
  next_node: e.string().optional(),
1081
- coordinates: _.optional()
1177
+ coordinates: f.optional()
1082
1178
  }).optional(),
1083
1179
  ending: e.object({
1084
1180
  redirection: e.object({
@@ -1086,7 +1182,7 @@ const he = e.object({
1086
1182
  target: e.string().optional()
1087
1183
  }).optional(),
1088
1184
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
1089
- coordinates: _.optional(),
1185
+ coordinates: f.optional(),
1090
1186
  resume_flow: e.boolean().optional()
1091
1187
  }).optional(),
1092
1188
  style: e.object({ css: e.string().optional() }).optional(),
@@ -1096,42 +1192,42 @@ const he = e.object({
1096
1192
  }).optional()
1097
1193
  }).openapi({
1098
1194
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1099
- }), bt = e.object({
1195
+ }), Ot = e.object({
1100
1196
  ...s.shape,
1101
- ...io.shape,
1197
+ ...co.shape,
1102
1198
  id: e.string()
1103
- }), ao = e.object({
1199
+ }), _o = e.object({
1104
1200
  id: e.number().optional(),
1105
1201
  text: e.string(),
1106
1202
  type: e.enum(["info", "error", "success", "warning"])
1107
- }), so = e.object({
1203
+ }), go = e.object({
1108
1204
  id: e.string().optional(),
1109
1205
  text: e.string(),
1110
1206
  href: e.string(),
1111
1207
  linkText: e.string().optional()
1112
- }), ft = e.object({
1208
+ }), Nt = e.object({
1113
1209
  /** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
1114
1210
  name: e.string().optional(),
1115
1211
  action: e.string(),
1116
1212
  method: e.enum(["POST", "GET"]),
1117
1213
  title: e.string().optional(),
1118
1214
  description: e.string().optional(),
1119
- components: e.array(R),
1120
- messages: e.array(ao).optional(),
1121
- links: e.array(so).optional(),
1215
+ components: e.array(v),
1216
+ messages: e.array(_o).optional(),
1217
+ links: e.array(go).optional(),
1122
1218
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1123
1219
  footer: e.string().optional()
1124
1220
  });
1125
- function Et(o) {
1221
+ function Rt(o) {
1126
1222
  return o.category === "BLOCK";
1127
1223
  }
1128
- function St(o) {
1224
+ function jt(o) {
1129
1225
  return o.category === "WIDGET";
1130
1226
  }
1131
- function At(o) {
1227
+ function wt(o) {
1132
1228
  return o.category === "FIELD";
1133
1229
  }
1134
- const w = e.enum([
1230
+ const k = e.enum([
1135
1231
  "pre-user-registration",
1136
1232
  "post-user-registration",
1137
1233
  "post-user-login",
@@ -1139,49 +1235,81 @@ const w = e.enum([
1139
1235
  "pre-user-deletion",
1140
1236
  "post-user-deletion"
1141
1237
  // Potentially other triggers specific to webhooks in the future
1142
- ]), D = e.enum([
1238
+ ]), U = e.enum([
1143
1239
  "pre-user-registration",
1144
1240
  "post-user-registration",
1145
1241
  "post-user-login",
1146
1242
  "validate-registration-username",
1147
1243
  "pre-user-deletion",
1148
1244
  "post-user-deletion"
1149
- ]), m = {
1245
+ ]), F = e.enum([
1246
+ "post-user-login",
1247
+ "credentials-exchange"
1248
+ ]), x = e.enum([
1249
+ "ensure-username",
1250
+ "set-preferred-username"
1251
+ ]), Dt = {
1252
+ "ensure-username": {
1253
+ name: "Ensure Username",
1254
+ description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
1255
+ trigger_id: "post-user-login"
1256
+ },
1257
+ "set-preferred-username": {
1258
+ name: "Set Preferred Username",
1259
+ description: "Sets the preferred_username claim on tokens based on the username from the primary or linked user.",
1260
+ trigger_id: "credentials-exchange"
1261
+ }
1262
+ }, m = {
1150
1263
  enabled: e.boolean().default(!1),
1151
1264
  synchronous: e.boolean().default(!1),
1152
1265
  priority: e.number().optional(),
1153
1266
  hook_id: e.string().optional()
1154
- }, ro = e.object({
1267
+ }, uo = e.object({
1155
1268
  ...m,
1156
- trigger_id: w,
1269
+ trigger_id: k,
1157
1270
  url: e.string()
1158
- }), lo = e.object({
1271
+ }), mo = e.object({
1159
1272
  ...m,
1160
- trigger_id: D,
1273
+ trigger_id: U,
1161
1274
  form_id: e.string()
1162
- }), It = e.union([
1163
- ro,
1164
- lo
1165
- ]), co = e.object({
1275
+ }), ho = e.object({
1166
1276
  ...m,
1167
- trigger_id: w,
1277
+ trigger_id: F,
1278
+ template_id: x
1279
+ }), Lt = e.union([
1280
+ uo,
1281
+ mo,
1282
+ ho
1283
+ ]), bo = e.object({
1284
+ ...m,
1285
+ trigger_id: k,
1168
1286
  ...s.shape,
1169
1287
  hook_id: e.string(),
1170
1288
  url: e.string()
1171
- }), po = e.object({
1289
+ }), fo = e.object({
1172
1290
  ...m,
1173
- trigger_id: D,
1291
+ trigger_id: U,
1174
1292
  ...s.shape,
1175
1293
  hook_id: e.string(),
1176
1294
  form_id: e.string()
1177
- }), yt = e.union([co, po]), _o = e.object({
1295
+ }), Eo = e.object({
1296
+ ...m,
1297
+ trigger_id: F,
1298
+ ...s.shape,
1299
+ hook_id: e.string(),
1300
+ template_id: x
1301
+ }), vt = e.union([
1302
+ bo,
1303
+ fo,
1304
+ Eo
1305
+ ]), So = e.object({
1178
1306
  name: e.string().optional()
1179
- }), go = e.object({
1307
+ }), Ao = e.object({
1180
1308
  email: e.string().optional()
1181
- }), uo = e.object({
1309
+ }), Io = e.object({
1182
1310
  organization_id: e.string().max(50),
1183
- inviter: _o,
1184
- invitee: go,
1311
+ inviter: So,
1312
+ invitee: Ao,
1185
1313
  invitation_url: e.string().url(),
1186
1314
  client_id: e.string(),
1187
1315
  connection_id: e.string().optional(),
@@ -1190,13 +1318,13 @@ const w = e.enum([
1190
1318
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
1191
1319
  roles: e.array(e.string()).default([]).optional(),
1192
1320
  send_invitation_email: e.boolean().default(!0).optional()
1193
- }), Ct = e.object({
1321
+ }), kt = e.object({
1194
1322
  id: e.string(),
1195
1323
  organization_id: e.string().max(50),
1196
1324
  created_at: e.string().datetime(),
1197
1325
  expires_at: e.string().datetime(),
1198
1326
  ticket_id: e.string().optional()
1199
- }).extend(uo.shape), mo = e.object({
1327
+ }).extend(Io.shape), yo = e.object({
1200
1328
  alg: e.enum([
1201
1329
  "RS256",
1202
1330
  "RS384",
@@ -1215,9 +1343,9 @@ const w = e.enum([
1215
1343
  x5t: e.string().optional(),
1216
1344
  x5c: e.array(e.string()).optional(),
1217
1345
  use: e.enum(["sig", "enc"]).optional()
1218
- }), Tt = e.object({
1219
- keys: e.array(mo)
1220
- }), Ot = e.object({
1346
+ }), Ut = e.object({
1347
+ keys: e.array(yo)
1348
+ }), Ft = e.object({
1221
1349
  issuer: e.string(),
1222
1350
  authorization_endpoint: e.string(),
1223
1351
  token_endpoint: e.string(),
@@ -1239,18 +1367,18 @@ const w = e.enum([
1239
1367
  request_parameter_supported: e.boolean(),
1240
1368
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
1241
1369
  });
1242
- var j = /* @__PURE__ */ ((o) => (o.PENDING = "pending", o.AUTHENTICATED = "authenticated", o.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", o.AWAITING_HOOK = "awaiting_hook", o.AWAITING_CONTINUATION = "awaiting_continuation", o.COMPLETED = "completed", o.FAILED = "failed", o.EXPIRED = "expired", o))(j || {});
1243
- const ho = e.nativeEnum(j), bo = e.object({
1370
+ var P = /* @__PURE__ */ ((o) => (o.PENDING = "pending", o.AUTHENTICATED = "authenticated", o.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", o.AWAITING_HOOK = "awaiting_hook", o.AWAITING_CONTINUATION = "awaiting_continuation", o.COMPLETED = "completed", o.FAILED = "failed", o.EXPIRED = "expired", o))(P || {});
1371
+ const Co = e.nativeEnum(P), To = e.object({
1244
1372
  csrf_token: e.string(),
1245
1373
  auth0Client: e.string().optional(),
1246
- authParams: he,
1374
+ authParams: Ie,
1247
1375
  expires_at: e.string(),
1248
1376
  deleted_at: e.string().optional(),
1249
1377
  ip: e.string().optional(),
1250
1378
  useragent: e.string().optional(),
1251
1379
  session_id: e.string().optional(),
1252
1380
  authorization_url: e.string().optional(),
1253
- state: ho.optional().default(
1381
+ state: Co.optional().default(
1254
1382
  "pending"
1255
1383
  /* PENDING */
1256
1384
  ),
@@ -1261,14 +1389,14 @@ const ho = e.nativeEnum(j), bo = e.object({
1261
1389
  // Set once user is authenticated
1262
1390
  }).openapi({
1263
1391
  description: "This represents a login sesion"
1264
- }), Nt = e.object({
1265
- ...bo.shape,
1392
+ }), xt = e.object({
1393
+ ...To.shape,
1266
1394
  id: e.string().openapi({
1267
1395
  description: "This is is used as the state in the universal login"
1268
1396
  }),
1269
1397
  created_at: e.string(),
1270
1398
  updated_at: e.string()
1271
- }), fo = {
1399
+ }), Oo = {
1272
1400
  // Network & System
1273
1401
  ACLS_SUMMARY: "acls_summary",
1274
1402
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1439,24 +1567,24 @@ const ho = e.nativeEnum(j), bo = e.object({
1439
1567
  WARNING_DURING_LOGIN: "w",
1440
1568
  WARNING_SENDING_NOTIFICATION: "wn",
1441
1569
  WARNING_USER_MANAGEMENT: "wum"
1442
- }, Eo = e.string().refine(
1443
- (o) => Object.values(fo).includes(o),
1570
+ }, No = e.string().refine(
1571
+ (o) => Object.values(Oo).includes(o),
1444
1572
  { message: "Invalid log type" }
1445
- ), So = e.object({
1573
+ ), Ro = e.object({
1446
1574
  name: e.string(),
1447
1575
  version: e.string(),
1448
1576
  env: e.object({
1449
1577
  node: e.string().optional()
1450
1578
  }).optional()
1451
- }), Ao = e.object({
1579
+ }), jo = e.object({
1452
1580
  country_code: e.string().length(2),
1453
1581
  city_name: e.string(),
1454
1582
  latitude: e.string(),
1455
1583
  longitude: e.string(),
1456
1584
  time_zone: e.string(),
1457
1585
  continent_code: e.string()
1458
- }), Io = e.object({
1459
- type: Eo,
1586
+ }), wo = e.object({
1587
+ type: No,
1460
1588
  date: e.string(),
1461
1589
  description: e.string().optional(),
1462
1590
  ip: e.string().optional(),
@@ -1475,30 +1603,30 @@ const ho = e.nativeEnum(j), bo = e.object({
1475
1603
  strategy: e.string().optional(),
1476
1604
  strategy_type: e.string().optional(),
1477
1605
  hostname: e.string().optional(),
1478
- auth0_client: So.optional(),
1606
+ auth0_client: Ro.optional(),
1479
1607
  log_id: e.string().optional(),
1480
- location_info: Ao.optional()
1481
- }), Rt = e.object({
1482
- ...Io.shape,
1608
+ location_info: jo.optional()
1609
+ }), Pt = e.object({
1610
+ ...wo.shape,
1483
1611
  log_id: e.string()
1484
- }), yo = e.object({
1612
+ }), Do = e.object({
1485
1613
  id: e.string().optional(),
1486
1614
  user_id: e.string(),
1487
1615
  password: e.string(),
1488
1616
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
1489
1617
  is_current: e.boolean().default(!0)
1490
- }), wt = yo.extend({
1618
+ }), Mt = Do.extend({
1491
1619
  id: e.string(),
1492
1620
  created_at: e.string(),
1493
1621
  updated_at: e.string()
1494
- }), L = e.object({
1622
+ }), M = e.object({
1495
1623
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
1496
1624
  initial_ip: e.string().describe("First IP address associated with this session"),
1497
1625
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
1498
1626
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
1499
1627
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1500
1628
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1501
- }), Co = e.object({
1629
+ }), Lo = e.object({
1502
1630
  id: e.string(),
1503
1631
  revoked_at: e.string().optional(),
1504
1632
  used_at: e.string().optional(),
@@ -1506,17 +1634,17 @@ const ho = e.nativeEnum(j), bo = e.object({
1506
1634
  expires_at: e.string().optional(),
1507
1635
  login_session_id: e.string(),
1508
1636
  idle_expires_at: e.string().optional(),
1509
- device: L.describe(
1637
+ device: M.describe(
1510
1638
  "Metadata related to the device used in the session"
1511
1639
  ),
1512
1640
  clients: e.array(e.string()).describe("List of client details for the session")
1513
- }), Dt = e.object({
1641
+ }), Ht = e.object({
1514
1642
  created_at: e.string(),
1515
1643
  updated_at: e.string(),
1516
1644
  authenticated_at: e.string(),
1517
1645
  last_interaction_at: e.string(),
1518
- ...Co.shape
1519
- }), jt = e.object({
1646
+ ...Lo.shape
1647
+ }), Gt = e.object({
1520
1648
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1521
1649
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1522
1650
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1541,7 +1669,7 @@ const ho = e.nativeEnum(j), bo = e.object({
1541
1669
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
1542
1670
  description: "The type of the signing key"
1543
1671
  })
1544
- }), To = e.object({
1672
+ }), vo = e.object({
1545
1673
  id: e.string().optional(),
1546
1674
  // Basic settings
1547
1675
  audience: e.string(),
@@ -1694,14 +1822,14 @@ const ho = e.nativeEnum(j), bo = e.object({
1694
1822
  message: e.string().optional()
1695
1823
  }).optional()
1696
1824
  }).optional()
1697
- }), Lt = e.object({
1825
+ }), Bt = e.object({
1698
1826
  created_at: e.string().nullable().transform((o) => o ?? ""),
1699
1827
  updated_at: e.string().nullable().transform((o) => o ?? ""),
1700
- ...To.shape,
1828
+ ...vo.shape,
1701
1829
  id: e.string()
1702
1830
  });
1703
- var Oo = /* @__PURE__ */ ((o) => (o.RefreshToken = "refresh_token", o.AuthorizationCode = "authorization_code", o.ClientCredential = "client_credentials", o.Passwordless = "passwordless", o.Password = "password", o.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", o))(Oo || {});
1704
- const kt = e.object({
1831
+ var ko = /* @__PURE__ */ ((o) => (o.RefreshToken = "refresh_token", o.AuthorizationCode = "authorization_code", o.ClientCredential = "client_credentials", o.Passwordless = "passwordless", o.Password = "password", o.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", o))(ko || {});
1832
+ const Wt = e.object({
1705
1833
  access_token: e.string(),
1706
1834
  id_token: e.string().optional(),
1707
1835
  scope: e.string().optional(),
@@ -1714,7 +1842,7 @@ e.object({
1714
1842
  code: e.string(),
1715
1843
  state: e.string().optional()
1716
1844
  });
1717
- const No = e.object({
1845
+ const Uo = e.object({
1718
1846
  button_border_radius: e.number(),
1719
1847
  button_border_weight: e.number(),
1720
1848
  buttons_style: e.enum(["pill", "rounded", "sharp"]),
@@ -1724,7 +1852,7 @@ const No = e.object({
1724
1852
  show_widget_shadow: e.boolean(),
1725
1853
  widget_border_weight: e.number(),
1726
1854
  widget_corner_radius: e.number()
1727
- }), Ro = e.object({
1855
+ }), Fo = e.object({
1728
1856
  base_focus_color: e.string(),
1729
1857
  base_hover_color: e.string(),
1730
1858
  body_text: e.string(),
@@ -1744,44 +1872,44 @@ const No = e.object({
1744
1872
  success: e.string(),
1745
1873
  widget_background: e.string(),
1746
1874
  widget_border: e.string()
1747
- }), l = e.object({
1875
+ }), g = e.object({
1748
1876
  bold: e.boolean(),
1749
1877
  size: e.number()
1750
- }), wo = e.object({
1751
- body_text: l,
1752
- buttons_text: l,
1878
+ }), xo = e.object({
1879
+ body_text: g,
1880
+ buttons_text: g,
1753
1881
  font_url: e.string(),
1754
- input_labels: l,
1755
- links: l,
1882
+ input_labels: g,
1883
+ links: g,
1756
1884
  links_style: e.enum(["normal", "underlined"]),
1757
1885
  reference_text_size: e.number(),
1758
- subtitle: l,
1759
- title: l
1760
- }), Do = e.object({
1886
+ subtitle: g,
1887
+ title: g
1888
+ }), Po = e.object({
1761
1889
  background_color: e.string(),
1762
1890
  background_image_url: e.string(),
1763
1891
  page_layout: e.enum(["center", "left", "right"])
1764
- }), jo = e.object({
1892
+ }), Mo = e.object({
1765
1893
  header_text_alignment: e.enum(["center", "left", "right"]),
1766
1894
  logo_height: e.number(),
1767
1895
  logo_position: e.enum(["center", "left", "none", "right"]),
1768
1896
  logo_url: e.string(),
1769
1897
  social_buttons_layout: e.enum(["bottom", "top"])
1770
- }), Lo = e.object({
1771
- borders: No,
1772
- colors: Ro,
1898
+ }), Ho = e.object({
1899
+ borders: Uo,
1900
+ colors: Fo,
1773
1901
  displayName: e.string(),
1774
- fonts: wo,
1775
- page_background: Do,
1776
- widget: jo
1777
- }), vt = Lo.extend({
1902
+ fonts: xo,
1903
+ page_background: Po,
1904
+ widget: Mo
1905
+ }), Kt = Ho.extend({
1778
1906
  themeId: e.string()
1779
- }), Ut = e.object({
1907
+ }), zt = e.object({
1780
1908
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
1781
1909
  identifier_first: e.boolean().default(!0),
1782
1910
  password_first: e.boolean().default(!1),
1783
1911
  webauthn_platform_first_factor: e.boolean()
1784
- }), Ft = e.object({
1912
+ }), Xt = e.object({
1785
1913
  name: e.string(),
1786
1914
  enabled: e.boolean().optional().default(!0),
1787
1915
  default_from_address: e.string().optional(),
@@ -1811,7 +1939,7 @@ const No = e.object({
1811
1939
  })
1812
1940
  ]),
1813
1941
  settings: e.object({}).optional()
1814
- }), ko = e.object({
1942
+ }), Go = e.object({
1815
1943
  // The actual refresh token value (primary key).
1816
1944
  id: e.string(),
1817
1945
  // Link to the session record
@@ -1824,7 +1952,7 @@ const No = e.object({
1824
1952
  idle_expires_at: e.string().optional(),
1825
1953
  // When the token was last used.
1826
1954
  last_exchanged_at: e.string().optional(),
1827
- device: L,
1955
+ device: M,
1828
1956
  resource_servers: e.array(
1829
1957
  e.object({
1830
1958
  audience: e.string(),
@@ -1832,21 +1960,21 @@ const No = e.object({
1832
1960
  })
1833
1961
  ),
1834
1962
  rotating: e.boolean()
1835
- }), xt = e.object({
1963
+ }), qt = e.object({
1836
1964
  // When the refresh token record was created.
1837
1965
  created_at: e.string(),
1838
1966
  // Spread in the rest of the refresh token properties.
1839
- ...ko.shape
1840
- }), Pt = e.object({
1967
+ ...Go.shape
1968
+ }), Vt = e.object({
1841
1969
  to: e.string(),
1842
1970
  message: e.string()
1843
- }), Mt = e.object({
1971
+ }), Yt = e.object({
1844
1972
  name: e.string(),
1845
1973
  options: e.object({})
1846
- }), vo = e.object({
1974
+ }), Bo = e.object({
1847
1975
  value: e.string(),
1848
1976
  description: e.string().optional()
1849
- }), Uo = e.object({
1977
+ }), Wo = e.object({
1850
1978
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
1851
1979
  enforce_policies: e.boolean().optional(),
1852
1980
  allow_skipping_userinfo: e.boolean().optional(),
@@ -1856,11 +1984,11 @@ const No = e.object({
1856
1984
  mtls: e.object({
1857
1985
  bound_access_tokens: e.boolean().optional()
1858
1986
  }).optional()
1859
- }), Fo = e.object({
1987
+ }), Ko = e.object({
1860
1988
  id: e.string().optional(),
1861
1989
  name: e.string(),
1862
1990
  identifier: e.string(),
1863
- scopes: e.array(vo).optional(),
1991
+ scopes: e.array(Bo).optional(),
1864
1992
  signing_alg: e.string().optional(),
1865
1993
  signing_secret: e.string().optional(),
1866
1994
  token_lifetime: e.number().optional(),
@@ -1868,30 +1996,30 @@ const No = e.object({
1868
1996
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
1869
1997
  allow_offline_access: e.boolean().optional(),
1870
1998
  verificationKey: e.string().optional(),
1871
- options: Uo.optional(),
1999
+ options: Wo.optional(),
1872
2000
  is_system: e.boolean().optional(),
1873
2001
  metadata: e.record(e.any()).optional()
1874
- }), xo = e.object({
1875
- ...Fo.shape,
2002
+ }), zo = e.object({
2003
+ ...Ko.shape,
1876
2004
  created_at: e.string().optional(),
1877
2005
  updated_at: e.string().optional()
1878
- }), Ht = e.array(xo), Po = e.object({
2006
+ }), Qt = e.array(zo), Xo = e.object({
1879
2007
  role_id: e.string(),
1880
2008
  resource_server_identifier: e.string(),
1881
2009
  permission_name: e.string()
1882
- }), Mo = e.object({
1883
- ...Po.shape,
2010
+ }), qo = e.object({
2011
+ ...Xo.shape,
1884
2012
  created_at: e.string()
1885
- }), Gt = e.array(Mo), Ho = e.object({
2013
+ }), Jt = e.array(qo), Vo = e.object({
1886
2014
  user_id: e.string(),
1887
2015
  resource_server_identifier: e.string(),
1888
2016
  permission_name: e.string(),
1889
2017
  organization_id: e.string().optional()
1890
- }), Go = e.object({
1891
- ...Ho.shape,
2018
+ }), Yo = e.object({
2019
+ ...Vo.shape,
1892
2020
  tenant_id: e.string(),
1893
2021
  created_at: e.string().optional()
1894
- }), Bt = e.array(Go), Bo = e.object({
2022
+ }), Zt = e.array(Yo), Qo = e.object({
1895
2023
  user_id: e.string(),
1896
2024
  resource_server_identifier: e.string(),
1897
2025
  resource_server_name: e.string(),
@@ -1899,17 +2027,17 @@ const No = e.object({
1899
2027
  description: e.string().nullable().optional(),
1900
2028
  created_at: e.string().optional(),
1901
2029
  organization_id: e.string().optional()
1902
- }), Kt = e.array(
1903
- Bo
1904
- ), Ko = e.object({
2030
+ }), $t = e.array(
2031
+ Qo
2032
+ ), Jo = e.object({
1905
2033
  user_id: e.string(),
1906
2034
  role_id: e.string(),
1907
2035
  organization_id: e.string().optional()
1908
- }), Wo = e.object({
1909
- ...Ko.shape,
2036
+ }), Zo = e.object({
2037
+ ...Jo.shape,
1910
2038
  tenant_id: e.string(),
1911
2039
  created_at: e.string().optional()
1912
- }), Wt = e.array(Wo), zo = e.object({
2040
+ }), en = e.array(Zo), $o = e.object({
1913
2041
  id: e.string().optional().openapi({
1914
2042
  description: "The unique identifier of the role. If not provided, one will be generated."
1915
2043
  }),
@@ -1923,13 +2051,13 @@ const No = e.object({
1923
2051
  metadata: e.record(e.any()).optional().openapi({
1924
2052
  description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
1925
2053
  })
1926
- }), Xo = zo.extend({
2054
+ }), et = $o.extend({
1927
2055
  id: e.string().openapi({
1928
2056
  description: "The unique identifier of the role"
1929
2057
  }),
1930
2058
  created_at: e.string().optional(),
1931
2059
  updated_at: e.string().optional()
1932
- }), zt = e.array(Xo), Vo = e.object({
2060
+ }), on = e.array(et), ot = e.object({
1933
2061
  logo_url: e.string().optional().openapi({
1934
2062
  description: "URL of the organization's logo"
1935
2063
  }),
@@ -1941,7 +2069,7 @@ const No = e.object({
1941
2069
  description: "Page background color in hex format (e.g., #FFFFFF)"
1942
2070
  })
1943
2071
  }).optional()
1944
- }).optional(), qo = e.object({
2072
+ }).optional(), tt = e.object({
1945
2073
  connection_id: e.string().openapi({
1946
2074
  description: "ID of the connection"
1947
2075
  }),
@@ -1954,7 +2082,7 @@ const No = e.object({
1954
2082
  is_signup_enabled: e.boolean().default(!0).openapi({
1955
2083
  description: "Whether signup is enabled for this connection"
1956
2084
  })
1957
- }), Yo = e.object({
2085
+ }), nt = e.object({
1958
2086
  client_credentials: e.object({
1959
2087
  enforce: e.boolean().default(!1).openapi({
1960
2088
  description: "Whether to enforce token quota limits"
@@ -1966,7 +2094,7 @@ const No = e.object({
1966
2094
  description: "Maximum tokens per hour (0 = unlimited)"
1967
2095
  })
1968
2096
  }).optional()
1969
- }).optional(), Qo = e.object({
2097
+ }).optional(), it = e.object({
1970
2098
  id: e.string().optional(),
1971
2099
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
1972
2100
  message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
@@ -1976,34 +2104,34 @@ const No = e.object({
1976
2104
  display_name: e.string().optional().openapi({
1977
2105
  description: "The display name of the organization"
1978
2106
  }),
1979
- branding: Vo,
2107
+ branding: ot,
1980
2108
  metadata: e.record(e.any()).default({}).optional().openapi({
1981
2109
  description: "Custom metadata for the organization"
1982
2110
  }),
1983
- enabled_connections: e.array(qo).default([]).optional().openapi({
2111
+ enabled_connections: e.array(tt).default([]).optional().openapi({
1984
2112
  description: "List of enabled connections for the organization"
1985
2113
  }),
1986
- token_quota: Yo
1987
- }), Xt = e.object({
1988
- ...Qo.shape,
2114
+ token_quota: nt
2115
+ }), tn = e.object({
2116
+ ...it.shape,
1989
2117
  ...s.shape,
1990
2118
  id: e.string(),
1991
2119
  // Override name to be lenient when reading from database (to support existing uppercase names)
1992
2120
  name: e.string().min(1).openapi({
1993
2121
  description: "The name of the organization"
1994
2122
  })
1995
- }), Jo = e.object({
2123
+ }), at = e.object({
1996
2124
  user_id: e.string().openapi({
1997
2125
  description: "ID of the user"
1998
2126
  }),
1999
2127
  organization_id: e.string().openapi({
2000
2128
  description: "ID of the organization"
2001
2129
  })
2002
- }), Vt = e.object({
2003
- ...Jo.shape,
2130
+ }), nn = e.object({
2131
+ ...at.shape,
2004
2132
  ...s.shape,
2005
2133
  id: e.string()
2006
- }), qt = e.object({
2134
+ }), an = e.object({
2007
2135
  // Session settings
2008
2136
  idle_session_lifetime: e.number().optional(),
2009
2137
  session_lifetime: e.number().optional(),
@@ -2101,7 +2229,7 @@ const No = e.object({
2101
2229
  message: e.string().optional()
2102
2230
  }).optional()
2103
2231
  }).optional()
2104
- }), Yt = e.object({
2232
+ }), rn = e.object({
2105
2233
  date: e.string().openapi({
2106
2234
  description: "Date these events occurred in ISO 8601 format",
2107
2235
  example: "2025-12-19"
@@ -2126,10 +2254,10 @@ const No = e.object({
2126
2254
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2127
2255
  example: "2025-12-19T00:00:00.000Z"
2128
2256
  })
2129
- }), Qt = e.number().openapi({
2257
+ }), sn = e.number().openapi({
2130
2258
  description: "Number of active users in the last 30 days",
2131
2259
  example: 1234
2132
- }), Zo = e.enum([
2260
+ }), rt = e.enum([
2133
2261
  "login",
2134
2262
  "login-id",
2135
2263
  "login-password",
@@ -2157,213 +2285,244 @@ const No = e.object({
2157
2285
  "passkeys",
2158
2286
  "captcha",
2159
2287
  "custom-form"
2160
- ]), $o = e.record(e.string(), e.string()).openapi({
2288
+ ]), st = e.record(e.string(), e.string()).openapi({
2161
2289
  type: "object",
2162
2290
  additionalProperties: { type: "string" }
2163
- }), Jt = e.object({
2164
- prompt: Zo,
2291
+ }), ln = e.object({
2292
+ prompt: rt,
2165
2293
  language: e.string(),
2166
- custom_text: $o
2294
+ custom_text: st
2167
2295
  });
2168
- function Zt(o) {
2169
- const [a, r] = o.split("|");
2170
- if (!a || !r)
2296
+ function pn(o) {
2297
+ const [n, i] = o.split("|");
2298
+ if (!n || !i)
2171
2299
  throw new Error(`Invalid user_id: ${o}`);
2172
- return { connection: a, id: r };
2300
+ return { connection: n, id: i };
2173
2301
  }
2174
- function $t(o) {
2302
+ function cn(o) {
2175
2303
  const {
2176
- primary: a,
2177
- secondaries: r,
2178
- syncMethods: k = ["create", "update", "remove", "delete", "set"]
2179
- } = o, v = {
2180
- get(d, n) {
2181
- if (typeof n == "symbol")
2182
- return d[n];
2183
- const g = d[n];
2184
- return typeof g != "function" ? g : k.includes(n) ? async (...h) => {
2185
- const U = await g.apply(d, h), b = [];
2186
- for (const p of r) {
2187
- const S = p.adapter[n];
2188
- if (typeof S != "function")
2304
+ primary: n,
2305
+ secondaries: i,
2306
+ syncMethods: O = ["create", "update", "remove", "delete", "set"]
2307
+ } = o, E = {
2308
+ get(p, a) {
2309
+ if (typeof a == "symbol")
2310
+ return p[a];
2311
+ const c = p[a];
2312
+ return typeof c != "function" ? c : O.includes(a) ? async (..._) => {
2313
+ const S = await c.apply(p, _), d = [];
2314
+ for (const r of i) {
2315
+ const h = r.adapter[a];
2316
+ if (typeof h != "function")
2189
2317
  continue;
2190
- const F = (async () => {
2318
+ const A = (async () => {
2191
2319
  try {
2192
- await S.apply(p.adapter, h);
2193
- } catch (A) {
2320
+ await h.apply(r.adapter, _);
2321
+ } catch (b) {
2194
2322
  try {
2195
- p.onError ? p.onError(A, n, h) : console.error(
2196
- `Passthrough adapter: secondary write failed for ${n}:`,
2197
- A
2323
+ r.onError ? r.onError(b, a, _) : console.error(
2324
+ `Passthrough adapter: secondary write failed for ${a}:`,
2325
+ b
2198
2326
  );
2199
- } catch (x) {
2327
+ } catch (I) {
2200
2328
  console.error(
2201
- `Passthrough adapter: onError handler threw for ${n}:`,
2202
- x
2329
+ `Passthrough adapter: onError handler threw for ${a}:`,
2330
+ I
2203
2331
  );
2204
2332
  }
2205
2333
  }
2206
2334
  })();
2207
- p.blocking && b.push(F);
2335
+ r.blocking && d.push(A);
2208
2336
  }
2209
- return b.length > 0 && await Promise.all(b), U;
2210
- } : g.bind(d);
2337
+ return d.length > 0 && await Promise.all(d), S;
2338
+ } : c.bind(p);
2211
2339
  }
2212
2340
  };
2213
- return new Proxy(a, v);
2341
+ return new Proxy(n, E);
2214
2342
  }
2215
- function en(o) {
2343
+ function _n(o) {
2216
2344
  return o;
2217
2345
  }
2346
+ function dn(o) {
2347
+ var E, p, a, c, _, S, d, r, h, A, b, I;
2348
+ const n = o == null ? void 0 : o.options;
2349
+ if (!n)
2350
+ return {
2351
+ usernameIdentifierActive: !1,
2352
+ emailIdentifierActive: !0,
2353
+ usernameMinLength: 1,
2354
+ usernameMaxLength: 15
2355
+ };
2356
+ const i = n.attributes;
2357
+ if (i) {
2358
+ const H = ((p = (E = i.username) == null ? void 0 : E.identifier) == null ? void 0 : p.active) === !0, G = ((c = (a = i.email) == null ? void 0 : a.identifier) == null ? void 0 : c.active) !== !1, B = ((S = (_ = i.username) == null ? void 0 : _.validation) == null ? void 0 : S.min_length) ?? 1, W = ((r = (d = i.username) == null ? void 0 : d.validation) == null ? void 0 : r.max_length) ?? 15;
2359
+ return {
2360
+ usernameIdentifierActive: H,
2361
+ emailIdentifierActive: G,
2362
+ usernameMinLength: B,
2363
+ usernameMaxLength: W
2364
+ };
2365
+ }
2366
+ return {
2367
+ usernameIdentifierActive: n.requires_username === !0,
2368
+ emailIdentifierActive: !0,
2369
+ usernameMinLength: ((A = (h = n.validation) == null ? void 0 : h.username) == null ? void 0 : A.min) ?? 1,
2370
+ usernameMaxLength: ((I = (b = n.validation) == null ? void 0 : b.username) == null ? void 0 : I.max) ?? 15
2371
+ };
2372
+ }
2218
2373
  export {
2219
- tt as Auth0ActionEnum,
2220
- So as Auth0Client,
2221
- O as AuthorizationResponseMode,
2222
- T as AuthorizationResponseType,
2223
- N as CodeChallengeMethod,
2224
- C as ComponentCategory,
2225
- y as ComponentType,
2226
- nt as EmailActionEnum,
2227
- ot as FlowActionTypeEnum,
2228
- Oo as GrantType,
2229
- Ao as LocationInfo,
2230
- fo as LogTypes,
2231
- j as LoginSessionState,
2232
- re as NodeType,
2233
- G as RedirectTargetEnum,
2234
- pe as actionNodeSchema,
2235
- Qt as activeUsersResponseSchema,
2236
- V as addressSchema,
2237
- _t as auth0FlowInsertSchema,
2238
- me as auth0FlowSchema,
2239
- at as auth0QuerySchema,
2240
- M as auth0UpdateUserActionSchema,
2241
- rt as auth0UserResponseSchema,
2242
- he as authParamsSchema,
2243
- I as baseUserSchema,
2244
- Je as blockComponentSchema,
2245
- No as bordersSchema,
2246
- dt as brandingSchema,
2247
- te as buttonComponentSchema,
2248
- $ as clientGrantInsertSchema,
2249
- pt as clientGrantListSchema,
2250
- ee as clientGrantSchema,
2251
- Z as clientInsertSchema,
2252
- ct as clientSchema,
2253
- fe as codeInsertSchema,
2254
- gt as codeSchema,
2255
- be as codeTypeSchema,
2256
- Ro as colorsSchema,
2257
- ao as componentMessageSchema,
2258
- se as componentSchema,
2259
- Se as connectionInsertSchema,
2260
- Ee as connectionOptionsSchema,
2261
- ut as connectionSchema,
2262
- c as coordinatesSchema,
2263
- $t as createPassthroughAdapter,
2264
- en as createWriteOnlyAdapter,
2265
- Ae as customDomainInsertSchema,
2266
- ye as customDomainSchema,
2267
- mt as customDomainWithTenantIdSchema,
2268
- Jt as customTextEntrySchema,
2269
- $o as customTextSchema,
2270
- Yt as dailyStatsSchema,
2271
- Ft as emailProviderSchema,
2272
- P as emailVerificationRulesSchema,
2273
- H as emailVerifyActionSchema,
2274
- ue as endingSchema,
2275
- $e as fieldComponentSchema,
2276
- K as flowActionStepSchema,
2277
- W as flowInsertSchema,
2278
- it as flowSchema,
2279
- ie as flowsFieldComponentSchema,
2280
- ce as flowsFlowNodeSchema,
2281
- le as flowsStepNodeSchema,
2282
- l as fontDetailsSchema,
2283
- wo as fontsSchema,
2284
- ht as formControlSchema,
2285
- io as formInsertSchema,
2286
- R as formNodeComponentDefinition,
2287
- no as formNodeSchema,
2288
- bt as formSchema,
2289
- ae as genericComponentSchema,
2290
- _e as genericNodeSchema,
2291
- It as hookInsertSchema,
2292
- yt as hookSchema,
2293
- X as identitySchema,
2294
- uo as inviteInsertSchema,
2295
- Ct as inviteSchema,
2296
- go as inviteeSchema,
2297
- _o as inviterSchema,
2298
- Et as isBlockComponent,
2299
- At as isFieldComponent,
2300
- St as isWidgetComponent,
2301
- Tt as jwksKeySchema,
2302
- mo as jwksSchema,
2303
- ne as legalComponentSchema,
2304
- Io as logInsertSchema,
2305
- Rt as logSchema,
2306
- bo as loginSessionInsertSchema,
2307
- Nt as loginSessionSchema,
2308
- ho as loginSessionStateSchema,
2309
- de as nodeSchema,
2310
- Ot as openIDConfigurationSchema,
2311
- Vo as organizationBrandingSchema,
2312
- qo as organizationEnabledConnectionSchema,
2313
- Qo as organizationInsertSchema,
2314
- Xt as organizationSchema,
2315
- Yo as organizationTokenQuotaSchema,
2316
- Do as pageBackgroundSchema,
2317
- Zt as parseUserId,
2318
- yo as passwordInsertSchema,
2319
- wt as passwordSchema,
2320
- z as profileDataSchema,
2321
- Zo as promptScreenSchema,
2322
- Ut as promptSettingSchema,
2323
- B as redirectActionSchema,
2324
- ko as refreshTokenInsertSchema,
2325
- xt as refreshTokenSchema,
2326
- Fo as resourceServerInsertSchema,
2327
- Ht as resourceServerListSchema,
2328
- Uo as resourceServerOptionsSchema,
2329
- xo as resourceServerSchema,
2330
- vo as resourceServerScopeSchema,
2331
- oe as richTextComponentSchema,
2332
- zo as roleInsertSchema,
2333
- zt as roleListSchema,
2334
- Po as rolePermissionInsertSchema,
2335
- Gt as rolePermissionListSchema,
2336
- Mo as rolePermissionSchema,
2337
- Xo as roleSchema,
2338
- so as screenLinkSchema,
2339
- Co as sessionInsertSchema,
2340
- Dt as sessionSchema,
2341
- jt as signingKeySchema,
2342
- Mt as smsProviderSchema,
2343
- Pt as smsSendParamsSchema,
2344
- ge as startSchema,
2345
- To as tenantInsertSchema,
2346
- Lt as tenantSchema,
2347
- qt as tenantSettingsSchema,
2348
- Lo as themeInsertSchema,
2349
- vt as themeSchema,
2350
- kt as tokenResponseSchema,
2351
- st as totalsSchema,
2352
- ft as uiScreenSchema,
2353
- q as userInsertSchema,
2354
- Jo as userOrganizationInsertSchema,
2355
- Vt as userOrganizationSchema,
2356
- Ho as userPermissionInsertSchema,
2357
- Bt as userPermissionListSchema,
2358
- Go as userPermissionSchema,
2359
- Kt as userPermissionWithDetailsListSchema,
2360
- Bo as userPermissionWithDetailsSchema,
2361
- lt as userResponseSchema,
2362
- Ko as userRoleInsertSchema,
2363
- Wt as userRoleListSchema,
2364
- Wo as userRoleSchema,
2365
- Y as userSchema,
2366
- Ie as verificationMethodsSchema,
2367
- Ze as widgetComponentSchema,
2368
- jo as widgetSchema
2374
+ ct as Auth0ActionEnum,
2375
+ Ro as Auth0Client,
2376
+ D as AuthorizationResponseMode,
2377
+ w as AuthorizationResponseType,
2378
+ L as CodeChallengeMethod,
2379
+ j as ComponentCategory,
2380
+ R as ComponentType,
2381
+ _t as EmailActionEnum,
2382
+ Ct as FORM_FIELD_TYPES,
2383
+ pt as FlowActionTypeEnum,
2384
+ ko as GrantType,
2385
+ jo as LocationInfo,
2386
+ Oo as LogTypes,
2387
+ P as LoginSessionState,
2388
+ ge as NodeType,
2389
+ q as RedirectTargetEnum,
2390
+ he as actionNodeSchema,
2391
+ sn as activeUsersResponseSchema,
2392
+ $ as addressSchema,
2393
+ Et as auth0FlowInsertSchema,
2394
+ Ae as auth0FlowSchema,
2395
+ gt as auth0QuerySchema,
2396
+ z as auth0UpdateUserActionSchema,
2397
+ mt as auth0UserResponseSchema,
2398
+ Ie as authParamsSchema,
2399
+ N as baseUserSchema,
2400
+ no as blockComponentSchema,
2401
+ Uo as bordersSchema,
2402
+ St as brandingSchema,
2403
+ le as buttonComponentSchema,
2404
+ ae as clientGrantInsertSchema,
2405
+ ft as clientGrantListSchema,
2406
+ re as clientGrantSchema,
2407
+ ie as clientInsertSchema,
2408
+ bt as clientSchema,
2409
+ Ce as codeInsertSchema,
2410
+ At as codeSchema,
2411
+ ye as codeTypeSchema,
2412
+ Fo as colorsSchema,
2413
+ _o as componentMessageSchema,
2414
+ de as componentSchema,
2415
+ Oe as connectionInsertSchema,
2416
+ Te as connectionOptionsSchema,
2417
+ It as connectionSchema,
2418
+ u as coordinatesSchema,
2419
+ cn as createPassthroughAdapter,
2420
+ _n as createWriteOnlyAdapter,
2421
+ Ne as customDomainInsertSchema,
2422
+ je as customDomainSchema,
2423
+ yt as customDomainWithTenantIdSchema,
2424
+ ln as customTextEntrySchema,
2425
+ st as customTextSchema,
2426
+ rn as dailyStatsSchema,
2427
+ Xt as emailProviderSchema,
2428
+ K as emailVerificationRulesSchema,
2429
+ X as emailVerifyActionSchema,
2430
+ Se as endingSchema,
2431
+ ao as fieldComponentSchema,
2432
+ Y as flowActionStepSchema,
2433
+ Q as flowInsertSchema,
2434
+ dt as flowSchema,
2435
+ ce as flowsFieldComponentSchema,
2436
+ me as flowsFlowNodeSchema,
2437
+ ue as flowsStepNodeSchema,
2438
+ g as fontDetailsSchema,
2439
+ xo as fontsSchema,
2440
+ Tt as formControlSchema,
2441
+ co as formInsertSchema,
2442
+ v as formNodeComponentDefinition,
2443
+ po as formNodeSchema,
2444
+ Ot as formSchema,
2445
+ _e as genericComponentSchema,
2446
+ be as genericNodeSchema,
2447
+ dn as getConnectionIdentifierConfig,
2448
+ Lt as hookInsertSchema,
2449
+ vt as hookSchema,
2450
+ x as hookTemplateId,
2451
+ Dt as hookTemplates,
2452
+ Z as identitySchema,
2453
+ Io as inviteInsertSchema,
2454
+ kt as inviteSchema,
2455
+ Ao as inviteeSchema,
2456
+ So as inviterSchema,
2457
+ Rt as isBlockComponent,
2458
+ wt as isFieldComponent,
2459
+ jt as isWidgetComponent,
2460
+ Ut as jwksKeySchema,
2461
+ yo as jwksSchema,
2462
+ pe as legalComponentSchema,
2463
+ wo as logInsertSchema,
2464
+ Pt as logSchema,
2465
+ To as loginSessionInsertSchema,
2466
+ xt as loginSessionSchema,
2467
+ Co as loginSessionStateSchema,
2468
+ fe as nodeSchema,
2469
+ Ft as openIDConfigurationSchema,
2470
+ ot as organizationBrandingSchema,
2471
+ tt as organizationEnabledConnectionSchema,
2472
+ it as organizationInsertSchema,
2473
+ tn as organizationSchema,
2474
+ nt as organizationTokenQuotaSchema,
2475
+ Po as pageBackgroundSchema,
2476
+ pn as parseUserId,
2477
+ Do as passwordInsertSchema,
2478
+ Mt as passwordSchema,
2479
+ J as profileDataSchema,
2480
+ rt as promptScreenSchema,
2481
+ zt as promptSettingSchema,
2482
+ V as redirectActionSchema,
2483
+ Go as refreshTokenInsertSchema,
2484
+ qt as refreshTokenSchema,
2485
+ Ko as resourceServerInsertSchema,
2486
+ Qt as resourceServerListSchema,
2487
+ Wo as resourceServerOptionsSchema,
2488
+ zo as resourceServerSchema,
2489
+ Bo as resourceServerScopeSchema,
2490
+ se as richTextComponentSchema,
2491
+ $o as roleInsertSchema,
2492
+ on as roleListSchema,
2493
+ Xo as rolePermissionInsertSchema,
2494
+ Jt as rolePermissionListSchema,
2495
+ qo as rolePermissionSchema,
2496
+ et as roleSchema,
2497
+ go as screenLinkSchema,
2498
+ Lo as sessionInsertSchema,
2499
+ Ht as sessionSchema,
2500
+ Gt as signingKeySchema,
2501
+ Yt as smsProviderSchema,
2502
+ Vt as smsSendParamsSchema,
2503
+ Ee as startSchema,
2504
+ vo as tenantInsertSchema,
2505
+ Bt as tenantSchema,
2506
+ an as tenantSettingsSchema,
2507
+ Ho as themeInsertSchema,
2508
+ Kt as themeSchema,
2509
+ Wt as tokenResponseSchema,
2510
+ ut as totalsSchema,
2511
+ Nt as uiScreenSchema,
2512
+ ee as userInsertSchema,
2513
+ at as userOrganizationInsertSchema,
2514
+ nn as userOrganizationSchema,
2515
+ Vo as userPermissionInsertSchema,
2516
+ Zt as userPermissionListSchema,
2517
+ Yo as userPermissionSchema,
2518
+ $t as userPermissionWithDetailsListSchema,
2519
+ Qo as userPermissionWithDetailsSchema,
2520
+ ht as userResponseSchema,
2521
+ Jo as userRoleInsertSchema,
2522
+ en as userRoleListSchema,
2523
+ Zo as userRoleSchema,
2524
+ oe as userSchema,
2525
+ Re as verificationMethodsSchema,
2526
+ io as widgetComponentSchema,
2527
+ Mo as widgetSchema
2369
2528
  };