@authhero/adapter-interfaces 4.8.1 → 4.9.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 +54 -3
- package/dist/adapter-interfaces.mjs +428 -420
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/RefreshTokens.d.ts +27 -1
- package/dist/types/types/RefreshTokens.d.ts +14 -0
- package/dist/types/utils/lucene.d.ts +1 -0
- package/dist/types/utils/user-id.d.ts +10 -0
- package/package.json +1 -1
|
@@ -236,7 +236,7 @@ var t = e.object({
|
|
|
236
236
|
length: e.number(),
|
|
237
237
|
total: e.number().optional(),
|
|
238
238
|
next: e.string().optional()
|
|
239
|
-
}),
|
|
239
|
+
}), Oe = 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()), f = 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: Oe.optional()
|
|
262
|
+
}), p = 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(), m = 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: p
|
|
293
|
+
}), h = m.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
|
+
}), g = h.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(f).optional()
|
|
315
|
+
}), ke = g.omit({ registration_completed_at: !0 }), Ae = m.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()), je = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Me = (e = 21) => {
|
|
322
322
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
323
|
-
for (; e--;) t +=
|
|
323
|
+
for (; e--;) t += je[n[e] & 63];
|
|
324
324
|
return t;
|
|
325
|
-
},
|
|
325
|
+
}, _ = 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(() => Me()).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
|
+
}), Ne = e.object({
|
|
444
444
|
created_at: e.string(),
|
|
445
445
|
updated_at: e.string()
|
|
446
|
-
}).extend(
|
|
446
|
+
}).extend(_.shape).extend({ client_id: e.string() }), v = 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
|
+
}), y = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(v.shape).extend({
|
|
460
460
|
created_at: e.string().optional(),
|
|
461
461
|
updated_at: e.string().optional()
|
|
462
|
-
}),
|
|
462
|
+
}), Pe = e.array(y), b = e.enum(["iat", "rat"]), x = e.object({
|
|
463
463
|
id: e.string(),
|
|
464
464
|
token_hash: e.string(),
|
|
465
|
-
type:
|
|
465
|
+
type: b,
|
|
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
|
+
}), Fe = 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(x.shape), S = e.object({
|
|
476
476
|
x: e.number(),
|
|
477
477
|
y: e.number()
|
|
478
|
-
}),
|
|
478
|
+
}), C = /* @__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
|
+
}({}), w = /* @__PURE__ */ function(e) {
|
|
481
481
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
482
|
-
}({}),
|
|
482
|
+
}({}), T = e.object({
|
|
483
483
|
id: e.string(),
|
|
484
|
-
category: e.nativeEnum(
|
|
485
|
-
type: e.nativeEnum(
|
|
486
|
-
}),
|
|
484
|
+
category: e.nativeEnum(w),
|
|
485
|
+
type: e.nativeEnum(C)
|
|
486
|
+
}), E = T.extend({
|
|
487
487
|
category: e.literal("BLOCK"),
|
|
488
488
|
type: e.literal("RICH_TEXT"),
|
|
489
489
|
config: e.object({ content: e.string() }).passthrough()
|
|
490
|
-
}), Ie =
|
|
490
|
+
}), Ie = T.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
|
-
}), Le =
|
|
498
|
+
}), Le = T.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
|
-
}), Re =
|
|
504
|
+
}), Re = T.extend({
|
|
505
505
|
category: e.literal("FIELD"),
|
|
506
506
|
type: e.union([
|
|
507
507
|
e.literal("TEXT"),
|
|
@@ -526,7 +526,7 @@ var t = e.object({
|
|
|
526
526
|
category: e.string(),
|
|
527
527
|
type: e.string()
|
|
528
528
|
}).passthrough(), Be = e.union([
|
|
529
|
-
|
|
529
|
+
E,
|
|
530
530
|
Ie,
|
|
531
531
|
Le,
|
|
532
532
|
Re,
|
|
@@ -536,7 +536,7 @@ var t = e.object({
|
|
|
536
536
|
}({}), He = e.object({
|
|
537
537
|
id: e.string(),
|
|
538
538
|
type: e.literal("STEP"),
|
|
539
|
-
coordinates:
|
|
539
|
+
coordinates: S,
|
|
540
540
|
alias: e.string().optional(),
|
|
541
541
|
config: e.object({
|
|
542
542
|
components: e.array(Be),
|
|
@@ -545,7 +545,7 @@ var t = e.object({
|
|
|
545
545
|
}), Ue = e.object({
|
|
546
546
|
id: e.string(),
|
|
547
547
|
type: e.literal("FLOW"),
|
|
548
|
-
coordinates:
|
|
548
|
+
coordinates: S,
|
|
549
549
|
alias: e.string().optional(),
|
|
550
550
|
config: e.object({
|
|
551
551
|
flow_id: e.string(),
|
|
@@ -554,7 +554,7 @@ var t = e.object({
|
|
|
554
554
|
}), We = e.object({
|
|
555
555
|
id: e.string(),
|
|
556
556
|
type: e.literal("ACTION"),
|
|
557
|
-
coordinates:
|
|
557
|
+
coordinates: S,
|
|
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" }),
|
|
@@ -569,7 +569,7 @@ var t = e.object({
|
|
|
569
569
|
}), Ge = e.object({
|
|
570
570
|
id: e.string(),
|
|
571
571
|
type: e.string(),
|
|
572
|
-
coordinates:
|
|
572
|
+
coordinates: S
|
|
573
573
|
}).passthrough(), Ke = e.union([
|
|
574
574
|
He,
|
|
575
575
|
Ue,
|
|
@@ -577,10 +577,10 @@ var t = e.object({
|
|
|
577
577
|
Ge
|
|
578
578
|
]), qe = e.object({
|
|
579
579
|
next_node: e.string(),
|
|
580
|
-
coordinates:
|
|
580
|
+
coordinates: S
|
|
581
581
|
}).passthrough(), Je = e.object({
|
|
582
582
|
resume_flow: e.boolean().optional(),
|
|
583
|
-
coordinates:
|
|
583
|
+
coordinates: S
|
|
584
584
|
}).passthrough(), Ye = e.object({
|
|
585
585
|
id: e.string(),
|
|
586
586
|
name: e.string(),
|
|
@@ -1493,10 +1493,10 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1493
1493
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
1494
1494
|
}), An = /* @__PURE__ */ function(e) {
|
|
1495
1495
|
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1496
|
-
}({}), jn = e.nativeEnum(An),
|
|
1496
|
+
}({}), jn = e.nativeEnum(An), G = e.object({
|
|
1497
1497
|
strategy: e.string(),
|
|
1498
1498
|
strategy_type: e.string()
|
|
1499
|
-
}),
|
|
1499
|
+
}), Mn = e.object({
|
|
1500
1500
|
csrf_token: e.string(),
|
|
1501
1501
|
auth0Client: e.string().optional(),
|
|
1502
1502
|
authParams: et,
|
|
@@ -1511,13 +1511,13 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1511
1511
|
failure_reason: e.string().optional(),
|
|
1512
1512
|
user_id: e.string().optional(),
|
|
1513
1513
|
auth_connection: e.string().optional(),
|
|
1514
|
-
auth_strategy:
|
|
1514
|
+
auth_strategy: G.optional(),
|
|
1515
1515
|
authenticated_at: e.string().optional()
|
|
1516
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1516
|
+
}).openapi({ description: "This represents a login sesion" }), Nn = Mn.extend({
|
|
1517
1517
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1518
1518
|
created_at: e.string(),
|
|
1519
1519
|
updated_at: e.string()
|
|
1520
|
-
}),
|
|
1520
|
+
}), K = {
|
|
1521
1521
|
ACLS_SUMMARY: "acls_summary",
|
|
1522
1522
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1523
1523
|
API_LIMIT: "api_limit",
|
|
@@ -1677,190 +1677,190 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1677
1677
|
WARNING_DURING_LOGIN: "w",
|
|
1678
1678
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1679
1679
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1680
|
-
},
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
[
|
|
1696
|
-
[
|
|
1697
|
-
[
|
|
1698
|
-
[
|
|
1699
|
-
[
|
|
1700
|
-
[
|
|
1701
|
-
[
|
|
1702
|
-
[
|
|
1703
|
-
[
|
|
1704
|
-
[
|
|
1705
|
-
[
|
|
1706
|
-
[
|
|
1707
|
-
[
|
|
1708
|
-
[
|
|
1709
|
-
[
|
|
1710
|
-
[
|
|
1711
|
-
[
|
|
1712
|
-
[
|
|
1713
|
-
[
|
|
1714
|
-
[
|
|
1715
|
-
[
|
|
1716
|
-
[
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1724
|
-
[
|
|
1725
|
-
[
|
|
1726
|
-
[
|
|
1727
|
-
[
|
|
1728
|
-
[
|
|
1729
|
-
[
|
|
1730
|
-
[
|
|
1731
|
-
[
|
|
1732
|
-
[
|
|
1733
|
-
[
|
|
1734
|
-
[
|
|
1735
|
-
[
|
|
1736
|
-
[
|
|
1737
|
-
[
|
|
1738
|
-
[
|
|
1739
|
-
[
|
|
1740
|
-
[
|
|
1741
|
-
[
|
|
1742
|
-
[
|
|
1743
|
-
[
|
|
1744
|
-
[
|
|
1745
|
-
[
|
|
1746
|
-
[
|
|
1747
|
-
[
|
|
1748
|
-
[
|
|
1749
|
-
[
|
|
1750
|
-
[
|
|
1751
|
-
[
|
|
1752
|
-
[
|
|
1753
|
-
[
|
|
1754
|
-
[
|
|
1755
|
-
[
|
|
1756
|
-
[
|
|
1757
|
-
[
|
|
1758
|
-
[
|
|
1759
|
-
[
|
|
1760
|
-
[
|
|
1761
|
-
[
|
|
1762
|
-
[
|
|
1763
|
-
[
|
|
1764
|
-
[
|
|
1765
|
-
[
|
|
1766
|
-
[
|
|
1767
|
-
[
|
|
1768
|
-
[
|
|
1769
|
-
[
|
|
1770
|
-
[
|
|
1771
|
-
[
|
|
1772
|
-
[
|
|
1773
|
-
[
|
|
1774
|
-
[
|
|
1775
|
-
[
|
|
1776
|
-
[
|
|
1777
|
-
[
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1782
|
-
[
|
|
1783
|
-
[
|
|
1784
|
-
[
|
|
1785
|
-
[
|
|
1786
|
-
[
|
|
1787
|
-
[
|
|
1788
|
-
[
|
|
1789
|
-
[
|
|
1790
|
-
[
|
|
1791
|
-
[
|
|
1792
|
-
[
|
|
1793
|
-
[
|
|
1794
|
-
[
|
|
1795
|
-
[
|
|
1796
|
-
[
|
|
1797
|
-
[
|
|
1798
|
-
[
|
|
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
|
-
},
|
|
1680
|
+
}, Pn = e.string().refine((e) => Object.values(K).includes(e), { message: "Invalid log type" }), Fn = {
|
|
1681
|
+
[K.ACLS_SUMMARY]: "ACLs Summary",
|
|
1682
|
+
[K.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1683
|
+
[K.API_LIMIT]: "API Rate Limit Reached",
|
|
1684
|
+
[K.API_LIMIT_WARNING]: "API Rate Limit Warning",
|
|
1685
|
+
[K.APPI]: "API Operation",
|
|
1686
|
+
[K.CIBA_EXCHANGE_FAILED]: "CIBA Exchange Failed",
|
|
1687
|
+
[K.CIBA_EXCHANGE_SUCCEEDED]: "CIBA Exchange Succeeded",
|
|
1688
|
+
[K.CIBA_START_FAILED]: "CIBA Start Failed",
|
|
1689
|
+
[K.CIBA_START_SUCCEEDED]: "CIBA Start Succeeded",
|
|
1690
|
+
[K.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1691
|
+
[K.CODE_SENT]: "Code Sent",
|
|
1692
|
+
[K.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1693
|
+
[K.FAILED_LOGIN]: "Failed Login",
|
|
1694
|
+
[K.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1695
|
+
[K.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
1696
|
+
[K.FAILED_BY_CORS]: "Failed by CORS",
|
|
1697
|
+
[K.FAILED_CROSS_ORIGIN_AUTHENTICATION]: "Failed Cross Origin Authentication",
|
|
1698
|
+
[K.FAILED_CHANGE_PASSWORD]: "Failed Change Password",
|
|
1699
|
+
[K.FAILED_POST_CHANGE_PASSWORD_HOOK]: "Failed Post-Change Password Hook",
|
|
1700
|
+
[K.FAILED_CHANGE_PHONE_NUMBER]: "Failed Change Phone Number",
|
|
1701
|
+
[K.FAILED_CHANGE_PASSWORD_REQUEST]: "Failed Change Password Request",
|
|
1702
|
+
[K.FAILED_CONNECTOR_PROVISIONING]: "Failed Connector Provisioning",
|
|
1703
|
+
[K.FAILED_CHANGE_USERNAME]: "Failed Change Username",
|
|
1704
|
+
[K.FAILED_DELEGATION]: "Failed Delegation",
|
|
1705
|
+
[K.FAILED_DEVICE_ACTIVATION]: "Failed Device Activation",
|
|
1706
|
+
[K.FAILED_DEVICE_AUTHORIZATION_REQUEST]: "Failed Device Authorization Request",
|
|
1707
|
+
[K.USER_CANCELED_DEVICE_CONFIRMATION]: "User Canceled Device Confirmation",
|
|
1708
|
+
[K.FAILED_USER_DELETION]: "Failed User Deletion",
|
|
1709
|
+
[K.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Authorization Code for Access Token",
|
|
1710
|
+
[K.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Failed Exchange Access Token for Client Credentials",
|
|
1711
|
+
[K.FAILED_EXCHANGE_CUSTOM_TOKEN]: "Failed Exchange Custom Token",
|
|
1712
|
+
[K.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Device Code for Access Token",
|
|
1713
|
+
[K.FAILED_FEDERATED_LOGOUT]: "Failed Federated Logout",
|
|
1714
|
+
[K.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Failed Exchange Native Social Login",
|
|
1715
|
+
[K.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Failed Exchange Password OOB for Access Token",
|
|
1716
|
+
[K.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Password OTP for Access Token",
|
|
1717
|
+
[K.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Failed Exchange Password for Access Token",
|
|
1718
|
+
[K.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Passwordless OTP for Access Token",
|
|
1719
|
+
[K.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Failed Exchange Password MFA Recovery for Access Token",
|
|
1720
|
+
[K.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN]: "Failed Exchange Rotating Refresh Token",
|
|
1721
|
+
[K.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Refresh Token for Access Token",
|
|
1722
|
+
[K.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Subject Token for Access Token",
|
|
1723
|
+
[K.FAILED_HOOK]: "Failed Hook",
|
|
1724
|
+
[K.FAILED_IMPERSONATION]: "Failed Impersonation",
|
|
1725
|
+
[K.FAILED_INVITE_ACCEPT]: "Failed Invite Accept",
|
|
1726
|
+
[K.FAILED_LOGOUT]: "Failed Logout",
|
|
1727
|
+
[K.FLOWS_EXECUTION_COMPLETED]: "Flows Execution Completed",
|
|
1728
|
+
[K.FLOWS_EXECUTION_FAILED]: "Flows Execution Failed",
|
|
1729
|
+
[K.FAILED_SENDING_NOTIFICATION]: "Failed Sending Notification",
|
|
1730
|
+
[K.FORMS_SUBMISSION_FAILED]: "Forms Submission Failed",
|
|
1731
|
+
[K.FORMS_SUBMISSION_SUCCEEDED]: "Forms Submission Succeeded",
|
|
1732
|
+
[K.FAILED_LOGIN_INCORRECT_PASSWORD]: "Failed Login - Incorrect Password",
|
|
1733
|
+
[K.FAILED_PUSHED_AUTHORIZATION_REQUEST]: "Failed Pushed Authorization Request",
|
|
1734
|
+
[K.FAILED_POST_USER_REGISTRATION_HOOK]: "Failed Post-User Registration Hook",
|
|
1735
|
+
[K.FAILED_SIGNUP]: "Failed Signup",
|
|
1736
|
+
[K.FAILED_SILENT_AUTH]: "Failed Silent Auth",
|
|
1737
|
+
[K.FAILED_LOGIN_INVALID_EMAIL_USERNAME]: "Failed Login - Invalid Email/Username",
|
|
1738
|
+
[K.FAILED_USERS_IMPORT]: "Failed Users Import",
|
|
1739
|
+
[K.FAILED_VERIFICATION_EMAIL]: "Failed Verification Email",
|
|
1740
|
+
[K.FAILED_VERIFICATION_EMAIL_REQUEST]: "Failed Verification Email Request",
|
|
1741
|
+
[K.EMAIL_VERIFICATION_CONFIRMED]: "Email Verification Confirmed",
|
|
1742
|
+
[K.EMAIL_VERIFICATION_FAILED]: "Email Verification Failed",
|
|
1743
|
+
[K.MFA_AUTH_FAILED]: "MFA Auth Failed",
|
|
1744
|
+
[K.MFA_AUTH_REJECTED]: "MFA Auth Rejected",
|
|
1745
|
+
[K.MFA_AUTH_SUCCESS]: "MFA Auth Success",
|
|
1746
|
+
[K.MFA_ENROLLMENT_COMPLETE]: "MFA Enrollment Complete",
|
|
1747
|
+
[K.TOO_MANY_MFA_FAILURES]: "Too Many MFA Failures",
|
|
1748
|
+
[K.MFA_RECOVERY_FAILED]: "MFA Recovery Failed",
|
|
1749
|
+
[K.MFA_RECOVERY_RATE_LIMIT_EXCEED]: "MFA Recovery Rate Limit Exceeded",
|
|
1750
|
+
[K.MFA_RECOVERY_SUCCESS]: "MFA Recovery Success",
|
|
1751
|
+
[K.MFA_EMAIL_SENT]: "MFA Email Sent",
|
|
1752
|
+
[K.EMAIL_VERIFICATION_SENT]: "Email Verification Sent",
|
|
1753
|
+
[K.EMAIL_VERIFICATION_SEND_FAILURE]: "Email Verification Send Failure",
|
|
1754
|
+
[K.PUSH_NOTIFICATION_SENT]: "Push Notification Sent",
|
|
1755
|
+
[K.ERROR_SENDING_MFA_PUSH_NOTIFICATION]: "Error Sending MFA Push Notification",
|
|
1756
|
+
[K.MFA_SMS_SENT]: "MFA SMS Sent",
|
|
1757
|
+
[K.ERROR_SENDING_MFA_SMS]: "Error Sending MFA SMS",
|
|
1758
|
+
[K.MFA_VOICE_CALL_SUCCESS]: "MFA Voice Call Success",
|
|
1759
|
+
[K.MFA_VOICE_CALL_FAILED]: "MFA Voice Call Failed",
|
|
1760
|
+
[K.SECOND_FACTOR_STARTED]: "Second Factor Started",
|
|
1761
|
+
[K.MFA_ENROLL_STARTED]: "MFA Enroll Started",
|
|
1762
|
+
[K.MFA_ENROLLMENT_FAILED]: "MFA Enrollment Failed",
|
|
1763
|
+
[K.GUARDIAN_TENANT_UPDATE]: "Guardian Tenant Update",
|
|
1764
|
+
[K.UNENROLL_DEVICE_ACCOUNT]: "Unenroll Device Account",
|
|
1765
|
+
[K.UPDATE_DEVICE_ACCOUNT]: "Update Device Account",
|
|
1766
|
+
[K.WEBAUTHN_CHALLENGE_FAILED]: "WebAuthn Challenge Failed",
|
|
1767
|
+
[K.WEBAUTHN_ENROLLMENT_FAILED]: "WebAuthn Enrollment Failed",
|
|
1768
|
+
[K.FAILED_KMS_API_OPERATION]: "Failed KMS API Operation",
|
|
1769
|
+
[K.SUCCESS_KMS_API_OPERATION]: "Success KMS API Operation",
|
|
1770
|
+
[K.KMS_KEY_STATE_CHANGED]: "KMS Key State Changed",
|
|
1771
|
+
[K.TOO_MANY_CALLS_TO_DELEGATION]: "Too Many Calls to Delegation",
|
|
1772
|
+
[K.BLOCKED_IP_ADDRESS]: "Blocked IP Address",
|
|
1773
|
+
[K.BLOCKED_ACCOUNT_IP]: "Blocked Account (IP)",
|
|
1774
|
+
[K.BLOCKED_ACCOUNT_EMAIL]: "Blocked Account (Email)",
|
|
1775
|
+
[K.INFORMATION]: "Information",
|
|
1776
|
+
[K.MFA_REQUIRED]: "MFA Required",
|
|
1777
|
+
[K.MANAGEMENT_API_READ_OPERATION]: "Management API Read Operation",
|
|
1778
|
+
[K.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Failed Authentication Method Operation (My Account)",
|
|
1779
|
+
[K.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Successful Authentication Method Operation (My Account)",
|
|
1780
|
+
[K.FAILED_OIDC_BACKCHANNEL_LOGOUT]: "Failed OIDC Backchannel Logout",
|
|
1781
|
+
[K.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT]: "Successful OIDC Backchannel Logout",
|
|
1782
|
+
[K.ORGANIZATION_MEMBER_ADDED]: "Organization Member Added",
|
|
1783
|
+
[K.PASSKEY_CHALLENGE_FAILED]: "Passkey Challenge Failed",
|
|
1784
|
+
[K.PASSKEY_CHALLENGE_STARTED]: "Passkey Challenge Started",
|
|
1785
|
+
[K.PRE_LOGIN_ASSESSMENT]: "Pre-Login Assessment",
|
|
1786
|
+
[K.BREACHED_PASSWORD]: "Breached Password",
|
|
1787
|
+
[K.BREACHED_PASSWORD_ON_RESET]: "Breached Password on Reset",
|
|
1788
|
+
[K.SUCCESS_RESOURCE_CLEANUP]: "Success Resource Cleanup",
|
|
1789
|
+
[K.RICH_CONSENTS_ACCESS_ERROR]: "Rich Consents Access Error",
|
|
1790
|
+
[K.SUCCESS_LOGIN]: "Success Login",
|
|
1791
|
+
[K.SUCCESS_API_OPERATION]: "Success API Operation",
|
|
1792
|
+
[K.FAILED_API_OPERATION]: "Failed API Operation",
|
|
1793
|
+
[K.SUCCESS_CHANGE_EMAIL]: "Success Change Email",
|
|
1794
|
+
[K.SUCCESS_CROSS_ORIGIN_AUTHENTICATION]: "Success Cross Origin Authentication",
|
|
1795
|
+
[K.SUCCESS_CHANGE_PASSWORD]: "Success Change Password",
|
|
1796
|
+
[K.SUCCESS_CHANGE_PHONE_NUMBER]: "Success Change Phone Number",
|
|
1797
|
+
[K.SUCCESS_CHANGE_PASSWORD_REQUEST]: "Success Change Password Request",
|
|
1798
|
+
[K.SUCCESS_CHANGE_USERNAME]: "Success Change Username",
|
|
1799
|
+
[K.SUCCESS_CREDENTIAL_VALIDATION]: "Success Credential Validation",
|
|
1800
|
+
[K.SUCCESS_DELEGATION]: "Success Delegation",
|
|
1801
|
+
[K.SUCCESS_USER_DELETION]: "Success User Deletion",
|
|
1802
|
+
[K.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Authorization Code for Access Token",
|
|
1803
|
+
[K.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Success Exchange Access Token for Client Credentials",
|
|
1804
|
+
[K.SUCCESS_EXCHANGE_CUSTOM_TOKEN]: "Success Exchange Custom Token",
|
|
1805
|
+
[K.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Device Code for Access Token",
|
|
1806
|
+
[K.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
|
|
1807
|
+
[K.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
|
|
1808
|
+
[K.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
|
|
1809
|
+
[K.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
|
|
1810
|
+
[K.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
|
|
1811
|
+
[K.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
|
|
1812
|
+
[K.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
|
|
1813
|
+
[K.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Passkey MFA Recovery for Access Token",
|
|
1814
|
+
[K.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Password MFA Recovery for Access Token",
|
|
1815
|
+
[K.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Refresh Token for Access Token",
|
|
1816
|
+
[K.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Subject Token for Access Token",
|
|
1817
|
+
[K.SUCCESS_IMPERSONATION]: "Success Impersonation",
|
|
1818
|
+
[K.SUCCESSFULLY_ACCEPTED_USER_INVITE]: "Successfully Accepted User Invite",
|
|
1819
|
+
[K.BREACHED_PASSWORD_ON_SIGNUP]: "Breached Password on Signup",
|
|
1820
|
+
[K.SUCCESS_LOGOUT]: "Success Logout",
|
|
1821
|
+
[K.SUCCESS_HOOK]: "Success Hook",
|
|
1822
|
+
[K.SUCCESS_PASSWORD_MIGRATION]: "Success Password Migration",
|
|
1823
|
+
[K.SUCCESS_REVOCATION]: "Success Revocation",
|
|
1824
|
+
[K.SUCCESS_SIGNUP]: "Success Signup",
|
|
1825
|
+
[K.FAILED_SS_SSO_OPERATION]: "Failed SS SSO Operation",
|
|
1826
|
+
[K.INFORMATION_FROM_SS_SSO_OPERATION]: "Information from SS SSO Operation",
|
|
1827
|
+
[K.SUCCESS_SS_SSO_OPERATION]: "Success SS SSO Operation",
|
|
1828
|
+
[K.SUCCESS_SILENT_AUTH]: "Success Silent Auth",
|
|
1829
|
+
[K.SUCCESSFUL_SCIM_OPERATION]: "Successful SCIM Operation",
|
|
1830
|
+
[K.SUCCESSFULLY_IMPORTED_USERS]: "Successfully Imported Users",
|
|
1831
|
+
[K.SUCCESS_VERIFICATION_EMAIL]: "Success Verification Email",
|
|
1832
|
+
[K.SUCCESS_VERIFICATION_EMAIL_REQUEST]: "Success Verification Email Request",
|
|
1833
|
+
[K.MAX_AMOUNT_OF_AUTHENTICATORS]: "Max Amount of Authenticators",
|
|
1834
|
+
[K.USER_LOGIN_BLOCK_RELEASED]: "User Login Block Released",
|
|
1835
|
+
[K.FAILED_UNIVERSAL_LOGOUT]: "Failed Universal Logout",
|
|
1836
|
+
[K.SUCCESSFUL_UNIVERSAL_LOGOUT]: "Successful Universal Logout",
|
|
1837
|
+
[K.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1838
|
+
[K.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1839
|
+
[K.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1840
|
+
}, In = (() => {
|
|
1841
1841
|
let e = {};
|
|
1842
|
-
for (let [t, n] of Object.entries(
|
|
1842
|
+
for (let [t, n] of Object.entries(K)) 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";
|
|
1843
1843
|
return e;
|
|
1844
1844
|
})();
|
|
1845
|
-
function
|
|
1846
|
-
return
|
|
1845
|
+
function Ln(e) {
|
|
1846
|
+
return Fn[e] ?? e;
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1849
|
-
return
|
|
1848
|
+
function Rn(e) {
|
|
1849
|
+
return In[e] ?? "other";
|
|
1850
1850
|
}
|
|
1851
|
-
var
|
|
1851
|
+
var zn = e.object({
|
|
1852
1852
|
name: e.string(),
|
|
1853
1853
|
version: e.string(),
|
|
1854
1854
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1855
|
-
}),
|
|
1855
|
+
}), Bn = e.object({
|
|
1856
1856
|
country_code: e.string().length(2),
|
|
1857
1857
|
city_name: e.string(),
|
|
1858
1858
|
latitude: e.string(),
|
|
1859
1859
|
longitude: e.string(),
|
|
1860
1860
|
time_zone: e.string(),
|
|
1861
1861
|
continent_code: e.string()
|
|
1862
|
-
}),
|
|
1863
|
-
type:
|
|
1862
|
+
}), Vn = e.object({
|
|
1863
|
+
type: Pn,
|
|
1864
1864
|
date: e.string(),
|
|
1865
1865
|
description: e.string().optional(),
|
|
1866
1866
|
ip: e.string().optional(),
|
|
@@ -1878,58 +1878,58 @@ var Bn = e.object({
|
|
|
1878
1878
|
strategy: e.string().optional(),
|
|
1879
1879
|
strategy_type: e.string().optional(),
|
|
1880
1880
|
hostname: e.string().optional(),
|
|
1881
|
-
auth0_client:
|
|
1881
|
+
auth0_client: zn.optional(),
|
|
1882
1882
|
log_id: e.string().optional(),
|
|
1883
|
-
location_info:
|
|
1884
|
-
}),
|
|
1883
|
+
location_info: Bn.optional()
|
|
1884
|
+
}), Hn = Vn.extend({ log_id: e.string() }), Un = e.enum([
|
|
1885
1885
|
"http",
|
|
1886
1886
|
"eventbridge",
|
|
1887
1887
|
"eventgrid",
|
|
1888
1888
|
"splunk",
|
|
1889
1889
|
"datadog",
|
|
1890
1890
|
"sumo"
|
|
1891
|
-
]),
|
|
1891
|
+
]), q = e.enum([
|
|
1892
1892
|
"active",
|
|
1893
1893
|
"paused",
|
|
1894
1894
|
"suspended"
|
|
1895
|
-
]),
|
|
1895
|
+
]), Wn = e.object({
|
|
1896
1896
|
type: e.string(),
|
|
1897
1897
|
name: e.string()
|
|
1898
|
-
}),
|
|
1898
|
+
}), Gn = e.object({
|
|
1899
1899
|
name: e.string(),
|
|
1900
|
-
type:
|
|
1901
|
-
status:
|
|
1900
|
+
type: Un,
|
|
1901
|
+
status: q.optional(),
|
|
1902
1902
|
sink: e.record(e.string(), e.unknown()),
|
|
1903
|
-
filters: e.array(
|
|
1903
|
+
filters: e.array(Wn).optional(),
|
|
1904
1904
|
isPriority: e.boolean().optional()
|
|
1905
|
-
}),
|
|
1905
|
+
}), Kn = Gn.extend({
|
|
1906
1906
|
id: e.string(),
|
|
1907
|
-
status:
|
|
1907
|
+
status: q,
|
|
1908
1908
|
created_at: e.string().optional(),
|
|
1909
1909
|
updated_at: e.string().optional()
|
|
1910
|
-
}),
|
|
1910
|
+
}), qn = e.enum([
|
|
1911
1911
|
"auth0",
|
|
1912
1912
|
"cognito",
|
|
1913
1913
|
"okta",
|
|
1914
1914
|
"oidc"
|
|
1915
|
-
]),
|
|
1915
|
+
]), Jn = e.object({
|
|
1916
1916
|
domain: e.string(),
|
|
1917
1917
|
client_id: e.string(),
|
|
1918
1918
|
client_secret: e.string(),
|
|
1919
1919
|
audience: e.string().optional(),
|
|
1920
1920
|
scope: e.string().optional()
|
|
1921
|
-
}),
|
|
1921
|
+
}), Yn = e.object({
|
|
1922
1922
|
id: e.string().optional(),
|
|
1923
1923
|
name: e.string(),
|
|
1924
|
-
provider:
|
|
1924
|
+
provider: qn,
|
|
1925
1925
|
connection: e.string(),
|
|
1926
1926
|
enabled: e.boolean().default(!0),
|
|
1927
|
-
credentials:
|
|
1928
|
-
}),
|
|
1927
|
+
credentials: Jn
|
|
1928
|
+
}), Xn = e.object({
|
|
1929
1929
|
id: e.string(),
|
|
1930
1930
|
created_at: e.string(),
|
|
1931
1931
|
updated_at: e.string()
|
|
1932
|
-
}).extend(
|
|
1932
|
+
}).extend(Yn.shape), Zn = e.object({
|
|
1933
1933
|
enabled: e.boolean().optional(),
|
|
1934
1934
|
shields: e.array(e.string()).optional(),
|
|
1935
1935
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1938,13 +1938,13 @@ var Bn = e.object({
|
|
|
1938
1938
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1939
1939
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1940
1940
|
}).optional()
|
|
1941
|
-
}),
|
|
1941
|
+
}), Qn = e.object({
|
|
1942
1942
|
enabled: e.boolean().optional(),
|
|
1943
1943
|
shields: e.array(e.string()).optional(),
|
|
1944
1944
|
allowlist: e.array(e.string()).optional(),
|
|
1945
1945
|
mode: e.string().optional(),
|
|
1946
1946
|
max_attempts: e.number().optional()
|
|
1947
|
-
}),
|
|
1947
|
+
}), $n = e.object({
|
|
1948
1948
|
enabled: e.boolean().optional(),
|
|
1949
1949
|
shields: e.array(e.string()).optional(),
|
|
1950
1950
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1958,28 +1958,28 @@ var Bn = e.object({
|
|
|
1958
1958
|
rate: e.number().optional()
|
|
1959
1959
|
}).optional()
|
|
1960
1960
|
}).optional()
|
|
1961
|
+
}), er = e.object({
|
|
1962
|
+
breached_password_detection: Zn.optional(),
|
|
1963
|
+
brute_force_protection: Qn.optional(),
|
|
1964
|
+
suspicious_ip_throttling: $n.optional()
|
|
1961
1965
|
}), tr = e.object({
|
|
1962
|
-
breached_password_detection: Qn.optional(),
|
|
1963
|
-
brute_force_protection: $n.optional(),
|
|
1964
|
-
suspicious_ip_throttling: er.optional()
|
|
1965
|
-
}), nr = e.object({
|
|
1966
1966
|
id: e.string().optional(),
|
|
1967
1967
|
user_id: e.string(),
|
|
1968
1968
|
password: e.string(),
|
|
1969
1969
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1970
1970
|
is_current: e.boolean().default(!0)
|
|
1971
|
-
}),
|
|
1971
|
+
}), nr = tr.extend({
|
|
1972
1972
|
id: e.string(),
|
|
1973
1973
|
created_at: e.string(),
|
|
1974
1974
|
updated_at: e.string()
|
|
1975
|
-
}),
|
|
1975
|
+
}), rr = e.object({
|
|
1976
1976
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1977
1977
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1978
1978
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1979
1979
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1980
1980
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1981
1981
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1982
|
-
}),
|
|
1982
|
+
}), ir = e.object({
|
|
1983
1983
|
id: e.string(),
|
|
1984
1984
|
revoked_at: e.string().optional(),
|
|
1985
1985
|
used_at: e.string().optional(),
|
|
@@ -1987,14 +1987,14 @@ var Bn = e.object({
|
|
|
1987
1987
|
expires_at: e.string().optional(),
|
|
1988
1988
|
login_session_id: e.string(),
|
|
1989
1989
|
idle_expires_at: e.string().optional(),
|
|
1990
|
-
device:
|
|
1990
|
+
device: rr.describe("Metadata related to the device used in the session"),
|
|
1991
1991
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1992
|
-
}),
|
|
1992
|
+
}), ar = e.object({
|
|
1993
1993
|
created_at: e.string(),
|
|
1994
1994
|
updated_at: e.string(),
|
|
1995
1995
|
authenticated_at: e.string(),
|
|
1996
1996
|
last_interaction_at: e.string()
|
|
1997
|
-
}).extend(
|
|
1997
|
+
}).extend(ir.shape), or = e.object({
|
|
1998
1998
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1999
1999
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
2000
2000
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -2010,7 +2010,7 @@ var Bn = e.object({
|
|
|
2010
2010
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
2011
2011
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
2012
2012
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
2013
|
-
}),
|
|
2013
|
+
}), sr = e.object({
|
|
2014
2014
|
id: e.string().optional(),
|
|
2015
2015
|
audience: e.string().optional(),
|
|
2016
2016
|
friendly_name: e.string(),
|
|
@@ -2128,7 +2128,7 @@ var Bn = e.object({
|
|
|
2128
2128
|
"shared_planetscale"
|
|
2129
2129
|
]).optional(),
|
|
2130
2130
|
d1_database_id: e.string().max(64).optional(),
|
|
2131
|
-
attack_protection:
|
|
2131
|
+
attack_protection: er.optional(),
|
|
2132
2132
|
mfa: e.object({
|
|
2133
2133
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2134
2134
|
factors: e.object({
|
|
@@ -2155,42 +2155,42 @@ var Bn = e.object({
|
|
|
2155
2155
|
}).optional(),
|
|
2156
2156
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2157
2157
|
}).optional()
|
|
2158
|
-
}),
|
|
2158
|
+
}), cr = e.object({
|
|
2159
2159
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2160
2160
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2161
|
-
}).extend(
|
|
2161
|
+
}).extend(sr.shape).extend({
|
|
2162
2162
|
id: e.string(),
|
|
2163
2163
|
is_control_plane: e.boolean().optional()
|
|
2164
|
-
}),
|
|
2164
|
+
}), lr = e.enum([
|
|
2165
2165
|
"provision",
|
|
2166
2166
|
"seed",
|
|
2167
2167
|
"upgrade",
|
|
2168
2168
|
"backup",
|
|
2169
2169
|
"deprovision"
|
|
2170
|
-
]),
|
|
2170
|
+
]), ur = e.enum([
|
|
2171
2171
|
"pending",
|
|
2172
2172
|
"running",
|
|
2173
2173
|
"succeeded",
|
|
2174
2174
|
"failed",
|
|
2175
2175
|
"cancelled"
|
|
2176
|
-
]),
|
|
2176
|
+
]), dr = e.enum(["inline", "cloudflare-workflows"]), fr = e.object({
|
|
2177
2177
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2178
2178
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2179
|
-
kind:
|
|
2180
|
-
engine:
|
|
2179
|
+
kind: lr,
|
|
2180
|
+
engine: dr,
|
|
2181
2181
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2182
2182
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2183
2183
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2184
2184
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2185
|
-
}),
|
|
2185
|
+
}), pr = fr.extend({
|
|
2186
2186
|
id: e.string(),
|
|
2187
|
-
status:
|
|
2187
|
+
status: ur,
|
|
2188
2188
|
current_step: e.string().max(255).nullable().optional(),
|
|
2189
2189
|
error: e.string().nullable().optional(),
|
|
2190
2190
|
created_at: e.string(),
|
|
2191
2191
|
updated_at: e.string(),
|
|
2192
2192
|
finished_at: e.string().nullable().optional()
|
|
2193
|
-
}),
|
|
2193
|
+
}), mr = pr.pick({
|
|
2194
2194
|
status: !0,
|
|
2195
2195
|
current_step: !0,
|
|
2196
2196
|
engine_instance_id: !0,
|
|
@@ -2198,56 +2198,56 @@ var Bn = e.object({
|
|
|
2198
2198
|
target_database_version: !0,
|
|
2199
2199
|
error: !0,
|
|
2200
2200
|
finished_at: !0
|
|
2201
|
-
}).partial(),
|
|
2201
|
+
}).partial(), hr = e.enum([
|
|
2202
2202
|
"started",
|
|
2203
2203
|
"succeeded",
|
|
2204
2204
|
"failed",
|
|
2205
2205
|
"retried",
|
|
2206
2206
|
"skipped",
|
|
2207
2207
|
"reconciled"
|
|
2208
|
-
]),
|
|
2208
|
+
]), gr = e.object({
|
|
2209
2209
|
operation_id: e.string().max(255),
|
|
2210
2210
|
step: e.string().max(255),
|
|
2211
|
-
outcome:
|
|
2211
|
+
outcome: hr,
|
|
2212
2212
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2213
2213
|
attempt: e.number().int().min(1).default(1)
|
|
2214
|
-
}),
|
|
2214
|
+
}), _r = gr.extend({
|
|
2215
2215
|
id: e.string(),
|
|
2216
2216
|
created_at: e.string()
|
|
2217
|
-
}),
|
|
2217
|
+
}), vr = e.enum([
|
|
2218
2218
|
"upgrade",
|
|
2219
2219
|
"reseed",
|
|
2220
2220
|
"backup"
|
|
2221
|
-
]),
|
|
2221
|
+
]), yr = e.enum([
|
|
2222
2222
|
"pending",
|
|
2223
2223
|
"canary",
|
|
2224
2224
|
"rolling",
|
|
2225
2225
|
"paused",
|
|
2226
2226
|
"done",
|
|
2227
2227
|
"failed"
|
|
2228
|
-
]),
|
|
2229
|
-
kind:
|
|
2228
|
+
]), br = e.object({
|
|
2229
|
+
kind: vr,
|
|
2230
2230
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2231
2231
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2232
2232
|
wave_size: e.number().int().min(1).default(10),
|
|
2233
2233
|
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2234
2234
|
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2235
2235
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2236
|
-
}),
|
|
2236
|
+
}), xr = br.extend({
|
|
2237
2237
|
id: e.string(),
|
|
2238
|
-
status:
|
|
2238
|
+
status: yr,
|
|
2239
2239
|
created_at: e.string(),
|
|
2240
2240
|
updated_at: e.string(),
|
|
2241
2241
|
finished_at: e.string().nullable().optional()
|
|
2242
|
-
}),
|
|
2242
|
+
}), Sr = xr.pick({
|
|
2243
2243
|
status: !0,
|
|
2244
2244
|
wave_size: !0,
|
|
2245
2245
|
canary_tenant_ids: !0,
|
|
2246
2246
|
filter: !0,
|
|
2247
2247
|
finished_at: !0
|
|
2248
|
-
}).partial(),
|
|
2248
|
+
}).partial(), Cr = /* @__PURE__ */ function(e) {
|
|
2249
2249
|
return e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e.TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange", e;
|
|
2250
|
-
}({}),
|
|
2250
|
+
}({}), wr = e.object({
|
|
2251
2251
|
access_token: e.string(),
|
|
2252
2252
|
id_token: e.string().optional(),
|
|
2253
2253
|
scope: e.string().optional(),
|
|
@@ -2262,7 +2262,7 @@ e.object({
|
|
|
2262
2262
|
});
|
|
2263
2263
|
//#endregion
|
|
2264
2264
|
//#region src/types/Theme.ts
|
|
2265
|
-
var
|
|
2265
|
+
var Tr = e.object({
|
|
2266
2266
|
button_border_radius: e.number(),
|
|
2267
2267
|
button_border_weight: e.number(),
|
|
2268
2268
|
buttons_style: e.enum([
|
|
@@ -2280,7 +2280,7 @@ var Er = e.object({
|
|
|
2280
2280
|
show_widget_shadow: e.boolean(),
|
|
2281
2281
|
widget_border_weight: e.number(),
|
|
2282
2282
|
widget_corner_radius: e.number()
|
|
2283
|
-
}),
|
|
2283
|
+
}), Er = e.object({
|
|
2284
2284
|
base_focus_color: e.string(),
|
|
2285
2285
|
base_hover_color: e.string(),
|
|
2286
2286
|
body_text: e.string(),
|
|
@@ -2304,20 +2304,20 @@ var Er = e.object({
|
|
|
2304
2304
|
success: e.string(),
|
|
2305
2305
|
widget_background: e.string(),
|
|
2306
2306
|
widget_border: e.string()
|
|
2307
|
-
}),
|
|
2307
|
+
}), J = e.object({
|
|
2308
2308
|
bold: e.boolean(),
|
|
2309
2309
|
size: e.number()
|
|
2310
|
-
}),
|
|
2311
|
-
body_text:
|
|
2312
|
-
buttons_text:
|
|
2310
|
+
}), Dr = e.object({
|
|
2311
|
+
body_text: J,
|
|
2312
|
+
buttons_text: J,
|
|
2313
2313
|
font_url: e.string(),
|
|
2314
|
-
input_labels:
|
|
2315
|
-
links:
|
|
2314
|
+
input_labels: J,
|
|
2315
|
+
links: J,
|
|
2316
2316
|
links_style: e.enum(["normal", "underlined"]),
|
|
2317
2317
|
reference_text_size: e.number(),
|
|
2318
|
-
subtitle:
|
|
2319
|
-
title:
|
|
2320
|
-
}),
|
|
2318
|
+
subtitle: J,
|
|
2319
|
+
title: J
|
|
2320
|
+
}), Or = e.object({
|
|
2321
2321
|
background_color: e.string(),
|
|
2322
2322
|
background_image_url: e.string(),
|
|
2323
2323
|
page_layout: e.enum([
|
|
@@ -2330,7 +2330,7 @@ var Er = e.object({
|
|
|
2330
2330
|
"chip",
|
|
2331
2331
|
"none"
|
|
2332
2332
|
]).optional()
|
|
2333
|
-
}),
|
|
2333
|
+
}), kr = e.object({
|
|
2334
2334
|
header_text_alignment: e.enum([
|
|
2335
2335
|
"center",
|
|
2336
2336
|
"left",
|
|
@@ -2345,72 +2345,72 @@ var Er = e.object({
|
|
|
2345
2345
|
]),
|
|
2346
2346
|
logo_url: e.string(),
|
|
2347
2347
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2348
|
-
}),
|
|
2349
|
-
borders:
|
|
2350
|
-
colors:
|
|
2348
|
+
}), Ar = e.object({
|
|
2349
|
+
borders: Tr,
|
|
2350
|
+
colors: Er,
|
|
2351
2351
|
displayName: e.string(),
|
|
2352
|
-
fonts:
|
|
2353
|
-
page_background:
|
|
2354
|
-
widget:
|
|
2355
|
-
}),
|
|
2352
|
+
fonts: Dr,
|
|
2353
|
+
page_background: Or,
|
|
2354
|
+
widget: kr
|
|
2355
|
+
}), jr = Ar.extend({ themeId: e.string() }), Mr = e.object({
|
|
2356
2356
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2357
2357
|
identifier_first: e.boolean().default(!0),
|
|
2358
2358
|
password_first: e.boolean().default(!1),
|
|
2359
2359
|
show_last_used_connection: e.boolean().default(!1),
|
|
2360
2360
|
webauthn_platform_first_factor: e.boolean()
|
|
2361
|
-
}),
|
|
2361
|
+
}), Nr = e.object({
|
|
2362
2362
|
hosts: e.array(e.string()).optional(),
|
|
2363
2363
|
methods: e.array(e.string()).optional(),
|
|
2364
2364
|
path: e.string().default("/*"),
|
|
2365
2365
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2366
2366
|
query: e.record(e.string(), e.string()).optional()
|
|
2367
|
-
}),
|
|
2367
|
+
}), Pr = e.object({
|
|
2368
2368
|
type: e.string(),
|
|
2369
2369
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2370
|
-
}),
|
|
2370
|
+
}), Y = e.object({
|
|
2371
2371
|
id: e.string().optional(),
|
|
2372
2372
|
custom_domain_id: e.string(),
|
|
2373
2373
|
priority: e.number().int().default(100),
|
|
2374
|
-
match:
|
|
2375
|
-
handlers: e.array(
|
|
2376
|
-
}),
|
|
2374
|
+
match: Nr,
|
|
2375
|
+
handlers: e.array(Pr).min(1)
|
|
2376
|
+
}), Fr = Y.extend({
|
|
2377
2377
|
id: e.string(),
|
|
2378
2378
|
tenant_id: e.string(),
|
|
2379
2379
|
created_at: e.string(),
|
|
2380
2380
|
updated_at: e.string()
|
|
2381
|
-
}),
|
|
2381
|
+
}), Ir = Y.partial().omit({
|
|
2382
2382
|
id: !0,
|
|
2383
2383
|
custom_domain_id: !0
|
|
2384
|
-
}),
|
|
2384
|
+
}), Lr = e.object({
|
|
2385
2385
|
scim: e.string(),
|
|
2386
2386
|
auth0: e.string()
|
|
2387
|
-
}),
|
|
2387
|
+
}), Rr = e.object({
|
|
2388
2388
|
connection_id: e.string(),
|
|
2389
2389
|
user_id_attribute: e.string().default("externalId"),
|
|
2390
|
-
mapping: e.array(
|
|
2391
|
-
}),
|
|
2390
|
+
mapping: e.array(Lr).default([])
|
|
2391
|
+
}), zr = e.object({
|
|
2392
2392
|
created_at: e.string(),
|
|
2393
2393
|
updated_at: e.string()
|
|
2394
|
-
}).extend(
|
|
2394
|
+
}).extend(Rr.shape), Br = e.object({
|
|
2395
2395
|
token_id: e.string(),
|
|
2396
2396
|
connection_id: e.string(),
|
|
2397
2397
|
token_hash: e.string(),
|
|
2398
2398
|
scopes: e.array(e.string()).default([]),
|
|
2399
2399
|
valid_until: e.string().optional()
|
|
2400
|
-
}),
|
|
2400
|
+
}), Vr = e.object({
|
|
2401
2401
|
created_at: e.string(),
|
|
2402
2402
|
last_used_at: e.string().optional()
|
|
2403
|
-
}).extend(
|
|
2403
|
+
}).extend(Br.shape), Hr = e.object({
|
|
2404
2404
|
connection_id: e.string(),
|
|
2405
2405
|
external_id: e.string(),
|
|
2406
2406
|
user_id: e.string()
|
|
2407
|
-
}),
|
|
2407
|
+
}), Ur = e.object({ created_at: e.string() }).extend(Hr.shape), Wr = e.object({
|
|
2408
2408
|
name: e.string(),
|
|
2409
2409
|
enabled: e.boolean().optional().default(!0),
|
|
2410
2410
|
default_from_address: e.string().optional(),
|
|
2411
2411
|
credentials: e.record(e.string(), e.unknown()),
|
|
2412
2412
|
settings: e.object({}).optional()
|
|
2413
|
-
}),
|
|
2413
|
+
}), Gr = e.enum([
|
|
2414
2414
|
"verify_email",
|
|
2415
2415
|
"verify_email_by_code",
|
|
2416
2416
|
"reset_email",
|
|
@@ -2423,8 +2423,8 @@ var Er = e.object({
|
|
|
2423
2423
|
"change_password",
|
|
2424
2424
|
"password_reset",
|
|
2425
2425
|
"user_invitation"
|
|
2426
|
-
]),
|
|
2427
|
-
template:
|
|
2426
|
+
]), Kr = e.object({
|
|
2427
|
+
template: Gr,
|
|
2428
2428
|
body: e.string(),
|
|
2429
2429
|
from: e.string(),
|
|
2430
2430
|
subject: e.string(),
|
|
@@ -2433,15 +2433,19 @@ var Er = e.object({
|
|
|
2433
2433
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2434
2434
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2435
2435
|
enabled: e.boolean().default(!0)
|
|
2436
|
-
}),
|
|
2436
|
+
}), qr = e.object({
|
|
2437
2437
|
id: e.string(),
|
|
2438
2438
|
login_id: e.string(),
|
|
2439
|
+
session_id: e.string().optional(),
|
|
2440
|
+
organization: e.string().optional(),
|
|
2441
|
+
auth_connection: e.string().optional(),
|
|
2442
|
+
auth_strategy: G.optional(),
|
|
2439
2443
|
user_id: e.string(),
|
|
2440
2444
|
client_id: e.string(),
|
|
2441
2445
|
expires_at: e.string().optional(),
|
|
2442
2446
|
idle_expires_at: e.string().optional(),
|
|
2443
2447
|
last_exchanged_at: e.string().optional(),
|
|
2444
|
-
device:
|
|
2448
|
+
device: rr,
|
|
2445
2449
|
resource_servers: e.array(e.object({
|
|
2446
2450
|
audience: e.string(),
|
|
2447
2451
|
scopes: e.string()
|
|
@@ -2452,19 +2456,19 @@ var Er = e.object({
|
|
|
2452
2456
|
family_id: e.string().optional(),
|
|
2453
2457
|
rotated_to: e.string().optional(),
|
|
2454
2458
|
rotated_at: e.string().optional()
|
|
2455
|
-
}),
|
|
2459
|
+
}), Jr = qr.extend({
|
|
2456
2460
|
created_at: e.string(),
|
|
2457
2461
|
revoked_at: e.string().optional()
|
|
2458
|
-
}),
|
|
2462
|
+
}), Yr = e.object({
|
|
2459
2463
|
to: e.string(),
|
|
2460
2464
|
message: e.string()
|
|
2461
|
-
}),
|
|
2465
|
+
}), Xr = e.object({
|
|
2462
2466
|
name: e.string(),
|
|
2463
2467
|
options: e.object({})
|
|
2464
|
-
}),
|
|
2468
|
+
}), Zr = e.object({
|
|
2465
2469
|
value: e.string(),
|
|
2466
2470
|
description: e.string().optional()
|
|
2467
|
-
}),
|
|
2471
|
+
}), Qr = e.object({
|
|
2468
2472
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2469
2473
|
enforce_policies: e.boolean().optional(),
|
|
2470
2474
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2472,11 +2476,11 @@ var Er = e.object({
|
|
|
2472
2476
|
persist_client_authorization: e.boolean().optional(),
|
|
2473
2477
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2474
2478
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2475
|
-
}),
|
|
2479
|
+
}), $r = e.object({
|
|
2476
2480
|
id: e.string().optional(),
|
|
2477
2481
|
name: e.string(),
|
|
2478
2482
|
identifier: e.string(),
|
|
2479
|
-
scopes: e.array(
|
|
2483
|
+
scopes: e.array(Zr).optional(),
|
|
2480
2484
|
signing_alg: e.string().optional(),
|
|
2481
2485
|
signing_secret: e.string().optional(),
|
|
2482
2486
|
token_lifetime: e.number().default(86400),
|
|
@@ -2484,37 +2488,37 @@ var Er = e.object({
|
|
|
2484
2488
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2485
2489
|
allow_offline_access: e.boolean().optional(),
|
|
2486
2490
|
verificationKey: e.string().optional(),
|
|
2487
|
-
options:
|
|
2491
|
+
options: Qr.optional(),
|
|
2488
2492
|
is_system: e.boolean().optional(),
|
|
2489
2493
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2490
|
-
}),
|
|
2494
|
+
}), ei = $r.extend({
|
|
2491
2495
|
created_at: e.string().optional(),
|
|
2492
2496
|
updated_at: e.string().optional()
|
|
2493
|
-
}),
|
|
2497
|
+
}), ti = e.array(ei), ni = e.object({
|
|
2494
2498
|
role_id: e.string(),
|
|
2495
2499
|
resource_server_identifier: e.string(),
|
|
2496
2500
|
permission_name: e.string()
|
|
2497
|
-
}),
|
|
2501
|
+
}), ri = ni.extend({ created_at: e.string() }), ii = e.array(ri), ai = e.object({
|
|
2498
2502
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2499
2503
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2500
2504
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2501
2505
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2502
|
-
}),
|
|
2506
|
+
}), oi = ai.extend({ id: e.string() }), si = e.object({
|
|
2503
2507
|
user_id: e.string(),
|
|
2504
2508
|
last_login: e.string().optional(),
|
|
2505
2509
|
last_ip: e.string().optional(),
|
|
2506
2510
|
login_count: e.number().default(0),
|
|
2507
2511
|
failed_logins: e.array(e.string()).optional(),
|
|
2508
2512
|
last_password_reset: e.string().optional()
|
|
2509
|
-
}),
|
|
2513
|
+
}), ci = e.object({
|
|
2510
2514
|
user_id: e.string(),
|
|
2511
2515
|
resource_server_identifier: e.string(),
|
|
2512
2516
|
permission_name: e.string(),
|
|
2513
2517
|
organization_id: e.string().optional()
|
|
2514
|
-
}),
|
|
2518
|
+
}), li = ci.extend({
|
|
2515
2519
|
tenant_id: e.string(),
|
|
2516
2520
|
created_at: e.string().optional()
|
|
2517
|
-
}),
|
|
2521
|
+
}), ui = e.array(li), di = e.object({
|
|
2518
2522
|
user_id: e.string(),
|
|
2519
2523
|
resource_server_identifier: e.string(),
|
|
2520
2524
|
resource_server_name: e.string(),
|
|
@@ -2522,65 +2526,65 @@ var Er = e.object({
|
|
|
2522
2526
|
description: e.string().nullable().optional(),
|
|
2523
2527
|
created_at: e.string().optional(),
|
|
2524
2528
|
organization_id: e.string().optional()
|
|
2525
|
-
}),
|
|
2529
|
+
}), fi = e.array(di), pi = e.object({
|
|
2526
2530
|
user_id: e.string(),
|
|
2527
2531
|
role_id: e.string(),
|
|
2528
2532
|
organization_id: e.string().optional()
|
|
2529
|
-
}),
|
|
2533
|
+
}), mi = pi.extend({
|
|
2530
2534
|
tenant_id: e.string(),
|
|
2531
2535
|
created_at: e.string().optional()
|
|
2532
|
-
}),
|
|
2536
|
+
}), hi = e.array(mi), gi = e.object({
|
|
2533
2537
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2534
2538
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2535
2539
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2536
2540
|
is_system: e.boolean().optional(),
|
|
2537
2541
|
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." })
|
|
2538
|
-
}),
|
|
2542
|
+
}), _i = gi.extend({
|
|
2539
2543
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2540
2544
|
created_at: e.string().optional(),
|
|
2541
2545
|
updated_at: e.string().optional()
|
|
2542
|
-
}),
|
|
2546
|
+
}), vi = e.array(_i), yi = e.object({
|
|
2543
2547
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2544
2548
|
colors: e.object({
|
|
2545
2549
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2546
2550
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2547
2551
|
}).optional()
|
|
2548
|
-
}).optional(),
|
|
2552
|
+
}).optional(), bi = e.object({
|
|
2549
2553
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2550
2554
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2551
2555
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2552
2556
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2553
|
-
}),
|
|
2557
|
+
}), xi = e.object({ client_credentials: e.object({
|
|
2554
2558
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2555
2559
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2556
2560
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2557
|
-
}).optional() }).optional(),
|
|
2561
|
+
}).optional() }).optional(), Si = e.object({
|
|
2558
2562
|
id: e.string().optional(),
|
|
2559
2563
|
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." }),
|
|
2560
2564
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2561
|
-
branding:
|
|
2565
|
+
branding: yi,
|
|
2562
2566
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2563
|
-
enabled_connections: e.array(
|
|
2564
|
-
token_quota:
|
|
2565
|
-
}),
|
|
2567
|
+
enabled_connections: e.array(bi).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2568
|
+
token_quota: xi
|
|
2569
|
+
}), Ci = Si.extend(t.shape).extend({
|
|
2566
2570
|
id: e.string(),
|
|
2567
2571
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2568
|
-
}),
|
|
2572
|
+
}), wi = e.object({
|
|
2569
2573
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2570
2574
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2571
2575
|
show_as_button: e.boolean().optional().default(!0),
|
|
2572
2576
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2573
|
-
}),
|
|
2577
|
+
}), Ti = wi.extend({
|
|
2574
2578
|
connection: e.object({
|
|
2575
2579
|
name: e.string().optional(),
|
|
2576
2580
|
strategy: e.string().optional()
|
|
2577
2581
|
}).optional(),
|
|
2578
2582
|
created_at: e.string().optional(),
|
|
2579
2583
|
updated_at: e.string().optional()
|
|
2580
|
-
}),
|
|
2584
|
+
}), Ei = e.array(Ti), Di = e.object({
|
|
2581
2585
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2582
2586
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2583
|
-
}),
|
|
2587
|
+
}), Oi = Di.extend(t.shape).extend({ id: e.string() }), ki = e.object({
|
|
2584
2588
|
idle_session_lifetime: e.number().default(72),
|
|
2585
2589
|
session_lifetime: e.number().default(168),
|
|
2586
2590
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2659,7 +2663,7 @@ var Er = e.object({
|
|
|
2659
2663
|
}).optional(),
|
|
2660
2664
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2661
2665
|
}).optional()
|
|
2662
|
-
}),
|
|
2666
|
+
}), Ai = e.object({
|
|
2663
2667
|
date: e.string().openapi({
|
|
2664
2668
|
description: "Date these events occurred in ISO 8601 format",
|
|
2665
2669
|
example: "2025-12-19"
|
|
@@ -2684,10 +2688,10 @@ var Er = e.object({
|
|
|
2684
2688
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2685
2689
|
example: "2025-12-19T00:00:00.000Z"
|
|
2686
2690
|
})
|
|
2687
|
-
}),
|
|
2691
|
+
}), ji = e.number().openapi({
|
|
2688
2692
|
description: "Number of active users in the last 30 days",
|
|
2689
2693
|
example: 1234
|
|
2690
|
-
}),
|
|
2694
|
+
}), Mi = e.enum([
|
|
2691
2695
|
"active-users",
|
|
2692
2696
|
"logins",
|
|
2693
2697
|
"signups",
|
|
@@ -2699,64 +2703,64 @@ var Er = e.object({
|
|
|
2699
2703
|
"mfa",
|
|
2700
2704
|
"email-verifications",
|
|
2701
2705
|
"codes-sent"
|
|
2702
|
-
]),
|
|
2706
|
+
]), Ni = e.enum([
|
|
2703
2707
|
"hour",
|
|
2704
2708
|
"day",
|
|
2705
2709
|
"week",
|
|
2706
2710
|
"month"
|
|
2707
|
-
]),
|
|
2711
|
+
]), Pi = e.enum([
|
|
2708
2712
|
"time",
|
|
2709
2713
|
"connection",
|
|
2710
2714
|
"client_id",
|
|
2711
2715
|
"user_type",
|
|
2712
2716
|
"event"
|
|
2713
|
-
]),
|
|
2717
|
+
]), Fi = e.enum([
|
|
2714
2718
|
"password",
|
|
2715
2719
|
"social",
|
|
2716
2720
|
"passwordless",
|
|
2717
2721
|
"enterprise"
|
|
2718
|
-
]),
|
|
2722
|
+
]), Ii = e.object({
|
|
2719
2723
|
cohort: e.string(),
|
|
2720
2724
|
sessions: e.number(),
|
|
2721
2725
|
active: e.array(e.number())
|
|
2722
|
-
}),
|
|
2726
|
+
}), Li = e.object({
|
|
2723
2727
|
interval: e.literal("week"),
|
|
2724
2728
|
from: e.string(),
|
|
2725
2729
|
to: e.string(),
|
|
2726
|
-
cohorts: e.array(
|
|
2727
|
-
}),
|
|
2730
|
+
cohorts: e.array(Ii)
|
|
2731
|
+
}), Ri = e.object({
|
|
2728
2732
|
cohort: e.string(),
|
|
2729
2733
|
tokens: e.number(),
|
|
2730
2734
|
active: e.array(e.number())
|
|
2731
|
-
}),
|
|
2735
|
+
}), zi = e.object({
|
|
2732
2736
|
interval: e.literal("week"),
|
|
2733
2737
|
from: e.string(),
|
|
2734
2738
|
to: e.string(),
|
|
2735
|
-
cohorts: e.array(
|
|
2736
|
-
}),
|
|
2739
|
+
cohorts: e.array(Ri)
|
|
2740
|
+
}), Bi = e.object({
|
|
2737
2741
|
name: e.string(),
|
|
2738
2742
|
type: e.string()
|
|
2739
|
-
}),
|
|
2743
|
+
}), Vi = e.object({
|
|
2740
2744
|
elapsed: e.number(),
|
|
2741
2745
|
rows_read: e.number().optional(),
|
|
2742
2746
|
bytes_read: e.number().optional()
|
|
2743
|
-
}),
|
|
2744
|
-
meta: e.array(
|
|
2747
|
+
}), Hi = e.object({
|
|
2748
|
+
meta: e.array(Bi),
|
|
2745
2749
|
data: e.array(e.record(e.string(), e.any())),
|
|
2746
2750
|
rows: e.number(),
|
|
2747
2751
|
rows_before_limit_at_least: e.number().optional(),
|
|
2748
|
-
statistics:
|
|
2749
|
-
}),
|
|
2752
|
+
statistics: Vi.optional()
|
|
2753
|
+
}), Ui = 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(".")), Wi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2750
2754
|
type: "object",
|
|
2751
2755
|
additionalProperties: {
|
|
2752
2756
|
type: "object",
|
|
2753
2757
|
additionalProperties: { type: "string" }
|
|
2754
2758
|
}
|
|
2755
|
-
}),
|
|
2756
|
-
prompt:
|
|
2759
|
+
}), Gi = e.object({
|
|
2760
|
+
prompt: Ui,
|
|
2757
2761
|
language: e.string(),
|
|
2758
|
-
custom_text:
|
|
2759
|
-
}),
|
|
2762
|
+
custom_text: Wi
|
|
2763
|
+
}), Ki = {
|
|
2760
2764
|
EMAIL: "email",
|
|
2761
2765
|
SMS: "sms",
|
|
2762
2766
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2772,17 +2776,17 @@ var Er = e.object({
|
|
|
2772
2776
|
WAAD: "waad",
|
|
2773
2777
|
ADFS: "adfs",
|
|
2774
2778
|
OKTA: "okta"
|
|
2775
|
-
},
|
|
2779
|
+
}, qi = {
|
|
2776
2780
|
DATABASE: "database",
|
|
2777
2781
|
SOCIAL: "social",
|
|
2778
2782
|
PASSWORDLESS: "passwordless"
|
|
2779
|
-
},
|
|
2780
|
-
function
|
|
2781
|
-
return e === "auth0" || e ===
|
|
2783
|
+
}, Ji = "auth0";
|
|
2784
|
+
function Yi(e) {
|
|
2785
|
+
return e === "auth0" || e === Ki.USERNAME_PASSWORD || e === "auth2";
|
|
2782
2786
|
}
|
|
2783
2787
|
//#endregion
|
|
2784
2788
|
//#region src/types/AuthenticationMethod.ts
|
|
2785
|
-
var
|
|
2789
|
+
var Xi = e.enum([
|
|
2786
2790
|
"phone",
|
|
2787
2791
|
"totp",
|
|
2788
2792
|
"email",
|
|
@@ -2790,9 +2794,9 @@ var Zi = e.enum([
|
|
|
2790
2794
|
"webauthn-roaming",
|
|
2791
2795
|
"webauthn-platform",
|
|
2792
2796
|
"passkey"
|
|
2793
|
-
]),
|
|
2797
|
+
]), Zi = e.object({
|
|
2794
2798
|
user_id: e.string(),
|
|
2795
|
-
type:
|
|
2799
|
+
type: Xi,
|
|
2796
2800
|
phone_number: e.string().optional(),
|
|
2797
2801
|
totp_secret: e.string().optional(),
|
|
2798
2802
|
credential_id: e.string().optional(),
|
|
@@ -2803,7 +2807,7 @@ var Zi = e.enum([
|
|
|
2803
2807
|
friendly_name: e.string().optional(),
|
|
2804
2808
|
confirmed: e.boolean().default(!1)
|
|
2805
2809
|
});
|
|
2806
|
-
function
|
|
2810
|
+
function Qi(t, n) {
|
|
2807
2811
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2808
2812
|
code: e.ZodIssueCode.custom,
|
|
2809
2813
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2826,15 +2830,15 @@ function $i(t, n) {
|
|
|
2826
2830
|
path: ["public_key"]
|
|
2827
2831
|
}));
|
|
2828
2832
|
}
|
|
2829
|
-
var
|
|
2833
|
+
var $i = Zi.superRefine(Qi), ea = Zi.extend({
|
|
2830
2834
|
id: e.string(),
|
|
2831
2835
|
created_at: e.string(),
|
|
2832
2836
|
updated_at: e.string()
|
|
2833
|
-
}).superRefine(
|
|
2837
|
+
}).superRefine(Qi), ta = e.object({
|
|
2834
2838
|
id: e.string().optional(),
|
|
2835
2839
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2836
2840
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2837
|
-
}),
|
|
2841
|
+
}), na = {
|
|
2838
2842
|
"post-user-login": {
|
|
2839
2843
|
accessToken: ["setCustomClaim"],
|
|
2840
2844
|
idToken: ["setCustomClaim"],
|
|
@@ -2856,17 +2860,17 @@ var ea = Qi.superRefine($i), ta = Qi.extend({
|
|
|
2856
2860
|
};
|
|
2857
2861
|
//#endregion
|
|
2858
2862
|
//#region src/utils/user-id.ts
|
|
2859
|
-
function
|
|
2860
|
-
let
|
|
2861
|
-
if (
|
|
2863
|
+
function ra(e) {
|
|
2864
|
+
let t = e.indexOf("|"), n = e.slice(0, t), r = e.slice(t + 1);
|
|
2865
|
+
if (t === -1 || !n || !r) throw Error(`Invalid user_id: ${e}`);
|
|
2862
2866
|
return {
|
|
2863
|
-
connection:
|
|
2864
|
-
id:
|
|
2867
|
+
connection: n,
|
|
2868
|
+
id: r
|
|
2865
2869
|
};
|
|
2866
2870
|
}
|
|
2867
2871
|
//#endregion
|
|
2868
2872
|
//#region src/utils/passthrough.ts
|
|
2869
|
-
function
|
|
2873
|
+
function ia(e) {
|
|
2870
2874
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2871
2875
|
"create",
|
|
2872
2876
|
"rawCreate",
|
|
@@ -2900,12 +2904,12 @@ function aa(e) {
|
|
|
2900
2904
|
} : i.bind(e) : i;
|
|
2901
2905
|
} });
|
|
2902
2906
|
}
|
|
2903
|
-
function
|
|
2907
|
+
function aa(e) {
|
|
2904
2908
|
return e;
|
|
2905
2909
|
}
|
|
2906
2910
|
//#endregion
|
|
2907
2911
|
//#region src/utils/connection-attributes.ts
|
|
2908
|
-
function
|
|
2912
|
+
function oa(e) {
|
|
2909
2913
|
let t = e?.options;
|
|
2910
2914
|
if (!t) return {
|
|
2911
2915
|
usernameIdentifierActive: !1,
|
|
@@ -2928,53 +2932,53 @@ function sa(e) {
|
|
|
2928
2932
|
}
|
|
2929
2933
|
//#endregion
|
|
2930
2934
|
//#region src/utils/guards.ts
|
|
2931
|
-
function
|
|
2935
|
+
function sa(e) {
|
|
2932
2936
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2933
2937
|
}
|
|
2934
2938
|
//#endregion
|
|
2935
2939
|
//#region src/utils/base64url.ts
|
|
2936
|
-
function
|
|
2940
|
+
function ca(e) {
|
|
2937
2941
|
let t = "";
|
|
2938
2942
|
for (let n of e) t += String.fromCharCode(n);
|
|
2939
2943
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2940
2944
|
}
|
|
2941
|
-
function
|
|
2945
|
+
function la(e) {
|
|
2942
2946
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2943
2947
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2944
2948
|
return r;
|
|
2945
2949
|
}
|
|
2946
|
-
function
|
|
2947
|
-
return
|
|
2950
|
+
function ua(e) {
|
|
2951
|
+
return ca(new TextEncoder().encode(e));
|
|
2948
2952
|
}
|
|
2949
|
-
function
|
|
2950
|
-
return new TextDecoder().decode(
|
|
2953
|
+
function da(e) {
|
|
2954
|
+
return new TextDecoder().decode(la(e));
|
|
2951
2955
|
}
|
|
2952
2956
|
//#endregion
|
|
2953
2957
|
//#region src/utils/base64.ts
|
|
2954
|
-
function
|
|
2958
|
+
function fa(e) {
|
|
2955
2959
|
let t = "";
|
|
2956
2960
|
for (let n of e) t += String.fromCharCode(n);
|
|
2957
2961
|
return btoa(t);
|
|
2958
2962
|
}
|
|
2959
|
-
function
|
|
2963
|
+
function pa(e) {
|
|
2960
2964
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2961
2965
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2962
2966
|
return n;
|
|
2963
2967
|
}
|
|
2964
2968
|
//#endregion
|
|
2965
2969
|
//#region src/utils/base32.ts
|
|
2966
|
-
var
|
|
2967
|
-
function
|
|
2970
|
+
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2971
|
+
function ma(e) {
|
|
2968
2972
|
let t = "", n = 0, r = 0;
|
|
2969
|
-
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t +=
|
|
2970
|
-
return r > 0 && (t +=
|
|
2973
|
+
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
|
|
2974
|
+
return r > 0 && (t += X[n << 5 - r & 31]), t;
|
|
2971
2975
|
}
|
|
2972
|
-
function
|
|
2976
|
+
function ha(e) {
|
|
2973
2977
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2974
2978
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2975
2979
|
let r = [], i = 0, a = 0;
|
|
2976
2980
|
for (let e of t) {
|
|
2977
|
-
let t =
|
|
2981
|
+
let t = X.indexOf(e);
|
|
2978
2982
|
if (t === -1) throw Error(`Invalid base32 character: ${e}`);
|
|
2979
2983
|
i = i << 5 | t, a += 5, a >= 8 && (a -= 8, r.push(i >> a & 255));
|
|
2980
2984
|
}
|
|
@@ -2983,19 +2987,19 @@ function ga(e) {
|
|
|
2983
2987
|
}
|
|
2984
2988
|
//#endregion
|
|
2985
2989
|
//#region src/utils/hex.ts
|
|
2986
|
-
function
|
|
2990
|
+
function ga(e) {
|
|
2987
2991
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2988
2992
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2989
2993
|
return n;
|
|
2990
2994
|
}
|
|
2991
2995
|
//#endregion
|
|
2992
2996
|
//#region src/utils/cursor.ts
|
|
2993
|
-
function
|
|
2994
|
-
return
|
|
2997
|
+
function _a(e) {
|
|
2998
|
+
return ua(JSON.stringify(e));
|
|
2995
2999
|
}
|
|
2996
|
-
function
|
|
3000
|
+
function va(e) {
|
|
2997
3001
|
try {
|
|
2998
|
-
let t = JSON.parse(
|
|
3002
|
+
let t = JSON.parse(da(e));
|
|
2999
3003
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
3000
3004
|
} catch {
|
|
3001
3005
|
return null;
|
|
@@ -3003,7 +3007,7 @@ function ya(e) {
|
|
|
3003
3007
|
}
|
|
3004
3008
|
//#endregion
|
|
3005
3009
|
//#region src/utils/lucene.ts
|
|
3006
|
-
function
|
|
3010
|
+
function ya(e, t) {
|
|
3007
3011
|
let n = new Set(t), r = (e) => {
|
|
3008
3012
|
let t = [], r = "", i = !1;
|
|
3009
3013
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -3019,25 +3023,29 @@ function ba(e, t) {
|
|
|
3019
3023
|
}, i = e.split(/ OR /i);
|
|
3020
3024
|
return i.length > 1 ? i.map(r).filter((e) => e.length > 0).join(" OR ") : r(e);
|
|
3021
3025
|
}
|
|
3026
|
+
var ba = /^[^\s@%_*?"'()[\]{}^~:\\/]+@[^\s@%_*?"'()[\]{}^~:\\/]+\.[^\s@%_*?"'()[\]{}^~:\\/]+$/;
|
|
3027
|
+
function xa(e) {
|
|
3028
|
+
return ba.test(e);
|
|
3029
|
+
}
|
|
3022
3030
|
//#endregion
|
|
3023
3031
|
//#region src/utils/session-retention.ts
|
|
3024
|
-
var
|
|
3025
|
-
function
|
|
3026
|
-
return Math.floor((e +
|
|
3032
|
+
var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
|
|
3033
|
+
function Sa(e) {
|
|
3034
|
+
return Math.floor((e + Q) / Z);
|
|
3027
3035
|
}
|
|
3028
|
-
function
|
|
3029
|
-
return e *
|
|
3036
|
+
function $(e) {
|
|
3037
|
+
return e * Z - Q;
|
|
3030
3038
|
}
|
|
3031
|
-
function
|
|
3032
|
-
let n =
|
|
3039
|
+
function Ca(e, t = Date.now()) {
|
|
3040
|
+
let n = Sa(t), r = n - e + 1;
|
|
3033
3041
|
return {
|
|
3034
3042
|
currentWeek: n,
|
|
3035
3043
|
firstWeek: r,
|
|
3036
|
-
sinceMs:
|
|
3044
|
+
sinceMs: $(r)
|
|
3037
3045
|
};
|
|
3038
3046
|
}
|
|
3039
|
-
function
|
|
3040
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3047
|
+
function wa(e, t, n = Date.now()) {
|
|
3048
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = Ca(t, n), o = /* @__PURE__ */ new Map();
|
|
3041
3049
|
for (let t of e) {
|
|
3042
3050
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3043
3051
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3048,7 +3056,7 @@ function Ca(e, t, n = Date.now()) {
|
|
|
3048
3056
|
let t = o.get(e), n = r - e, i = [], a = 0;
|
|
3049
3057
|
for (let e = n; e >= 0; e--) a += t?.get(e) ?? 0, i[e] = a;
|
|
3050
3058
|
s.push({
|
|
3051
|
-
cohort: new Date(
|
|
3059
|
+
cohort: new Date($(e)).toISOString().slice(0, 10),
|
|
3052
3060
|
sessions: i[0] ?? 0,
|
|
3053
3061
|
active: i
|
|
3054
3062
|
});
|
|
@@ -3060,8 +3068,8 @@ function Ca(e, t, n = Date.now()) {
|
|
|
3060
3068
|
cohorts: s
|
|
3061
3069
|
};
|
|
3062
3070
|
}
|
|
3063
|
-
function
|
|
3064
|
-
let r =
|
|
3071
|
+
function Ta(e, t, n = Date.now()) {
|
|
3072
|
+
let r = wa(e, t, n);
|
|
3065
3073
|
return {
|
|
3066
3074
|
interval: r.interval,
|
|
3067
3075
|
from: r.from,
|
|
@@ -3075,16 +3083,16 @@ function wa(e, t, n = Date.now()) {
|
|
|
3075
3083
|
}
|
|
3076
3084
|
//#endregion
|
|
3077
3085
|
//#region src/utils/username-validation.ts
|
|
3078
|
-
var
|
|
3079
|
-
function
|
|
3080
|
-
return
|
|
3086
|
+
var Ea = /^[A-Za-z0-9_+\-.!#$'^`~]+$/, Da = "Username can only contain alphanumeric characters and the following characters: '_', '+', '-', '.', '!', '#', '$', \"'\", '^', '`', '~'", Oa = "Usernames must not contain \"@\". Use the email field for email addresses.";
|
|
3087
|
+
function ka(e) {
|
|
3088
|
+
return Ea.test(e);
|
|
3081
3089
|
}
|
|
3082
|
-
function
|
|
3090
|
+
function Aa(e) {
|
|
3083
3091
|
return e.toLowerCase();
|
|
3084
3092
|
}
|
|
3085
|
-
function
|
|
3086
|
-
if (e.includes("@")) return
|
|
3087
|
-
if (
|
|
3093
|
+
function ja(e, t) {
|
|
3094
|
+
if (e.includes("@")) return Oa;
|
|
3095
|
+
if (!ka(e)) return Da;
|
|
3088
3096
|
if (t) {
|
|
3089
3097
|
let n = [...e].length;
|
|
3090
3098
|
if (n < t.min) return `Username must be at least ${t.min} characters`;
|
|
@@ -3093,4 +3101,4 @@ function ka(e, t) {
|
|
|
3093
3101
|
return null;
|
|
3094
3102
|
}
|
|
3095
3103
|
//#endregion
|
|
3096
|
-
export { _e as Auth0ActionEnum,
|
|
3104
|
+
export { _e as Auth0ActionEnum, zn as Auth0Client, O as AuthorizationResponseMode, D as AuthorizationResponseType, Ze as CodeChallengeMethod, w as ComponentCategory, C as ComponentType, Ji as DATABASE_CONNECTION_STRATEGY, ve as EmailActionEnum, Gt as FORM_FIELD_TYPES, ge as FlowActionTypeEnum, Cr as GrantType, Bn as LocationInfo, K as LogTypes, An as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Ve as NodeType, Se as RedirectTargetEnum, Ki as Strategy, qi as StrategyType, na as TRIGGER_API_SHAPES, Oa as USERNAME_CONTAINS_AT_MESSAGE, Da as USERNAME_INVALID_CHARACTERS_MESSAGE, Z as WEEK_MS, r as actionDependencySchema, l as actionExecutionErrorSchema, ie as actionExecutionInsertSchema, te as actionExecutionLogEntrySchema, ne as actionExecutionLogsSchema, u as actionExecutionResultSchema, re as actionExecutionSchema, c as actionExecutionStatusSchema, ee as actionExecutionTriggerIdSchema, a as actionInsertSchema, We as actionNodeSchema, s as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, ae as actionVersionInsertSchema, oe as actionVersionSchema, ji as activeUsersResponseSchema, ce as actorSchema, p as addressSchema, sn as allowedTriggersForHook, Bi as analyticsColumnMetaSchema, Pi as analyticsGroupBySchema, Ni as analyticsIntervalSchema, Hi as analyticsQueryResponseSchema, Mi as analyticsResourceSchema, Vi as analyticsStatisticsSchema, Fi as analyticsUserTypeSchema, er as attackProtectionSchema, se as auditCategorySchema, me as auditEventInsertSchema, he as auditEventSchema, pe as auth0ClientSchema, Xe as auth0FlowInsertSchema, Ye as auth0FlowSchema, Ee as auth0QuerySchema, be as auth0UpdateUserActionSchema, ke as auth0UserResponseSchema, et as authParamsSchema, $i as authenticationMethodInsertSchema, ea as authenticationMethodSchema, Xi as authenticationMethodTypeSchema, m as baseUserSchema, Ht as blockComponentSchema, Tr as bordersSchema, tt as brandingSchema, Zn as breachedPasswordDetectionSchema, Qn as bruteForceProtectionSchema, Ta as buildRefreshTokenRetention, wa as buildSessionRetention, Ie as buttonComponentSchema, $e as claimsRequestSchema, v as clientGrantInsertSchema, Pe as clientGrantListSchema, y as clientGrantSchema, _ as clientInsertSchema, x as clientRegistrationTokenInsertSchema, Fe as clientRegistrationTokenSchema, b as clientRegistrationTokenTypeSchema, Ne as clientSchema, rt as codeInsertSchema, it as codeSchema, nt as codeTypeSchema, Er as colorsSchema, $t as componentMessageSchema, Be as componentSchema, ot as connectionInsertSchema, at as connectionOptionsSchema, st as connectionSchema, S as coordinatesSchema, ia as createPassthroughAdapter, aa as createWriteOnlyAdapter, ft as customDomainCertificateUploadSchema, A as customDomainInsertSchema, lt as customDomainSchema, ut as customDomainUpdateSchema, dt as customDomainWithTenantIdSchema, Gi as customTextEntrySchema, Wi as customTextSchema, Ai as dailyStatsSchema, ha as decodeBase32, pa as decodeBase64, la as decodeBase64Url, da as decodeBase64UrlString, va as decodeCursor, Wr as emailProviderSchema, Gr as emailTemplateNameSchema, Kr as emailTemplateSchema, ye as emailVerificationRulesSchema, xe as emailVerifyActionSchema, ma as encodeBase32, fa as encodeBase64, ca as encodeBase64Url, ua as encodeBase64UrlString, _a as encodeCursor, ga as encodeHex, Je as endingSchema, Wt as fieldComponentSchema, d as flowActionStepSchema, we as flowInsertSchema, Te as flowSchema, Re as flowsFieldComponentSchema, Ue as flowsFlowNodeSchema, He as flowsStepNodeSchema, J as fontDetailsSchema, Dr as fontsSchema, Kt as formControlSchema, Zt as formInsertSchema, F as formNodeComponentDefinition, Xt as formNodeSchema, Qt as formSchema, ze as genericComponentSchema, Ge as genericNodeSchema, oa as getConnectionIdentifierConfig, Rn as getLogTypeCategory, Ln as getLogTypeDescription, ai as grantInsertSchema, oi as grantSchema, Pr as handlerConfigSchema, xn as hookCodeInsertSchema, Sn as hookCodeSchema, mn as hookInsertSchema, H as hookPageId, bn as hookSchema, U as hookTemplateId, cn as hookTemplates, f as identitySchema, ta as importMetadataSchema, Tn as inviteInsertSchema, En as inviteSchema, wn as inviteeSchema, Cn as inviterSchema, nn as isBlockComponent, Yi as isDatabaseConnectionStrategy, xa as isEmailSearchTerm, an as isFieldComponent, sa as isPlainObject, rn as isWidgetComponent, On as jwksKeySchema, Dn as jwksSchema, Le as legalComponentSchema, fe as locationInfoSchema, Vn as logInsertSchema, Hn as logSchema, Wn as logStreamFilterSchema, Gn as logStreamInsertSchema, Kn as logStreamSchema, q as logStreamStatusSchema, Un as logStreamTypeSchema, In as logTypeCategories, Fn as logTypeDescriptions, G as loginSessionAuthStrategySchema, Mn as loginSessionInsertSchema, Nn as loginSessionSchema, jn as loginSessionStateSchema, Nr as matchSchema, qn as migrationProviderTypeSchema, Jn as migrationSourceCredentialsSchema, Yn as migrationSourceInsertSchema, Xn as migrationSourceSchema, Ke as nodeSchema, Aa as normalizeUsername, kn as openIDConfigurationSchema, yi as organizationBrandingSchema, wi as organizationConnectionInsertSchema, Ei as organizationConnectionListSchema, Ti as organizationConnectionSchema, bi as organizationEnabledConnectionSchema, Si as organizationInsertSchema, Ci as organizationSchema, xi as organizationTokenQuotaSchema, Or as pageBackgroundSchema, ra as parseUserId, tr as passwordInsertSchema, nr as passwordSchema, Oe as profileDataSchema, Ui as promptScreenSchema, Mr as promptSettingSchema, Y as proxyRouteInsertSchema, Fr as proxyRouteSchema, Ir as proxyRouteUpdateSchema, Ce as redirectActionSchema, qr as refreshTokenInsertSchema, Ri as refreshTokenRetentionCohortSchema, zi as refreshTokenRetentionResponseSchema, Jr as refreshTokenSchema, ue as requestContextSchema, $r as resourceServerInsertSchema, ti as resourceServerListSchema, Qr as resourceServerOptionsSchema, ei as resourceServerSchema, Zr as resourceServerScopeSchema, de as responseContextSchema, E as richTextComponentSchema, gi as roleInsertSchema, vi as roleListSchema, ni as rolePermissionInsertSchema, ii as rolePermissionListSchema, ri as rolePermissionSchema, _i as roleSchema, br as rolloutInsertSchema, vr as rolloutKindSchema, xr as rolloutSchema, yr as rolloutStatusSchema, Sr as rolloutUpdateSchema, ya as sanitizeLuceneQuery, Rr as scimConfigurationInsertSchema, zr as scimConfigurationSchema, Hr as scimExternalIdInsertSchema, Ur as scimExternalIdSchema, Lr as scimMappingEntrySchema, Br as scimTokenInsertSchema, Vr as scimTokenSchema, en as screenLinkSchema, ir as sessionInsertSchema, Ii as sessionRetentionCohortSchema, Li as sessionRetentionResponseSchema, Ca as sessionRetentionWindow, ar as sessionSchema, or as signingKeySchema, Xr as smsProviderSchema, Yr as smsSendParamsSchema, qe as startSchema, $n as suspiciousIpThrottlingSchema, le as targetSchema, sr as tenantInsertSchema, dr as tenantOperationEngineSchema, gr as tenantOperationEventInsertSchema, hr as tenantOperationEventOutcomeSchema, _r as tenantOperationEventSchema, fr as tenantOperationInsertSchema, lr as tenantOperationKindSchema, pr as tenantOperationSchema, ur as tenantOperationStatusSchema, mr as tenantOperationUpdateSchema, cr as tenantSchema, ki as tenantSettingsSchema, Ar as themeInsertSchema, jr as themeSchema, wr as tokenResponseSchema, De as totalsSchema, tn as uiScreenSchema, si as userActivitySchema, h as userInsertSchema, Di as userOrganizationInsertSchema, Oi as userOrganizationSchema, ci as userPermissionInsertSchema, ui as userPermissionListSchema, li as userPermissionSchema, fi as userPermissionWithDetailsListSchema, di as userPermissionWithDetailsSchema, Ae as userResponseSchema, pi as userRoleInsertSchema, hi as userRoleListSchema, mi as userRoleSchema, g as userSchema, ka as usernameHasOnlyAllowedCharacters, ja as validateUsername, ct as verificationMethodsSchema, Sa as weekIndex, $ as weekStartMs, Ut as widgetComponentSchema, kr as widgetSchema };
|