@authhero/adapter-interfaces 0.133.0 → 0.135.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,21 +1,21 @@
1
1
  import { z as e } from "@hono/zod-openapi";
2
- const r = e.object({
2
+ const p = 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
+ }), at = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), st = 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
+ ]), rt = e.enum(["VERIFY_EMAIL"]), B = 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
+ }), W = 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 r = e.object({
27
27
  user_id: e.string(),
28
28
  changes: e.record(e.string(), e.any())
29
29
  })
30
- }), H = e.object({
30
+ }), K = 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 r = 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: B.optional()
40
40
  })
41
- }), G = e.enum(["change-email", "account", "custom"]), B = e.object({
41
+ }), z = e.enum(["change-email", "account", "custom"]), X = 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 r = 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: z.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
+ }), V = e.union([
57
+ W,
58
+ K,
59
+ X
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(V).optional().default([]).openapi({
66
66
  description: "The list of actions to execute in sequence"
67
67
  })
68
- }), it = W.extend({
69
- ...r.shape,
68
+ }), lt = q.extend({
69
+ ...p.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
+ }), ct = 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 r = e.object({
87
87
  q: e.string().optional().openapi({
88
88
  description: "A lucene query string used to filter the results"
89
89
  })
90
- }), rt = e.object({
90
+ }), pt = 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
+ }), Y = 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 r = 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()), Q = e.object({
105
105
  connection: e.string(),
106
106
  user_id: e.string(),
107
107
  provider: e.string(),
@@ -109,8 +109,8 @@ const r = 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: Y.optional()
113
+ }), J = 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 r = 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 r = 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: J
159
+ }), Z = 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 r = 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
- ...r.shape,
174
+ }), $ = e.object({
175
+ ...Z.omit({ password: !0 }).shape,
176
+ ...p.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
- }), st = Y, lt = I.extend({
182
+ identities: e.array(Q).optional()
183
+ }), _t = $, dt = 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 = "", s = crypto.getRandomValues(new Uint8Array(o |= 0));
189
+ }).catchall(e.any()), ee = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
190
+ let oe = (o = 21) => {
191
+ let n = "", i = crypto.getRandomValues(new Uint8Array(o |= 0));
190
192
  for (; o--; )
191
- a += Q[s[o] & 63];
192
- return a;
193
+ n += ee[i[o] & 63];
194
+ return n;
193
195
  };
194
- const Z = e.object({
196
+ const te = 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(() => oe()).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
+ }), gt = e.object({
368
370
  created_at: e.string(),
369
371
  updated_at: e.string(),
370
- ...Z.shape
371
- }), $ = e.object({
372
+ ...te.shape
373
+ }), ne = 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
+ }), ie = e.object({
397
399
  id: e.string().openapi({
398
400
  description: "ID of the client grant."
399
401
  }),
400
- ...$.shape,
402
+ ...ne.shape,
401
403
  created_at: e.string().optional(),
402
404
  updated_at: e.string().optional()
403
- }), pt = e.array(ee), c = e.object({
405
+ }), ut = e.array(ie), u = e.object({
404
406
  x: e.number(),
405
407
  y: e.number()
406
408
  });
407
- var C = /* @__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))(C || {}), y = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(y || {});
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 || {}), w = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(w || {});
410
+ const I = e.object({
409
411
  id: e.string(),
410
- category: e.nativeEnum(y),
411
- type: e.nativeEnum(C)
412
- }), oe = u.extend({
412
+ category: e.nativeEnum(w),
413
+ type: e.nativeEnum(R)
414
+ }), ae = I.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
+ }), se = I.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
+ }), re = I.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
+ }), le = I.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
+ }), ce = e.object({
514
516
  id: e.string(),
515
517
  category: e.string(),
516
518
  type: e.string()
517
- }).passthrough(), re = e.union([
518
- oe,
519
- te,
520
- ne,
521
- ie,
522
- ae
519
+ }).passthrough(), pe = e.union([
520
+ ae,
521
+ se,
522
+ re,
523
+ le,
524
+ ce
523
525
  ]);
524
- var se = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(se || {});
525
- const le = e.object({
526
+ var _e = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(_e || {});
527
+ const de = 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(re),
536
+ components: e.array(pe),
535
537
  next_node: e.string()
536
538
  }).passthrough()
537
- }), ce = e.object({
539
+ }), ge = 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
+ }), ue = 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
+ }), me = 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(), he = e.union([
578
+ de,
579
+ ge,
580
+ ue,
581
+ me
582
+ ]), be = e.object({
581
583
  next_node: e.string(),
582
- coordinates: c
583
- }).passthrough(), ue = e.object({
584
+ coordinates: u
585
+ }).passthrough(), fe = e.object({
584
586
  resume_flow: e.boolean().optional(),
585
- coordinates: c
586
- }).passthrough(), me = e.object({
587
+ coordinates: u
588
+ }).passthrough(), Ee = 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(he),
595
+ start: be,
596
+ ending: fe,
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(), mt = Ee.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 D = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(D || {}), j = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(j || {}), L = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(L || {});
609
+ const Se = 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(D).optional(),
613
+ response_mode: e.nativeEnum(j).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
+ }), ht = 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
+ }), Ae = 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
+ ]), Ie = 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: Ae,
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
+ }), bt = e.object({
689
+ ...Ie.shape,
688
690
  created_at: e.string()
689
- }), Ee = e.object({
691
+ }), Ce = e.object({
690
692
  kid: e.string().optional(),
691
693
  team_id: e.string().optional(),
692
694
  realms: e.string().optional(),
@@ -721,13 +723,60 @@ 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
+ }).optional(),
749
+ username: e.object({
750
+ identifier: e.object({
751
+ active: e.boolean().optional()
752
+ }).optional(),
753
+ signup: e.object({
754
+ status: e.enum(["required", "optional", "disabled"]).optional()
755
+ }).optional(),
756
+ validation: e.object({
757
+ max_length: e.number().optional(),
758
+ min_length: e.number().optional(),
759
+ allowed_types: e.object({
760
+ email: e.boolean().optional(),
761
+ phone_number: e.boolean().optional()
762
+ }).optional()
763
+ }).optional()
764
+ }).optional()
765
+ }).optional(),
766
+ // Legacy username options (deprecated, use attributes instead)
767
+ requires_username: e.boolean().optional(),
768
+ validation: e.object({
769
+ username: e.object({
770
+ min: e.number().optional(),
771
+ max: e.number().optional()
772
+ }).optional()
724
773
  }).optional()
725
- }), Se = e.object({
774
+ }), ye = e.object({
726
775
  id: e.string().optional(),
727
776
  name: e.string(),
728
777
  display_name: e.string().optional(),
729
778
  strategy: e.string(),
730
- options: Ee.default({}),
779
+ options: Ce.default({}),
731
780
  enabled_clients: e.array(e.string()).default([]).optional(),
732
781
  response_type: e.custom().optional(),
733
782
  response_mode: e.custom().optional(),
@@ -735,11 +784,11 @@ const he = e.object({
735
784
  show_as_button: e.boolean().optional(),
736
785
  metadata: e.record(e.any()).optional(),
737
786
  is_system: e.boolean().optional()
738
- }), ut = e.object({
787
+ }), ft = e.object({
739
788
  id: e.string(),
740
789
  created_at: e.string().transform((o) => o === null ? "" : o),
741
790
  updated_at: e.string().transform((o) => o === null ? "" : o)
742
- }).extend(Se.shape), Ae = e.object({
791
+ }).extend(ye.shape), Oe = e.object({
743
792
  domain: e.string(),
744
793
  custom_domain_id: e.string().optional(),
745
794
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -753,37 +802,37 @@ const he = e.object({
753
802
  "null"
754
803
  ]).optional(),
755
804
  domain_metadata: e.record(e.string().max(255)).optional()
756
- }), Ie = e.object({
805
+ }), Te = e.object({
757
806
  name: e.literal("txt"),
758
807
  record: e.string(),
759
808
  domain: e.string()
760
- }), Ce = e.object({
761
- ...Ae.shape,
809
+ }), Ne = e.object({
810
+ ...Oe.shape,
762
811
  custom_domain_id: e.string(),
763
812
  primary: e.boolean(),
764
813
  status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
765
814
  origin_domain_name: e.string().optional(),
766
815
  verification: e.object({
767
- methods: e.array(Ie)
816
+ methods: e.array(Te)
768
817
  }).optional(),
769
818
  tls_policy: e.string().optional()
770
- }), mt = Ce.extend({
819
+ }), Et = Ne.extend({
771
820
  tenant_id: e.string()
772
- }), f = e.object({
821
+ }), y = e.object({
773
822
  id: e.string(),
774
823
  order: e.number().optional(),
775
824
  visible: e.boolean().optional().default(!0)
776
- }), i = f.extend({
825
+ }), r = y.extend({
777
826
  category: e.literal("BLOCK").optional()
778
- }), ye = i.extend({
827
+ }), Re = r.extend({
779
828
  type: e.literal("DIVIDER"),
780
829
  config: e.object({}).optional()
781
- }), Te = i.extend({
830
+ }), we = r.extend({
782
831
  type: e.literal("HTML"),
783
832
  config: e.object({
784
833
  content: e.string().optional()
785
834
  }).optional()
786
- }), Oe = i.extend({
835
+ }), De = r.extend({
787
836
  type: e.literal("IMAGE"),
788
837
  config: e.object({
789
838
  src: e.string().optional(),
@@ -791,66 +840,66 @@ const he = e.object({
791
840
  width: e.number().optional(),
792
841
  height: e.number().optional()
793
842
  }).optional()
794
- }), Ne = i.extend({
843
+ }), je = r.extend({
795
844
  type: e.literal("JUMP_BUTTON"),
796
845
  config: e.object({
797
846
  text: e.string().optional(),
798
847
  target_step: e.string().optional()
799
848
  })
800
- }), Re = i.extend({
849
+ }), Le = r.extend({
801
850
  type: e.literal("RESEND_BUTTON"),
802
851
  config: e.object({
803
852
  text: e.string().optional(),
804
853
  resend_action: e.string().optional()
805
854
  })
806
- }), De = i.extend({
855
+ }), ve = r.extend({
807
856
  type: e.literal("NEXT_BUTTON"),
808
857
  config: e.object({
809
858
  text: e.string().optional()
810
859
  })
811
- }), we = i.extend({
860
+ }), ke = r.extend({
812
861
  type: e.literal("PREVIOUS_BUTTON"),
813
862
  config: e.object({
814
863
  text: e.string().optional()
815
864
  })
816
- }), Le = i.extend({
865
+ }), Ue = r.extend({
817
866
  type: e.literal("RICH_TEXT"),
818
867
  config: e.object({
819
868
  content: e.string().optional()
820
869
  }).optional()
821
- }), E = f.extend({
870
+ }), O = y.extend({
822
871
  category: e.literal("WIDGET").optional(),
823
872
  label: e.string().min(1).optional(),
824
873
  hint: e.string().min(1).max(500).optional(),
825
874
  required: e.boolean().optional(),
826
875
  sensitive: e.boolean().optional()
827
- }), je = E.extend({
876
+ }), Fe = O.extend({
828
877
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
829
878
  config: e.object({
830
879
  credential_type: e.string().optional()
831
880
  })
832
- }), ke = E.extend({
881
+ }), xe = O.extend({
833
882
  type: e.literal("GMAPS_ADDRESS"),
834
883
  config: e.object({
835
884
  api_key: e.string().optional()
836
885
  })
837
- }), Ue = E.extend({
886
+ }), Pe = O.extend({
838
887
  type: e.literal("RECAPTCHA"),
839
888
  config: e.object({
840
889
  site_key: e.string().optional()
841
890
  })
842
- }), t = f.extend({
891
+ }), t = y.extend({
843
892
  category: e.literal("FIELD").optional(),
844
893
  label: e.string().min(1).optional(),
845
894
  hint: e.string().min(1).max(500).optional(),
846
895
  required: e.boolean().optional(),
847
896
  sensitive: e.boolean().optional()
848
- }), Fe = t.extend({
897
+ }), Me = t.extend({
849
898
  type: e.literal("BOOLEAN"),
850
899
  config: e.object({
851
900
  default_value: e.boolean().optional()
852
901
  }).optional()
853
- }), ve = t.extend({
902
+ }), He = t.extend({
854
903
  type: e.literal("CARDS"),
855
904
  config: e.object({
856
905
  options: e.array(
@@ -863,7 +912,7 @@ const he = e.object({
863
912
  ).optional(),
864
913
  multi_select: e.boolean().optional()
865
914
  }).optional()
866
- }), xe = t.extend({
915
+ }), Ge = t.extend({
867
916
  type: e.literal("CHOICE"),
868
917
  config: e.object({
869
918
  options: e.array(
@@ -876,7 +925,7 @@ const he = e.object({
876
925
  multiple: e.boolean().optional(),
877
926
  default_value: e.union([e.string(), e.array(e.string())]).optional()
878
927
  }).optional()
879
- }), Pe = t.extend({
928
+ }), Be = t.extend({
880
929
  type: e.literal("CUSTOM"),
881
930
  config: e.object({
882
931
  component: e.string().optional(),
@@ -884,14 +933,15 @@ const he = e.object({
884
933
  schema: e.record(e.any()).optional(),
885
934
  code: e.string().optional()
886
935
  })
887
- }), Me = t.extend({
936
+ }), We = t.extend({
888
937
  type: e.literal("DATE"),
889
938
  config: e.object({
890
939
  format: e.string().optional(),
891
940
  min: e.string().optional(),
892
- max: e.string().optional()
941
+ max: e.string().optional(),
942
+ default_value: e.string().optional()
893
943
  }).optional()
894
- }), He = t.extend({
944
+ }), Ke = t.extend({
895
945
  type: e.literal("DROPDOWN"),
896
946
  config: e.object({
897
947
  options: e.array(
@@ -905,47 +955,50 @@ const he = e.object({
905
955
  multiple: e.boolean().optional(),
906
956
  default_value: e.union([e.string(), e.array(e.string())]).optional()
907
957
  }).optional()
908
- }), Ge = t.extend({
958
+ }), ze = t.extend({
909
959
  type: e.literal("EMAIL"),
910
960
  config: e.object({
911
- placeholder: e.string().optional()
961
+ placeholder: e.string().optional(),
962
+ default_value: e.string().optional()
912
963
  }).optional()
913
- }), Be = t.extend({
964
+ }), Xe = t.extend({
914
965
  type: e.literal("FILE"),
915
966
  config: e.object({
916
967
  accept: e.string().optional(),
917
968
  max_size: e.number().optional(),
918
969
  multiple: e.boolean().optional()
919
970
  }).optional()
920
- }), Ke = t.extend({
971
+ }), Ve = t.extend({
921
972
  type: e.literal("LEGAL"),
922
973
  config: e.object({
923
974
  text: e.string(),
924
975
  html: e.boolean().optional()
925
976
  }).optional()
926
- }), We = t.extend({
977
+ }), qe = t.extend({
927
978
  type: e.literal("NUMBER"),
928
979
  config: e.object({
929
980
  placeholder: e.string().optional(),
930
981
  min: e.number().optional(),
931
982
  max: e.number().optional(),
932
- step: e.number().optional()
983
+ step: e.number().optional(),
984
+ default_value: e.string().optional()
933
985
  }).optional()
934
- }), ze = t.extend({
986
+ }), Ye = t.extend({
935
987
  type: e.literal("PASSWORD"),
936
988
  config: e.object({
937
989
  placeholder: e.string().optional(),
938
990
  min_length: e.number().optional(),
939
991
  show_toggle: e.boolean().optional(),
940
- forgot_password_link: e.string().optional()
992
+ forgot_password_link: e.string().optional(),
993
+ default_value: e.string().optional()
941
994
  }).optional()
942
- }), Xe = t.extend({
995
+ }), Qe = t.extend({
943
996
  type: e.literal("PAYMENT"),
944
997
  config: e.object({
945
998
  provider: e.string().optional(),
946
999
  currency: e.string().optional()
947
1000
  }).optional()
948
- }), Ve = t.extend({
1001
+ }), Je = t.extend({
949
1002
  type: e.literal("SOCIAL"),
950
1003
  config: e.object({
951
1004
  providers: e.array(e.string()).optional(),
@@ -959,59 +1012,75 @@ const he = e.object({
959
1012
  })
960
1013
  ).optional()
961
1014
  }).optional()
962
- }), qe = t.extend({
1015
+ }), Ze = t.extend({
963
1016
  type: e.literal("TEL"),
964
1017
  config: e.object({
965
1018
  placeholder: e.string().optional(),
966
- default_country: e.string().optional()
1019
+ default_country: e.string().optional(),
1020
+ default_value: e.string().optional()
967
1021
  }).optional()
968
- }), Ye = t.extend({
1022
+ }), $e = t.extend({
969
1023
  type: e.literal("TEXT"),
970
1024
  config: e.object({
971
1025
  placeholder: e.string().optional(),
972
1026
  multiline: e.boolean().optional(),
973
- max_length: e.number().optional()
1027
+ max_length: e.number().optional(),
1028
+ default_value: e.string().optional()
974
1029
  }).optional()
975
- }), Qe = t.extend({
1030
+ }), eo = t.extend({
976
1031
  type: e.literal("URL"),
977
1032
  config: e.object({
978
- placeholder: e.string().optional()
1033
+ placeholder: e.string().optional(),
1034
+ default_value: e.string().optional()
979
1035
  }).optional()
980
- }), Je = e.discriminatedUnion("type", [
981
- ye,
982
- Te,
983
- Oe,
984
- Ne,
1036
+ }), oo = e.discriminatedUnion("type", [
985
1037
  Re,
986
- De,
987
1038
  we,
988
- Le
989
- ]), Ze = e.discriminatedUnion("type", [
1039
+ De,
990
1040
  je,
1041
+ Le,
1042
+ ve,
991
1043
  ke,
992
1044
  Ue
993
- ]), $e = e.discriminatedUnion("type", [
1045
+ ]), to = e.discriminatedUnion("type", [
994
1046
  Fe,
995
- ve,
996
1047
  xe,
997
- Pe,
1048
+ Pe
1049
+ ]), no = e.discriminatedUnion("type", [
998
1050
  Me,
999
1051
  He,
1000
1052
  Ge,
1001
1053
  Be,
1002
- Ke,
1003
1054
  We,
1055
+ Ke,
1004
1056
  ze,
1005
1057
  Xe,
1006
1058
  Ve,
1007
1059
  qe,
1008
1060
  Ye,
1009
- Qe
1010
- ]), R = e.union([
1061
+ Qe,
1011
1062
  Je,
1012
1063
  Ze,
1013
- $e
1014
- ]), ht = e.object({
1064
+ $e,
1065
+ eo
1066
+ ]), v = e.union([
1067
+ oo,
1068
+ to,
1069
+ no
1070
+ ]), St = /* @__PURE__ */ new Set([
1071
+ "BOOLEAN",
1072
+ "CARDS",
1073
+ "CHOICE",
1074
+ "DATE",
1075
+ "DROPDOWN",
1076
+ "EMAIL",
1077
+ "LEGAL",
1078
+ "NUMBER",
1079
+ "PASSWORD",
1080
+ "TEL",
1081
+ "TEXT",
1082
+ "URL"
1083
+ ]), At = e.object({
1015
1084
  id: e.string(),
1016
1085
  type: e.literal("submit"),
1017
1086
  label: e.string(),
@@ -1020,22 +1089,22 @@ const he = e.object({
1020
1089
  order: e.number().optional(),
1021
1090
  visible: e.boolean().optional().default(!0),
1022
1091
  customizations: e.record(e.string(), e.any()).optional()
1023
- }), _ = e.object({
1092
+ }), b = e.object({
1024
1093
  x: e.number(),
1025
1094
  y: e.number()
1026
- }), eo = e.object({
1095
+ }), io = e.object({
1027
1096
  id: e.string(),
1028
1097
  type: e.literal("FLOW"),
1029
- coordinates: _,
1098
+ coordinates: b,
1030
1099
  alias: e.string().min(1).max(150).optional(),
1031
1100
  config: e.object({
1032
1101
  flow_id: e.string().max(30),
1033
1102
  next_node: e.string().optional()
1034
1103
  })
1035
- }), oo = e.object({
1104
+ }), ao = e.object({
1036
1105
  id: e.string(),
1037
1106
  type: e.literal("ROUTER"),
1038
- coordinates: _,
1107
+ coordinates: b,
1039
1108
  alias: e.string().min(1).max(150),
1040
1109
  config: e.object({
1041
1110
  rules: e.array(
@@ -1048,20 +1117,20 @@ const he = e.object({
1048
1117
  ),
1049
1118
  fallback: e.string()
1050
1119
  })
1051
- }), to = e.object({
1120
+ }), so = e.object({
1052
1121
  id: e.string(),
1053
1122
  type: e.literal("STEP"),
1054
- coordinates: _,
1123
+ coordinates: b,
1055
1124
  alias: e.string().min(1).max(150).optional(),
1056
1125
  config: e.object({
1057
- components: e.array(R),
1126
+ components: e.array(v),
1058
1127
  next_node: e.string().optional()
1059
1128
  })
1060
- }), no = e.discriminatedUnion("type", [
1061
- eo,
1062
- oo,
1063
- to
1064
- ]), io = e.object({
1129
+ }), ro = e.discriminatedUnion("type", [
1130
+ io,
1131
+ ao,
1132
+ so
1133
+ ]), lo = e.object({
1065
1134
  name: e.string().openapi({
1066
1135
  description: "The name of the form"
1067
1136
  }),
@@ -1074,11 +1143,11 @@ const he = e.object({
1074
1143
  default: e.string().optional()
1075
1144
  }).optional(),
1076
1145
  translations: e.record(e.string(), e.any()).optional(),
1077
- nodes: e.array(no).optional(),
1146
+ nodes: e.array(ro).optional(),
1078
1147
  start: e.object({
1079
1148
  hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
1080
1149
  next_node: e.string().optional(),
1081
- coordinates: _.optional()
1150
+ coordinates: b.optional()
1082
1151
  }).optional(),
1083
1152
  ending: e.object({
1084
1153
  redirection: e.object({
@@ -1086,7 +1155,7 @@ const he = e.object({
1086
1155
  target: e.string().optional()
1087
1156
  }).optional(),
1088
1157
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
1089
- coordinates: _.optional(),
1158
+ coordinates: b.optional(),
1090
1159
  resume_flow: e.boolean().optional()
1091
1160
  }).optional(),
1092
1161
  style: e.object({ css: e.string().optional() }).optional(),
@@ -1096,42 +1165,42 @@ const he = e.object({
1096
1165
  }).optional()
1097
1166
  }).openapi({
1098
1167
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1099
- }), bt = e.object({
1100
- ...r.shape,
1101
- ...io.shape,
1168
+ }), It = e.object({
1169
+ ...p.shape,
1170
+ ...lo.shape,
1102
1171
  id: e.string()
1103
- }), ao = e.object({
1172
+ }), co = e.object({
1104
1173
  id: e.number().optional(),
1105
1174
  text: e.string(),
1106
1175
  type: e.enum(["info", "error", "success", "warning"])
1107
- }), ro = e.object({
1176
+ }), po = e.object({
1108
1177
  id: e.string().optional(),
1109
1178
  text: e.string(),
1110
1179
  href: e.string(),
1111
1180
  linkText: e.string().optional()
1112
- }), ft = e.object({
1181
+ }), Ct = e.object({
1113
1182
  /** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
1114
1183
  name: e.string().optional(),
1115
1184
  action: e.string(),
1116
1185
  method: e.enum(["POST", "GET"]),
1117
1186
  title: e.string().optional(),
1118
1187
  description: e.string().optional(),
1119
- components: e.array(R),
1120
- messages: e.array(ao).optional(),
1121
- links: e.array(ro).optional(),
1188
+ components: e.array(v),
1189
+ messages: e.array(co).optional(),
1190
+ links: e.array(po).optional(),
1122
1191
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1123
1192
  footer: e.string().optional()
1124
1193
  });
1125
- function Et(o) {
1194
+ function yt(o) {
1126
1195
  return o.category === "BLOCK";
1127
1196
  }
1128
- function St(o) {
1197
+ function Ot(o) {
1129
1198
  return o.category === "WIDGET";
1130
1199
  }
1131
- function At(o) {
1200
+ function Tt(o) {
1132
1201
  return o.category === "FIELD";
1133
1202
  }
1134
- const D = e.enum([
1203
+ const k = e.enum([
1135
1204
  "pre-user-registration",
1136
1205
  "post-user-registration",
1137
1206
  "post-user-login",
@@ -1139,49 +1208,49 @@ const D = e.enum([
1139
1208
  "pre-user-deletion",
1140
1209
  "post-user-deletion"
1141
1210
  // Potentially other triggers specific to webhooks in the future
1142
- ]), w = e.enum([
1211
+ ]), U = e.enum([
1143
1212
  "pre-user-registration",
1144
1213
  "post-user-registration",
1145
1214
  "post-user-login",
1146
1215
  "validate-registration-username",
1147
1216
  "pre-user-deletion",
1148
1217
  "post-user-deletion"
1149
- ]), m = {
1218
+ ]), C = {
1150
1219
  enabled: e.boolean().default(!1),
1151
1220
  synchronous: e.boolean().default(!1),
1152
1221
  priority: e.number().optional(),
1153
1222
  hook_id: e.string().optional()
1154
- }, so = e.object({
1155
- ...m,
1156
- trigger_id: D,
1223
+ }, _o = e.object({
1224
+ ...C,
1225
+ trigger_id: k,
1157
1226
  url: e.string()
1158
- }), lo = e.object({
1159
- ...m,
1160
- trigger_id: w,
1227
+ }), go = e.object({
1228
+ ...C,
1229
+ trigger_id: U,
1161
1230
  form_id: e.string()
1162
- }), It = e.union([
1163
- so,
1164
- lo
1165
- ]), co = e.object({
1166
- ...m,
1167
- trigger_id: D,
1168
- ...r.shape,
1231
+ }), Nt = e.union([
1232
+ _o,
1233
+ go
1234
+ ]), uo = e.object({
1235
+ ...C,
1236
+ trigger_id: k,
1237
+ ...p.shape,
1169
1238
  hook_id: e.string(),
1170
1239
  url: e.string()
1171
- }), po = e.object({
1172
- ...m,
1173
- trigger_id: w,
1174
- ...r.shape,
1240
+ }), mo = e.object({
1241
+ ...C,
1242
+ trigger_id: U,
1243
+ ...p.shape,
1175
1244
  hook_id: e.string(),
1176
1245
  form_id: e.string()
1177
- }), Ct = e.union([co, po]), _o = e.object({
1246
+ }), Rt = e.union([uo, mo]), ho = e.object({
1178
1247
  name: e.string().optional()
1179
- }), go = e.object({
1248
+ }), bo = e.object({
1180
1249
  email: e.string().optional()
1181
- }), uo = e.object({
1250
+ }), fo = e.object({
1182
1251
  organization_id: e.string().max(50),
1183
- inviter: _o,
1184
- invitee: go,
1252
+ inviter: ho,
1253
+ invitee: bo,
1185
1254
  invitation_url: e.string().url(),
1186
1255
  client_id: e.string(),
1187
1256
  connection_id: e.string().optional(),
@@ -1190,13 +1259,13 @@ const D = e.enum([
1190
1259
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
1191
1260
  roles: e.array(e.string()).default([]).optional(),
1192
1261
  send_invitation_email: e.boolean().default(!0).optional()
1193
- }), yt = e.object({
1262
+ }), wt = e.object({
1194
1263
  id: e.string(),
1195
1264
  organization_id: e.string().max(50),
1196
1265
  created_at: e.string().datetime(),
1197
1266
  expires_at: e.string().datetime(),
1198
1267
  ticket_id: e.string().optional()
1199
- }).extend(uo.shape), mo = e.object({
1268
+ }).extend(fo.shape), Eo = e.object({
1200
1269
  alg: e.enum([
1201
1270
  "RS256",
1202
1271
  "RS384",
@@ -1215,9 +1284,9 @@ const D = e.enum([
1215
1284
  x5t: e.string().optional(),
1216
1285
  x5c: e.array(e.string()).optional(),
1217
1286
  use: e.enum(["sig", "enc"]).optional()
1218
- }), Tt = e.object({
1219
- keys: e.array(mo)
1220
- }), Ot = e.object({
1287
+ }), Dt = e.object({
1288
+ keys: e.array(Eo)
1289
+ }), jt = e.object({
1221
1290
  issuer: e.string(),
1222
1291
  authorization_endpoint: e.string(),
1223
1292
  token_endpoint: e.string(),
@@ -1239,18 +1308,18 @@ const D = e.enum([
1239
1308
  request_parameter_supported: e.boolean(),
1240
1309
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
1241
1310
  });
1242
- var L = /* @__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))(L || {});
1243
- const ho = e.nativeEnum(L), bo = e.object({
1311
+ var F = /* @__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))(F || {});
1312
+ const So = e.nativeEnum(F), Ao = e.object({
1244
1313
  csrf_token: e.string(),
1245
1314
  auth0Client: e.string().optional(),
1246
- authParams: he,
1315
+ authParams: Se,
1247
1316
  expires_at: e.string(),
1248
1317
  deleted_at: e.string().optional(),
1249
1318
  ip: e.string().optional(),
1250
1319
  useragent: e.string().optional(),
1251
1320
  session_id: e.string().optional(),
1252
1321
  authorization_url: e.string().optional(),
1253
- state: ho.optional().default(
1322
+ state: So.optional().default(
1254
1323
  "pending"
1255
1324
  /* PENDING */
1256
1325
  ),
@@ -1261,14 +1330,14 @@ const ho = e.nativeEnum(L), bo = e.object({
1261
1330
  // Set once user is authenticated
1262
1331
  }).openapi({
1263
1332
  description: "This represents a login sesion"
1264
- }), Nt = e.object({
1265
- ...bo.shape,
1333
+ }), Lt = e.object({
1334
+ ...Ao.shape,
1266
1335
  id: e.string().openapi({
1267
1336
  description: "This is is used as the state in the universal login"
1268
1337
  }),
1269
1338
  created_at: e.string(),
1270
1339
  updated_at: e.string()
1271
- }), fo = {
1340
+ }), Io = {
1272
1341
  // Network & System
1273
1342
  ACLS_SUMMARY: "acls_summary",
1274
1343
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1439,24 +1508,24 @@ const ho = e.nativeEnum(L), bo = e.object({
1439
1508
  WARNING_DURING_LOGIN: "w",
1440
1509
  WARNING_SENDING_NOTIFICATION: "wn",
1441
1510
  WARNING_USER_MANAGEMENT: "wum"
1442
- }, Eo = e.string().refine(
1443
- (o) => Object.values(fo).includes(o),
1511
+ }, Co = e.string().refine(
1512
+ (o) => Object.values(Io).includes(o),
1444
1513
  { message: "Invalid log type" }
1445
- ), So = e.object({
1514
+ ), yo = e.object({
1446
1515
  name: e.string(),
1447
1516
  version: e.string(),
1448
1517
  env: e.object({
1449
1518
  node: e.string().optional()
1450
1519
  }).optional()
1451
- }), Ao = e.object({
1520
+ }), Oo = e.object({
1452
1521
  country_code: e.string().length(2),
1453
1522
  city_name: e.string(),
1454
1523
  latitude: e.string(),
1455
1524
  longitude: e.string(),
1456
1525
  time_zone: e.string(),
1457
1526
  continent_code: e.string()
1458
- }), Io = e.object({
1459
- type: Eo,
1527
+ }), To = e.object({
1528
+ type: Co,
1460
1529
  date: e.string(),
1461
1530
  description: e.string().optional(),
1462
1531
  ip: e.string().optional(),
@@ -1475,30 +1544,30 @@ const ho = e.nativeEnum(L), bo = e.object({
1475
1544
  strategy: e.string().optional(),
1476
1545
  strategy_type: e.string().optional(),
1477
1546
  hostname: e.string().optional(),
1478
- auth0_client: So.optional(),
1547
+ auth0_client: yo.optional(),
1479
1548
  log_id: e.string().optional(),
1480
- location_info: Ao.optional()
1481
- }), Rt = e.object({
1482
- ...Io.shape,
1549
+ location_info: Oo.optional()
1550
+ }), vt = e.object({
1551
+ ...To.shape,
1483
1552
  log_id: e.string()
1484
- }), Co = e.object({
1553
+ }), No = e.object({
1485
1554
  id: e.string().optional(),
1486
1555
  user_id: e.string(),
1487
1556
  password: e.string(),
1488
1557
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
1489
1558
  is_current: e.boolean().default(!0)
1490
- }), Dt = Co.extend({
1559
+ }), kt = No.extend({
1491
1560
  id: e.string(),
1492
1561
  created_at: e.string(),
1493
1562
  updated_at: e.string()
1494
- }), j = e.object({
1563
+ }), x = e.object({
1495
1564
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
1496
1565
  initial_ip: e.string().describe("First IP address associated with this session"),
1497
1566
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
1498
1567
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
1499
1568
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1500
1569
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1501
- }), yo = e.object({
1570
+ }), Ro = e.object({
1502
1571
  id: e.string(),
1503
1572
  revoked_at: e.string().optional(),
1504
1573
  used_at: e.string().optional(),
@@ -1506,17 +1575,17 @@ const ho = e.nativeEnum(L), bo = e.object({
1506
1575
  expires_at: e.string().optional(),
1507
1576
  login_session_id: e.string(),
1508
1577
  idle_expires_at: e.string().optional(),
1509
- device: j.describe(
1578
+ device: x.describe(
1510
1579
  "Metadata related to the device used in the session"
1511
1580
  ),
1512
1581
  clients: e.array(e.string()).describe("List of client details for the session")
1513
- }), wt = e.object({
1582
+ }), Ut = e.object({
1514
1583
  created_at: e.string(),
1515
1584
  updated_at: e.string(),
1516
1585
  authenticated_at: e.string(),
1517
1586
  last_interaction_at: e.string(),
1518
- ...yo.shape
1519
- }), Lt = e.object({
1587
+ ...Ro.shape
1588
+ }), Ft = e.object({
1520
1589
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1521
1590
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1522
1591
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1541,7 +1610,7 @@ const ho = e.nativeEnum(L), bo = e.object({
1541
1610
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
1542
1611
  description: "The type of the signing key"
1543
1612
  })
1544
- }), To = e.object({
1613
+ }), wo = e.object({
1545
1614
  id: e.string().optional(),
1546
1615
  // Basic settings
1547
1616
  audience: e.string(),
@@ -1664,15 +1733,44 @@ const ho = e.nativeEnum(L), bo = e.object({
1664
1733
  }).optional(),
1665
1734
  // Authorization settings
1666
1735
  pushed_authorization_requests_supported: e.boolean().optional(),
1667
- authorization_response_iss_parameter_supported: e.boolean().optional()
1668
- }), jt = e.object({
1736
+ authorization_response_iss_parameter_supported: e.boolean().optional(),
1737
+ // Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
1738
+ mfa: e.object({
1739
+ // Factor states
1740
+ factors: e.object({
1741
+ sms: e.boolean().default(!1),
1742
+ otp: e.boolean().default(!1),
1743
+ email: e.boolean().default(!1),
1744
+ push_notification: e.boolean().default(!1),
1745
+ webauthn_roaming: e.boolean().default(!1),
1746
+ webauthn_platform: e.boolean().default(!1),
1747
+ recovery_code: e.boolean().default(!1),
1748
+ duo: e.boolean().default(!1)
1749
+ }).optional(),
1750
+ // SMS provider configuration
1751
+ sms_provider: e.object({
1752
+ provider: e.enum(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
1753
+ }).optional(),
1754
+ // Twilio-specific configuration
1755
+ twilio: e.object({
1756
+ sid: e.string().optional(),
1757
+ auth_token: e.string().optional(),
1758
+ from: e.string().optional(),
1759
+ messaging_service_sid: e.string().optional()
1760
+ }).optional(),
1761
+ // Phone message configuration (custom)
1762
+ phone_message: e.object({
1763
+ message: e.string().optional()
1764
+ }).optional()
1765
+ }).optional()
1766
+ }), xt = e.object({
1669
1767
  created_at: e.string().nullable().transform((o) => o ?? ""),
1670
1768
  updated_at: e.string().nullable().transform((o) => o ?? ""),
1671
- ...To.shape,
1769
+ ...wo.shape,
1672
1770
  id: e.string()
1673
1771
  });
1674
- 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 || {});
1675
- const kt = e.object({
1772
+ var Do = /* @__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))(Do || {});
1773
+ const Pt = e.object({
1676
1774
  access_token: e.string(),
1677
1775
  id_token: e.string().optional(),
1678
1776
  scope: e.string().optional(),
@@ -1685,7 +1783,7 @@ e.object({
1685
1783
  code: e.string(),
1686
1784
  state: e.string().optional()
1687
1785
  });
1688
- const No = e.object({
1786
+ const jo = e.object({
1689
1787
  button_border_radius: e.number(),
1690
1788
  button_border_weight: e.number(),
1691
1789
  buttons_style: e.enum(["pill", "rounded", "sharp"]),
@@ -1695,7 +1793,7 @@ const No = e.object({
1695
1793
  show_widget_shadow: e.boolean(),
1696
1794
  widget_border_weight: e.number(),
1697
1795
  widget_corner_radius: e.number()
1698
- }), Ro = e.object({
1796
+ }), Lo = e.object({
1699
1797
  base_focus_color: e.string(),
1700
1798
  base_hover_color: e.string(),
1701
1799
  body_text: e.string(),
@@ -1715,44 +1813,44 @@ const No = e.object({
1715
1813
  success: e.string(),
1716
1814
  widget_background: e.string(),
1717
1815
  widget_border: e.string()
1718
- }), l = e.object({
1816
+ }), g = e.object({
1719
1817
  bold: e.boolean(),
1720
1818
  size: e.number()
1721
- }), Do = e.object({
1722
- body_text: l,
1723
- buttons_text: l,
1819
+ }), vo = e.object({
1820
+ body_text: g,
1821
+ buttons_text: g,
1724
1822
  font_url: e.string(),
1725
- input_labels: l,
1726
- links: l,
1823
+ input_labels: g,
1824
+ links: g,
1727
1825
  links_style: e.enum(["normal", "underlined"]),
1728
1826
  reference_text_size: e.number(),
1729
- subtitle: l,
1730
- title: l
1731
- }), wo = e.object({
1827
+ subtitle: g,
1828
+ title: g
1829
+ }), ko = e.object({
1732
1830
  background_color: e.string(),
1733
1831
  background_image_url: e.string(),
1734
1832
  page_layout: e.enum(["center", "left", "right"])
1735
- }), Lo = e.object({
1833
+ }), Uo = e.object({
1736
1834
  header_text_alignment: e.enum(["center", "left", "right"]),
1737
1835
  logo_height: e.number(),
1738
1836
  logo_position: e.enum(["center", "left", "none", "right"]),
1739
1837
  logo_url: e.string(),
1740
1838
  social_buttons_layout: e.enum(["bottom", "top"])
1741
- }), jo = e.object({
1742
- borders: No,
1743
- colors: Ro,
1839
+ }), Fo = e.object({
1840
+ borders: jo,
1841
+ colors: Lo,
1744
1842
  displayName: e.string(),
1745
- fonts: Do,
1746
- page_background: wo,
1747
- widget: Lo
1748
- }), Ut = jo.extend({
1843
+ fonts: vo,
1844
+ page_background: ko,
1845
+ widget: Uo
1846
+ }), Mt = Fo.extend({
1749
1847
  themeId: e.string()
1750
- }), Ft = e.object({
1848
+ }), Ht = e.object({
1751
1849
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
1752
1850
  identifier_first: e.boolean().default(!0),
1753
1851
  password_first: e.boolean().default(!1),
1754
1852
  webauthn_platform_first_factor: e.boolean()
1755
- }), vt = e.object({
1853
+ }), Gt = e.object({
1756
1854
  name: e.string(),
1757
1855
  enabled: e.boolean().optional().default(!0),
1758
1856
  default_from_address: e.string().optional(),
@@ -1782,7 +1880,7 @@ const No = e.object({
1782
1880
  })
1783
1881
  ]),
1784
1882
  settings: e.object({}).optional()
1785
- }), ko = e.object({
1883
+ }), xo = e.object({
1786
1884
  // The actual refresh token value (primary key).
1787
1885
  id: e.string(),
1788
1886
  // Link to the session record
@@ -1795,7 +1893,7 @@ const No = e.object({
1795
1893
  idle_expires_at: e.string().optional(),
1796
1894
  // When the token was last used.
1797
1895
  last_exchanged_at: e.string().optional(),
1798
- device: j,
1896
+ device: x,
1799
1897
  resource_servers: e.array(
1800
1898
  e.object({
1801
1899
  audience: e.string(),
@@ -1803,21 +1901,21 @@ const No = e.object({
1803
1901
  })
1804
1902
  ),
1805
1903
  rotating: e.boolean()
1806
- }), xt = e.object({
1904
+ }), Bt = e.object({
1807
1905
  // When the refresh token record was created.
1808
1906
  created_at: e.string(),
1809
1907
  // Spread in the rest of the refresh token properties.
1810
- ...ko.shape
1811
- }), Pt = e.object({
1908
+ ...xo.shape
1909
+ }), Wt = e.object({
1812
1910
  to: e.string(),
1813
1911
  message: e.string()
1814
- }), Mt = e.object({
1912
+ }), Kt = e.object({
1815
1913
  name: e.string(),
1816
1914
  options: e.object({})
1817
- }), Uo = e.object({
1915
+ }), Po = e.object({
1818
1916
  value: e.string(),
1819
1917
  description: e.string().optional()
1820
- }), Fo = e.object({
1918
+ }), Mo = e.object({
1821
1919
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
1822
1920
  enforce_policies: e.boolean().optional(),
1823
1921
  allow_skipping_userinfo: e.boolean().optional(),
@@ -1827,11 +1925,11 @@ const No = e.object({
1827
1925
  mtls: e.object({
1828
1926
  bound_access_tokens: e.boolean().optional()
1829
1927
  }).optional()
1830
- }), vo = e.object({
1928
+ }), Ho = e.object({
1831
1929
  id: e.string().optional(),
1832
1930
  name: e.string(),
1833
1931
  identifier: e.string(),
1834
- scopes: e.array(Uo).optional(),
1932
+ scopes: e.array(Po).optional(),
1835
1933
  signing_alg: e.string().optional(),
1836
1934
  signing_secret: e.string().optional(),
1837
1935
  token_lifetime: e.number().optional(),
@@ -1839,30 +1937,30 @@ const No = e.object({
1839
1937
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
1840
1938
  allow_offline_access: e.boolean().optional(),
1841
1939
  verificationKey: e.string().optional(),
1842
- options: Fo.optional(),
1940
+ options: Mo.optional(),
1843
1941
  is_system: e.boolean().optional(),
1844
1942
  metadata: e.record(e.any()).optional()
1845
- }), xo = e.object({
1846
- ...vo.shape,
1943
+ }), Go = e.object({
1944
+ ...Ho.shape,
1847
1945
  created_at: e.string().optional(),
1848
1946
  updated_at: e.string().optional()
1849
- }), Ht = e.array(xo), Po = e.object({
1947
+ }), zt = e.array(Go), Bo = e.object({
1850
1948
  role_id: e.string(),
1851
1949
  resource_server_identifier: e.string(),
1852
1950
  permission_name: e.string()
1853
- }), Mo = e.object({
1854
- ...Po.shape,
1951
+ }), Wo = e.object({
1952
+ ...Bo.shape,
1855
1953
  created_at: e.string()
1856
- }), Gt = e.array(Mo), Ho = e.object({
1954
+ }), Xt = e.array(Wo), Ko = e.object({
1857
1955
  user_id: e.string(),
1858
1956
  resource_server_identifier: e.string(),
1859
1957
  permission_name: e.string(),
1860
1958
  organization_id: e.string().optional()
1861
- }), Go = e.object({
1862
- ...Ho.shape,
1959
+ }), zo = e.object({
1960
+ ...Ko.shape,
1863
1961
  tenant_id: e.string(),
1864
1962
  created_at: e.string().optional()
1865
- }), Bt = e.array(Go), Bo = e.object({
1963
+ }), Vt = e.array(zo), Xo = e.object({
1866
1964
  user_id: e.string(),
1867
1965
  resource_server_identifier: e.string(),
1868
1966
  resource_server_name: e.string(),
@@ -1870,17 +1968,17 @@ const No = e.object({
1870
1968
  description: e.string().nullable().optional(),
1871
1969
  created_at: e.string().optional(),
1872
1970
  organization_id: e.string().optional()
1873
- }), Kt = e.array(
1874
- Bo
1875
- ), Ko = e.object({
1971
+ }), qt = e.array(
1972
+ Xo
1973
+ ), Vo = e.object({
1876
1974
  user_id: e.string(),
1877
1975
  role_id: e.string(),
1878
1976
  organization_id: e.string().optional()
1879
- }), Wo = e.object({
1880
- ...Ko.shape,
1977
+ }), qo = e.object({
1978
+ ...Vo.shape,
1881
1979
  tenant_id: e.string(),
1882
1980
  created_at: e.string().optional()
1883
- }), Wt = e.array(Wo), zo = e.object({
1981
+ }), Yt = e.array(qo), Yo = e.object({
1884
1982
  id: e.string().optional().openapi({
1885
1983
  description: "The unique identifier of the role. If not provided, one will be generated."
1886
1984
  }),
@@ -1894,13 +1992,13 @@ const No = e.object({
1894
1992
  metadata: e.record(e.any()).optional().openapi({
1895
1993
  description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
1896
1994
  })
1897
- }), Xo = zo.extend({
1995
+ }), Qo = Yo.extend({
1898
1996
  id: e.string().openapi({
1899
1997
  description: "The unique identifier of the role"
1900
1998
  }),
1901
1999
  created_at: e.string().optional(),
1902
2000
  updated_at: e.string().optional()
1903
- }), zt = e.array(Xo), Vo = e.object({
2001
+ }), Qt = e.array(Qo), Jo = e.object({
1904
2002
  logo_url: e.string().optional().openapi({
1905
2003
  description: "URL of the organization's logo"
1906
2004
  }),
@@ -1912,7 +2010,7 @@ const No = e.object({
1912
2010
  description: "Page background color in hex format (e.g., #FFFFFF)"
1913
2011
  })
1914
2012
  }).optional()
1915
- }).optional(), qo = e.object({
2013
+ }).optional(), Zo = e.object({
1916
2014
  connection_id: e.string().openapi({
1917
2015
  description: "ID of the connection"
1918
2016
  }),
@@ -1925,7 +2023,7 @@ const No = e.object({
1925
2023
  is_signup_enabled: e.boolean().default(!0).openapi({
1926
2024
  description: "Whether signup is enabled for this connection"
1927
2025
  })
1928
- }), Yo = e.object({
2026
+ }), $o = e.object({
1929
2027
  client_credentials: e.object({
1930
2028
  enforce: e.boolean().default(!1).openapi({
1931
2029
  description: "Whether to enforce token quota limits"
@@ -1937,7 +2035,7 @@ const No = e.object({
1937
2035
  description: "Maximum tokens per hour (0 = unlimited)"
1938
2036
  })
1939
2037
  }).optional()
1940
- }).optional(), Qo = e.object({
2038
+ }).optional(), et = e.object({
1941
2039
  id: e.string().optional(),
1942
2040
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
1943
2041
  message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
@@ -1947,34 +2045,34 @@ const No = e.object({
1947
2045
  display_name: e.string().optional().openapi({
1948
2046
  description: "The display name of the organization"
1949
2047
  }),
1950
- branding: Vo,
2048
+ branding: Jo,
1951
2049
  metadata: e.record(e.any()).default({}).optional().openapi({
1952
2050
  description: "Custom metadata for the organization"
1953
2051
  }),
1954
- enabled_connections: e.array(qo).default([]).optional().openapi({
2052
+ enabled_connections: e.array(Zo).default([]).optional().openapi({
1955
2053
  description: "List of enabled connections for the organization"
1956
2054
  }),
1957
- token_quota: Yo
1958
- }), Xt = e.object({
1959
- ...Qo.shape,
1960
- ...r.shape,
2055
+ token_quota: $o
2056
+ }), Jt = e.object({
2057
+ ...et.shape,
2058
+ ...p.shape,
1961
2059
  id: e.string(),
1962
2060
  // Override name to be lenient when reading from database (to support existing uppercase names)
1963
2061
  name: e.string().min(1).openapi({
1964
2062
  description: "The name of the organization"
1965
2063
  })
1966
- }), Jo = e.object({
2064
+ }), ot = e.object({
1967
2065
  user_id: e.string().openapi({
1968
2066
  description: "ID of the user"
1969
2067
  }),
1970
2068
  organization_id: e.string().openapi({
1971
2069
  description: "ID of the organization"
1972
2070
  })
1973
- }), Vt = e.object({
1974
- ...Jo.shape,
1975
- ...r.shape,
2071
+ }), Zt = e.object({
2072
+ ...ot.shape,
2073
+ ...p.shape,
1976
2074
  id: e.string()
1977
- }), qt = e.object({
2075
+ }), $t = e.object({
1978
2076
  // Session settings
1979
2077
  idle_session_lifetime: e.number().optional(),
1980
2078
  session_lifetime: e.number().optional(),
@@ -2042,8 +2140,37 @@ const No = e.object({
2042
2140
  // Session management
2043
2141
  sessions: e.object({
2044
2142
  oidc_logout_prompt_enabled: e.boolean().optional()
2143
+ }).optional(),
2144
+ // Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
2145
+ mfa: e.object({
2146
+ // Factor states
2147
+ factors: e.object({
2148
+ sms: e.boolean().default(!1),
2149
+ otp: e.boolean().default(!1),
2150
+ email: e.boolean().default(!1),
2151
+ push_notification: e.boolean().default(!1),
2152
+ webauthn_roaming: e.boolean().default(!1),
2153
+ webauthn_platform: e.boolean().default(!1),
2154
+ recovery_code: e.boolean().default(!1),
2155
+ duo: e.boolean().default(!1)
2156
+ }).optional(),
2157
+ // SMS provider configuration
2158
+ sms_provider: e.object({
2159
+ provider: e.enum(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
2160
+ }).optional(),
2161
+ // Twilio-specific configuration
2162
+ twilio: e.object({
2163
+ sid: e.string().optional(),
2164
+ auth_token: e.string().optional(),
2165
+ from: e.string().optional(),
2166
+ messaging_service_sid: e.string().optional()
2167
+ }).optional(),
2168
+ // Phone message configuration (custom)
2169
+ phone_message: e.object({
2170
+ message: e.string().optional()
2171
+ }).optional()
2045
2172
  }).optional()
2046
- }), Yt = e.object({
2173
+ }), en = e.object({
2047
2174
  date: e.string().openapi({
2048
2175
  description: "Date these events occurred in ISO 8601 format",
2049
2176
  example: "2025-12-19"
@@ -2068,10 +2195,10 @@ const No = e.object({
2068
2195
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2069
2196
  example: "2025-12-19T00:00:00.000Z"
2070
2197
  })
2071
- }), Qt = e.number().openapi({
2198
+ }), on = e.number().openapi({
2072
2199
  description: "Number of active users in the last 30 days",
2073
2200
  example: 1234
2074
- }), Zo = e.enum([
2201
+ }), tt = e.enum([
2075
2202
  "login",
2076
2203
  "login-id",
2077
2204
  "login-password",
@@ -2099,213 +2226,242 @@ const No = e.object({
2099
2226
  "passkeys",
2100
2227
  "captcha",
2101
2228
  "custom-form"
2102
- ]), $o = e.record(e.string(), e.string()).openapi({
2229
+ ]), nt = e.record(e.string(), e.string()).openapi({
2103
2230
  type: "object",
2104
2231
  additionalProperties: { type: "string" }
2105
- }), Jt = e.object({
2106
- prompt: Zo,
2232
+ }), tn = e.object({
2233
+ prompt: tt,
2107
2234
  language: e.string(),
2108
- custom_text: $o
2235
+ custom_text: nt
2109
2236
  });
2110
- function Zt(o) {
2111
- const [a, s] = o.split("|");
2112
- if (!a || !s)
2237
+ function nn(o) {
2238
+ const [n, i] = o.split("|");
2239
+ if (!n || !i)
2113
2240
  throw new Error(`Invalid user_id: ${o}`);
2114
- return { connection: a, id: s };
2241
+ return { connection: n, id: i };
2115
2242
  }
2116
- function $t(o) {
2243
+ function an(o) {
2117
2244
  const {
2118
- primary: a,
2119
- secondaries: s,
2120
- syncMethods: k = ["create", "update", "remove", "delete", "set"]
2121
- } = o, U = {
2122
- get(d, n) {
2123
- if (typeof n == "symbol")
2124
- return d[n];
2125
- const g = d[n];
2126
- return typeof g != "function" ? g : k.includes(n) ? async (...h) => {
2127
- const F = await g.apply(d, h), b = [];
2128
- for (const p of s) {
2129
- const S = p.adapter[n];
2130
- if (typeof S != "function")
2245
+ primary: n,
2246
+ secondaries: i,
2247
+ syncMethods: T = ["create", "update", "remove", "delete", "set"]
2248
+ } = o, f = {
2249
+ get(l, a) {
2250
+ if (typeof a == "symbol")
2251
+ return l[a];
2252
+ const c = l[a];
2253
+ return typeof c != "function" ? c : T.includes(a) ? async (..._) => {
2254
+ const E = await c.apply(l, _), d = [];
2255
+ for (const s of i) {
2256
+ const m = s.adapter[a];
2257
+ if (typeof m != "function")
2131
2258
  continue;
2132
- const v = (async () => {
2259
+ const S = (async () => {
2133
2260
  try {
2134
- await S.apply(p.adapter, h);
2135
- } catch (A) {
2261
+ await m.apply(s.adapter, _);
2262
+ } catch (h) {
2136
2263
  try {
2137
- p.onError ? p.onError(A, n, h) : console.error(
2138
- `Passthrough adapter: secondary write failed for ${n}:`,
2139
- A
2264
+ s.onError ? s.onError(h, a, _) : console.error(
2265
+ `Passthrough adapter: secondary write failed for ${a}:`,
2266
+ h
2140
2267
  );
2141
- } catch (x) {
2268
+ } catch (A) {
2142
2269
  console.error(
2143
- `Passthrough adapter: onError handler threw for ${n}:`,
2144
- x
2270
+ `Passthrough adapter: onError handler threw for ${a}:`,
2271
+ A
2145
2272
  );
2146
2273
  }
2147
2274
  }
2148
2275
  })();
2149
- p.blocking && b.push(v);
2276
+ s.blocking && d.push(S);
2150
2277
  }
2151
- return b.length > 0 && await Promise.all(b), F;
2152
- } : g.bind(d);
2278
+ return d.length > 0 && await Promise.all(d), E;
2279
+ } : c.bind(l);
2153
2280
  }
2154
2281
  };
2155
- return new Proxy(a, U);
2282
+ return new Proxy(n, f);
2156
2283
  }
2157
- function en(o) {
2284
+ function sn(o) {
2158
2285
  return o;
2159
2286
  }
2287
+ function rn(o) {
2288
+ var f, l, a, c, _, E, d, s, m, S, h, A;
2289
+ const n = o == null ? void 0 : o.options;
2290
+ if (!n)
2291
+ return {
2292
+ usernameIdentifierActive: !1,
2293
+ emailIdentifierActive: !0,
2294
+ usernameMinLength: 1,
2295
+ usernameMaxLength: 15
2296
+ };
2297
+ const i = n.attributes;
2298
+ if (i) {
2299
+ const P = ((l = (f = i.username) == null ? void 0 : f.identifier) == null ? void 0 : l.active) === !0, M = ((c = (a = i.email) == null ? void 0 : a.identifier) == null ? void 0 : c.active) !== !1, H = ((E = (_ = i.username) == null ? void 0 : _.validation) == null ? void 0 : E.min_length) ?? 1, G = ((s = (d = i.username) == null ? void 0 : d.validation) == null ? void 0 : s.max_length) ?? 15;
2300
+ return {
2301
+ usernameIdentifierActive: P,
2302
+ emailIdentifierActive: M,
2303
+ usernameMinLength: H,
2304
+ usernameMaxLength: G
2305
+ };
2306
+ }
2307
+ return {
2308
+ usernameIdentifierActive: n.requires_username === !0,
2309
+ emailIdentifierActive: !0,
2310
+ usernameMinLength: ((S = (m = n.validation) == null ? void 0 : m.username) == null ? void 0 : S.min) ?? 1,
2311
+ usernameMaxLength: ((A = (h = n.validation) == null ? void 0 : h.username) == null ? void 0 : A.max) ?? 15
2312
+ };
2313
+ }
2160
2314
  export {
2161
- tt as Auth0ActionEnum,
2162
- So as Auth0Client,
2163
- O as AuthorizationResponseMode,
2164
- T as AuthorizationResponseType,
2165
- N as CodeChallengeMethod,
2166
- y as ComponentCategory,
2167
- C as ComponentType,
2168
- nt as EmailActionEnum,
2169
- ot as FlowActionTypeEnum,
2170
- Oo as GrantType,
2171
- Ao as LocationInfo,
2172
- fo as LogTypes,
2173
- L as LoginSessionState,
2174
- se as NodeType,
2175
- G as RedirectTargetEnum,
2176
- pe as actionNodeSchema,
2177
- Qt as activeUsersResponseSchema,
2178
- V as addressSchema,
2179
- _t as auth0FlowInsertSchema,
2180
- me as auth0FlowSchema,
2181
- at as auth0QuerySchema,
2182
- M as auth0UpdateUserActionSchema,
2183
- st as auth0UserResponseSchema,
2184
- he as authParamsSchema,
2185
- I as baseUserSchema,
2186
- Je as blockComponentSchema,
2187
- No as bordersSchema,
2188
- dt as brandingSchema,
2189
- te as buttonComponentSchema,
2190
- $ as clientGrantInsertSchema,
2191
- pt as clientGrantListSchema,
2192
- ee as clientGrantSchema,
2193
- Z as clientInsertSchema,
2194
- ct as clientSchema,
2195
- fe as codeInsertSchema,
2196
- gt as codeSchema,
2197
- be as codeTypeSchema,
2198
- Ro as colorsSchema,
2199
- ao as componentMessageSchema,
2200
- re as componentSchema,
2201
- Se as connectionInsertSchema,
2202
- Ee as connectionOptionsSchema,
2203
- ut as connectionSchema,
2204
- c as coordinatesSchema,
2205
- $t as createPassthroughAdapter,
2206
- en as createWriteOnlyAdapter,
2207
- Ae as customDomainInsertSchema,
2208
- Ce as customDomainSchema,
2209
- mt as customDomainWithTenantIdSchema,
2210
- Jt as customTextEntrySchema,
2211
- $o as customTextSchema,
2212
- Yt as dailyStatsSchema,
2213
- vt as emailProviderSchema,
2214
- P as emailVerificationRulesSchema,
2215
- H as emailVerifyActionSchema,
2216
- ue as endingSchema,
2217
- $e as fieldComponentSchema,
2218
- K as flowActionStepSchema,
2219
- W as flowInsertSchema,
2220
- it as flowSchema,
2221
- ie as flowsFieldComponentSchema,
2222
- ce as flowsFlowNodeSchema,
2223
- le as flowsStepNodeSchema,
2224
- l as fontDetailsSchema,
2225
- Do as fontsSchema,
2226
- ht as formControlSchema,
2227
- io as formInsertSchema,
2228
- R as formNodeComponentDefinition,
2229
- no as formNodeSchema,
2230
- bt as formSchema,
2231
- ae as genericComponentSchema,
2232
- _e as genericNodeSchema,
2233
- It as hookInsertSchema,
2234
- Ct as hookSchema,
2235
- X as identitySchema,
2236
- uo as inviteInsertSchema,
2237
- yt as inviteSchema,
2238
- go as inviteeSchema,
2239
- _o as inviterSchema,
2240
- Et as isBlockComponent,
2241
- At as isFieldComponent,
2242
- St as isWidgetComponent,
2243
- Tt as jwksKeySchema,
2244
- mo as jwksSchema,
2245
- ne as legalComponentSchema,
2246
- Io as logInsertSchema,
2247
- Rt as logSchema,
2248
- bo as loginSessionInsertSchema,
2249
- Nt as loginSessionSchema,
2250
- ho as loginSessionStateSchema,
2251
- de as nodeSchema,
2252
- Ot as openIDConfigurationSchema,
2253
- Vo as organizationBrandingSchema,
2254
- qo as organizationEnabledConnectionSchema,
2255
- Qo as organizationInsertSchema,
2256
- Xt as organizationSchema,
2257
- Yo as organizationTokenQuotaSchema,
2258
- wo as pageBackgroundSchema,
2259
- Zt as parseUserId,
2260
- Co as passwordInsertSchema,
2261
- Dt as passwordSchema,
2262
- z as profileDataSchema,
2263
- Zo as promptScreenSchema,
2264
- Ft as promptSettingSchema,
2265
- B as redirectActionSchema,
2266
- ko as refreshTokenInsertSchema,
2267
- xt as refreshTokenSchema,
2268
- vo as resourceServerInsertSchema,
2269
- Ht as resourceServerListSchema,
2270
- Fo as resourceServerOptionsSchema,
2271
- xo as resourceServerSchema,
2272
- Uo as resourceServerScopeSchema,
2273
- oe as richTextComponentSchema,
2274
- zo as roleInsertSchema,
2275
- zt as roleListSchema,
2276
- Po as rolePermissionInsertSchema,
2277
- Gt as rolePermissionListSchema,
2278
- Mo as rolePermissionSchema,
2279
- Xo as roleSchema,
2280
- ro as screenLinkSchema,
2281
- yo as sessionInsertSchema,
2282
- wt as sessionSchema,
2283
- Lt as signingKeySchema,
2284
- Mt as smsProviderSchema,
2285
- Pt as smsSendParamsSchema,
2286
- ge as startSchema,
2287
- To as tenantInsertSchema,
2288
- jt as tenantSchema,
2289
- qt as tenantSettingsSchema,
2290
- jo as themeInsertSchema,
2291
- Ut as themeSchema,
2292
- kt as tokenResponseSchema,
2293
- rt as totalsSchema,
2294
- ft as uiScreenSchema,
2295
- q as userInsertSchema,
2296
- Jo as userOrganizationInsertSchema,
2297
- Vt as userOrganizationSchema,
2298
- Ho as userPermissionInsertSchema,
2299
- Bt as userPermissionListSchema,
2300
- Go as userPermissionSchema,
2301
- Kt as userPermissionWithDetailsListSchema,
2302
- Bo as userPermissionWithDetailsSchema,
2303
- lt as userResponseSchema,
2304
- Ko as userRoleInsertSchema,
2305
- Wt as userRoleListSchema,
2306
- Wo as userRoleSchema,
2307
- Y as userSchema,
2308
- Ie as verificationMethodsSchema,
2309
- Ze as widgetComponentSchema,
2310
- Lo as widgetSchema
2315
+ st as Auth0ActionEnum,
2316
+ yo as Auth0Client,
2317
+ j as AuthorizationResponseMode,
2318
+ D as AuthorizationResponseType,
2319
+ L as CodeChallengeMethod,
2320
+ w as ComponentCategory,
2321
+ R as ComponentType,
2322
+ rt as EmailActionEnum,
2323
+ St as FORM_FIELD_TYPES,
2324
+ at as FlowActionTypeEnum,
2325
+ Do as GrantType,
2326
+ Oo as LocationInfo,
2327
+ Io as LogTypes,
2328
+ F as LoginSessionState,
2329
+ _e as NodeType,
2330
+ z as RedirectTargetEnum,
2331
+ ue as actionNodeSchema,
2332
+ on as activeUsersResponseSchema,
2333
+ J as addressSchema,
2334
+ mt as auth0FlowInsertSchema,
2335
+ Ee as auth0FlowSchema,
2336
+ ct as auth0QuerySchema,
2337
+ W as auth0UpdateUserActionSchema,
2338
+ _t as auth0UserResponseSchema,
2339
+ Se as authParamsSchema,
2340
+ N as baseUserSchema,
2341
+ oo as blockComponentSchema,
2342
+ jo as bordersSchema,
2343
+ ht as brandingSchema,
2344
+ se as buttonComponentSchema,
2345
+ ne as clientGrantInsertSchema,
2346
+ ut as clientGrantListSchema,
2347
+ ie as clientGrantSchema,
2348
+ te as clientInsertSchema,
2349
+ gt as clientSchema,
2350
+ Ie as codeInsertSchema,
2351
+ bt as codeSchema,
2352
+ Ae as codeTypeSchema,
2353
+ Lo as colorsSchema,
2354
+ co as componentMessageSchema,
2355
+ pe as componentSchema,
2356
+ ye as connectionInsertSchema,
2357
+ Ce as connectionOptionsSchema,
2358
+ ft as connectionSchema,
2359
+ u as coordinatesSchema,
2360
+ an as createPassthroughAdapter,
2361
+ sn as createWriteOnlyAdapter,
2362
+ Oe as customDomainInsertSchema,
2363
+ Ne as customDomainSchema,
2364
+ Et as customDomainWithTenantIdSchema,
2365
+ tn as customTextEntrySchema,
2366
+ nt as customTextSchema,
2367
+ en as dailyStatsSchema,
2368
+ Gt as emailProviderSchema,
2369
+ B as emailVerificationRulesSchema,
2370
+ K as emailVerifyActionSchema,
2371
+ fe as endingSchema,
2372
+ no as fieldComponentSchema,
2373
+ V as flowActionStepSchema,
2374
+ q as flowInsertSchema,
2375
+ lt as flowSchema,
2376
+ le as flowsFieldComponentSchema,
2377
+ ge as flowsFlowNodeSchema,
2378
+ de as flowsStepNodeSchema,
2379
+ g as fontDetailsSchema,
2380
+ vo as fontsSchema,
2381
+ At as formControlSchema,
2382
+ lo as formInsertSchema,
2383
+ v as formNodeComponentDefinition,
2384
+ ro as formNodeSchema,
2385
+ It as formSchema,
2386
+ ce as genericComponentSchema,
2387
+ me as genericNodeSchema,
2388
+ rn as getConnectionIdentifierConfig,
2389
+ Nt as hookInsertSchema,
2390
+ Rt as hookSchema,
2391
+ Q as identitySchema,
2392
+ fo as inviteInsertSchema,
2393
+ wt as inviteSchema,
2394
+ bo as inviteeSchema,
2395
+ ho as inviterSchema,
2396
+ yt as isBlockComponent,
2397
+ Tt as isFieldComponent,
2398
+ Ot as isWidgetComponent,
2399
+ Dt as jwksKeySchema,
2400
+ Eo as jwksSchema,
2401
+ re as legalComponentSchema,
2402
+ To as logInsertSchema,
2403
+ vt as logSchema,
2404
+ Ao as loginSessionInsertSchema,
2405
+ Lt as loginSessionSchema,
2406
+ So as loginSessionStateSchema,
2407
+ he as nodeSchema,
2408
+ jt as openIDConfigurationSchema,
2409
+ Jo as organizationBrandingSchema,
2410
+ Zo as organizationEnabledConnectionSchema,
2411
+ et as organizationInsertSchema,
2412
+ Jt as organizationSchema,
2413
+ $o as organizationTokenQuotaSchema,
2414
+ ko as pageBackgroundSchema,
2415
+ nn as parseUserId,
2416
+ No as passwordInsertSchema,
2417
+ kt as passwordSchema,
2418
+ Y as profileDataSchema,
2419
+ tt as promptScreenSchema,
2420
+ Ht as promptSettingSchema,
2421
+ X as redirectActionSchema,
2422
+ xo as refreshTokenInsertSchema,
2423
+ Bt as refreshTokenSchema,
2424
+ Ho as resourceServerInsertSchema,
2425
+ zt as resourceServerListSchema,
2426
+ Mo as resourceServerOptionsSchema,
2427
+ Go as resourceServerSchema,
2428
+ Po as resourceServerScopeSchema,
2429
+ ae as richTextComponentSchema,
2430
+ Yo as roleInsertSchema,
2431
+ Qt as roleListSchema,
2432
+ Bo as rolePermissionInsertSchema,
2433
+ Xt as rolePermissionListSchema,
2434
+ Wo as rolePermissionSchema,
2435
+ Qo as roleSchema,
2436
+ po as screenLinkSchema,
2437
+ Ro as sessionInsertSchema,
2438
+ Ut as sessionSchema,
2439
+ Ft as signingKeySchema,
2440
+ Kt as smsProviderSchema,
2441
+ Wt as smsSendParamsSchema,
2442
+ be as startSchema,
2443
+ wo as tenantInsertSchema,
2444
+ xt as tenantSchema,
2445
+ $t as tenantSettingsSchema,
2446
+ Fo as themeInsertSchema,
2447
+ Mt as themeSchema,
2448
+ Pt as tokenResponseSchema,
2449
+ pt as totalsSchema,
2450
+ Ct as uiScreenSchema,
2451
+ Z as userInsertSchema,
2452
+ ot as userOrganizationInsertSchema,
2453
+ Zt as userOrganizationSchema,
2454
+ Ko as userPermissionInsertSchema,
2455
+ Vt as userPermissionListSchema,
2456
+ zo as userPermissionSchema,
2457
+ qt as userPermissionWithDetailsListSchema,
2458
+ Xo as userPermissionWithDetailsSchema,
2459
+ dt as userResponseSchema,
2460
+ Vo as userRoleInsertSchema,
2461
+ Yt as userRoleListSchema,
2462
+ qo as userRoleSchema,
2463
+ $ as userSchema,
2464
+ Te as verificationMethodsSchema,
2465
+ to as widgetComponentSchema,
2466
+ Uo as widgetSchema
2311
2467
  };