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