@authhero/proxy 0.11.11 → 0.11.13

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.
package/dist/proxy.mjs CHANGED
@@ -306,7 +306,7 @@ var pe = e.object({
306
306
  region: e.string().optional(),
307
307
  postal_code: e.string().optional(),
308
308
  country: e.string().optional()
309
- }).optional(), ge = e.object({
309
+ }).optional(), y = e.object({
310
310
  email: e.string().transform((e) => e.toLowerCase()).optional(),
311
311
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
312
312
  phone_number: e.string().optional(),
@@ -331,7 +331,7 @@ var pe = e.object({
331
331
  zoneinfo: e.string().optional(),
332
332
  address: he
333
333
  });
334
- ge.extend({
334
+ y.extend({
335
335
  email_verified: e.boolean().default(!1),
336
336
  verify_email: e.boolean().optional(),
337
337
  last_ip: e.string().optional(),
@@ -353,23 +353,23 @@ ge.extend({
353
353
  email: e.string().optional(),
354
354
  login_count: e.number().default(0),
355
355
  identities: e.array(me).optional()
356
- }).omit({ registration_completed_at: !0 }), ge.extend({
356
+ }).omit({ registration_completed_at: !0 }), y.extend({
357
357
  login_count: e.number(),
358
358
  multifactor: e.array(e.string()).optional(),
359
359
  last_ip: e.string().optional(),
360
360
  last_login: e.string().optional(),
361
361
  user_id: e.string()
362
362
  }).catchall(e.any());
363
- var _e = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ve = (e = 21) => {
363
+ var ge = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", _e = (e = 21) => {
364
364
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
365
- for (; e--;) t += _e[n[e] & 63];
365
+ for (; e--;) t += ge[n[e] & 63];
366
366
  return t;
367
- }, ye = e.object({
367
+ }, ve = e.object({
368
368
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
369
369
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
370
370
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
371
371
  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)." }),
372
- client_secret: e.string().default(() => ve()).optional().openapi({ description: "Client secret (which you must not make public)." }),
372
+ client_secret: e.string().default(() => _e()).optional().openapi({ description: "Client secret (which you must not make public)." }),
373
373
  app_type: e.enum([
374
374
  "native",
375
375
  "spa",
@@ -487,8 +487,8 @@ var _e = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ve
487
487
  e.object({
488
488
  created_at: e.string(),
489
489
  updated_at: e.string()
490
- }).extend(ye.shape).extend({ client_id: e.string() });
491
- var be = e.object({
490
+ }).extend(ve.shape).extend({ client_id: e.string() });
491
+ var ye = e.object({
492
492
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
493
493
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
494
494
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -501,15 +501,15 @@ var be = e.object({
501
501
  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." }),
502
502
  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." }),
503
503
  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." })
504
- }), xe = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(be.shape).extend({
504
+ }), be = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(ye.shape).extend({
505
505
  created_at: e.string().optional(),
506
506
  updated_at: e.string().optional()
507
507
  });
508
- e.array(xe);
509
- var Se = e.enum(["iat", "rat"]), Ce = e.object({
508
+ e.array(be);
509
+ var xe = e.enum(["iat", "rat"]), Se = e.object({
510
510
  id: e.string(),
511
511
  token_hash: e.string(),
512
- type: Se,
512
+ type: xe,
513
513
  client_id: e.string().optional(),
514
514
  sub: e.string().optional(),
515
515
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -520,23 +520,23 @@ e.object({
520
520
  created_at: e.string(),
521
521
  used_at: e.string().optional(),
522
522
  revoked_at: e.string().optional()
523
- }).extend(Ce.shape);
524
- var y = e.object({
523
+ }).extend(Se.shape);
524
+ var b = e.object({
525
525
  x: e.number(),
526
526
  y: e.number()
527
- }), we = /* @__PURE__ */ function(e) {
527
+ }), Ce = /* @__PURE__ */ function(e) {
528
528
  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;
529
- }({}), Te = /* @__PURE__ */ function(e) {
529
+ }({}), we = /* @__PURE__ */ function(e) {
530
530
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
531
- }({}), b = e.object({
531
+ }({}), x = e.object({
532
532
  id: e.string(),
533
- category: e.nativeEnum(Te),
534
- type: e.nativeEnum(we)
535
- }), Ee = b.extend({
533
+ category: e.nativeEnum(we),
534
+ type: e.nativeEnum(Ce)
535
+ }), Te = x.extend({
536
536
  category: e.literal("BLOCK"),
537
537
  type: e.literal("RICH_TEXT"),
538
538
  config: e.object({ content: e.string() }).passthrough()
539
- }), De = b.extend({
539
+ }), Ee = x.extend({
540
540
  category: e.literal("BLOCK"),
541
541
  type: e.union([
542
542
  e.literal("NEXT_BUTTON"),
@@ -544,13 +544,13 @@ var y = e.object({
544
544
  e.literal("SUBMIT_BUTTON")
545
545
  ]),
546
546
  config: e.object({ text: e.string() }).passthrough()
547
- }), Oe = b.extend({
547
+ }), De = x.extend({
548
548
  category: e.literal("FIELD"),
549
549
  type: e.literal("LEGAL"),
550
550
  required: e.boolean().optional(),
551
551
  sensitive: e.boolean().optional(),
552
552
  config: e.object({ text: e.string() }).passthrough()
553
- }), ke = b.extend({
553
+ }), Oe = x.extend({
554
554
  category: e.literal("FIELD"),
555
555
  type: e.union([
556
556
  e.literal("TEXT"),
@@ -570,38 +570,38 @@ var y = e.object({
570
570
  label: e.string().optional(),
571
571
  placeholder: e.string().optional()
572
572
  }).passthrough()
573
- }), Ae = e.object({
573
+ }), ke = e.object({
574
574
  id: e.string(),
575
575
  category: e.string(),
576
576
  type: e.string()
577
- }).passthrough(), je = e.union([
577
+ }).passthrough(), Ae = e.union([
578
+ Te,
578
579
  Ee,
579
580
  De,
580
581
  Oe,
581
- ke,
582
- Ae
583
- ]), Me = e.object({
582
+ ke
583
+ ]), je = e.object({
584
584
  id: e.string(),
585
585
  type: e.literal("STEP"),
586
- coordinates: y,
586
+ coordinates: b,
587
587
  alias: e.string().optional(),
588
588
  config: e.object({
589
- components: e.array(je),
589
+ components: e.array(Ae),
590
590
  next_node: e.string()
591
591
  }).passthrough()
592
- }), Ne = e.object({
592
+ }), Me = e.object({
593
593
  id: e.string(),
594
594
  type: e.literal("FLOW"),
595
- coordinates: y,
595
+ coordinates: b,
596
596
  alias: e.string().optional(),
597
597
  config: e.object({
598
598
  flow_id: e.string(),
599
599
  next_node: e.string()
600
600
  })
601
- }), Pe = e.object({
601
+ }), Ne = e.object({
602
602
  id: e.string(),
603
603
  type: e.literal("ACTION"),
604
- coordinates: y,
604
+ coordinates: b,
605
605
  alias: e.string().optional(),
606
606
  config: e.object({
607
607
  action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
@@ -613,29 +613,29 @@ var y = e.object({
613
613
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
614
614
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
615
615
  }).passthrough()
616
- }), Fe = e.object({
616
+ }), Pe = e.object({
617
617
  id: e.string(),
618
618
  type: e.string(),
619
- coordinates: y
620
- }).passthrough(), Ie = e.union([
619
+ coordinates: b
620
+ }).passthrough(), Fe = e.union([
621
+ je,
621
622
  Me,
622
623
  Ne,
623
- Pe,
624
- Fe
625
- ]), Le = e.object({
624
+ Pe
625
+ ]), Ie = e.object({
626
626
  next_node: e.string(),
627
- coordinates: y
628
- }).passthrough(), Re = e.object({
627
+ coordinates: b
628
+ }).passthrough(), Le = e.object({
629
629
  resume_flow: e.boolean().optional(),
630
- coordinates: y
630
+ coordinates: b
631
631
  }).passthrough();
632
632
  e.object({
633
633
  id: e.string(),
634
634
  name: e.string(),
635
635
  languages: e.object({ primary: e.string() }).passthrough(),
636
- nodes: e.array(Ie),
637
- start: Le,
638
- ending: Re,
636
+ nodes: e.array(Fe),
637
+ start: Ie,
638
+ ending: Le,
639
639
  created_at: e.string(),
640
640
  updated_at: e.string(),
641
641
  links: e.object({
@@ -647,24 +647,24 @@ e.object({
647
647
  created_at: !0,
648
648
  updated_at: !0
649
649
  });
650
- var ze = /* @__PURE__ */ function(e) {
650
+ var Re = /* @__PURE__ */ function(e) {
651
651
  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;
652
- }({}), Be = /* @__PURE__ */ function(e) {
652
+ }({}), ze = /* @__PURE__ */ function(e) {
653
653
  return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
654
- }({}), Ve = /* @__PURE__ */ function(e) {
654
+ }({}), Be = /* @__PURE__ */ function(e) {
655
655
  return e.S256 = "S256", e.Plain = "plain", e;
656
- }({}), He = e.union([e.null(), e.object({
656
+ }({}), Ve = e.union([e.null(), e.object({
657
657
  essential: e.boolean().optional(),
658
658
  value: e.unknown().optional(),
659
659
  values: e.array(e.unknown()).optional()
660
- })]).nullable(), Ue = e.object({
661
- userinfo: e.record(e.string(), He).optional(),
662
- id_token: e.record(e.string(), He).optional()
663
- }), We = e.object({
660
+ })]).nullable(), He = e.object({
661
+ userinfo: e.record(e.string(), Ve).optional(),
662
+ id_token: e.record(e.string(), Ve).optional()
663
+ }), Ue = e.object({
664
664
  client_id: e.string(),
665
665
  act_as: e.string().optional(),
666
- response_type: e.nativeEnum(ze).optional(),
667
- response_mode: e.nativeEnum(Be).optional(),
666
+ response_type: e.nativeEnum(Re).optional(),
667
+ response_mode: e.nativeEnum(ze).optional(),
668
668
  redirect_uri: e.string().optional(),
669
669
  audience: e.string().optional(),
670
670
  organization: e.string().optional(),
@@ -672,13 +672,13 @@ var ze = /* @__PURE__ */ function(e) {
672
672
  nonce: e.string().optional(),
673
673
  scope: e.string().optional(),
674
674
  prompt: e.string().optional(),
675
- code_challenge_method: e.nativeEnum(Ve).optional(),
675
+ code_challenge_method: e.nativeEnum(Be).optional(),
676
676
  code_challenge: e.string().optional(),
677
677
  username: e.string().optional(),
678
678
  ui_locales: e.string().optional(),
679
679
  max_age: e.number().optional(),
680
680
  acr_values: e.string().optional(),
681
- claims: Ue.optional(),
681
+ claims: He.optional(),
682
682
  vendor_id: e.string().optional()
683
683
  });
684
684
  e.object({
@@ -702,7 +702,7 @@ e.object({
702
702
  "auto"
703
703
  ]).optional()
704
704
  });
705
- var Ge = e.enum([
705
+ var We = e.enum([
706
706
  "password_reset",
707
707
  "email_verification",
708
708
  "otp",
@@ -717,7 +717,7 @@ e.object({
717
717
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
718
718
  login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
719
719
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
720
- code_type: Ge,
720
+ code_type: We,
721
721
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
722
722
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
723
723
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -747,7 +747,7 @@ e.object({
747
747
  interval: e.number().int().positive(),
748
748
  version: e.number().int().nonnegative()
749
749
  });
750
- var Ke = e.object({
750
+ var Ge = e.object({
751
751
  kid: e.string().optional(),
752
752
  team_id: e.string().optional(),
753
753
  realms: e.string().optional(),
@@ -867,26 +867,26 @@ var Ke = e.object({
867
867
  "never_on_login"
868
868
  ]).optional()
869
869
  });
870
- function x(e) {
870
+ function S(e) {
871
871
  if (e !== null) {
872
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(x);
872
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(S);
873
873
  if (e && typeof e == "object") {
874
874
  let t = {};
875
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = x(r));
875
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = S(r));
876
876
  return t;
877
877
  }
878
878
  return e;
879
879
  }
880
880
  }
881
- var qe = e.object({
881
+ var Ke = e.object({
882
882
  id: e.string().optional(),
883
883
  name: e.string(),
884
884
  display_name: e.string().optional(),
885
885
  strategy: e.string(),
886
- options: e.preprocess((e) => e === null ? {} : x(e), Ke).default({}),
886
+ options: e.preprocess((e) => e === null ? {} : S(e), Ge).default({}),
887
887
  enabled_clients: e.array(e.string()).default([]).optional(),
888
- response_type: e.nativeEnum(ze).optional(),
889
- response_mode: e.nativeEnum(Be).optional(),
888
+ response_type: e.nativeEnum(Re).optional(),
889
+ response_mode: e.nativeEnum(ze).optional(),
890
890
  is_domain_connection: e.boolean().optional(),
891
891
  show_as_button: e.boolean().optional(),
892
892
  metadata: e.record(e.string(), e.any()).optional(),
@@ -897,8 +897,8 @@ e.object({
897
897
  id: e.string(),
898
898
  created_at: e.string().transform((e) => e === null ? "" : e),
899
899
  updated_at: e.string().transform((e) => e === null ? "" : e)
900
- }).extend(qe.shape);
901
- var Je = e.object({
900
+ }).extend(Ke.shape);
901
+ var qe = e.object({
902
902
  domain: e.string(),
903
903
  custom_domain_id: e.string().optional(),
904
904
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -912,7 +912,7 @@ var Je = e.object({
912
912
  "null"
913
913
  ]).optional(),
914
914
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
915
- }), Ye = e.discriminatedUnion("name", [e.object({
915
+ }), Je = e.discriminatedUnion("name", [e.object({
916
916
  name: e.literal("txt"),
917
917
  record: e.string(),
918
918
  domain: e.string()
@@ -920,7 +920,7 @@ var Je = e.object({
920
920
  name: e.literal("http"),
921
921
  http_body: e.string(),
922
922
  http_url: e.string()
923
- })]), Xe = Je.extend({
923
+ })]), Ye = qe.extend({
924
924
  custom_domain_id: e.string(),
925
925
  primary: e.boolean(),
926
926
  status: e.enum([
@@ -930,28 +930,28 @@ var Je = e.object({
930
930
  "ready"
931
931
  ]),
932
932
  origin_domain_name: e.string().optional(),
933
- verification: e.object({ methods: e.array(Ye) }).optional(),
933
+ verification: e.object({ methods: e.array(Je) }).optional(),
934
934
  tls_policy: e.string().optional()
935
935
  });
936
- Je.pick({
936
+ qe.pick({
937
937
  tls_policy: !0,
938
938
  custom_client_ip_header: !0,
939
939
  domain_metadata: !0
940
- }).strict(), Xe.extend({ tenant_id: e.string() }), e.object({
940
+ }).strict(), Ye.extend({ tenant_id: e.string() }), e.object({
941
941
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
942
942
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
943
943
  });
944
- var S = e.object({
944
+ var C = e.object({
945
945
  id: e.string(),
946
946
  order: e.number().optional(),
947
947
  visible: e.boolean().optional().default(!0)
948
- }), C = S.extend({ category: e.literal("BLOCK").optional() }), Ze = C.extend({
948
+ }), w = C.extend({ category: e.literal("BLOCK").optional() }), Xe = w.extend({
949
949
  type: e.literal("DIVIDER"),
950
950
  config: e.object({ text: e.string().optional() }).optional()
951
- }), Qe = C.extend({
951
+ }), Ze = w.extend({
952
952
  type: e.literal("HTML"),
953
953
  config: e.object({ content: e.string().optional() }).optional()
954
- }), $e = C.extend({
954
+ }), Qe = w.extend({
955
955
  type: e.literal("IMAGE"),
956
956
  config: e.object({
957
957
  src: e.string().optional(),
@@ -959,47 +959,47 @@ var S = e.object({
959
959
  width: e.number().optional(),
960
960
  height: e.number().optional()
961
961
  }).optional()
962
- }), et = C.extend({
962
+ }), $e = w.extend({
963
963
  type: e.literal("JUMP_BUTTON"),
964
964
  config: e.object({
965
965
  text: e.string().optional(),
966
966
  target_step: e.string().optional()
967
967
  })
968
- }), tt = C.extend({
968
+ }), et = w.extend({
969
969
  type: e.literal("RESEND_BUTTON"),
970
970
  config: e.object({
971
971
  text: e.string().optional(),
972
972
  resend_action: e.string().optional()
973
973
  })
974
- }), nt = C.extend({
974
+ }), tt = w.extend({
975
975
  type: e.literal("NEXT_BUTTON"),
976
976
  config: e.object({
977
977
  text: e.string().optional(),
978
978
  variant: e.enum(["primary", "secondary"]).optional(),
979
979
  skip_validation: e.boolean().optional()
980
980
  })
981
- }), rt = C.extend({
981
+ }), nt = w.extend({
982
982
  type: e.literal("PREVIOUS_BUTTON"),
983
983
  config: e.object({ text: e.string().optional() })
984
- }), it = C.extend({
984
+ }), rt = w.extend({
985
985
  type: e.literal("RICH_TEXT"),
986
986
  config: e.object({ content: e.string().optional() }).optional()
987
- }), w = S.extend({
987
+ }), T = C.extend({
988
988
  category: e.literal("WIDGET").optional(),
989
989
  label: e.string().min(1).optional(),
990
990
  hint: e.string().min(1).max(500).optional(),
991
991
  required: e.boolean().optional(),
992
992
  sensitive: e.boolean().optional()
993
- }), at = w.extend({
993
+ }), it = T.extend({
994
994
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
995
995
  config: e.object({ credential_type: e.string().optional() })
996
- }), ot = w.extend({
996
+ }), at = T.extend({
997
997
  type: e.literal("GMAPS_ADDRESS"),
998
998
  config: e.object({ api_key: e.string().optional() })
999
- }), st = w.extend({
999
+ }), ot = T.extend({
1000
1000
  type: e.literal("RECAPTCHA"),
1001
1001
  config: e.object({ site_key: e.string().optional() })
1002
- }), T = S.extend({
1002
+ }), E = C.extend({
1003
1003
  category: e.literal("FIELD").optional(),
1004
1004
  label: e.string().min(1).optional(),
1005
1005
  hint: e.string().min(1).max(500).optional(),
@@ -1015,10 +1015,10 @@ var S = e.object({
1015
1015
  })).optional(),
1016
1016
  required: e.boolean().optional(),
1017
1017
  sensitive: e.boolean().optional()
1018
- }), ct = T.extend({
1018
+ }), st = E.extend({
1019
1019
  type: e.literal("BOOLEAN"),
1020
1020
  config: e.object({ default_value: e.boolean().optional() }).optional()
1021
- }), lt = T.extend({
1021
+ }), ct = E.extend({
1022
1022
  type: e.literal("CARDS"),
1023
1023
  config: e.object({
1024
1024
  options: e.array(e.object({
@@ -1029,7 +1029,7 @@ var S = e.object({
1029
1029
  })).optional(),
1030
1030
  multi_select: e.boolean().optional()
1031
1031
  }).optional()
1032
- }), ut = T.extend({
1032
+ }), lt = E.extend({
1033
1033
  type: e.literal("CHOICE"),
1034
1034
  config: e.object({
1035
1035
  options: e.array(e.object({
@@ -1040,7 +1040,7 @@ var S = e.object({
1040
1040
  multiple: e.boolean().optional(),
1041
1041
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1042
1042
  }).optional()
1043
- }), dt = T.extend({
1043
+ }), ut = E.extend({
1044
1044
  type: e.literal("CODE"),
1045
1045
  config: e.object({
1046
1046
  length: e.number().int().positive().max(100).optional(),
@@ -1057,7 +1057,7 @@ var S = e.object({
1057
1057
  message: "default_value is longer than the configured length",
1058
1058
  path: ["default_value"]
1059
1059
  }).optional()
1060
- }), ft = T.extend({
1060
+ }), dt = E.extend({
1061
1061
  type: e.literal("CUSTOM"),
1062
1062
  config: e.object({
1063
1063
  component: e.string().optional(),
@@ -1065,7 +1065,7 @@ var S = e.object({
1065
1065
  schema: e.record(e.string(), e.any()).optional(),
1066
1066
  code: e.string().optional()
1067
1067
  })
1068
- }), pt = T.extend({
1068
+ }), ft = E.extend({
1069
1069
  type: e.literal("DATE"),
1070
1070
  config: e.object({
1071
1071
  format: e.string().optional(),
@@ -1073,7 +1073,7 @@ var S = e.object({
1073
1073
  max: e.string().optional(),
1074
1074
  default_value: e.string().optional()
1075
1075
  }).optional()
1076
- }), mt = T.extend({
1076
+ }), pt = E.extend({
1077
1077
  type: e.literal("DROPDOWN"),
1078
1078
  config: e.object({
1079
1079
  options: e.array(e.object({
@@ -1085,7 +1085,7 @@ var S = e.object({
1085
1085
  multiple: e.boolean().optional(),
1086
1086
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1087
1087
  }).optional()
1088
- }), ht = T.extend({
1088
+ }), mt = E.extend({
1089
1089
  type: e.literal("EMAIL"),
1090
1090
  config: e.object({
1091
1091
  placeholder: e.string().optional(),
@@ -1093,20 +1093,20 @@ var S = e.object({
1093
1093
  last_used: e.boolean().optional(),
1094
1094
  last_used_label: e.string().optional()
1095
1095
  }).optional()
1096
- }), gt = T.extend({
1096
+ }), ht = E.extend({
1097
1097
  type: e.literal("FILE"),
1098
1098
  config: e.object({
1099
1099
  accept: e.string().optional(),
1100
1100
  max_size: e.number().optional(),
1101
1101
  multiple: e.boolean().optional()
1102
1102
  }).optional()
1103
- }), _t = T.extend({
1103
+ }), gt = E.extend({
1104
1104
  type: e.literal("LEGAL"),
1105
1105
  config: e.object({
1106
1106
  text: e.string(),
1107
1107
  html: e.boolean().optional()
1108
1108
  }).optional()
1109
- }), vt = T.extend({
1109
+ }), _t = E.extend({
1110
1110
  type: e.literal("NUMBER"),
1111
1111
  config: e.object({
1112
1112
  placeholder: e.string().optional(),
@@ -1115,7 +1115,7 @@ var S = e.object({
1115
1115
  step: e.number().optional(),
1116
1116
  default_value: e.string().optional()
1117
1117
  }).optional()
1118
- }), yt = T.extend({
1118
+ }), vt = E.extend({
1119
1119
  type: e.literal("PASSWORD"),
1120
1120
  config: e.object({
1121
1121
  placeholder: e.string().optional(),
@@ -1124,13 +1124,13 @@ var S = e.object({
1124
1124
  forgot_password_link: e.string().optional(),
1125
1125
  default_value: e.string().optional()
1126
1126
  }).optional()
1127
- }), bt = T.extend({
1127
+ }), yt = E.extend({
1128
1128
  type: e.literal("PAYMENT"),
1129
1129
  config: e.object({
1130
1130
  provider: e.string().optional(),
1131
1131
  currency: e.string().optional()
1132
1132
  }).optional()
1133
- }), xt = T.extend({
1133
+ }), bt = E.extend({
1134
1134
  type: e.literal("SOCIAL"),
1135
1135
  config: e.object({
1136
1136
  providers: e.array(e.string()).optional(),
@@ -1145,7 +1145,7 @@ var S = e.object({
1145
1145
  last_used_label: e.string().optional()
1146
1146
  })).optional()
1147
1147
  }).optional()
1148
- }), St = T.extend({
1148
+ }), xt = E.extend({
1149
1149
  type: e.literal("TEL"),
1150
1150
  config: e.object({
1151
1151
  placeholder: e.string().optional(),
@@ -1153,7 +1153,7 @@ var S = e.object({
1153
1153
  default_value: e.string().optional(),
1154
1154
  allow_email: e.boolean().optional()
1155
1155
  }).optional()
1156
- }), Ct = T.extend({
1156
+ }), St = E.extend({
1157
1157
  type: e.literal("TEXT"),
1158
1158
  config: e.object({
1159
1159
  placeholder: e.string().optional(),
@@ -1163,37 +1163,38 @@ var S = e.object({
1163
1163
  last_used: e.boolean().optional(),
1164
1164
  last_used_label: e.string().optional()
1165
1165
  }).optional()
1166
- }), wt = T.extend({
1166
+ }), Ct = E.extend({
1167
1167
  type: e.literal("COUNTRY"),
1168
1168
  config: e.object({
1169
1169
  placeholder: e.string().optional(),
1170
1170
  default_value: e.string().optional()
1171
1171
  }).optional()
1172
- }), Tt = T.extend({
1172
+ }), wt = E.extend({
1173
1173
  type: e.literal("URL"),
1174
1174
  config: e.object({
1175
1175
  placeholder: e.string().optional(),
1176
1176
  default_value: e.string().optional()
1177
1177
  }).optional()
1178
- }), Et = e.discriminatedUnion("type", [
1178
+ }), Tt = e.discriminatedUnion("type", [
1179
+ Xe,
1179
1180
  Ze,
1180
1181
  Qe,
1181
1182
  $e,
1182
1183
  et,
1183
1184
  tt,
1184
1185
  nt,
1185
- rt,
1186
- it
1187
- ]), Dt = e.discriminatedUnion("type", [
1186
+ rt
1187
+ ]), Et = e.discriminatedUnion("type", [
1188
+ it,
1188
1189
  at,
1189
- ot,
1190
- st
1191
- ]), Ot = e.discriminatedUnion("type", [
1190
+ ot
1191
+ ]), Dt = e.discriminatedUnion("type", [
1192
+ st,
1192
1193
  ct,
1193
1194
  lt,
1194
1195
  ut,
1196
+ Ct,
1195
1197
  dt,
1196
- wt,
1197
1198
  ft,
1198
1199
  pt,
1199
1200
  mt,
@@ -1205,12 +1206,11 @@ var S = e.object({
1205
1206
  bt,
1206
1207
  xt,
1207
1208
  St,
1208
- Ct,
1209
- Tt
1210
- ]), E = e.union([
1209
+ wt
1210
+ ]), Ot = e.union([
1211
+ Tt,
1211
1212
  Et,
1212
- Dt,
1213
- Ot
1213
+ Dt
1214
1214
  ]);
1215
1215
  new Set([
1216
1216
  "BOOLEAN",
@@ -1269,7 +1269,7 @@ var D = e.object({
1269
1269
  coordinates: D,
1270
1270
  alias: e.string().min(1).max(150).optional(),
1271
1271
  config: e.object({
1272
- components: e.array(E),
1272
+ components: e.array(Ot),
1273
1273
  next_node: e.string().optional()
1274
1274
  })
1275
1275
  }), Mt = e.discriminatedUnion("type", [
@@ -1340,7 +1340,7 @@ e.object({
1340
1340
  method: e.enum(["POST", "GET"]),
1341
1341
  title: e.string().optional(),
1342
1342
  description: e.string().optional(),
1343
- components: e.array(E),
1343
+ components: e.array(Ot),
1344
1344
  messages: e.array(Pt).optional(),
1345
1345
  links: e.array(Ft).optional(),
1346
1346
  partials: It.optional(),
@@ -1557,7 +1557,7 @@ var en = /* @__PURE__ */ function(e) {
1557
1557
  e.object({
1558
1558
  csrf_token: e.string(),
1559
1559
  auth0Client: e.string().optional(),
1560
- authParams: We,
1560
+ authParams: Ue,
1561
1561
  expires_at: e.string(),
1562
1562
  deleted_at: e.string().optional(),
1563
1563
  ip: e.string().optional(),
@@ -1884,6 +1884,10 @@ var _n = e.object({
1884
1884
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1885
1885
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1886
1886
  }), vn = e.object({
1887
+ name: e.string().describe("Authentication method name, e.g. \"mfa\" for a completed second factor"),
1888
+ timestamp: e.string().describe("When the method was completed (ISO 8601)"),
1889
+ type: e.string().optional().describe("For \"mfa\": the authentication method type used, e.g. \"totp\", \"phone\", \"passkey\"")
1890
+ }), yn = e.object({ methods: e.array(vn) }), bn = e.object({
1887
1891
  id: e.string(),
1888
1892
  revoked_at: e.string().optional(),
1889
1893
  used_at: e.string().optional(),
@@ -1892,14 +1896,15 @@ var _n = e.object({
1892
1896
  login_session_id: e.string(),
1893
1897
  idle_expires_at: e.string().optional(),
1894
1898
  device: _n.describe("Metadata related to the device used in the session"),
1895
- clients: e.array(e.string()).describe("List of client details for the session")
1899
+ clients: e.array(e.string()).describe("List of client details for the session"),
1900
+ authentication: yn.optional().describe("Authentication methods completed in this session (currently MFA only)")
1896
1901
  });
1897
1902
  e.object({
1898
1903
  created_at: e.string(),
1899
1904
  updated_at: e.string(),
1900
1905
  authenticated_at: e.string(),
1901
1906
  last_interaction_at: e.string()
1902
- }).extend(vn.shape), e.object({
1907
+ }).extend(bn.shape), e.object({
1903
1908
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1904
1909
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
1905
1910
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -1916,7 +1921,93 @@ e.object({
1916
1921
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
1917
1922
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
1918
1923
  });
1919
- var yn = e.object({
1924
+ var F = e.enum([
1925
+ "never",
1926
+ "always",
1927
+ "all-applications",
1928
+ "confidence-score"
1929
+ ]);
1930
+ e.object({
1931
+ idle_session_lifetime: e.number().default(72),
1932
+ session_lifetime: e.number().default(168),
1933
+ session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
1934
+ enable_client_connections: e.boolean().optional(),
1935
+ default_redirection_uri: e.string().optional(),
1936
+ enabled_locales: e.array(e.string()).optional(),
1937
+ default_directory: e.string().optional(),
1938
+ error_page: e.object({
1939
+ html: e.string().optional(),
1940
+ show_log_link: e.boolean().optional(),
1941
+ url: e.string().optional()
1942
+ }).optional(),
1943
+ flags: e.object({
1944
+ allow_legacy_delegation_grant_types: e.boolean().optional(),
1945
+ allow_legacy_ro_grant_types: e.boolean().optional(),
1946
+ allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
1947
+ disable_clickjack_protection_headers: e.boolean().optional(),
1948
+ enable_apis_section: e.boolean().optional(),
1949
+ enable_client_connections: e.boolean().optional(),
1950
+ enable_custom_domain_in_emails: e.boolean().optional(),
1951
+ enable_dynamic_client_registration: e.boolean().optional(),
1952
+ enable_idtoken_api2: e.boolean().optional(),
1953
+ enable_legacy_logs_search_v2: e.boolean().optional(),
1954
+ enable_legacy_profile: e.boolean().optional(),
1955
+ enable_pipeline2: e.boolean().optional(),
1956
+ enable_public_signup_user_exists_error: e.boolean().optional(),
1957
+ use_scope_descriptions_for_consent: e.boolean().optional(),
1958
+ disable_management_api_sms_obfuscation: e.boolean().optional(),
1959
+ enable_adfs_waad_email_verification: e.boolean().optional(),
1960
+ revoke_refresh_token_grant: e.boolean().optional(),
1961
+ dashboard_log_streams_next: e.boolean().optional(),
1962
+ dashboard_insights_view: e.boolean().optional(),
1963
+ disable_fields_map_fix: e.boolean().optional(),
1964
+ mfa_show_factor_list_on_enrollment: e.boolean().optional()
1965
+ }).optional(),
1966
+ friendly_name: e.string().optional(),
1967
+ picture_url: e.string().optional(),
1968
+ support_email: e.string().optional(),
1969
+ support_url: e.string().optional(),
1970
+ sandbox_version: e.string().optional(),
1971
+ sandbox_versions_available: e.array(e.string()).optional(),
1972
+ change_password: e.object({
1973
+ enabled: e.boolean(),
1974
+ html: e.string()
1975
+ }).optional(),
1976
+ guardian_mfa_page: e.object({
1977
+ enabled: e.boolean(),
1978
+ html: e.string()
1979
+ }).optional(),
1980
+ default_audience: e.string().optional(),
1981
+ default_organization: e.string().optional(),
1982
+ sessions: e.object({ oidc_logout_prompt_enabled: e.boolean().optional() }).optional(),
1983
+ mfa: e.object({
1984
+ policy: F.default("never").optional(),
1985
+ factors: e.object({
1986
+ sms: e.boolean().default(!1),
1987
+ otp: e.boolean().default(!1),
1988
+ email: e.boolean().default(!1),
1989
+ push_notification: e.boolean().default(!1),
1990
+ webauthn_roaming: e.boolean().default(!1),
1991
+ webauthn_platform: e.boolean().default(!1),
1992
+ recovery_code: e.boolean().default(!1),
1993
+ duo: e.boolean().default(!1)
1994
+ }).optional(),
1995
+ sms_provider: e.object({ provider: e.enum([
1996
+ "twilio",
1997
+ "vonage",
1998
+ "aws_sns",
1999
+ "phone_message_hook"
2000
+ ]).optional() }).optional(),
2001
+ twilio: e.object({
2002
+ sid: e.string().optional(),
2003
+ auth_token: e.string().optional(),
2004
+ from: e.string().optional(),
2005
+ messaging_service_sid: e.string().optional()
2006
+ }).optional(),
2007
+ phone_message: e.object({ message: e.string().optional() }).optional()
2008
+ }).optional()
2009
+ });
2010
+ var I = e.object({
1920
2011
  id: e.string().optional(),
1921
2012
  parent_tenant_id: e.string().nullish(),
1922
2013
  config_sync: e.enum([
@@ -2044,7 +2135,7 @@ var yn = e.object({
2044
2135
  d1_database_id: e.string().max(64).optional(),
2045
2136
  attack_protection: gn.optional(),
2046
2137
  mfa: e.object({
2047
- policy: e.enum(["never", "always"]).default("never").optional(),
2138
+ policy: F.default("never").optional(),
2048
2139
  factors: e.object({
2049
2140
  sms: e.boolean().default(!1),
2050
2141
  otp: e.boolean().default(!1),
@@ -2073,12 +2164,35 @@ var yn = e.object({
2073
2164
  e.object({
2074
2165
  created_at: e.string().nullable().transform((e) => e ?? ""),
2075
2166
  updated_at: e.string().nullable().transform((e) => e ?? "")
2076
- }).extend(yn.shape).extend({
2167
+ }).extend(I.shape).extend({
2077
2168
  id: e.string(),
2078
2169
  is_control_plane: e.boolean().optional(),
2079
2170
  has_children: e.boolean().optional()
2080
2171
  });
2081
- var bn = e.enum([
2172
+ var xn = I.shape.mfa.unwrap().shape, Sn = e.object({
2173
+ ...xn,
2174
+ policy: F.optional(),
2175
+ factors: e.object({
2176
+ sms: e.boolean().optional(),
2177
+ otp: e.boolean().optional(),
2178
+ email: e.boolean().optional(),
2179
+ push_notification: e.boolean().optional(),
2180
+ webauthn_roaming: e.boolean().optional(),
2181
+ webauthn_platform: e.boolean().optional(),
2182
+ recovery_code: e.boolean().optional(),
2183
+ duo: e.boolean().optional()
2184
+ }).optional()
2185
+ });
2186
+ e.object(I.shape).extend({
2187
+ deployment_type: e.enum(["shared", "wfp"]),
2188
+ provisioning_state: e.enum([
2189
+ "pending",
2190
+ "ready",
2191
+ "failed"
2192
+ ]),
2193
+ mfa: Sn
2194
+ }).partial();
2195
+ var Cn = e.enum([
2082
2196
  "provision",
2083
2197
  "seed",
2084
2198
  "upgrade",
@@ -2088,18 +2202,18 @@ var bn = e.enum([
2088
2202
  "sync-defaults",
2089
2203
  "detach",
2090
2204
  "tenant-members-request"
2091
- ]), xn = e.enum([
2205
+ ]), wn = e.enum([
2092
2206
  "pending",
2093
2207
  "running",
2094
2208
  "succeeded",
2095
2209
  "failed",
2096
2210
  "cancelled"
2097
- ]), Sn = e.string().max(64);
2211
+ ]), Tn = e.string().max(64);
2098
2212
  e.object({
2099
2213
  tenant_id: e.string().max(255).nullable().default(null),
2100
2214
  rollout_id: e.string().max(255).nullable().optional(),
2101
- kind: bn,
2102
- engine: Sn,
2215
+ kind: Cn,
2216
+ engine: Tn,
2103
2217
  engine_instance_id: e.string().max(100).nullable().optional(),
2104
2218
  target_worker_version: e.string().max(255).nullable().optional(),
2105
2219
  target_database_version: e.string().max(255).nullable().optional(),
@@ -2107,7 +2221,7 @@ e.object({
2107
2221
  input: e.record(e.string(), e.unknown()).nullable().optional()
2108
2222
  }).extend({
2109
2223
  id: e.string(),
2110
- status: xn,
2224
+ status: wn,
2111
2225
  current_step: e.string().max(255).nullable().optional(),
2112
2226
  error: e.string().nullable().optional(),
2113
2227
  result: e.record(e.string(), e.unknown()).nullable().optional(),
@@ -2128,7 +2242,7 @@ e.object({
2128
2242
  claim_expires_at: !0,
2129
2243
  finished_at: !0
2130
2244
  }).partial();
2131
- var Cn = e.enum([
2245
+ var En = e.enum([
2132
2246
  "started",
2133
2247
  "succeeded",
2134
2248
  "failed",
@@ -2139,14 +2253,14 @@ var Cn = e.enum([
2139
2253
  e.object({
2140
2254
  operation_id: e.string().max(255),
2141
2255
  step: e.string().max(255),
2142
- outcome: Cn,
2256
+ outcome: En,
2143
2257
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
2144
2258
  attempt: e.number().int().min(1).default(1)
2145
2259
  }).extend({
2146
2260
  id: e.string(),
2147
2261
  created_at: e.string()
2148
2262
  });
2149
- var F = e.enum([
2263
+ var L = e.enum([
2150
2264
  "pending",
2151
2265
  "inserted",
2152
2266
  "updated",
@@ -2157,29 +2271,29 @@ e.object({
2157
2271
  operation_id: e.string().max(255),
2158
2272
  seq: e.number().int().min(0),
2159
2273
  payload: e.record(e.string(), e.unknown()),
2160
- status: F.default("pending"),
2274
+ status: L.default("pending"),
2161
2275
  error_code: e.string().max(64).nullable().optional(),
2162
2276
  error_message: e.string().nullable().optional(),
2163
2277
  error_path: e.string().max(255).nullable().optional(),
2164
2278
  entity_id: e.string().max(255).nullable().optional()
2165
2279
  }).extend({
2166
- status: F,
2280
+ status: L,
2167
2281
  created_at: e.string(),
2168
2282
  updated_at: e.string()
2169
2283
  }), e.object({
2170
2284
  seq: e.number().int().min(0),
2171
- status: F,
2285
+ status: L,
2172
2286
  error_code: e.string().max(64).nullable().optional(),
2173
2287
  error_message: e.string().nullable().optional(),
2174
2288
  error_path: e.string().max(255).nullable().optional(),
2175
2289
  entity_id: e.string().max(255).nullable().optional()
2176
2290
  });
2177
- var wn = e.enum([
2291
+ var Dn = e.enum([
2178
2292
  "upgrade",
2179
2293
  "reseed",
2180
2294
  "backup",
2181
2295
  "config-sync"
2182
- ]), Tn = e.enum([
2296
+ ]), On = e.enum([
2183
2297
  "pending",
2184
2298
  "canary",
2185
2299
  "rolling",
@@ -2188,7 +2302,7 @@ var wn = e.enum([
2188
2302
  "failed"
2189
2303
  ]);
2190
2304
  e.object({
2191
- kind: wn,
2305
+ kind: Dn,
2192
2306
  target_worker_version: e.string().max(255).nullable().optional(),
2193
2307
  target_database_version: e.string().max(255).nullable().optional(),
2194
2308
  wave_size: e.number().int().min(1).default(10),
@@ -2198,7 +2312,7 @@ e.object({
2198
2312
  config: e.record(e.string(), e.unknown()).nullable().optional()
2199
2313
  }).extend({
2200
2314
  id: e.string(),
2201
- status: Tn,
2315
+ status: On,
2202
2316
  created_at: e.string(),
2203
2317
  updated_at: e.string(),
2204
2318
  finished_at: e.string().nullable().optional(),
@@ -2212,26 +2326,26 @@ e.object({
2212
2326
  paused_reason: !0,
2213
2327
  finished_at: !0
2214
2328
  }).partial();
2215
- var En = e.enum([
2329
+ var kn = e.enum([
2216
2330
  "invite",
2217
2331
  "add_members",
2218
2332
  "remove_members",
2219
2333
  "assign_roles",
2220
2334
  "remove_roles",
2221
2335
  "revoke_invitation"
2222
- ]), Dn = e.enum([
2336
+ ]), An = e.enum([
2223
2337
  "pending",
2224
2338
  "succeeded",
2225
2339
  "failed"
2226
2340
  ]);
2227
2341
  e.object({
2228
- kind: En,
2342
+ kind: kn,
2229
2343
  requested_by: e.string().min(1).max(255),
2230
2344
  payload: e.record(e.string(), e.unknown())
2231
2345
  }).extend({
2232
2346
  id: e.string(),
2233
2347
  tenant_id: e.string(),
2234
- status: Dn,
2348
+ status: An,
2235
2349
  result: e.record(e.string(), e.unknown()).nullable().optional(),
2236
2350
  error: e.string().nullable().optional(),
2237
2351
  notified_at: e.string().nullable().optional(),
@@ -2239,7 +2353,7 @@ e.object({
2239
2353
  updated_at: e.string(),
2240
2354
  finished_at: e.string().nullable().optional()
2241
2355
  }), e.object({
2242
- status: Dn.optional(),
2356
+ status: An.optional(),
2243
2357
  result: e.record(e.string(), e.unknown()).nullable().optional(),
2244
2358
  error: e.string().nullable().optional(),
2245
2359
  notified_at: e.string().nullable().optional(),
@@ -2256,7 +2370,7 @@ e.object({
2256
2370
  code: e.string(),
2257
2371
  state: e.string().optional()
2258
2372
  });
2259
- var On = e.object({
2373
+ var jn = e.object({
2260
2374
  button_border_radius: e.number(),
2261
2375
  button_border_weight: e.number(),
2262
2376
  buttons_style: e.enum([
@@ -2274,7 +2388,7 @@ var On = e.object({
2274
2388
  show_widget_shadow: e.boolean(),
2275
2389
  widget_border_weight: e.number(),
2276
2390
  widget_corner_radius: e.number()
2277
- }), kn = e.object({
2391
+ }), Mn = e.object({
2278
2392
  base_focus_color: e.string(),
2279
2393
  base_hover_color: e.string(),
2280
2394
  body_text: e.string(),
@@ -2298,20 +2412,20 @@ var On = e.object({
2298
2412
  success: e.string(),
2299
2413
  widget_background: e.string(),
2300
2414
  widget_border: e.string()
2301
- }), I = e.object({
2415
+ }), R = e.object({
2302
2416
  bold: e.boolean(),
2303
2417
  size: e.number()
2304
- }), An = e.object({
2305
- body_text: I,
2306
- buttons_text: I,
2418
+ }), Nn = e.object({
2419
+ body_text: R,
2420
+ buttons_text: R,
2307
2421
  font_url: e.string(),
2308
- input_labels: I,
2309
- links: I,
2422
+ input_labels: R,
2423
+ links: R,
2310
2424
  links_style: e.enum(["normal", "underlined"]),
2311
2425
  reference_text_size: e.number(),
2312
- subtitle: I,
2313
- title: I
2314
- }), jn = e.object({
2426
+ subtitle: R,
2427
+ title: R
2428
+ }), Pn = e.object({
2315
2429
  background_color: e.string(),
2316
2430
  background_image_url: e.string(),
2317
2431
  page_layout: e.enum([
@@ -2324,7 +2438,7 @@ var On = e.object({
2324
2438
  "chip",
2325
2439
  "none"
2326
2440
  ]).optional()
2327
- }), Mn = e.object({
2441
+ }), Fn = e.object({
2328
2442
  header_text_alignment: e.enum([
2329
2443
  "center",
2330
2444
  "left",
@@ -2341,12 +2455,12 @@ var On = e.object({
2341
2455
  social_buttons_layout: e.enum(["bottom", "top"])
2342
2456
  });
2343
2457
  e.object({
2344
- borders: On,
2345
- colors: kn,
2458
+ borders: jn,
2459
+ colors: Mn,
2346
2460
  displayName: e.string(),
2347
- fonts: An,
2348
- page_background: jn,
2349
- widget: Mn
2461
+ fonts: Nn,
2462
+ page_background: Pn,
2463
+ widget: Fn
2350
2464
  }).extend({ themeId: e.string() }), e.object({
2351
2465
  ...a,
2352
2466
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
@@ -2355,30 +2469,30 @@ e.object({
2355
2469
  show_last_used_connection: e.boolean().default(!1),
2356
2470
  webauthn_platform_first_factor: e.boolean()
2357
2471
  });
2358
- var Nn = e.object({
2472
+ var In = e.object({
2359
2473
  hosts: e.array(e.string()).optional(),
2360
2474
  methods: e.array(e.string()).optional(),
2361
2475
  path: e.string().default("/*"),
2362
2476
  headers: e.record(e.string(), e.string()).optional(),
2363
2477
  query: e.record(e.string(), e.string()).optional()
2364
- }), Pn = e.object({
2478
+ }), Ln = e.object({
2365
2479
  type: e.string(),
2366
2480
  options: e.record(e.string(), e.unknown()).default({})
2367
- }), L = e.object({
2481
+ }), z = e.object({
2368
2482
  id: e.string().optional(),
2369
2483
  custom_domain_id: e.string(),
2370
2484
  priority: e.number().int().default(100),
2371
- match: Nn,
2372
- handlers: e.array(Pn).min(1)
2373
- }), Fn = L.extend({
2485
+ match: In,
2486
+ handlers: e.array(Ln).min(1)
2487
+ }), Rn = z.extend({
2374
2488
  id: e.string(),
2375
2489
  tenant_id: e.string(),
2376
2490
  created_at: e.string(),
2377
2491
  updated_at: e.string()
2378
- }), In = L.partial().omit({
2492
+ }), zn = z.partial().omit({
2379
2493
  id: !0,
2380
2494
  custom_domain_id: !0
2381
- }), Ln = "custom_authentication", Rn = [
2495
+ }), Bn = "custom_authentication", Vn = [
2382
2496
  "urn:ietf:params:oauth:",
2383
2497
  "urn:auth0",
2384
2498
  "urn:okta",
@@ -2386,56 +2500,56 @@ var Nn = e.object({
2386
2500
  "https://auth0.com",
2387
2501
  "http://okta.com",
2388
2502
  "https://okta.com"
2389
- ], zn = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Rn.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Bn = e.enum([
2503
+ ], Hn = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Vn.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Un = e.enum([
2390
2504
  "RS256",
2391
2505
  "RS384",
2392
2506
  "RS512",
2393
2507
  "ES256",
2394
2508
  "ES384",
2395
2509
  "ES512"
2396
- ]), Vn = e.discriminatedUnion("type", [e.object({
2510
+ ]), Wn = e.discriminatedUnion("type", [e.object({
2397
2511
  type: e.literal("connection"),
2398
2512
  connection: e.string().min(1),
2399
2513
  create_if_not_exists: e.boolean().default(!0),
2400
2514
  trust_email_verified: e.boolean().default(!1)
2401
- }), e.object({ type: e.literal("user_id") })]), Hn = e.object({
2515
+ }), e.object({ type: e.literal("user_id") })]), Gn = e.object({
2402
2516
  issuer: e.string().min(1).max(2048),
2403
2517
  jwks: $t.optional(),
2404
2518
  jwks_uri: e.string().url().optional(),
2405
2519
  audience: e.array(e.string().min(1)).min(1).optional(),
2406
- algorithms: e.array(Bn).min(1).optional(),
2520
+ algorithms: e.array(Un).min(1).optional(),
2407
2521
  max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
2408
2522
  require_jti: e.boolean().default(!0),
2409
- user_mapping: Vn
2523
+ user_mapping: Wn
2410
2524
  });
2411
2525
  e.object({
2412
2526
  name: e.string().min(1).max(255),
2413
- subject_token_type: zn,
2527
+ subject_token_type: Hn,
2414
2528
  action_id: e.string().min(1).optional(),
2415
- type: e.literal(Ln),
2416
- jwt_verification: Hn.optional()
2529
+ type: e.literal(Bn),
2530
+ jwt_verification: Gn.optional()
2417
2531
  }).extend({
2418
2532
  id: e.string(),
2419
2533
  created_at: e.string(),
2420
2534
  updated_at: e.string()
2421
2535
  }), e.object({
2422
2536
  name: e.string().min(1).max(255).optional(),
2423
- subject_token_type: zn.optional(),
2424
- jwt_verification: Hn.optional()
2537
+ subject_token_type: Hn.optional(),
2538
+ jwt_verification: Gn.optional()
2425
2539
  });
2426
- var Un = e.object({
2540
+ var Kn = e.object({
2427
2541
  scim: e.string(),
2428
2542
  auth0: e.string()
2429
- }), Wn = e.object({
2543
+ }), qn = e.object({
2430
2544
  connection_id: e.string(),
2431
2545
  user_id_attribute: e.string().default("externalId"),
2432
- mapping: e.array(Un).default([])
2546
+ mapping: e.array(Kn).default([])
2433
2547
  });
2434
2548
  e.object({
2435
2549
  created_at: e.string(),
2436
2550
  updated_at: e.string()
2437
- }).extend(Wn.shape);
2438
- var Gn = e.object({
2551
+ }).extend(qn.shape);
2552
+ var Jn = e.object({
2439
2553
  token_id: e.string(),
2440
2554
  connection_id: e.string(),
2441
2555
  token_hash: e.string(),
@@ -2445,13 +2559,13 @@ var Gn = e.object({
2445
2559
  e.object({
2446
2560
  created_at: e.string(),
2447
2561
  last_used_at: e.string().optional()
2448
- }).extend(Gn.shape);
2449
- var Kn = e.object({
2562
+ }).extend(Jn.shape);
2563
+ var Yn = e.object({
2450
2564
  connection_id: e.string(),
2451
2565
  external_id: e.string(),
2452
2566
  user_id: e.string()
2453
2567
  });
2454
- e.object({ created_at: e.string() }).extend(Kn.shape), e.object({
2568
+ e.object({ created_at: e.string() }).extend(Yn.shape), e.object({
2455
2569
  ...a,
2456
2570
  name: e.string(),
2457
2571
  enabled: e.boolean().optional().default(!0),
@@ -2459,7 +2573,7 @@ e.object({ created_at: e.string() }).extend(Kn.shape), e.object({
2459
2573
  credentials: e.record(e.string(), e.unknown()),
2460
2574
  settings: e.object({}).optional()
2461
2575
  });
2462
- var qn = e.enum([
2576
+ var Xn = e.enum([
2463
2577
  "verify_email",
2464
2578
  "verify_email_by_code",
2465
2579
  "reset_email",
@@ -2474,7 +2588,7 @@ var qn = e.enum([
2474
2588
  "user_invitation"
2475
2589
  ]);
2476
2590
  e.object({
2477
- template: qn,
2591
+ template: Xn,
2478
2592
  body: e.string(),
2479
2593
  from: e.string(),
2480
2594
  subject: e.string(),
@@ -2516,10 +2630,10 @@ e.object({
2516
2630
  name: e.string(),
2517
2631
  options: e.object({})
2518
2632
  });
2519
- var Jn = e.object({
2633
+ var Zn = e.object({
2520
2634
  value: e.string(),
2521
2635
  description: e.string().optional()
2522
- }), Yn = e.object({
2636
+ }), Qn = e.object({
2523
2637
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
2524
2638
  enforce_policies: e.boolean().optional(),
2525
2639
  allow_skipping_userinfo: e.boolean().optional(),
@@ -2527,11 +2641,11 @@ var Jn = e.object({
2527
2641
  persist_client_authorization: e.boolean().optional(),
2528
2642
  enable_introspection_endpoint: e.boolean().optional(),
2529
2643
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
2530
- }), Xn = e.object({
2644
+ }), $n = e.object({
2531
2645
  id: e.string().optional(),
2532
2646
  name: e.string(),
2533
2647
  identifier: e.string(),
2534
- scopes: e.array(Jn).optional(),
2648
+ scopes: e.array(Zn).optional(),
2535
2649
  signing_alg: e.string().optional(),
2536
2650
  signing_secret: e.string().optional(),
2537
2651
  token_lifetime: e.number().default(86400),
@@ -2539,7 +2653,7 @@ var Jn = e.object({
2539
2653
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
2540
2654
  allow_offline_access: e.boolean().optional(),
2541
2655
  verificationKey: e.string().optional(),
2542
- options: Yn.optional(),
2656
+ options: Qn.optional(),
2543
2657
  is_system: e.boolean().optional(),
2544
2658
  ...a,
2545
2659
  metadata: e.record(e.string(), e.any()).optional()
@@ -2547,13 +2661,13 @@ var Jn = e.object({
2547
2661
  created_at: e.string().optional(),
2548
2662
  updated_at: e.string().optional()
2549
2663
  });
2550
- e.array(Xn);
2551
- var Zn = e.object({
2664
+ e.array($n);
2665
+ var er = e.object({
2552
2666
  role_id: e.string(),
2553
2667
  resource_server_identifier: e.string(),
2554
2668
  permission_name: e.string()
2555
2669
  }).extend({ created_at: e.string() });
2556
- e.array(Zn), e.object({
2670
+ e.array(er), e.object({
2557
2671
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
2558
2672
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
2559
2673
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -2566,7 +2680,7 @@ e.array(Zn), e.object({
2566
2680
  failed_logins: e.array(e.string()).optional(),
2567
2681
  last_password_reset: e.string().optional()
2568
2682
  });
2569
- var Qn = e.object({
2683
+ var tr = e.object({
2570
2684
  user_id: e.string(),
2571
2685
  resource_server_identifier: e.string(),
2572
2686
  permission_name: e.string(),
@@ -2575,8 +2689,8 @@ var Qn = e.object({
2575
2689
  tenant_id: e.string(),
2576
2690
  created_at: e.string().optional()
2577
2691
  });
2578
- e.array(Qn);
2579
- var $n = e.object({
2692
+ e.array(tr);
2693
+ var nr = e.object({
2580
2694
  user_id: e.string(),
2581
2695
  resource_server_identifier: e.string(),
2582
2696
  resource_server_name: e.string(),
@@ -2585,8 +2699,8 @@ var $n = e.object({
2585
2699
  created_at: e.string().optional(),
2586
2700
  organization_id: e.string().optional()
2587
2701
  });
2588
- e.array($n);
2589
- var er = e.object({
2702
+ e.array(nr);
2703
+ var rr = e.object({
2590
2704
  user_id: e.string(),
2591
2705
  role_id: e.string(),
2592
2706
  organization_id: e.string().optional()
@@ -2594,8 +2708,8 @@ var er = e.object({
2594
2708
  tenant_id: e.string(),
2595
2709
  created_at: e.string().optional()
2596
2710
  });
2597
- e.array(er);
2598
- var tr = e.object({
2711
+ e.array(rr);
2712
+ var ir = e.object({
2599
2713
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
2600
2714
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
2601
2715
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -2606,19 +2720,19 @@ var tr = e.object({
2606
2720
  created_at: e.string().optional(),
2607
2721
  updated_at: e.string().optional()
2608
2722
  });
2609
- e.array(tr);
2610
- var nr = e.object({
2723
+ e.array(ir);
2724
+ var ar = e.object({
2611
2725
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
2612
2726
  colors: e.object({
2613
2727
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
2614
2728
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
2615
2729
  }).optional()
2616
- }).optional(), rr = e.object({
2730
+ }).optional(), or = e.object({
2617
2731
  connection_id: e.string().openapi({ description: "ID of the connection" }),
2618
2732
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
2619
2733
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
2620
2734
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
2621
- }), ir = e.object({ client_credentials: e.object({
2735
+ }), sr = e.object({ client_credentials: e.object({
2622
2736
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
2623
2737
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
2624
2738
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -2627,15 +2741,15 @@ e.object({
2627
2741
  id: e.string().optional(),
2628
2742
  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." }),
2629
2743
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
2630
- branding: nr,
2744
+ branding: ar,
2631
2745
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
2632
- enabled_connections: e.array(rr).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
2633
- token_quota: ir
2746
+ enabled_connections: e.array(or).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
2747
+ token_quota: sr
2634
2748
  }).extend(n.shape).extend({
2635
2749
  id: e.string(),
2636
2750
  name: e.string().min(1).openapi({ description: "The name of the organization" })
2637
2751
  });
2638
- var ar = e.object({
2752
+ var cr = e.object({
2639
2753
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
2640
2754
  assign_membership_on_login: e.boolean().optional().default(!1),
2641
2755
  show_as_button: e.boolean().optional().default(!0),
@@ -2648,89 +2762,10 @@ var ar = e.object({
2648
2762
  created_at: e.string().optional(),
2649
2763
  updated_at: e.string().optional()
2650
2764
  });
2651
- e.array(ar), e.object({
2765
+ e.array(cr), e.object({
2652
2766
  user_id: e.string().openapi({ description: "ID of the user" }),
2653
2767
  organization_id: e.string().openapi({ description: "ID of the organization" })
2654
2768
  }).extend(n.shape).extend({ id: e.string() }), e.object({
2655
- idle_session_lifetime: e.number().default(72),
2656
- session_lifetime: e.number().default(168),
2657
- session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
2658
- enable_client_connections: e.boolean().optional(),
2659
- default_redirection_uri: e.string().optional(),
2660
- enabled_locales: e.array(e.string()).optional(),
2661
- default_directory: e.string().optional(),
2662
- error_page: e.object({
2663
- html: e.string().optional(),
2664
- show_log_link: e.boolean().optional(),
2665
- url: e.string().optional()
2666
- }).optional(),
2667
- flags: e.object({
2668
- allow_legacy_delegation_grant_types: e.boolean().optional(),
2669
- allow_legacy_ro_grant_types: e.boolean().optional(),
2670
- allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
2671
- disable_clickjack_protection_headers: e.boolean().optional(),
2672
- enable_apis_section: e.boolean().optional(),
2673
- enable_client_connections: e.boolean().optional(),
2674
- enable_custom_domain_in_emails: e.boolean().optional(),
2675
- enable_dynamic_client_registration: e.boolean().optional(),
2676
- enable_idtoken_api2: e.boolean().optional(),
2677
- enable_legacy_logs_search_v2: e.boolean().optional(),
2678
- enable_legacy_profile: e.boolean().optional(),
2679
- enable_pipeline2: e.boolean().optional(),
2680
- enable_public_signup_user_exists_error: e.boolean().optional(),
2681
- use_scope_descriptions_for_consent: e.boolean().optional(),
2682
- disable_management_api_sms_obfuscation: e.boolean().optional(),
2683
- enable_adfs_waad_email_verification: e.boolean().optional(),
2684
- revoke_refresh_token_grant: e.boolean().optional(),
2685
- dashboard_log_streams_next: e.boolean().optional(),
2686
- dashboard_insights_view: e.boolean().optional(),
2687
- disable_fields_map_fix: e.boolean().optional(),
2688
- mfa_show_factor_list_on_enrollment: e.boolean().optional()
2689
- }).optional(),
2690
- friendly_name: e.string().optional(),
2691
- picture_url: e.string().optional(),
2692
- support_email: e.string().optional(),
2693
- support_url: e.string().optional(),
2694
- sandbox_version: e.string().optional(),
2695
- sandbox_versions_available: e.array(e.string()).optional(),
2696
- change_password: e.object({
2697
- enabled: e.boolean(),
2698
- html: e.string()
2699
- }).optional(),
2700
- guardian_mfa_page: e.object({
2701
- enabled: e.boolean(),
2702
- html: e.string()
2703
- }).optional(),
2704
- default_audience: e.string().optional(),
2705
- default_organization: e.string().optional(),
2706
- sessions: e.object({ oidc_logout_prompt_enabled: e.boolean().optional() }).optional(),
2707
- mfa: e.object({
2708
- policy: e.enum(["never", "always"]).default("never").optional(),
2709
- factors: e.object({
2710
- sms: e.boolean().default(!1),
2711
- otp: e.boolean().default(!1),
2712
- email: e.boolean().default(!1),
2713
- push_notification: e.boolean().default(!1),
2714
- webauthn_roaming: e.boolean().default(!1),
2715
- webauthn_platform: e.boolean().default(!1),
2716
- recovery_code: e.boolean().default(!1),
2717
- duo: e.boolean().default(!1)
2718
- }).optional(),
2719
- sms_provider: e.object({ provider: e.enum([
2720
- "twilio",
2721
- "vonage",
2722
- "aws_sns",
2723
- "phone_message_hook"
2724
- ]).optional() }).optional(),
2725
- twilio: e.object({
2726
- sid: e.string().optional(),
2727
- auth_token: e.string().optional(),
2728
- from: e.string().optional(),
2729
- messaging_service_sid: e.string().optional()
2730
- }).optional(),
2731
- phone_message: e.object({ message: e.string().optional() }).optional()
2732
- }).optional()
2733
- }), e.object({
2734
2769
  date: e.string().openapi({
2735
2770
  description: "Date these events occurred in ISO 8601 format",
2736
2771
  example: "2025-12-19"
@@ -2787,7 +2822,7 @@ e.array(ar), e.object({
2787
2822
  "passwordless",
2788
2823
  "enterprise"
2789
2824
  ]);
2790
- var or = e.object({
2825
+ var lr = e.object({
2791
2826
  cohort: e.string(),
2792
2827
  sessions: e.number(),
2793
2828
  active: e.array(e.number())
@@ -2796,9 +2831,9 @@ e.object({
2796
2831
  interval: e.literal("week"),
2797
2832
  from: e.string(),
2798
2833
  to: e.string(),
2799
- cohorts: e.array(or)
2834
+ cohorts: e.array(lr)
2800
2835
  });
2801
- var sr = e.object({
2836
+ var ur = e.object({
2802
2837
  cohort: e.string(),
2803
2838
  tokens: e.number(),
2804
2839
  active: e.array(e.number())
@@ -2807,24 +2842,24 @@ e.object({
2807
2842
  interval: e.literal("week"),
2808
2843
  from: e.string(),
2809
2844
  to: e.string(),
2810
- cohorts: e.array(sr)
2845
+ cohorts: e.array(ur)
2811
2846
  });
2812
- var cr = e.object({
2847
+ var dr = e.object({
2813
2848
  name: e.string(),
2814
2849
  type: e.string()
2815
- }), lr = e.object({
2850
+ }), fr = e.object({
2816
2851
  elapsed: e.number(),
2817
2852
  rows_read: e.number().optional(),
2818
2853
  bytes_read: e.number().optional()
2819
2854
  });
2820
2855
  e.object({
2821
- meta: e.array(cr),
2856
+ meta: e.array(dr),
2822
2857
  data: e.array(e.record(e.string(), e.any())),
2823
2858
  rows: e.number(),
2824
2859
  rows_before_limit_at_least: e.number().optional(),
2825
- statistics: lr.optional()
2860
+ statistics: fr.optional()
2826
2861
  });
2827
- var ur = 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(".")), dr = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2862
+ var pr = 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(".")), mr = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2828
2863
  type: "object",
2829
2864
  additionalProperties: {
2830
2865
  type: "object",
@@ -2832,23 +2867,23 @@ var ur = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
2832
2867
  }
2833
2868
  });
2834
2869
  e.object({
2835
- prompt: ur,
2870
+ prompt: pr,
2836
2871
  language: e.string(),
2837
- custom_text: dr
2872
+ custom_text: mr
2838
2873
  });
2839
- var fr = e.object({
2874
+ var hr = e.object({
2840
2875
  "form-content-start": e.string().optional(),
2841
2876
  "form-content-end": e.string().optional(),
2842
2877
  "form-footer-start": e.string().optional(),
2843
2878
  "form-footer-end": e.string().optional(),
2844
2879
  "secondary-actions-start": e.string().optional(),
2845
2880
  "secondary-actions-end": e.string().optional()
2846
- }).strict(), pr = e.record(e.string(), fr);
2881
+ }).strict(), gr = e.record(e.string(), hr);
2847
2882
  e.object({
2848
2883
  prompt: e.string(),
2849
- partials: pr
2884
+ partials: gr
2850
2885
  });
2851
- var mr = e.enum([
2886
+ var _r = e.enum([
2852
2887
  "phone",
2853
2888
  "totp",
2854
2889
  "email",
@@ -2856,11 +2891,12 @@ var mr = e.enum([
2856
2891
  "webauthn-roaming",
2857
2892
  "webauthn-platform",
2858
2893
  "passkey"
2859
- ]), R = e.object({
2894
+ ]), vr = e.object({
2860
2895
  user_id: e.string(),
2861
- type: mr,
2896
+ type: _r,
2862
2897
  phone_number: e.string().optional(),
2863
2898
  totp_secret: e.string().optional(),
2899
+ totp_last_step: e.number().int().nonnegative().optional(),
2864
2900
  credential_id: e.string().optional(),
2865
2901
  public_key: e.string().optional(),
2866
2902
  sign_count: e.number().int().nonnegative().optional(),
@@ -2869,7 +2905,7 @@ var mr = e.enum([
2869
2905
  friendly_name: e.string().optional(),
2870
2906
  confirmed: e.boolean().default(!1)
2871
2907
  });
2872
- function z(t, n) {
2908
+ function yr(t, n) {
2873
2909
  t.type === "phone" && !t.phone_number && n.addIssue({
2874
2910
  code: e.ZodIssueCode.custom,
2875
2911
  message: "phone_number is required when type is 'phone'",
@@ -2892,16 +2928,16 @@ function z(t, n) {
2892
2928
  path: ["public_key"]
2893
2929
  }));
2894
2930
  }
2895
- R.superRefine(z), R.extend({
2931
+ vr.superRefine(yr), vr.extend({
2896
2932
  id: e.string(),
2897
2933
  created_at: e.string(),
2898
2934
  updated_at: e.string()
2899
- }).superRefine(z), e.object({
2935
+ }).superRefine(yr), e.object({
2900
2936
  id: e.string().optional(),
2901
2937
  created_at: e.string().datetime({ offset: !0 }).optional(),
2902
2938
  updated_at: e.string().datetime({ offset: !0 }).optional()
2903
2939
  });
2904
- var hr = "x-authhero-preserve-location", B = class extends Error {
2940
+ var br = "x-authhero-preserve-location", B = class extends Error {
2905
2941
  ms;
2906
2942
  constructor(e, t) {
2907
2943
  super(`${t ?? "Operation"} timed out after ${e}ms`), this.name = "TimeoutError", this.ms = e;
@@ -2914,7 +2950,7 @@ function H(e, t) {
2914
2950
  let n = new AbortController(), r = setTimeout(() => n.abort(), e);
2915
2951
  return t(n.signal).finally(() => clearTimeout(r));
2916
2952
  }
2917
- function gr(e) {
2953
+ function xr(e) {
2918
2954
  let t = e.filter((e) => e !== void 0);
2919
2955
  if (t.length <= 1) return t[0];
2920
2956
  if (typeof AbortSignal.any == "function") return AbortSignal.any(t);
@@ -2928,7 +2964,7 @@ function gr(e) {
2928
2964
  return n.signal;
2929
2965
  }
2930
2966
  function U(e, t, n, r) {
2931
- let i = new AbortController(), a = gr([n, i.signal]) ?? i.signal, o, s = new Promise((n, r) => {
2967
+ let i = new AbortController(), a = xr([n, i.signal]) ?? i.signal, o, s = new Promise((n, r) => {
2932
2968
  o = setTimeout(() => {
2933
2969
  let n = new B(e, t);
2934
2970
  i.abort(n), r(n);
@@ -2946,12 +2982,12 @@ function W(e, t, n) {
2946
2982
  }
2947
2983
  //#endregion
2948
2984
  //#region src/data-plane/cache.ts
2949
- var _r = 1e4, vr = 8e3;
2985
+ var Sr = 1e4, Cr = 8e3;
2950
2986
  function G(e, t, n) {
2951
2987
  let r = typeof t == "number" ? {
2952
2988
  freshTtlMs: t,
2953
2989
  maxEntries: n
2954
- } : t, i = r.freshTtlMs, a = r.staleTtlMs ?? 0, o = r.staleIfErrorTtlMs ?? 0, s = r.negativeTtlMs ?? i, c = r.maxEntries ?? _r, l = r.waitUntil, u = r.upstreamTimeoutMs ?? vr, d = u > 0 ? u : 1e4, f = /* @__PURE__ */ new Map();
2990
+ } : t, i = r.freshTtlMs, a = r.staleTtlMs ?? 0, o = r.staleIfErrorTtlMs ?? 0, s = r.negativeTtlMs ?? i, c = r.maxEntries ?? Sr, l = r.waitUntil, u = r.upstreamTimeoutMs ?? Cr, d = u > 0 ? u : 1e4, f = /* @__PURE__ */ new Map();
2955
2991
  function p(e) {
2956
2992
  for (let [t, n] of f) n.stale_if_error_until <= e && n.stale_until <= e && f.delete(t);
2957
2993
  for (; f.size >= c;) {
@@ -3006,7 +3042,7 @@ function G(e, t, n) {
3006
3042
  }
3007
3043
  //#endregion
3008
3044
  //#region src/data-plane/registry.ts
3009
- var yr = class {
3045
+ var wr = class {
3010
3046
  definitions = /* @__PURE__ */ new Map();
3011
3047
  bindings;
3012
3048
  constructor(e = {}) {
@@ -3031,33 +3067,33 @@ function K(e) {
3031
3067
  }
3032
3068
  //#endregion
3033
3069
  //#region src/data-plane/handlers/util.ts
3034
- var br = "__authhero_proxy_request__", xr = "__authhero_proxy_tenant_id__", Sr = "__authhero_proxy_custom_domain_id__", Cr = "__authhero_proxy_domain__", wr = "x-authhero-proxy-mutability-probe";
3035
- function Tr(e, t) {
3036
- e.set(br, t);
3070
+ var Tr = "__authhero_proxy_request__", Er = "__authhero_proxy_tenant_id__", Dr = "__authhero_proxy_custom_domain_id__", Or = "__authhero_proxy_domain__", kr = "x-authhero-proxy-mutability-probe";
3071
+ function Ar(e, t) {
3072
+ e.set(Tr, t);
3037
3073
  }
3038
3074
  function q(e) {
3039
- return e.get(br) ?? e.req.raw;
3075
+ return e.get(Tr) ?? e.req.raw;
3040
3076
  }
3041
- function Er(e, t) {
3042
- e.set(xr, t.tenant_id), e.set(Sr, t.custom_domain_id), e.set(Cr, t.domain);
3077
+ function jr(e, t) {
3078
+ e.set(Er, t.tenant_id), e.set(Dr, t.custom_domain_id), e.set(Or, t.domain);
3043
3079
  }
3044
- function Dr(e) {
3045
- return e.get(xr);
3080
+ function Mr(e) {
3081
+ return e.get(Er);
3046
3082
  }
3047
- function Or(e) {
3048
- return e.get(Sr);
3083
+ function Nr(e) {
3084
+ return e.get(Dr);
3049
3085
  }
3050
- function kr(e) {
3051
- return e.get(Cr);
3086
+ function Pr(e) {
3087
+ return e.get(Or);
3052
3088
  }
3053
- function Ar(e, t) {
3089
+ function Fr(e, t) {
3054
3090
  let n = q(e), r = new Headers(n.headers);
3055
- t(r), Tr(e, new Request(n, { headers: r }));
3091
+ t(r), Ar(e, new Request(n, { headers: r }));
3056
3092
  }
3057
3093
  function J(e) {
3058
3094
  let t = e.res;
3059
3095
  try {
3060
- t.headers.append(wr, "1"), t.headers.delete(wr);
3096
+ t.headers.append(kr, "1"), t.headers.delete(kr);
3061
3097
  return;
3062
3098
  } catch {
3063
3099
  e.res = new Response(t.body, {
@@ -3069,7 +3105,7 @@ function J(e) {
3069
3105
  }
3070
3106
  //#endregion
3071
3107
  //#region src/data-plane/handlers/cors.ts
3072
- var jr = e.object({
3108
+ var Ir = e.object({
3073
3109
  origins: e.array(e.string()).optional(),
3074
3110
  allow_credentials: e.boolean().optional(),
3075
3111
  allow_headers: e.array(e.string()).optional(),
@@ -3077,44 +3113,44 @@ var jr = e.object({
3077
3113
  expose_headers: e.array(e.string()).optional(),
3078
3114
  max_age: e.number().int().optional()
3079
3115
  }).refine((e) => !(e.allow_credentials && e.origins?.includes("*")), { message: "Cannot use wildcard origin (*) with allow_credentials" });
3080
- function Mr(e, t) {
3116
+ function Lr(e, t) {
3081
3117
  let n = new Headers(), r = e.origins ?? ["*"], i = r.includes("*");
3082
3118
  return i && !e.allow_credentials ? n.set("Access-Control-Allow-Origin", "*") : t && (i || r.includes(t)) && (n.set("Access-Control-Allow-Origin", t), n.append("Vary", "Origin")), e.allow_credentials && n.set("Access-Control-Allow-Credentials", "true"), e.allow_methods?.length && n.set("Access-Control-Allow-Methods", e.allow_methods.join(", ")), e.allow_headers?.length && n.set("Access-Control-Allow-Headers", e.allow_headers.join(", ")), e.expose_headers?.length && n.set("Access-Control-Expose-Headers", e.expose_headers.join(", ")), e.max_age !== void 0 && n.set("Access-Control-Max-Age", String(e.max_age)), n;
3083
3119
  }
3084
- var Nr = K({
3120
+ var Rr = K({
3085
3121
  type: "cors",
3086
- optionsSchema: jr,
3122
+ optionsSchema: Ir,
3087
3123
  build(e) {
3088
3124
  return async (t, n) => {
3089
3125
  let r = t.req.header("origin") ?? null;
3090
3126
  if (t.req.method === "OPTIONS" && r !== null && t.req.header("access-control-request-method") !== void 0) {
3091
- let t = Mr(e, r);
3127
+ let t = Lr(e, r);
3092
3128
  return new Response(null, {
3093
3129
  status: 204,
3094
3130
  headers: t
3095
3131
  });
3096
3132
  }
3097
3133
  await n();
3098
- let i = Mr(e, r);
3134
+ let i = Lr(e, r);
3099
3135
  J(t), i.forEach((e, n) => {
3100
3136
  n.toLowerCase() === "vary" ? t.res.headers.append(n, e) : t.res.headers.set(n, e);
3101
3137
  });
3102
3138
  };
3103
3139
  }
3104
- }), Pr = e.object({
3140
+ }), zr = e.object({
3105
3141
  username: e.string(),
3106
3142
  password: e.string(),
3107
3143
  realm: e.string().optional()
3108
3144
  });
3109
- function Fr(e, t) {
3145
+ function Br(e, t) {
3110
3146
  let n = `${e}:${t}`;
3111
3147
  return typeof btoa == "function" ? btoa(n) : Buffer.from(n, "utf-8").toString("base64");
3112
3148
  }
3113
- var Ir = K({
3149
+ var Vr = K({
3114
3150
  type: "basic_auth",
3115
- optionsSchema: Pr,
3151
+ optionsSchema: zr,
3116
3152
  build(e) {
3117
- let t = Fr(e.username, e.password), n = (e.realm ?? "Restricted").replace(/["\\\r\n]/g, "");
3153
+ let t = Br(e.username, e.password), n = (e.realm ?? "Restricted").replace(/["\\\r\n]/g, "");
3118
3154
  return async (e, r) => {
3119
3155
  let i = e.req.header("authorization");
3120
3156
  if (i) {
@@ -3130,7 +3166,7 @@ var Ir = K({
3130
3166
  });
3131
3167
  };
3132
3168
  }
3133
- }), Lr = K({
3169
+ }), Hr = K({
3134
3170
  type: "headers",
3135
3171
  optionsSchema: e.object({
3136
3172
  request: e.record(e.string(), e.string()).optional(),
@@ -3140,12 +3176,12 @@ var Ir = K({
3140
3176
  }),
3141
3177
  build(e) {
3142
3178
  return async (t, n) => {
3143
- if ((e.request || e.remove_request) && Ar(t, (t) => {
3179
+ if ((e.request || e.remove_request) && Fr(t, (t) => {
3144
3180
  if (e.remove_request?.forEach((e) => t.delete(e)), e.request) for (let [n, r] of Object.entries(e.request)) t.set(n, r);
3145
3181
  }), await n(), (e.response || e.remove_response) && (J(t), e.remove_response?.forEach((e) => t.res.headers.delete(e)), e.response)) for (let [n, r] of Object.entries(e.response)) t.res.headers.set(n, r);
3146
3182
  };
3147
3183
  }
3148
- }), Rr = K({
3184
+ }), Ur = K({
3149
3185
  type: "cache",
3150
3186
  optionsSchema: e.object({ ttl_seconds: e.number().int().positive() }),
3151
3187
  build(e) {
@@ -3156,7 +3192,7 @@ var Ir = K({
3156
3192
  }
3157
3193
  };
3158
3194
  }
3159
- }), zr = [
3195
+ }), Wr = [
3160
3196
  "173.245.48.0/20",
3161
3197
  "103.21.244.0/22",
3162
3198
  "103.22.200.0/22",
@@ -3180,7 +3216,7 @@ var Ir = K({
3180
3216
  "2a06:98c0::/29",
3181
3217
  "2c0f:f248::/32"
3182
3218
  ];
3183
- function Br(e) {
3219
+ function Gr(e) {
3184
3220
  let t = e.split(".");
3185
3221
  if (t.length !== 4) return null;
3186
3222
  let n = [];
@@ -3192,14 +3228,14 @@ function Br(e) {
3192
3228
  }
3193
3229
  return n;
3194
3230
  }
3195
- function Vr(e) {
3231
+ function Kr(e) {
3196
3232
  if (e === "") return [];
3197
3233
  let t = e.split(":"), n = [];
3198
3234
  for (let e = 0; e < t.length; e++) {
3199
3235
  let r = t[e];
3200
3236
  if (r.includes(".")) {
3201
3237
  if (e !== t.length - 1) return null;
3202
- let i = Br(r);
3238
+ let i = Gr(r);
3203
3239
  if (!i) return null;
3204
3240
  n.push(i[0] << 8 | i[1], i[2] << 8 | i[3]);
3205
3241
  continue;
@@ -3209,14 +3245,14 @@ function Vr(e) {
3209
3245
  }
3210
3246
  return n;
3211
3247
  }
3212
- function Hr(e) {
3248
+ function qr(e) {
3213
3249
  let t = e.split("::");
3214
3250
  if (t.length > 2) return null;
3215
- let n = Vr(t[0] ?? "");
3251
+ let n = Kr(t[0] ?? "");
3216
3252
  if (!n) return null;
3217
3253
  let r;
3218
3254
  if (t.length === 2) {
3219
- let e = Vr(t[1] ?? "");
3255
+ let e = Kr(t[1] ?? "");
3220
3256
  if (!e) return null;
3221
3257
  let i = 8 - n.length - e.length;
3222
3258
  if (i < 1) return null;
@@ -3231,25 +3267,25 @@ function Hr(e) {
3231
3267
  for (let e of r) i.push(e >> 8 & 255, e & 255);
3232
3268
  return i;
3233
3269
  }
3234
- function Ur(e) {
3270
+ function Jr(e) {
3235
3271
  let t = e.trim();
3236
3272
  t.startsWith("[") && t.endsWith("]") && (t = t.slice(1, -1));
3237
3273
  let n = t.indexOf("%");
3238
3274
  if (n !== -1 && (t = t.slice(0, n)), t === "") return null;
3239
- if (!t.includes(":")) return Br(t);
3240
- let r = Hr(t);
3275
+ if (!t.includes(":")) return Gr(t);
3276
+ let r = qr(t);
3241
3277
  return r ? r.slice(0, 10).every((e) => e === 0) && r[10] === 255 && r[11] === 255 ? r.slice(12) : r : null;
3242
3278
  }
3243
- function Wr(e) {
3244
- let [t, n] = e.split("/"), r = Ur(t ?? ""), i = Number(n);
3279
+ function Yr(e) {
3280
+ let [t, n] = e.split("/"), r = Jr(t ?? ""), i = Number(n);
3245
3281
  if (!r || !Number.isInteger(i)) throw Error(`Invalid Cloudflare CIDR: ${e}`);
3246
3282
  return {
3247
3283
  bytes: r,
3248
3284
  prefixBits: i
3249
3285
  };
3250
3286
  }
3251
- var Gr = zr.map(Wr);
3252
- function Kr(e, t) {
3287
+ var Xr = Wr.map(Yr);
3288
+ function Zr(e, t) {
3253
3289
  if (e.length !== t.bytes.length) return !1;
3254
3290
  let n = t.prefixBits >> 3;
3255
3291
  for (let r = 0; r < n; r++) if (e[r] !== t.bytes[r]) return !1;
@@ -3258,11 +3294,11 @@ function Kr(e, t) {
3258
3294
  let i = 255 << 8 - r & 255;
3259
3295
  return (e[n] & i) === (t.bytes[n] & i);
3260
3296
  }
3261
- function qr(e) {
3262
- let t = Ur(e);
3263
- return t ? Gr.some((e) => Kr(t, e)) : !1;
3297
+ function Qr(e) {
3298
+ let t = Jr(e);
3299
+ return t ? Xr.some((e) => Zr(t, e)) : !1;
3264
3300
  }
3265
- var Jr = K({
3301
+ var $r = K({
3266
3302
  type: "forwarded_headers",
3267
3303
  optionsSchema: e.object({
3268
3304
  client_ip_header: e.string().default("cf-connecting-ip"),
@@ -3273,46 +3309,46 @@ var Jr = K({
3273
3309
  build(e) {
3274
3310
  return async (t, n) => {
3275
3311
  let r = new URL(t.req.url);
3276
- Ar(t, (n) => {
3312
+ Fr(t, (n) => {
3277
3313
  n.set("x-forwarded-host", r.host), n.set("x-forwarded-proto", r.protocol.replace(":", "")), e.set_x_original_url && n.set("x-original-url", t.req.url);
3278
- let i = n.get(e.client_ip_header), a = i && e.skip_cloudflare_client_ip && qr(i) ? null : i, o = (n.get("x-forwarded-for") ?? "").split(",").map((e) => e.trim()).filter(Boolean), s = a ?? o[o.length - 1] ?? "127.0.0.1", c = o.length === 0 || o[o.length - 1] !== s, l = o.length ? c ? `${o.join(", ")}, ${s}` : o.join(", ") : s;
3314
+ let i = n.get(e.client_ip_header), a = i && e.skip_cloudflare_client_ip && Qr(i) ? null : i, o = (n.get("x-forwarded-for") ?? "").split(",").map((e) => e.trim()).filter(Boolean), s = a ?? o[o.length - 1] ?? "127.0.0.1", c = o.length === 0 || o[o.length - 1] !== s, l = o.length ? c ? `${o.join(", ")}, ${s}` : o.join(", ") : s;
3279
3315
  n.set("x-forwarded-for", l), e.set_x_real_ip && n.set("x-real-ip", s);
3280
3316
  }), await n();
3281
3317
  };
3282
3318
  }
3283
- }), Yr = e.object({ upstream_host: e.string().optional() });
3284
- function Xr(e) {
3319
+ }), ei = e.object({ upstream_host: e.string().optional() });
3320
+ function ti(e) {
3285
3321
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3286
3322
  }
3287
- function Zr(e) {
3323
+ function ni(e) {
3288
3324
  if (typeof e.getSetCookie == "function") return e.getSetCookie();
3289
3325
  let t = [];
3290
3326
  return e.forEach((e, n) => {
3291
3327
  n.toLowerCase() === "set-cookie" && t.push(e);
3292
3328
  }), t;
3293
3329
  }
3294
- var Qr = K({
3330
+ var ri = K({
3295
3331
  type: "rewrite_cookies",
3296
- optionsSchema: Yr,
3332
+ optionsSchema: ei,
3297
3333
  build(e) {
3298
3334
  return async (t, n) => {
3299
3335
  await n();
3300
3336
  let r = new URL(t.req.url).hostname, i = e.upstream_host ?? t.get("__proxy_upstream_host__");
3301
3337
  if (!i) return;
3302
- let a = Zr(t.res.headers);
3338
+ let a = ni(t.res.headers);
3303
3339
  if (a.length === 0) return;
3304
- let o = Xr(i), s = RegExp(`(?:^|;\\s*)Domain=\\.?${o}(?=;|$)`, "i");
3340
+ let o = ti(i), s = RegExp(`(?:^|;\\s*)Domain=\\.?${o}(?=;|$)`, "i");
3305
3341
  J(t), t.res.headers.delete("set-cookie");
3306
3342
  for (let e of a) t.res.headers.append("set-cookie", e.replace(s, `Domain=${r}`));
3307
3343
  };
3308
3344
  }
3309
- }), $r = K({
3345
+ }), ii = K({
3310
3346
  type: "rewrite_location",
3311
3347
  optionsSchema: e.object({ upstream_origin: e.string().optional() }),
3312
3348
  build(e) {
3313
3349
  return async (t, n) => {
3314
3350
  if (await n(), t.res.headers.has("x-authhero-preserve-location")) {
3315
- J(t), t.res.headers.delete(hr);
3351
+ J(t), t.res.headers.delete(br);
3316
3352
  return;
3317
3353
  }
3318
3354
  let r = t.res.status;
@@ -3332,7 +3368,7 @@ var Qr = K({
3332
3368
  J(t), t.res.headers.set("location", c);
3333
3369
  };
3334
3370
  }
3335
- }), ei = new Set([
3371
+ }), ai = new Set([
3336
3372
  "connection",
3337
3373
  "keep-alive",
3338
3374
  "proxy-authenticate",
@@ -3341,25 +3377,25 @@ var Qr = K({
3341
3377
  "trailers",
3342
3378
  "transfer-encoding",
3343
3379
  "upgrade"
3344
- ]), ti = 3e4, ni = e.object({
3380
+ ]), oi = 3e4, si = e.object({
3345
3381
  upstream_url: e.string(),
3346
3382
  preserve_host: e.boolean().default(!1),
3347
3383
  timeout_ms: e.number().int().positive().optional()
3348
3384
  });
3349
- function ri(e, t) {
3385
+ function ci(e, t) {
3350
3386
  return e === "" || e === "/" ? t : `${e.endsWith("/") ? e.slice(0, -1) : e}${t.startsWith("/") ? t : `/${t}`}`;
3351
3387
  }
3352
- function ii(e) {
3388
+ function li(e) {
3353
3389
  return e !== "GET" && e !== "HEAD";
3354
3390
  }
3355
- var ai = 128 * 1024;
3356
- function oi(e) {
3391
+ var ui = 128 * 1024;
3392
+ function di(e) {
3357
3393
  let t = e.headers.get("content-length");
3358
3394
  if (t === null) return null;
3359
3395
  let n = Number(t);
3360
3396
  return Number.isInteger(n) && n >= 0 ? n : null;
3361
3397
  }
3362
- async function si(e, t) {
3398
+ async function fi(e, t) {
3363
3399
  let n = e.getReader(), r = !1, i = setTimeout(() => {
3364
3400
  r = !0, n.cancel().catch(() => {});
3365
3401
  }, t), a = [], o = 0;
@@ -3377,7 +3413,7 @@ async function si(e, t) {
3377
3413
  for (let e of a) s.set(e, c), c += e.byteLength;
3378
3414
  return s.buffer;
3379
3415
  }
3380
- function ci(e) {
3416
+ function pi(e) {
3381
3417
  return V(e) ? new Response("Request body timeout", {
3382
3418
  status: 408,
3383
3419
  headers: { "x-authhero-proxy-error": "request_body_timeout" }
@@ -3386,20 +3422,20 @@ function ci(e) {
3386
3422
  headers: { "x-authhero-proxy-error": "request_body_failed" }
3387
3423
  });
3388
3424
  }
3389
- async function li(e, t, n) {
3390
- if (!ii(e.method) || !e.body) return;
3391
- let r = oi(e);
3392
- if (r === null || r > ai) return e.body;
3393
- let i = await si(e.body, n);
3425
+ async function mi(e, t, n) {
3426
+ if (!li(e.method) || !e.body) return;
3427
+ let r = di(e);
3428
+ if (r === null || r > ui) return e.body;
3429
+ let i = await fi(e.body, n);
3394
3430
  return t.set("content-length", String(i.byteLength)), i;
3395
3431
  }
3396
- async function ui(e, t, n) {
3432
+ async function hi(e, t, n) {
3397
3433
  let r = new URL(t.url), i = new URL(e.upstream_url);
3398
- i.pathname = ri(i.pathname, r.pathname), i.search = r.search;
3434
+ i.pathname = ci(i.pathname, r.pathname), i.search = r.search;
3399
3435
  let a = new Headers(t.headers);
3400
- for (let e of ei) a.delete(e);
3436
+ for (let e of ai) a.delete(e);
3401
3437
  e.preserve_host || a.set("host", i.host), a.has("x-forwarded-host") || a.set("x-forwarded-host", r.host), a.has("x-forwarded-proto") || a.set("x-forwarded-proto", r.protocol.replace(":", ""));
3402
- let o = await li(t, a, n), s = {
3438
+ let o = await mi(t, a, n), s = {
3403
3439
  method: t.method,
3404
3440
  headers: a,
3405
3441
  body: o,
@@ -3410,17 +3446,17 @@ async function ui(e, t, n) {
3410
3446
  init: s
3411
3447
  };
3412
3448
  }
3413
- var di = K({
3449
+ var gi = K({
3414
3450
  type: "http",
3415
- optionsSchema: ni,
3451
+ optionsSchema: si,
3416
3452
  build(e) {
3417
- let t = e.timeout_ms ?? ti;
3453
+ let t = e.timeout_ms ?? oi;
3418
3454
  return async (n) => {
3419
3455
  let r = q(n), i;
3420
3456
  try {
3421
- i = await ui(e, r, t);
3457
+ i = await hi(e, r, t);
3422
3458
  } catch (e) {
3423
- return ci(e);
3459
+ return pi(e);
3424
3460
  }
3425
3461
  let { target: a, init: o } = i;
3426
3462
  n.set("__proxy_upstream_host__", a.hostname), n.set("__proxy_upstream_origin__", `${a.protocol}//${a.host}`);
@@ -3434,31 +3470,31 @@ var di = K({
3434
3470
  }
3435
3471
  };
3436
3472
  }
3437
- }), fi = 3e4, pi = e.object({
3473
+ }), _i = 3e4, vi = e.object({
3438
3474
  binding: e.string(),
3439
3475
  upstream_url: e.string().optional(),
3440
3476
  preserve_host: e.boolean().default(!0),
3441
3477
  timeout_ms: e.number().int().positive().optional()
3442
3478
  });
3443
- function mi(e) {
3479
+ function yi(e) {
3444
3480
  return typeof e == "object" && !!e && typeof e.fetch == "function";
3445
3481
  }
3446
- var hi = K({
3482
+ var bi = K({
3447
3483
  type: "service_binding",
3448
- optionsSchema: pi,
3484
+ optionsSchema: vi,
3449
3485
  build(e, t) {
3450
3486
  let n = t.bindings[e.binding];
3451
- if (!mi(n)) throw Error(`Service binding "${e.binding}" is not configured or is not a Fetcher`);
3452
- let r = e.upstream_url ?? `https://${e.binding}.binding.invalid/`, i = e.timeout_ms ?? fi;
3487
+ if (!yi(n)) throw Error(`Service binding "${e.binding}" is not configured or is not a Fetcher`);
3488
+ let r = e.upstream_url ?? `https://${e.binding}.binding.invalid/`, i = e.timeout_ms ?? _i;
3453
3489
  return async (t) => {
3454
3490
  let a = q(t), o;
3455
3491
  try {
3456
- o = await ui({
3492
+ o = await hi({
3457
3493
  upstream_url: r,
3458
3494
  preserve_host: e.preserve_host
3459
3495
  }, a, i);
3460
3496
  } catch (e) {
3461
- return ci(e);
3497
+ return pi(e);
3462
3498
  }
3463
3499
  let { target: s, init: c } = o;
3464
3500
  t.set("__proxy_upstream_host__", s.hostname), t.set("__proxy_upstream_origin__", `${s.protocol}//${s.host}`);
@@ -3472,34 +3508,34 @@ var hi = K({
3472
3508
  }
3473
3509
  };
3474
3510
  }
3475
- }), gi = 3e4, _i = e.object({
3511
+ }), xi = 3e4, Si = e.object({
3476
3512
  binding: e.string(),
3477
3513
  script_name: e.string(),
3478
3514
  cpu_ms: e.number().int().positive().optional(),
3479
3515
  subrequests: e.number().int().positive().optional(),
3480
3516
  timeout_ms: e.number().int().positive().optional()
3481
3517
  });
3482
- function vi(e) {
3518
+ function Ci(e) {
3483
3519
  return typeof e == "object" && !!e && typeof e.get == "function";
3484
3520
  }
3485
3521
  var Y = /\{(tenant_id|custom_domain_id|domain|host)\}/g;
3486
- function yi(e) {
3522
+ function wi(e) {
3487
3523
  return Y.lastIndex = 0, Y.test(e);
3488
3524
  }
3489
- var bi = K({
3525
+ var Ti = K({
3490
3526
  type: "dispatch_namespace",
3491
- optionsSchema: _i,
3527
+ optionsSchema: Si,
3492
3528
  build(e, t) {
3493
3529
  let n = t.bindings[e.binding];
3494
- if (!vi(n)) throw Error(`Dispatch namespace binding "${e.binding}" is not configured or does not expose .get()`);
3495
- let r = yi(e.script_name), i = e.timeout_ms ?? gi, a = e.cpu_ms || e.subrequests ? { limits: {
3530
+ if (!Ci(n)) throw Error(`Dispatch namespace binding "${e.binding}" is not configured or does not expose .get()`);
3531
+ let r = wi(e.script_name), i = e.timeout_ms ?? xi, a = e.cpu_ms || e.subrequests ? { limits: {
3496
3532
  ...e.cpu_ms ? { cpuMs: e.cpu_ms } : {},
3497
3533
  ...e.subrequests ? { subrequests: e.subrequests } : {}
3498
3534
  } } : void 0;
3499
3535
  return async (t) => {
3500
3536
  let o = e.script_name;
3501
3537
  if (r) {
3502
- let n = Dr(t), r = Or(t), i = kr(t), a = t.req.header("host") ?? t.req.header("x-forwarded-host") ?? "";
3538
+ let n = Mr(t), r = Nr(t), i = Pr(t), a = t.req.header("host") ?? t.req.header("x-forwarded-host") ?? "";
3503
3539
  if (o = o.replace(Y, (e, t) => {
3504
3540
  switch (t) {
3505
3541
  case "tenant_id": return n ?? "";
@@ -3522,7 +3558,7 @@ var bi = K({
3522
3558
  }
3523
3559
  };
3524
3560
  }
3525
- }), xi = K({
3561
+ }), Ei = K({
3526
3562
  type: "redirect",
3527
3563
  optionsSchema: e.object({
3528
3564
  upstream_url: e.string().refine((e) => {
@@ -3551,7 +3587,7 @@ var bi = K({
3551
3587
  });
3552
3588
  };
3553
3589
  }
3554
- }), Si = K({
3590
+ }), Di = K({
3555
3591
  type: "static",
3556
3592
  optionsSchema: e.object({
3557
3593
  status: e.number().int().default(200),
@@ -3571,15 +3607,15 @@ var bi = K({
3571
3607
  });
3572
3608
  //#endregion
3573
3609
  //#region src/data-plane/handlers/index.ts
3574
- function Ci(e) {
3575
- e.add(Nr).add(Ir).add(Lr).add(Rr).add(Jr).add(Qr).add($r).add(di).add(hi).add(bi).add(xi).add(Si);
3610
+ function Oi(e) {
3611
+ e.add(Rr).add(Vr).add(Hr).add(Ur).add($r).add(ri).add(ii).add(gi).add(bi).add(Ti).add(Ei).add(Di);
3576
3612
  }
3577
3613
  //#endregion
3578
3614
  //#region src/data-plane/matcher.ts
3579
- function wi(e) {
3615
+ function ki(e) {
3580
3616
  return [...e].sort((e, t) => e.priority === t.priority ? e.created_at.localeCompare(t.created_at) : e.priority - t.priority);
3581
3617
  }
3582
- function Ti(e, t) {
3618
+ function Ai(e, t) {
3583
3619
  let n = e.toLowerCase(), r = t.toLowerCase();
3584
3620
  if (n === r) return !0;
3585
3621
  if (n.startsWith("*.")) {
@@ -3588,13 +3624,13 @@ function Ti(e, t) {
3588
3624
  }
3589
3625
  return !1;
3590
3626
  }
3591
- function Ei(e, t) {
3592
- return !e || e.length === 0 ? !0 : e.some((e) => Ti(e, t));
3627
+ function ji(e, t) {
3628
+ return !e || e.length === 0 ? !0 : e.some((e) => Ai(e, t));
3593
3629
  }
3594
- function Di(e) {
3630
+ function Mi(e) {
3595
3631
  let t = (e.headers ? Object.entries(e.headers) : []).map(([e, t]) => [e.toLowerCase(), new RegExp(t)]), n = (e.query ? Object.entries(e.query) : []).map(([e, t]) => [e, new RegExp(t)]), r = e.hosts;
3596
3632
  return async (e, i) => {
3597
- if (r && !Ei(r, e.req.header("host") ?? "")) return new Response("No matching route", { status: 404 });
3633
+ if (r && !ji(r, e.req.header("host") ?? "")) return new Response("No matching route", { status: 404 });
3598
3634
  for (let [n, r] of t) {
3599
3635
  let t = e.req.header(n);
3600
3636
  if (t === void 0 || !r.test(t)) return new Response("No matching route", { status: 404 });
@@ -3611,17 +3647,17 @@ function Di(e) {
3611
3647
  }
3612
3648
  //#endregion
3613
3649
  //#region src/data-plane/compile.ts
3614
- var Oi = "forwarded_headers";
3615
- function ki(e) {
3650
+ var Ni = "forwarded_headers";
3651
+ function Pi(e) {
3616
3652
  return e.some((e) => e.type === "forwarded_headers") ? [...e] : [{
3617
- type: Oi,
3653
+ type: Ni,
3618
3654
  options: {}
3619
3655
  }, ...e];
3620
3656
  }
3621
3657
  function X(e, t) {
3622
- return e.has("forwarded_headers") ? ki(t) : [...t];
3658
+ return e.has("forwarded_headers") ? Pi(t) : [...t];
3623
3659
  }
3624
- var Ai = [
3660
+ var Fi = [
3625
3661
  "GET",
3626
3662
  "POST",
3627
3663
  "PUT",
@@ -3633,34 +3669,34 @@ var Ai = [
3633
3669
  function Z(e, n, r, i) {
3634
3670
  let a = new t();
3635
3671
  r && a.use("*", async (e, t) => {
3636
- Er(e, r), await t();
3672
+ jr(e, r), await t();
3637
3673
  });
3638
- let o = wi(e);
3674
+ let o = ki(e);
3639
3675
  for (let e of o) {
3640
3676
  let t = [];
3641
- t.push(Di(e.match));
3677
+ t.push(Mi(e.match));
3642
3678
  for (let r of X(n, e.handlers)) t.push(n.build(r.type, r.options));
3643
- let r = e.match.methods?.length ? e.match.methods.map((e) => e.toUpperCase()) : Ai, i = e.match.path || "/*";
3679
+ let r = e.match.methods?.length ? e.match.methods.map((e) => e.toUpperCase()) : Fi, i = e.match.path || "/*";
3644
3680
  a.on(r, [i], ...t);
3645
3681
  }
3646
- return i && i.length > 0 ? a.on(Ai, ["*"], ...i) : a.all("*", (e) => e.text("No matching route", 404)), a.onError((e, t) => {
3682
+ return i && i.length > 0 ? a.on(Fi, ["*"], ...i) : a.all("*", (e) => e.text("No matching route", 404)), a.onError((e, t) => {
3647
3683
  let n = V(e);
3648
3684
  return t.text(n ? "Upstream timeout" : "Bad gateway", n ? 504 : 502, { "x-authhero-proxy-error": n ? "handler_timeout" : "handler_failed" });
3649
3685
  }), a;
3650
3686
  }
3651
3687
  //#endregion
3652
3688
  //#region src/data-plane/router.ts
3653
- var ji = 1e4;
3654
- function Mi(e) {
3689
+ var Ii = 1e4;
3690
+ function Li(e) {
3655
3691
  return e.resolver ? e.resolver : e.cache ? G(e.data, e.cache) : G(e.data, e.cacheTtlMs ?? 3e4);
3656
3692
  }
3657
- function Ni(e) {
3693
+ function Ri(e) {
3658
3694
  if (e.registry) return e.registry;
3659
- let t = new yr(e.bindings ?? {});
3660
- return Ci(t), t;
3695
+ let t = new wr(e.bindings ?? {});
3696
+ return Oi(t), t;
3661
3697
  }
3662
3698
  function Q(e) {
3663
- let t = Mi(e), n = Ni(e), r = /* @__PURE__ */ new WeakMap(), i = e.resolveHostTimeoutMs ?? ji, a = e.defaultHandlers && e.defaultHandlers.length > 0 ? X(n, e.defaultHandlers).map((e) => n.build(e.type, e.options)) : void 0, o = a ? Z([], n, void 0, a) : void 0;
3699
+ let t = Li(e), n = Ri(e), r = /* @__PURE__ */ new WeakMap(), i = e.resolveHostTimeoutMs ?? Ii, a = e.defaultHandlers && e.defaultHandlers.length > 0 ? X(n, e.defaultHandlers).map((e) => n.build(e.type, e.options)) : void 0, o = a ? Z([], n, void 0, a) : void 0;
3664
3700
  return async (e) => {
3665
3701
  let s = e.req.header("host") ?? e.req.header("x-forwarded-host");
3666
3702
  if (!s) return e.text("Missing host", 400);
@@ -3678,13 +3714,13 @@ function Q(e) {
3678
3714
  }
3679
3715
  };
3680
3716
  }
3681
- function Pi(e) {
3717
+ function zi(e) {
3682
3718
  let n = new t();
3683
3719
  return n.all("*", Q(e)), n;
3684
3720
  }
3685
3721
  //#endregion
3686
3722
  //#region src/app.ts
3687
- function Fi(e) {
3723
+ function Bi(e) {
3688
3724
  let n = new t();
3689
3725
  return n.all("*", Q({
3690
3726
  data: e.data,
@@ -3702,17 +3738,17 @@ function Fi(e) {
3702
3738
  }
3703
3739
  //#endregion
3704
3740
  //#region src/data-plane/cache-api-cache.ts
3705
- var Ii = 1e3, Li = 1e3;
3706
- function Ri(e, t) {
3741
+ var Vi = 1e3, Hi = 1e3;
3742
+ function Ui(e, t) {
3707
3743
  return new Request(`https://proxy-cache.internal/${encodeURIComponent(e)}/hosts/${encodeURIComponent(t.toLowerCase())}`, { method: "GET" });
3708
3744
  }
3709
- function zi() {
3745
+ function Wi() {
3710
3746
  return globalThis.caches?.default;
3711
3747
  }
3712
- function Bi(e) {
3713
- let t = e.cache ?? zi();
3748
+ function Gi(e) {
3749
+ let t = e.cache ?? Wi();
3714
3750
  if (!t) return e.upstream;
3715
- let n = t, r = e.namespace ?? "authhero-proxy", i = e.cacheTtlSeconds ?? 60, a = e.negativeCacheTtlSeconds ?? 10, o = e.waitUntil, s = e.cacheReadTimeoutMs ?? Ii, c = e.cacheWriteTimeoutMs ?? Li;
3751
+ let n = t, r = e.namespace ?? "authhero-proxy", i = e.cacheTtlSeconds ?? 60, a = e.negativeCacheTtlSeconds ?? 10, o = e.waitUntil, s = e.cacheReadTimeoutMs ?? Vi, c = e.cacheWriteTimeoutMs ?? Hi;
3716
3752
  async function l(e) {
3717
3753
  try {
3718
3754
  return await W(Promise.resolve(n.match(e)), s, "cache.match");
@@ -3721,7 +3757,7 @@ function Bi(e) {
3721
3757
  }
3722
3758
  }
3723
3759
  return { async resolveHost(t, s) {
3724
- let u = Ri(r, t), d = await l(u);
3760
+ let u = Ui(r, t), d = await l(u);
3725
3761
  if (d) try {
3726
3762
  return (await d.json()).value;
3727
3763
  } catch {}
@@ -3732,14 +3768,14 @@ function Bi(e) {
3732
3768
  return o ? o(h) : await h, f;
3733
3769
  } };
3734
3770
  }
3735
- function Vi(e, t) {
3736
- return Ri(e, t);
3771
+ function Ki(e, t) {
3772
+ return Ui(e, t);
3737
3773
  }
3738
3774
  //#endregion
3739
3775
  //#region src/data-plane/cache-adapter-cache.ts
3740
- var Hi = 1e3, Ui = 1e3, Wi = 5e3;
3741
- function Gi(e) {
3742
- let { upstream: t, cache: n, freshTtlMs: r, staleTtlMs: i = 0, staleIfErrorTtlMs: a = 0, negativeTtlMs: o = r, keyPrefix: s = "authhero-proxy-host", waitUntil: c, cacheReadTimeoutMs: l = Hi, cacheWriteTimeoutMs: u = Ui, upstreamTimeoutMs: d = Wi } = e, f = d > 0 ? d : 1e4, p = /* @__PURE__ */ new Map();
3776
+ var qi = 1e3, Ji = 1e3, Yi = 5e3;
3777
+ function Xi(e) {
3778
+ let { upstream: t, cache: n, freshTtlMs: r, staleTtlMs: i = 0, staleIfErrorTtlMs: a = 0, negativeTtlMs: o = r, keyPrefix: s = "authhero-proxy-host", waitUntil: c, cacheReadTimeoutMs: l = qi, cacheWriteTimeoutMs: u = Ji, upstreamTimeoutMs: d = Yi } = e, f = d > 0 ? d : 1e4, p = /* @__PURE__ */ new Map();
3743
3779
  function m(e) {
3744
3780
  return `${s}:${e.toLowerCase()}`;
3745
3781
  }
@@ -3796,7 +3832,7 @@ function Gi(e) {
3796
3832
  }
3797
3833
  } };
3798
3834
  }
3799
- function Ki(e, t) {
3835
+ function Zi(e, t) {
3800
3836
  return `${e}:${t.toLowerCase()}`;
3801
3837
  }
3802
3838
  //#endregion
@@ -3804,7 +3840,7 @@ function Ki(e, t) {
3804
3840
  function $() {
3805
3841
  throw Error("Static proxy adapter is read-only; configure routes at init time");
3806
3842
  }
3807
- function qi(e, t, n, r, i, a) {
3843
+ function Qi(e, t, n, r, i, a) {
3808
3844
  return {
3809
3845
  id: e.id ?? `${n}:${t}`,
3810
3846
  tenant_id: r,
@@ -3819,10 +3855,10 @@ function qi(e, t, n, r, i, a) {
3819
3855
  updated_at: e.updated_at ?? a
3820
3856
  };
3821
3857
  }
3822
- function Ji(e) {
3858
+ function $i(e) {
3823
3859
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = e.defaultTenantId ?? "static", r = /* @__PURE__ */ new Map();
3824
3860
  for (let [i, a] of Object.entries(e.hosts)) {
3825
- let e = i.toLowerCase(), o = Array.isArray(a) ? { routes: a } : a, s = o.tenant_id ?? n, c = o.custom_domain_id ?? e, l = o.routes.map((n, r) => qi(n, r, e, s, c, t)).sort((e, t) => e.priority - t.priority);
3861
+ let e = i.toLowerCase(), o = Array.isArray(a) ? { routes: a } : a, s = o.tenant_id ?? n, c = o.custom_domain_id ?? e, l = o.routes.map((n, r) => Qi(n, r, e, s, c, t)).sort((e, t) => e.priority - t.priority);
3826
3862
  r.set(e, {
3827
3863
  tenant_id: s,
3828
3864
  custom_domain_id: c,
@@ -3866,7 +3902,7 @@ function Ji(e) {
3866
3902
  }
3867
3903
  };
3868
3904
  }
3869
- function Yi(e, t = {}) {
3905
+ function ea(e, t = {}) {
3870
3906
  return {
3871
3907
  priority: t.priority,
3872
3908
  match: { path: t.path ?? "/*" },
@@ -3881,10 +3917,10 @@ function Yi(e, t = {}) {
3881
3917
  }
3882
3918
  //#endregion
3883
3919
  //#region src/constants.ts
3884
- var Xi = "proxy:resolve_host";
3920
+ var ta = "proxy:resolve_host";
3885
3921
  //#endregion
3886
3922
  //#region src/http-adapter/index.ts
3887
- function Zi() {
3923
+ function na() {
3888
3924
  let e = () => {
3889
3925
  throw Error("HTTP proxy adapter does not expose write access to proxy_routes; mutate via the control-plane management API");
3890
3926
  };
@@ -3906,10 +3942,10 @@ function Zi() {
3906
3942
  }
3907
3943
  };
3908
3944
  }
3909
- function Qi(e) {
3945
+ function ra(e) {
3910
3946
  let t = e.fetch ?? fetch, n = e.baseUrl.replace(/\/+$/, ""), r = e.resolveHostPath ?? "/api/v2/proxy/control-plane/hosts/", i = e.audience ?? `${n}/api/v2/`, a = e.scope ?? "proxy:resolve_host", o = e.tokenRefreshSkewSeconds ?? 60, s = e.timeoutMs ?? 2500;
3911
3947
  function c(e, t) {
3912
- let n = new AbortController(), r = gr([e, n.signal]) ?? n.signal, i, a = new Promise((e, t) => {
3948
+ let n = new AbortController(), r = xr([e, n.signal]) ?? n.signal, i, a = new Promise((e, t) => {
3913
3949
  i = setTimeout(() => {
3914
3950
  n.abort(), t(new B(s, "control plane"));
3915
3951
  }, s);
@@ -3943,7 +3979,7 @@ function Qi(e) {
3943
3979
  return l && l.expires_at > Date.now() ? l.value : u(e);
3944
3980
  }
3945
3981
  return {
3946
- proxyRoutes: Zi(),
3982
+ proxyRoutes: na(),
3947
3983
  async resolveHost(e, i) {
3948
3984
  let a = i?.signal, o = await d(a), s = `${n}${r}${encodeURIComponent(e.toLowerCase())}`;
3949
3985
  return c(a, async (e) => {
@@ -3960,7 +3996,7 @@ function Qi(e) {
3960
3996
  }
3961
3997
  //#endregion
3962
3998
  //#region src/http-adapter/service-binding-fetch.ts
3963
- function $i(e) {
3999
+ function ia(e) {
3964
4000
  return (t, n) => {
3965
4001
  let r = t instanceof Request && n === void 0 ? t : new Request(t, n);
3966
4002
  return e.fetch(r);
@@ -3968,11 +4004,11 @@ function $i(e) {
3968
4004
  }
3969
4005
  //#endregion
3970
4006
  //#region src/kv-adapter/index.ts
3971
- var ea = "authhero-proxy-host:";
3972
- function ta(e, t) {
4007
+ var aa = "authhero-proxy-host:";
4008
+ function oa(e, t) {
3973
4009
  return `${e}${t.toLowerCase()}`;
3974
4010
  }
3975
- function na() {
4011
+ function sa() {
3976
4012
  let e = () => {
3977
4013
  throw Error("KV proxy adapter does not expose write access to proxy_routes; mutate via the control-plane management API");
3978
4014
  };
@@ -3994,15 +4030,15 @@ function na() {
3994
4030
  }
3995
4031
  };
3996
4032
  }
3997
- function ra(e) {
3998
- let { kv: t, keyPrefix: n = ea, timeoutMs: r } = e;
4033
+ function ca(e) {
4034
+ let { kv: t, keyPrefix: n = aa, timeoutMs: r } = e;
3999
4035
  return {
4000
- proxyRoutes: na(),
4036
+ proxyRoutes: sa(),
4001
4037
  async resolveHost(e) {
4002
- let i = ta(n, e), a = t.get(i, "json");
4038
+ let i = oa(n, e), a = t.get(i, "json");
4003
4039
  return (r && r > 0 ? await W(a, r, "kv.get") : await a) ?? null;
4004
4040
  }
4005
4041
  };
4006
4042
  }
4007
4043
  //#endregion
4008
- export { ea as DEFAULT_KV_HOST_KEY_PREFIX, Oi as FORWARDED_HEADERS_HANDLER_TYPE, yr as HandlerRegistry, Xi as PROXY_RESOLVE_HOST_SCOPE, Ir as basicAuthHandler, Ki as buildCacheAdapterKey, Vi as buildCacheApiKey, ta as buildKvHostKey, Di as buildMatchFilter, Rr as cacheHandler, Z as compileHostApp, Nr as corsHandler, Gi as createCacheAdapterHostCache, Bi as createCacheApiHostCache, Qi as createHttpProxyAdapter, G as createInMemoryHostCache, ra as createKvProxyAdapter, Fi as createProxyApp, Q as createProxyDataPlaneHandler, Pi as createProxyDataPlaneRouter, $i as createServiceBindingFetch, Ji as createStaticProxyAdapter, K as defineHandler, bi as dispatchNamespaceHandler, Jr as forwardedHeadersHandler, Pn as handlerConfigSchema, Lr as headersHandler, di as httpHandler, Yi as httpRoute, qr as isCloudflareIp, Nn as matchSchema, Ei as matchesAnyHost, Ti as matchesHost, L as proxyRouteInsertSchema, Fn as proxyRouteSchema, In as proxyRouteUpdateSchema, xi as redirectHandler, Ci as registerBuiltinHandlers, Qr as rewriteCookiesHandler, $r as rewriteLocationHandler, hi as serviceBindingHandler, wi as sortRoutes, Si as staticHandler, ki as withForwardedHeaders, X as withForwardedHeadersFor };
4044
+ export { aa as DEFAULT_KV_HOST_KEY_PREFIX, Ni as FORWARDED_HEADERS_HANDLER_TYPE, wr as HandlerRegistry, ta as PROXY_RESOLVE_HOST_SCOPE, Vr as basicAuthHandler, Zi as buildCacheAdapterKey, Ki as buildCacheApiKey, oa as buildKvHostKey, Mi as buildMatchFilter, Ur as cacheHandler, Z as compileHostApp, Rr as corsHandler, Xi as createCacheAdapterHostCache, Gi as createCacheApiHostCache, ra as createHttpProxyAdapter, G as createInMemoryHostCache, ca as createKvProxyAdapter, Bi as createProxyApp, Q as createProxyDataPlaneHandler, zi as createProxyDataPlaneRouter, ia as createServiceBindingFetch, $i as createStaticProxyAdapter, K as defineHandler, Ti as dispatchNamespaceHandler, $r as forwardedHeadersHandler, Ln as handlerConfigSchema, Hr as headersHandler, gi as httpHandler, ea as httpRoute, Qr as isCloudflareIp, In as matchSchema, ji as matchesAnyHost, Ai as matchesHost, z as proxyRouteInsertSchema, Rn as proxyRouteSchema, zn as proxyRouteUpdateSchema, Ei as redirectHandler, Oi as registerBuiltinHandlers, ri as rewriteCookiesHandler, ii as rewriteLocationHandler, bi as serviceBindingHandler, ki as sortRoutes, Di as staticHandler, Pi as withForwardedHeaders, X as withForwardedHeadersFor };