@authhero/adapter-interfaces 4.6.0 → 4.8.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.
@@ -290,7 +290,7 @@ var t = e.object({
290
290
  birthdate: e.string().optional(),
291
291
  zoneinfo: e.string().optional(),
292
292
  address: Me
293
- }), d = u.extend({
293
+ }), Ne = u.extend({
294
294
  email_verified: e.boolean().default(!1),
295
295
  verify_email: e.boolean().optional(),
296
296
  last_ip: e.string().optional(),
@@ -305,29 +305,29 @@ var t = e.object({
305
305
  hash: e.string(),
306
306
  algorithm: e.string()
307
307
  }).optional()
308
- }), f = d.omit({ password: !0 }).extend(t.shape).extend({
308
+ }), Pe = Ne.omit({ password: !0 }).extend(t.shape).extend({
309
309
  user_id: e.string(),
310
310
  provider: e.string(),
311
311
  is_social: e.boolean(),
312
312
  email: e.string().optional(),
313
313
  login_count: e.number().default(0),
314
314
  identities: e.array(je).optional()
315
- }), Ne = f.omit({ registration_completed_at: !0 }), Pe = u.extend({
315
+ }), Fe = Pe.omit({ registration_completed_at: !0 }), Ie = u.extend({
316
316
  login_count: e.number(),
317
317
  multifactor: e.array(e.string()).optional(),
318
318
  last_ip: e.string().optional(),
319
319
  last_login: e.string().optional(),
320
320
  user_id: e.string()
321
- }).catchall(e.any()), Fe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ie = (e = 21) => {
321
+ }).catchall(e.any()), Le = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Re = (e = 21) => {
322
322
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
323
- for (; e--;) t += Fe[n[e] & 63];
323
+ for (; e--;) t += Le[n[e] & 63];
324
324
  return t;
325
- }, p = e.object({
325
+ }, ze = e.object({
326
326
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
327
327
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
328
328
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
329
329
  global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
330
- client_secret: e.string().default(() => Ie()).optional().openapi({ description: "Client secret (which you must not make public)." }),
330
+ client_secret: e.string().default(() => Re()).optional().openapi({ description: "Client secret (which you must not make public)." }),
331
331
  app_type: e.enum([
332
332
  "native",
333
333
  "spa",
@@ -440,10 +440,10 @@ var t = e.object({
440
440
  ]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
441
441
  registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
442
442
  user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies." })
443
- }), Le = e.object({
443
+ }), Be = e.object({
444
444
  created_at: e.string(),
445
445
  updated_at: e.string()
446
- }).extend(p.shape).extend({ client_id: e.string() }), m = e.object({
446
+ }).extend(ze.shape).extend({ client_id: e.string() }), Ve = e.object({
447
447
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
448
448
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
449
449
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -456,38 +456,38 @@ var t = e.object({
456
456
  is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
457
457
  subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
458
458
  authorization_details_types: e.array(e.string()).optional().openapi({ 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." })
459
- }), h = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(m.shape).extend({
459
+ }), He = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(Ve.shape).extend({
460
460
  created_at: e.string().optional(),
461
461
  updated_at: e.string().optional()
462
- }), Re = e.array(h), g = e.enum(["iat", "rat"]), _ = e.object({
462
+ }), Ue = e.array(He), d = e.enum(["iat", "rat"]), f = e.object({
463
463
  id: e.string(),
464
464
  token_hash: e.string(),
465
- type: g,
465
+ type: d,
466
466
  client_id: e.string().optional(),
467
467
  sub: e.string().optional(),
468
468
  constraints: e.record(e.string(), e.unknown()).optional(),
469
469
  single_use: e.boolean().default(!1),
470
470
  expires_at: e.string().optional()
471
- }), ze = e.object({
471
+ }), We = e.object({
472
472
  created_at: e.string(),
473
473
  used_at: e.string().optional(),
474
474
  revoked_at: e.string().optional()
475
- }).extend(_.shape), v = e.object({
475
+ }).extend(f.shape), p = e.object({
476
476
  x: e.number(),
477
477
  y: e.number()
478
- }), y = /* @__PURE__ */ function(e) {
478
+ }), m = /* @__PURE__ */ function(e) {
479
479
  return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
480
- }({}), b = /* @__PURE__ */ function(e) {
480
+ }({}), h = /* @__PURE__ */ function(e) {
481
481
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
482
- }({}), x = e.object({
482
+ }({}), g = e.object({
483
483
  id: e.string(),
484
- category: e.nativeEnum(b),
485
- type: e.nativeEnum(y)
486
- }), S = x.extend({
484
+ category: e.nativeEnum(h),
485
+ type: e.nativeEnum(m)
486
+ }), _ = g.extend({
487
487
  category: e.literal("BLOCK"),
488
488
  type: e.literal("RICH_TEXT"),
489
489
  config: e.object({ content: e.string() }).passthrough()
490
- }), C = x.extend({
490
+ }), v = g.extend({
491
491
  category: e.literal("BLOCK"),
492
492
  type: e.union([
493
493
  e.literal("NEXT_BUTTON"),
@@ -495,13 +495,13 @@ var t = e.object({
495
495
  e.literal("SUBMIT_BUTTON")
496
496
  ]),
497
497
  config: e.object({ text: e.string() }).passthrough()
498
- }), w = x.extend({
498
+ }), y = g.extend({
499
499
  category: e.literal("FIELD"),
500
500
  type: e.literal("LEGAL"),
501
501
  required: e.boolean().optional(),
502
502
  sensitive: e.boolean().optional(),
503
503
  config: e.object({ text: e.string() }).passthrough()
504
- }), T = x.extend({
504
+ }), b = g.extend({
505
505
  category: e.literal("FIELD"),
506
506
  type: e.union([
507
507
  e.literal("TEXT"),
@@ -521,40 +521,40 @@ var t = e.object({
521
521
  label: e.string().optional(),
522
522
  placeholder: e.string().optional()
523
523
  }).passthrough()
524
- }), E = e.object({
524
+ }), x = e.object({
525
525
  id: e.string(),
526
526
  category: e.string(),
527
527
  type: e.string()
528
- }).passthrough(), D = e.union([
529
- S,
530
- C,
531
- w,
532
- T,
533
- E
534
- ]), Be = /* @__PURE__ */ function(e) {
528
+ }).passthrough(), S = e.union([
529
+ _,
530
+ v,
531
+ y,
532
+ b,
533
+ x
534
+ ]), Ge = /* @__PURE__ */ function(e) {
535
535
  return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
536
- }({}), O = e.object({
536
+ }({}), C = e.object({
537
537
  id: e.string(),
538
538
  type: e.literal("STEP"),
539
- coordinates: v,
539
+ coordinates: p,
540
540
  alias: e.string().optional(),
541
541
  config: e.object({
542
- components: e.array(D),
542
+ components: e.array(S),
543
543
  next_node: e.string()
544
544
  }).passthrough()
545
- }), k = e.object({
545
+ }), w = e.object({
546
546
  id: e.string(),
547
547
  type: e.literal("FLOW"),
548
- coordinates: v,
548
+ coordinates: p,
549
549
  alias: e.string().optional(),
550
550
  config: e.object({
551
551
  flow_id: e.string(),
552
552
  next_node: e.string()
553
553
  })
554
- }), A = e.object({
554
+ }), T = e.object({
555
555
  id: e.string(),
556
556
  type: e.literal("ACTION"),
557
- coordinates: v,
557
+ coordinates: p,
558
558
  alias: e.string().optional(),
559
559
  config: e.object({
560
560
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -566,56 +566,56 @@ var t = e.object({
566
566
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
567
567
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
568
568
  }).passthrough()
569
- }), j = e.object({
569
+ }), E = e.object({
570
570
  id: e.string(),
571
571
  type: e.string(),
572
- coordinates: v
573
- }).passthrough(), Ve = e.union([
574
- O,
575
- k,
576
- A,
577
- j
578
- ]), He = e.object({
572
+ coordinates: p
573
+ }).passthrough(), Ke = e.union([
574
+ C,
575
+ w,
576
+ T,
577
+ E
578
+ ]), qe = e.object({
579
579
  next_node: e.string(),
580
- coordinates: v
581
- }).passthrough(), Ue = e.object({
580
+ coordinates: p
581
+ }).passthrough(), Je = e.object({
582
582
  resume_flow: e.boolean().optional(),
583
- coordinates: v
584
- }).passthrough(), We = e.object({
583
+ coordinates: p
584
+ }).passthrough(), Ye = e.object({
585
585
  id: e.string(),
586
586
  name: e.string(),
587
587
  languages: e.object({ primary: e.string() }).passthrough(),
588
- nodes: e.array(Ve),
589
- start: He,
590
- ending: Ue,
588
+ nodes: e.array(Ke),
589
+ start: qe,
590
+ ending: Je,
591
591
  created_at: e.string(),
592
592
  updated_at: e.string(),
593
593
  links: e.object({
594
594
  sdkSrc: e.string().optional(),
595
595
  sdk_src: e.string().optional()
596
596
  }).passthrough()
597
- }).passthrough(), Ge = We.omit({
597
+ }).passthrough(), Xe = Ye.omit({
598
598
  id: !0,
599
599
  created_at: !0,
600
600
  updated_at: !0
601
- }), M = /* @__PURE__ */ function(e) {
601
+ }), D = /* @__PURE__ */ function(e) {
602
602
  return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
603
- }({}), N = /* @__PURE__ */ function(e) {
603
+ }({}), O = /* @__PURE__ */ function(e) {
604
604
  return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
605
- }({}), Ke = /* @__PURE__ */ function(e) {
605
+ }({}), Ze = /* @__PURE__ */ function(e) {
606
606
  return e.S256 = "S256", e.Plain = "plain", e;
607
- }({}), qe = e.union([e.null(), e.object({
607
+ }({}), Qe = e.union([e.null(), e.object({
608
608
  essential: e.boolean().optional(),
609
609
  value: e.unknown().optional(),
610
610
  values: e.array(e.unknown()).optional()
611
- })]).nullable(), Je = e.object({
612
- userinfo: e.record(e.string(), qe).optional(),
613
- id_token: e.record(e.string(), qe).optional()
614
- }), Ye = e.object({
611
+ })]).nullable(), $e = e.object({
612
+ userinfo: e.record(e.string(), Qe).optional(),
613
+ id_token: e.record(e.string(), Qe).optional()
614
+ }), et = e.object({
615
615
  client_id: e.string(),
616
616
  act_as: e.string().optional(),
617
- response_type: e.nativeEnum(M).optional(),
618
- response_mode: e.nativeEnum(N).optional(),
617
+ response_type: e.nativeEnum(D).optional(),
618
+ response_mode: e.nativeEnum(O).optional(),
619
619
  redirect_uri: e.string().optional(),
620
620
  audience: e.string().optional(),
621
621
  organization: e.string().optional(),
@@ -623,15 +623,15 @@ var t = e.object({
623
623
  nonce: e.string().optional(),
624
624
  scope: e.string().optional(),
625
625
  prompt: e.string().optional(),
626
- code_challenge_method: e.nativeEnum(Ke).optional(),
626
+ code_challenge_method: e.nativeEnum(Ze).optional(),
627
627
  code_challenge: e.string().optional(),
628
628
  username: e.string().optional(),
629
629
  ui_locales: e.string().optional(),
630
630
  max_age: e.number().optional(),
631
631
  acr_values: e.string().optional(),
632
- claims: Je.optional(),
632
+ claims: $e.optional(),
633
633
  vendor_id: e.string().optional()
634
- }), Xe = e.object({
634
+ }), tt = e.object({
635
635
  colors: e.object({
636
636
  primary: e.string(),
637
637
  page_background: e.union([e.string(), e.object({
@@ -650,7 +650,7 @@ var t = e.object({
650
650
  "light",
651
651
  "auto"
652
652
  ]).optional()
653
- }), Ze = e.enum([
653
+ }), nt = e.enum([
654
654
  "password_reset",
655
655
  "email_verification",
656
656
  "otp",
@@ -658,11 +658,11 @@ var t = e.object({
658
658
  "authorization_code",
659
659
  "oauth2_state",
660
660
  "ticket"
661
- ]), Qe = e.object({
661
+ ]), rt = e.object({
662
662
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
663
663
  login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
664
664
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
665
- code_type: Ze,
665
+ code_type: nt,
666
666
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
667
667
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
668
668
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -673,7 +673,7 @@ var t = e.object({
673
673
  expires_at: e.string(),
674
674
  used_at: e.string().optional(),
675
675
  user_id: e.string().optional()
676
- }), $e = Qe.extend({ created_at: e.string() }), et = e.object({
676
+ }), it = rt.extend({ created_at: e.string() }), at = e.object({
677
677
  kid: e.string().optional(),
678
678
  team_id: e.string().optional(),
679
679
  realms: e.string().optional(),
@@ -682,6 +682,9 @@ var t = e.object({
682
682
  client_secret: e.string().optional(),
683
683
  app_secret: e.string().optional(),
684
684
  scope: e.string().optional(),
685
+ client_secret_hint: e.string().optional(),
686
+ app_secret_hint: e.string().optional(),
687
+ twilio_token_hint: e.string().optional(),
685
688
  authorization_endpoint: e.string().optional(),
686
689
  token_endpoint: e.string().optional(),
687
690
  userinfo_endpoint: e.string().optional(),
@@ -721,6 +724,7 @@ var t = e.object({
721
724
  userinfo_endpoint: e.string().optional(),
722
725
  client_id: e.string().optional(),
723
726
  client_secret: e.string().optional(),
727
+ client_secret_hint: e.string().optional(),
724
728
  realm: e.string().optional()
725
729
  }).optional(),
726
730
  attributes: e.object({
@@ -789,35 +793,35 @@ var t = e.object({
789
793
  "never_on_login"
790
794
  ]).optional()
791
795
  });
792
- function P(e) {
796
+ function k(e) {
793
797
  if (e !== null) {
794
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(P);
798
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(k);
795
799
  if (e && typeof e == "object") {
796
800
  let t = {};
797
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = P(r));
801
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = k(r));
798
802
  return t;
799
803
  }
800
804
  return e;
801
805
  }
802
806
  }
803
- var tt = e.object({
807
+ var ot = e.object({
804
808
  id: e.string().optional(),
805
809
  name: e.string(),
806
810
  display_name: e.string().optional(),
807
811
  strategy: e.string(),
808
- options: e.preprocess((e) => e === null ? {} : P(e), et).default({}),
812
+ options: e.preprocess((e) => e === null ? {} : k(e), at).default({}),
809
813
  enabled_clients: e.array(e.string()).default([]).optional(),
810
- response_type: e.nativeEnum(M).optional(),
811
- response_mode: e.nativeEnum(N).optional(),
814
+ response_type: e.nativeEnum(D).optional(),
815
+ response_mode: e.nativeEnum(O).optional(),
812
816
  is_domain_connection: e.boolean().optional(),
813
817
  show_as_button: e.boolean().optional(),
814
818
  metadata: e.record(e.string(), e.any()).optional(),
815
819
  is_system: e.boolean().optional()
816
- }), nt = e.object({
820
+ }), st = e.object({
817
821
  id: e.string(),
818
822
  created_at: e.string().transform((e) => e === null ? "" : e),
819
823
  updated_at: e.string().transform((e) => e === null ? "" : e)
820
- }).extend(tt.shape), F = e.object({
824
+ }).extend(ot.shape), A = e.object({
821
825
  domain: e.string(),
822
826
  custom_domain_id: e.string().optional(),
823
827
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -831,7 +835,7 @@ var tt = e.object({
831
835
  "null"
832
836
  ]).optional(),
833
837
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
834
- }), rt = e.discriminatedUnion("name", [e.object({
838
+ }), ct = e.discriminatedUnion("name", [e.object({
835
839
  name: e.literal("txt"),
836
840
  record: e.string(),
837
841
  domain: e.string()
@@ -839,7 +843,7 @@ var tt = e.object({
839
843
  name: e.literal("http"),
840
844
  http_body: e.string(),
841
845
  http_url: e.string()
842
- })]), it = F.extend({
846
+ })]), lt = A.extend({
843
847
  custom_domain_id: e.string(),
844
848
  primary: e.boolean(),
845
849
  status: e.enum([
@@ -849,26 +853,26 @@ var tt = e.object({
849
853
  "ready"
850
854
  ]),
851
855
  origin_domain_name: e.string().optional(),
852
- verification: e.object({ methods: e.array(rt) }).optional(),
856
+ verification: e.object({ methods: e.array(ct) }).optional(),
853
857
  tls_policy: e.string().optional()
854
- }), at = F.pick({
858
+ }), ut = A.pick({
855
859
  tls_policy: !0,
856
860
  custom_client_ip_header: !0,
857
861
  domain_metadata: !0
858
- }).strict(), ot = it.extend({ tenant_id: e.string() }), st = e.object({
862
+ }).strict(), dt = lt.extend({ tenant_id: e.string() }), ft = e.object({
859
863
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
860
864
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
861
- }), I = e.object({
865
+ }), j = e.object({
862
866
  id: e.string(),
863
867
  order: e.number().optional(),
864
868
  visible: e.boolean().optional().default(!0)
865
- }), L = I.extend({ category: e.literal("BLOCK").optional() }), ct = L.extend({
869
+ }), M = j.extend({ category: e.literal("BLOCK").optional() }), pt = M.extend({
866
870
  type: e.literal("DIVIDER"),
867
871
  config: e.object({ text: e.string().optional() }).optional()
868
- }), lt = L.extend({
872
+ }), mt = M.extend({
869
873
  type: e.literal("HTML"),
870
874
  config: e.object({ content: e.string().optional() }).optional()
871
- }), ut = L.extend({
875
+ }), ht = M.extend({
872
876
  type: e.literal("IMAGE"),
873
877
  config: e.object({
874
878
  src: e.string().optional(),
@@ -876,43 +880,43 @@ var tt = e.object({
876
880
  width: e.number().optional(),
877
881
  height: e.number().optional()
878
882
  }).optional()
879
- }), dt = L.extend({
883
+ }), gt = M.extend({
880
884
  type: e.literal("JUMP_BUTTON"),
881
885
  config: e.object({
882
886
  text: e.string().optional(),
883
887
  target_step: e.string().optional()
884
888
  })
885
- }), ft = L.extend({
889
+ }), _t = M.extend({
886
890
  type: e.literal("RESEND_BUTTON"),
887
891
  config: e.object({
888
892
  text: e.string().optional(),
889
893
  resend_action: e.string().optional()
890
894
  })
891
- }), pt = L.extend({
895
+ }), vt = M.extend({
892
896
  type: e.literal("NEXT_BUTTON"),
893
897
  config: e.object({ text: e.string().optional() })
894
- }), mt = L.extend({
898
+ }), yt = M.extend({
895
899
  type: e.literal("PREVIOUS_BUTTON"),
896
900
  config: e.object({ text: e.string().optional() })
897
- }), ht = L.extend({
901
+ }), bt = M.extend({
898
902
  type: e.literal("RICH_TEXT"),
899
903
  config: e.object({ content: e.string().optional() }).optional()
900
- }), R = I.extend({
904
+ }), N = j.extend({
901
905
  category: e.literal("WIDGET").optional(),
902
906
  label: e.string().min(1).optional(),
903
907
  hint: e.string().min(1).max(500).optional(),
904
908
  required: e.boolean().optional(),
905
909
  sensitive: e.boolean().optional()
906
- }), gt = R.extend({
910
+ }), xt = N.extend({
907
911
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
908
912
  config: e.object({ credential_type: e.string().optional() })
909
- }), _t = R.extend({
913
+ }), St = N.extend({
910
914
  type: e.literal("GMAPS_ADDRESS"),
911
915
  config: e.object({ api_key: e.string().optional() })
912
- }), vt = R.extend({
916
+ }), Ct = N.extend({
913
917
  type: e.literal("RECAPTCHA"),
914
918
  config: e.object({ site_key: e.string().optional() })
915
- }), z = I.extend({
919
+ }), P = j.extend({
916
920
  category: e.literal("FIELD").optional(),
917
921
  label: e.string().min(1).optional(),
918
922
  hint: e.string().min(1).max(500).optional(),
@@ -928,10 +932,10 @@ var tt = e.object({
928
932
  })).optional(),
929
933
  required: e.boolean().optional(),
930
934
  sensitive: e.boolean().optional()
931
- }), yt = z.extend({
935
+ }), wt = P.extend({
932
936
  type: e.literal("BOOLEAN"),
933
937
  config: e.object({ default_value: e.boolean().optional() }).optional()
934
- }), bt = z.extend({
938
+ }), Tt = P.extend({
935
939
  type: e.literal("CARDS"),
936
940
  config: e.object({
937
941
  options: e.array(e.object({
@@ -942,7 +946,7 @@ var tt = e.object({
942
946
  })).optional(),
943
947
  multi_select: e.boolean().optional()
944
948
  }).optional()
945
- }), xt = z.extend({
949
+ }), Et = P.extend({
946
950
  type: e.literal("CHOICE"),
947
951
  config: e.object({
948
952
  options: e.array(e.object({
@@ -953,7 +957,7 @@ var tt = e.object({
953
957
  multiple: e.boolean().optional(),
954
958
  default_value: e.union([e.string(), e.array(e.string())]).optional()
955
959
  }).optional()
956
- }), St = z.extend({
960
+ }), Dt = P.extend({
957
961
  type: e.literal("CODE"),
958
962
  config: e.object({
959
963
  length: e.number().int().positive().max(100).optional(),
@@ -970,7 +974,7 @@ var tt = e.object({
970
974
  message: "default_value is longer than the configured length",
971
975
  path: ["default_value"]
972
976
  }).optional()
973
- }), Ct = z.extend({
977
+ }), Ot = P.extend({
974
978
  type: e.literal("CUSTOM"),
975
979
  config: e.object({
976
980
  component: e.string().optional(),
@@ -978,7 +982,7 @@ var tt = e.object({
978
982
  schema: e.record(e.string(), e.any()).optional(),
979
983
  code: e.string().optional()
980
984
  })
981
- }), wt = z.extend({
985
+ }), kt = P.extend({
982
986
  type: e.literal("DATE"),
983
987
  config: e.object({
984
988
  format: e.string().optional(),
@@ -986,7 +990,7 @@ var tt = e.object({
986
990
  max: e.string().optional(),
987
991
  default_value: e.string().optional()
988
992
  }).optional()
989
- }), Tt = z.extend({
993
+ }), At = P.extend({
990
994
  type: e.literal("DROPDOWN"),
991
995
  config: e.object({
992
996
  options: e.array(e.object({
@@ -998,7 +1002,7 @@ var tt = e.object({
998
1002
  multiple: e.boolean().optional(),
999
1003
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1000
1004
  }).optional()
1001
- }), Et = z.extend({
1005
+ }), jt = P.extend({
1002
1006
  type: e.literal("EMAIL"),
1003
1007
  config: e.object({
1004
1008
  placeholder: e.string().optional(),
@@ -1006,20 +1010,20 @@ var tt = e.object({
1006
1010
  last_used: e.boolean().optional(),
1007
1011
  last_used_label: e.string().optional()
1008
1012
  }).optional()
1009
- }), Dt = z.extend({
1013
+ }), Mt = P.extend({
1010
1014
  type: e.literal("FILE"),
1011
1015
  config: e.object({
1012
1016
  accept: e.string().optional(),
1013
1017
  max_size: e.number().optional(),
1014
1018
  multiple: e.boolean().optional()
1015
1019
  }).optional()
1016
- }), Ot = z.extend({
1020
+ }), Nt = P.extend({
1017
1021
  type: e.literal("LEGAL"),
1018
1022
  config: e.object({
1019
1023
  text: e.string(),
1020
1024
  html: e.boolean().optional()
1021
1025
  }).optional()
1022
- }), kt = z.extend({
1026
+ }), Pt = P.extend({
1023
1027
  type: e.literal("NUMBER"),
1024
1028
  config: e.object({
1025
1029
  placeholder: e.string().optional(),
@@ -1028,7 +1032,7 @@ var tt = e.object({
1028
1032
  step: e.number().optional(),
1029
1033
  default_value: e.string().optional()
1030
1034
  }).optional()
1031
- }), At = z.extend({
1035
+ }), Ft = P.extend({
1032
1036
  type: e.literal("PASSWORD"),
1033
1037
  config: e.object({
1034
1038
  placeholder: e.string().optional(),
@@ -1037,13 +1041,13 @@ var tt = e.object({
1037
1041
  forgot_password_link: e.string().optional(),
1038
1042
  default_value: e.string().optional()
1039
1043
  }).optional()
1040
- }), jt = z.extend({
1044
+ }), It = P.extend({
1041
1045
  type: e.literal("PAYMENT"),
1042
1046
  config: e.object({
1043
1047
  provider: e.string().optional(),
1044
1048
  currency: e.string().optional()
1045
1049
  }).optional()
1046
- }), Mt = z.extend({
1050
+ }), Lt = P.extend({
1047
1051
  type: e.literal("SOCIAL"),
1048
1052
  config: e.object({
1049
1053
  providers: e.array(e.string()).optional(),
@@ -1057,7 +1061,7 @@ var tt = e.object({
1057
1061
  last_used_label: e.string().optional()
1058
1062
  })).optional()
1059
1063
  }).optional()
1060
- }), Nt = z.extend({
1064
+ }), Rt = P.extend({
1061
1065
  type: e.literal("TEL"),
1062
1066
  config: e.object({
1063
1067
  placeholder: e.string().optional(),
@@ -1065,7 +1069,7 @@ var tt = e.object({
1065
1069
  default_value: e.string().optional(),
1066
1070
  allow_email: e.boolean().optional()
1067
1071
  }).optional()
1068
- }), Pt = z.extend({
1072
+ }), zt = P.extend({
1069
1073
  type: e.literal("TEXT"),
1070
1074
  config: e.object({
1071
1075
  placeholder: e.string().optional(),
@@ -1075,42 +1079,37 @@ var tt = e.object({
1075
1079
  last_used: e.boolean().optional(),
1076
1080
  last_used_label: e.string().optional()
1077
1081
  }).optional()
1078
- }), Ft = z.extend({
1082
+ }), Bt = P.extend({
1079
1083
  type: e.literal("COUNTRY"),
1080
1084
  config: e.object({
1081
1085
  placeholder: e.string().optional(),
1082
1086
  default_value: e.string().optional()
1083
1087
  }).optional()
1084
- }), It = z.extend({
1088
+ }), Vt = P.extend({
1085
1089
  type: e.literal("URL"),
1086
1090
  config: e.object({
1087
1091
  placeholder: e.string().optional(),
1088
1092
  default_value: e.string().optional()
1089
1093
  }).optional()
1090
- }), Lt = e.discriminatedUnion("type", [
1091
- ct,
1092
- lt,
1093
- ut,
1094
- dt,
1095
- ft,
1094
+ }), Ht = e.discriminatedUnion("type", [
1096
1095
  pt,
1097
1096
  mt,
1098
- ht
1099
- ]), Rt = e.discriminatedUnion("type", [
1097
+ ht,
1100
1098
  gt,
1101
1099
  _t,
1102
- vt
1103
- ]), zt = e.discriminatedUnion("type", [
1100
+ vt,
1104
1101
  yt,
1105
- bt,
1102
+ bt
1103
+ ]), Ut = e.discriminatedUnion("type", [
1106
1104
  xt,
1107
1105
  St,
1108
- Ft,
1109
- Ct,
1106
+ Ct
1107
+ ]), Wt = e.discriminatedUnion("type", [
1110
1108
  wt,
1111
1109
  Tt,
1112
1110
  Et,
1113
1111
  Dt,
1112
+ Bt,
1114
1113
  Ot,
1115
1114
  kt,
1116
1115
  At,
@@ -1118,12 +1117,17 @@ var tt = e.object({
1118
1117
  Mt,
1119
1118
  Nt,
1120
1119
  Pt,
1121
- It
1122
- ]), B = e.union([
1120
+ Ft,
1121
+ It,
1123
1122
  Lt,
1124
1123
  Rt,
1125
- zt
1126
- ]), Bt = new Set([
1124
+ zt,
1125
+ Vt
1126
+ ]), F = e.union([
1127
+ Ht,
1128
+ Ut,
1129
+ Wt
1130
+ ]), Gt = new Set([
1127
1131
  "BOOLEAN",
1128
1132
  "CARDS",
1129
1133
  "CHOICE",
@@ -1138,7 +1142,7 @@ var tt = e.object({
1138
1142
  "TEL",
1139
1143
  "TEXT",
1140
1144
  "URL"
1141
- ]), Vt = e.object({
1145
+ ]), Kt = e.object({
1142
1146
  id: e.string(),
1143
1147
  type: e.literal("submit"),
1144
1148
  label: e.string(),
@@ -1147,22 +1151,22 @@ var tt = e.object({
1147
1151
  order: e.number().optional(),
1148
1152
  visible: e.boolean().optional().default(!0),
1149
1153
  customizations: e.record(e.string(), e.any()).optional()
1150
- }), V = e.object({
1154
+ }), I = e.object({
1151
1155
  x: e.number(),
1152
1156
  y: e.number()
1153
- }), Ht = e.object({
1157
+ }), qt = e.object({
1154
1158
  id: e.string(),
1155
1159
  type: e.literal("FLOW"),
1156
- coordinates: V,
1160
+ coordinates: I,
1157
1161
  alias: e.string().min(1).max(150).optional(),
1158
1162
  config: e.object({
1159
1163
  flow_id: e.string().max(30),
1160
1164
  next_node: e.string().optional()
1161
1165
  })
1162
- }), Ut = e.object({
1166
+ }), Jt = e.object({
1163
1167
  id: e.string(),
1164
1168
  type: e.literal("ROUTER"),
1165
- coordinates: V,
1169
+ coordinates: I,
1166
1170
  alias: e.string().min(1).max(150),
1167
1171
  config: e.object({
1168
1172
  rules: e.array(e.object({
@@ -1173,20 +1177,20 @@ var tt = e.object({
1173
1177
  })),
1174
1178
  fallback: e.string()
1175
1179
  })
1176
- }), Wt = e.object({
1180
+ }), Yt = e.object({
1177
1181
  id: e.string(),
1178
1182
  type: e.literal("STEP"),
1179
- coordinates: V,
1183
+ coordinates: I,
1180
1184
  alias: e.string().min(1).max(150).optional(),
1181
1185
  config: e.object({
1182
- components: e.array(B),
1186
+ components: e.array(F),
1183
1187
  next_node: e.string().optional()
1184
1188
  })
1185
- }), Gt = e.discriminatedUnion("type", [
1186
- Ht,
1187
- Ut,
1188
- Wt
1189
- ]), Kt = e.object({
1189
+ }), Xt = e.discriminatedUnion("type", [
1190
+ qt,
1191
+ Jt,
1192
+ Yt
1193
+ ]), Zt = e.object({
1190
1194
  name: e.string().openapi({ description: "The name of the form" }),
1191
1195
  messages: e.object({
1192
1196
  errors: e.record(e.string(), e.any()).optional(),
@@ -1197,14 +1201,14 @@ var tt = e.object({
1197
1201
  default: e.string().optional()
1198
1202
  }).optional(),
1199
1203
  translations: e.record(e.string(), e.any()).optional(),
1200
- nodes: e.array(Gt).optional(),
1204
+ nodes: e.array(Xt).optional(),
1201
1205
  start: e.object({
1202
1206
  hidden_fields: e.array(e.object({
1203
1207
  key: e.string(),
1204
1208
  value: e.string()
1205
1209
  })).optional(),
1206
1210
  next_node: e.string().optional(),
1207
- coordinates: V.optional()
1211
+ coordinates: I.optional()
1208
1212
  }).optional(),
1209
1213
  ending: e.object({
1210
1214
  redirection: e.object({
@@ -1212,7 +1216,7 @@ var tt = e.object({
1212
1216
  target: e.string().optional()
1213
1217
  }).optional(),
1214
1218
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
1215
- coordinates: V.optional(),
1219
+ coordinates: I.optional(),
1216
1220
  resume_flow: e.boolean().optional()
1217
1221
  }).optional(),
1218
1222
  style: e.object({ css: e.string().optional() }).optional(),
@@ -1220,7 +1224,7 @@ var tt = e.object({
1220
1224
  sdkSrc: e.string().optional(),
1221
1225
  sdk_src: e.string().optional()
1222
1226
  }).optional()
1223
- }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), qt = t.extend(Kt.shape).extend({ id: e.string() }), Jt = e.object({
1227
+ }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), Qt = t.extend(Zt.shape).extend({ id: e.string() }), $t = e.object({
1224
1228
  id: e.number().optional(),
1225
1229
  text: e.string(),
1226
1230
  type: e.enum([
@@ -1229,34 +1233,34 @@ var tt = e.object({
1229
1233
  "success",
1230
1234
  "warning"
1231
1235
  ])
1232
- }), Yt = e.object({
1236
+ }), en = e.object({
1233
1237
  id: e.string().optional(),
1234
1238
  text: e.string(),
1235
1239
  href: e.string(),
1236
1240
  linkText: e.string().optional()
1237
- }), Xt = e.object({
1241
+ }), tn = e.object({
1238
1242
  name: e.string().optional(),
1239
1243
  action: e.string(),
1240
1244
  method: e.enum(["POST", "GET"]),
1241
1245
  title: e.string().optional(),
1242
1246
  description: e.string().optional(),
1243
- components: e.array(B),
1244
- messages: e.array(Jt).optional(),
1245
- links: e.array(Yt).optional(),
1247
+ components: e.array(F),
1248
+ messages: e.array($t).optional(),
1249
+ links: e.array(en).optional(),
1246
1250
  footer: e.string().optional()
1247
1251
  });
1248
- function Zt(e) {
1252
+ function nn(e) {
1249
1253
  return e.category === "BLOCK";
1250
1254
  }
1251
- function Qt(e) {
1255
+ function rn(e) {
1252
1256
  return e.category === "WIDGET";
1253
1257
  }
1254
- function $t(e) {
1258
+ function an(e) {
1255
1259
  return e.category === "FIELD";
1256
1260
  }
1257
1261
  //#endregion
1258
1262
  //#region src/types/Hook.ts
1259
- var en = e.enum([
1263
+ var L = e.enum([
1260
1264
  "pre-user-registration",
1261
1265
  "post-user-registration",
1262
1266
  "post-user-login",
@@ -1264,28 +1268,48 @@ var en = e.enum([
1264
1268
  "validate-registration-username",
1265
1269
  "pre-user-deletion",
1266
1270
  "post-user-deletion"
1267
- ]), tn = e.enum([
1268
- "pre-user-registration",
1269
- "post-user-registration",
1270
- "post-user-login",
1271
- "validate-registration-username",
1272
- "pre-user-deletion",
1273
- "post-user-deletion"
1274
- ]), nn = e.enum([
1271
+ ]), R = e.enum(["post-user-login"]), z = e.enum([
1275
1272
  "post-user-login",
1276
1273
  "post-user-registration",
1277
1274
  "post-user-update",
1278
1275
  "credentials-exchange"
1279
- ]), rn = e.enum([
1276
+ ]), B = e.enum([
1280
1277
  "post-user-login",
1281
1278
  "credentials-exchange",
1282
1279
  "pre-user-registration",
1283
1280
  "post-user-registration"
1284
- ]), an = e.enum(["post-user-login"]), H = e.enum(["impersonate"]), U = e.enum([
1281
+ ]), V = e.enum(["post-user-login"]), on = [
1282
+ {
1283
+ field: "url",
1284
+ triggers: L.options
1285
+ },
1286
+ {
1287
+ field: "form_id",
1288
+ triggers: R.options
1289
+ },
1290
+ {
1291
+ field: "template_id",
1292
+ triggers: z.options
1293
+ },
1294
+ {
1295
+ field: "code_id",
1296
+ triggers: B.options
1297
+ },
1298
+ {
1299
+ field: "page_id",
1300
+ triggers: V.options
1301
+ }
1302
+ ];
1303
+ function sn(e) {
1304
+ if (!(!e || typeof e != "object")) {
1305
+ for (let t of on) if (typeof Reflect.get(e, t.field) == "string") return t.triggers;
1306
+ }
1307
+ }
1308
+ var H = e.enum(["impersonate"]), U = e.enum([
1285
1309
  "ensure-username",
1286
1310
  "set-preferred-username",
1287
1311
  "account-linking"
1288
- ]), on = {
1312
+ ]), cn = {
1289
1313
  "ensure-username": {
1290
1314
  name: "Ensure Username",
1291
1315
  description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
@@ -1311,81 +1335,81 @@ var en = e.enum([
1311
1335
  priority: e.number().optional(),
1312
1336
  hook_id: e.string().optional(),
1313
1337
  metadata: e.record(e.string(), e.unknown()).optional()
1314
- }, sn = e.object({
1338
+ }, ln = e.object({
1315
1339
  ...W,
1316
- trigger_id: en,
1340
+ trigger_id: L,
1317
1341
  url: e.string()
1318
- }), cn = e.object({
1342
+ }), un = e.object({
1319
1343
  ...W,
1320
- trigger_id: tn,
1344
+ trigger_id: R,
1321
1345
  form_id: e.string()
1322
- }), ln = e.object({
1346
+ }), dn = e.object({
1323
1347
  ...W,
1324
- trigger_id: nn,
1348
+ trigger_id: z,
1325
1349
  template_id: U
1326
- }), un = e.object({
1350
+ }), fn = e.object({
1327
1351
  ...W,
1328
- trigger_id: rn,
1352
+ trigger_id: B,
1329
1353
  code_id: e.string()
1330
- }), dn = e.object({
1354
+ }), pn = e.object({
1331
1355
  ...W,
1332
- trigger_id: an,
1356
+ trigger_id: V,
1333
1357
  page_id: H,
1334
1358
  permission_required: e.string().optional()
1335
- }), fn = e.union([
1336
- sn,
1337
- cn,
1359
+ }), mn = e.union([
1338
1360
  ln,
1339
1361
  un,
1340
- dn
1341
- ]), pn = e.object({
1362
+ dn,
1363
+ fn,
1364
+ pn
1365
+ ]), hn = e.object({
1342
1366
  ...W,
1343
- trigger_id: en
1367
+ trigger_id: L
1344
1368
  }).extend(t.shape).extend({
1345
1369
  hook_id: e.string(),
1346
1370
  url: e.string()
1347
- }), mn = e.object({
1371
+ }), gn = e.object({
1348
1372
  ...W,
1349
- trigger_id: tn
1373
+ trigger_id: R
1350
1374
  }).extend(t.shape).extend({
1351
1375
  hook_id: e.string(),
1352
1376
  form_id: e.string()
1353
- }), hn = e.object({
1377
+ }), _n = e.object({
1354
1378
  ...W,
1355
- trigger_id: nn
1379
+ trigger_id: z
1356
1380
  }).extend(t.shape).extend({
1357
1381
  hook_id: e.string(),
1358
1382
  template_id: U
1359
- }), gn = e.object({
1383
+ }), vn = e.object({
1360
1384
  ...W,
1361
- trigger_id: rn
1385
+ trigger_id: B
1362
1386
  }).extend(t.shape).extend({
1363
1387
  hook_id: e.string(),
1364
1388
  code_id: e.string()
1365
- }), _n = e.object({
1389
+ }), yn = e.object({
1366
1390
  ...W,
1367
- trigger_id: an
1391
+ trigger_id: V
1368
1392
  }).extend(t.shape).extend({
1369
1393
  hook_id: e.string(),
1370
1394
  page_id: H,
1371
1395
  permission_required: e.string().optional()
1372
- }), vn = e.union([
1373
- pn,
1374
- mn,
1396
+ }), bn = e.union([
1375
1397
  hn,
1376
1398
  gn,
1377
- _n
1378
- ]), yn = e.object({
1399
+ _n,
1400
+ vn,
1401
+ yn
1402
+ ]), xn = e.object({
1379
1403
  code: e.string().max(1e5),
1380
1404
  secrets: e.record(e.string(), e.string()).optional()
1381
- }), bn = yn.extend({
1405
+ }), Sn = xn.extend({
1382
1406
  id: e.string(),
1383
1407
  tenant_id: e.string()
1384
- }).extend(t.shape), xn = e.object({ name: e.string().optional() }), Sn = e.object({ email: e.string().optional() }), Cn = e.object({
1408
+ }).extend(t.shape), Cn = e.object({ name: e.string().optional() }), wn = e.object({ email: e.string().optional() }), Tn = e.object({
1385
1409
  id: e.string().optional(),
1386
1410
  organization_id: e.string().max(50),
1387
- inviter: xn,
1388
- invitee: Sn,
1411
+ inviter: Cn,
1412
+ invitee: wn,
1389
1413
  invitation_url: e.string().url(),
1390
1414
  client_id: e.string(),
1391
1415
  connection_id: e.string().optional(),
@@ -1394,13 +1418,13 @@ var en = e.enum([
1394
1418
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
1395
1419
  roles: e.array(e.string()).default([]).optional(),
1396
1420
  send_invitation_email: e.boolean().default(!0).optional()
1397
- }), wn = e.object({
1421
+ }), En = e.object({
1398
1422
  id: e.string(),
1399
1423
  organization_id: e.string().max(50),
1400
1424
  created_at: e.string().datetime(),
1401
1425
  expires_at: e.string().datetime(),
1402
1426
  ticket_id: e.string().optional()
1403
- }).extend(Cn.omit({ id: !0 }).shape), Tn = e.object({
1427
+ }).extend(Tn.omit({ id: !0 }).shape), Dn = e.object({
1404
1428
  alg: e.enum([
1405
1429
  "RS256",
1406
1430
  "RS384",
@@ -1441,7 +1465,7 @@ var en = e.enum([
1441
1465
  path: [r],
1442
1466
  message: `EC JWK is missing required member '${r}'`
1443
1467
  });
1444
- }), En = e.object({ keys: e.array(Tn) }), Dn = e.object({
1468
+ }), On = e.object({ keys: e.array(Dn) }), kn = e.object({
1445
1469
  issuer: e.string(),
1446
1470
  authorization_endpoint: e.string(),
1447
1471
  token_endpoint: e.string(),
@@ -1467,29 +1491,29 @@ var en = e.enum([
1467
1491
  client_id_metadata_document_supported: e.boolean().optional(),
1468
1492
  backchannel_logout_supported: e.boolean().optional(),
1469
1493
  backchannel_logout_session_supported: e.boolean().optional()
1470
- }), On = /* @__PURE__ */ function(e) {
1494
+ }), An = /* @__PURE__ */ function(e) {
1471
1495
  return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
1472
- }({}), kn = e.nativeEnum(On), An = e.object({
1496
+ }({}), jn = e.nativeEnum(An), Mn = e.object({
1473
1497
  strategy: e.string(),
1474
1498
  strategy_type: e.string()
1475
- }), jn = e.object({
1499
+ }), Nn = e.object({
1476
1500
  csrf_token: e.string(),
1477
1501
  auth0Client: e.string().optional(),
1478
- authParams: Ye,
1502
+ authParams: et,
1479
1503
  expires_at: e.string(),
1480
1504
  deleted_at: e.string().optional(),
1481
1505
  ip: e.string().optional(),
1482
1506
  useragent: e.string().optional(),
1483
1507
  session_id: e.string().optional(),
1484
1508
  authorization_url: e.string().optional(),
1485
- state: kn.optional().default("pending"),
1509
+ state: jn.optional().default("pending"),
1486
1510
  state_data: e.string().optional(),
1487
1511
  failure_reason: e.string().optional(),
1488
1512
  user_id: e.string().optional(),
1489
1513
  auth_connection: e.string().optional(),
1490
- auth_strategy: An.optional(),
1514
+ auth_strategy: Mn.optional(),
1491
1515
  authenticated_at: e.string().optional()
1492
- }).openapi({ description: "This represents a login sesion" }), Mn = jn.extend({
1516
+ }).openapi({ description: "This represents a login sesion" }), Pn = Nn.extend({
1493
1517
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
1494
1518
  created_at: e.string(),
1495
1519
  updated_at: e.string()
@@ -1653,7 +1677,7 @@ var en = e.enum([
1653
1677
  WARNING_DURING_LOGIN: "w",
1654
1678
  WARNING_SENDING_NOTIFICATION: "wn",
1655
1679
  WARNING_USER_MANAGEMENT: "wum"
1656
- }, Nn = e.string().refine((e) => Object.values(G).includes(e), { message: "Invalid log type" }), Pn = {
1680
+ }, Fn = e.string().refine((e) => Object.values(G).includes(e), { message: "Invalid log type" }), In = {
1657
1681
  [G.ACLS_SUMMARY]: "ACLs Summary",
1658
1682
  [G.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
1659
1683
  [G.API_LIMIT]: "API Rate Limit Reached",
@@ -1813,22 +1837,22 @@ var en = e.enum([
1813
1837
  [G.WARNING_DURING_LOGIN]: "Warning During Login",
1814
1838
  [G.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
1815
1839
  [G.WARNING_USER_MANAGEMENT]: "Warning User Management"
1816
- }, Fn = (() => {
1840
+ }, Ln = (() => {
1817
1841
  let e = {};
1818
1842
  for (let [t, n] of Object.entries(G)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
1819
1843
  return e;
1820
1844
  })();
1821
- function In(e) {
1822
- return Pn[e] ?? e;
1845
+ function Rn(e) {
1846
+ return In[e] ?? e;
1823
1847
  }
1824
- function Ln(e) {
1825
- return Fn[e] ?? "other";
1848
+ function zn(e) {
1849
+ return Ln[e] ?? "other";
1826
1850
  }
1827
- var Rn = e.object({
1851
+ var Bn = e.object({
1828
1852
  name: e.string(),
1829
1853
  version: e.string(),
1830
1854
  env: e.object({ node: e.string().optional() }).optional()
1831
- }), zn = e.object({
1855
+ }), Vn = e.object({
1832
1856
  country_code: e.string().length(2),
1833
1857
  city_name: e.string(),
1834
1858
  latitude: e.string(),
@@ -1836,7 +1860,7 @@ var Rn = e.object({
1836
1860
  time_zone: e.string(),
1837
1861
  continent_code: e.string()
1838
1862
  }), K = e.object({
1839
- type: Nn,
1863
+ type: Fn,
1840
1864
  date: e.string(),
1841
1865
  description: e.string().optional(),
1842
1866
  ip: e.string().optional(),
@@ -1854,10 +1878,10 @@ var Rn = e.object({
1854
1878
  strategy: e.string().optional(),
1855
1879
  strategy_type: e.string().optional(),
1856
1880
  hostname: e.string().optional(),
1857
- auth0_client: Rn.optional(),
1881
+ auth0_client: Bn.optional(),
1858
1882
  log_id: e.string().optional(),
1859
- location_info: zn.optional()
1860
- }), Bn = K.extend({ log_id: e.string() }), Vn = e.enum([
1883
+ location_info: Vn.optional()
1884
+ }), Hn = K.extend({ log_id: e.string() }), Un = e.enum([
1861
1885
  "http",
1862
1886
  "eventbridge",
1863
1887
  "eventgrid",
@@ -1868,44 +1892,44 @@ var Rn = e.object({
1868
1892
  "active",
1869
1893
  "paused",
1870
1894
  "suspended"
1871
- ]), Hn = e.object({
1895
+ ]), Wn = e.object({
1872
1896
  type: e.string(),
1873
1897
  name: e.string()
1874
- }), Un = e.object({
1898
+ }), Gn = e.object({
1875
1899
  name: e.string(),
1876
- type: Vn,
1900
+ type: Un,
1877
1901
  status: q.optional(),
1878
1902
  sink: e.record(e.string(), e.unknown()),
1879
- filters: e.array(Hn).optional(),
1903
+ filters: e.array(Wn).optional(),
1880
1904
  isPriority: e.boolean().optional()
1881
- }), Wn = Un.extend({
1905
+ }), Kn = Gn.extend({
1882
1906
  id: e.string(),
1883
1907
  status: q,
1884
1908
  created_at: e.string().optional(),
1885
1909
  updated_at: e.string().optional()
1886
- }), Gn = e.enum([
1910
+ }), qn = e.enum([
1887
1911
  "auth0",
1888
1912
  "cognito",
1889
1913
  "okta",
1890
1914
  "oidc"
1891
- ]), Kn = e.object({
1915
+ ]), Jn = e.object({
1892
1916
  domain: e.string(),
1893
1917
  client_id: e.string(),
1894
1918
  client_secret: e.string(),
1895
1919
  audience: e.string().optional(),
1896
1920
  scope: e.string().optional()
1897
- }), qn = e.object({
1921
+ }), Yn = e.object({
1898
1922
  id: e.string().optional(),
1899
1923
  name: e.string(),
1900
- provider: Gn,
1924
+ provider: qn,
1901
1925
  connection: e.string(),
1902
1926
  enabled: e.boolean().default(!0),
1903
- credentials: Kn
1904
- }), Jn = e.object({
1927
+ credentials: Jn
1928
+ }), Xn = e.object({
1905
1929
  id: e.string(),
1906
1930
  created_at: e.string(),
1907
1931
  updated_at: e.string()
1908
- }).extend(qn.shape), Yn = e.object({
1932
+ }).extend(Yn.shape), Zn = e.object({
1909
1933
  enabled: e.boolean().optional(),
1910
1934
  shields: e.array(e.string()).optional(),
1911
1935
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -1914,13 +1938,13 @@ var Rn = e.object({
1914
1938
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
1915
1939
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
1916
1940
  }).optional()
1917
- }), Xn = e.object({
1941
+ }), Qn = e.object({
1918
1942
  enabled: e.boolean().optional(),
1919
1943
  shields: e.array(e.string()).optional(),
1920
1944
  allowlist: e.array(e.string()).optional(),
1921
1945
  mode: e.string().optional(),
1922
1946
  max_attempts: e.number().optional()
1923
- }), Zn = e.object({
1947
+ }), $n = e.object({
1924
1948
  enabled: e.boolean().optional(),
1925
1949
  shields: e.array(e.string()).optional(),
1926
1950
  allowlist: e.array(e.string()).optional(),
@@ -1934,28 +1958,28 @@ var Rn = e.object({
1934
1958
  rate: e.number().optional()
1935
1959
  }).optional()
1936
1960
  }).optional()
1937
- }), Qn = e.object({
1938
- breached_password_detection: Yn.optional(),
1939
- brute_force_protection: Xn.optional(),
1940
- suspicious_ip_throttling: Zn.optional()
1941
- }), $n = e.object({
1961
+ }), er = e.object({
1962
+ breached_password_detection: Zn.optional(),
1963
+ brute_force_protection: Qn.optional(),
1964
+ suspicious_ip_throttling: $n.optional()
1965
+ }), tr = e.object({
1942
1966
  id: e.string().optional(),
1943
1967
  user_id: e.string(),
1944
1968
  password: e.string(),
1945
1969
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
1946
1970
  is_current: e.boolean().default(!0)
1947
- }), er = $n.extend({
1971
+ }), nr = tr.extend({
1948
1972
  id: e.string(),
1949
1973
  created_at: e.string(),
1950
1974
  updated_at: e.string()
1951
- }), tr = e.object({
1975
+ }), rr = e.object({
1952
1976
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
1953
1977
  initial_ip: e.string().describe("First IP address associated with this session"),
1954
1978
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
1955
1979
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
1956
1980
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1957
1981
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1958
- }), nr = e.object({
1982
+ }), ir = e.object({
1959
1983
  id: e.string(),
1960
1984
  revoked_at: e.string().optional(),
1961
1985
  used_at: e.string().optional(),
@@ -1963,14 +1987,14 @@ var Rn = e.object({
1963
1987
  expires_at: e.string().optional(),
1964
1988
  login_session_id: e.string(),
1965
1989
  idle_expires_at: e.string().optional(),
1966
- device: tr.describe("Metadata related to the device used in the session"),
1990
+ device: rr.describe("Metadata related to the device used in the session"),
1967
1991
  clients: e.array(e.string()).describe("List of client details for the session")
1968
- }), rr = e.object({
1992
+ }), ar = e.object({
1969
1993
  created_at: e.string(),
1970
1994
  updated_at: e.string(),
1971
1995
  authenticated_at: e.string(),
1972
1996
  last_interaction_at: e.string()
1973
- }).extend(nr.shape), ir = e.object({
1997
+ }).extend(ir.shape), or = e.object({
1974
1998
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1975
1999
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
1976
2000
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -1986,7 +2010,7 @@ var Rn = e.object({
1986
2010
  revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
1987
2011
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
1988
2012
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
1989
- }), ar = e.object({
2013
+ }), sr = e.object({
1990
2014
  id: e.string().optional(),
1991
2015
  audience: e.string().optional(),
1992
2016
  friendly_name: e.string(),
@@ -2104,7 +2128,7 @@ var Rn = e.object({
2104
2128
  "shared_planetscale"
2105
2129
  ]).optional(),
2106
2130
  d1_database_id: e.string().max(64).optional(),
2107
- attack_protection: Qn.optional(),
2131
+ attack_protection: er.optional(),
2108
2132
  mfa: e.object({
2109
2133
  policy: e.enum(["never", "always"]).default("never").optional(),
2110
2134
  factors: e.object({
@@ -2131,42 +2155,42 @@ var Rn = e.object({
2131
2155
  }).optional(),
2132
2156
  phone_message: e.object({ message: e.string().optional() }).optional()
2133
2157
  }).optional()
2134
- }), or = e.object({
2158
+ }), cr = e.object({
2135
2159
  created_at: e.string().nullable().transform((e) => e ?? ""),
2136
2160
  updated_at: e.string().nullable().transform((e) => e ?? "")
2137
- }).extend(ar.shape).extend({
2161
+ }).extend(sr.shape).extend({
2138
2162
  id: e.string(),
2139
2163
  is_control_plane: e.boolean().optional()
2140
- }), sr = e.enum([
2164
+ }), lr = e.enum([
2141
2165
  "provision",
2142
2166
  "seed",
2143
2167
  "upgrade",
2144
2168
  "backup",
2145
2169
  "deprovision"
2146
- ]), cr = e.enum([
2170
+ ]), ur = e.enum([
2147
2171
  "pending",
2148
2172
  "running",
2149
2173
  "succeeded",
2150
2174
  "failed",
2151
2175
  "cancelled"
2152
- ]), lr = e.enum(["inline", "cloudflare-workflows"]), ur = e.object({
2176
+ ]), dr = e.enum(["inline", "cloudflare-workflows"]), fr = e.object({
2153
2177
  tenant_id: e.string().max(255).nullable().default(null),
2154
2178
  rollout_id: e.string().max(255).nullable().optional(),
2155
- kind: sr,
2156
- engine: lr,
2179
+ kind: lr,
2180
+ engine: dr,
2157
2181
  engine_instance_id: e.string().max(100).nullable().optional(),
2158
2182
  target_worker_version: e.string().max(255).nullable().optional(),
2159
2183
  target_database_version: e.string().max(255).nullable().optional(),
2160
2184
  initiated_by: e.string().max(255).nullable().optional()
2161
- }), dr = ur.extend({
2185
+ }), pr = fr.extend({
2162
2186
  id: e.string(),
2163
- status: cr,
2187
+ status: ur,
2164
2188
  current_step: e.string().max(255).nullable().optional(),
2165
2189
  error: e.string().nullable().optional(),
2166
2190
  created_at: e.string(),
2167
2191
  updated_at: e.string(),
2168
2192
  finished_at: e.string().nullable().optional()
2169
- }), fr = dr.pick({
2193
+ }), mr = pr.pick({
2170
2194
  status: !0,
2171
2195
  current_step: !0,
2172
2196
  engine_instance_id: !0,
@@ -2174,56 +2198,56 @@ var Rn = e.object({
2174
2198
  target_database_version: !0,
2175
2199
  error: !0,
2176
2200
  finished_at: !0
2177
- }).partial(), pr = e.enum([
2201
+ }).partial(), hr = e.enum([
2178
2202
  "started",
2179
2203
  "succeeded",
2180
2204
  "failed",
2181
2205
  "retried",
2182
2206
  "skipped",
2183
2207
  "reconciled"
2184
- ]), mr = e.object({
2208
+ ]), gr = e.object({
2185
2209
  operation_id: e.string().max(255),
2186
2210
  step: e.string().max(255),
2187
- outcome: pr,
2211
+ outcome: hr,
2188
2212
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
2189
2213
  attempt: e.number().int().min(1).default(1)
2190
- }), hr = mr.extend({
2214
+ }), _r = gr.extend({
2191
2215
  id: e.string(),
2192
2216
  created_at: e.string()
2193
- }), gr = e.enum([
2217
+ }), vr = e.enum([
2194
2218
  "upgrade",
2195
2219
  "reseed",
2196
2220
  "backup"
2197
- ]), _r = e.enum([
2221
+ ]), yr = e.enum([
2198
2222
  "pending",
2199
2223
  "canary",
2200
2224
  "rolling",
2201
2225
  "paused",
2202
2226
  "done",
2203
2227
  "failed"
2204
- ]), vr = e.object({
2205
- kind: gr,
2228
+ ]), br = e.object({
2229
+ kind: vr,
2206
2230
  target_worker_version: e.string().max(255).nullable().optional(),
2207
2231
  target_database_version: e.string().max(255).nullable().optional(),
2208
2232
  wave_size: e.number().int().min(1).default(10),
2209
2233
  canary_tenant_ids: e.array(e.string()).nullable().optional(),
2210
2234
  filter: e.record(e.string(), e.unknown()).nullable().optional(),
2211
2235
  initiated_by: e.string().max(255).nullable().optional()
2212
- }), yr = vr.extend({
2236
+ }), xr = br.extend({
2213
2237
  id: e.string(),
2214
- status: _r,
2238
+ status: yr,
2215
2239
  created_at: e.string(),
2216
2240
  updated_at: e.string(),
2217
2241
  finished_at: e.string().nullable().optional()
2218
- }), br = yr.pick({
2242
+ }), Sr = xr.pick({
2219
2243
  status: !0,
2220
2244
  wave_size: !0,
2221
2245
  canary_tenant_ids: !0,
2222
2246
  filter: !0,
2223
2247
  finished_at: !0
2224
- }).partial(), xr = /* @__PURE__ */ function(e) {
2248
+ }).partial(), Cr = /* @__PURE__ */ function(e) {
2225
2249
  return e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e.TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange", e;
2226
- }({}), Sr = e.object({
2250
+ }({}), wr = e.object({
2227
2251
  access_token: e.string(),
2228
2252
  id_token: e.string().optional(),
2229
2253
  scope: e.string().optional(),
@@ -2238,7 +2262,7 @@ e.object({
2238
2262
  });
2239
2263
  //#endregion
2240
2264
  //#region src/types/Theme.ts
2241
- var Cr = e.object({
2265
+ var Tr = e.object({
2242
2266
  button_border_radius: e.number(),
2243
2267
  button_border_weight: e.number(),
2244
2268
  buttons_style: e.enum([
@@ -2256,7 +2280,7 @@ var Cr = e.object({
2256
2280
  show_widget_shadow: e.boolean(),
2257
2281
  widget_border_weight: e.number(),
2258
2282
  widget_corner_radius: e.number()
2259
- }), wr = e.object({
2283
+ }), Er = e.object({
2260
2284
  base_focus_color: e.string(),
2261
2285
  base_hover_color: e.string(),
2262
2286
  body_text: e.string(),
@@ -2283,7 +2307,7 @@ var Cr = e.object({
2283
2307
  }), J = e.object({
2284
2308
  bold: e.boolean(),
2285
2309
  size: e.number()
2286
- }), Tr = e.object({
2310
+ }), Dr = e.object({
2287
2311
  body_text: J,
2288
2312
  buttons_text: J,
2289
2313
  font_url: e.string(),
@@ -2293,7 +2317,7 @@ var Cr = e.object({
2293
2317
  reference_text_size: e.number(),
2294
2318
  subtitle: J,
2295
2319
  title: J
2296
- }), Er = e.object({
2320
+ }), Or = e.object({
2297
2321
  background_color: e.string(),
2298
2322
  background_image_url: e.string(),
2299
2323
  page_layout: e.enum([
@@ -2306,7 +2330,7 @@ var Cr = e.object({
2306
2330
  "chip",
2307
2331
  "none"
2308
2332
  ]).optional()
2309
- }), Dr = e.object({
2333
+ }), kr = e.object({
2310
2334
  header_text_alignment: e.enum([
2311
2335
  "center",
2312
2336
  "left",
@@ -2321,72 +2345,72 @@ var Cr = e.object({
2321
2345
  ]),
2322
2346
  logo_url: e.string(),
2323
2347
  social_buttons_layout: e.enum(["bottom", "top"])
2324
- }), Or = e.object({
2325
- borders: Cr,
2326
- colors: wr,
2348
+ }), Ar = e.object({
2349
+ borders: Tr,
2350
+ colors: Er,
2327
2351
  displayName: e.string(),
2328
- fonts: Tr,
2329
- page_background: Er,
2330
- widget: Dr
2331
- }), kr = Or.extend({ themeId: e.string() }), Ar = e.object({
2352
+ fonts: Dr,
2353
+ page_background: Or,
2354
+ widget: kr
2355
+ }), jr = Ar.extend({ themeId: e.string() }), Mr = e.object({
2332
2356
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
2333
2357
  identifier_first: e.boolean().default(!0),
2334
2358
  password_first: e.boolean().default(!1),
2335
2359
  show_last_used_connection: e.boolean().default(!1),
2336
2360
  webauthn_platform_first_factor: e.boolean()
2337
- }), jr = e.object({
2361
+ }), Nr = e.object({
2338
2362
  hosts: e.array(e.string()).optional(),
2339
2363
  methods: e.array(e.string()).optional(),
2340
2364
  path: e.string().default("/*"),
2341
2365
  headers: e.record(e.string(), e.string()).optional(),
2342
2366
  query: e.record(e.string(), e.string()).optional()
2343
- }), Mr = e.object({
2367
+ }), Pr = e.object({
2344
2368
  type: e.string(),
2345
2369
  options: e.record(e.string(), e.unknown()).default({})
2346
2370
  }), Y = e.object({
2347
2371
  id: e.string().optional(),
2348
2372
  custom_domain_id: e.string(),
2349
2373
  priority: e.number().int().default(100),
2350
- match: jr,
2351
- handlers: e.array(Mr).min(1)
2352
- }), Nr = Y.extend({
2374
+ match: Nr,
2375
+ handlers: e.array(Pr).min(1)
2376
+ }), Fr = Y.extend({
2353
2377
  id: e.string(),
2354
2378
  tenant_id: e.string(),
2355
2379
  created_at: e.string(),
2356
2380
  updated_at: e.string()
2357
- }), Pr = Y.partial().omit({
2381
+ }), Ir = Y.partial().omit({
2358
2382
  id: !0,
2359
2383
  custom_domain_id: !0
2360
- }), Fr = e.object({
2384
+ }), Lr = e.object({
2361
2385
  scim: e.string(),
2362
2386
  auth0: e.string()
2363
- }), Ir = e.object({
2387
+ }), Rr = e.object({
2364
2388
  connection_id: e.string(),
2365
2389
  user_id_attribute: e.string().default("externalId"),
2366
- mapping: e.array(Fr).default([])
2367
- }), Lr = e.object({
2390
+ mapping: e.array(Lr).default([])
2391
+ }), zr = e.object({
2368
2392
  created_at: e.string(),
2369
2393
  updated_at: e.string()
2370
- }).extend(Ir.shape), Rr = e.object({
2394
+ }).extend(Rr.shape), Br = e.object({
2371
2395
  token_id: e.string(),
2372
2396
  connection_id: e.string(),
2373
2397
  token_hash: e.string(),
2374
2398
  scopes: e.array(e.string()).default([]),
2375
2399
  valid_until: e.string().optional()
2376
- }), zr = e.object({
2400
+ }), Vr = e.object({
2377
2401
  created_at: e.string(),
2378
2402
  last_used_at: e.string().optional()
2379
- }).extend(Rr.shape), Br = e.object({
2403
+ }).extend(Br.shape), Hr = e.object({
2380
2404
  connection_id: e.string(),
2381
2405
  external_id: e.string(),
2382
2406
  user_id: e.string()
2383
- }), Vr = e.object({ created_at: e.string() }).extend(Br.shape), Hr = e.object({
2407
+ }), Ur = e.object({ created_at: e.string() }).extend(Hr.shape), Wr = e.object({
2384
2408
  name: e.string(),
2385
2409
  enabled: e.boolean().optional().default(!0),
2386
2410
  default_from_address: e.string().optional(),
2387
2411
  credentials: e.record(e.string(), e.unknown()),
2388
2412
  settings: e.object({}).optional()
2389
- }), Ur = e.enum([
2413
+ }), Gr = e.enum([
2390
2414
  "verify_email",
2391
2415
  "verify_email_by_code",
2392
2416
  "reset_email",
@@ -2399,8 +2423,8 @@ var Cr = e.object({
2399
2423
  "change_password",
2400
2424
  "password_reset",
2401
2425
  "user_invitation"
2402
- ]), Wr = e.object({
2403
- template: Ur,
2426
+ ]), Kr = e.object({
2427
+ template: Gr,
2404
2428
  body: e.string(),
2405
2429
  from: e.string(),
2406
2430
  subject: e.string(),
@@ -2409,7 +2433,7 @@ var Cr = e.object({
2409
2433
  urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
2410
2434
  includeEmailInRedirect: e.boolean().default(!1),
2411
2435
  enabled: e.boolean().default(!0)
2412
- }), Gr = e.object({
2436
+ }), qr = e.object({
2413
2437
  id: e.string(),
2414
2438
  login_id: e.string(),
2415
2439
  user_id: e.string(),
@@ -2417,7 +2441,7 @@ var Cr = e.object({
2417
2441
  expires_at: e.string().optional(),
2418
2442
  idle_expires_at: e.string().optional(),
2419
2443
  last_exchanged_at: e.string().optional(),
2420
- device: tr,
2444
+ device: rr,
2421
2445
  resource_servers: e.array(e.object({
2422
2446
  audience: e.string(),
2423
2447
  scopes: e.string()
@@ -2428,19 +2452,19 @@ var Cr = e.object({
2428
2452
  family_id: e.string().optional(),
2429
2453
  rotated_to: e.string().optional(),
2430
2454
  rotated_at: e.string().optional()
2431
- }), Kr = Gr.extend({
2455
+ }), Jr = qr.extend({
2432
2456
  created_at: e.string(),
2433
2457
  revoked_at: e.string().optional()
2434
- }), qr = e.object({
2458
+ }), Yr = e.object({
2435
2459
  to: e.string(),
2436
2460
  message: e.string()
2437
- }), Jr = e.object({
2461
+ }), Xr = e.object({
2438
2462
  name: e.string(),
2439
2463
  options: e.object({})
2440
- }), Yr = e.object({
2464
+ }), Zr = e.object({
2441
2465
  value: e.string(),
2442
2466
  description: e.string().optional()
2443
- }), Xr = e.object({
2467
+ }), Qr = e.object({
2444
2468
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
2445
2469
  enforce_policies: e.boolean().optional(),
2446
2470
  allow_skipping_userinfo: e.boolean().optional(),
@@ -2448,11 +2472,11 @@ var Cr = e.object({
2448
2472
  persist_client_authorization: e.boolean().optional(),
2449
2473
  enable_introspection_endpoint: e.boolean().optional(),
2450
2474
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
2451
- }), Zr = e.object({
2475
+ }), $r = e.object({
2452
2476
  id: e.string().optional(),
2453
2477
  name: e.string(),
2454
2478
  identifier: e.string(),
2455
- scopes: e.array(Yr).optional(),
2479
+ scopes: e.array(Zr).optional(),
2456
2480
  signing_alg: e.string().optional(),
2457
2481
  signing_secret: e.string().optional(),
2458
2482
  token_lifetime: e.number().default(86400),
@@ -2460,37 +2484,37 @@ var Cr = e.object({
2460
2484
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
2461
2485
  allow_offline_access: e.boolean().optional(),
2462
2486
  verificationKey: e.string().optional(),
2463
- options: Xr.optional(),
2487
+ options: Qr.optional(),
2464
2488
  is_system: e.boolean().optional(),
2465
2489
  metadata: e.record(e.string(), e.any()).optional()
2466
- }), Qr = Zr.extend({
2490
+ }), ei = $r.extend({
2467
2491
  created_at: e.string().optional(),
2468
2492
  updated_at: e.string().optional()
2469
- }), $r = e.array(Qr), ei = e.object({
2493
+ }), ti = e.array(ei), ni = e.object({
2470
2494
  role_id: e.string(),
2471
2495
  resource_server_identifier: e.string(),
2472
2496
  permission_name: e.string()
2473
- }), ti = ei.extend({ created_at: e.string() }), ni = e.array(ti), ri = e.object({
2497
+ }), ri = ni.extend({ created_at: e.string() }), ii = e.array(ri), ai = e.object({
2474
2498
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
2475
2499
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
2476
2500
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
2477
2501
  scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
2478
- }), ii = ri.extend({ id: e.string() }), ai = e.object({
2502
+ }), oi = ai.extend({ id: e.string() }), si = e.object({
2479
2503
  user_id: e.string(),
2480
2504
  last_login: e.string().optional(),
2481
2505
  last_ip: e.string().optional(),
2482
2506
  login_count: e.number().default(0),
2483
2507
  failed_logins: e.array(e.string()).optional(),
2484
2508
  last_password_reset: e.string().optional()
2485
- }), oi = e.object({
2509
+ }), ci = e.object({
2486
2510
  user_id: e.string(),
2487
2511
  resource_server_identifier: e.string(),
2488
2512
  permission_name: e.string(),
2489
2513
  organization_id: e.string().optional()
2490
- }), si = oi.extend({
2514
+ }), li = ci.extend({
2491
2515
  tenant_id: e.string(),
2492
2516
  created_at: e.string().optional()
2493
- }), ci = e.array(si), li = e.object({
2517
+ }), ui = e.array(li), di = e.object({
2494
2518
  user_id: e.string(),
2495
2519
  resource_server_identifier: e.string(),
2496
2520
  resource_server_name: e.string(),
@@ -2498,65 +2522,65 @@ var Cr = e.object({
2498
2522
  description: e.string().nullable().optional(),
2499
2523
  created_at: e.string().optional(),
2500
2524
  organization_id: e.string().optional()
2501
- }), ui = e.array(li), di = e.object({
2525
+ }), fi = e.array(di), pi = e.object({
2502
2526
  user_id: e.string(),
2503
2527
  role_id: e.string(),
2504
2528
  organization_id: e.string().optional()
2505
- }), fi = di.extend({
2529
+ }), mi = pi.extend({
2506
2530
  tenant_id: e.string(),
2507
2531
  created_at: e.string().optional()
2508
- }), pi = e.array(fi), mi = e.object({
2532
+ }), hi = e.array(mi), gi = e.object({
2509
2533
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
2510
2534
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
2511
2535
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
2512
2536
  is_system: e.boolean().optional(),
2513
2537
  metadata: e.record(e.string(), e.any()).optional().openapi({ description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios." })
2514
- }), hi = mi.extend({
2538
+ }), _i = gi.extend({
2515
2539
  id: e.string().openapi({ description: "The unique identifier of the role" }),
2516
2540
  created_at: e.string().optional(),
2517
2541
  updated_at: e.string().optional()
2518
- }), gi = e.array(hi), _i = e.object({
2542
+ }), vi = e.array(_i), yi = e.object({
2519
2543
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
2520
2544
  colors: e.object({
2521
2545
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
2522
2546
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
2523
2547
  }).optional()
2524
- }).optional(), vi = e.object({
2548
+ }).optional(), bi = e.object({
2525
2549
  connection_id: e.string().openapi({ description: "ID of the connection" }),
2526
2550
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
2527
2551
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
2528
2552
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
2529
- }), yi = e.object({ client_credentials: e.object({
2553
+ }), xi = e.object({ client_credentials: e.object({
2530
2554
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
2531
2555
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
2532
2556
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
2533
- }).optional() }).optional(), bi = e.object({
2557
+ }).optional() }).optional(), Si = e.object({
2534
2558
  id: e.string().optional(),
2535
2559
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
2536
2560
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
2537
- branding: _i,
2561
+ branding: yi,
2538
2562
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
2539
- enabled_connections: e.array(vi).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
2540
- token_quota: yi
2541
- }), xi = bi.extend(t.shape).extend({
2563
+ enabled_connections: e.array(bi).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
2564
+ token_quota: xi
2565
+ }), Ci = Si.extend(t.shape).extend({
2542
2566
  id: e.string(),
2543
2567
  name: e.string().min(1).openapi({ description: "The name of the organization" })
2544
- }), Si = e.object({
2568
+ }), wi = e.object({
2545
2569
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
2546
2570
  assign_membership_on_login: e.boolean().optional().default(!1),
2547
2571
  show_as_button: e.boolean().optional().default(!0),
2548
2572
  is_signup_enabled: e.boolean().optional().default(!0)
2549
- }), Ci = Si.extend({
2573
+ }), Ti = wi.extend({
2550
2574
  connection: e.object({
2551
2575
  name: e.string().optional(),
2552
2576
  strategy: e.string().optional()
2553
2577
  }).optional(),
2554
2578
  created_at: e.string().optional(),
2555
2579
  updated_at: e.string().optional()
2556
- }), wi = e.array(Ci), Ti = e.object({
2580
+ }), Ei = e.array(Ti), Di = e.object({
2557
2581
  user_id: e.string().openapi({ description: "ID of the user" }),
2558
2582
  organization_id: e.string().openapi({ description: "ID of the organization" })
2559
- }), Ei = Ti.extend(t.shape).extend({ id: e.string() }), Di = e.object({
2583
+ }), Oi = Di.extend(t.shape).extend({ id: e.string() }), ki = e.object({
2560
2584
  idle_session_lifetime: e.number().default(72),
2561
2585
  session_lifetime: e.number().default(168),
2562
2586
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -2635,7 +2659,7 @@ var Cr = e.object({
2635
2659
  }).optional(),
2636
2660
  phone_message: e.object({ message: e.string().optional() }).optional()
2637
2661
  }).optional()
2638
- }), Oi = e.object({
2662
+ }), Ai = e.object({
2639
2663
  date: e.string().openapi({
2640
2664
  description: "Date these events occurred in ISO 8601 format",
2641
2665
  example: "2025-12-19"
@@ -2660,10 +2684,10 @@ var Cr = e.object({
2660
2684
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2661
2685
  example: "2025-12-19T00:00:00.000Z"
2662
2686
  })
2663
- }), ki = e.number().openapi({
2687
+ }), ji = e.number().openapi({
2664
2688
  description: "Number of active users in the last 30 days",
2665
2689
  example: 1234
2666
- }), Ai = e.enum([
2690
+ }), Mi = e.enum([
2667
2691
  "active-users",
2668
2692
  "logins",
2669
2693
  "signups",
@@ -2675,55 +2699,64 @@ var Cr = e.object({
2675
2699
  "mfa",
2676
2700
  "email-verifications",
2677
2701
  "codes-sent"
2678
- ]), ji = e.enum([
2702
+ ]), Ni = e.enum([
2679
2703
  "hour",
2680
2704
  "day",
2681
2705
  "week",
2682
2706
  "month"
2683
- ]), Mi = e.enum([
2707
+ ]), Pi = e.enum([
2684
2708
  "time",
2685
2709
  "connection",
2686
2710
  "client_id",
2687
2711
  "user_type",
2688
2712
  "event"
2689
- ]), Ni = e.enum([
2713
+ ]), Fi = e.enum([
2690
2714
  "password",
2691
2715
  "social",
2692
2716
  "passwordless",
2693
2717
  "enterprise"
2694
- ]), Pi = e.object({
2718
+ ]), Ii = e.object({
2695
2719
  cohort: e.string(),
2696
2720
  sessions: e.number(),
2697
2721
  active: e.array(e.number())
2698
- }), Fi = e.object({
2722
+ }), Li = e.object({
2699
2723
  interval: e.literal("week"),
2700
2724
  from: e.string(),
2701
2725
  to: e.string(),
2702
- cohorts: e.array(Pi)
2703
- }), Ii = e.object({
2726
+ cohorts: e.array(Ii)
2727
+ }), Ri = e.object({
2728
+ cohort: e.string(),
2729
+ tokens: e.number(),
2730
+ active: e.array(e.number())
2731
+ }), zi = e.object({
2732
+ interval: e.literal("week"),
2733
+ from: e.string(),
2734
+ to: e.string(),
2735
+ cohorts: e.array(Ri)
2736
+ }), Bi = e.object({
2704
2737
  name: e.string(),
2705
2738
  type: e.string()
2706
- }), Li = e.object({
2739
+ }), Vi = e.object({
2707
2740
  elapsed: e.number(),
2708
2741
  rows_read: e.number().optional(),
2709
2742
  bytes_read: e.number().optional()
2710
- }), Ri = e.object({
2711
- meta: e.array(Ii),
2743
+ }), Hi = e.object({
2744
+ meta: e.array(Bi),
2712
2745
  data: e.array(e.record(e.string(), e.any())),
2713
2746
  rows: e.number(),
2714
2747
  rows_before_limit_at_least: e.number().optional(),
2715
- statistics: Li.optional()
2716
- }), zi = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Bi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2748
+ statistics: Vi.optional()
2749
+ }), Ui = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Wi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2717
2750
  type: "object",
2718
2751
  additionalProperties: {
2719
2752
  type: "object",
2720
2753
  additionalProperties: { type: "string" }
2721
2754
  }
2722
- }), Vi = e.object({
2723
- prompt: zi,
2755
+ }), Gi = e.object({
2756
+ prompt: Ui,
2724
2757
  language: e.string(),
2725
- custom_text: Bi
2726
- }), Hi = {
2758
+ custom_text: Wi
2759
+ }), Ki = {
2727
2760
  EMAIL: "email",
2728
2761
  SMS: "sms",
2729
2762
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2739,17 +2772,17 @@ var Cr = e.object({
2739
2772
  WAAD: "waad",
2740
2773
  ADFS: "adfs",
2741
2774
  OKTA: "okta"
2742
- }, Ui = {
2775
+ }, qi = {
2743
2776
  DATABASE: "database",
2744
2777
  SOCIAL: "social",
2745
2778
  PASSWORDLESS: "passwordless"
2746
- }, Wi = "auth0";
2747
- function Gi(e) {
2748
- return e === "auth0" || e === Hi.USERNAME_PASSWORD || e === "auth2";
2779
+ }, Ji = "auth0";
2780
+ function Yi(e) {
2781
+ return e === "auth0" || e === Ki.USERNAME_PASSWORD || e === "auth2";
2749
2782
  }
2750
2783
  //#endregion
2751
2784
  //#region src/types/AuthenticationMethod.ts
2752
- var Ki = e.enum([
2785
+ var Xi = e.enum([
2753
2786
  "phone",
2754
2787
  "totp",
2755
2788
  "email",
@@ -2757,9 +2790,9 @@ var Ki = e.enum([
2757
2790
  "webauthn-roaming",
2758
2791
  "webauthn-platform",
2759
2792
  "passkey"
2760
- ]), qi = e.object({
2793
+ ]), Zi = e.object({
2761
2794
  user_id: e.string(),
2762
- type: Ki,
2795
+ type: Xi,
2763
2796
  phone_number: e.string().optional(),
2764
2797
  totp_secret: e.string().optional(),
2765
2798
  credential_id: e.string().optional(),
@@ -2770,7 +2803,7 @@ var Ki = e.enum([
2770
2803
  friendly_name: e.string().optional(),
2771
2804
  confirmed: e.boolean().default(!1)
2772
2805
  });
2773
- function Ji(t, n) {
2806
+ function Qi(t, n) {
2774
2807
  t.type === "phone" && !t.phone_number && n.addIssue({
2775
2808
  code: e.ZodIssueCode.custom,
2776
2809
  message: "phone_number is required when type is 'phone'",
@@ -2793,15 +2826,15 @@ function Ji(t, n) {
2793
2826
  path: ["public_key"]
2794
2827
  }));
2795
2828
  }
2796
- var Yi = qi.superRefine(Ji), Xi = qi.extend({
2829
+ var $i = Zi.superRefine(Qi), ea = Zi.extend({
2797
2830
  id: e.string(),
2798
2831
  created_at: e.string(),
2799
2832
  updated_at: e.string()
2800
- }).superRefine(Ji), Zi = e.object({
2833
+ }).superRefine(Qi), ta = e.object({
2801
2834
  id: e.string().optional(),
2802
2835
  created_at: e.string().datetime({ offset: !0 }).optional(),
2803
2836
  updated_at: e.string().datetime({ offset: !0 }).optional()
2804
- }), Qi = {
2837
+ }), na = {
2805
2838
  "post-user-login": {
2806
2839
  accessToken: ["setCustomClaim"],
2807
2840
  idToken: ["setCustomClaim"],
@@ -2823,7 +2856,7 @@ var Yi = qi.superRefine(Ji), Xi = qi.extend({
2823
2856
  };
2824
2857
  //#endregion
2825
2858
  //#region src/utils/user-id.ts
2826
- function $i(e) {
2859
+ function ra(e) {
2827
2860
  let [t, n] = e.split("|");
2828
2861
  if (!t || !n) throw Error(`Invalid user_id: ${e}`);
2829
2862
  return {
@@ -2833,7 +2866,7 @@ function $i(e) {
2833
2866
  }
2834
2867
  //#endregion
2835
2868
  //#region src/utils/passthrough.ts
2836
- function ea(e) {
2869
+ function ia(e) {
2837
2870
  let { primary: t, secondaries: n, syncMethods: r = [
2838
2871
  "create",
2839
2872
  "rawCreate",
@@ -2867,12 +2900,12 @@ function ea(e) {
2867
2900
  } : i.bind(e) : i;
2868
2901
  } });
2869
2902
  }
2870
- function ta(e) {
2903
+ function aa(e) {
2871
2904
  return e;
2872
2905
  }
2873
2906
  //#endregion
2874
2907
  //#region src/utils/connection-attributes.ts
2875
- function na(e) {
2908
+ function oa(e) {
2876
2909
  let t = e?.options;
2877
2910
  if (!t) return {
2878
2911
  usernameIdentifierActive: !1,
@@ -2895,35 +2928,35 @@ function na(e) {
2895
2928
  }
2896
2929
  //#endregion
2897
2930
  //#region src/utils/guards.ts
2898
- function ra(e) {
2931
+ function sa(e) {
2899
2932
  return typeof e == "object" && !!e && !Array.isArray(e);
2900
2933
  }
2901
2934
  //#endregion
2902
2935
  //#region src/utils/base64url.ts
2903
- function ia(e) {
2936
+ function ca(e) {
2904
2937
  let t = "";
2905
2938
  for (let n of e) t += String.fromCharCode(n);
2906
2939
  return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2907
2940
  }
2908
- function aa(e) {
2941
+ function la(e) {
2909
2942
  let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
2910
2943
  for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
2911
2944
  return r;
2912
2945
  }
2913
- function oa(e) {
2914
- return ia(new TextEncoder().encode(e));
2946
+ function ua(e) {
2947
+ return ca(new TextEncoder().encode(e));
2915
2948
  }
2916
- function sa(e) {
2917
- return new TextDecoder().decode(aa(e));
2949
+ function da(e) {
2950
+ return new TextDecoder().decode(la(e));
2918
2951
  }
2919
2952
  //#endregion
2920
2953
  //#region src/utils/base64.ts
2921
- function ca(e) {
2954
+ function fa(e) {
2922
2955
  let t = "";
2923
2956
  for (let n of e) t += String.fromCharCode(n);
2924
2957
  return btoa(t);
2925
2958
  }
2926
- function la(e) {
2959
+ function pa(e) {
2927
2960
  let t = atob(e), n = new Uint8Array(t.length);
2928
2961
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
2929
2962
  return n;
@@ -2931,12 +2964,12 @@ function la(e) {
2931
2964
  //#endregion
2932
2965
  //#region src/utils/base32.ts
2933
2966
  var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
2934
- function ua(e) {
2967
+ function ma(e) {
2935
2968
  let t = "", n = 0, r = 0;
2936
2969
  for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
2937
2970
  return r > 0 && (t += X[n << 5 - r & 31]), t;
2938
2971
  }
2939
- function da(e) {
2972
+ function ha(e) {
2940
2973
  let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
2941
2974
  if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
2942
2975
  let r = [], i = 0, a = 0;
@@ -2950,19 +2983,19 @@ function da(e) {
2950
2983
  }
2951
2984
  //#endregion
2952
2985
  //#region src/utils/hex.ts
2953
- function fa(e) {
2986
+ function ga(e) {
2954
2987
  let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
2955
2988
  for (let e of t) n += e.toString(16).padStart(2, "0");
2956
2989
  return n;
2957
2990
  }
2958
2991
  //#endregion
2959
2992
  //#region src/utils/cursor.ts
2960
- function pa(e) {
2961
- return oa(JSON.stringify(e));
2993
+ function _a(e) {
2994
+ return ua(JSON.stringify(e));
2962
2995
  }
2963
- function ma(e) {
2996
+ function va(e) {
2964
2997
  try {
2965
- let t = JSON.parse(sa(e));
2998
+ let t = JSON.parse(da(e));
2966
2999
  return t && typeof t == "object" && typeof t.i == "string" ? t : null;
2967
3000
  } catch {
2968
3001
  return null;
@@ -2970,7 +3003,7 @@ function ma(e) {
2970
3003
  }
2971
3004
  //#endregion
2972
3005
  //#region src/utils/lucene.ts
2973
- function ha(e, t) {
3006
+ function ya(e, t) {
2974
3007
  let n = new Set(t), r = (e) => {
2975
3008
  let t = [], r = "", i = !1;
2976
3009
  for (let n = 0; n < e.length; n++) {
@@ -2989,22 +3022,22 @@ function ha(e, t) {
2989
3022
  //#endregion
2990
3023
  //#region src/utils/session-retention.ts
2991
3024
  var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
2992
- function ga(e) {
3025
+ function ba(e) {
2993
3026
  return Math.floor((e + Q) / Z);
2994
3027
  }
2995
3028
  function $(e) {
2996
3029
  return e * Z - Q;
2997
3030
  }
2998
- function _a(e, t = Date.now()) {
2999
- let n = ga(t), r = n - e + 1;
3031
+ function xa(e, t = Date.now()) {
3032
+ let n = ba(t), r = n - e + 1;
3000
3033
  return {
3001
3034
  currentWeek: n,
3002
3035
  firstWeek: r,
3003
3036
  sinceMs: $(r)
3004
3037
  };
3005
3038
  }
3006
- function va(e, t, n = Date.now()) {
3007
- let { currentWeek: r, firstWeek: i, sinceMs: a } = _a(t, n), o = /* @__PURE__ */ new Map();
3039
+ function Sa(e, t, n = Date.now()) {
3040
+ let { currentWeek: r, firstWeek: i, sinceMs: a } = xa(t, n), o = /* @__PURE__ */ new Map();
3008
3041
  for (let t of e) {
3009
3042
  if (t.created_week < i || t.created_week > r) continue;
3010
3043
  let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
@@ -3027,5 +3060,18 @@ function va(e, t, n = Date.now()) {
3027
3060
  cohorts: s
3028
3061
  };
3029
3062
  }
3063
+ function Ca(e, t, n = Date.now()) {
3064
+ let r = Sa(e, t, n);
3065
+ return {
3066
+ interval: r.interval,
3067
+ from: r.from,
3068
+ to: r.to,
3069
+ cohorts: r.cohorts.map(({ cohort: e, sessions: t, active: n }) => ({
3070
+ cohort: e,
3071
+ tokens: t,
3072
+ active: n
3073
+ }))
3074
+ };
3075
+ }
3030
3076
  //#endregion
3031
- export { ve as Auth0ActionEnum, Rn as Auth0Client, N as AuthorizationResponseMode, M as AuthorizationResponseType, Ke as CodeChallengeMethod, b as ComponentCategory, y as ComponentType, Wi as DATABASE_CONNECTION_STRATEGY, ye as EmailActionEnum, Bt as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, xr as GrantType, zn as LocationInfo, G as LogTypes, On as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Be as NodeType, Ce as RedirectTargetEnum, Hi as Strategy, Ui as StrategyType, Qi as TRIGGER_API_SHAPES, Z as WEEK_MS, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, ee as actionExecutionTriggerIdSchema, a as actionInsertSchema, A as actionNodeSchema, s as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, ki as activeUsersResponseSchema, le as actorSchema, Me as addressSchema, Ii as analyticsColumnMetaSchema, Mi as analyticsGroupBySchema, ji as analyticsIntervalSchema, Ri as analyticsQueryResponseSchema, Ai as analyticsResourceSchema, Li as analyticsStatisticsSchema, Ni as analyticsUserTypeSchema, Qn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Ge as auth0FlowInsertSchema, We as auth0FlowSchema, Oe as auth0QuerySchema, xe as auth0UpdateUserActionSchema, Ne as auth0UserResponseSchema, Ye as authParamsSchema, Yi as authenticationMethodInsertSchema, Xi as authenticationMethodSchema, Ki as authenticationMethodTypeSchema, u as baseUserSchema, Lt as blockComponentSchema, Cr as bordersSchema, Xe as brandingSchema, Yn as breachedPasswordDetectionSchema, Xn as bruteForceProtectionSchema, va as buildSessionRetention, C as buttonComponentSchema, Je as claimsRequestSchema, m as clientGrantInsertSchema, Re as clientGrantListSchema, h as clientGrantSchema, p as clientInsertSchema, _ as clientRegistrationTokenInsertSchema, ze as clientRegistrationTokenSchema, g as clientRegistrationTokenTypeSchema, Le as clientSchema, Qe as codeInsertSchema, $e as codeSchema, Ze as codeTypeSchema, wr as colorsSchema, Jt as componentMessageSchema, D as componentSchema, tt as connectionInsertSchema, et as connectionOptionsSchema, nt as connectionSchema, v as coordinatesSchema, ea as createPassthroughAdapter, ta as createWriteOnlyAdapter, st as customDomainCertificateUploadSchema, F as customDomainInsertSchema, it as customDomainSchema, at as customDomainUpdateSchema, ot as customDomainWithTenantIdSchema, Vi as customTextEntrySchema, Bi as customTextSchema, Oi as dailyStatsSchema, da as decodeBase32, la as decodeBase64, aa as decodeBase64Url, sa as decodeBase64UrlString, ma as decodeCursor, Hr as emailProviderSchema, Ur as emailTemplateNameSchema, Wr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, ua as encodeBase32, ca as encodeBase64, ia as encodeBase64Url, oa as encodeBase64UrlString, pa as encodeCursor, fa as encodeHex, Ue as endingSchema, zt as fieldComponentSchema, Te as flowActionStepSchema, Ee as flowInsertSchema, De as flowSchema, T as flowsFieldComponentSchema, k as flowsFlowNodeSchema, O as flowsStepNodeSchema, J as fontDetailsSchema, Tr as fontsSchema, Vt as formControlSchema, Kt as formInsertSchema, B as formNodeComponentDefinition, Gt as formNodeSchema, qt as formSchema, E as genericComponentSchema, j as genericNodeSchema, na as getConnectionIdentifierConfig, Ln as getLogTypeCategory, In as getLogTypeDescription, ri as grantInsertSchema, ii as grantSchema, Mr as handlerConfigSchema, yn as hookCodeInsertSchema, bn as hookCodeSchema, fn as hookInsertSchema, H as hookPageId, vn as hookSchema, U as hookTemplateId, on as hookTemplates, je as identitySchema, Zi as importMetadataSchema, Cn as inviteInsertSchema, wn as inviteSchema, Sn as inviteeSchema, xn as inviterSchema, Zt as isBlockComponent, Gi as isDatabaseConnectionStrategy, $t as isFieldComponent, ra as isPlainObject, Qt as isWidgetComponent, En as jwksKeySchema, Tn as jwksSchema, w as legalComponentSchema, pe as locationInfoSchema, K as logInsertSchema, Bn as logSchema, Hn as logStreamFilterSchema, Un as logStreamInsertSchema, Wn as logStreamSchema, q as logStreamStatusSchema, Vn as logStreamTypeSchema, Fn as logTypeCategories, Pn as logTypeDescriptions, An as loginSessionAuthStrategySchema, jn as loginSessionInsertSchema, Mn as loginSessionSchema, kn as loginSessionStateSchema, jr as matchSchema, Gn as migrationProviderTypeSchema, Kn as migrationSourceCredentialsSchema, qn as migrationSourceInsertSchema, Jn as migrationSourceSchema, Ve as nodeSchema, Dn as openIDConfigurationSchema, _i as organizationBrandingSchema, Si as organizationConnectionInsertSchema, wi as organizationConnectionListSchema, Ci as organizationConnectionSchema, vi as organizationEnabledConnectionSchema, bi as organizationInsertSchema, xi as organizationSchema, yi as organizationTokenQuotaSchema, Er as pageBackgroundSchema, $i as parseUserId, $n as passwordInsertSchema, er as passwordSchema, Ae as profileDataSchema, zi as promptScreenSchema, Ar as promptSettingSchema, Y as proxyRouteInsertSchema, Nr as proxyRouteSchema, Pr as proxyRouteUpdateSchema, we as redirectActionSchema, Gr as refreshTokenInsertSchema, Kr as refreshTokenSchema, de as requestContextSchema, Zr as resourceServerInsertSchema, $r as resourceServerListSchema, Xr as resourceServerOptionsSchema, Qr as resourceServerSchema, Yr as resourceServerScopeSchema, fe as responseContextSchema, S as richTextComponentSchema, mi as roleInsertSchema, gi as roleListSchema, ei as rolePermissionInsertSchema, ni as rolePermissionListSchema, ti as rolePermissionSchema, hi as roleSchema, vr as rolloutInsertSchema, gr as rolloutKindSchema, yr as rolloutSchema, _r as rolloutStatusSchema, br as rolloutUpdateSchema, ha as sanitizeLuceneQuery, Ir as scimConfigurationInsertSchema, Lr as scimConfigurationSchema, Br as scimExternalIdInsertSchema, Vr as scimExternalIdSchema, Fr as scimMappingEntrySchema, Rr as scimTokenInsertSchema, zr as scimTokenSchema, Yt as screenLinkSchema, nr as sessionInsertSchema, Pi as sessionRetentionCohortSchema, Fi as sessionRetentionResponseSchema, _a as sessionRetentionWindow, rr as sessionSchema, ir as signingKeySchema, Jr as smsProviderSchema, qr as smsSendParamsSchema, He as startSchema, Zn as suspiciousIpThrottlingSchema, ue as targetSchema, ar as tenantInsertSchema, lr as tenantOperationEngineSchema, mr as tenantOperationEventInsertSchema, pr as tenantOperationEventOutcomeSchema, hr as tenantOperationEventSchema, ur as tenantOperationInsertSchema, sr as tenantOperationKindSchema, dr as tenantOperationSchema, cr as tenantOperationStatusSchema, fr as tenantOperationUpdateSchema, or as tenantSchema, Di as tenantSettingsSchema, Or as themeInsertSchema, kr as themeSchema, Sr as tokenResponseSchema, ke as totalsSchema, Xt as uiScreenSchema, ai as userActivitySchema, d as userInsertSchema, Ti as userOrganizationInsertSchema, Ei as userOrganizationSchema, oi as userPermissionInsertSchema, ci as userPermissionListSchema, si as userPermissionSchema, ui as userPermissionWithDetailsListSchema, li as userPermissionWithDetailsSchema, Pe as userResponseSchema, di as userRoleInsertSchema, pi as userRoleListSchema, fi as userRoleSchema, f as userSchema, rt as verificationMethodsSchema, ga as weekIndex, $ as weekStartMs, Rt as widgetComponentSchema, Dr as widgetSchema };
3077
+ export { ve as Auth0ActionEnum, Bn as Auth0Client, O as AuthorizationResponseMode, D as AuthorizationResponseType, Ze as CodeChallengeMethod, h as ComponentCategory, m as ComponentType, Ji as DATABASE_CONNECTION_STRATEGY, ye as EmailActionEnum, Gt as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, Cr as GrantType, Vn as LocationInfo, G as LogTypes, An as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Ge as NodeType, Ce as RedirectTargetEnum, Ki as Strategy, qi as StrategyType, na as TRIGGER_API_SHAPES, Z as WEEK_MS, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, ee as actionExecutionTriggerIdSchema, a as actionInsertSchema, T as actionNodeSchema, s as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, ji as activeUsersResponseSchema, le as actorSchema, Me as addressSchema, sn as allowedTriggersForHook, Bi as analyticsColumnMetaSchema, Pi as analyticsGroupBySchema, Ni as analyticsIntervalSchema, Hi as analyticsQueryResponseSchema, Mi as analyticsResourceSchema, Vi as analyticsStatisticsSchema, Fi as analyticsUserTypeSchema, er as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Xe as auth0FlowInsertSchema, Ye as auth0FlowSchema, Oe as auth0QuerySchema, xe as auth0UpdateUserActionSchema, Fe as auth0UserResponseSchema, et as authParamsSchema, $i as authenticationMethodInsertSchema, ea as authenticationMethodSchema, Xi as authenticationMethodTypeSchema, u as baseUserSchema, Ht as blockComponentSchema, Tr as bordersSchema, tt as brandingSchema, Zn as breachedPasswordDetectionSchema, Qn as bruteForceProtectionSchema, Ca as buildRefreshTokenRetention, Sa as buildSessionRetention, v as buttonComponentSchema, $e as claimsRequestSchema, Ve as clientGrantInsertSchema, Ue as clientGrantListSchema, He as clientGrantSchema, ze as clientInsertSchema, f as clientRegistrationTokenInsertSchema, We as clientRegistrationTokenSchema, d as clientRegistrationTokenTypeSchema, Be as clientSchema, rt as codeInsertSchema, it as codeSchema, nt as codeTypeSchema, Er as colorsSchema, $t as componentMessageSchema, S as componentSchema, ot as connectionInsertSchema, at as connectionOptionsSchema, st as connectionSchema, p as coordinatesSchema, ia as createPassthroughAdapter, aa as createWriteOnlyAdapter, ft as customDomainCertificateUploadSchema, A as customDomainInsertSchema, lt as customDomainSchema, ut as customDomainUpdateSchema, dt as customDomainWithTenantIdSchema, Gi as customTextEntrySchema, Wi as customTextSchema, Ai as dailyStatsSchema, ha as decodeBase32, pa as decodeBase64, la as decodeBase64Url, da as decodeBase64UrlString, va as decodeCursor, Wr as emailProviderSchema, Gr as emailTemplateNameSchema, Kr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, ma as encodeBase32, fa as encodeBase64, ca as encodeBase64Url, ua as encodeBase64UrlString, _a as encodeCursor, ga as encodeHex, Je as endingSchema, Wt as fieldComponentSchema, Te as flowActionStepSchema, Ee as flowInsertSchema, De as flowSchema, b as flowsFieldComponentSchema, w as flowsFlowNodeSchema, C as flowsStepNodeSchema, J as fontDetailsSchema, Dr as fontsSchema, Kt as formControlSchema, Zt as formInsertSchema, F as formNodeComponentDefinition, Xt as formNodeSchema, Qt as formSchema, x as genericComponentSchema, E as genericNodeSchema, oa as getConnectionIdentifierConfig, zn as getLogTypeCategory, Rn as getLogTypeDescription, ai as grantInsertSchema, oi as grantSchema, Pr as handlerConfigSchema, xn as hookCodeInsertSchema, Sn as hookCodeSchema, mn as hookInsertSchema, H as hookPageId, bn as hookSchema, U as hookTemplateId, cn as hookTemplates, je as identitySchema, ta as importMetadataSchema, Tn as inviteInsertSchema, En as inviteSchema, wn as inviteeSchema, Cn as inviterSchema, nn as isBlockComponent, Yi as isDatabaseConnectionStrategy, an as isFieldComponent, sa as isPlainObject, rn as isWidgetComponent, On as jwksKeySchema, Dn as jwksSchema, y as legalComponentSchema, pe as locationInfoSchema, K as logInsertSchema, Hn as logSchema, Wn as logStreamFilterSchema, Gn as logStreamInsertSchema, Kn as logStreamSchema, q as logStreamStatusSchema, Un as logStreamTypeSchema, Ln as logTypeCategories, In as logTypeDescriptions, Mn as loginSessionAuthStrategySchema, Nn as loginSessionInsertSchema, Pn as loginSessionSchema, jn as loginSessionStateSchema, Nr as matchSchema, qn as migrationProviderTypeSchema, Jn as migrationSourceCredentialsSchema, Yn as migrationSourceInsertSchema, Xn as migrationSourceSchema, Ke as nodeSchema, kn as openIDConfigurationSchema, yi as organizationBrandingSchema, wi as organizationConnectionInsertSchema, Ei as organizationConnectionListSchema, Ti as organizationConnectionSchema, bi as organizationEnabledConnectionSchema, Si as organizationInsertSchema, Ci as organizationSchema, xi as organizationTokenQuotaSchema, Or as pageBackgroundSchema, ra as parseUserId, tr as passwordInsertSchema, nr as passwordSchema, Ae as profileDataSchema, Ui as promptScreenSchema, Mr as promptSettingSchema, Y as proxyRouteInsertSchema, Fr as proxyRouteSchema, Ir as proxyRouteUpdateSchema, we as redirectActionSchema, qr as refreshTokenInsertSchema, Ri as refreshTokenRetentionCohortSchema, zi as refreshTokenRetentionResponseSchema, Jr as refreshTokenSchema, de as requestContextSchema, $r as resourceServerInsertSchema, ti as resourceServerListSchema, Qr as resourceServerOptionsSchema, ei as resourceServerSchema, Zr as resourceServerScopeSchema, fe as responseContextSchema, _ as richTextComponentSchema, gi as roleInsertSchema, vi as roleListSchema, ni as rolePermissionInsertSchema, ii as rolePermissionListSchema, ri as rolePermissionSchema, _i as roleSchema, br as rolloutInsertSchema, vr as rolloutKindSchema, xr as rolloutSchema, yr as rolloutStatusSchema, Sr as rolloutUpdateSchema, ya as sanitizeLuceneQuery, Rr as scimConfigurationInsertSchema, zr as scimConfigurationSchema, Hr as scimExternalIdInsertSchema, Ur as scimExternalIdSchema, Lr as scimMappingEntrySchema, Br as scimTokenInsertSchema, Vr as scimTokenSchema, en as screenLinkSchema, ir as sessionInsertSchema, Ii as sessionRetentionCohortSchema, Li as sessionRetentionResponseSchema, xa as sessionRetentionWindow, ar as sessionSchema, or as signingKeySchema, Xr as smsProviderSchema, Yr as smsSendParamsSchema, qe as startSchema, $n as suspiciousIpThrottlingSchema, ue as targetSchema, sr as tenantInsertSchema, dr as tenantOperationEngineSchema, gr as tenantOperationEventInsertSchema, hr as tenantOperationEventOutcomeSchema, _r as tenantOperationEventSchema, fr as tenantOperationInsertSchema, lr as tenantOperationKindSchema, pr as tenantOperationSchema, ur as tenantOperationStatusSchema, mr as tenantOperationUpdateSchema, cr as tenantSchema, ki as tenantSettingsSchema, Ar as themeInsertSchema, jr as themeSchema, wr as tokenResponseSchema, ke as totalsSchema, tn as uiScreenSchema, si as userActivitySchema, Ne as userInsertSchema, Di as userOrganizationInsertSchema, Oi as userOrganizationSchema, ci as userPermissionInsertSchema, ui as userPermissionListSchema, li as userPermissionSchema, fi as userPermissionWithDetailsListSchema, di as userPermissionWithDetailsSchema, Ie as userResponseSchema, pi as userRoleInsertSchema, hi as userRoleListSchema, mi as userRoleSchema, Pe as userSchema, ct as verificationMethodsSchema, ba as weekIndex, $ as weekStartMs, Ut as widgetComponentSchema, kr as widgetSchema };