@authhero/adapter-interfaces 4.12.0 → 4.14.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 +227 -14
- package/dist/adapter-interfaces.mjs +660 -621
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/TenantOperationRows.d.ts +57 -0
- package/dist/types/adapters/TenantOperations.d.ts +30 -0
- package/dist/types/adapters/Users.d.ts +19 -0
- package/dist/types/adapters/index.d.ts +8 -0
- package/dist/types/types/TenantOperation.d.ts +28 -12
- package/dist/types/types/TenantOperationRow.d.ts +86 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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), c = e.object({ name: e.string() }), ee = s.extend({ secrets: e.array(c).optional() }), l = e.string(), te = e.enum([
|
|
37
37
|
"unspecified",
|
|
38
38
|
"pending",
|
|
39
39
|
"final",
|
|
@@ -64,8 +64,8 @@ var t = e.object({
|
|
|
64
64
|
})), oe = e.object({
|
|
65
65
|
id: e.string(),
|
|
66
66
|
tenant_id: e.string(),
|
|
67
|
-
trigger_id:
|
|
68
|
-
status:
|
|
67
|
+
trigger_id: l,
|
|
68
|
+
status: te,
|
|
69
69
|
results: e.array(re),
|
|
70
70
|
logs: ae.optional(),
|
|
71
71
|
created_at: e.string(),
|
|
@@ -199,11 +199,11 @@ var t = e.object({
|
|
|
199
199
|
email: e.string(),
|
|
200
200
|
rules: Se.optional()
|
|
201
201
|
})
|
|
202
|
-
}),
|
|
202
|
+
}), Te = e.enum([
|
|
203
203
|
"change-email",
|
|
204
204
|
"account",
|
|
205
205
|
"custom"
|
|
206
|
-
]),
|
|
206
|
+
]), Ee = e.object({
|
|
207
207
|
id: e.string(),
|
|
208
208
|
alias: e.string().max(100).optional(),
|
|
209
209
|
type: e.literal("REDIRECT"),
|
|
@@ -211,32 +211,32 @@ var t = e.object({
|
|
|
211
211
|
allow_failure: e.boolean().optional(),
|
|
212
212
|
mask_output: e.boolean().optional(),
|
|
213
213
|
params: e.object({
|
|
214
|
-
target:
|
|
214
|
+
target: Te.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
215
215
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
216
216
|
})
|
|
217
|
-
}),
|
|
217
|
+
}), De = e.union([
|
|
218
218
|
Ce,
|
|
219
219
|
we,
|
|
220
|
-
|
|
221
|
-
]),
|
|
220
|
+
Ee
|
|
221
|
+
]), Oe = e.object({
|
|
222
222
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
223
|
-
actions: e.array(
|
|
224
|
-
}),
|
|
223
|
+
actions: e.array(De).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
224
|
+
}), ke = Oe.extend(t.shape).extend({ id: e.string().openapi({
|
|
225
225
|
description: "Unique identifier for the flow",
|
|
226
226
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
227
|
-
}) }),
|
|
227
|
+
}) }), Ae = e.object({
|
|
228
228
|
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
229
229
|
per_page: e.string().min(1).optional().default("50").transform((e) => parseInt(e, 10)).openapi({ description: "The number of items per page. Defaults to 50." }),
|
|
230
230
|
include_totals: e.string().optional().default("false").transform((e) => e === "true").openapi({ description: "If the total number of items should be included in the response" }),
|
|
231
231
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
232
232
|
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
233
|
-
}),
|
|
233
|
+
}), je = e.object({
|
|
234
234
|
start: e.number(),
|
|
235
235
|
limit: e.number(),
|
|
236
236
|
length: e.number(),
|
|
237
237
|
total: e.number().optional(),
|
|
238
238
|
next: e.string().optional()
|
|
239
|
-
}),
|
|
239
|
+
}), u = 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()), d = 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: u.optional()
|
|
262
|
+
}), f = 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(), p = 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: f
|
|
293
|
+
}), m = p.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
|
+
}), h = m.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(d).optional()
|
|
315
|
+
}), Me = h.omit({ registration_completed_at: !0 }), Ne = p.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()), Pe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Fe = (e = 21) => {
|
|
322
322
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
323
|
-
for (; e--;) t +=
|
|
323
|
+
for (; e--;) t += Pe[n[e] & 63];
|
|
324
324
|
return t;
|
|
325
|
-
},
|
|
325
|
+
}, g = 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(() => Fe()).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
|
+
}), Ie = e.object({
|
|
444
444
|
created_at: e.string(),
|
|
445
445
|
updated_at: e.string()
|
|
446
|
-
}).extend(
|
|
446
|
+
}).extend(g.shape).extend({ client_id: e.string() }), _ = 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
|
+
}), v = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(_.shape).extend({
|
|
460
460
|
created_at: e.string().optional(),
|
|
461
461
|
updated_at: e.string().optional()
|
|
462
|
-
}),
|
|
462
|
+
}), Le = e.array(v), y = e.enum(["iat", "rat"]), b = e.object({
|
|
463
463
|
id: e.string(),
|
|
464
464
|
token_hash: e.string(),
|
|
465
|
-
type:
|
|
465
|
+
type: y,
|
|
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
|
+
}), Re = 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(b.shape), x = e.object({
|
|
476
476
|
x: e.number(),
|
|
477
477
|
y: e.number()
|
|
478
|
-
}),
|
|
478
|
+
}), S = /* @__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
|
+
}({}), C = /* @__PURE__ */ function(e) {
|
|
481
481
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
482
|
-
}({}),
|
|
482
|
+
}({}), w = e.object({
|
|
483
483
|
id: e.string(),
|
|
484
|
-
category: e.nativeEnum(
|
|
485
|
-
type: e.nativeEnum(
|
|
486
|
-
}),
|
|
484
|
+
category: e.nativeEnum(C),
|
|
485
|
+
type: e.nativeEnum(S)
|
|
486
|
+
}), ze = w.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
|
+
}), Be = w.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
|
+
}), Ve = w.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
|
+
}), He = w.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
|
+
}), Ue = e.object({
|
|
525
525
|
id: e.string(),
|
|
526
526
|
category: e.string(),
|
|
527
527
|
type: e.string()
|
|
528
|
-
}).passthrough(),
|
|
529
|
-
E,
|
|
530
|
-
Re,
|
|
528
|
+
}).passthrough(), We = e.union([
|
|
531
529
|
ze,
|
|
532
530
|
Be,
|
|
533
|
-
Ve
|
|
534
|
-
|
|
531
|
+
Ve,
|
|
532
|
+
He,
|
|
533
|
+
Ue
|
|
534
|
+
]), Ge = /* @__PURE__ */ function(e) {
|
|
535
535
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
536
|
-
}({}),
|
|
536
|
+
}({}), Ke = e.object({
|
|
537
537
|
id: e.string(),
|
|
538
538
|
type: e.literal("STEP"),
|
|
539
|
-
coordinates:
|
|
539
|
+
coordinates: x,
|
|
540
540
|
alias: e.string().optional(),
|
|
541
541
|
config: e.object({
|
|
542
|
-
components: e.array(
|
|
542
|
+
components: e.array(We),
|
|
543
543
|
next_node: e.string()
|
|
544
544
|
}).passthrough()
|
|
545
|
-
}),
|
|
545
|
+
}), qe = e.object({
|
|
546
546
|
id: e.string(),
|
|
547
547
|
type: e.literal("FLOW"),
|
|
548
|
-
coordinates:
|
|
548
|
+
coordinates: x,
|
|
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
|
+
}), Je = e.object({
|
|
555
555
|
id: e.string(),
|
|
556
556
|
type: e.literal("ACTION"),
|
|
557
|
-
coordinates:
|
|
557
|
+
coordinates: x,
|
|
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
|
+
}), Ye = e.object({
|
|
570
570
|
id: e.string(),
|
|
571
571
|
type: e.string(),
|
|
572
|
-
coordinates:
|
|
573
|
-
}).passthrough(),
|
|
574
|
-
We,
|
|
575
|
-
Ge,
|
|
572
|
+
coordinates: x
|
|
573
|
+
}).passthrough(), Xe = e.union([
|
|
576
574
|
Ke,
|
|
577
|
-
qe
|
|
578
|
-
|
|
575
|
+
qe,
|
|
576
|
+
Je,
|
|
577
|
+
Ye
|
|
578
|
+
]), Ze = e.object({
|
|
579
579
|
next_node: e.string(),
|
|
580
|
-
coordinates:
|
|
581
|
-
}).passthrough(),
|
|
580
|
+
coordinates: x
|
|
581
|
+
}).passthrough(), Qe = e.object({
|
|
582
582
|
resume_flow: e.boolean().optional(),
|
|
583
|
-
coordinates:
|
|
584
|
-
}).passthrough(),
|
|
583
|
+
coordinates: x
|
|
584
|
+
}).passthrough(), $e = 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(Xe),
|
|
589
|
+
start: Ze,
|
|
590
|
+
ending: Qe,
|
|
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(), et = $e.omit({
|
|
598
598
|
id: !0,
|
|
599
599
|
created_at: !0,
|
|
600
600
|
updated_at: !0
|
|
601
|
-
}),
|
|
601
|
+
}), T = /* @__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
|
+
}({}), E = /* @__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
|
+
}({}), tt = /* @__PURE__ */ function(e) {
|
|
606
606
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
607
|
-
}({}),
|
|
607
|
+
}({}), nt = 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(), rt = e.object({
|
|
612
|
+
userinfo: e.record(e.string(), nt).optional(),
|
|
613
|
+
id_token: e.record(e.string(), nt).optional()
|
|
614
|
+
}), it = 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(T).optional(),
|
|
618
|
+
response_mode: e.nativeEnum(E).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(tt).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: rt.optional(),
|
|
633
633
|
vendor_id: e.string().optional()
|
|
634
|
-
}),
|
|
634
|
+
}), at = 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
|
+
}), ot = e.enum([
|
|
654
654
|
"password_reset",
|
|
655
655
|
"email_verification",
|
|
656
656
|
"otp",
|
|
@@ -659,11 +659,11 @@ var t = e.object({
|
|
|
659
659
|
"oauth2_state",
|
|
660
660
|
"ticket",
|
|
661
661
|
"client_assertion_jti"
|
|
662
|
-
]),
|
|
662
|
+
]), st = e.object({
|
|
663
663
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
664
664
|
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
665
665
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
666
|
-
code_type:
|
|
666
|
+
code_type: ot,
|
|
667
667
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
668
668
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
669
669
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -674,7 +674,7 @@ var t = e.object({
|
|
|
674
674
|
expires_at: e.string(),
|
|
675
675
|
used_at: e.string().optional(),
|
|
676
676
|
user_id: e.string().optional()
|
|
677
|
-
}),
|
|
677
|
+
}), ct = st.extend({ created_at: e.string() }), lt = e.object({
|
|
678
678
|
kid: e.string().optional(),
|
|
679
679
|
team_id: e.string().optional(),
|
|
680
680
|
realms: e.string().optional(),
|
|
@@ -794,35 +794,35 @@ var t = e.object({
|
|
|
794
794
|
"never_on_login"
|
|
795
795
|
]).optional()
|
|
796
796
|
});
|
|
797
|
-
function
|
|
797
|
+
function D(e) {
|
|
798
798
|
if (e !== null) {
|
|
799
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
799
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(D);
|
|
800
800
|
if (e && typeof e == "object") {
|
|
801
801
|
let t = {};
|
|
802
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
802
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = D(r));
|
|
803
803
|
return t;
|
|
804
804
|
}
|
|
805
805
|
return e;
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
var
|
|
808
|
+
var ut = e.object({
|
|
809
809
|
id: e.string().optional(),
|
|
810
810
|
name: e.string(),
|
|
811
811
|
display_name: e.string().optional(),
|
|
812
812
|
strategy: e.string(),
|
|
813
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
813
|
+
options: e.preprocess((e) => e === null ? {} : D(e), lt).default({}),
|
|
814
814
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
815
|
-
response_type: e.nativeEnum(
|
|
816
|
-
response_mode: e.nativeEnum(
|
|
815
|
+
response_type: e.nativeEnum(T).optional(),
|
|
816
|
+
response_mode: e.nativeEnum(E).optional(),
|
|
817
817
|
is_domain_connection: e.boolean().optional(),
|
|
818
818
|
show_as_button: e.boolean().optional(),
|
|
819
819
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
820
820
|
is_system: e.boolean().optional()
|
|
821
|
-
}),
|
|
821
|
+
}), dt = e.object({
|
|
822
822
|
id: e.string(),
|
|
823
823
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
824
824
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
825
|
-
}).extend(
|
|
825
|
+
}).extend(ut.shape), O = e.object({
|
|
826
826
|
domain: e.string(),
|
|
827
827
|
custom_domain_id: e.string().optional(),
|
|
828
828
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -836,7 +836,7 @@ var ct = e.object({
|
|
|
836
836
|
"null"
|
|
837
837
|
]).optional(),
|
|
838
838
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
839
|
-
}),
|
|
839
|
+
}), ft = e.discriminatedUnion("name", [e.object({
|
|
840
840
|
name: e.literal("txt"),
|
|
841
841
|
record: e.string(),
|
|
842
842
|
domain: e.string()
|
|
@@ -844,7 +844,7 @@ var ct = e.object({
|
|
|
844
844
|
name: e.literal("http"),
|
|
845
845
|
http_body: e.string(),
|
|
846
846
|
http_url: e.string()
|
|
847
|
-
})]),
|
|
847
|
+
})]), pt = O.extend({
|
|
848
848
|
custom_domain_id: e.string(),
|
|
849
849
|
primary: e.boolean(),
|
|
850
850
|
status: e.enum([
|
|
@@ -854,26 +854,26 @@ var ct = e.object({
|
|
|
854
854
|
"ready"
|
|
855
855
|
]),
|
|
856
856
|
origin_domain_name: e.string().optional(),
|
|
857
|
-
verification: e.object({ methods: e.array(
|
|
857
|
+
verification: e.object({ methods: e.array(ft) }).optional(),
|
|
858
858
|
tls_policy: e.string().optional()
|
|
859
|
-
}),
|
|
859
|
+
}), mt = O.pick({
|
|
860
860
|
tls_policy: !0,
|
|
861
861
|
custom_client_ip_header: !0,
|
|
862
862
|
domain_metadata: !0
|
|
863
|
-
}).strict(),
|
|
863
|
+
}).strict(), ht = pt.extend({ tenant_id: e.string() }), gt = e.object({
|
|
864
864
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
865
865
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
866
|
-
}),
|
|
866
|
+
}), k = e.object({
|
|
867
867
|
id: e.string(),
|
|
868
868
|
order: e.number().optional(),
|
|
869
869
|
visible: e.boolean().optional().default(!0)
|
|
870
|
-
}),
|
|
870
|
+
}), A = k.extend({ category: e.literal("BLOCK").optional() }), _t = A.extend({
|
|
871
871
|
type: e.literal("DIVIDER"),
|
|
872
872
|
config: e.object({ text: e.string().optional() }).optional()
|
|
873
|
-
}),
|
|
873
|
+
}), vt = A.extend({
|
|
874
874
|
type: e.literal("HTML"),
|
|
875
875
|
config: e.object({ content: e.string().optional() }).optional()
|
|
876
|
-
}),
|
|
876
|
+
}), yt = A.extend({
|
|
877
877
|
type: e.literal("IMAGE"),
|
|
878
878
|
config: e.object({
|
|
879
879
|
src: e.string().optional(),
|
|
@@ -881,43 +881,43 @@ var ct = e.object({
|
|
|
881
881
|
width: e.number().optional(),
|
|
882
882
|
height: e.number().optional()
|
|
883
883
|
}).optional()
|
|
884
|
-
}),
|
|
884
|
+
}), bt = A.extend({
|
|
885
885
|
type: e.literal("JUMP_BUTTON"),
|
|
886
886
|
config: e.object({
|
|
887
887
|
text: e.string().optional(),
|
|
888
888
|
target_step: e.string().optional()
|
|
889
889
|
})
|
|
890
|
-
}),
|
|
890
|
+
}), xt = A.extend({
|
|
891
891
|
type: e.literal("RESEND_BUTTON"),
|
|
892
892
|
config: e.object({
|
|
893
893
|
text: e.string().optional(),
|
|
894
894
|
resend_action: e.string().optional()
|
|
895
895
|
})
|
|
896
|
-
}),
|
|
896
|
+
}), St = A.extend({
|
|
897
897
|
type: e.literal("NEXT_BUTTON"),
|
|
898
898
|
config: e.object({ text: e.string().optional() })
|
|
899
|
-
}),
|
|
899
|
+
}), Ct = A.extend({
|
|
900
900
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
901
901
|
config: e.object({ text: e.string().optional() })
|
|
902
|
-
}),
|
|
902
|
+
}), wt = A.extend({
|
|
903
903
|
type: e.literal("RICH_TEXT"),
|
|
904
904
|
config: e.object({ content: e.string().optional() }).optional()
|
|
905
|
-
}),
|
|
905
|
+
}), j = k.extend({
|
|
906
906
|
category: e.literal("WIDGET").optional(),
|
|
907
907
|
label: e.string().min(1).optional(),
|
|
908
908
|
hint: e.string().min(1).max(500).optional(),
|
|
909
909
|
required: e.boolean().optional(),
|
|
910
910
|
sensitive: e.boolean().optional()
|
|
911
|
-
}),
|
|
911
|
+
}), Tt = j.extend({
|
|
912
912
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
913
913
|
config: e.object({ credential_type: e.string().optional() })
|
|
914
|
-
}),
|
|
914
|
+
}), Et = j.extend({
|
|
915
915
|
type: e.literal("GMAPS_ADDRESS"),
|
|
916
916
|
config: e.object({ api_key: e.string().optional() })
|
|
917
|
-
}),
|
|
917
|
+
}), Dt = j.extend({
|
|
918
918
|
type: e.literal("RECAPTCHA"),
|
|
919
919
|
config: e.object({ site_key: e.string().optional() })
|
|
920
|
-
}),
|
|
920
|
+
}), M = k.extend({
|
|
921
921
|
category: e.literal("FIELD").optional(),
|
|
922
922
|
label: e.string().min(1).optional(),
|
|
923
923
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -933,10 +933,10 @@ var ct = e.object({
|
|
|
933
933
|
})).optional(),
|
|
934
934
|
required: e.boolean().optional(),
|
|
935
935
|
sensitive: e.boolean().optional()
|
|
936
|
-
}),
|
|
936
|
+
}), Ot = M.extend({
|
|
937
937
|
type: e.literal("BOOLEAN"),
|
|
938
938
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
939
|
-
}),
|
|
939
|
+
}), kt = M.extend({
|
|
940
940
|
type: e.literal("CARDS"),
|
|
941
941
|
config: e.object({
|
|
942
942
|
options: e.array(e.object({
|
|
@@ -947,7 +947,7 @@ var ct = e.object({
|
|
|
947
947
|
})).optional(),
|
|
948
948
|
multi_select: e.boolean().optional()
|
|
949
949
|
}).optional()
|
|
950
|
-
}),
|
|
950
|
+
}), At = M.extend({
|
|
951
951
|
type: e.literal("CHOICE"),
|
|
952
952
|
config: e.object({
|
|
953
953
|
options: e.array(e.object({
|
|
@@ -958,7 +958,7 @@ var ct = e.object({
|
|
|
958
958
|
multiple: e.boolean().optional(),
|
|
959
959
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
960
960
|
}).optional()
|
|
961
|
-
}),
|
|
961
|
+
}), jt = M.extend({
|
|
962
962
|
type: e.literal("CODE"),
|
|
963
963
|
config: e.object({
|
|
964
964
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -975,7 +975,7 @@ var ct = e.object({
|
|
|
975
975
|
message: "default_value is longer than the configured length",
|
|
976
976
|
path: ["default_value"]
|
|
977
977
|
}).optional()
|
|
978
|
-
}),
|
|
978
|
+
}), Mt = M.extend({
|
|
979
979
|
type: e.literal("CUSTOM"),
|
|
980
980
|
config: e.object({
|
|
981
981
|
component: e.string().optional(),
|
|
@@ -983,7 +983,7 @@ var ct = e.object({
|
|
|
983
983
|
schema: e.record(e.string(), e.any()).optional(),
|
|
984
984
|
code: e.string().optional()
|
|
985
985
|
})
|
|
986
|
-
}),
|
|
986
|
+
}), Nt = M.extend({
|
|
987
987
|
type: e.literal("DATE"),
|
|
988
988
|
config: e.object({
|
|
989
989
|
format: e.string().optional(),
|
|
@@ -991,7 +991,7 @@ var ct = e.object({
|
|
|
991
991
|
max: e.string().optional(),
|
|
992
992
|
default_value: e.string().optional()
|
|
993
993
|
}).optional()
|
|
994
|
-
}),
|
|
994
|
+
}), Pt = M.extend({
|
|
995
995
|
type: e.literal("DROPDOWN"),
|
|
996
996
|
config: e.object({
|
|
997
997
|
options: e.array(e.object({
|
|
@@ -1003,7 +1003,7 @@ var ct = e.object({
|
|
|
1003
1003
|
multiple: e.boolean().optional(),
|
|
1004
1004
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1005
1005
|
}).optional()
|
|
1006
|
-
}),
|
|
1006
|
+
}), Ft = M.extend({
|
|
1007
1007
|
type: e.literal("EMAIL"),
|
|
1008
1008
|
config: e.object({
|
|
1009
1009
|
placeholder: e.string().optional(),
|
|
@@ -1011,20 +1011,20 @@ var ct = e.object({
|
|
|
1011
1011
|
last_used: e.boolean().optional(),
|
|
1012
1012
|
last_used_label: e.string().optional()
|
|
1013
1013
|
}).optional()
|
|
1014
|
-
}),
|
|
1014
|
+
}), It = M.extend({
|
|
1015
1015
|
type: e.literal("FILE"),
|
|
1016
1016
|
config: e.object({
|
|
1017
1017
|
accept: e.string().optional(),
|
|
1018
1018
|
max_size: e.number().optional(),
|
|
1019
1019
|
multiple: e.boolean().optional()
|
|
1020
1020
|
}).optional()
|
|
1021
|
-
}),
|
|
1021
|
+
}), Lt = M.extend({
|
|
1022
1022
|
type: e.literal("LEGAL"),
|
|
1023
1023
|
config: e.object({
|
|
1024
1024
|
text: e.string(),
|
|
1025
1025
|
html: e.boolean().optional()
|
|
1026
1026
|
}).optional()
|
|
1027
|
-
}),
|
|
1027
|
+
}), Rt = M.extend({
|
|
1028
1028
|
type: e.literal("NUMBER"),
|
|
1029
1029
|
config: e.object({
|
|
1030
1030
|
placeholder: e.string().optional(),
|
|
@@ -1033,7 +1033,7 @@ var ct = e.object({
|
|
|
1033
1033
|
step: e.number().optional(),
|
|
1034
1034
|
default_value: e.string().optional()
|
|
1035
1035
|
}).optional()
|
|
1036
|
-
}),
|
|
1036
|
+
}), zt = M.extend({
|
|
1037
1037
|
type: e.literal("PASSWORD"),
|
|
1038
1038
|
config: e.object({
|
|
1039
1039
|
placeholder: e.string().optional(),
|
|
@@ -1042,13 +1042,13 @@ var ct = e.object({
|
|
|
1042
1042
|
forgot_password_link: e.string().optional(),
|
|
1043
1043
|
default_value: e.string().optional()
|
|
1044
1044
|
}).optional()
|
|
1045
|
-
}),
|
|
1045
|
+
}), Bt = M.extend({
|
|
1046
1046
|
type: e.literal("PAYMENT"),
|
|
1047
1047
|
config: e.object({
|
|
1048
1048
|
provider: e.string().optional(),
|
|
1049
1049
|
currency: e.string().optional()
|
|
1050
1050
|
}).optional()
|
|
1051
|
-
}),
|
|
1051
|
+
}), Vt = M.extend({
|
|
1052
1052
|
type: e.literal("SOCIAL"),
|
|
1053
1053
|
config: e.object({
|
|
1054
1054
|
providers: e.array(e.string()).optional(),
|
|
@@ -1062,7 +1062,7 @@ var ct = e.object({
|
|
|
1062
1062
|
last_used_label: e.string().optional()
|
|
1063
1063
|
})).optional()
|
|
1064
1064
|
}).optional()
|
|
1065
|
-
}),
|
|
1065
|
+
}), Ht = M.extend({
|
|
1066
1066
|
type: e.literal("TEL"),
|
|
1067
1067
|
config: e.object({
|
|
1068
1068
|
placeholder: e.string().optional(),
|
|
@@ -1070,7 +1070,7 @@ var ct = e.object({
|
|
|
1070
1070
|
default_value: e.string().optional(),
|
|
1071
1071
|
allow_email: e.boolean().optional()
|
|
1072
1072
|
}).optional()
|
|
1073
|
-
}),
|
|
1073
|
+
}), Ut = M.extend({
|
|
1074
1074
|
type: e.literal("TEXT"),
|
|
1075
1075
|
config: e.object({
|
|
1076
1076
|
placeholder: e.string().optional(),
|
|
@@ -1080,39 +1080,37 @@ var ct = e.object({
|
|
|
1080
1080
|
last_used: e.boolean().optional(),
|
|
1081
1081
|
last_used_label: e.string().optional()
|
|
1082
1082
|
}).optional()
|
|
1083
|
-
}),
|
|
1083
|
+
}), Wt = M.extend({
|
|
1084
1084
|
type: e.literal("COUNTRY"),
|
|
1085
1085
|
config: e.object({
|
|
1086
1086
|
placeholder: e.string().optional(),
|
|
1087
1087
|
default_value: e.string().optional()
|
|
1088
1088
|
}).optional()
|
|
1089
|
-
}),
|
|
1089
|
+
}), Gt = M.extend({
|
|
1090
1090
|
type: e.literal("URL"),
|
|
1091
1091
|
config: e.object({
|
|
1092
1092
|
placeholder: e.string().optional(),
|
|
1093
1093
|
default_value: e.string().optional()
|
|
1094
1094
|
}).optional()
|
|
1095
|
-
}),
|
|
1096
|
-
ht,
|
|
1097
|
-
gt,
|
|
1095
|
+
}), Kt = e.discriminatedUnion("type", [
|
|
1098
1096
|
_t,
|
|
1099
1097
|
vt,
|
|
1100
1098
|
yt,
|
|
1101
1099
|
bt,
|
|
1102
1100
|
xt,
|
|
1103
|
-
St
|
|
1104
|
-
]), Gt = e.discriminatedUnion("type", [
|
|
1101
|
+
St,
|
|
1105
1102
|
Ct,
|
|
1106
|
-
wt
|
|
1107
|
-
|
|
1108
|
-
|
|
1103
|
+
wt
|
|
1104
|
+
]), qt = e.discriminatedUnion("type", [
|
|
1105
|
+
Tt,
|
|
1109
1106
|
Et,
|
|
1110
|
-
Dt
|
|
1107
|
+
Dt
|
|
1108
|
+
]), Jt = e.discriminatedUnion("type", [
|
|
1111
1109
|
Ot,
|
|
1112
1110
|
kt,
|
|
1113
|
-
Ht,
|
|
1114
1111
|
At,
|
|
1115
1112
|
jt,
|
|
1113
|
+
Wt,
|
|
1116
1114
|
Mt,
|
|
1117
1115
|
Nt,
|
|
1118
1116
|
Pt,
|
|
@@ -1123,12 +1121,14 @@ var ct = e.object({
|
|
|
1123
1121
|
zt,
|
|
1124
1122
|
Bt,
|
|
1125
1123
|
Vt,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
Kt
|
|
1131
|
-
|
|
1124
|
+
Ht,
|
|
1125
|
+
Ut,
|
|
1126
|
+
Gt
|
|
1127
|
+
]), N = e.union([
|
|
1128
|
+
Kt,
|
|
1129
|
+
qt,
|
|
1130
|
+
Jt
|
|
1131
|
+
]), Yt = new Set([
|
|
1132
1132
|
"BOOLEAN",
|
|
1133
1133
|
"CARDS",
|
|
1134
1134
|
"CHOICE",
|
|
@@ -1143,7 +1143,7 @@ var ct = e.object({
|
|
|
1143
1143
|
"TEL",
|
|
1144
1144
|
"TEXT",
|
|
1145
1145
|
"URL"
|
|
1146
|
-
]),
|
|
1146
|
+
]), Xt = e.object({
|
|
1147
1147
|
id: e.string(),
|
|
1148
1148
|
type: e.literal("submit"),
|
|
1149
1149
|
label: e.string(),
|
|
@@ -1152,22 +1152,22 @@ var ct = e.object({
|
|
|
1152
1152
|
order: e.number().optional(),
|
|
1153
1153
|
visible: e.boolean().optional().default(!0),
|
|
1154
1154
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1155
|
-
}),
|
|
1155
|
+
}), P = e.object({
|
|
1156
1156
|
x: e.number(),
|
|
1157
1157
|
y: e.number()
|
|
1158
|
-
}),
|
|
1158
|
+
}), Zt = e.object({
|
|
1159
1159
|
id: e.string(),
|
|
1160
1160
|
type: e.literal("FLOW"),
|
|
1161
|
-
coordinates:
|
|
1161
|
+
coordinates: P,
|
|
1162
1162
|
alias: e.string().min(1).max(150).optional(),
|
|
1163
1163
|
config: e.object({
|
|
1164
1164
|
flow_id: e.string().max(30),
|
|
1165
1165
|
next_node: e.string().optional()
|
|
1166
1166
|
})
|
|
1167
|
-
}),
|
|
1167
|
+
}), Qt = e.object({
|
|
1168
1168
|
id: e.string(),
|
|
1169
1169
|
type: e.literal("ROUTER"),
|
|
1170
|
-
coordinates:
|
|
1170
|
+
coordinates: P,
|
|
1171
1171
|
alias: e.string().min(1).max(150),
|
|
1172
1172
|
config: e.object({
|
|
1173
1173
|
rules: e.array(e.object({
|
|
@@ -1178,20 +1178,20 @@ var ct = e.object({
|
|
|
1178
1178
|
})),
|
|
1179
1179
|
fallback: e.string()
|
|
1180
1180
|
})
|
|
1181
|
-
}),
|
|
1181
|
+
}), $t = e.object({
|
|
1182
1182
|
id: e.string(),
|
|
1183
1183
|
type: e.literal("STEP"),
|
|
1184
|
-
coordinates:
|
|
1184
|
+
coordinates: P,
|
|
1185
1185
|
alias: e.string().min(1).max(150).optional(),
|
|
1186
1186
|
config: e.object({
|
|
1187
|
-
components: e.array(
|
|
1187
|
+
components: e.array(N),
|
|
1188
1188
|
next_node: e.string().optional()
|
|
1189
1189
|
})
|
|
1190
|
-
}),
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
]),
|
|
1190
|
+
}), en = e.discriminatedUnion("type", [
|
|
1191
|
+
Zt,
|
|
1192
|
+
Qt,
|
|
1193
|
+
$t
|
|
1194
|
+
]), tn = e.object({
|
|
1195
1195
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1196
1196
|
messages: e.object({
|
|
1197
1197
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1202,14 +1202,14 @@ var ct = e.object({
|
|
|
1202
1202
|
default: e.string().optional()
|
|
1203
1203
|
}).optional(),
|
|
1204
1204
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1205
|
-
nodes: e.array(
|
|
1205
|
+
nodes: e.array(en).optional(),
|
|
1206
1206
|
start: e.object({
|
|
1207
1207
|
hidden_fields: e.array(e.object({
|
|
1208
1208
|
key: e.string(),
|
|
1209
1209
|
value: e.string()
|
|
1210
1210
|
})).optional(),
|
|
1211
1211
|
next_node: e.string().optional(),
|
|
1212
|
-
coordinates:
|
|
1212
|
+
coordinates: P.optional()
|
|
1213
1213
|
}).optional(),
|
|
1214
1214
|
ending: e.object({
|
|
1215
1215
|
redirection: e.object({
|
|
@@ -1217,7 +1217,7 @@ var ct = e.object({
|
|
|
1217
1217
|
target: e.string().optional()
|
|
1218
1218
|
}).optional(),
|
|
1219
1219
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1220
|
-
coordinates:
|
|
1220
|
+
coordinates: P.optional(),
|
|
1221
1221
|
resume_flow: e.boolean().optional()
|
|
1222
1222
|
}).optional(),
|
|
1223
1223
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1225,7 +1225,7 @@ var ct = e.object({
|
|
|
1225
1225
|
sdkSrc: e.string().optional(),
|
|
1226
1226
|
sdk_src: e.string().optional()
|
|
1227
1227
|
}).optional()
|
|
1228
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1228
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), nn = t.extend(tn.shape).extend({ id: e.string() }), rn = e.object({
|
|
1229
1229
|
id: e.number().optional(),
|
|
1230
1230
|
text: e.string(),
|
|
1231
1231
|
type: e.enum([
|
|
@@ -1234,34 +1234,34 @@ var ct = e.object({
|
|
|
1234
1234
|
"success",
|
|
1235
1235
|
"warning"
|
|
1236
1236
|
])
|
|
1237
|
-
}),
|
|
1237
|
+
}), an = e.object({
|
|
1238
1238
|
id: e.string().optional(),
|
|
1239
1239
|
text: e.string(),
|
|
1240
1240
|
href: e.string(),
|
|
1241
1241
|
linkText: e.string().optional()
|
|
1242
|
-
}),
|
|
1242
|
+
}), on = e.object({
|
|
1243
1243
|
name: e.string().optional(),
|
|
1244
1244
|
action: e.string(),
|
|
1245
1245
|
method: e.enum(["POST", "GET"]),
|
|
1246
1246
|
title: e.string().optional(),
|
|
1247
1247
|
description: e.string().optional(),
|
|
1248
|
-
components: e.array(
|
|
1249
|
-
messages: e.array(
|
|
1250
|
-
links: e.array(
|
|
1248
|
+
components: e.array(N),
|
|
1249
|
+
messages: e.array(rn).optional(),
|
|
1250
|
+
links: e.array(an).optional(),
|
|
1251
1251
|
footer: e.string().optional()
|
|
1252
1252
|
});
|
|
1253
|
-
function
|
|
1253
|
+
function sn(e) {
|
|
1254
1254
|
return e.category === "BLOCK";
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function cn(e) {
|
|
1257
1257
|
return e.category === "WIDGET";
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function ln(e) {
|
|
1260
1260
|
return e.category === "FIELD";
|
|
1261
1261
|
}
|
|
1262
1262
|
//#endregion
|
|
1263
1263
|
//#region src/types/Hook.ts
|
|
1264
|
-
var
|
|
1264
|
+
var F = e.enum([
|
|
1265
1265
|
"pre-user-registration",
|
|
1266
1266
|
"post-user-registration",
|
|
1267
1267
|
"post-user-login",
|
|
@@ -1269,48 +1269,48 @@ var L = e.enum([
|
|
|
1269
1269
|
"validate-registration-username",
|
|
1270
1270
|
"pre-user-deletion",
|
|
1271
1271
|
"post-user-deletion"
|
|
1272
|
-
]),
|
|
1272
|
+
]), I = e.enum(["post-user-login"]), L = e.enum([
|
|
1273
1273
|
"post-user-login",
|
|
1274
1274
|
"post-user-registration",
|
|
1275
1275
|
"post-user-update",
|
|
1276
1276
|
"credentials-exchange"
|
|
1277
|
-
]),
|
|
1277
|
+
]), R = e.enum([
|
|
1278
1278
|
"post-user-login",
|
|
1279
1279
|
"credentials-exchange",
|
|
1280
1280
|
"pre-user-registration",
|
|
1281
1281
|
"post-user-registration"
|
|
1282
|
-
]),
|
|
1282
|
+
]), z = e.enum(["post-user-login"]), un = [
|
|
1283
1283
|
{
|
|
1284
1284
|
field: "url",
|
|
1285
|
-
triggers:
|
|
1285
|
+
triggers: F.options
|
|
1286
1286
|
},
|
|
1287
1287
|
{
|
|
1288
1288
|
field: "form_id",
|
|
1289
|
-
triggers:
|
|
1289
|
+
triggers: I.options
|
|
1290
1290
|
},
|
|
1291
1291
|
{
|
|
1292
1292
|
field: "template_id",
|
|
1293
|
-
triggers:
|
|
1293
|
+
triggers: L.options
|
|
1294
1294
|
},
|
|
1295
1295
|
{
|
|
1296
1296
|
field: "code_id",
|
|
1297
|
-
triggers:
|
|
1297
|
+
triggers: R.options
|
|
1298
1298
|
},
|
|
1299
1299
|
{
|
|
1300
1300
|
field: "page_id",
|
|
1301
|
-
triggers:
|
|
1301
|
+
triggers: z.options
|
|
1302
1302
|
}
|
|
1303
1303
|
];
|
|
1304
|
-
function
|
|
1304
|
+
function dn(e) {
|
|
1305
1305
|
if (!(!e || typeof e != "object")) {
|
|
1306
|
-
for (let t of
|
|
1306
|
+
for (let t of un) if (typeof Reflect.get(e, t.field) == "string") return t.triggers;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
var
|
|
1309
|
+
var B = e.enum(["impersonate"]), V = e.enum([
|
|
1310
1310
|
"ensure-username",
|
|
1311
1311
|
"set-preferred-username",
|
|
1312
1312
|
"account-linking"
|
|
1313
|
-
]),
|
|
1313
|
+
]), fn = {
|
|
1314
1314
|
"ensure-username": {
|
|
1315
1315
|
name: "Ensure Username",
|
|
1316
1316
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1330,87 +1330,87 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1330
1330
|
"post-user-update"
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
1333
|
-
},
|
|
1333
|
+
}, H = {
|
|
1334
1334
|
enabled: e.boolean().default(!1),
|
|
1335
1335
|
synchronous: e.boolean().default(!1),
|
|
1336
1336
|
priority: e.number().optional(),
|
|
1337
1337
|
hook_id: e.string().optional(),
|
|
1338
1338
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1339
|
-
},
|
|
1340
|
-
...
|
|
1341
|
-
trigger_id:
|
|
1339
|
+
}, pn = e.object({
|
|
1340
|
+
...H,
|
|
1341
|
+
trigger_id: F,
|
|
1342
1342
|
url: e.string()
|
|
1343
|
-
}), fn = e.object({
|
|
1344
|
-
...W,
|
|
1345
|
-
trigger_id: R,
|
|
1346
|
-
form_id: e.string()
|
|
1347
|
-
}), pn = e.object({
|
|
1348
|
-
...W,
|
|
1349
|
-
trigger_id: z,
|
|
1350
|
-
template_id: U
|
|
1351
1343
|
}), mn = e.object({
|
|
1352
|
-
...
|
|
1353
|
-
trigger_id:
|
|
1354
|
-
|
|
1344
|
+
...H,
|
|
1345
|
+
trigger_id: I,
|
|
1346
|
+
form_id: e.string()
|
|
1355
1347
|
}), hn = e.object({
|
|
1356
|
-
...
|
|
1357
|
-
trigger_id:
|
|
1358
|
-
|
|
1348
|
+
...H,
|
|
1349
|
+
trigger_id: L,
|
|
1350
|
+
template_id: V
|
|
1351
|
+
}), gn = e.object({
|
|
1352
|
+
...H,
|
|
1353
|
+
trigger_id: R,
|
|
1354
|
+
code_id: e.string()
|
|
1355
|
+
}), _n = e.object({
|
|
1356
|
+
...H,
|
|
1357
|
+
trigger_id: z,
|
|
1358
|
+
page_id: B,
|
|
1359
1359
|
permission_required: e.string().optional()
|
|
1360
|
-
}),
|
|
1361
|
-
dn,
|
|
1362
|
-
fn,
|
|
1360
|
+
}), vn = e.union([
|
|
1363
1361
|
pn,
|
|
1364
1362
|
mn,
|
|
1365
|
-
hn
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1363
|
+
hn,
|
|
1364
|
+
gn,
|
|
1365
|
+
_n
|
|
1366
|
+
]), yn = e.object({
|
|
1367
|
+
...H,
|
|
1368
|
+
trigger_id: F
|
|
1369
1369
|
}).extend(t.shape).extend({
|
|
1370
1370
|
hook_id: e.string(),
|
|
1371
1371
|
url: e.string()
|
|
1372
|
-
}),
|
|
1373
|
-
...
|
|
1374
|
-
trigger_id:
|
|
1372
|
+
}), bn = e.object({
|
|
1373
|
+
...H,
|
|
1374
|
+
trigger_id: I
|
|
1375
1375
|
}).extend(t.shape).extend({
|
|
1376
1376
|
hook_id: e.string(),
|
|
1377
1377
|
form_id: e.string()
|
|
1378
|
-
}),
|
|
1379
|
-
...
|
|
1380
|
-
trigger_id:
|
|
1378
|
+
}), xn = e.object({
|
|
1379
|
+
...H,
|
|
1380
|
+
trigger_id: L
|
|
1381
1381
|
}).extend(t.shape).extend({
|
|
1382
1382
|
hook_id: e.string(),
|
|
1383
|
-
template_id:
|
|
1384
|
-
}),
|
|
1385
|
-
...
|
|
1386
|
-
trigger_id:
|
|
1383
|
+
template_id: V
|
|
1384
|
+
}), Sn = e.object({
|
|
1385
|
+
...H,
|
|
1386
|
+
trigger_id: R
|
|
1387
1387
|
}).extend(t.shape).extend({
|
|
1388
1388
|
hook_id: e.string(),
|
|
1389
1389
|
code_id: e.string()
|
|
1390
|
-
}),
|
|
1391
|
-
...
|
|
1392
|
-
trigger_id:
|
|
1390
|
+
}), Cn = e.object({
|
|
1391
|
+
...H,
|
|
1392
|
+
trigger_id: z
|
|
1393
1393
|
}).extend(t.shape).extend({
|
|
1394
1394
|
hook_id: e.string(),
|
|
1395
|
-
page_id:
|
|
1395
|
+
page_id: B,
|
|
1396
1396
|
permission_required: e.string().optional()
|
|
1397
|
-
}),
|
|
1398
|
-
_n,
|
|
1399
|
-
vn,
|
|
1397
|
+
}), wn = e.union([
|
|
1400
1398
|
yn,
|
|
1401
1399
|
bn,
|
|
1402
|
-
xn
|
|
1403
|
-
|
|
1400
|
+
xn,
|
|
1401
|
+
Sn,
|
|
1402
|
+
Cn
|
|
1403
|
+
]), Tn = e.object({
|
|
1404
1404
|
code: e.string().max(1e5),
|
|
1405
1405
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1406
|
-
}),
|
|
1406
|
+
}), En = Tn.extend({
|
|
1407
1407
|
id: e.string(),
|
|
1408
1408
|
tenant_id: e.string()
|
|
1409
|
-
}).extend(t.shape),
|
|
1409
|
+
}).extend(t.shape), Dn = e.object({ name: e.string().optional() }), On = e.object({ email: e.string().optional() }), kn = e.object({
|
|
1410
1410
|
id: e.string().optional(),
|
|
1411
1411
|
organization_id: e.string().max(50),
|
|
1412
|
-
inviter:
|
|
1413
|
-
invitee:
|
|
1412
|
+
inviter: Dn,
|
|
1413
|
+
invitee: On,
|
|
1414
1414
|
invitation_url: e.string().url(),
|
|
1415
1415
|
client_id: e.string(),
|
|
1416
1416
|
connection_id: e.string().optional(),
|
|
@@ -1419,13 +1419,13 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1419
1419
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1420
1420
|
roles: e.array(e.string()).default([]).optional(),
|
|
1421
1421
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1422
|
-
}),
|
|
1422
|
+
}), An = e.object({
|
|
1423
1423
|
id: e.string(),
|
|
1424
1424
|
organization_id: e.string().max(50),
|
|
1425
1425
|
created_at: e.string().datetime(),
|
|
1426
1426
|
expires_at: e.string().datetime(),
|
|
1427
1427
|
ticket_id: e.string().optional()
|
|
1428
|
-
}).extend(
|
|
1428
|
+
}).extend(kn.omit({ id: !0 }).shape), jn = e.object({
|
|
1429
1429
|
alg: e.enum([
|
|
1430
1430
|
"RS256",
|
|
1431
1431
|
"RS384",
|
|
@@ -1466,7 +1466,7 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1466
1466
|
path: [r],
|
|
1467
1467
|
message: `EC JWK is missing required member '${r}'`
|
|
1468
1468
|
});
|
|
1469
|
-
}),
|
|
1469
|
+
}), Mn = e.object({ keys: e.array(jn) }), Nn = e.object({
|
|
1470
1470
|
issuer: e.string(),
|
|
1471
1471
|
authorization_endpoint: e.string(),
|
|
1472
1472
|
token_endpoint: e.string(),
|
|
@@ -1492,33 +1492,33 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1492
1492
|
client_id_metadata_document_supported: e.boolean().optional(),
|
|
1493
1493
|
backchannel_logout_supported: e.boolean().optional(),
|
|
1494
1494
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
1495
|
-
}),
|
|
1495
|
+
}), U = /* @__PURE__ */ function(e) {
|
|
1496
1496
|
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;
|
|
1497
|
-
}({}),
|
|
1497
|
+
}({}), Pn = e.nativeEnum(U), W = e.object({
|
|
1498
1498
|
strategy: e.string(),
|
|
1499
1499
|
strategy_type: e.string()
|
|
1500
|
-
}),
|
|
1500
|
+
}), Fn = e.object({
|
|
1501
1501
|
csrf_token: e.string(),
|
|
1502
1502
|
auth0Client: e.string().optional(),
|
|
1503
|
-
authParams:
|
|
1503
|
+
authParams: it,
|
|
1504
1504
|
expires_at: e.string(),
|
|
1505
1505
|
deleted_at: e.string().optional(),
|
|
1506
1506
|
ip: e.string().optional(),
|
|
1507
1507
|
useragent: e.string().optional(),
|
|
1508
1508
|
session_id: e.string().optional(),
|
|
1509
1509
|
authorization_url: e.string().optional(),
|
|
1510
|
-
state:
|
|
1510
|
+
state: Pn.optional().default("pending"),
|
|
1511
1511
|
state_data: e.string().optional(),
|
|
1512
1512
|
failure_reason: e.string().optional(),
|
|
1513
1513
|
user_id: e.string().optional(),
|
|
1514
1514
|
auth_connection: e.string().optional(),
|
|
1515
|
-
auth_strategy:
|
|
1515
|
+
auth_strategy: W.optional(),
|
|
1516
1516
|
authenticated_at: e.string().optional()
|
|
1517
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1517
|
+
}).openapi({ description: "This represents a login sesion" }), In = Fn.extend({
|
|
1518
1518
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1519
1519
|
created_at: e.string(),
|
|
1520
1520
|
updated_at: e.string()
|
|
1521
|
-
}),
|
|
1521
|
+
}), G = {
|
|
1522
1522
|
ACLS_SUMMARY: "acls_summary",
|
|
1523
1523
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1524
1524
|
API_LIMIT: "api_limit",
|
|
@@ -1678,190 +1678,190 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1678
1678
|
WARNING_DURING_LOGIN: "w",
|
|
1679
1679
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1680
1680
|
WARNING_USER_MANAGEMENT: "wum"
|
|
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
|
-
[
|
|
1799
|
-
[
|
|
1800
|
-
[
|
|
1801
|
-
[
|
|
1802
|
-
[
|
|
1803
|
-
[
|
|
1804
|
-
[
|
|
1805
|
-
[
|
|
1806
|
-
[
|
|
1807
|
-
[
|
|
1808
|
-
[
|
|
1809
|
-
[
|
|
1810
|
-
[
|
|
1811
|
-
[
|
|
1812
|
-
[
|
|
1813
|
-
[
|
|
1814
|
-
[
|
|
1815
|
-
[
|
|
1816
|
-
[
|
|
1817
|
-
[
|
|
1818
|
-
[
|
|
1819
|
-
[
|
|
1820
|
-
[
|
|
1821
|
-
[
|
|
1822
|
-
[
|
|
1823
|
-
[
|
|
1824
|
-
[
|
|
1825
|
-
[
|
|
1826
|
-
[
|
|
1827
|
-
[
|
|
1828
|
-
[
|
|
1829
|
-
[
|
|
1830
|
-
[
|
|
1831
|
-
[
|
|
1832
|
-
[
|
|
1833
|
-
[
|
|
1834
|
-
[
|
|
1835
|
-
[
|
|
1836
|
-
[
|
|
1837
|
-
[
|
|
1838
|
-
[
|
|
1839
|
-
[
|
|
1840
|
-
[
|
|
1841
|
-
},
|
|
1681
|
+
}, Ln = e.string().refine((e) => Object.values(G).includes(e), { message: "Invalid log type" }), Rn = {
|
|
1682
|
+
[G.ACLS_SUMMARY]: "ACLs Summary",
|
|
1683
|
+
[G.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1684
|
+
[G.API_LIMIT]: "API Rate Limit Reached",
|
|
1685
|
+
[G.API_LIMIT_WARNING]: "API Rate Limit Warning",
|
|
1686
|
+
[G.APPI]: "API Operation",
|
|
1687
|
+
[G.CIBA_EXCHANGE_FAILED]: "CIBA Exchange Failed",
|
|
1688
|
+
[G.CIBA_EXCHANGE_SUCCEEDED]: "CIBA Exchange Succeeded",
|
|
1689
|
+
[G.CIBA_START_FAILED]: "CIBA Start Failed",
|
|
1690
|
+
[G.CIBA_START_SUCCEEDED]: "CIBA Start Succeeded",
|
|
1691
|
+
[G.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1692
|
+
[G.CODE_SENT]: "Code Sent",
|
|
1693
|
+
[G.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1694
|
+
[G.FAILED_LOGIN]: "Failed Login",
|
|
1695
|
+
[G.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1696
|
+
[G.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
1697
|
+
[G.FAILED_BY_CORS]: "Failed by CORS",
|
|
1698
|
+
[G.FAILED_CROSS_ORIGIN_AUTHENTICATION]: "Failed Cross Origin Authentication",
|
|
1699
|
+
[G.FAILED_CHANGE_PASSWORD]: "Failed Change Password",
|
|
1700
|
+
[G.FAILED_POST_CHANGE_PASSWORD_HOOK]: "Failed Post-Change Password Hook",
|
|
1701
|
+
[G.FAILED_CHANGE_PHONE_NUMBER]: "Failed Change Phone Number",
|
|
1702
|
+
[G.FAILED_CHANGE_PASSWORD_REQUEST]: "Failed Change Password Request",
|
|
1703
|
+
[G.FAILED_CONNECTOR_PROVISIONING]: "Failed Connector Provisioning",
|
|
1704
|
+
[G.FAILED_CHANGE_USERNAME]: "Failed Change Username",
|
|
1705
|
+
[G.FAILED_DELEGATION]: "Failed Delegation",
|
|
1706
|
+
[G.FAILED_DEVICE_ACTIVATION]: "Failed Device Activation",
|
|
1707
|
+
[G.FAILED_DEVICE_AUTHORIZATION_REQUEST]: "Failed Device Authorization Request",
|
|
1708
|
+
[G.USER_CANCELED_DEVICE_CONFIRMATION]: "User Canceled Device Confirmation",
|
|
1709
|
+
[G.FAILED_USER_DELETION]: "Failed User Deletion",
|
|
1710
|
+
[G.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Authorization Code for Access Token",
|
|
1711
|
+
[G.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Failed Exchange Access Token for Client Credentials",
|
|
1712
|
+
[G.FAILED_EXCHANGE_CUSTOM_TOKEN]: "Failed Exchange Custom Token",
|
|
1713
|
+
[G.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Device Code for Access Token",
|
|
1714
|
+
[G.FAILED_FEDERATED_LOGOUT]: "Failed Federated Logout",
|
|
1715
|
+
[G.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Failed Exchange Native Social Login",
|
|
1716
|
+
[G.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Failed Exchange Password OOB for Access Token",
|
|
1717
|
+
[G.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Password OTP for Access Token",
|
|
1718
|
+
[G.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Failed Exchange Password for Access Token",
|
|
1719
|
+
[G.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Passwordless OTP for Access Token",
|
|
1720
|
+
[G.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Failed Exchange Password MFA Recovery for Access Token",
|
|
1721
|
+
[G.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN]: "Failed Exchange Rotating Refresh Token",
|
|
1722
|
+
[G.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Refresh Token for Access Token",
|
|
1723
|
+
[G.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Subject Token for Access Token",
|
|
1724
|
+
[G.FAILED_HOOK]: "Failed Hook",
|
|
1725
|
+
[G.FAILED_IMPERSONATION]: "Failed Impersonation",
|
|
1726
|
+
[G.FAILED_INVITE_ACCEPT]: "Failed Invite Accept",
|
|
1727
|
+
[G.FAILED_LOGOUT]: "Failed Logout",
|
|
1728
|
+
[G.FLOWS_EXECUTION_COMPLETED]: "Flows Execution Completed",
|
|
1729
|
+
[G.FLOWS_EXECUTION_FAILED]: "Flows Execution Failed",
|
|
1730
|
+
[G.FAILED_SENDING_NOTIFICATION]: "Failed Sending Notification",
|
|
1731
|
+
[G.FORMS_SUBMISSION_FAILED]: "Forms Submission Failed",
|
|
1732
|
+
[G.FORMS_SUBMISSION_SUCCEEDED]: "Forms Submission Succeeded",
|
|
1733
|
+
[G.FAILED_LOGIN_INCORRECT_PASSWORD]: "Failed Login - Incorrect Password",
|
|
1734
|
+
[G.FAILED_PUSHED_AUTHORIZATION_REQUEST]: "Failed Pushed Authorization Request",
|
|
1735
|
+
[G.FAILED_POST_USER_REGISTRATION_HOOK]: "Failed Post-User Registration Hook",
|
|
1736
|
+
[G.FAILED_SIGNUP]: "Failed Signup",
|
|
1737
|
+
[G.FAILED_SILENT_AUTH]: "Failed Silent Auth",
|
|
1738
|
+
[G.FAILED_LOGIN_INVALID_EMAIL_USERNAME]: "Failed Login - Invalid Email/Username",
|
|
1739
|
+
[G.FAILED_USERS_IMPORT]: "Failed Users Import",
|
|
1740
|
+
[G.FAILED_VERIFICATION_EMAIL]: "Failed Verification Email",
|
|
1741
|
+
[G.FAILED_VERIFICATION_EMAIL_REQUEST]: "Failed Verification Email Request",
|
|
1742
|
+
[G.EMAIL_VERIFICATION_CONFIRMED]: "Email Verification Confirmed",
|
|
1743
|
+
[G.EMAIL_VERIFICATION_FAILED]: "Email Verification Failed",
|
|
1744
|
+
[G.MFA_AUTH_FAILED]: "MFA Auth Failed",
|
|
1745
|
+
[G.MFA_AUTH_REJECTED]: "MFA Auth Rejected",
|
|
1746
|
+
[G.MFA_AUTH_SUCCESS]: "MFA Auth Success",
|
|
1747
|
+
[G.MFA_ENROLLMENT_COMPLETE]: "MFA Enrollment Complete",
|
|
1748
|
+
[G.TOO_MANY_MFA_FAILURES]: "Too Many MFA Failures",
|
|
1749
|
+
[G.MFA_RECOVERY_FAILED]: "MFA Recovery Failed",
|
|
1750
|
+
[G.MFA_RECOVERY_RATE_LIMIT_EXCEED]: "MFA Recovery Rate Limit Exceeded",
|
|
1751
|
+
[G.MFA_RECOVERY_SUCCESS]: "MFA Recovery Success",
|
|
1752
|
+
[G.MFA_EMAIL_SENT]: "MFA Email Sent",
|
|
1753
|
+
[G.EMAIL_VERIFICATION_SENT]: "Email Verification Sent",
|
|
1754
|
+
[G.EMAIL_VERIFICATION_SEND_FAILURE]: "Email Verification Send Failure",
|
|
1755
|
+
[G.PUSH_NOTIFICATION_SENT]: "Push Notification Sent",
|
|
1756
|
+
[G.ERROR_SENDING_MFA_PUSH_NOTIFICATION]: "Error Sending MFA Push Notification",
|
|
1757
|
+
[G.MFA_SMS_SENT]: "MFA SMS Sent",
|
|
1758
|
+
[G.ERROR_SENDING_MFA_SMS]: "Error Sending MFA SMS",
|
|
1759
|
+
[G.MFA_VOICE_CALL_SUCCESS]: "MFA Voice Call Success",
|
|
1760
|
+
[G.MFA_VOICE_CALL_FAILED]: "MFA Voice Call Failed",
|
|
1761
|
+
[G.SECOND_FACTOR_STARTED]: "Second Factor Started",
|
|
1762
|
+
[G.MFA_ENROLL_STARTED]: "MFA Enroll Started",
|
|
1763
|
+
[G.MFA_ENROLLMENT_FAILED]: "MFA Enrollment Failed",
|
|
1764
|
+
[G.GUARDIAN_TENANT_UPDATE]: "Guardian Tenant Update",
|
|
1765
|
+
[G.UNENROLL_DEVICE_ACCOUNT]: "Unenroll Device Account",
|
|
1766
|
+
[G.UPDATE_DEVICE_ACCOUNT]: "Update Device Account",
|
|
1767
|
+
[G.WEBAUTHN_CHALLENGE_FAILED]: "WebAuthn Challenge Failed",
|
|
1768
|
+
[G.WEBAUTHN_ENROLLMENT_FAILED]: "WebAuthn Enrollment Failed",
|
|
1769
|
+
[G.FAILED_KMS_API_OPERATION]: "Failed KMS API Operation",
|
|
1770
|
+
[G.SUCCESS_KMS_API_OPERATION]: "Success KMS API Operation",
|
|
1771
|
+
[G.KMS_KEY_STATE_CHANGED]: "KMS Key State Changed",
|
|
1772
|
+
[G.TOO_MANY_CALLS_TO_DELEGATION]: "Too Many Calls to Delegation",
|
|
1773
|
+
[G.BLOCKED_IP_ADDRESS]: "Blocked IP Address",
|
|
1774
|
+
[G.BLOCKED_ACCOUNT_IP]: "Blocked Account (IP)",
|
|
1775
|
+
[G.BLOCKED_ACCOUNT_EMAIL]: "Blocked Account (Email)",
|
|
1776
|
+
[G.INFORMATION]: "Information",
|
|
1777
|
+
[G.MFA_REQUIRED]: "MFA Required",
|
|
1778
|
+
[G.MANAGEMENT_API_READ_OPERATION]: "Management API Read Operation",
|
|
1779
|
+
[G.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Failed Authentication Method Operation (My Account)",
|
|
1780
|
+
[G.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Successful Authentication Method Operation (My Account)",
|
|
1781
|
+
[G.FAILED_OIDC_BACKCHANNEL_LOGOUT]: "Failed OIDC Backchannel Logout",
|
|
1782
|
+
[G.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT]: "Successful OIDC Backchannel Logout",
|
|
1783
|
+
[G.ORGANIZATION_MEMBER_ADDED]: "Organization Member Added",
|
|
1784
|
+
[G.PASSKEY_CHALLENGE_FAILED]: "Passkey Challenge Failed",
|
|
1785
|
+
[G.PASSKEY_CHALLENGE_STARTED]: "Passkey Challenge Started",
|
|
1786
|
+
[G.PRE_LOGIN_ASSESSMENT]: "Pre-Login Assessment",
|
|
1787
|
+
[G.BREACHED_PASSWORD]: "Breached Password",
|
|
1788
|
+
[G.BREACHED_PASSWORD_ON_RESET]: "Breached Password on Reset",
|
|
1789
|
+
[G.SUCCESS_RESOURCE_CLEANUP]: "Success Resource Cleanup",
|
|
1790
|
+
[G.RICH_CONSENTS_ACCESS_ERROR]: "Rich Consents Access Error",
|
|
1791
|
+
[G.SUCCESS_LOGIN]: "Success Login",
|
|
1792
|
+
[G.SUCCESS_API_OPERATION]: "Success API Operation",
|
|
1793
|
+
[G.FAILED_API_OPERATION]: "Failed API Operation",
|
|
1794
|
+
[G.SUCCESS_CHANGE_EMAIL]: "Success Change Email",
|
|
1795
|
+
[G.SUCCESS_CROSS_ORIGIN_AUTHENTICATION]: "Success Cross Origin Authentication",
|
|
1796
|
+
[G.SUCCESS_CHANGE_PASSWORD]: "Success Change Password",
|
|
1797
|
+
[G.SUCCESS_CHANGE_PHONE_NUMBER]: "Success Change Phone Number",
|
|
1798
|
+
[G.SUCCESS_CHANGE_PASSWORD_REQUEST]: "Success Change Password Request",
|
|
1799
|
+
[G.SUCCESS_CHANGE_USERNAME]: "Success Change Username",
|
|
1800
|
+
[G.SUCCESS_CREDENTIAL_VALIDATION]: "Success Credential Validation",
|
|
1801
|
+
[G.SUCCESS_DELEGATION]: "Success Delegation",
|
|
1802
|
+
[G.SUCCESS_USER_DELETION]: "Success User Deletion",
|
|
1803
|
+
[G.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Authorization Code for Access Token",
|
|
1804
|
+
[G.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Success Exchange Access Token for Client Credentials",
|
|
1805
|
+
[G.SUCCESS_EXCHANGE_CUSTOM_TOKEN]: "Success Exchange Custom Token",
|
|
1806
|
+
[G.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Device Code for Access Token",
|
|
1807
|
+
[G.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
|
|
1808
|
+
[G.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
|
|
1809
|
+
[G.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
|
|
1810
|
+
[G.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
|
|
1811
|
+
[G.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
|
|
1812
|
+
[G.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
|
|
1813
|
+
[G.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
|
|
1814
|
+
[G.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Passkey MFA Recovery for Access Token",
|
|
1815
|
+
[G.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Password MFA Recovery for Access Token",
|
|
1816
|
+
[G.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Refresh Token for Access Token",
|
|
1817
|
+
[G.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Subject Token for Access Token",
|
|
1818
|
+
[G.SUCCESS_IMPERSONATION]: "Success Impersonation",
|
|
1819
|
+
[G.SUCCESSFULLY_ACCEPTED_USER_INVITE]: "Successfully Accepted User Invite",
|
|
1820
|
+
[G.BREACHED_PASSWORD_ON_SIGNUP]: "Breached Password on Signup",
|
|
1821
|
+
[G.SUCCESS_LOGOUT]: "Success Logout",
|
|
1822
|
+
[G.SUCCESS_HOOK]: "Success Hook",
|
|
1823
|
+
[G.SUCCESS_PASSWORD_MIGRATION]: "Success Password Migration",
|
|
1824
|
+
[G.SUCCESS_REVOCATION]: "Success Revocation",
|
|
1825
|
+
[G.SUCCESS_SIGNUP]: "Success Signup",
|
|
1826
|
+
[G.FAILED_SS_SSO_OPERATION]: "Failed SS SSO Operation",
|
|
1827
|
+
[G.INFORMATION_FROM_SS_SSO_OPERATION]: "Information from SS SSO Operation",
|
|
1828
|
+
[G.SUCCESS_SS_SSO_OPERATION]: "Success SS SSO Operation",
|
|
1829
|
+
[G.SUCCESS_SILENT_AUTH]: "Success Silent Auth",
|
|
1830
|
+
[G.SUCCESSFUL_SCIM_OPERATION]: "Successful SCIM Operation",
|
|
1831
|
+
[G.SUCCESSFULLY_IMPORTED_USERS]: "Successfully Imported Users",
|
|
1832
|
+
[G.SUCCESS_VERIFICATION_EMAIL]: "Success Verification Email",
|
|
1833
|
+
[G.SUCCESS_VERIFICATION_EMAIL_REQUEST]: "Success Verification Email Request",
|
|
1834
|
+
[G.MAX_AMOUNT_OF_AUTHENTICATORS]: "Max Amount of Authenticators",
|
|
1835
|
+
[G.USER_LOGIN_BLOCK_RELEASED]: "User Login Block Released",
|
|
1836
|
+
[G.FAILED_UNIVERSAL_LOGOUT]: "Failed Universal Logout",
|
|
1837
|
+
[G.SUCCESSFUL_UNIVERSAL_LOGOUT]: "Successful Universal Logout",
|
|
1838
|
+
[G.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1839
|
+
[G.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1840
|
+
[G.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1841
|
+
}, zn = (() => {
|
|
1842
1842
|
let e = {};
|
|
1843
|
-
for (let [t, n] of Object.entries(
|
|
1843
|
+
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";
|
|
1844
1844
|
return e;
|
|
1845
1845
|
})();
|
|
1846
|
-
function zn(e) {
|
|
1847
|
-
return Ln[e] ?? e;
|
|
1848
|
-
}
|
|
1849
1846
|
function Bn(e) {
|
|
1850
|
-
return Rn[e] ??
|
|
1847
|
+
return Rn[e] ?? e;
|
|
1848
|
+
}
|
|
1849
|
+
function Vn(e) {
|
|
1850
|
+
return zn[e] ?? "other";
|
|
1851
1851
|
}
|
|
1852
|
-
var
|
|
1852
|
+
var Hn = e.object({
|
|
1853
1853
|
name: e.string(),
|
|
1854
1854
|
version: e.string(),
|
|
1855
1855
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1856
|
-
}),
|
|
1856
|
+
}), Un = e.object({
|
|
1857
1857
|
country_code: e.string().length(2),
|
|
1858
1858
|
city_name: e.string(),
|
|
1859
1859
|
latitude: e.string(),
|
|
1860
1860
|
longitude: e.string(),
|
|
1861
1861
|
time_zone: e.string(),
|
|
1862
1862
|
continent_code: e.string()
|
|
1863
|
-
}),
|
|
1864
|
-
type:
|
|
1863
|
+
}), Wn = e.object({
|
|
1864
|
+
type: Ln,
|
|
1865
1865
|
date: e.string(),
|
|
1866
1866
|
description: e.string().optional(),
|
|
1867
1867
|
ip: e.string().optional(),
|
|
@@ -1879,58 +1879,58 @@ var Vn = e.object({
|
|
|
1879
1879
|
strategy: e.string().optional(),
|
|
1880
1880
|
strategy_type: e.string().optional(),
|
|
1881
1881
|
hostname: e.string().optional(),
|
|
1882
|
-
auth0_client:
|
|
1882
|
+
auth0_client: Hn.optional(),
|
|
1883
1883
|
log_id: e.string().optional(),
|
|
1884
|
-
location_info:
|
|
1885
|
-
}),
|
|
1884
|
+
location_info: Un.optional()
|
|
1885
|
+
}), Gn = Wn.extend({ log_id: e.string() }), Kn = e.enum([
|
|
1886
1886
|
"http",
|
|
1887
1887
|
"eventbridge",
|
|
1888
1888
|
"eventgrid",
|
|
1889
1889
|
"splunk",
|
|
1890
1890
|
"datadog",
|
|
1891
1891
|
"sumo"
|
|
1892
|
-
]),
|
|
1892
|
+
]), K = e.enum([
|
|
1893
1893
|
"active",
|
|
1894
1894
|
"paused",
|
|
1895
1895
|
"suspended"
|
|
1896
|
-
]),
|
|
1896
|
+
]), qn = e.object({
|
|
1897
1897
|
type: e.string(),
|
|
1898
1898
|
name: e.string()
|
|
1899
|
-
}),
|
|
1899
|
+
}), Jn = e.object({
|
|
1900
1900
|
name: e.string(),
|
|
1901
|
-
type:
|
|
1902
|
-
status:
|
|
1901
|
+
type: Kn,
|
|
1902
|
+
status: K.optional(),
|
|
1903
1903
|
sink: e.record(e.string(), e.unknown()),
|
|
1904
|
-
filters: e.array(
|
|
1904
|
+
filters: e.array(qn).optional(),
|
|
1905
1905
|
isPriority: e.boolean().optional()
|
|
1906
|
-
}),
|
|
1906
|
+
}), Yn = Jn.extend({
|
|
1907
1907
|
id: e.string(),
|
|
1908
|
-
status:
|
|
1908
|
+
status: K,
|
|
1909
1909
|
created_at: e.string().optional(),
|
|
1910
1910
|
updated_at: e.string().optional()
|
|
1911
|
-
}),
|
|
1911
|
+
}), Xn = e.enum([
|
|
1912
1912
|
"auth0",
|
|
1913
1913
|
"cognito",
|
|
1914
1914
|
"okta",
|
|
1915
1915
|
"oidc"
|
|
1916
|
-
]),
|
|
1916
|
+
]), Zn = e.object({
|
|
1917
1917
|
domain: e.string(),
|
|
1918
1918
|
client_id: e.string(),
|
|
1919
1919
|
client_secret: e.string(),
|
|
1920
1920
|
audience: e.string().optional(),
|
|
1921
1921
|
scope: e.string().optional()
|
|
1922
|
-
}),
|
|
1922
|
+
}), Qn = e.object({
|
|
1923
1923
|
id: e.string().optional(),
|
|
1924
1924
|
name: e.string(),
|
|
1925
|
-
provider:
|
|
1925
|
+
provider: Xn,
|
|
1926
1926
|
connection: e.string(),
|
|
1927
1927
|
enabled: e.boolean().default(!0),
|
|
1928
|
-
credentials:
|
|
1929
|
-
}),
|
|
1928
|
+
credentials: Zn
|
|
1929
|
+
}), $n = e.object({
|
|
1930
1930
|
id: e.string(),
|
|
1931
1931
|
created_at: e.string(),
|
|
1932
1932
|
updated_at: e.string()
|
|
1933
|
-
}).extend(
|
|
1933
|
+
}).extend(Qn.shape), er = e.object({
|
|
1934
1934
|
enabled: e.boolean().optional(),
|
|
1935
1935
|
shields: e.array(e.string()).optional(),
|
|
1936
1936
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1939,13 +1939,13 @@ var Vn = e.object({
|
|
|
1939
1939
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1940
1940
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1941
1941
|
}).optional()
|
|
1942
|
-
}),
|
|
1942
|
+
}), tr = e.object({
|
|
1943
1943
|
enabled: e.boolean().optional(),
|
|
1944
1944
|
shields: e.array(e.string()).optional(),
|
|
1945
1945
|
allowlist: e.array(e.string()).optional(),
|
|
1946
1946
|
mode: e.string().optional(),
|
|
1947
1947
|
max_attempts: e.number().optional()
|
|
1948
|
-
}),
|
|
1948
|
+
}), nr = e.object({
|
|
1949
1949
|
enabled: e.boolean().optional(),
|
|
1950
1950
|
shields: e.array(e.string()).optional(),
|
|
1951
1951
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1959,28 +1959,28 @@ var Vn = e.object({
|
|
|
1959
1959
|
rate: e.number().optional()
|
|
1960
1960
|
}).optional()
|
|
1961
1961
|
}).optional()
|
|
1962
|
-
}), nr = e.object({
|
|
1963
|
-
breached_password_detection: $n.optional(),
|
|
1964
|
-
brute_force_protection: er.optional(),
|
|
1965
|
-
suspicious_ip_throttling: tr.optional()
|
|
1966
1962
|
}), rr = e.object({
|
|
1963
|
+
breached_password_detection: er.optional(),
|
|
1964
|
+
brute_force_protection: tr.optional(),
|
|
1965
|
+
suspicious_ip_throttling: nr.optional()
|
|
1966
|
+
}), ir = e.object({
|
|
1967
1967
|
id: e.string().optional(),
|
|
1968
1968
|
user_id: e.string(),
|
|
1969
1969
|
password: e.string(),
|
|
1970
1970
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1971
1971
|
is_current: e.boolean().default(!0)
|
|
1972
|
-
}),
|
|
1972
|
+
}), ar = ir.extend({
|
|
1973
1973
|
id: e.string(),
|
|
1974
1974
|
created_at: e.string(),
|
|
1975
1975
|
updated_at: e.string()
|
|
1976
|
-
}),
|
|
1976
|
+
}), or = e.object({
|
|
1977
1977
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1978
1978
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1979
1979
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1980
1980
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1981
1981
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1982
1982
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1983
|
-
}),
|
|
1983
|
+
}), sr = e.object({
|
|
1984
1984
|
id: e.string(),
|
|
1985
1985
|
revoked_at: e.string().optional(),
|
|
1986
1986
|
used_at: e.string().optional(),
|
|
@@ -1988,14 +1988,14 @@ var Vn = e.object({
|
|
|
1988
1988
|
expires_at: e.string().optional(),
|
|
1989
1989
|
login_session_id: e.string(),
|
|
1990
1990
|
idle_expires_at: e.string().optional(),
|
|
1991
|
-
device:
|
|
1991
|
+
device: or.describe("Metadata related to the device used in the session"),
|
|
1992
1992
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1993
|
-
}),
|
|
1993
|
+
}), cr = e.object({
|
|
1994
1994
|
created_at: e.string(),
|
|
1995
1995
|
updated_at: e.string(),
|
|
1996
1996
|
authenticated_at: e.string(),
|
|
1997
1997
|
last_interaction_at: e.string()
|
|
1998
|
-
}).extend(
|
|
1998
|
+
}).extend(sr.shape), lr = e.object({
|
|
1999
1999
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
2000
2000
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
2001
2001
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -2011,7 +2011,7 @@ var Vn = e.object({
|
|
|
2011
2011
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
2012
2012
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
2013
2013
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
2014
|
-
}),
|
|
2014
|
+
}), ur = e.object({
|
|
2015
2015
|
id: e.string().optional(),
|
|
2016
2016
|
audience: e.string().optional(),
|
|
2017
2017
|
friendly_name: e.string(),
|
|
@@ -2129,7 +2129,7 @@ var Vn = e.object({
|
|
|
2129
2129
|
"shared_planetscale"
|
|
2130
2130
|
]).optional(),
|
|
2131
2131
|
d1_database_id: e.string().max(64).optional(),
|
|
2132
|
-
attack_protection:
|
|
2132
|
+
attack_protection: rr.optional(),
|
|
2133
2133
|
mfa: e.object({
|
|
2134
2134
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2135
2135
|
factors: e.object({
|
|
@@ -2156,99 +2156,138 @@ var Vn = e.object({
|
|
|
2156
2156
|
}).optional(),
|
|
2157
2157
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2158
2158
|
}).optional()
|
|
2159
|
-
}),
|
|
2159
|
+
}), dr = e.object({
|
|
2160
2160
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2161
2161
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2162
|
-
}).extend(
|
|
2162
|
+
}).extend(ur.shape).extend({
|
|
2163
2163
|
id: e.string(),
|
|
2164
2164
|
is_control_plane: e.boolean().optional()
|
|
2165
|
-
}),
|
|
2165
|
+
}), fr = e.enum([
|
|
2166
2166
|
"provision",
|
|
2167
2167
|
"seed",
|
|
2168
2168
|
"upgrade",
|
|
2169
2169
|
"backup",
|
|
2170
|
-
"deprovision"
|
|
2171
|
-
|
|
2170
|
+
"deprovision",
|
|
2171
|
+
"users_import"
|
|
2172
|
+
]), pr = e.enum([
|
|
2172
2173
|
"pending",
|
|
2173
2174
|
"running",
|
|
2174
2175
|
"succeeded",
|
|
2175
2176
|
"failed",
|
|
2176
2177
|
"cancelled"
|
|
2177
|
-
]),
|
|
2178
|
+
]), mr = e.string().max(64), hr = ["inline", "cloudflare-workflows"], gr = e.object({
|
|
2178
2179
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2179
2180
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2180
|
-
kind:
|
|
2181
|
-
engine:
|
|
2181
|
+
kind: fr,
|
|
2182
|
+
engine: mr,
|
|
2182
2183
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2183
2184
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2184
2185
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2185
|
-
initiated_by: e.string().max(255).nullable().optional()
|
|
2186
|
-
|
|
2186
|
+
initiated_by: e.string().max(255).nullable().optional(),
|
|
2187
|
+
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
2188
|
+
}), _r = gr.extend({
|
|
2187
2189
|
id: e.string(),
|
|
2188
|
-
status:
|
|
2190
|
+
status: pr,
|
|
2189
2191
|
current_step: e.string().max(255).nullable().optional(),
|
|
2190
2192
|
error: e.string().nullable().optional(),
|
|
2193
|
+
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2194
|
+
claimed_by: e.string().max(255).nullable().optional(),
|
|
2195
|
+
claim_expires_at: e.string().nullable().optional(),
|
|
2191
2196
|
created_at: e.string(),
|
|
2192
2197
|
updated_at: e.string(),
|
|
2193
2198
|
finished_at: e.string().nullable().optional()
|
|
2194
|
-
}),
|
|
2199
|
+
}), vr = _r.pick({
|
|
2195
2200
|
status: !0,
|
|
2196
2201
|
current_step: !0,
|
|
2197
2202
|
engine_instance_id: !0,
|
|
2198
2203
|
target_worker_version: !0,
|
|
2199
2204
|
target_database_version: !0,
|
|
2200
2205
|
error: !0,
|
|
2206
|
+
result: !0,
|
|
2207
|
+
claimed_by: !0,
|
|
2208
|
+
claim_expires_at: !0,
|
|
2201
2209
|
finished_at: !0
|
|
2202
|
-
}).partial(),
|
|
2210
|
+
}).partial(), yr = e.enum([
|
|
2203
2211
|
"started",
|
|
2204
2212
|
"succeeded",
|
|
2205
2213
|
"failed",
|
|
2206
2214
|
"retried",
|
|
2207
2215
|
"skipped",
|
|
2208
2216
|
"reconciled"
|
|
2209
|
-
]),
|
|
2217
|
+
]), br = e.object({
|
|
2210
2218
|
operation_id: e.string().max(255),
|
|
2211
2219
|
step: e.string().max(255),
|
|
2212
|
-
outcome:
|
|
2220
|
+
outcome: yr,
|
|
2213
2221
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2214
2222
|
attempt: e.number().int().min(1).default(1)
|
|
2215
|
-
}),
|
|
2223
|
+
}), xr = br.extend({
|
|
2216
2224
|
id: e.string(),
|
|
2217
2225
|
created_at: e.string()
|
|
2218
|
-
}),
|
|
2226
|
+
}), q = e.enum([
|
|
2227
|
+
"pending",
|
|
2228
|
+
"inserted",
|
|
2229
|
+
"updated",
|
|
2230
|
+
"failed",
|
|
2231
|
+
"skipped"
|
|
2232
|
+
]), Sr = [
|
|
2233
|
+
"inserted",
|
|
2234
|
+
"updated",
|
|
2235
|
+
"failed",
|
|
2236
|
+
"skipped"
|
|
2237
|
+
], Cr = e.object({
|
|
2238
|
+
operation_id: e.string().max(255),
|
|
2239
|
+
seq: e.number().int().min(0),
|
|
2240
|
+
payload: e.record(e.string(), e.unknown()),
|
|
2241
|
+
status: q.default("pending"),
|
|
2242
|
+
error_code: e.string().max(64).nullable().optional(),
|
|
2243
|
+
error_message: e.string().nullable().optional(),
|
|
2244
|
+
error_path: e.string().max(255).nullable().optional(),
|
|
2245
|
+
entity_id: e.string().max(255).nullable().optional()
|
|
2246
|
+
}), wr = Cr.extend({
|
|
2247
|
+
status: q,
|
|
2248
|
+
created_at: e.string(),
|
|
2249
|
+
updated_at: e.string()
|
|
2250
|
+
}), Tr = e.object({
|
|
2251
|
+
seq: e.number().int().min(0),
|
|
2252
|
+
status: q,
|
|
2253
|
+
error_code: e.string().max(64).nullable().optional(),
|
|
2254
|
+
error_message: e.string().nullable().optional(),
|
|
2255
|
+
error_path: e.string().max(255).nullable().optional(),
|
|
2256
|
+
entity_id: e.string().max(255).nullable().optional()
|
|
2257
|
+
}), Er = e.enum([
|
|
2219
2258
|
"upgrade",
|
|
2220
2259
|
"reseed",
|
|
2221
2260
|
"backup"
|
|
2222
|
-
]),
|
|
2261
|
+
]), Dr = e.enum([
|
|
2223
2262
|
"pending",
|
|
2224
2263
|
"canary",
|
|
2225
2264
|
"rolling",
|
|
2226
2265
|
"paused",
|
|
2227
2266
|
"done",
|
|
2228
2267
|
"failed"
|
|
2229
|
-
]),
|
|
2230
|
-
kind:
|
|
2268
|
+
]), Or = e.object({
|
|
2269
|
+
kind: Er,
|
|
2231
2270
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2232
2271
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2233
2272
|
wave_size: e.number().int().min(1).default(10),
|
|
2234
2273
|
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2235
2274
|
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2236
2275
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2237
|
-
}),
|
|
2276
|
+
}), kr = Or.extend({
|
|
2238
2277
|
id: e.string(),
|
|
2239
|
-
status:
|
|
2278
|
+
status: Dr,
|
|
2240
2279
|
created_at: e.string(),
|
|
2241
2280
|
updated_at: e.string(),
|
|
2242
2281
|
finished_at: e.string().nullable().optional()
|
|
2243
|
-
}),
|
|
2282
|
+
}), Ar = kr.pick({
|
|
2244
2283
|
status: !0,
|
|
2245
2284
|
wave_size: !0,
|
|
2246
2285
|
canary_tenant_ids: !0,
|
|
2247
2286
|
filter: !0,
|
|
2248
2287
|
finished_at: !0
|
|
2249
|
-
}).partial(),
|
|
2288
|
+
}).partial(), jr = /* @__PURE__ */ function(e) {
|
|
2250
2289
|
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;
|
|
2251
|
-
}({}),
|
|
2290
|
+
}({}), Mr = e.object({
|
|
2252
2291
|
access_token: e.string(),
|
|
2253
2292
|
id_token: e.string().optional(),
|
|
2254
2293
|
scope: e.string().optional(),
|
|
@@ -2263,7 +2302,7 @@ e.object({
|
|
|
2263
2302
|
});
|
|
2264
2303
|
//#endregion
|
|
2265
2304
|
//#region src/types/Theme.ts
|
|
2266
|
-
var
|
|
2305
|
+
var Nr = e.object({
|
|
2267
2306
|
button_border_radius: e.number(),
|
|
2268
2307
|
button_border_weight: e.number(),
|
|
2269
2308
|
buttons_style: e.enum([
|
|
@@ -2281,7 +2320,7 @@ var Dr = e.object({
|
|
|
2281
2320
|
show_widget_shadow: e.boolean(),
|
|
2282
2321
|
widget_border_weight: e.number(),
|
|
2283
2322
|
widget_corner_radius: e.number()
|
|
2284
|
-
}),
|
|
2323
|
+
}), Pr = e.object({
|
|
2285
2324
|
base_focus_color: e.string(),
|
|
2286
2325
|
base_hover_color: e.string(),
|
|
2287
2326
|
body_text: e.string(),
|
|
@@ -2308,7 +2347,7 @@ var Dr = e.object({
|
|
|
2308
2347
|
}), J = e.object({
|
|
2309
2348
|
bold: e.boolean(),
|
|
2310
2349
|
size: e.number()
|
|
2311
|
-
}),
|
|
2350
|
+
}), Fr = e.object({
|
|
2312
2351
|
body_text: J,
|
|
2313
2352
|
buttons_text: J,
|
|
2314
2353
|
font_url: e.string(),
|
|
@@ -2318,7 +2357,7 @@ var Dr = e.object({
|
|
|
2318
2357
|
reference_text_size: e.number(),
|
|
2319
2358
|
subtitle: J,
|
|
2320
2359
|
title: J
|
|
2321
|
-
}),
|
|
2360
|
+
}), Ir = e.object({
|
|
2322
2361
|
background_color: e.string(),
|
|
2323
2362
|
background_image_url: e.string(),
|
|
2324
2363
|
page_layout: e.enum([
|
|
@@ -2331,7 +2370,7 @@ var Dr = e.object({
|
|
|
2331
2370
|
"chip",
|
|
2332
2371
|
"none"
|
|
2333
2372
|
]).optional()
|
|
2334
|
-
}),
|
|
2373
|
+
}), Lr = e.object({
|
|
2335
2374
|
header_text_alignment: e.enum([
|
|
2336
2375
|
"center",
|
|
2337
2376
|
"left",
|
|
@@ -2346,72 +2385,72 @@ var Dr = e.object({
|
|
|
2346
2385
|
]),
|
|
2347
2386
|
logo_url: e.string(),
|
|
2348
2387
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2349
|
-
}),
|
|
2350
|
-
borders:
|
|
2351
|
-
colors:
|
|
2388
|
+
}), Rr = e.object({
|
|
2389
|
+
borders: Nr,
|
|
2390
|
+
colors: Pr,
|
|
2352
2391
|
displayName: e.string(),
|
|
2353
|
-
fonts:
|
|
2354
|
-
page_background:
|
|
2355
|
-
widget:
|
|
2356
|
-
}),
|
|
2392
|
+
fonts: Fr,
|
|
2393
|
+
page_background: Ir,
|
|
2394
|
+
widget: Lr
|
|
2395
|
+
}), zr = Rr.extend({ themeId: e.string() }), Br = e.object({
|
|
2357
2396
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2358
2397
|
identifier_first: e.boolean().default(!0),
|
|
2359
2398
|
password_first: e.boolean().default(!1),
|
|
2360
2399
|
show_last_used_connection: e.boolean().default(!1),
|
|
2361
2400
|
webauthn_platform_first_factor: e.boolean()
|
|
2362
|
-
}),
|
|
2401
|
+
}), Vr = e.object({
|
|
2363
2402
|
hosts: e.array(e.string()).optional(),
|
|
2364
2403
|
methods: e.array(e.string()).optional(),
|
|
2365
2404
|
path: e.string().default("/*"),
|
|
2366
2405
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2367
2406
|
query: e.record(e.string(), e.string()).optional()
|
|
2368
|
-
}),
|
|
2407
|
+
}), Hr = e.object({
|
|
2369
2408
|
type: e.string(),
|
|
2370
2409
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2371
2410
|
}), Y = e.object({
|
|
2372
2411
|
id: e.string().optional(),
|
|
2373
2412
|
custom_domain_id: e.string(),
|
|
2374
2413
|
priority: e.number().int().default(100),
|
|
2375
|
-
match:
|
|
2376
|
-
handlers: e.array(
|
|
2377
|
-
}),
|
|
2414
|
+
match: Vr,
|
|
2415
|
+
handlers: e.array(Hr).min(1)
|
|
2416
|
+
}), Ur = Y.extend({
|
|
2378
2417
|
id: e.string(),
|
|
2379
2418
|
tenant_id: e.string(),
|
|
2380
2419
|
created_at: e.string(),
|
|
2381
2420
|
updated_at: e.string()
|
|
2382
|
-
}),
|
|
2421
|
+
}), Wr = Y.partial().omit({
|
|
2383
2422
|
id: !0,
|
|
2384
2423
|
custom_domain_id: !0
|
|
2385
|
-
}),
|
|
2424
|
+
}), Gr = e.object({
|
|
2386
2425
|
scim: e.string(),
|
|
2387
2426
|
auth0: e.string()
|
|
2388
|
-
}),
|
|
2427
|
+
}), Kr = e.object({
|
|
2389
2428
|
connection_id: e.string(),
|
|
2390
2429
|
user_id_attribute: e.string().default("externalId"),
|
|
2391
|
-
mapping: e.array(
|
|
2392
|
-
}),
|
|
2430
|
+
mapping: e.array(Gr).default([])
|
|
2431
|
+
}), qr = e.object({
|
|
2393
2432
|
created_at: e.string(),
|
|
2394
2433
|
updated_at: e.string()
|
|
2395
|
-
}).extend(
|
|
2434
|
+
}).extend(Kr.shape), Jr = e.object({
|
|
2396
2435
|
token_id: e.string(),
|
|
2397
2436
|
connection_id: e.string(),
|
|
2398
2437
|
token_hash: e.string(),
|
|
2399
2438
|
scopes: e.array(e.string()).default([]),
|
|
2400
2439
|
valid_until: e.string().optional()
|
|
2401
|
-
}),
|
|
2440
|
+
}), Yr = e.object({
|
|
2402
2441
|
created_at: e.string(),
|
|
2403
2442
|
last_used_at: e.string().optional()
|
|
2404
|
-
}).extend(
|
|
2443
|
+
}).extend(Jr.shape), Xr = e.object({
|
|
2405
2444
|
connection_id: e.string(),
|
|
2406
2445
|
external_id: e.string(),
|
|
2407
2446
|
user_id: e.string()
|
|
2408
|
-
}),
|
|
2447
|
+
}), Zr = e.object({ created_at: e.string() }).extend(Xr.shape), Qr = e.object({
|
|
2409
2448
|
name: e.string(),
|
|
2410
2449
|
enabled: e.boolean().optional().default(!0),
|
|
2411
2450
|
default_from_address: e.string().optional(),
|
|
2412
2451
|
credentials: e.record(e.string(), e.unknown()),
|
|
2413
2452
|
settings: e.object({}).optional()
|
|
2414
|
-
}),
|
|
2453
|
+
}), $r = e.enum([
|
|
2415
2454
|
"verify_email",
|
|
2416
2455
|
"verify_email_by_code",
|
|
2417
2456
|
"reset_email",
|
|
@@ -2424,8 +2463,8 @@ var Dr = e.object({
|
|
|
2424
2463
|
"change_password",
|
|
2425
2464
|
"password_reset",
|
|
2426
2465
|
"user_invitation"
|
|
2427
|
-
]),
|
|
2428
|
-
template:
|
|
2466
|
+
]), ei = e.object({
|
|
2467
|
+
template: $r,
|
|
2429
2468
|
body: e.string(),
|
|
2430
2469
|
from: e.string(),
|
|
2431
2470
|
subject: e.string(),
|
|
@@ -2434,19 +2473,19 @@ var Dr = e.object({
|
|
|
2434
2473
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2435
2474
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2436
2475
|
enabled: e.boolean().default(!0)
|
|
2437
|
-
}),
|
|
2476
|
+
}), ti = e.object({
|
|
2438
2477
|
id: e.string(),
|
|
2439
2478
|
login_id: e.string(),
|
|
2440
2479
|
session_id: e.string().optional(),
|
|
2441
2480
|
organization: e.string().optional(),
|
|
2442
2481
|
auth_connection: e.string().optional(),
|
|
2443
|
-
auth_strategy:
|
|
2482
|
+
auth_strategy: W.optional(),
|
|
2444
2483
|
user_id: e.string(),
|
|
2445
2484
|
client_id: e.string(),
|
|
2446
2485
|
expires_at: e.string().optional(),
|
|
2447
2486
|
idle_expires_at: e.string().optional(),
|
|
2448
2487
|
last_exchanged_at: e.string().optional(),
|
|
2449
|
-
device:
|
|
2488
|
+
device: or,
|
|
2450
2489
|
resource_servers: e.array(e.object({
|
|
2451
2490
|
audience: e.string(),
|
|
2452
2491
|
scopes: e.string()
|
|
@@ -2457,19 +2496,19 @@ var Dr = e.object({
|
|
|
2457
2496
|
family_id: e.string().optional(),
|
|
2458
2497
|
rotated_to: e.string().optional(),
|
|
2459
2498
|
rotated_at: e.string().optional()
|
|
2460
|
-
}),
|
|
2499
|
+
}), ni = ti.extend({
|
|
2461
2500
|
created_at: e.string(),
|
|
2462
2501
|
revoked_at: e.string().optional()
|
|
2463
|
-
}),
|
|
2502
|
+
}), ri = e.object({
|
|
2464
2503
|
to: e.string(),
|
|
2465
2504
|
message: e.string()
|
|
2466
|
-
}),
|
|
2505
|
+
}), ii = e.object({
|
|
2467
2506
|
name: e.string(),
|
|
2468
2507
|
options: e.object({})
|
|
2469
|
-
}),
|
|
2508
|
+
}), ai = e.object({
|
|
2470
2509
|
value: e.string(),
|
|
2471
2510
|
description: e.string().optional()
|
|
2472
|
-
}),
|
|
2511
|
+
}), oi = e.object({
|
|
2473
2512
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2474
2513
|
enforce_policies: e.boolean().optional(),
|
|
2475
2514
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2477,11 +2516,11 @@ var Dr = e.object({
|
|
|
2477
2516
|
persist_client_authorization: e.boolean().optional(),
|
|
2478
2517
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2479
2518
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2480
|
-
}),
|
|
2519
|
+
}), si = e.object({
|
|
2481
2520
|
id: e.string().optional(),
|
|
2482
2521
|
name: e.string(),
|
|
2483
2522
|
identifier: e.string(),
|
|
2484
|
-
scopes: e.array(
|
|
2523
|
+
scopes: e.array(ai).optional(),
|
|
2485
2524
|
signing_alg: e.string().optional(),
|
|
2486
2525
|
signing_secret: e.string().optional(),
|
|
2487
2526
|
token_lifetime: e.number().default(86400),
|
|
@@ -2489,37 +2528,37 @@ var Dr = e.object({
|
|
|
2489
2528
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2490
2529
|
allow_offline_access: e.boolean().optional(),
|
|
2491
2530
|
verificationKey: e.string().optional(),
|
|
2492
|
-
options:
|
|
2531
|
+
options: oi.optional(),
|
|
2493
2532
|
is_system: e.boolean().optional(),
|
|
2494
2533
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2495
|
-
}),
|
|
2534
|
+
}), ci = si.extend({
|
|
2496
2535
|
created_at: e.string().optional(),
|
|
2497
2536
|
updated_at: e.string().optional()
|
|
2498
|
-
}),
|
|
2537
|
+
}), li = e.array(ci), ui = e.object({
|
|
2499
2538
|
role_id: e.string(),
|
|
2500
2539
|
resource_server_identifier: e.string(),
|
|
2501
2540
|
permission_name: e.string()
|
|
2502
|
-
}),
|
|
2541
|
+
}), di = ui.extend({ created_at: e.string() }), fi = e.array(di), pi = e.object({
|
|
2503
2542
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2504
2543
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2505
2544
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2506
2545
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2507
|
-
}),
|
|
2546
|
+
}), mi = pi.extend({ id: e.string() }), hi = e.object({
|
|
2508
2547
|
user_id: e.string(),
|
|
2509
2548
|
last_login: e.string().optional(),
|
|
2510
2549
|
last_ip: e.string().optional(),
|
|
2511
2550
|
login_count: e.number().default(0),
|
|
2512
2551
|
failed_logins: e.array(e.string()).optional(),
|
|
2513
2552
|
last_password_reset: e.string().optional()
|
|
2514
|
-
}),
|
|
2553
|
+
}), gi = e.object({
|
|
2515
2554
|
user_id: e.string(),
|
|
2516
2555
|
resource_server_identifier: e.string(),
|
|
2517
2556
|
permission_name: e.string(),
|
|
2518
2557
|
organization_id: e.string().optional()
|
|
2519
|
-
}),
|
|
2558
|
+
}), _i = gi.extend({
|
|
2520
2559
|
tenant_id: e.string(),
|
|
2521
2560
|
created_at: e.string().optional()
|
|
2522
|
-
}),
|
|
2561
|
+
}), vi = e.array(_i), yi = e.object({
|
|
2523
2562
|
user_id: e.string(),
|
|
2524
2563
|
resource_server_identifier: e.string(),
|
|
2525
2564
|
resource_server_name: e.string(),
|
|
@@ -2527,65 +2566,65 @@ var Dr = e.object({
|
|
|
2527
2566
|
description: e.string().nullable().optional(),
|
|
2528
2567
|
created_at: e.string().optional(),
|
|
2529
2568
|
organization_id: e.string().optional()
|
|
2530
|
-
}),
|
|
2569
|
+
}), bi = e.array(yi), xi = e.object({
|
|
2531
2570
|
user_id: e.string(),
|
|
2532
2571
|
role_id: e.string(),
|
|
2533
2572
|
organization_id: e.string().optional()
|
|
2534
|
-
}),
|
|
2573
|
+
}), Si = xi.extend({
|
|
2535
2574
|
tenant_id: e.string(),
|
|
2536
2575
|
created_at: e.string().optional()
|
|
2537
|
-
}),
|
|
2576
|
+
}), Ci = e.array(Si), wi = e.object({
|
|
2538
2577
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2539
2578
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2540
2579
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2541
2580
|
is_system: e.boolean().optional(),
|
|
2542
2581
|
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." })
|
|
2543
|
-
}),
|
|
2582
|
+
}), Ti = wi.extend({
|
|
2544
2583
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2545
2584
|
created_at: e.string().optional(),
|
|
2546
2585
|
updated_at: e.string().optional()
|
|
2547
|
-
}),
|
|
2586
|
+
}), Ei = e.array(Ti), Di = e.object({
|
|
2548
2587
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2549
2588
|
colors: e.object({
|
|
2550
2589
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2551
2590
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2552
2591
|
}).optional()
|
|
2553
|
-
}).optional(),
|
|
2592
|
+
}).optional(), Oi = e.object({
|
|
2554
2593
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2555
2594
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2556
2595
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2557
2596
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2558
|
-
}),
|
|
2597
|
+
}), ki = e.object({ client_credentials: e.object({
|
|
2559
2598
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2560
2599
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2561
2600
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2562
|
-
}).optional() }).optional(),
|
|
2601
|
+
}).optional() }).optional(), Ai = e.object({
|
|
2563
2602
|
id: e.string().optional(),
|
|
2564
2603
|
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." }),
|
|
2565
2604
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2566
|
-
branding:
|
|
2605
|
+
branding: Di,
|
|
2567
2606
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2568
|
-
enabled_connections: e.array(
|
|
2569
|
-
token_quota:
|
|
2570
|
-
}),
|
|
2607
|
+
enabled_connections: e.array(Oi).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2608
|
+
token_quota: ki
|
|
2609
|
+
}), ji = Ai.extend(t.shape).extend({
|
|
2571
2610
|
id: e.string(),
|
|
2572
2611
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2573
|
-
}),
|
|
2612
|
+
}), Mi = e.object({
|
|
2574
2613
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2575
2614
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2576
2615
|
show_as_button: e.boolean().optional().default(!0),
|
|
2577
2616
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2578
|
-
}),
|
|
2617
|
+
}), Ni = Mi.extend({
|
|
2579
2618
|
connection: e.object({
|
|
2580
2619
|
name: e.string().optional(),
|
|
2581
2620
|
strategy: e.string().optional()
|
|
2582
2621
|
}).optional(),
|
|
2583
2622
|
created_at: e.string().optional(),
|
|
2584
2623
|
updated_at: e.string().optional()
|
|
2585
|
-
}),
|
|
2624
|
+
}), Pi = e.array(Ni), Fi = e.object({
|
|
2586
2625
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2587
2626
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2588
|
-
}),
|
|
2627
|
+
}), Ii = Fi.extend(t.shape).extend({ id: e.string() }), Li = e.object({
|
|
2589
2628
|
idle_session_lifetime: e.number().default(72),
|
|
2590
2629
|
session_lifetime: e.number().default(168),
|
|
2591
2630
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2664,7 +2703,7 @@ var Dr = e.object({
|
|
|
2664
2703
|
}).optional(),
|
|
2665
2704
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2666
2705
|
}).optional()
|
|
2667
|
-
}),
|
|
2706
|
+
}), Ri = e.object({
|
|
2668
2707
|
date: e.string().openapi({
|
|
2669
2708
|
description: "Date these events occurred in ISO 8601 format",
|
|
2670
2709
|
example: "2025-12-19"
|
|
@@ -2689,10 +2728,10 @@ var Dr = e.object({
|
|
|
2689
2728
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2690
2729
|
example: "2025-12-19T00:00:00.000Z"
|
|
2691
2730
|
})
|
|
2692
|
-
}),
|
|
2731
|
+
}), zi = e.number().openapi({
|
|
2693
2732
|
description: "Number of active users in the last 30 days",
|
|
2694
2733
|
example: 1234
|
|
2695
|
-
}),
|
|
2734
|
+
}), Bi = e.enum([
|
|
2696
2735
|
"active-users",
|
|
2697
2736
|
"logins",
|
|
2698
2737
|
"signups",
|
|
@@ -2704,64 +2743,64 @@ var Dr = e.object({
|
|
|
2704
2743
|
"mfa",
|
|
2705
2744
|
"email-verifications",
|
|
2706
2745
|
"codes-sent"
|
|
2707
|
-
]),
|
|
2746
|
+
]), Vi = e.enum([
|
|
2708
2747
|
"hour",
|
|
2709
2748
|
"day",
|
|
2710
2749
|
"week",
|
|
2711
2750
|
"month"
|
|
2712
|
-
]),
|
|
2751
|
+
]), Hi = e.enum([
|
|
2713
2752
|
"time",
|
|
2714
2753
|
"connection",
|
|
2715
2754
|
"client_id",
|
|
2716
2755
|
"user_type",
|
|
2717
2756
|
"event"
|
|
2718
|
-
]),
|
|
2757
|
+
]), Ui = e.enum([
|
|
2719
2758
|
"password",
|
|
2720
2759
|
"social",
|
|
2721
2760
|
"passwordless",
|
|
2722
2761
|
"enterprise"
|
|
2723
|
-
]),
|
|
2762
|
+
]), Wi = e.object({
|
|
2724
2763
|
cohort: e.string(),
|
|
2725
2764
|
sessions: e.number(),
|
|
2726
2765
|
active: e.array(e.number())
|
|
2727
|
-
}),
|
|
2766
|
+
}), Gi = e.object({
|
|
2728
2767
|
interval: e.literal("week"),
|
|
2729
2768
|
from: e.string(),
|
|
2730
2769
|
to: e.string(),
|
|
2731
|
-
cohorts: e.array(
|
|
2732
|
-
}),
|
|
2770
|
+
cohorts: e.array(Wi)
|
|
2771
|
+
}), Ki = e.object({
|
|
2733
2772
|
cohort: e.string(),
|
|
2734
2773
|
tokens: e.number(),
|
|
2735
2774
|
active: e.array(e.number())
|
|
2736
|
-
}),
|
|
2775
|
+
}), qi = e.object({
|
|
2737
2776
|
interval: e.literal("week"),
|
|
2738
2777
|
from: e.string(),
|
|
2739
2778
|
to: e.string(),
|
|
2740
|
-
cohorts: e.array(
|
|
2741
|
-
}),
|
|
2779
|
+
cohorts: e.array(Ki)
|
|
2780
|
+
}), Ji = e.object({
|
|
2742
2781
|
name: e.string(),
|
|
2743
2782
|
type: e.string()
|
|
2744
|
-
}),
|
|
2783
|
+
}), Yi = e.object({
|
|
2745
2784
|
elapsed: e.number(),
|
|
2746
2785
|
rows_read: e.number().optional(),
|
|
2747
2786
|
bytes_read: e.number().optional()
|
|
2748
|
-
}),
|
|
2749
|
-
meta: e.array(
|
|
2787
|
+
}), Xi = e.object({
|
|
2788
|
+
meta: e.array(Ji),
|
|
2750
2789
|
data: e.array(e.record(e.string(), e.any())),
|
|
2751
2790
|
rows: e.number(),
|
|
2752
2791
|
rows_before_limit_at_least: e.number().optional(),
|
|
2753
|
-
statistics:
|
|
2754
|
-
}),
|
|
2792
|
+
statistics: Yi.optional()
|
|
2793
|
+
}), 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(".")), Qi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2755
2794
|
type: "object",
|
|
2756
2795
|
additionalProperties: {
|
|
2757
2796
|
type: "object",
|
|
2758
2797
|
additionalProperties: { type: "string" }
|
|
2759
2798
|
}
|
|
2760
|
-
}),
|
|
2761
|
-
prompt:
|
|
2799
|
+
}), $i = e.object({
|
|
2800
|
+
prompt: Zi,
|
|
2762
2801
|
language: e.string(),
|
|
2763
|
-
custom_text:
|
|
2764
|
-
}),
|
|
2802
|
+
custom_text: Qi
|
|
2803
|
+
}), ea = {
|
|
2765
2804
|
EMAIL: "email",
|
|
2766
2805
|
SMS: "sms",
|
|
2767
2806
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2777,17 +2816,17 @@ var Dr = e.object({
|
|
|
2777
2816
|
WAAD: "waad",
|
|
2778
2817
|
ADFS: "adfs",
|
|
2779
2818
|
OKTA: "okta"
|
|
2780
|
-
},
|
|
2819
|
+
}, ta = {
|
|
2781
2820
|
DATABASE: "database",
|
|
2782
2821
|
SOCIAL: "social",
|
|
2783
2822
|
PASSWORDLESS: "passwordless"
|
|
2784
|
-
},
|
|
2785
|
-
function
|
|
2786
|
-
return e === "auth0" || e ===
|
|
2823
|
+
}, na = "auth0";
|
|
2824
|
+
function ra(e) {
|
|
2825
|
+
return e === "auth0" || e === ea.USERNAME_PASSWORD || e === "auth2";
|
|
2787
2826
|
}
|
|
2788
2827
|
//#endregion
|
|
2789
2828
|
//#region src/types/AuthenticationMethod.ts
|
|
2790
|
-
var
|
|
2829
|
+
var ia = e.enum([
|
|
2791
2830
|
"phone",
|
|
2792
2831
|
"totp",
|
|
2793
2832
|
"email",
|
|
@@ -2795,9 +2834,9 @@ var Qi = e.enum([
|
|
|
2795
2834
|
"webauthn-roaming",
|
|
2796
2835
|
"webauthn-platform",
|
|
2797
2836
|
"passkey"
|
|
2798
|
-
]),
|
|
2837
|
+
]), aa = e.object({
|
|
2799
2838
|
user_id: e.string(),
|
|
2800
|
-
type:
|
|
2839
|
+
type: ia,
|
|
2801
2840
|
phone_number: e.string().optional(),
|
|
2802
2841
|
totp_secret: e.string().optional(),
|
|
2803
2842
|
credential_id: e.string().optional(),
|
|
@@ -2808,7 +2847,7 @@ var Qi = e.enum([
|
|
|
2808
2847
|
friendly_name: e.string().optional(),
|
|
2809
2848
|
confirmed: e.boolean().default(!1)
|
|
2810
2849
|
});
|
|
2811
|
-
function
|
|
2850
|
+
function oa(t, n) {
|
|
2812
2851
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2813
2852
|
code: e.ZodIssueCode.custom,
|
|
2814
2853
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2831,15 +2870,15 @@ function ea(t, n) {
|
|
|
2831
2870
|
path: ["public_key"]
|
|
2832
2871
|
}));
|
|
2833
2872
|
}
|
|
2834
|
-
var
|
|
2873
|
+
var sa = aa.superRefine(oa), ca = aa.extend({
|
|
2835
2874
|
id: e.string(),
|
|
2836
2875
|
created_at: e.string(),
|
|
2837
2876
|
updated_at: e.string()
|
|
2838
|
-
}).superRefine(
|
|
2877
|
+
}).superRefine(oa), la = e.object({
|
|
2839
2878
|
id: e.string().optional(),
|
|
2840
2879
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2841
2880
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2842
|
-
}),
|
|
2881
|
+
}), ua = {
|
|
2843
2882
|
"post-user-login": {
|
|
2844
2883
|
accessToken: ["setCustomClaim"],
|
|
2845
2884
|
idToken: ["setCustomClaim"],
|
|
@@ -2861,7 +2900,7 @@ var ta = $i.superRefine(ea), na = $i.extend({
|
|
|
2861
2900
|
};
|
|
2862
2901
|
//#endregion
|
|
2863
2902
|
//#region src/utils/user-id.ts
|
|
2864
|
-
function
|
|
2903
|
+
function da(e) {
|
|
2865
2904
|
let t = e.indexOf("|"), n = e.slice(0, t), r = e.slice(t + 1);
|
|
2866
2905
|
if (t === -1 || !n || !r) throw Error(`Invalid user_id: ${e}`);
|
|
2867
2906
|
return {
|
|
@@ -2871,10 +2910,10 @@ function aa(e) {
|
|
|
2871
2910
|
}
|
|
2872
2911
|
//#endregion
|
|
2873
2912
|
//#region src/utils/http.ts
|
|
2874
|
-
var
|
|
2913
|
+
var fa = "x-authhero-preserve-location";
|
|
2875
2914
|
//#endregion
|
|
2876
2915
|
//#region src/utils/passthrough.ts
|
|
2877
|
-
function
|
|
2916
|
+
function pa(e) {
|
|
2878
2917
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2879
2918
|
"create",
|
|
2880
2919
|
"rawCreate",
|
|
@@ -2908,12 +2947,12 @@ function sa(e) {
|
|
|
2908
2947
|
} : i.bind(e) : i;
|
|
2909
2948
|
} });
|
|
2910
2949
|
}
|
|
2911
|
-
function
|
|
2950
|
+
function ma(e) {
|
|
2912
2951
|
return e;
|
|
2913
2952
|
}
|
|
2914
2953
|
//#endregion
|
|
2915
2954
|
//#region src/utils/connection-attributes.ts
|
|
2916
|
-
function
|
|
2955
|
+
function ha(e) {
|
|
2917
2956
|
let t = e?.options;
|
|
2918
2957
|
if (!t) return {
|
|
2919
2958
|
usernameIdentifierActive: !1,
|
|
@@ -2936,35 +2975,35 @@ function la(e) {
|
|
|
2936
2975
|
}
|
|
2937
2976
|
//#endregion
|
|
2938
2977
|
//#region src/utils/guards.ts
|
|
2939
|
-
function
|
|
2978
|
+
function ga(e) {
|
|
2940
2979
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2941
2980
|
}
|
|
2942
2981
|
//#endregion
|
|
2943
2982
|
//#region src/utils/base64url.ts
|
|
2944
|
-
function
|
|
2983
|
+
function _a(e) {
|
|
2945
2984
|
let t = "";
|
|
2946
2985
|
for (let n of e) t += String.fromCharCode(n);
|
|
2947
2986
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2948
2987
|
}
|
|
2949
|
-
function
|
|
2988
|
+
function va(e) {
|
|
2950
2989
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2951
2990
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2952
2991
|
return r;
|
|
2953
2992
|
}
|
|
2954
|
-
function
|
|
2955
|
-
return
|
|
2993
|
+
function ya(e) {
|
|
2994
|
+
return _a(new TextEncoder().encode(e));
|
|
2956
2995
|
}
|
|
2957
|
-
function
|
|
2958
|
-
return new TextDecoder().decode(
|
|
2996
|
+
function ba(e) {
|
|
2997
|
+
return new TextDecoder().decode(va(e));
|
|
2959
2998
|
}
|
|
2960
2999
|
//#endregion
|
|
2961
3000
|
//#region src/utils/base64.ts
|
|
2962
|
-
function
|
|
3001
|
+
function xa(e) {
|
|
2963
3002
|
let t = "";
|
|
2964
3003
|
for (let n of e) t += String.fromCharCode(n);
|
|
2965
3004
|
return btoa(t);
|
|
2966
3005
|
}
|
|
2967
|
-
function
|
|
3006
|
+
function Sa(e) {
|
|
2968
3007
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2969
3008
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2970
3009
|
return n;
|
|
@@ -2972,12 +3011,12 @@ function ga(e) {
|
|
|
2972
3011
|
//#endregion
|
|
2973
3012
|
//#region src/utils/base32.ts
|
|
2974
3013
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2975
|
-
function
|
|
3014
|
+
function Ca(e) {
|
|
2976
3015
|
let t = "", n = 0, r = 0;
|
|
2977
3016
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
|
|
2978
3017
|
return r > 0 && (t += X[n << 5 - r & 31]), t;
|
|
2979
3018
|
}
|
|
2980
|
-
function
|
|
3019
|
+
function wa(e) {
|
|
2981
3020
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2982
3021
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2983
3022
|
let r = [], i = 0, a = 0;
|
|
@@ -2991,19 +3030,19 @@ function va(e) {
|
|
|
2991
3030
|
}
|
|
2992
3031
|
//#endregion
|
|
2993
3032
|
//#region src/utils/hex.ts
|
|
2994
|
-
function
|
|
3033
|
+
function Ta(e) {
|
|
2995
3034
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2996
3035
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2997
3036
|
return n;
|
|
2998
3037
|
}
|
|
2999
3038
|
//#endregion
|
|
3000
3039
|
//#region src/utils/cursor.ts
|
|
3001
|
-
function
|
|
3002
|
-
return
|
|
3040
|
+
function Ea(e) {
|
|
3041
|
+
return ya(JSON.stringify(e));
|
|
3003
3042
|
}
|
|
3004
|
-
function
|
|
3043
|
+
function Da(e) {
|
|
3005
3044
|
try {
|
|
3006
|
-
let t = JSON.parse(
|
|
3045
|
+
let t = JSON.parse(ba(e));
|
|
3007
3046
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
3008
3047
|
} catch {
|
|
3009
3048
|
return null;
|
|
@@ -3011,7 +3050,7 @@ function xa(e) {
|
|
|
3011
3050
|
}
|
|
3012
3051
|
//#endregion
|
|
3013
3052
|
//#region src/utils/lucene.ts
|
|
3014
|
-
function
|
|
3053
|
+
function Oa(e) {
|
|
3015
3054
|
let t = [], n = "", r = !1;
|
|
3016
3055
|
for (let i = 0; i < e.length; i++) {
|
|
3017
3056
|
let a = e[i];
|
|
@@ -3019,53 +3058,53 @@ function Sa(e) {
|
|
|
3019
3058
|
}
|
|
3020
3059
|
return n.trim() && t.push(n.trim()), t;
|
|
3021
3060
|
}
|
|
3022
|
-
function
|
|
3061
|
+
function ka(e) {
|
|
3023
3062
|
return e.replace(/\\([\\"+\-!(){}[\]^~*?:/&|])/g, "$1");
|
|
3024
3063
|
}
|
|
3025
|
-
function
|
|
3064
|
+
function Aa(e) {
|
|
3026
3065
|
return `"${e.replace(/([\\"])/g, "\\$1")}"`;
|
|
3027
3066
|
}
|
|
3028
|
-
function
|
|
3067
|
+
function ja(e) {
|
|
3029
3068
|
let t = e.trim();
|
|
3030
|
-
return
|
|
3069
|
+
return ka(t.length > 1 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t);
|
|
3031
3070
|
}
|
|
3032
|
-
function
|
|
3071
|
+
function Ma(e) {
|
|
3033
3072
|
let t = [], n = [];
|
|
3034
|
-
for (let r of
|
|
3073
|
+
for (let r of Oa(e)) /^or$/i.test(r) ? (t.push(n), n = []) : n.push(r);
|
|
3035
3074
|
return t.push(n), t.filter((e) => e.length > 0);
|
|
3036
3075
|
}
|
|
3037
|
-
function
|
|
3076
|
+
function Na(e, t) {
|
|
3038
3077
|
let n = new Set(t), r = (e) => {
|
|
3039
3078
|
let t = e.replace(/^([^:]+)=/, "$1:"), r = t.startsWith("-") ? t.slice(1) : t;
|
|
3040
3079
|
if (r.startsWith("_exists_:")) return n.has(r.slice(9));
|
|
3041
3080
|
let i = r.indexOf(":");
|
|
3042
3081
|
return i > 0 ? n.has(r.slice(0, i)) : !0;
|
|
3043
3082
|
};
|
|
3044
|
-
return
|
|
3083
|
+
return Ma(e).map((e) => e.filter(r).join(" ")).filter((e) => e.length > 0).join(" OR ");
|
|
3045
3084
|
}
|
|
3046
|
-
var
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3085
|
+
var Pa = /^[^\s@%_*?"'()[\]{}^~:\\/]+@[^\s@%_*?"'()[\]{}^~:\\/]+\.[^\s@%_*?"'()[\]{}^~:\\/]+$/;
|
|
3086
|
+
function Fa(e) {
|
|
3087
|
+
return Pa.test(e);
|
|
3049
3088
|
}
|
|
3050
3089
|
//#endregion
|
|
3051
3090
|
//#region src/utils/session-retention.ts
|
|
3052
3091
|
var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
|
|
3053
|
-
function
|
|
3092
|
+
function Ia(e) {
|
|
3054
3093
|
return Math.floor((e + Q) / Z);
|
|
3055
3094
|
}
|
|
3056
3095
|
function $(e) {
|
|
3057
3096
|
return e * Z - Q;
|
|
3058
3097
|
}
|
|
3059
|
-
function
|
|
3060
|
-
let n =
|
|
3098
|
+
function La(e, t = Date.now()) {
|
|
3099
|
+
let n = Ia(t), r = n - e + 1;
|
|
3061
3100
|
return {
|
|
3062
3101
|
currentWeek: n,
|
|
3063
3102
|
firstWeek: r,
|
|
3064
3103
|
sinceMs: $(r)
|
|
3065
3104
|
};
|
|
3066
3105
|
}
|
|
3067
|
-
function
|
|
3068
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3106
|
+
function Ra(e, t, n = Date.now()) {
|
|
3107
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = La(t, n), o = /* @__PURE__ */ new Map();
|
|
3069
3108
|
for (let t of e) {
|
|
3070
3109
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3071
3110
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3088,8 +3127,8 @@ function Ma(e, t, n = Date.now()) {
|
|
|
3088
3127
|
cohorts: s
|
|
3089
3128
|
};
|
|
3090
3129
|
}
|
|
3091
|
-
function
|
|
3092
|
-
let r =
|
|
3130
|
+
function za(e, t, n = Date.now()) {
|
|
3131
|
+
let r = Ra(e, t, n);
|
|
3093
3132
|
return {
|
|
3094
3133
|
interval: r.interval,
|
|
3095
3134
|
from: r.from,
|
|
@@ -3103,16 +3142,16 @@ function Na(e, t, n = Date.now()) {
|
|
|
3103
3142
|
}
|
|
3104
3143
|
//#endregion
|
|
3105
3144
|
//#region src/utils/username-validation.ts
|
|
3106
|
-
var
|
|
3107
|
-
function
|
|
3108
|
-
return
|
|
3145
|
+
var Ba = /^[A-Za-z0-9_+\-.!#$'^`~]+$/, Va = "Username can only contain alphanumeric characters and the following characters: '_', '+', '-', '.', '!', '#', '$', \"'\", '^', '`', '~'", Ha = "Usernames must not contain \"@\". Use the email field for email addresses.";
|
|
3146
|
+
function Ua(e) {
|
|
3147
|
+
return Ba.test(e);
|
|
3109
3148
|
}
|
|
3110
|
-
function
|
|
3149
|
+
function Wa(e) {
|
|
3111
3150
|
return e.toLowerCase();
|
|
3112
3151
|
}
|
|
3113
|
-
function
|
|
3114
|
-
if (e.includes("@")) return
|
|
3115
|
-
if (!
|
|
3152
|
+
function Ga(e, t) {
|
|
3153
|
+
if (e.includes("@")) return Ha;
|
|
3154
|
+
if (!Ua(e)) return Va;
|
|
3116
3155
|
if (t) {
|
|
3117
3156
|
let n = [...e].length;
|
|
3118
3157
|
if (n < t.min) return `Username must be at least ${t.min} characters`;
|
|
@@ -3122,15 +3161,15 @@ function za(e, t) {
|
|
|
3122
3161
|
}
|
|
3123
3162
|
//#endregion
|
|
3124
3163
|
//#region src/utils/feature-not-supported.ts
|
|
3125
|
-
var
|
|
3164
|
+
var Ka = class extends Error {
|
|
3126
3165
|
feature;
|
|
3127
3166
|
adapter;
|
|
3128
3167
|
constructor(e, t, n) {
|
|
3129
3168
|
super(`${e} is not supported by the ${t} adapter.` + (n ? ` ${n}` : "")), this.name = "FeatureNotSupportedError", this.feature = e, this.adapter = t;
|
|
3130
3169
|
}
|
|
3131
3170
|
};
|
|
3132
|
-
function
|
|
3171
|
+
function qa(e) {
|
|
3133
3172
|
return e instanceof Error && e.name === "FeatureNotSupportedError";
|
|
3134
3173
|
}
|
|
3135
3174
|
//#endregion
|
|
3136
|
-
export { be as Auth0ActionEnum,
|
|
3175
|
+
export { be as Auth0ActionEnum, Hn as Auth0Client, E as AuthorizationResponseMode, T as AuthorizationResponseType, tt as CodeChallengeMethod, C as ComponentCategory, S as ComponentType, na as DATABASE_CONNECTION_STRATEGY, xe as EmailActionEnum, Yt as FORM_FIELD_TYPES, Ka as FeatureNotSupportedError, ye as FlowActionTypeEnum, jr as GrantType, hr as KNOWN_TENANT_OPERATION_ENGINES, Un as LocationInfo, G as LogTypes, U as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Ge as NodeType, fa as PRESERVE_LOCATION_HEADER, Te as RedirectTargetEnum, ea as Strategy, ta as StrategyType, Sr as TERMINAL_TENANT_OPERATION_ROW_STATUSES, ua as TRIGGER_API_SHAPES, Ha as USERNAME_CONTAINS_AT_MESSAGE, Va as USERNAME_INVALID_CHARACTERS_MESSAGE, Z as WEEK_MS, r as actionDependencySchema, ne as actionExecutionErrorSchema, se as actionExecutionInsertSchema, ie as actionExecutionLogEntrySchema, ae as actionExecutionLogsSchema, re as actionExecutionResultSchema, oe as actionExecutionSchema, te as actionExecutionStatusSchema, l as actionExecutionTriggerIdSchema, a as actionInsertSchema, Je as actionNodeSchema, ee as actionResponseSchema, s as actionSchema, c as actionSecretNameSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, ce as actionVersionInsertSchema, le as actionVersionSchema, zi as activeUsersResponseSchema, de as actorSchema, f as addressSchema, dn as allowedTriggersForHook, Ji as analyticsColumnMetaSchema, Hi as analyticsGroupBySchema, Vi as analyticsIntervalSchema, Xi as analyticsQueryResponseSchema, Bi as analyticsResourceSchema, Yi as analyticsStatisticsSchema, Ui as analyticsUserTypeSchema, rr as attackProtectionSchema, ue as auditCategorySchema, _e as auditEventInsertSchema, ve as auditEventSchema, ge as auth0ClientSchema, et as auth0FlowInsertSchema, $e as auth0FlowSchema, Ae as auth0QuerySchema, Ce as auth0UpdateUserActionSchema, Me as auth0UserResponseSchema, it as authParamsSchema, sa as authenticationMethodInsertSchema, ca as authenticationMethodSchema, ia as authenticationMethodTypeSchema, p as baseUserSchema, Kt as blockComponentSchema, Nr as bordersSchema, at as brandingSchema, er as breachedPasswordDetectionSchema, tr as bruteForceProtectionSchema, za as buildRefreshTokenRetention, Ra as buildSessionRetention, Be as buttonComponentSchema, rt as claimsRequestSchema, _ as clientGrantInsertSchema, Le as clientGrantListSchema, v as clientGrantSchema, g as clientInsertSchema, b as clientRegistrationTokenInsertSchema, Re as clientRegistrationTokenSchema, y as clientRegistrationTokenTypeSchema, Ie as clientSchema, st as codeInsertSchema, ct as codeSchema, ot as codeTypeSchema, Pr as colorsSchema, rn as componentMessageSchema, We as componentSchema, ut as connectionInsertSchema, lt as connectionOptionsSchema, dt as connectionSchema, x as coordinatesSchema, pa as createPassthroughAdapter, ma as createWriteOnlyAdapter, gt as customDomainCertificateUploadSchema, O as customDomainInsertSchema, pt as customDomainSchema, mt as customDomainUpdateSchema, ht as customDomainWithTenantIdSchema, $i as customTextEntrySchema, Qi as customTextSchema, Ri as dailyStatsSchema, wa as decodeBase32, Sa as decodeBase64, va as decodeBase64Url, ba as decodeBase64UrlString, Da as decodeCursor, Qr as emailProviderSchema, $r as emailTemplateNameSchema, ei as emailTemplateSchema, Se as emailVerificationRulesSchema, we as emailVerifyActionSchema, Ca as encodeBase32, xa as encodeBase64, _a as encodeBase64Url, ya as encodeBase64UrlString, Ea as encodeCursor, Ta as encodeHex, Qe as endingSchema, Aa as escapeLuceneValue, Jt as fieldComponentSchema, De as flowActionStepSchema, Oe as flowInsertSchema, ke as flowSchema, He as flowsFieldComponentSchema, qe as flowsFlowNodeSchema, Ke as flowsStepNodeSchema, J as fontDetailsSchema, Fr as fontsSchema, Xt as formControlSchema, tn as formInsertSchema, N as formNodeComponentDefinition, en as formNodeSchema, nn as formSchema, Ue as genericComponentSchema, Ye as genericNodeSchema, ha as getConnectionIdentifierConfig, Vn as getLogTypeCategory, Bn as getLogTypeDescription, pi as grantInsertSchema, mi as grantSchema, Hr as handlerConfigSchema, Tn as hookCodeInsertSchema, En as hookCodeSchema, vn as hookInsertSchema, B as hookPageId, wn as hookSchema, V as hookTemplateId, fn as hookTemplates, d as identitySchema, la as importMetadataSchema, kn as inviteInsertSchema, An as inviteSchema, On as inviteeSchema, Dn as inviterSchema, sn as isBlockComponent, ra as isDatabaseConnectionStrategy, Fa as isEmailSearchTerm, qa as isFeatureNotSupportedError, ln as isFieldComponent, ga as isPlainObject, cn as isWidgetComponent, Mn as jwksKeySchema, jn as jwksSchema, Ve as legalComponentSchema, he as locationInfoSchema, Wn as logInsertSchema, Gn as logSchema, qn as logStreamFilterSchema, Jn as logStreamInsertSchema, Yn as logStreamSchema, K as logStreamStatusSchema, Kn as logStreamTypeSchema, zn as logTypeCategories, Rn as logTypeDescriptions, W as loginSessionAuthStrategySchema, Fn as loginSessionInsertSchema, In as loginSessionSchema, Pn as loginSessionStateSchema, Vr as matchSchema, Xn as migrationProviderTypeSchema, Zn as migrationSourceCredentialsSchema, Qn as migrationSourceInsertSchema, $n as migrationSourceSchema, Xe as nodeSchema, Wa as normalizeUsername, Nn as openIDConfigurationSchema, Di as organizationBrandingSchema, Mi as organizationConnectionInsertSchema, Pi as organizationConnectionListSchema, Ni as organizationConnectionSchema, Oi as organizationEnabledConnectionSchema, Ai as organizationInsertSchema, ji as organizationSchema, ki as organizationTokenQuotaSchema, Ir as pageBackgroundSchema, da as parseUserId, ir as passwordInsertSchema, ar as passwordSchema, u as profileDataSchema, Zi as promptScreenSchema, Br as promptSettingSchema, Y as proxyRouteInsertSchema, Ur as proxyRouteSchema, Wr as proxyRouteUpdateSchema, Ee as redirectActionSchema, ti as refreshTokenInsertSchema, Ki as refreshTokenRetentionCohortSchema, qi as refreshTokenRetentionResponseSchema, ni as refreshTokenSchema, pe as requestContextSchema, si as resourceServerInsertSchema, li as resourceServerListSchema, oi as resourceServerOptionsSchema, ci as resourceServerSchema, ai as resourceServerScopeSchema, me as responseContextSchema, ze as richTextComponentSchema, wi as roleInsertSchema, Ei as roleListSchema, ui as rolePermissionInsertSchema, fi as rolePermissionListSchema, di as rolePermissionSchema, Ti as roleSchema, Or as rolloutInsertSchema, Er as rolloutKindSchema, kr as rolloutSchema, Dr as rolloutStatusSchema, Ar as rolloutUpdateSchema, Na as sanitizeLuceneQuery, Kr as scimConfigurationInsertSchema, qr as scimConfigurationSchema, Xr as scimExternalIdInsertSchema, Zr as scimExternalIdSchema, Gr as scimMappingEntrySchema, Jr as scimTokenInsertSchema, Yr as scimTokenSchema, an as screenLinkSchema, sr as sessionInsertSchema, Wi as sessionRetentionCohortSchema, Gi as sessionRetentionResponseSchema, La as sessionRetentionWindow, cr as sessionSchema, lr as signingKeySchema, ii as smsProviderSchema, ri as smsSendParamsSchema, Ma as splitLuceneOrGroups, Ze as startSchema, nr as suspiciousIpThrottlingSchema, fe as targetSchema, ur as tenantInsertSchema, mr as tenantOperationEngineSchema, br as tenantOperationEventInsertSchema, yr as tenantOperationEventOutcomeSchema, xr as tenantOperationEventSchema, gr as tenantOperationInsertSchema, fr as tenantOperationKindSchema, Cr as tenantOperationRowInsertSchema, Tr as tenantOperationRowOutcomeSchema, wr as tenantOperationRowSchema, q as tenantOperationRowStatusSchema, _r as tenantOperationSchema, pr as tenantOperationStatusSchema, vr as tenantOperationUpdateSchema, dr as tenantSchema, Li as tenantSettingsSchema, Rr as themeInsertSchema, zr as themeSchema, Mr as tokenResponseSchema, Oa as tokenizeLuceneQuery, je as totalsSchema, on as uiScreenSchema, ka as unescapeLuceneValue, ja as unquoteLuceneValue, hi as userActivitySchema, m as userInsertSchema, Fi as userOrganizationInsertSchema, Ii as userOrganizationSchema, gi as userPermissionInsertSchema, vi as userPermissionListSchema, _i as userPermissionSchema, bi as userPermissionWithDetailsListSchema, yi as userPermissionWithDetailsSchema, Ne as userResponseSchema, xi as userRoleInsertSchema, Ci as userRoleListSchema, Si as userRoleSchema, h as userSchema, Ua as usernameHasOnlyAllowedCharacters, Ga as validateUsername, ft as verificationMethodsSchema, Ia as weekIndex, $ as weekStartMs, qt as widgetComponentSchema, Lr as widgetSchema };
|