@authhero/proxy 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proxy.cjs +1 -1
- package/dist/proxy.mjs +444 -434
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/proxy.mjs
CHANGED
|
@@ -275,7 +275,7 @@ var ue = e.object({
|
|
|
275
275
|
region: e.string().optional(),
|
|
276
276
|
postal_code: e.string().optional(),
|
|
277
277
|
country: e.string().optional()
|
|
278
|
-
}).optional(),
|
|
278
|
+
}).optional(), pe = e.object({
|
|
279
279
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
280
280
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
281
281
|
phone_number: e.string().optional(),
|
|
@@ -300,7 +300,7 @@ var ue = e.object({
|
|
|
300
300
|
zoneinfo: e.string().optional(),
|
|
301
301
|
address: fe
|
|
302
302
|
});
|
|
303
|
-
|
|
303
|
+
pe.extend({
|
|
304
304
|
email_verified: e.boolean().default(!1),
|
|
305
305
|
verify_email: e.boolean().optional(),
|
|
306
306
|
last_ip: e.string().optional(),
|
|
@@ -322,23 +322,23 @@ g.extend({
|
|
|
322
322
|
email: e.string().optional(),
|
|
323
323
|
login_count: e.number().default(0),
|
|
324
324
|
identities: e.array(de).optional()
|
|
325
|
-
}).omit({ registration_completed_at: !0 }),
|
|
325
|
+
}).omit({ registration_completed_at: !0 }), pe.extend({
|
|
326
326
|
login_count: e.number(),
|
|
327
327
|
multifactor: e.array(e.string()).optional(),
|
|
328
328
|
last_ip: e.string().optional(),
|
|
329
329
|
last_login: e.string().optional(),
|
|
330
330
|
user_id: e.string()
|
|
331
331
|
}).catchall(e.any());
|
|
332
|
-
var
|
|
332
|
+
var me = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", he = (e = 21) => {
|
|
333
333
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
334
|
-
for (; e--;) t +=
|
|
334
|
+
for (; e--;) t += me[n[e] & 63];
|
|
335
335
|
return t;
|
|
336
|
-
},
|
|
336
|
+
}, ge = e.object({
|
|
337
337
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
338
338
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
339
339
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
340
340
|
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)." }),
|
|
341
|
-
client_secret: e.string().default(() =>
|
|
341
|
+
client_secret: e.string().default(() => he()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
342
342
|
app_type: e.enum([
|
|
343
343
|
"native",
|
|
344
344
|
"spa",
|
|
@@ -455,8 +455,8 @@ var pe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", me
|
|
|
455
455
|
e.object({
|
|
456
456
|
created_at: e.string(),
|
|
457
457
|
updated_at: e.string()
|
|
458
|
-
}).extend(
|
|
459
|
-
var
|
|
458
|
+
}).extend(ge.shape).extend({ client_id: e.string() });
|
|
459
|
+
var _e = e.object({
|
|
460
460
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
461
461
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
462
462
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -469,15 +469,15 @@ var ge = e.object({
|
|
|
469
469
|
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." }),
|
|
470
470
|
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." }),
|
|
471
471
|
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." })
|
|
472
|
-
}),
|
|
472
|
+
}), ve = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(_e.shape).extend({
|
|
473
473
|
created_at: e.string().optional(),
|
|
474
474
|
updated_at: e.string().optional()
|
|
475
475
|
});
|
|
476
|
-
e.array(
|
|
477
|
-
var
|
|
476
|
+
e.array(ve);
|
|
477
|
+
var ye = e.enum(["iat", "rat"]), be = e.object({
|
|
478
478
|
id: e.string(),
|
|
479
479
|
token_hash: e.string(),
|
|
480
|
-
type:
|
|
480
|
+
type: ye,
|
|
481
481
|
client_id: e.string().optional(),
|
|
482
482
|
sub: e.string().optional(),
|
|
483
483
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -488,23 +488,23 @@ e.object({
|
|
|
488
488
|
created_at: e.string(),
|
|
489
489
|
used_at: e.string().optional(),
|
|
490
490
|
revoked_at: e.string().optional()
|
|
491
|
-
}).extend(
|
|
492
|
-
var
|
|
491
|
+
}).extend(be.shape);
|
|
492
|
+
var g = e.object({
|
|
493
493
|
x: e.number(),
|
|
494
494
|
y: e.number()
|
|
495
|
-
}),
|
|
495
|
+
}), xe = /* @__PURE__ */ function(e) {
|
|
496
496
|
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;
|
|
497
|
-
}({}),
|
|
497
|
+
}({}), Se = /* @__PURE__ */ function(e) {
|
|
498
498
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
499
|
-
}({}),
|
|
499
|
+
}({}), _ = e.object({
|
|
500
500
|
id: e.string(),
|
|
501
|
-
category: e.nativeEnum(
|
|
502
|
-
type: e.nativeEnum(
|
|
503
|
-
}),
|
|
501
|
+
category: e.nativeEnum(Se),
|
|
502
|
+
type: e.nativeEnum(xe)
|
|
503
|
+
}), Ce = _.extend({
|
|
504
504
|
category: e.literal("BLOCK"),
|
|
505
505
|
type: e.literal("RICH_TEXT"),
|
|
506
506
|
config: e.object({ content: e.string() }).passthrough()
|
|
507
|
-
}),
|
|
507
|
+
}), we = _.extend({
|
|
508
508
|
category: e.literal("BLOCK"),
|
|
509
509
|
type: e.union([
|
|
510
510
|
e.literal("NEXT_BUTTON"),
|
|
@@ -512,13 +512,13 @@ var _ = e.object({
|
|
|
512
512
|
e.literal("SUBMIT_BUTTON")
|
|
513
513
|
]),
|
|
514
514
|
config: e.object({ text: e.string() }).passthrough()
|
|
515
|
-
}),
|
|
515
|
+
}), Te = _.extend({
|
|
516
516
|
category: e.literal("FIELD"),
|
|
517
517
|
type: e.literal("LEGAL"),
|
|
518
518
|
required: e.boolean().optional(),
|
|
519
519
|
sensitive: e.boolean().optional(),
|
|
520
520
|
config: e.object({ text: e.string() }).passthrough()
|
|
521
|
-
}),
|
|
521
|
+
}), Ee = _.extend({
|
|
522
522
|
category: e.literal("FIELD"),
|
|
523
523
|
type: e.union([
|
|
524
524
|
e.literal("TEXT"),
|
|
@@ -538,38 +538,38 @@ var _ = e.object({
|
|
|
538
538
|
label: e.string().optional(),
|
|
539
539
|
placeholder: e.string().optional()
|
|
540
540
|
}).passthrough()
|
|
541
|
-
}),
|
|
541
|
+
}), De = e.object({
|
|
542
542
|
id: e.string(),
|
|
543
543
|
category: e.string(),
|
|
544
544
|
type: e.string()
|
|
545
|
-
}).passthrough(),
|
|
546
|
-
Se,
|
|
545
|
+
}).passthrough(), Oe = e.union([
|
|
547
546
|
Ce,
|
|
548
547
|
we,
|
|
549
548
|
Te,
|
|
550
|
-
Ee
|
|
551
|
-
|
|
549
|
+
Ee,
|
|
550
|
+
De
|
|
551
|
+
]), ke = e.object({
|
|
552
552
|
id: e.string(),
|
|
553
553
|
type: e.literal("STEP"),
|
|
554
|
-
coordinates:
|
|
554
|
+
coordinates: g,
|
|
555
555
|
alias: e.string().optional(),
|
|
556
556
|
config: e.object({
|
|
557
|
-
components: e.array(
|
|
557
|
+
components: e.array(Oe),
|
|
558
558
|
next_node: e.string()
|
|
559
559
|
}).passthrough()
|
|
560
|
-
}),
|
|
560
|
+
}), Ae = e.object({
|
|
561
561
|
id: e.string(),
|
|
562
562
|
type: e.literal("FLOW"),
|
|
563
|
-
coordinates:
|
|
563
|
+
coordinates: g,
|
|
564
564
|
alias: e.string().optional(),
|
|
565
565
|
config: e.object({
|
|
566
566
|
flow_id: e.string(),
|
|
567
567
|
next_node: e.string()
|
|
568
568
|
})
|
|
569
|
-
}),
|
|
569
|
+
}), je = e.object({
|
|
570
570
|
id: e.string(),
|
|
571
571
|
type: e.literal("ACTION"),
|
|
572
|
-
coordinates:
|
|
572
|
+
coordinates: g,
|
|
573
573
|
alias: e.string().optional(),
|
|
574
574
|
config: e.object({
|
|
575
575
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -581,29 +581,29 @@ var _ = e.object({
|
|
|
581
581
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
582
582
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
583
583
|
}).passthrough()
|
|
584
|
-
}),
|
|
584
|
+
}), Me = e.object({
|
|
585
585
|
id: e.string(),
|
|
586
586
|
type: e.string(),
|
|
587
|
-
coordinates:
|
|
588
|
-
}).passthrough(),
|
|
589
|
-
Oe,
|
|
587
|
+
coordinates: g
|
|
588
|
+
}).passthrough(), Ne = e.union([
|
|
590
589
|
ke,
|
|
591
590
|
Ae,
|
|
592
|
-
je
|
|
593
|
-
|
|
591
|
+
je,
|
|
592
|
+
Me
|
|
593
|
+
]), Pe = e.object({
|
|
594
594
|
next_node: e.string(),
|
|
595
|
-
coordinates:
|
|
596
|
-
}).passthrough(),
|
|
595
|
+
coordinates: g
|
|
596
|
+
}).passthrough(), Fe = e.object({
|
|
597
597
|
resume_flow: e.boolean().optional(),
|
|
598
|
-
coordinates:
|
|
598
|
+
coordinates: g
|
|
599
599
|
}).passthrough();
|
|
600
600
|
e.object({
|
|
601
601
|
id: e.string(),
|
|
602
602
|
name: e.string(),
|
|
603
603
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
604
|
-
nodes: e.array(
|
|
605
|
-
start:
|
|
606
|
-
ending:
|
|
604
|
+
nodes: e.array(Ne),
|
|
605
|
+
start: Pe,
|
|
606
|
+
ending: Fe,
|
|
607
607
|
created_at: e.string(),
|
|
608
608
|
updated_at: e.string(),
|
|
609
609
|
links: e.object({
|
|
@@ -615,24 +615,24 @@ e.object({
|
|
|
615
615
|
created_at: !0,
|
|
616
616
|
updated_at: !0
|
|
617
617
|
});
|
|
618
|
-
var
|
|
618
|
+
var Ie = /* @__PURE__ */ function(e) {
|
|
619
619
|
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;
|
|
620
|
-
}({}), Ie = /* @__PURE__ */ function(e) {
|
|
621
|
-
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
622
620
|
}({}), Le = /* @__PURE__ */ function(e) {
|
|
621
|
+
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
622
|
+
}({}), Re = /* @__PURE__ */ function(e) {
|
|
623
623
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
624
|
-
}({}),
|
|
624
|
+
}({}), ze = e.union([e.null(), e.object({
|
|
625
625
|
essential: e.boolean().optional(),
|
|
626
626
|
value: e.unknown().optional(),
|
|
627
627
|
values: e.array(e.unknown()).optional()
|
|
628
|
-
})]).nullable(),
|
|
629
|
-
userinfo: e.record(e.string(),
|
|
630
|
-
id_token: e.record(e.string(),
|
|
631
|
-
}),
|
|
628
|
+
})]).nullable(), Be = e.object({
|
|
629
|
+
userinfo: e.record(e.string(), ze).optional(),
|
|
630
|
+
id_token: e.record(e.string(), ze).optional()
|
|
631
|
+
}), Ve = e.object({
|
|
632
632
|
client_id: e.string(),
|
|
633
633
|
act_as: e.string().optional(),
|
|
634
|
-
response_type: e.nativeEnum(
|
|
635
|
-
response_mode: e.nativeEnum(
|
|
634
|
+
response_type: e.nativeEnum(Ie).optional(),
|
|
635
|
+
response_mode: e.nativeEnum(Le).optional(),
|
|
636
636
|
redirect_uri: e.string().optional(),
|
|
637
637
|
audience: e.string().optional(),
|
|
638
638
|
organization: e.string().optional(),
|
|
@@ -640,13 +640,13 @@ var Fe = /* @__PURE__ */ function(e) {
|
|
|
640
640
|
nonce: e.string().optional(),
|
|
641
641
|
scope: e.string().optional(),
|
|
642
642
|
prompt: e.string().optional(),
|
|
643
|
-
code_challenge_method: e.nativeEnum(
|
|
643
|
+
code_challenge_method: e.nativeEnum(Re).optional(),
|
|
644
644
|
code_challenge: e.string().optional(),
|
|
645
645
|
username: e.string().optional(),
|
|
646
646
|
ui_locales: e.string().optional(),
|
|
647
647
|
max_age: e.number().optional(),
|
|
648
648
|
acr_values: e.string().optional(),
|
|
649
|
-
claims:
|
|
649
|
+
claims: Be.optional(),
|
|
650
650
|
vendor_id: e.string().optional()
|
|
651
651
|
});
|
|
652
652
|
e.object({
|
|
@@ -669,7 +669,7 @@ e.object({
|
|
|
669
669
|
"auto"
|
|
670
670
|
]).optional()
|
|
671
671
|
});
|
|
672
|
-
var
|
|
672
|
+
var He = e.enum([
|
|
673
673
|
"password_reset",
|
|
674
674
|
"email_verification",
|
|
675
675
|
"otp",
|
|
@@ -682,7 +682,7 @@ e.object({
|
|
|
682
682
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
683
683
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
684
684
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
685
|
-
code_type:
|
|
685
|
+
code_type: He,
|
|
686
686
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
687
687
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
688
688
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -694,7 +694,7 @@ e.object({
|
|
|
694
694
|
used_at: e.string().optional(),
|
|
695
695
|
user_id: e.string().optional()
|
|
696
696
|
}).extend({ created_at: e.string() });
|
|
697
|
-
var
|
|
697
|
+
var Ue = e.object({
|
|
698
698
|
kid: e.string().optional(),
|
|
699
699
|
team_id: e.string().optional(),
|
|
700
700
|
realms: e.string().optional(),
|
|
@@ -703,6 +703,9 @@ var He = e.object({
|
|
|
703
703
|
client_secret: e.string().optional(),
|
|
704
704
|
app_secret: e.string().optional(),
|
|
705
705
|
scope: e.string().optional(),
|
|
706
|
+
client_secret_hint: e.string().optional(),
|
|
707
|
+
app_secret_hint: e.string().optional(),
|
|
708
|
+
twilio_token_hint: e.string().optional(),
|
|
706
709
|
authorization_endpoint: e.string().optional(),
|
|
707
710
|
token_endpoint: e.string().optional(),
|
|
708
711
|
userinfo_endpoint: e.string().optional(),
|
|
@@ -742,6 +745,7 @@ var He = e.object({
|
|
|
742
745
|
userinfo_endpoint: e.string().optional(),
|
|
743
746
|
client_id: e.string().optional(),
|
|
744
747
|
client_secret: e.string().optional(),
|
|
748
|
+
client_secret_hint: e.string().optional(),
|
|
745
749
|
realm: e.string().optional()
|
|
746
750
|
}).optional(),
|
|
747
751
|
attributes: e.object({
|
|
@@ -810,26 +814,26 @@ var He = e.object({
|
|
|
810
814
|
"never_on_login"
|
|
811
815
|
]).optional()
|
|
812
816
|
});
|
|
813
|
-
function
|
|
817
|
+
function v(e) {
|
|
814
818
|
if (e !== null) {
|
|
815
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
819
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(v);
|
|
816
820
|
if (e && typeof e == "object") {
|
|
817
821
|
let t = {};
|
|
818
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
822
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = v(r));
|
|
819
823
|
return t;
|
|
820
824
|
}
|
|
821
825
|
return e;
|
|
822
826
|
}
|
|
823
827
|
}
|
|
824
|
-
var
|
|
828
|
+
var We = e.object({
|
|
825
829
|
id: e.string().optional(),
|
|
826
830
|
name: e.string(),
|
|
827
831
|
display_name: e.string().optional(),
|
|
828
832
|
strategy: e.string(),
|
|
829
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
833
|
+
options: e.preprocess((e) => e === null ? {} : v(e), Ue).default({}),
|
|
830
834
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
831
|
-
response_type: e.nativeEnum(
|
|
832
|
-
response_mode: e.nativeEnum(
|
|
835
|
+
response_type: e.nativeEnum(Ie).optional(),
|
|
836
|
+
response_mode: e.nativeEnum(Le).optional(),
|
|
833
837
|
is_domain_connection: e.boolean().optional(),
|
|
834
838
|
show_as_button: e.boolean().optional(),
|
|
835
839
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
@@ -839,8 +843,8 @@ e.object({
|
|
|
839
843
|
id: e.string(),
|
|
840
844
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
841
845
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
842
|
-
}).extend(
|
|
843
|
-
var
|
|
846
|
+
}).extend(We.shape);
|
|
847
|
+
var Ge = e.object({
|
|
844
848
|
domain: e.string(),
|
|
845
849
|
custom_domain_id: e.string().optional(),
|
|
846
850
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -854,7 +858,7 @@ var b = e.object({
|
|
|
854
858
|
"null"
|
|
855
859
|
]).optional(),
|
|
856
860
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
857
|
-
}),
|
|
861
|
+
}), Ke = e.discriminatedUnion("name", [e.object({
|
|
858
862
|
name: e.literal("txt"),
|
|
859
863
|
record: e.string(),
|
|
860
864
|
domain: e.string()
|
|
@@ -862,7 +866,7 @@ var b = e.object({
|
|
|
862
866
|
name: e.literal("http"),
|
|
863
867
|
http_body: e.string(),
|
|
864
868
|
http_url: e.string()
|
|
865
|
-
})]),
|
|
869
|
+
})]), qe = Ge.extend({
|
|
866
870
|
custom_domain_id: e.string(),
|
|
867
871
|
primary: e.boolean(),
|
|
868
872
|
status: e.enum([
|
|
@@ -872,28 +876,28 @@ var b = e.object({
|
|
|
872
876
|
"ready"
|
|
873
877
|
]),
|
|
874
878
|
origin_domain_name: e.string().optional(),
|
|
875
|
-
verification: e.object({ methods: e.array(
|
|
879
|
+
verification: e.object({ methods: e.array(Ke) }).optional(),
|
|
876
880
|
tls_policy: e.string().optional()
|
|
877
881
|
});
|
|
878
|
-
|
|
882
|
+
Ge.pick({
|
|
879
883
|
tls_policy: !0,
|
|
880
884
|
custom_client_ip_header: !0,
|
|
881
885
|
domain_metadata: !0
|
|
882
|
-
}).strict(),
|
|
886
|
+
}).strict(), qe.extend({ tenant_id: e.string() }), e.object({
|
|
883
887
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
884
888
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
885
889
|
});
|
|
886
|
-
var
|
|
890
|
+
var y = e.object({
|
|
887
891
|
id: e.string(),
|
|
888
892
|
order: e.number().optional(),
|
|
889
893
|
visible: e.boolean().optional().default(!0)
|
|
890
|
-
}),
|
|
894
|
+
}), b = y.extend({ category: e.literal("BLOCK").optional() }), Je = b.extend({
|
|
891
895
|
type: e.literal("DIVIDER"),
|
|
892
896
|
config: e.object({ text: e.string().optional() }).optional()
|
|
893
|
-
}),
|
|
897
|
+
}), Ye = b.extend({
|
|
894
898
|
type: e.literal("HTML"),
|
|
895
899
|
config: e.object({ content: e.string().optional() }).optional()
|
|
896
|
-
}),
|
|
900
|
+
}), Xe = b.extend({
|
|
897
901
|
type: e.literal("IMAGE"),
|
|
898
902
|
config: e.object({
|
|
899
903
|
src: e.string().optional(),
|
|
@@ -901,43 +905,43 @@ var x = e.object({
|
|
|
901
905
|
width: e.number().optional(),
|
|
902
906
|
height: e.number().optional()
|
|
903
907
|
}).optional()
|
|
904
|
-
}),
|
|
908
|
+
}), Ze = b.extend({
|
|
905
909
|
type: e.literal("JUMP_BUTTON"),
|
|
906
910
|
config: e.object({
|
|
907
911
|
text: e.string().optional(),
|
|
908
912
|
target_step: e.string().optional()
|
|
909
913
|
})
|
|
910
|
-
}),
|
|
914
|
+
}), Qe = b.extend({
|
|
911
915
|
type: e.literal("RESEND_BUTTON"),
|
|
912
916
|
config: e.object({
|
|
913
917
|
text: e.string().optional(),
|
|
914
918
|
resend_action: e.string().optional()
|
|
915
919
|
})
|
|
916
|
-
}),
|
|
920
|
+
}), $e = b.extend({
|
|
917
921
|
type: e.literal("NEXT_BUTTON"),
|
|
918
922
|
config: e.object({ text: e.string().optional() })
|
|
919
|
-
}),
|
|
923
|
+
}), et = b.extend({
|
|
920
924
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
921
925
|
config: e.object({ text: e.string().optional() })
|
|
922
|
-
}),
|
|
926
|
+
}), tt = b.extend({
|
|
923
927
|
type: e.literal("RICH_TEXT"),
|
|
924
928
|
config: e.object({ content: e.string().optional() }).optional()
|
|
925
|
-
}),
|
|
929
|
+
}), x = y.extend({
|
|
926
930
|
category: e.literal("WIDGET").optional(),
|
|
927
931
|
label: e.string().min(1).optional(),
|
|
928
932
|
hint: e.string().min(1).max(500).optional(),
|
|
929
933
|
required: e.boolean().optional(),
|
|
930
934
|
sensitive: e.boolean().optional()
|
|
931
|
-
}),
|
|
935
|
+
}), nt = x.extend({
|
|
932
936
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
933
937
|
config: e.object({ credential_type: e.string().optional() })
|
|
934
|
-
}),
|
|
938
|
+
}), rt = x.extend({
|
|
935
939
|
type: e.literal("GMAPS_ADDRESS"),
|
|
936
940
|
config: e.object({ api_key: e.string().optional() })
|
|
937
|
-
}),
|
|
941
|
+
}), it = x.extend({
|
|
938
942
|
type: e.literal("RECAPTCHA"),
|
|
939
943
|
config: e.object({ site_key: e.string().optional() })
|
|
940
|
-
}),
|
|
944
|
+
}), S = y.extend({
|
|
941
945
|
category: e.literal("FIELD").optional(),
|
|
942
946
|
label: e.string().min(1).optional(),
|
|
943
947
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -953,10 +957,10 @@ var x = e.object({
|
|
|
953
957
|
})).optional(),
|
|
954
958
|
required: e.boolean().optional(),
|
|
955
959
|
sensitive: e.boolean().optional()
|
|
956
|
-
}),
|
|
960
|
+
}), at = S.extend({
|
|
957
961
|
type: e.literal("BOOLEAN"),
|
|
958
962
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
959
|
-
}),
|
|
963
|
+
}), ot = S.extend({
|
|
960
964
|
type: e.literal("CARDS"),
|
|
961
965
|
config: e.object({
|
|
962
966
|
options: e.array(e.object({
|
|
@@ -967,7 +971,7 @@ var x = e.object({
|
|
|
967
971
|
})).optional(),
|
|
968
972
|
multi_select: e.boolean().optional()
|
|
969
973
|
}).optional()
|
|
970
|
-
}),
|
|
974
|
+
}), st = S.extend({
|
|
971
975
|
type: e.literal("CHOICE"),
|
|
972
976
|
config: e.object({
|
|
973
977
|
options: e.array(e.object({
|
|
@@ -978,7 +982,7 @@ var x = e.object({
|
|
|
978
982
|
multiple: e.boolean().optional(),
|
|
979
983
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
980
984
|
}).optional()
|
|
981
|
-
}),
|
|
985
|
+
}), ct = S.extend({
|
|
982
986
|
type: e.literal("CODE"),
|
|
983
987
|
config: e.object({
|
|
984
988
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -995,7 +999,7 @@ var x = e.object({
|
|
|
995
999
|
message: "default_value is longer than the configured length",
|
|
996
1000
|
path: ["default_value"]
|
|
997
1001
|
}).optional()
|
|
998
|
-
}),
|
|
1002
|
+
}), lt = S.extend({
|
|
999
1003
|
type: e.literal("CUSTOM"),
|
|
1000
1004
|
config: e.object({
|
|
1001
1005
|
component: e.string().optional(),
|
|
@@ -1003,7 +1007,7 @@ var x = e.object({
|
|
|
1003
1007
|
schema: e.record(e.string(), e.any()).optional(),
|
|
1004
1008
|
code: e.string().optional()
|
|
1005
1009
|
})
|
|
1006
|
-
}),
|
|
1010
|
+
}), ut = S.extend({
|
|
1007
1011
|
type: e.literal("DATE"),
|
|
1008
1012
|
config: e.object({
|
|
1009
1013
|
format: e.string().optional(),
|
|
@@ -1011,7 +1015,7 @@ var x = e.object({
|
|
|
1011
1015
|
max: e.string().optional(),
|
|
1012
1016
|
default_value: e.string().optional()
|
|
1013
1017
|
}).optional()
|
|
1014
|
-
}),
|
|
1018
|
+
}), dt = S.extend({
|
|
1015
1019
|
type: e.literal("DROPDOWN"),
|
|
1016
1020
|
config: e.object({
|
|
1017
1021
|
options: e.array(e.object({
|
|
@@ -1023,7 +1027,7 @@ var x = e.object({
|
|
|
1023
1027
|
multiple: e.boolean().optional(),
|
|
1024
1028
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1025
1029
|
}).optional()
|
|
1026
|
-
}),
|
|
1030
|
+
}), ft = S.extend({
|
|
1027
1031
|
type: e.literal("EMAIL"),
|
|
1028
1032
|
config: e.object({
|
|
1029
1033
|
placeholder: e.string().optional(),
|
|
@@ -1031,20 +1035,20 @@ var x = e.object({
|
|
|
1031
1035
|
last_used: e.boolean().optional(),
|
|
1032
1036
|
last_used_label: e.string().optional()
|
|
1033
1037
|
}).optional()
|
|
1034
|
-
}),
|
|
1038
|
+
}), pt = S.extend({
|
|
1035
1039
|
type: e.literal("FILE"),
|
|
1036
1040
|
config: e.object({
|
|
1037
1041
|
accept: e.string().optional(),
|
|
1038
1042
|
max_size: e.number().optional(),
|
|
1039
1043
|
multiple: e.boolean().optional()
|
|
1040
1044
|
}).optional()
|
|
1041
|
-
}),
|
|
1045
|
+
}), mt = S.extend({
|
|
1042
1046
|
type: e.literal("LEGAL"),
|
|
1043
1047
|
config: e.object({
|
|
1044
1048
|
text: e.string(),
|
|
1045
1049
|
html: e.boolean().optional()
|
|
1046
1050
|
}).optional()
|
|
1047
|
-
}),
|
|
1051
|
+
}), ht = S.extend({
|
|
1048
1052
|
type: e.literal("NUMBER"),
|
|
1049
1053
|
config: e.object({
|
|
1050
1054
|
placeholder: e.string().optional(),
|
|
@@ -1053,7 +1057,7 @@ var x = e.object({
|
|
|
1053
1057
|
step: e.number().optional(),
|
|
1054
1058
|
default_value: e.string().optional()
|
|
1055
1059
|
}).optional()
|
|
1056
|
-
}),
|
|
1060
|
+
}), gt = S.extend({
|
|
1057
1061
|
type: e.literal("PASSWORD"),
|
|
1058
1062
|
config: e.object({
|
|
1059
1063
|
placeholder: e.string().optional(),
|
|
@@ -1062,13 +1066,13 @@ var x = e.object({
|
|
|
1062
1066
|
forgot_password_link: e.string().optional(),
|
|
1063
1067
|
default_value: e.string().optional()
|
|
1064
1068
|
}).optional()
|
|
1065
|
-
}),
|
|
1069
|
+
}), _t = S.extend({
|
|
1066
1070
|
type: e.literal("PAYMENT"),
|
|
1067
1071
|
config: e.object({
|
|
1068
1072
|
provider: e.string().optional(),
|
|
1069
1073
|
currency: e.string().optional()
|
|
1070
1074
|
}).optional()
|
|
1071
|
-
}),
|
|
1075
|
+
}), vt = S.extend({
|
|
1072
1076
|
type: e.literal("SOCIAL"),
|
|
1073
1077
|
config: e.object({
|
|
1074
1078
|
providers: e.array(e.string()).optional(),
|
|
@@ -1082,7 +1086,7 @@ var x = e.object({
|
|
|
1082
1086
|
last_used_label: e.string().optional()
|
|
1083
1087
|
})).optional()
|
|
1084
1088
|
}).optional()
|
|
1085
|
-
}),
|
|
1089
|
+
}), yt = S.extend({
|
|
1086
1090
|
type: e.literal("TEL"),
|
|
1087
1091
|
config: e.object({
|
|
1088
1092
|
placeholder: e.string().optional(),
|
|
@@ -1090,7 +1094,7 @@ var x = e.object({
|
|
|
1090
1094
|
default_value: e.string().optional(),
|
|
1091
1095
|
allow_email: e.boolean().optional()
|
|
1092
1096
|
}).optional()
|
|
1093
|
-
}),
|
|
1097
|
+
}), bt = S.extend({
|
|
1094
1098
|
type: e.literal("TEXT"),
|
|
1095
1099
|
config: e.object({
|
|
1096
1100
|
placeholder: e.string().optional(),
|
|
@@ -1100,39 +1104,37 @@ var x = e.object({
|
|
|
1100
1104
|
last_used: e.boolean().optional(),
|
|
1101
1105
|
last_used_label: e.string().optional()
|
|
1102
1106
|
}).optional()
|
|
1103
|
-
}),
|
|
1107
|
+
}), xt = S.extend({
|
|
1104
1108
|
type: e.literal("COUNTRY"),
|
|
1105
1109
|
config: e.object({
|
|
1106
1110
|
placeholder: e.string().optional(),
|
|
1107
1111
|
default_value: e.string().optional()
|
|
1108
1112
|
}).optional()
|
|
1109
|
-
}),
|
|
1113
|
+
}), St = S.extend({
|
|
1110
1114
|
type: e.literal("URL"),
|
|
1111
1115
|
config: e.object({
|
|
1112
1116
|
placeholder: e.string().optional(),
|
|
1113
1117
|
default_value: e.string().optional()
|
|
1114
1118
|
}).optional()
|
|
1115
|
-
}),
|
|
1116
|
-
Ke,
|
|
1117
|
-
qe,
|
|
1119
|
+
}), Ct = e.discriminatedUnion("type", [
|
|
1118
1120
|
Je,
|
|
1119
1121
|
Ye,
|
|
1120
1122
|
Xe,
|
|
1121
1123
|
Ze,
|
|
1122
1124
|
Qe,
|
|
1123
|
-
$e
|
|
1124
|
-
]), St = e.discriminatedUnion("type", [
|
|
1125
|
+
$e,
|
|
1125
1126
|
et,
|
|
1126
|
-
tt
|
|
1127
|
-
|
|
1128
|
-
|
|
1127
|
+
tt
|
|
1128
|
+
]), wt = e.discriminatedUnion("type", [
|
|
1129
|
+
nt,
|
|
1129
1130
|
rt,
|
|
1130
|
-
it
|
|
1131
|
+
it
|
|
1132
|
+
]), Tt = e.discriminatedUnion("type", [
|
|
1131
1133
|
at,
|
|
1132
1134
|
ot,
|
|
1133
|
-
yt,
|
|
1134
1135
|
st,
|
|
1135
1136
|
ct,
|
|
1137
|
+
xt,
|
|
1136
1138
|
lt,
|
|
1137
1139
|
ut,
|
|
1138
1140
|
dt,
|
|
@@ -1143,11 +1145,13 @@ var x = e.object({
|
|
|
1143
1145
|
gt,
|
|
1144
1146
|
_t,
|
|
1145
1147
|
vt,
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
Ct
|
|
1148
|
+
yt,
|
|
1149
|
+
bt,
|
|
1150
|
+
St
|
|
1151
|
+
]), C = e.union([
|
|
1152
|
+
Ct,
|
|
1153
|
+
wt,
|
|
1154
|
+
Tt
|
|
1151
1155
|
]);
|
|
1152
1156
|
new Set([
|
|
1153
1157
|
"BOOLEAN",
|
|
@@ -1174,22 +1178,22 @@ new Set([
|
|
|
1174
1178
|
visible: e.boolean().optional().default(!0),
|
|
1175
1179
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1176
1180
|
});
|
|
1177
|
-
var
|
|
1181
|
+
var w = e.object({
|
|
1178
1182
|
x: e.number(),
|
|
1179
1183
|
y: e.number()
|
|
1180
|
-
}),
|
|
1184
|
+
}), Et = e.object({
|
|
1181
1185
|
id: e.string(),
|
|
1182
1186
|
type: e.literal("FLOW"),
|
|
1183
|
-
coordinates:
|
|
1187
|
+
coordinates: w,
|
|
1184
1188
|
alias: e.string().min(1).max(150).optional(),
|
|
1185
1189
|
config: e.object({
|
|
1186
1190
|
flow_id: e.string().max(30),
|
|
1187
1191
|
next_node: e.string().optional()
|
|
1188
1192
|
})
|
|
1189
|
-
}),
|
|
1193
|
+
}), Dt = e.object({
|
|
1190
1194
|
id: e.string(),
|
|
1191
1195
|
type: e.literal("ROUTER"),
|
|
1192
|
-
coordinates:
|
|
1196
|
+
coordinates: w,
|
|
1193
1197
|
alias: e.string().min(1).max(150),
|
|
1194
1198
|
config: e.object({
|
|
1195
1199
|
rules: e.array(e.object({
|
|
@@ -1200,20 +1204,20 @@ var E = e.object({
|
|
|
1200
1204
|
})),
|
|
1201
1205
|
fallback: e.string()
|
|
1202
1206
|
})
|
|
1203
|
-
}),
|
|
1207
|
+
}), Ot = e.object({
|
|
1204
1208
|
id: e.string(),
|
|
1205
1209
|
type: e.literal("STEP"),
|
|
1206
|
-
coordinates:
|
|
1210
|
+
coordinates: w,
|
|
1207
1211
|
alias: e.string().min(1).max(150).optional(),
|
|
1208
1212
|
config: e.object({
|
|
1209
|
-
components: e.array(
|
|
1213
|
+
components: e.array(C),
|
|
1210
1214
|
next_node: e.string().optional()
|
|
1211
1215
|
})
|
|
1212
|
-
}),
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
]),
|
|
1216
|
+
}), kt = e.discriminatedUnion("type", [
|
|
1217
|
+
Et,
|
|
1218
|
+
Dt,
|
|
1219
|
+
Ot
|
|
1220
|
+
]), At = e.object({
|
|
1217
1221
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1218
1222
|
messages: e.object({
|
|
1219
1223
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1224,14 +1228,14 @@ var E = e.object({
|
|
|
1224
1228
|
default: e.string().optional()
|
|
1225
1229
|
}).optional(),
|
|
1226
1230
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1227
|
-
nodes: e.array(
|
|
1231
|
+
nodes: e.array(kt).optional(),
|
|
1228
1232
|
start: e.object({
|
|
1229
1233
|
hidden_fields: e.array(e.object({
|
|
1230
1234
|
key: e.string(),
|
|
1231
1235
|
value: e.string()
|
|
1232
1236
|
})).optional(),
|
|
1233
1237
|
next_node: e.string().optional(),
|
|
1234
|
-
coordinates:
|
|
1238
|
+
coordinates: w.optional()
|
|
1235
1239
|
}).optional(),
|
|
1236
1240
|
ending: e.object({
|
|
1237
1241
|
redirection: e.object({
|
|
@@ -1239,7 +1243,7 @@ var E = e.object({
|
|
|
1239
1243
|
target: e.string().optional()
|
|
1240
1244
|
}).optional(),
|
|
1241
1245
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1242
|
-
coordinates:
|
|
1246
|
+
coordinates: w.optional(),
|
|
1243
1247
|
resume_flow: e.boolean().optional()
|
|
1244
1248
|
}).optional(),
|
|
1245
1249
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1248,8 +1252,8 @@ var E = e.object({
|
|
|
1248
1252
|
sdk_src: e.string().optional()
|
|
1249
1253
|
}).optional()
|
|
1250
1254
|
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
1251
|
-
n.extend(
|
|
1252
|
-
var
|
|
1255
|
+
n.extend(At.shape).extend({ id: e.string() });
|
|
1256
|
+
var jt = e.object({
|
|
1253
1257
|
id: e.number().optional(),
|
|
1254
1258
|
text: e.string(),
|
|
1255
1259
|
type: e.enum([
|
|
@@ -1258,7 +1262,7 @@ var kt = e.object({
|
|
|
1258
1262
|
"success",
|
|
1259
1263
|
"warning"
|
|
1260
1264
|
])
|
|
1261
|
-
}),
|
|
1265
|
+
}), Mt = e.object({
|
|
1262
1266
|
id: e.string().optional(),
|
|
1263
1267
|
text: e.string(),
|
|
1264
1268
|
href: e.string(),
|
|
@@ -1270,12 +1274,12 @@ e.object({
|
|
|
1270
1274
|
method: e.enum(["POST", "GET"]),
|
|
1271
1275
|
title: e.string().optional(),
|
|
1272
1276
|
description: e.string().optional(),
|
|
1273
|
-
components: e.array(
|
|
1274
|
-
messages: e.array(
|
|
1275
|
-
links: e.array(
|
|
1277
|
+
components: e.array(C),
|
|
1278
|
+
messages: e.array(jt).optional(),
|
|
1279
|
+
links: e.array(Mt).optional(),
|
|
1276
1280
|
footer: e.string().optional()
|
|
1277
1281
|
});
|
|
1278
|
-
var
|
|
1282
|
+
var T = e.enum([
|
|
1279
1283
|
"pre-user-registration",
|
|
1280
1284
|
"post-user-registration",
|
|
1281
1285
|
"post-user-login",
|
|
@@ -1283,100 +1287,95 @@ var D = e.enum([
|
|
|
1283
1287
|
"validate-registration-username",
|
|
1284
1288
|
"pre-user-deletion",
|
|
1285
1289
|
"post-user-deletion"
|
|
1286
|
-
]),
|
|
1287
|
-
"pre-user-registration",
|
|
1288
|
-
"post-user-registration",
|
|
1289
|
-
"post-user-login",
|
|
1290
|
-
"validate-registration-username",
|
|
1291
|
-
"pre-user-deletion",
|
|
1292
|
-
"post-user-deletion"
|
|
1293
|
-
]), Mt = e.enum([
|
|
1290
|
+
]), E = e.enum(["post-user-login"]), D = e.enum([
|
|
1294
1291
|
"post-user-login",
|
|
1295
1292
|
"post-user-registration",
|
|
1296
1293
|
"post-user-update",
|
|
1297
1294
|
"credentials-exchange"
|
|
1298
|
-
]),
|
|
1295
|
+
]), O = e.enum([
|
|
1299
1296
|
"post-user-login",
|
|
1300
1297
|
"credentials-exchange",
|
|
1301
1298
|
"pre-user-registration",
|
|
1302
1299
|
"post-user-registration"
|
|
1303
|
-
]),
|
|
1300
|
+
]), k = e.enum(["post-user-login"]);
|
|
1301
|
+
T.options, E.options, D.options, O.options, k.options;
|
|
1302
|
+
var A = e.enum(["impersonate"]), Nt = e.enum([
|
|
1304
1303
|
"ensure-username",
|
|
1305
1304
|
"set-preferred-username",
|
|
1306
1305
|
"account-linking"
|
|
1307
|
-
]),
|
|
1306
|
+
]), j = {
|
|
1308
1307
|
enabled: e.boolean().default(!1),
|
|
1309
1308
|
synchronous: e.boolean().default(!1),
|
|
1310
1309
|
priority: e.number().optional(),
|
|
1311
1310
|
hook_id: e.string().optional(),
|
|
1312
1311
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1313
|
-
},
|
|
1314
|
-
...
|
|
1315
|
-
trigger_id:
|
|
1312
|
+
}, Pt = e.object({
|
|
1313
|
+
...j,
|
|
1314
|
+
trigger_id: T,
|
|
1316
1315
|
url: e.string()
|
|
1317
|
-
}),
|
|
1318
|
-
...
|
|
1319
|
-
trigger_id:
|
|
1316
|
+
}), Ft = e.object({
|
|
1317
|
+
...j,
|
|
1318
|
+
trigger_id: E,
|
|
1320
1319
|
form_id: e.string()
|
|
1321
|
-
}),
|
|
1322
|
-
...
|
|
1323
|
-
trigger_id:
|
|
1324
|
-
template_id:
|
|
1325
|
-
}),
|
|
1326
|
-
...
|
|
1327
|
-
trigger_id:
|
|
1320
|
+
}), It = e.object({
|
|
1321
|
+
...j,
|
|
1322
|
+
trigger_id: D,
|
|
1323
|
+
template_id: Nt
|
|
1324
|
+
}), Lt = e.object({
|
|
1325
|
+
...j,
|
|
1326
|
+
trigger_id: O,
|
|
1328
1327
|
code_id: e.string()
|
|
1329
|
-
}),
|
|
1330
|
-
...
|
|
1331
|
-
trigger_id:
|
|
1332
|
-
page_id:
|
|
1328
|
+
}), Rt = e.object({
|
|
1329
|
+
...j,
|
|
1330
|
+
trigger_id: k,
|
|
1331
|
+
page_id: A,
|
|
1333
1332
|
permission_required: e.string().optional()
|
|
1334
1333
|
});
|
|
1335
1334
|
e.union([
|
|
1335
|
+
Pt,
|
|
1336
|
+
Ft,
|
|
1337
|
+
It,
|
|
1336
1338
|
Lt,
|
|
1337
|
-
Rt
|
|
1338
|
-
zt,
|
|
1339
|
-
Bt,
|
|
1340
|
-
Vt
|
|
1339
|
+
Rt
|
|
1341
1340
|
]);
|
|
1342
|
-
var
|
|
1343
|
-
...
|
|
1344
|
-
trigger_id:
|
|
1341
|
+
var zt = e.object({
|
|
1342
|
+
...j,
|
|
1343
|
+
trigger_id: T
|
|
1345
1344
|
}).extend(n.shape).extend({
|
|
1346
1345
|
hook_id: e.string(),
|
|
1347
1346
|
url: e.string()
|
|
1348
|
-
}),
|
|
1349
|
-
...
|
|
1350
|
-
trigger_id:
|
|
1347
|
+
}), Bt = e.object({
|
|
1348
|
+
...j,
|
|
1349
|
+
trigger_id: E
|
|
1351
1350
|
}).extend(n.shape).extend({
|
|
1352
1351
|
hook_id: e.string(),
|
|
1353
1352
|
form_id: e.string()
|
|
1354
|
-
}),
|
|
1355
|
-
...
|
|
1356
|
-
trigger_id:
|
|
1353
|
+
}), Vt = e.object({
|
|
1354
|
+
...j,
|
|
1355
|
+
trigger_id: D
|
|
1357
1356
|
}).extend(n.shape).extend({
|
|
1358
1357
|
hook_id: e.string(),
|
|
1359
|
-
template_id:
|
|
1360
|
-
}),
|
|
1361
|
-
...
|
|
1362
|
-
trigger_id:
|
|
1358
|
+
template_id: Nt
|
|
1359
|
+
}), Ht = e.object({
|
|
1360
|
+
...j,
|
|
1361
|
+
trigger_id: O
|
|
1363
1362
|
}).extend(n.shape).extend({
|
|
1364
1363
|
hook_id: e.string(),
|
|
1365
1364
|
code_id: e.string()
|
|
1366
|
-
}),
|
|
1367
|
-
...
|
|
1368
|
-
trigger_id:
|
|
1365
|
+
}), Ut = e.object({
|
|
1366
|
+
...j,
|
|
1367
|
+
trigger_id: k
|
|
1369
1368
|
}).extend(n.shape).extend({
|
|
1370
1369
|
hook_id: e.string(),
|
|
1371
|
-
page_id:
|
|
1370
|
+
page_id: A,
|
|
1372
1371
|
permission_required: e.string().optional()
|
|
1373
1372
|
});
|
|
1374
1373
|
e.union([
|
|
1374
|
+
zt,
|
|
1375
|
+
Bt,
|
|
1376
|
+
Vt,
|
|
1375
1377
|
Ht,
|
|
1376
|
-
Ut
|
|
1377
|
-
Wt,
|
|
1378
|
-
Gt,
|
|
1379
|
-
Kt
|
|
1378
|
+
Ut
|
|
1380
1379
|
]), e.object({
|
|
1381
1380
|
code: e.string().max(1e5),
|
|
1382
1381
|
secrets: e.record(e.string(), e.string()).optional()
|
|
@@ -1384,11 +1383,11 @@ e.union([
|
|
|
1384
1383
|
id: e.string(),
|
|
1385
1384
|
tenant_id: e.string()
|
|
1386
1385
|
}).extend(n.shape);
|
|
1387
|
-
var
|
|
1386
|
+
var Wt = e.object({ name: e.string().optional() }), Gt = e.object({ email: e.string().optional() }), Kt = e.object({
|
|
1388
1387
|
id: e.string().optional(),
|
|
1389
1388
|
organization_id: e.string().max(50),
|
|
1390
|
-
inviter:
|
|
1391
|
-
invitee:
|
|
1389
|
+
inviter: Wt,
|
|
1390
|
+
invitee: Gt,
|
|
1392
1391
|
invitation_url: e.string().url(),
|
|
1393
1392
|
client_id: e.string(),
|
|
1394
1393
|
connection_id: e.string().optional(),
|
|
@@ -1404,8 +1403,8 @@ e.object({
|
|
|
1404
1403
|
created_at: e.string().datetime(),
|
|
1405
1404
|
expires_at: e.string().datetime(),
|
|
1406
1405
|
ticket_id: e.string().optional()
|
|
1407
|
-
}).extend(
|
|
1408
|
-
var
|
|
1406
|
+
}).extend(Kt.omit({ id: !0 }).shape);
|
|
1407
|
+
var qt = e.object({
|
|
1409
1408
|
alg: e.enum([
|
|
1410
1409
|
"RS256",
|
|
1411
1410
|
"RS384",
|
|
@@ -1447,7 +1446,7 @@ var Xt = e.object({
|
|
|
1447
1446
|
message: `EC JWK is missing required member '${r}'`
|
|
1448
1447
|
});
|
|
1449
1448
|
});
|
|
1450
|
-
e.object({ keys: e.array(
|
|
1449
|
+
e.object({ keys: e.array(qt) }), e.object({
|
|
1451
1450
|
issuer: e.string(),
|
|
1452
1451
|
authorization_endpoint: e.string(),
|
|
1453
1452
|
token_endpoint: e.string(),
|
|
@@ -1474,35 +1473,35 @@ e.object({ keys: e.array(Xt) }), e.object({
|
|
|
1474
1473
|
backchannel_logout_supported: e.boolean().optional(),
|
|
1475
1474
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
1476
1475
|
});
|
|
1477
|
-
var
|
|
1476
|
+
var Jt = /* @__PURE__ */ function(e) {
|
|
1478
1477
|
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;
|
|
1479
|
-
}({}),
|
|
1478
|
+
}({}), Yt = e.nativeEnum(Jt), Xt = e.object({
|
|
1480
1479
|
strategy: e.string(),
|
|
1481
1480
|
strategy_type: e.string()
|
|
1482
1481
|
});
|
|
1483
1482
|
e.object({
|
|
1484
1483
|
csrf_token: e.string(),
|
|
1485
1484
|
auth0Client: e.string().optional(),
|
|
1486
|
-
authParams:
|
|
1485
|
+
authParams: Ve,
|
|
1487
1486
|
expires_at: e.string(),
|
|
1488
1487
|
deleted_at: e.string().optional(),
|
|
1489
1488
|
ip: e.string().optional(),
|
|
1490
1489
|
useragent: e.string().optional(),
|
|
1491
1490
|
session_id: e.string().optional(),
|
|
1492
1491
|
authorization_url: e.string().optional(),
|
|
1493
|
-
state:
|
|
1492
|
+
state: Yt.optional().default("pending"),
|
|
1494
1493
|
state_data: e.string().optional(),
|
|
1495
1494
|
failure_reason: e.string().optional(),
|
|
1496
1495
|
user_id: e.string().optional(),
|
|
1497
1496
|
auth_connection: e.string().optional(),
|
|
1498
|
-
auth_strategy:
|
|
1497
|
+
auth_strategy: Xt.optional(),
|
|
1499
1498
|
authenticated_at: e.string().optional()
|
|
1500
1499
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
1501
1500
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1502
1501
|
created_at: e.string(),
|
|
1503
1502
|
updated_at: e.string()
|
|
1504
1503
|
});
|
|
1505
|
-
var
|
|
1504
|
+
var M = {
|
|
1506
1505
|
ACLS_SUMMARY: "acls_summary",
|
|
1507
1506
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1508
1507
|
API_LIMIT: "api_limit",
|
|
@@ -1662,17 +1661,17 @@ var k = {
|
|
|
1662
1661
|
WARNING_DURING_LOGIN: "w",
|
|
1663
1662
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1664
1663
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1665
|
-
},
|
|
1666
|
-
|
|
1664
|
+
}, Zt = e.string().refine((e) => Object.values(M).includes(e), { message: "Invalid log type" });
|
|
1665
|
+
M.ACLS_SUMMARY, M.ACTIONS_EXECUTION_FAILED, M.API_LIMIT, M.API_LIMIT_WARNING, M.APPI, M.CIBA_EXCHANGE_FAILED, M.CIBA_EXCHANGE_SUCCEEDED, M.CIBA_START_FAILED, M.CIBA_START_SUCCEEDED, M.CODE_LINK_SENT, M.CODE_SENT, M.DEPRECATION_NOTICE, M.FAILED_LOGIN, M.FAILED_BY_CONNECTOR, M.FAILED_CHANGE_EMAIL, M.FAILED_BY_CORS, M.FAILED_CROSS_ORIGIN_AUTHENTICATION, M.FAILED_CHANGE_PASSWORD, M.FAILED_POST_CHANGE_PASSWORD_HOOK, M.FAILED_CHANGE_PHONE_NUMBER, M.FAILED_CHANGE_PASSWORD_REQUEST, M.FAILED_CONNECTOR_PROVISIONING, M.FAILED_CHANGE_USERNAME, M.FAILED_DELEGATION, M.FAILED_DEVICE_ACTIVATION, M.FAILED_DEVICE_AUTHORIZATION_REQUEST, M.USER_CANCELED_DEVICE_CONFIRMATION, M.FAILED_USER_DELETION, M.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, M.FAILED_EXCHANGE_CUSTOM_TOKEN, M.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, M.FAILED_FEDERATED_LOGOUT, M.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, M.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, M.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, M.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, M.FAILED_HOOK, M.FAILED_IMPERSONATION, M.FAILED_INVITE_ACCEPT, M.FAILED_LOGOUT, M.FLOWS_EXECUTION_COMPLETED, M.FLOWS_EXECUTION_FAILED, M.FAILED_SENDING_NOTIFICATION, M.FORMS_SUBMISSION_FAILED, M.FORMS_SUBMISSION_SUCCEEDED, M.FAILED_LOGIN_INCORRECT_PASSWORD, M.FAILED_PUSHED_AUTHORIZATION_REQUEST, M.FAILED_POST_USER_REGISTRATION_HOOK, M.FAILED_SIGNUP, M.FAILED_SILENT_AUTH, M.FAILED_LOGIN_INVALID_EMAIL_USERNAME, M.FAILED_USERS_IMPORT, M.FAILED_VERIFICATION_EMAIL, M.FAILED_VERIFICATION_EMAIL_REQUEST, M.EMAIL_VERIFICATION_CONFIRMED, M.EMAIL_VERIFICATION_FAILED, M.MFA_AUTH_FAILED, M.MFA_AUTH_REJECTED, M.MFA_AUTH_SUCCESS, M.MFA_ENROLLMENT_COMPLETE, M.TOO_MANY_MFA_FAILURES, M.MFA_RECOVERY_FAILED, M.MFA_RECOVERY_RATE_LIMIT_EXCEED, M.MFA_RECOVERY_SUCCESS, M.MFA_EMAIL_SENT, M.EMAIL_VERIFICATION_SENT, M.EMAIL_VERIFICATION_SEND_FAILURE, M.PUSH_NOTIFICATION_SENT, M.ERROR_SENDING_MFA_PUSH_NOTIFICATION, M.MFA_SMS_SENT, M.ERROR_SENDING_MFA_SMS, M.MFA_VOICE_CALL_SUCCESS, M.MFA_VOICE_CALL_FAILED, M.SECOND_FACTOR_STARTED, M.MFA_ENROLL_STARTED, M.MFA_ENROLLMENT_FAILED, M.GUARDIAN_TENANT_UPDATE, M.UNENROLL_DEVICE_ACCOUNT, M.UPDATE_DEVICE_ACCOUNT, M.WEBAUTHN_CHALLENGE_FAILED, M.WEBAUTHN_ENROLLMENT_FAILED, M.FAILED_KMS_API_OPERATION, M.SUCCESS_KMS_API_OPERATION, M.KMS_KEY_STATE_CHANGED, M.TOO_MANY_CALLS_TO_DELEGATION, M.BLOCKED_IP_ADDRESS, M.BLOCKED_ACCOUNT_IP, M.BLOCKED_ACCOUNT_EMAIL, M.INFORMATION, M.MFA_REQUIRED, M.MANAGEMENT_API_READ_OPERATION, M.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, M.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, M.FAILED_OIDC_BACKCHANNEL_LOGOUT, M.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, M.ORGANIZATION_MEMBER_ADDED, M.PASSKEY_CHALLENGE_FAILED, M.PASSKEY_CHALLENGE_STARTED, M.PRE_LOGIN_ASSESSMENT, M.BREACHED_PASSWORD, M.BREACHED_PASSWORD_ON_RESET, M.SUCCESS_RESOURCE_CLEANUP, M.RICH_CONSENTS_ACCESS_ERROR, M.SUCCESS_LOGIN, M.SUCCESS_API_OPERATION, M.FAILED_API_OPERATION, M.SUCCESS_CHANGE_EMAIL, M.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, M.SUCCESS_CHANGE_PASSWORD, M.SUCCESS_CHANGE_PHONE_NUMBER, M.SUCCESS_CHANGE_PASSWORD_REQUEST, M.SUCCESS_CHANGE_USERNAME, M.SUCCESS_CREDENTIAL_VALIDATION, M.SUCCESS_DELEGATION, M.SUCCESS_USER_DELETION, M.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, M.SUCCESS_EXCHANGE_CUSTOM_TOKEN, M.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, M.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, M.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, M.SUCCESS_IMPERSONATION, M.SUCCESSFULLY_ACCEPTED_USER_INVITE, M.BREACHED_PASSWORD_ON_SIGNUP, M.SUCCESS_LOGOUT, M.SUCCESS_HOOK, M.SUCCESS_PASSWORD_MIGRATION, M.SUCCESS_REVOCATION, M.SUCCESS_SIGNUP, M.FAILED_SS_SSO_OPERATION, M.INFORMATION_FROM_SS_SSO_OPERATION, M.SUCCESS_SS_SSO_OPERATION, M.SUCCESS_SILENT_AUTH, M.SUCCESSFUL_SCIM_OPERATION, M.SUCCESSFULLY_IMPORTED_USERS, M.SUCCESS_VERIFICATION_EMAIL, M.SUCCESS_VERIFICATION_EMAIL_REQUEST, M.MAX_AMOUNT_OF_AUTHENTICATORS, M.USER_LOGIN_BLOCK_RELEASED, M.FAILED_UNIVERSAL_LOGOUT, M.SUCCESSFUL_UNIVERSAL_LOGOUT, M.WARNING_DURING_LOGIN, M.WARNING_SENDING_NOTIFICATION, M.WARNING_USER_MANAGEMENT, (() => {
|
|
1667
1666
|
let e = {};
|
|
1668
|
-
for (let [t, n] of Object.entries(
|
|
1667
|
+
for (let [t, n] of Object.entries(M)) 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";
|
|
1669
1668
|
return e;
|
|
1670
1669
|
})();
|
|
1671
|
-
var
|
|
1670
|
+
var Qt = e.object({
|
|
1672
1671
|
name: e.string(),
|
|
1673
1672
|
version: e.string(),
|
|
1674
1673
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1675
|
-
}),
|
|
1674
|
+
}), $t = e.object({
|
|
1676
1675
|
country_code: e.string().length(2),
|
|
1677
1676
|
city_name: e.string(),
|
|
1678
1677
|
latitude: e.string(),
|
|
@@ -1681,7 +1680,7 @@ var tn = e.object({
|
|
|
1681
1680
|
continent_code: e.string()
|
|
1682
1681
|
});
|
|
1683
1682
|
e.object({
|
|
1684
|
-
type:
|
|
1683
|
+
type: Zt,
|
|
1685
1684
|
date: e.string(),
|
|
1686
1685
|
description: e.string().optional(),
|
|
1687
1686
|
ip: e.string().optional(),
|
|
@@ -1699,63 +1698,63 @@ e.object({
|
|
|
1699
1698
|
strategy: e.string().optional(),
|
|
1700
1699
|
strategy_type: e.string().optional(),
|
|
1701
1700
|
hostname: e.string().optional(),
|
|
1702
|
-
auth0_client:
|
|
1701
|
+
auth0_client: Qt.optional(),
|
|
1703
1702
|
log_id: e.string().optional(),
|
|
1704
|
-
location_info:
|
|
1703
|
+
location_info: $t.optional()
|
|
1705
1704
|
}).extend({ log_id: e.string() });
|
|
1706
|
-
var
|
|
1705
|
+
var en = e.enum([
|
|
1707
1706
|
"http",
|
|
1708
1707
|
"eventbridge",
|
|
1709
1708
|
"eventgrid",
|
|
1710
1709
|
"splunk",
|
|
1711
1710
|
"datadog",
|
|
1712
1711
|
"sumo"
|
|
1713
|
-
]),
|
|
1712
|
+
]), tn = e.enum([
|
|
1714
1713
|
"active",
|
|
1715
1714
|
"paused",
|
|
1716
1715
|
"suspended"
|
|
1717
|
-
]),
|
|
1716
|
+
]), nn = e.object({
|
|
1718
1717
|
type: e.string(),
|
|
1719
1718
|
name: e.string()
|
|
1720
1719
|
});
|
|
1721
1720
|
e.object({
|
|
1722
1721
|
name: e.string(),
|
|
1723
|
-
type:
|
|
1724
|
-
status:
|
|
1722
|
+
type: en,
|
|
1723
|
+
status: tn.optional(),
|
|
1725
1724
|
sink: e.record(e.string(), e.unknown()),
|
|
1726
|
-
filters: e.array(
|
|
1725
|
+
filters: e.array(nn).optional(),
|
|
1727
1726
|
isPriority: e.boolean().optional()
|
|
1728
1727
|
}).extend({
|
|
1729
1728
|
id: e.string(),
|
|
1730
|
-
status:
|
|
1729
|
+
status: tn,
|
|
1731
1730
|
created_at: e.string().optional(),
|
|
1732
1731
|
updated_at: e.string().optional()
|
|
1733
1732
|
});
|
|
1734
|
-
var
|
|
1733
|
+
var rn = e.enum([
|
|
1735
1734
|
"auth0",
|
|
1736
1735
|
"cognito",
|
|
1737
1736
|
"okta",
|
|
1738
1737
|
"oidc"
|
|
1739
|
-
]),
|
|
1738
|
+
]), an = e.object({
|
|
1740
1739
|
domain: e.string(),
|
|
1741
1740
|
client_id: e.string(),
|
|
1742
1741
|
client_secret: e.string(),
|
|
1743
1742
|
audience: e.string().optional(),
|
|
1744
1743
|
scope: e.string().optional()
|
|
1745
|
-
}),
|
|
1744
|
+
}), on = e.object({
|
|
1746
1745
|
id: e.string().optional(),
|
|
1747
1746
|
name: e.string(),
|
|
1748
|
-
provider:
|
|
1747
|
+
provider: rn,
|
|
1749
1748
|
connection: e.string(),
|
|
1750
1749
|
enabled: e.boolean().default(!0),
|
|
1751
|
-
credentials:
|
|
1750
|
+
credentials: an
|
|
1752
1751
|
});
|
|
1753
1752
|
e.object({
|
|
1754
1753
|
id: e.string(),
|
|
1755
1754
|
created_at: e.string(),
|
|
1756
1755
|
updated_at: e.string()
|
|
1757
|
-
}).extend(
|
|
1758
|
-
var
|
|
1756
|
+
}).extend(on.shape);
|
|
1757
|
+
var sn = e.object({
|
|
1759
1758
|
enabled: e.boolean().optional(),
|
|
1760
1759
|
shields: e.array(e.string()).optional(),
|
|
1761
1760
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1764,13 +1763,13 @@ var un = e.object({
|
|
|
1764
1763
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1765
1764
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1766
1765
|
}).optional()
|
|
1767
|
-
}),
|
|
1766
|
+
}), cn = e.object({
|
|
1768
1767
|
enabled: e.boolean().optional(),
|
|
1769
1768
|
shields: e.array(e.string()).optional(),
|
|
1770
1769
|
allowlist: e.array(e.string()).optional(),
|
|
1771
1770
|
mode: e.string().optional(),
|
|
1772
1771
|
max_attempts: e.number().optional()
|
|
1773
|
-
}),
|
|
1772
|
+
}), ln = e.object({
|
|
1774
1773
|
enabled: e.boolean().optional(),
|
|
1775
1774
|
shields: e.array(e.string()).optional(),
|
|
1776
1775
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1784,10 +1783,10 @@ var un = e.object({
|
|
|
1784
1783
|
rate: e.number().optional()
|
|
1785
1784
|
}).optional()
|
|
1786
1785
|
}).optional()
|
|
1787
|
-
}),
|
|
1788
|
-
breached_password_detection:
|
|
1789
|
-
brute_force_protection:
|
|
1790
|
-
suspicious_ip_throttling:
|
|
1786
|
+
}), un = e.object({
|
|
1787
|
+
breached_password_detection: sn.optional(),
|
|
1788
|
+
brute_force_protection: cn.optional(),
|
|
1789
|
+
suspicious_ip_throttling: ln.optional()
|
|
1791
1790
|
});
|
|
1792
1791
|
e.object({
|
|
1793
1792
|
id: e.string().optional(),
|
|
@@ -1800,14 +1799,14 @@ e.object({
|
|
|
1800
1799
|
created_at: e.string(),
|
|
1801
1800
|
updated_at: e.string()
|
|
1802
1801
|
});
|
|
1803
|
-
var
|
|
1802
|
+
var dn = e.object({
|
|
1804
1803
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1805
1804
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1806
1805
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1807
1806
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1808
1807
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1809
1808
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1810
|
-
}),
|
|
1809
|
+
}), fn = e.object({
|
|
1811
1810
|
id: e.string(),
|
|
1812
1811
|
revoked_at: e.string().optional(),
|
|
1813
1812
|
used_at: e.string().optional(),
|
|
@@ -1815,7 +1814,7 @@ var mn = e.object({
|
|
|
1815
1814
|
expires_at: e.string().optional(),
|
|
1816
1815
|
login_session_id: e.string(),
|
|
1817
1816
|
idle_expires_at: e.string().optional(),
|
|
1818
|
-
device:
|
|
1817
|
+
device: dn.describe("Metadata related to the device used in the session"),
|
|
1819
1818
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1820
1819
|
});
|
|
1821
1820
|
e.object({
|
|
@@ -1823,7 +1822,7 @@ e.object({
|
|
|
1823
1822
|
updated_at: e.string(),
|
|
1824
1823
|
authenticated_at: e.string(),
|
|
1825
1824
|
last_interaction_at: e.string()
|
|
1826
|
-
}).extend(
|
|
1825
|
+
}).extend(fn.shape), e.object({
|
|
1827
1826
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1828
1827
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
1829
1828
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -1840,7 +1839,7 @@ e.object({
|
|
|
1840
1839
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
1841
1840
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
1842
1841
|
});
|
|
1843
|
-
var
|
|
1842
|
+
var pn = e.object({
|
|
1844
1843
|
id: e.string().optional(),
|
|
1845
1844
|
audience: e.string().optional(),
|
|
1846
1845
|
friendly_name: e.string(),
|
|
@@ -1958,7 +1957,7 @@ var gn = e.object({
|
|
|
1958
1957
|
"shared_planetscale"
|
|
1959
1958
|
]).optional(),
|
|
1960
1959
|
d1_database_id: e.string().max(64).optional(),
|
|
1961
|
-
attack_protection:
|
|
1960
|
+
attack_protection: un.optional(),
|
|
1962
1961
|
mfa: e.object({
|
|
1963
1962
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
1964
1963
|
factors: e.object({
|
|
@@ -1989,35 +1988,35 @@ var gn = e.object({
|
|
|
1989
1988
|
e.object({
|
|
1990
1989
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
1991
1990
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
1992
|
-
}).extend(
|
|
1991
|
+
}).extend(pn.shape).extend({
|
|
1993
1992
|
id: e.string(),
|
|
1994
1993
|
is_control_plane: e.boolean().optional()
|
|
1995
1994
|
});
|
|
1996
|
-
var
|
|
1995
|
+
var mn = e.enum([
|
|
1997
1996
|
"provision",
|
|
1998
1997
|
"seed",
|
|
1999
1998
|
"upgrade",
|
|
2000
1999
|
"backup",
|
|
2001
2000
|
"deprovision"
|
|
2002
|
-
]),
|
|
2001
|
+
]), hn = e.enum([
|
|
2003
2002
|
"pending",
|
|
2004
2003
|
"running",
|
|
2005
2004
|
"succeeded",
|
|
2006
2005
|
"failed",
|
|
2007
2006
|
"cancelled"
|
|
2008
|
-
]),
|
|
2007
|
+
]), gn = e.enum(["inline", "cloudflare-workflows"]);
|
|
2009
2008
|
e.object({
|
|
2010
2009
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2011
2010
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2012
|
-
kind:
|
|
2013
|
-
engine:
|
|
2011
|
+
kind: mn,
|
|
2012
|
+
engine: gn,
|
|
2014
2013
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2015
2014
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2016
2015
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2017
2016
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2018
2017
|
}).extend({
|
|
2019
2018
|
id: e.string(),
|
|
2020
|
-
status:
|
|
2019
|
+
status: hn,
|
|
2021
2020
|
current_step: e.string().max(255).nullable().optional(),
|
|
2022
2021
|
error: e.string().nullable().optional(),
|
|
2023
2022
|
created_at: e.string(),
|
|
@@ -2032,7 +2031,7 @@ e.object({
|
|
|
2032
2031
|
error: !0,
|
|
2033
2032
|
finished_at: !0
|
|
2034
2033
|
}).partial();
|
|
2035
|
-
var
|
|
2034
|
+
var _n = e.enum([
|
|
2036
2035
|
"started",
|
|
2037
2036
|
"succeeded",
|
|
2038
2037
|
"failed",
|
|
@@ -2043,18 +2042,18 @@ var bn = e.enum([
|
|
|
2043
2042
|
e.object({
|
|
2044
2043
|
operation_id: e.string().max(255),
|
|
2045
2044
|
step: e.string().max(255),
|
|
2046
|
-
outcome:
|
|
2045
|
+
outcome: _n,
|
|
2047
2046
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2048
2047
|
attempt: e.number().int().min(1).default(1)
|
|
2049
2048
|
}).extend({
|
|
2050
2049
|
id: e.string(),
|
|
2051
2050
|
created_at: e.string()
|
|
2052
2051
|
});
|
|
2053
|
-
var
|
|
2052
|
+
var vn = e.enum([
|
|
2054
2053
|
"upgrade",
|
|
2055
2054
|
"reseed",
|
|
2056
2055
|
"backup"
|
|
2057
|
-
]),
|
|
2056
|
+
]), yn = e.enum([
|
|
2058
2057
|
"pending",
|
|
2059
2058
|
"canary",
|
|
2060
2059
|
"rolling",
|
|
@@ -2063,7 +2062,7 @@ var xn = e.enum([
|
|
|
2063
2062
|
"failed"
|
|
2064
2063
|
]);
|
|
2065
2064
|
e.object({
|
|
2066
|
-
kind:
|
|
2065
|
+
kind: vn,
|
|
2067
2066
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2068
2067
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2069
2068
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -2072,7 +2071,7 @@ e.object({
|
|
|
2072
2071
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2073
2072
|
}).extend({
|
|
2074
2073
|
id: e.string(),
|
|
2075
|
-
status:
|
|
2074
|
+
status: yn,
|
|
2076
2075
|
created_at: e.string(),
|
|
2077
2076
|
updated_at: e.string(),
|
|
2078
2077
|
finished_at: e.string().nullable().optional()
|
|
@@ -2094,7 +2093,7 @@ e.object({
|
|
|
2094
2093
|
code: e.string(),
|
|
2095
2094
|
state: e.string().optional()
|
|
2096
2095
|
});
|
|
2097
|
-
var
|
|
2096
|
+
var bn = e.object({
|
|
2098
2097
|
button_border_radius: e.number(),
|
|
2099
2098
|
button_border_weight: e.number(),
|
|
2100
2099
|
buttons_style: e.enum([
|
|
@@ -2112,7 +2111,7 @@ var Cn = e.object({
|
|
|
2112
2111
|
show_widget_shadow: e.boolean(),
|
|
2113
2112
|
widget_border_weight: e.number(),
|
|
2114
2113
|
widget_corner_radius: e.number()
|
|
2115
|
-
}),
|
|
2114
|
+
}), xn = e.object({
|
|
2116
2115
|
base_focus_color: e.string(),
|
|
2117
2116
|
base_hover_color: e.string(),
|
|
2118
2117
|
body_text: e.string(),
|
|
@@ -2136,20 +2135,20 @@ var Cn = e.object({
|
|
|
2136
2135
|
success: e.string(),
|
|
2137
2136
|
widget_background: e.string(),
|
|
2138
2137
|
widget_border: e.string()
|
|
2139
|
-
}),
|
|
2138
|
+
}), N = e.object({
|
|
2140
2139
|
bold: e.boolean(),
|
|
2141
2140
|
size: e.number()
|
|
2142
|
-
}),
|
|
2143
|
-
body_text:
|
|
2144
|
-
buttons_text:
|
|
2141
|
+
}), Sn = e.object({
|
|
2142
|
+
body_text: N,
|
|
2143
|
+
buttons_text: N,
|
|
2145
2144
|
font_url: e.string(),
|
|
2146
|
-
input_labels:
|
|
2147
|
-
links:
|
|
2145
|
+
input_labels: N,
|
|
2146
|
+
links: N,
|
|
2148
2147
|
links_style: e.enum(["normal", "underlined"]),
|
|
2149
2148
|
reference_text_size: e.number(),
|
|
2150
|
-
subtitle:
|
|
2151
|
-
title:
|
|
2152
|
-
}),
|
|
2149
|
+
subtitle: N,
|
|
2150
|
+
title: N
|
|
2151
|
+
}), Cn = e.object({
|
|
2153
2152
|
background_color: e.string(),
|
|
2154
2153
|
background_image_url: e.string(),
|
|
2155
2154
|
page_layout: e.enum([
|
|
@@ -2162,7 +2161,7 @@ var Cn = e.object({
|
|
|
2162
2161
|
"chip",
|
|
2163
2162
|
"none"
|
|
2164
2163
|
]).optional()
|
|
2165
|
-
}),
|
|
2164
|
+
}), wn = e.object({
|
|
2166
2165
|
header_text_alignment: e.enum([
|
|
2167
2166
|
"center",
|
|
2168
2167
|
"left",
|
|
@@ -2179,12 +2178,12 @@ var Cn = e.object({
|
|
|
2179
2178
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2180
2179
|
});
|
|
2181
2180
|
e.object({
|
|
2182
|
-
borders:
|
|
2183
|
-
colors:
|
|
2181
|
+
borders: bn,
|
|
2182
|
+
colors: xn,
|
|
2184
2183
|
displayName: e.string(),
|
|
2185
|
-
fonts:
|
|
2186
|
-
page_background:
|
|
2187
|
-
widget:
|
|
2184
|
+
fonts: Sn,
|
|
2185
|
+
page_background: Cn,
|
|
2186
|
+
widget: wn
|
|
2188
2187
|
}).extend({ themeId: e.string() }), e.object({
|
|
2189
2188
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2190
2189
|
identifier_first: e.boolean().default(!0),
|
|
@@ -2192,42 +2191,42 @@ e.object({
|
|
|
2192
2191
|
show_last_used_connection: e.boolean().default(!1),
|
|
2193
2192
|
webauthn_platform_first_factor: e.boolean()
|
|
2194
2193
|
});
|
|
2195
|
-
var
|
|
2194
|
+
var Tn = e.object({
|
|
2196
2195
|
hosts: e.array(e.string()).optional(),
|
|
2197
2196
|
methods: e.array(e.string()).optional(),
|
|
2198
2197
|
path: e.string().default("/*"),
|
|
2199
2198
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2200
2199
|
query: e.record(e.string(), e.string()).optional()
|
|
2201
|
-
}),
|
|
2200
|
+
}), En = e.object({
|
|
2202
2201
|
type: e.string(),
|
|
2203
2202
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2204
|
-
}),
|
|
2203
|
+
}), P = e.object({
|
|
2205
2204
|
id: e.string().optional(),
|
|
2206
2205
|
custom_domain_id: e.string(),
|
|
2207
2206
|
priority: e.number().int().default(100),
|
|
2208
|
-
match:
|
|
2209
|
-
handlers: e.array(
|
|
2210
|
-
}),
|
|
2207
|
+
match: Tn,
|
|
2208
|
+
handlers: e.array(En).min(1)
|
|
2209
|
+
}), Dn = P.extend({
|
|
2211
2210
|
id: e.string(),
|
|
2212
2211
|
tenant_id: e.string(),
|
|
2213
2212
|
created_at: e.string(),
|
|
2214
2213
|
updated_at: e.string()
|
|
2215
|
-
}),
|
|
2214
|
+
}), On = P.partial().omit({
|
|
2216
2215
|
id: !0,
|
|
2217
2216
|
custom_domain_id: !0
|
|
2218
|
-
}),
|
|
2217
|
+
}), kn = e.object({
|
|
2219
2218
|
scim: e.string(),
|
|
2220
2219
|
auth0: e.string()
|
|
2221
|
-
}),
|
|
2220
|
+
}), An = e.object({
|
|
2222
2221
|
connection_id: e.string(),
|
|
2223
2222
|
user_id_attribute: e.string().default("externalId"),
|
|
2224
|
-
mapping: e.array(
|
|
2223
|
+
mapping: e.array(kn).default([])
|
|
2225
2224
|
});
|
|
2226
2225
|
e.object({
|
|
2227
2226
|
created_at: e.string(),
|
|
2228
2227
|
updated_at: e.string()
|
|
2229
|
-
}).extend(
|
|
2230
|
-
var
|
|
2228
|
+
}).extend(An.shape);
|
|
2229
|
+
var jn = e.object({
|
|
2231
2230
|
token_id: e.string(),
|
|
2232
2231
|
connection_id: e.string(),
|
|
2233
2232
|
token_hash: e.string(),
|
|
@@ -2237,20 +2236,20 @@ var Mn = e.object({
|
|
|
2237
2236
|
e.object({
|
|
2238
2237
|
created_at: e.string(),
|
|
2239
2238
|
last_used_at: e.string().optional()
|
|
2240
|
-
}).extend(
|
|
2241
|
-
var
|
|
2239
|
+
}).extend(jn.shape);
|
|
2240
|
+
var Mn = e.object({
|
|
2242
2241
|
connection_id: e.string(),
|
|
2243
2242
|
external_id: e.string(),
|
|
2244
2243
|
user_id: e.string()
|
|
2245
2244
|
});
|
|
2246
|
-
e.object({ created_at: e.string() }).extend(
|
|
2245
|
+
e.object({ created_at: e.string() }).extend(Mn.shape), e.object({
|
|
2247
2246
|
name: e.string(),
|
|
2248
2247
|
enabled: e.boolean().optional().default(!0),
|
|
2249
2248
|
default_from_address: e.string().optional(),
|
|
2250
2249
|
credentials: e.record(e.string(), e.unknown()),
|
|
2251
2250
|
settings: e.object({}).optional()
|
|
2252
2251
|
});
|
|
2253
|
-
var
|
|
2252
|
+
var Nn = e.enum([
|
|
2254
2253
|
"verify_email",
|
|
2255
2254
|
"verify_email_by_code",
|
|
2256
2255
|
"reset_email",
|
|
@@ -2265,7 +2264,7 @@ var Pn = e.enum([
|
|
|
2265
2264
|
"user_invitation"
|
|
2266
2265
|
]);
|
|
2267
2266
|
e.object({
|
|
2268
|
-
template:
|
|
2267
|
+
template: Nn,
|
|
2269
2268
|
body: e.string(),
|
|
2270
2269
|
from: e.string(),
|
|
2271
2270
|
subject: e.string(),
|
|
@@ -2282,7 +2281,7 @@ e.object({
|
|
|
2282
2281
|
expires_at: e.string().optional(),
|
|
2283
2282
|
idle_expires_at: e.string().optional(),
|
|
2284
2283
|
last_exchanged_at: e.string().optional(),
|
|
2285
|
-
device:
|
|
2284
|
+
device: dn,
|
|
2286
2285
|
resource_servers: e.array(e.object({
|
|
2287
2286
|
audience: e.string(),
|
|
2288
2287
|
scopes: e.string()
|
|
@@ -2303,10 +2302,10 @@ e.object({
|
|
|
2303
2302
|
name: e.string(),
|
|
2304
2303
|
options: e.object({})
|
|
2305
2304
|
});
|
|
2306
|
-
var
|
|
2305
|
+
var Pn = e.object({
|
|
2307
2306
|
value: e.string(),
|
|
2308
2307
|
description: e.string().optional()
|
|
2309
|
-
}),
|
|
2308
|
+
}), Fn = e.object({
|
|
2310
2309
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2311
2310
|
enforce_policies: e.boolean().optional(),
|
|
2312
2311
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2314,11 +2313,11 @@ var Fn = e.object({
|
|
|
2314
2313
|
persist_client_authorization: e.boolean().optional(),
|
|
2315
2314
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2316
2315
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2317
|
-
}),
|
|
2316
|
+
}), In = e.object({
|
|
2318
2317
|
id: e.string().optional(),
|
|
2319
2318
|
name: e.string(),
|
|
2320
2319
|
identifier: e.string(),
|
|
2321
|
-
scopes: e.array(
|
|
2320
|
+
scopes: e.array(Pn).optional(),
|
|
2322
2321
|
signing_alg: e.string().optional(),
|
|
2323
2322
|
signing_secret: e.string().optional(),
|
|
2324
2323
|
token_lifetime: e.number().default(86400),
|
|
@@ -2326,20 +2325,20 @@ var Fn = e.object({
|
|
|
2326
2325
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2327
2326
|
allow_offline_access: e.boolean().optional(),
|
|
2328
2327
|
verificationKey: e.string().optional(),
|
|
2329
|
-
options:
|
|
2328
|
+
options: Fn.optional(),
|
|
2330
2329
|
is_system: e.boolean().optional(),
|
|
2331
2330
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2332
2331
|
}).extend({
|
|
2333
2332
|
created_at: e.string().optional(),
|
|
2334
2333
|
updated_at: e.string().optional()
|
|
2335
2334
|
});
|
|
2336
|
-
e.array(
|
|
2337
|
-
var
|
|
2335
|
+
e.array(In);
|
|
2336
|
+
var Ln = e.object({
|
|
2338
2337
|
role_id: e.string(),
|
|
2339
2338
|
resource_server_identifier: e.string(),
|
|
2340
2339
|
permission_name: e.string()
|
|
2341
2340
|
}).extend({ created_at: e.string() });
|
|
2342
|
-
e.array(
|
|
2341
|
+
e.array(Ln), e.object({
|
|
2343
2342
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2344
2343
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2345
2344
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -2352,7 +2351,7 @@ e.array(Rn), e.object({
|
|
|
2352
2351
|
failed_logins: e.array(e.string()).optional(),
|
|
2353
2352
|
last_password_reset: e.string().optional()
|
|
2354
2353
|
});
|
|
2355
|
-
var
|
|
2354
|
+
var Rn = e.object({
|
|
2356
2355
|
user_id: e.string(),
|
|
2357
2356
|
resource_server_identifier: e.string(),
|
|
2358
2357
|
permission_name: e.string(),
|
|
@@ -2361,8 +2360,8 @@ var zn = e.object({
|
|
|
2361
2360
|
tenant_id: e.string(),
|
|
2362
2361
|
created_at: e.string().optional()
|
|
2363
2362
|
});
|
|
2364
|
-
e.array(
|
|
2365
|
-
var
|
|
2363
|
+
e.array(Rn);
|
|
2364
|
+
var zn = e.object({
|
|
2366
2365
|
user_id: e.string(),
|
|
2367
2366
|
resource_server_identifier: e.string(),
|
|
2368
2367
|
resource_server_name: e.string(),
|
|
@@ -2371,8 +2370,8 @@ var Bn = e.object({
|
|
|
2371
2370
|
created_at: e.string().optional(),
|
|
2372
2371
|
organization_id: e.string().optional()
|
|
2373
2372
|
});
|
|
2374
|
-
e.array(
|
|
2375
|
-
var
|
|
2373
|
+
e.array(zn);
|
|
2374
|
+
var Bn = e.object({
|
|
2376
2375
|
user_id: e.string(),
|
|
2377
2376
|
role_id: e.string(),
|
|
2378
2377
|
organization_id: e.string().optional()
|
|
@@ -2380,8 +2379,8 @@ var Vn = e.object({
|
|
|
2380
2379
|
tenant_id: e.string(),
|
|
2381
2380
|
created_at: e.string().optional()
|
|
2382
2381
|
});
|
|
2383
|
-
e.array(
|
|
2384
|
-
var
|
|
2382
|
+
e.array(Bn);
|
|
2383
|
+
var Vn = e.object({
|
|
2385
2384
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2386
2385
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2387
2386
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -2392,19 +2391,19 @@ var Hn = e.object({
|
|
|
2392
2391
|
created_at: e.string().optional(),
|
|
2393
2392
|
updated_at: e.string().optional()
|
|
2394
2393
|
});
|
|
2395
|
-
e.array(
|
|
2396
|
-
var
|
|
2394
|
+
e.array(Vn);
|
|
2395
|
+
var Hn = e.object({
|
|
2397
2396
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2398
2397
|
colors: e.object({
|
|
2399
2398
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2400
2399
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2401
2400
|
}).optional()
|
|
2402
|
-
}).optional(),
|
|
2401
|
+
}).optional(), Un = e.object({
|
|
2403
2402
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2404
2403
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2405
2404
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2406
2405
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2407
|
-
}),
|
|
2406
|
+
}), Wn = e.object({ client_credentials: e.object({
|
|
2408
2407
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2409
2408
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2410
2409
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -2413,15 +2412,15 @@ e.object({
|
|
|
2413
2412
|
id: e.string().optional(),
|
|
2414
2413
|
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." }),
|
|
2415
2414
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2416
|
-
branding:
|
|
2415
|
+
branding: Hn,
|
|
2417
2416
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2418
|
-
enabled_connections: e.array(
|
|
2419
|
-
token_quota:
|
|
2417
|
+
enabled_connections: e.array(Un).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2418
|
+
token_quota: Wn
|
|
2420
2419
|
}).extend(n.shape).extend({
|
|
2421
2420
|
id: e.string(),
|
|
2422
2421
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2423
2422
|
});
|
|
2424
|
-
var
|
|
2423
|
+
var Gn = e.object({
|
|
2425
2424
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2426
2425
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2427
2426
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -2434,7 +2433,7 @@ var Kn = e.object({
|
|
|
2434
2433
|
created_at: e.string().optional(),
|
|
2435
2434
|
updated_at: e.string().optional()
|
|
2436
2435
|
});
|
|
2437
|
-
e.array(
|
|
2436
|
+
e.array(Gn), e.object({
|
|
2438
2437
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2439
2438
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2440
2439
|
}).extend(n.shape).extend({ id: e.string() }), e.object({
|
|
@@ -2573,11 +2572,22 @@ e.array(Kn), e.object({
|
|
|
2573
2572
|
"passwordless",
|
|
2574
2573
|
"enterprise"
|
|
2575
2574
|
]);
|
|
2576
|
-
var
|
|
2575
|
+
var Kn = e.object({
|
|
2577
2576
|
cohort: e.string(),
|
|
2578
2577
|
sessions: e.number(),
|
|
2579
2578
|
active: e.array(e.number())
|
|
2580
2579
|
});
|
|
2580
|
+
e.object({
|
|
2581
|
+
interval: e.literal("week"),
|
|
2582
|
+
from: e.string(),
|
|
2583
|
+
to: e.string(),
|
|
2584
|
+
cohorts: e.array(Kn)
|
|
2585
|
+
});
|
|
2586
|
+
var qn = e.object({
|
|
2587
|
+
cohort: e.string(),
|
|
2588
|
+
tokens: e.number(),
|
|
2589
|
+
active: e.array(e.number())
|
|
2590
|
+
});
|
|
2581
2591
|
e.object({
|
|
2582
2592
|
interval: e.literal("week"),
|
|
2583
2593
|
from: e.string(),
|
|
@@ -2619,7 +2629,7 @@ var Qn = e.enum([
|
|
|
2619
2629
|
"webauthn-roaming",
|
|
2620
2630
|
"webauthn-platform",
|
|
2621
2631
|
"passkey"
|
|
2622
|
-
]),
|
|
2632
|
+
]), $n = e.object({
|
|
2623
2633
|
user_id: e.string(),
|
|
2624
2634
|
type: Qn,
|
|
2625
2635
|
phone_number: e.string().optional(),
|
|
@@ -2655,7 +2665,7 @@ function F(t, n) {
|
|
|
2655
2665
|
path: ["public_key"]
|
|
2656
2666
|
}));
|
|
2657
2667
|
}
|
|
2658
|
-
|
|
2668
|
+
$n.superRefine(F), $n.extend({
|
|
2659
2669
|
id: e.string(),
|
|
2660
2670
|
created_at: e.string(),
|
|
2661
2671
|
updated_at: e.string()
|
|
@@ -2666,12 +2676,12 @@ P.superRefine(F), P.extend({
|
|
|
2666
2676
|
});
|
|
2667
2677
|
//#endregion
|
|
2668
2678
|
//#region src/data-plane/cache.ts
|
|
2669
|
-
var
|
|
2679
|
+
var er = 1e4;
|
|
2670
2680
|
function I(e, t, n) {
|
|
2671
2681
|
let r = typeof t == "number" ? {
|
|
2672
2682
|
freshTtlMs: t,
|
|
2673
2683
|
maxEntries: n
|
|
2674
|
-
} : t, i = r.freshTtlMs, a = r.staleTtlMs ?? 0, o = r.staleIfErrorTtlMs ?? 0, s = r.negativeTtlMs ?? i, c = r.maxEntries ??
|
|
2684
|
+
} : t, i = r.freshTtlMs, a = r.staleTtlMs ?? 0, o = r.staleIfErrorTtlMs ?? 0, s = r.negativeTtlMs ?? i, c = r.maxEntries ?? er, l = r.waitUntil, u = /* @__PURE__ */ new Map();
|
|
2675
2685
|
function d(e) {
|
|
2676
2686
|
for (let [t, n] of u) n.stale_if_error_until <= e && n.stale_until <= e && !n.refreshing && u.delete(t);
|
|
2677
2687
|
for (; u.size >= c;) {
|
|
@@ -2754,27 +2764,27 @@ function R(e) {
|
|
|
2754
2764
|
//#endregion
|
|
2755
2765
|
//#region src/data-plane/handlers/util.ts
|
|
2756
2766
|
var z = "__authhero_proxy_request__", B = "__authhero_proxy_tenant_id__", V = "__authhero_proxy_custom_domain_id__", H = "__authhero_proxy_domain__", U = "x-authhero-proxy-mutability-probe";
|
|
2757
|
-
function
|
|
2767
|
+
function tr(e, t) {
|
|
2758
2768
|
e.set(z, t);
|
|
2759
2769
|
}
|
|
2760
2770
|
function W(e) {
|
|
2761
2771
|
return e.get(z) ?? e.req.raw;
|
|
2762
2772
|
}
|
|
2763
|
-
function
|
|
2773
|
+
function nr(e, t) {
|
|
2764
2774
|
e.set(B, t.tenant_id), e.set(V, t.custom_domain_id), e.set(H, t.domain);
|
|
2765
2775
|
}
|
|
2766
|
-
function
|
|
2776
|
+
function rr(e) {
|
|
2767
2777
|
return e.get(B);
|
|
2768
2778
|
}
|
|
2769
|
-
function
|
|
2779
|
+
function ir(e) {
|
|
2770
2780
|
return e.get(V);
|
|
2771
2781
|
}
|
|
2772
|
-
function
|
|
2782
|
+
function ar(e) {
|
|
2773
2783
|
return e.get(H);
|
|
2774
2784
|
}
|
|
2775
|
-
function
|
|
2785
|
+
function or(e, t) {
|
|
2776
2786
|
let n = W(e), r = new Headers(n.headers);
|
|
2777
|
-
t(r),
|
|
2787
|
+
t(r), tr(e, new Request(n, { headers: r }));
|
|
2778
2788
|
}
|
|
2779
2789
|
function G(e) {
|
|
2780
2790
|
let t = e.res;
|
|
@@ -2791,7 +2801,7 @@ function G(e) {
|
|
|
2791
2801
|
}
|
|
2792
2802
|
//#endregion
|
|
2793
2803
|
//#region src/data-plane/handlers/cors.ts
|
|
2794
|
-
var
|
|
2804
|
+
var sr = e.object({
|
|
2795
2805
|
origins: e.array(e.string()).optional(),
|
|
2796
2806
|
allow_credentials: e.boolean().optional(),
|
|
2797
2807
|
allow_headers: e.array(e.string()).optional(),
|
|
@@ -2799,44 +2809,44 @@ var or = e.object({
|
|
|
2799
2809
|
expose_headers: e.array(e.string()).optional(),
|
|
2800
2810
|
max_age: e.number().int().optional()
|
|
2801
2811
|
}).refine((e) => !(e.allow_credentials && e.origins?.includes("*")), { message: "Cannot use wildcard origin (*) with allow_credentials" });
|
|
2802
|
-
function
|
|
2812
|
+
function cr(e, t) {
|
|
2803
2813
|
let n = new Headers(), r = e.origins ?? ["*"], i = r.includes("*");
|
|
2804
2814
|
return i && !e.allow_credentials ? n.set("Access-Control-Allow-Origin", "*") : t && (i || r.includes(t)) && (n.set("Access-Control-Allow-Origin", t), n.append("Vary", "Origin")), e.allow_credentials && n.set("Access-Control-Allow-Credentials", "true"), e.allow_methods?.length && n.set("Access-Control-Allow-Methods", e.allow_methods.join(", ")), e.allow_headers?.length && n.set("Access-Control-Allow-Headers", e.allow_headers.join(", ")), e.expose_headers?.length && n.set("Access-Control-Expose-Headers", e.expose_headers.join(", ")), e.max_age !== void 0 && n.set("Access-Control-Max-Age", String(e.max_age)), n;
|
|
2805
2815
|
}
|
|
2806
|
-
var
|
|
2816
|
+
var lr = R({
|
|
2807
2817
|
type: "cors",
|
|
2808
|
-
optionsSchema:
|
|
2818
|
+
optionsSchema: sr,
|
|
2809
2819
|
build(e) {
|
|
2810
2820
|
return async (t, n) => {
|
|
2811
2821
|
let r = t.req.header("origin") ?? null;
|
|
2812
2822
|
if (t.req.method === "OPTIONS" && r !== null && t.req.header("access-control-request-method") !== void 0) {
|
|
2813
|
-
let t =
|
|
2823
|
+
let t = cr(e, r);
|
|
2814
2824
|
return new Response(null, {
|
|
2815
2825
|
status: 204,
|
|
2816
2826
|
headers: t
|
|
2817
2827
|
});
|
|
2818
2828
|
}
|
|
2819
2829
|
await n();
|
|
2820
|
-
let i =
|
|
2830
|
+
let i = cr(e, r);
|
|
2821
2831
|
G(t), i.forEach((e, n) => {
|
|
2822
2832
|
n.toLowerCase() === "vary" ? t.res.headers.append(n, e) : t.res.headers.set(n, e);
|
|
2823
2833
|
});
|
|
2824
2834
|
};
|
|
2825
2835
|
}
|
|
2826
|
-
}),
|
|
2836
|
+
}), ur = e.object({
|
|
2827
2837
|
username: e.string(),
|
|
2828
2838
|
password: e.string(),
|
|
2829
2839
|
realm: e.string().optional()
|
|
2830
2840
|
});
|
|
2831
|
-
function
|
|
2841
|
+
function dr(e, t) {
|
|
2832
2842
|
let n = `${e}:${t}`;
|
|
2833
2843
|
return typeof btoa == "function" ? btoa(n) : Buffer.from(n, "utf-8").toString("base64");
|
|
2834
2844
|
}
|
|
2835
|
-
var
|
|
2845
|
+
var fr = R({
|
|
2836
2846
|
type: "basic_auth",
|
|
2837
|
-
optionsSchema:
|
|
2847
|
+
optionsSchema: ur,
|
|
2838
2848
|
build(e) {
|
|
2839
|
-
let t =
|
|
2849
|
+
let t = dr(e.username, e.password), n = (e.realm ?? "Restricted").replace(/["\\\r\n]/g, "");
|
|
2840
2850
|
return async (e, r) => {
|
|
2841
2851
|
let i = e.req.header("authorization");
|
|
2842
2852
|
if (i) {
|
|
@@ -2852,7 +2862,7 @@ var dr = R({
|
|
|
2852
2862
|
});
|
|
2853
2863
|
};
|
|
2854
2864
|
}
|
|
2855
|
-
}),
|
|
2865
|
+
}), pr = R({
|
|
2856
2866
|
type: "headers",
|
|
2857
2867
|
optionsSchema: e.object({
|
|
2858
2868
|
request: e.record(e.string(), e.string()).optional(),
|
|
@@ -2862,12 +2872,12 @@ var dr = R({
|
|
|
2862
2872
|
}),
|
|
2863
2873
|
build(e) {
|
|
2864
2874
|
return async (t, n) => {
|
|
2865
|
-
if ((e.request || e.remove_request) &&
|
|
2875
|
+
if ((e.request || e.remove_request) && or(t, (t) => {
|
|
2866
2876
|
if (e.remove_request?.forEach((e) => t.delete(e)), e.request) for (let [n, r] of Object.entries(e.request)) t.set(n, r);
|
|
2867
2877
|
}), await n(), (e.response || e.remove_response) && (G(t), e.remove_response?.forEach((e) => t.res.headers.delete(e)), e.response)) for (let [n, r] of Object.entries(e.response)) t.res.headers.set(n, r);
|
|
2868
2878
|
};
|
|
2869
2879
|
}
|
|
2870
|
-
}),
|
|
2880
|
+
}), mr = R({
|
|
2871
2881
|
type: "cache",
|
|
2872
2882
|
optionsSchema: e.object({ ttl_seconds: e.number().int().positive() }),
|
|
2873
2883
|
build(e) {
|
|
@@ -2878,7 +2888,7 @@ var dr = R({
|
|
|
2878
2888
|
}
|
|
2879
2889
|
};
|
|
2880
2890
|
}
|
|
2881
|
-
}),
|
|
2891
|
+
}), hr = R({
|
|
2882
2892
|
type: "forwarded_headers",
|
|
2883
2893
|
optionsSchema: e.object({
|
|
2884
2894
|
client_ip_header: e.string().default("cf-connecting-ip"),
|
|
@@ -2888,40 +2898,40 @@ var dr = R({
|
|
|
2888
2898
|
build(e) {
|
|
2889
2899
|
return async (t, n) => {
|
|
2890
2900
|
let r = new URL(t.req.url);
|
|
2891
|
-
|
|
2901
|
+
or(t, (n) => {
|
|
2892
2902
|
n.set("x-forwarded-host", r.host), n.set("x-forwarded-proto", r.protocol.replace(":", "")), e.set_x_original_url && n.set("x-original-url", t.req.url);
|
|
2893
2903
|
let i = n.get(e.client_ip_header), a = (n.get("x-forwarded-for") ?? "").split(",").map((e) => e.trim()).filter(Boolean), o = i ?? a[a.length - 1] ?? "127.0.0.1", s = a.length === 0 || a[a.length - 1] !== o, c = a.length ? s ? `${a.join(", ")}, ${o}` : a.join(", ") : o;
|
|
2894
2904
|
n.set("x-forwarded-for", c), e.set_x_real_ip && n.set("x-real-ip", o);
|
|
2895
2905
|
}), await n();
|
|
2896
2906
|
};
|
|
2897
2907
|
}
|
|
2898
|
-
}),
|
|
2899
|
-
function
|
|
2908
|
+
}), gr = e.object({ upstream_host: e.string().optional() });
|
|
2909
|
+
function _r(e) {
|
|
2900
2910
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2901
2911
|
}
|
|
2902
|
-
function
|
|
2912
|
+
function vr(e) {
|
|
2903
2913
|
if (typeof e.getSetCookie == "function") return e.getSetCookie();
|
|
2904
2914
|
let t = [];
|
|
2905
2915
|
return e.forEach((e, n) => {
|
|
2906
2916
|
n.toLowerCase() === "set-cookie" && t.push(e);
|
|
2907
2917
|
}), t;
|
|
2908
2918
|
}
|
|
2909
|
-
var
|
|
2919
|
+
var yr = R({
|
|
2910
2920
|
type: "rewrite_cookies",
|
|
2911
|
-
optionsSchema:
|
|
2921
|
+
optionsSchema: gr,
|
|
2912
2922
|
build(e) {
|
|
2913
2923
|
return async (t, n) => {
|
|
2914
2924
|
await n();
|
|
2915
2925
|
let r = new URL(t.req.url).hostname, i = e.upstream_host ?? t.get("__proxy_upstream_host__");
|
|
2916
2926
|
if (!i) return;
|
|
2917
|
-
let a =
|
|
2927
|
+
let a = vr(t.res.headers);
|
|
2918
2928
|
if (a.length === 0) return;
|
|
2919
|
-
let o =
|
|
2929
|
+
let o = _r(i), s = RegExp(`(?:^|;\\s*)Domain=\\.?${o}(?=;|$)`, "i");
|
|
2920
2930
|
G(t), t.res.headers.delete("set-cookie");
|
|
2921
2931
|
for (let e of a) t.res.headers.append("set-cookie", e.replace(s, `Domain=${r}`));
|
|
2922
2932
|
};
|
|
2923
2933
|
}
|
|
2924
|
-
}),
|
|
2934
|
+
}), br = R({
|
|
2925
2935
|
type: "rewrite_location",
|
|
2926
2936
|
optionsSchema: e.object({ upstream_origin: e.string().optional() }),
|
|
2927
2937
|
build(e) {
|
|
@@ -2944,14 +2954,14 @@ var vr = R({
|
|
|
2944
2954
|
G(t), t.res.headers.set("location", c);
|
|
2945
2955
|
};
|
|
2946
2956
|
}
|
|
2947
|
-
}),
|
|
2957
|
+
}), xr = class extends Error {
|
|
2948
2958
|
ms;
|
|
2949
2959
|
constructor(e, t) {
|
|
2950
2960
|
super(`${t ?? "Operation"} timed out after ${e}ms`), this.name = "TimeoutError", this.ms = e;
|
|
2951
2961
|
}
|
|
2952
2962
|
};
|
|
2953
2963
|
function K(e) {
|
|
2954
|
-
return e instanceof
|
|
2964
|
+
return e instanceof xr ? !0 : e instanceof Error ? e.name === "AbortError" || e.name === "TimeoutError" : !1;
|
|
2955
2965
|
}
|
|
2956
2966
|
function q(e, t) {
|
|
2957
2967
|
let n = new AbortController(), r = setTimeout(() => n.abort(), e);
|
|
@@ -2959,7 +2969,7 @@ function q(e, t) {
|
|
|
2959
2969
|
}
|
|
2960
2970
|
function J(e, t, n) {
|
|
2961
2971
|
let r, i = new Promise((e, i) => {
|
|
2962
|
-
r = setTimeout(() => i(new
|
|
2972
|
+
r = setTimeout(() => i(new xr(t, n)), t);
|
|
2963
2973
|
});
|
|
2964
2974
|
return Promise.race([e, i]).finally(() => {
|
|
2965
2975
|
r && clearTimeout(r);
|
|
@@ -2967,7 +2977,7 @@ function J(e, t, n) {
|
|
|
2967
2977
|
}
|
|
2968
2978
|
//#endregion
|
|
2969
2979
|
//#region src/data-plane/handlers/http.ts
|
|
2970
|
-
var
|
|
2980
|
+
var Sr = new Set([
|
|
2971
2981
|
"connection",
|
|
2972
2982
|
"keep-alive",
|
|
2973
2983
|
"proxy-authenticate",
|
|
@@ -2976,24 +2986,24 @@ var xr = new Set([
|
|
|
2976
2986
|
"trailers",
|
|
2977
2987
|
"transfer-encoding",
|
|
2978
2988
|
"upgrade"
|
|
2979
|
-
]),
|
|
2989
|
+
]), Cr = 3e4, wr = e.object({
|
|
2980
2990
|
upstream_url: e.string(),
|
|
2981
2991
|
preserve_host: e.boolean().default(!1),
|
|
2982
2992
|
timeout_ms: e.number().int().positive().optional()
|
|
2983
2993
|
});
|
|
2984
|
-
function
|
|
2994
|
+
function Tr(e, t) {
|
|
2985
2995
|
return e === "" || e === "/" ? t : `${e.endsWith("/") ? e.slice(0, -1) : e}${t.startsWith("/") ? t : `/${t}`}`;
|
|
2986
2996
|
}
|
|
2987
|
-
function
|
|
2997
|
+
function Er(e) {
|
|
2988
2998
|
return e !== "GET" && e !== "HEAD";
|
|
2989
2999
|
}
|
|
2990
|
-
function
|
|
3000
|
+
function Dr(e, t) {
|
|
2991
3001
|
let n = new URL(t.url), r = new URL(e.upstream_url);
|
|
2992
|
-
r.pathname =
|
|
3002
|
+
r.pathname = Tr(r.pathname, n.pathname), r.search = n.search;
|
|
2993
3003
|
let i = new Headers(t.headers);
|
|
2994
|
-
for (let e of
|
|
3004
|
+
for (let e of Sr) i.delete(e);
|
|
2995
3005
|
e.preserve_host || i.set("host", r.host), i.has("x-forwarded-host") || i.set("x-forwarded-host", n.host), i.has("x-forwarded-proto") || i.set("x-forwarded-proto", n.protocol.replace(":", ""));
|
|
2996
|
-
let a =
|
|
3006
|
+
let a = Er(t.method) ? t.body : void 0, o = {
|
|
2997
3007
|
method: t.method,
|
|
2998
3008
|
headers: i,
|
|
2999
3009
|
body: a,
|
|
@@ -3004,13 +3014,13 @@ function Er(e, t) {
|
|
|
3004
3014
|
init: o
|
|
3005
3015
|
};
|
|
3006
3016
|
}
|
|
3007
|
-
var
|
|
3017
|
+
var Or = R({
|
|
3008
3018
|
type: "http",
|
|
3009
|
-
optionsSchema:
|
|
3019
|
+
optionsSchema: wr,
|
|
3010
3020
|
build(e) {
|
|
3011
|
-
let t = e.timeout_ms ??
|
|
3021
|
+
let t = e.timeout_ms ?? Cr;
|
|
3012
3022
|
return async (n) => {
|
|
3013
|
-
let { target: r, init: i } =
|
|
3023
|
+
let { target: r, init: i } = Dr(e, W(n));
|
|
3014
3024
|
n.set("__proxy_upstream_host__", r.hostname), n.set("__proxy_upstream_origin__", `${r.protocol}//${r.host}`);
|
|
3015
3025
|
try {
|
|
3016
3026
|
return await q(t, (e) => fetch(r.toString(), {
|
|
@@ -3022,24 +3032,24 @@ var Dr = R({
|
|
|
3022
3032
|
}
|
|
3023
3033
|
};
|
|
3024
3034
|
}
|
|
3025
|
-
}),
|
|
3035
|
+
}), kr = 3e4, Ar = e.object({
|
|
3026
3036
|
binding: e.string(),
|
|
3027
3037
|
upstream_url: e.string().optional(),
|
|
3028
3038
|
preserve_host: e.boolean().default(!0),
|
|
3029
3039
|
timeout_ms: e.number().int().positive().optional()
|
|
3030
3040
|
});
|
|
3031
|
-
function
|
|
3041
|
+
function jr(e) {
|
|
3032
3042
|
return typeof e == "object" && !!e && typeof e.fetch == "function";
|
|
3033
3043
|
}
|
|
3034
|
-
var
|
|
3044
|
+
var Mr = R({
|
|
3035
3045
|
type: "service_binding",
|
|
3036
|
-
optionsSchema:
|
|
3046
|
+
optionsSchema: Ar,
|
|
3037
3047
|
build(e, t) {
|
|
3038
3048
|
let n = t.bindings[e.binding];
|
|
3039
|
-
if (!
|
|
3040
|
-
let r = e.upstream_url ?? `https://${e.binding}.binding.invalid/`, i = e.timeout_ms ??
|
|
3049
|
+
if (!jr(n)) throw Error(`Service binding "${e.binding}" is not configured or is not a Fetcher`);
|
|
3050
|
+
let r = e.upstream_url ?? `https://${e.binding}.binding.invalid/`, i = e.timeout_ms ?? kr;
|
|
3041
3051
|
return async (t) => {
|
|
3042
|
-
let a = W(t), { target: o, init: s } =
|
|
3052
|
+
let a = W(t), { target: o, init: s } = Dr({
|
|
3043
3053
|
upstream_url: r,
|
|
3044
3054
|
preserve_host: e.preserve_host
|
|
3045
3055
|
}, a);
|
|
@@ -3054,34 +3064,34 @@ var jr = R({
|
|
|
3054
3064
|
}
|
|
3055
3065
|
};
|
|
3056
3066
|
}
|
|
3057
|
-
}),
|
|
3067
|
+
}), Nr = 3e4, Pr = e.object({
|
|
3058
3068
|
binding: e.string(),
|
|
3059
3069
|
script_name: e.string(),
|
|
3060
3070
|
cpu_ms: e.number().int().positive().optional(),
|
|
3061
3071
|
subrequests: e.number().int().positive().optional(),
|
|
3062
3072
|
timeout_ms: e.number().int().positive().optional()
|
|
3063
3073
|
});
|
|
3064
|
-
function
|
|
3074
|
+
function Fr(e) {
|
|
3065
3075
|
return typeof e == "object" && !!e && typeof e.get == "function";
|
|
3066
3076
|
}
|
|
3067
3077
|
var Y = /\{(tenant_id|custom_domain_id|domain|host)\}/g;
|
|
3068
|
-
function
|
|
3078
|
+
function Ir(e) {
|
|
3069
3079
|
return Y.lastIndex = 0, Y.test(e);
|
|
3070
3080
|
}
|
|
3071
|
-
var
|
|
3081
|
+
var Lr = R({
|
|
3072
3082
|
type: "dispatch_namespace",
|
|
3073
|
-
optionsSchema:
|
|
3083
|
+
optionsSchema: Pr,
|
|
3074
3084
|
build(e, t) {
|
|
3075
3085
|
let n = t.bindings[e.binding];
|
|
3076
|
-
if (!
|
|
3077
|
-
let r =
|
|
3086
|
+
if (!Fr(n)) throw Error(`Dispatch namespace binding "${e.binding}" is not configured or does not expose .get()`);
|
|
3087
|
+
let r = Ir(e.script_name), i = e.timeout_ms ?? Nr, a = e.cpu_ms || e.subrequests ? { limits: {
|
|
3078
3088
|
...e.cpu_ms ? { cpuMs: e.cpu_ms } : {},
|
|
3079
3089
|
...e.subrequests ? { subrequests: e.subrequests } : {}
|
|
3080
3090
|
} } : void 0;
|
|
3081
3091
|
return async (t) => {
|
|
3082
3092
|
let o = e.script_name;
|
|
3083
3093
|
if (r) {
|
|
3084
|
-
let n =
|
|
3094
|
+
let n = rr(t), r = ir(t), i = ar(t), a = t.req.header("host") ?? t.req.header("x-forwarded-host") ?? "";
|
|
3085
3095
|
if (o = o.replace(Y, (e, t) => {
|
|
3086
3096
|
switch (t) {
|
|
3087
3097
|
case "tenant_id": return n ?? "";
|
|
@@ -3104,7 +3114,7 @@ var Ir = R({
|
|
|
3104
3114
|
}
|
|
3105
3115
|
};
|
|
3106
3116
|
}
|
|
3107
|
-
}),
|
|
3117
|
+
}), Rr = R({
|
|
3108
3118
|
type: "redirect",
|
|
3109
3119
|
optionsSchema: e.object({
|
|
3110
3120
|
upstream_url: e.string().refine((e) => {
|
|
@@ -3133,7 +3143,7 @@ var Ir = R({
|
|
|
3133
3143
|
});
|
|
3134
3144
|
};
|
|
3135
3145
|
}
|
|
3136
|
-
}),
|
|
3146
|
+
}), zr = R({
|
|
3137
3147
|
type: "static",
|
|
3138
3148
|
optionsSchema: e.object({
|
|
3139
3149
|
status: e.number().int().default(200),
|
|
@@ -3153,15 +3163,15 @@ var Ir = R({
|
|
|
3153
3163
|
});
|
|
3154
3164
|
//#endregion
|
|
3155
3165
|
//#region src/data-plane/handlers/index.ts
|
|
3156
|
-
function
|
|
3157
|
-
e.add(
|
|
3166
|
+
function Br(e) {
|
|
3167
|
+
e.add(lr).add(fr).add(pr).add(mr).add(hr).add(yr).add(br).add(Or).add(Mr).add(Lr).add(Rr).add(zr);
|
|
3158
3168
|
}
|
|
3159
3169
|
//#endregion
|
|
3160
3170
|
//#region src/data-plane/matcher.ts
|
|
3161
|
-
function
|
|
3171
|
+
function Vr(e) {
|
|
3162
3172
|
return [...e].sort((e, t) => e.priority === t.priority ? e.created_at.localeCompare(t.created_at) : e.priority - t.priority);
|
|
3163
3173
|
}
|
|
3164
|
-
function
|
|
3174
|
+
function Hr(e, t) {
|
|
3165
3175
|
let n = e.toLowerCase(), r = t.toLowerCase();
|
|
3166
3176
|
if (n === r) return !0;
|
|
3167
3177
|
if (n.startsWith("*.")) {
|
|
@@ -3170,13 +3180,13 @@ function Vr(e, t) {
|
|
|
3170
3180
|
}
|
|
3171
3181
|
return !1;
|
|
3172
3182
|
}
|
|
3173
|
-
function
|
|
3174
|
-
return !e || e.length === 0 ? !0 : e.some((e) =>
|
|
3183
|
+
function Ur(e, t) {
|
|
3184
|
+
return !e || e.length === 0 ? !0 : e.some((e) => Hr(e, t));
|
|
3175
3185
|
}
|
|
3176
3186
|
function X(e) {
|
|
3177
3187
|
let t = (e.headers ? Object.entries(e.headers) : []).map(([e, t]) => [e.toLowerCase(), new RegExp(t)]), n = (e.query ? Object.entries(e.query) : []).map(([e, t]) => [e, new RegExp(t)]), r = e.hosts;
|
|
3178
3188
|
return async (e, i) => {
|
|
3179
|
-
if (r && !
|
|
3189
|
+
if (r && !Ur(r, e.req.header("host") ?? "")) return new Response("No matching route", { status: 404 });
|
|
3180
3190
|
for (let [n, r] of t) {
|
|
3181
3191
|
let t = e.req.header(n);
|
|
3182
3192
|
if (t === void 0 || !r.test(t)) return new Response("No matching route", { status: 404 });
|
|
@@ -3193,7 +3203,7 @@ function X(e) {
|
|
|
3193
3203
|
}
|
|
3194
3204
|
//#endregion
|
|
3195
3205
|
//#region src/data-plane/compile.ts
|
|
3196
|
-
var
|
|
3206
|
+
var Wr = [
|
|
3197
3207
|
"GET",
|
|
3198
3208
|
"POST",
|
|
3199
3209
|
"PUT",
|
|
@@ -3205,34 +3215,34 @@ var Ur = [
|
|
|
3205
3215
|
function Z(e, n, r, i) {
|
|
3206
3216
|
let a = new t();
|
|
3207
3217
|
r && a.use("*", async (e, t) => {
|
|
3208
|
-
|
|
3218
|
+
nr(e, r), await t();
|
|
3209
3219
|
});
|
|
3210
|
-
let o =
|
|
3220
|
+
let o = Vr(e);
|
|
3211
3221
|
for (let e of o) {
|
|
3212
3222
|
let t = [];
|
|
3213
3223
|
t.push(X(e.match));
|
|
3214
3224
|
for (let r of e.handlers) t.push(n.build(r.type, r.options));
|
|
3215
|
-
let r = e.match.methods?.length ? e.match.methods.map((e) => e.toUpperCase()) :
|
|
3225
|
+
let r = e.match.methods?.length ? e.match.methods.map((e) => e.toUpperCase()) : Wr, i = e.match.path || "/*";
|
|
3216
3226
|
a.on(r, [i], ...t);
|
|
3217
3227
|
}
|
|
3218
|
-
return i && i.length > 0 ? a.on(
|
|
3228
|
+
return i && i.length > 0 ? a.on(Wr, ["*"], ...i) : a.all("*", (e) => e.text("No matching route", 404)), a.onError((e, t) => {
|
|
3219
3229
|
let n = K(e);
|
|
3220
3230
|
return t.text(n ? "Upstream timeout" : "Bad gateway", n ? 504 : 502, { "x-authhero-proxy-error": n ? "handler_timeout" : "handler_failed" });
|
|
3221
3231
|
}), a;
|
|
3222
3232
|
}
|
|
3223
3233
|
//#endregion
|
|
3224
3234
|
//#region src/data-plane/router.ts
|
|
3225
|
-
var
|
|
3226
|
-
function
|
|
3235
|
+
var Gr = 1e4;
|
|
3236
|
+
function Kr(e) {
|
|
3227
3237
|
return e.resolver ? e.resolver : e.cache ? I(e.data, e.cache) : I(e.data, e.cacheTtlMs ?? 3e4);
|
|
3228
3238
|
}
|
|
3229
|
-
function
|
|
3239
|
+
function qr(e) {
|
|
3230
3240
|
if (e.registry) return e.registry;
|
|
3231
3241
|
let t = new L(e.bindings ?? {});
|
|
3232
|
-
return
|
|
3242
|
+
return Br(t), t;
|
|
3233
3243
|
}
|
|
3234
3244
|
function Q(e) {
|
|
3235
|
-
let t =
|
|
3245
|
+
let t = Kr(e), n = qr(e), r = /* @__PURE__ */ new WeakMap(), i = e.resolveHostTimeoutMs ?? Gr, a = e.defaultHandlers && e.defaultHandlers.length > 0 ? e.defaultHandlers.map((e) => n.build(e.type, e.options)) : void 0, o = a ? Z([], n, void 0, a) : void 0;
|
|
3236
3246
|
return async (e) => {
|
|
3237
3247
|
let s = e.req.header("host") ?? e.req.header("x-forwarded-host");
|
|
3238
3248
|
if (!s) return e.text("Missing host", 400);
|
|
@@ -3250,13 +3260,13 @@ function Q(e) {
|
|
|
3250
3260
|
}
|
|
3251
3261
|
};
|
|
3252
3262
|
}
|
|
3253
|
-
function
|
|
3263
|
+
function Jr(e) {
|
|
3254
3264
|
let n = new t();
|
|
3255
3265
|
return n.all("*", Q(e)), n;
|
|
3256
3266
|
}
|
|
3257
3267
|
//#endregion
|
|
3258
3268
|
//#region src/app.ts
|
|
3259
|
-
function
|
|
3269
|
+
function Yr(e) {
|
|
3260
3270
|
let n = new t();
|
|
3261
3271
|
return n.all("*", Q({
|
|
3262
3272
|
data: e.data,
|
|
@@ -3274,17 +3284,17 @@ function Jr(e) {
|
|
|
3274
3284
|
}
|
|
3275
3285
|
//#endregion
|
|
3276
3286
|
//#region src/data-plane/cache-api-cache.ts
|
|
3277
|
-
var
|
|
3278
|
-
function
|
|
3287
|
+
var Xr = 1e3, Zr = 1e3;
|
|
3288
|
+
function Qr(e, t) {
|
|
3279
3289
|
return new Request(`https://proxy-cache.internal/${encodeURIComponent(e)}/hosts/${encodeURIComponent(t.toLowerCase())}`, { method: "GET" });
|
|
3280
3290
|
}
|
|
3281
|
-
function
|
|
3291
|
+
function $r() {
|
|
3282
3292
|
return globalThis.caches?.default;
|
|
3283
3293
|
}
|
|
3284
|
-
function
|
|
3285
|
-
let t = e.cache ??
|
|
3294
|
+
function ei(e) {
|
|
3295
|
+
let t = e.cache ?? $r();
|
|
3286
3296
|
if (!t) return e.upstream;
|
|
3287
|
-
let n = t, r = e.namespace ?? "authhero-proxy", i = e.cacheTtlSeconds ?? 60, a = e.negativeCacheTtlSeconds ?? 10, o = e.waitUntil, s = e.cacheReadTimeoutMs ??
|
|
3297
|
+
let n = t, r = e.namespace ?? "authhero-proxy", i = e.cacheTtlSeconds ?? 60, a = e.negativeCacheTtlSeconds ?? 10, o = e.waitUntil, s = e.cacheReadTimeoutMs ?? Xr, c = e.cacheWriteTimeoutMs ?? Zr;
|
|
3288
3298
|
async function l(e) {
|
|
3289
3299
|
try {
|
|
3290
3300
|
return await J(Promise.resolve(n.match(e)), s, "cache.match");
|
|
@@ -3293,7 +3303,7 @@ function $r(e) {
|
|
|
3293
3303
|
}
|
|
3294
3304
|
}
|
|
3295
3305
|
return { async resolveHost(t) {
|
|
3296
|
-
let s =
|
|
3306
|
+
let s = Qr(r, t), u = await l(s);
|
|
3297
3307
|
if (u) try {
|
|
3298
3308
|
return (await u.json()).value;
|
|
3299
3309
|
} catch {}
|
|
@@ -3304,14 +3314,14 @@ function $r(e) {
|
|
|
3304
3314
|
return o ? o(m) : await m, d;
|
|
3305
3315
|
} };
|
|
3306
3316
|
}
|
|
3307
|
-
function
|
|
3308
|
-
return
|
|
3317
|
+
function ti(e, t) {
|
|
3318
|
+
return Qr(e, t);
|
|
3309
3319
|
}
|
|
3310
3320
|
//#endregion
|
|
3311
3321
|
//#region src/data-plane/cache-adapter-cache.ts
|
|
3312
|
-
var
|
|
3313
|
-
function
|
|
3314
|
-
let { upstream: t, cache: n, freshTtlMs: r, staleTtlMs: i = 0, staleIfErrorTtlMs: a = 0, negativeTtlMs: o = r, keyPrefix: s = "authhero-proxy-host", waitUntil: c, cacheReadTimeoutMs: l =
|
|
3322
|
+
var ni = 1e3, ri = 1e3;
|
|
3323
|
+
function ii(e) {
|
|
3324
|
+
let { upstream: t, cache: n, freshTtlMs: r, staleTtlMs: i = 0, staleIfErrorTtlMs: a = 0, negativeTtlMs: o = r, keyPrefix: s = "authhero-proxy-host", waitUntil: c, cacheReadTimeoutMs: l = ni, cacheWriteTimeoutMs: u = ri } = e, d = /* @__PURE__ */ new Map();
|
|
3315
3325
|
function f(e) {
|
|
3316
3326
|
return `${s}:${e.toLowerCase()}`;
|
|
3317
3327
|
}
|
|
@@ -3364,7 +3374,7 @@ function ri(e) {
|
|
|
3364
3374
|
}
|
|
3365
3375
|
} };
|
|
3366
3376
|
}
|
|
3367
|
-
function
|
|
3377
|
+
function ai(e, t) {
|
|
3368
3378
|
return `${e}:${t.toLowerCase()}`;
|
|
3369
3379
|
}
|
|
3370
3380
|
//#endregion
|
|
@@ -3372,7 +3382,7 @@ function ii(e, t) {
|
|
|
3372
3382
|
function $() {
|
|
3373
3383
|
throw Error("Static proxy adapter is read-only; configure routes at init time");
|
|
3374
3384
|
}
|
|
3375
|
-
function
|
|
3385
|
+
function oi(e, t, n, r, i, a) {
|
|
3376
3386
|
return {
|
|
3377
3387
|
id: e.id ?? `${n}:${t}`,
|
|
3378
3388
|
tenant_id: r,
|
|
@@ -3387,10 +3397,10 @@ function ai(e, t, n, r, i, a) {
|
|
|
3387
3397
|
updated_at: e.updated_at ?? a
|
|
3388
3398
|
};
|
|
3389
3399
|
}
|
|
3390
|
-
function
|
|
3400
|
+
function si(e) {
|
|
3391
3401
|
let t = (/* @__PURE__ */ new Date()).toISOString(), n = e.defaultTenantId ?? "static", r = /* @__PURE__ */ new Map();
|
|
3392
3402
|
for (let [i, a] of Object.entries(e.hosts)) {
|
|
3393
|
-
let e = i.toLowerCase(), o = Array.isArray(a) ? { routes: a } : a, s = o.tenant_id ?? n, c = o.custom_domain_id ?? e, l = o.routes.map((n, r) =>
|
|
3403
|
+
let e = i.toLowerCase(), o = Array.isArray(a) ? { routes: a } : a, s = o.tenant_id ?? n, c = o.custom_domain_id ?? e, l = o.routes.map((n, r) => oi(n, r, e, s, c, t)).sort((e, t) => e.priority - t.priority);
|
|
3394
3404
|
r.set(e, {
|
|
3395
3405
|
tenant_id: s,
|
|
3396
3406
|
custom_domain_id: c,
|
|
@@ -3434,7 +3444,7 @@ function oi(e) {
|
|
|
3434
3444
|
}
|
|
3435
3445
|
};
|
|
3436
3446
|
}
|
|
3437
|
-
function
|
|
3447
|
+
function ci(e, t = {}) {
|
|
3438
3448
|
return {
|
|
3439
3449
|
priority: t.priority,
|
|
3440
3450
|
match: { path: t.path ?? "/*" },
|
|
@@ -3449,10 +3459,10 @@ function si(e, t = {}) {
|
|
|
3449
3459
|
}
|
|
3450
3460
|
//#endregion
|
|
3451
3461
|
//#region src/constants.ts
|
|
3452
|
-
var
|
|
3462
|
+
var li = "proxy:resolve_host";
|
|
3453
3463
|
//#endregion
|
|
3454
3464
|
//#region src/http-adapter/index.ts
|
|
3455
|
-
function
|
|
3465
|
+
function ui() {
|
|
3456
3466
|
let e = () => {
|
|
3457
3467
|
throw Error("HTTP proxy adapter does not expose write access to proxy_routes; mutate via the control-plane management API");
|
|
3458
3468
|
};
|
|
@@ -3474,7 +3484,7 @@ function li() {
|
|
|
3474
3484
|
}
|
|
3475
3485
|
};
|
|
3476
3486
|
}
|
|
3477
|
-
function
|
|
3487
|
+
function di(e) {
|
|
3478
3488
|
let t = e.fetch ?? fetch, n = e.baseUrl.replace(/\/+$/, ""), r = e.resolveHostPath ?? "/api/v2/proxy/control-plane/hosts/", i = e.audience ?? `${n}/api/v2/`, a = e.scope ?? "proxy:resolve_host", o = e.tokenRefreshSkewSeconds ?? 60, s = e.timeoutMs ?? 2500;
|
|
3479
3489
|
function c(e) {
|
|
3480
3490
|
let t = new AbortController(), n = setTimeout(() => t.abort(), s);
|
|
@@ -3507,7 +3517,7 @@ function ui(e) {
|
|
|
3507
3517
|
}), u);
|
|
3508
3518
|
}
|
|
3509
3519
|
return {
|
|
3510
|
-
proxyRoutes:
|
|
3520
|
+
proxyRoutes: ui(),
|
|
3511
3521
|
async resolveHost(e) {
|
|
3512
3522
|
let i = await f(), a = `${n}${r}${encodeURIComponent(e.toLowerCase())}`, o = await c((e) => t(a, {
|
|
3513
3523
|
headers: { authorization: `Bearer ${i}` },
|
|
@@ -3521,7 +3531,7 @@ function ui(e) {
|
|
|
3521
3531
|
}
|
|
3522
3532
|
//#endregion
|
|
3523
3533
|
//#region src/http-adapter/service-binding-fetch.ts
|
|
3524
|
-
function
|
|
3534
|
+
function fi(e) {
|
|
3525
3535
|
return (t, n) => {
|
|
3526
3536
|
let r = t instanceof Request && n === void 0 ? t : new Request(t, n);
|
|
3527
3537
|
return e.fetch(r);
|
|
@@ -3529,11 +3539,11 @@ function di(e) {
|
|
|
3529
3539
|
}
|
|
3530
3540
|
//#endregion
|
|
3531
3541
|
//#region src/kv-adapter/index.ts
|
|
3532
|
-
var
|
|
3533
|
-
function
|
|
3542
|
+
var pi = "authhero-proxy-host:";
|
|
3543
|
+
function mi(e, t) {
|
|
3534
3544
|
return `${e}${t.toLowerCase()}`;
|
|
3535
3545
|
}
|
|
3536
|
-
function
|
|
3546
|
+
function hi() {
|
|
3537
3547
|
let e = () => {
|
|
3538
3548
|
throw Error("KV proxy adapter does not expose write access to proxy_routes; mutate via the control-plane management API");
|
|
3539
3549
|
};
|
|
@@ -3555,15 +3565,15 @@ function mi() {
|
|
|
3555
3565
|
}
|
|
3556
3566
|
};
|
|
3557
3567
|
}
|
|
3558
|
-
function
|
|
3559
|
-
let { kv: t, keyPrefix: n =
|
|
3568
|
+
function gi(e) {
|
|
3569
|
+
let { kv: t, keyPrefix: n = pi, timeoutMs: r } = e;
|
|
3560
3570
|
return {
|
|
3561
|
-
proxyRoutes:
|
|
3571
|
+
proxyRoutes: hi(),
|
|
3562
3572
|
async resolveHost(e) {
|
|
3563
|
-
let i =
|
|
3573
|
+
let i = mi(n, e), a = t.get(i, "json");
|
|
3564
3574
|
return (r && r > 0 ? await J(a, r, "kv.get") : await a) ?? null;
|
|
3565
3575
|
}
|
|
3566
3576
|
};
|
|
3567
3577
|
}
|
|
3568
3578
|
//#endregion
|
|
3569
|
-
export {
|
|
3579
|
+
export { pi as DEFAULT_KV_HOST_KEY_PREFIX, L as HandlerRegistry, li as PROXY_RESOLVE_HOST_SCOPE, fr as basicAuthHandler, ai as buildCacheAdapterKey, ti as buildCacheApiKey, mi as buildKvHostKey, X as buildMatchFilter, mr as cacheHandler, Z as compileHostApp, lr as corsHandler, ii as createCacheAdapterHostCache, ei as createCacheApiHostCache, di as createHttpProxyAdapter, I as createInMemoryHostCache, gi as createKvProxyAdapter, Yr as createProxyApp, Q as createProxyDataPlaneHandler, Jr as createProxyDataPlaneRouter, fi as createServiceBindingFetch, si as createStaticProxyAdapter, R as defineHandler, Lr as dispatchNamespaceHandler, hr as forwardedHeadersHandler, En as handlerConfigSchema, pr as headersHandler, Or as httpHandler, ci as httpRoute, Tn as matchSchema, Ur as matchesAnyHost, Hr as matchesHost, P as proxyRouteInsertSchema, Dn as proxyRouteSchema, On as proxyRouteUpdateSchema, Rr as redirectHandler, Br as registerBuiltinHandlers, yr as rewriteCookiesHandler, br as rewriteLocationHandler, Mr as serviceBindingHandler, Vr as sortRoutes, zr as staticHandler };
|