@authhero/proxy 0.10.3 → 0.10.4
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 +330 -331
- 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,7 +2572,7 @@ 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())
|
|
@@ -2582,24 +2581,24 @@ e.object({
|
|
|
2582
2581
|
interval: e.literal("week"),
|
|
2583
2582
|
from: e.string(),
|
|
2584
2583
|
to: e.string(),
|
|
2585
|
-
cohorts: e.array(
|
|
2584
|
+
cohorts: e.array(Kn)
|
|
2586
2585
|
});
|
|
2587
|
-
var
|
|
2586
|
+
var qn = e.object({
|
|
2588
2587
|
name: e.string(),
|
|
2589
2588
|
type: e.string()
|
|
2590
|
-
}),
|
|
2589
|
+
}), Jn = e.object({
|
|
2591
2590
|
elapsed: e.number(),
|
|
2592
2591
|
rows_read: e.number().optional(),
|
|
2593
2592
|
bytes_read: e.number().optional()
|
|
2594
2593
|
});
|
|
2595
2594
|
e.object({
|
|
2596
|
-
meta: e.array(
|
|
2595
|
+
meta: e.array(qn),
|
|
2597
2596
|
data: e.array(e.record(e.string(), e.any())),
|
|
2598
2597
|
rows: e.number(),
|
|
2599
2598
|
rows_before_limit_at_least: e.number().optional(),
|
|
2600
|
-
statistics:
|
|
2599
|
+
statistics: Jn.optional()
|
|
2601
2600
|
});
|
|
2602
|
-
var
|
|
2601
|
+
var Yn = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Xn = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2603
2602
|
type: "object",
|
|
2604
2603
|
additionalProperties: {
|
|
2605
2604
|
type: "object",
|
|
@@ -2607,11 +2606,11 @@ var Xn = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
2607
2606
|
}
|
|
2608
2607
|
});
|
|
2609
2608
|
e.object({
|
|
2610
|
-
prompt:
|
|
2609
|
+
prompt: Yn,
|
|
2611
2610
|
language: e.string(),
|
|
2612
|
-
custom_text:
|
|
2611
|
+
custom_text: Xn
|
|
2613
2612
|
});
|
|
2614
|
-
var
|
|
2613
|
+
var Zn = e.enum([
|
|
2615
2614
|
"phone",
|
|
2616
2615
|
"totp",
|
|
2617
2616
|
"email",
|
|
@@ -2619,9 +2618,9 @@ var Qn = e.enum([
|
|
|
2619
2618
|
"webauthn-roaming",
|
|
2620
2619
|
"webauthn-platform",
|
|
2621
2620
|
"passkey"
|
|
2622
|
-
]),
|
|
2621
|
+
]), Qn = e.object({
|
|
2623
2622
|
user_id: e.string(),
|
|
2624
|
-
type:
|
|
2623
|
+
type: Zn,
|
|
2625
2624
|
phone_number: e.string().optional(),
|
|
2626
2625
|
totp_secret: e.string().optional(),
|
|
2627
2626
|
credential_id: e.string().optional(),
|
|
@@ -2655,7 +2654,7 @@ function F(t, n) {
|
|
|
2655
2654
|
path: ["public_key"]
|
|
2656
2655
|
}));
|
|
2657
2656
|
}
|
|
2658
|
-
|
|
2657
|
+
Qn.superRefine(F), Qn.extend({
|
|
2659
2658
|
id: e.string(),
|
|
2660
2659
|
created_at: e.string(),
|
|
2661
2660
|
updated_at: e.string()
|
|
@@ -3566,4 +3565,4 @@ function hi(e) {
|
|
|
3566
3565
|
};
|
|
3567
3566
|
}
|
|
3568
3567
|
//#endregion
|
|
3569
|
-
export { fi as DEFAULT_KV_HOST_KEY_PREFIX, L as HandlerRegistry, ci as PROXY_RESOLVE_HOST_SCOPE, dr as basicAuthHandler, ii as buildCacheAdapterKey, ei as buildCacheApiKey, pi as buildKvHostKey, X as buildMatchFilter, pr as cacheHandler, Z as compileHostApp, cr as corsHandler, ri as createCacheAdapterHostCache, $r as createCacheApiHostCache, ui as createHttpProxyAdapter, I as createInMemoryHostCache, hi as createKvProxyAdapter, Jr as createProxyApp, Q as createProxyDataPlaneHandler, qr as createProxyDataPlaneRouter, di as createServiceBindingFetch, oi as createStaticProxyAdapter, R as defineHandler, Ir as dispatchNamespaceHandler, mr as forwardedHeadersHandler,
|
|
3568
|
+
export { fi as DEFAULT_KV_HOST_KEY_PREFIX, L as HandlerRegistry, ci as PROXY_RESOLVE_HOST_SCOPE, dr as basicAuthHandler, ii as buildCacheAdapterKey, ei as buildCacheApiKey, pi as buildKvHostKey, X as buildMatchFilter, pr as cacheHandler, Z as compileHostApp, cr as corsHandler, ri as createCacheAdapterHostCache, $r as createCacheApiHostCache, ui as createHttpProxyAdapter, I as createInMemoryHostCache, hi as createKvProxyAdapter, Jr as createProxyApp, Q as createProxyDataPlaneHandler, qr as createProxyDataPlaneRouter, di as createServiceBindingFetch, oi as createStaticProxyAdapter, R as defineHandler, Ir as dispatchNamespaceHandler, mr as forwardedHeadersHandler, En as handlerConfigSchema, fr as headersHandler, Dr as httpHandler, si as httpRoute, Tn as matchSchema, Hr as matchesAnyHost, Vr as matchesHost, P as proxyRouteInsertSchema, Dn as proxyRouteSchema, On as proxyRouteUpdateSchema, Lr as redirectHandler, zr as registerBuiltinHandlers, vr as rewriteCookiesHandler, yr as rewriteLocationHandler, jr as serviceBindingHandler, Br as sortRoutes, Rr as staticHandler };
|