@authhero/adapter-interfaces 4.5.0 → 4.7.0

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