@authhero/adapter-interfaces 3.11.0 → 4.0.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 +83 -4
- package/dist/adapter-interfaces.mjs +454 -407
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/UserRoles.d.ts +19 -0
- package/dist/types/types/Client.d.ts +20 -2
- package/dist/types/types/JWKS.d.ts +2 -0
- package/dist/types/utils/base32.d.ts +16 -0
- package/dist/types/utils/base64.d.ts +13 -0
- package/dist/types/utils/hex.d.ts +8 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -40,16 +40,16 @@ var t = e.object({
|
|
|
40
40
|
"partial",
|
|
41
41
|
"canceled",
|
|
42
42
|
"suspended"
|
|
43
|
-
]),
|
|
43
|
+
]), l = e.object({
|
|
44
44
|
id: e.string(),
|
|
45
45
|
msg: e.string(),
|
|
46
46
|
url: e.string().optional()
|
|
47
|
-
}),
|
|
47
|
+
}), te = e.object({
|
|
48
48
|
action_name: e.string(),
|
|
49
|
-
error:
|
|
49
|
+
error: l.nullable(),
|
|
50
50
|
started_at: e.string(),
|
|
51
51
|
ended_at: e.string()
|
|
52
|
-
}),
|
|
52
|
+
}), ne = e.object({
|
|
53
53
|
level: e.enum([
|
|
54
54
|
"log",
|
|
55
55
|
"info",
|
|
@@ -58,23 +58,23 @@ var t = e.object({
|
|
|
58
58
|
"debug"
|
|
59
59
|
]),
|
|
60
60
|
message: e.string()
|
|
61
|
-
}),
|
|
61
|
+
}), re = e.array(e.object({
|
|
62
62
|
action_name: e.string(),
|
|
63
|
-
lines: e.array(
|
|
64
|
-
})),
|
|
63
|
+
lines: e.array(ne)
|
|
64
|
+
})), ie = e.object({
|
|
65
65
|
id: e.string(),
|
|
66
66
|
tenant_id: e.string(),
|
|
67
67
|
trigger_id: s,
|
|
68
68
|
status: c,
|
|
69
|
-
results: e.array(
|
|
70
|
-
logs:
|
|
69
|
+
results: e.array(te),
|
|
70
|
+
logs: re.optional(),
|
|
71
71
|
created_at: e.string(),
|
|
72
72
|
updated_at: e.string()
|
|
73
|
-
}),
|
|
73
|
+
}), ae = ie.omit({
|
|
74
74
|
tenant_id: !0,
|
|
75
75
|
created_at: !0,
|
|
76
76
|
updated_at: !0
|
|
77
|
-
}),
|
|
77
|
+
}), oe = e.object({
|
|
78
78
|
action_id: e.string(),
|
|
79
79
|
code: e.string().max(1e5),
|
|
80
80
|
runtime: e.string().max(50).optional(),
|
|
@@ -82,16 +82,16 @@ var t = e.object({
|
|
|
82
82
|
secrets: e.array(i).optional(),
|
|
83
83
|
supported_triggers: e.array(n).optional(),
|
|
84
84
|
deployed: e.boolean().default(!0)
|
|
85
|
-
}),
|
|
85
|
+
}), se = oe.extend({
|
|
86
86
|
id: e.string(),
|
|
87
87
|
tenant_id: e.string(),
|
|
88
88
|
number: e.number().int()
|
|
89
|
-
}).extend(t.shape),
|
|
89
|
+
}).extend(t.shape), ce = e.enum([
|
|
90
90
|
"user_action",
|
|
91
91
|
"admin_action",
|
|
92
92
|
"system",
|
|
93
93
|
"api"
|
|
94
|
-
]),
|
|
94
|
+
]), le = e.object({
|
|
95
95
|
type: e.enum([
|
|
96
96
|
"user",
|
|
97
97
|
"admin",
|
|
@@ -105,7 +105,7 @@ var t = e.object({
|
|
|
105
105
|
org_name: e.string().optional(),
|
|
106
106
|
scopes: e.array(e.string()).optional(),
|
|
107
107
|
client_id: e.string().optional()
|
|
108
|
-
}),
|
|
108
|
+
}), ue = e.object({
|
|
109
109
|
type: e.string(),
|
|
110
110
|
id: e.string(),
|
|
111
111
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -114,7 +114,7 @@ var t = e.object({
|
|
|
114
114
|
old: e.unknown(),
|
|
115
115
|
new: e.unknown()
|
|
116
116
|
})).optional()
|
|
117
|
-
}),
|
|
117
|
+
}), de = e.object({
|
|
118
118
|
method: e.string(),
|
|
119
119
|
path: e.string(),
|
|
120
120
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -122,30 +122,30 @@ var t = e.object({
|
|
|
122
122
|
ip: e.string(),
|
|
123
123
|
user_agent: e.string().optional(),
|
|
124
124
|
correlation_id: e.string().optional()
|
|
125
|
-
}),
|
|
125
|
+
}), fe = e.object({
|
|
126
126
|
status_code: e.number(),
|
|
127
127
|
body: e.unknown().optional()
|
|
128
|
-
}),
|
|
128
|
+
}), pe = e.object({
|
|
129
129
|
country_code: e.string(),
|
|
130
130
|
city_name: e.string(),
|
|
131
131
|
latitude: e.string(),
|
|
132
132
|
longitude: e.string(),
|
|
133
133
|
time_zone: e.string(),
|
|
134
134
|
continent_code: e.string()
|
|
135
|
-
}),
|
|
135
|
+
}), me = e.object({
|
|
136
136
|
name: e.string(),
|
|
137
137
|
version: e.string(),
|
|
138
138
|
env: e.record(e.string(), e.string()).optional()
|
|
139
|
-
}),
|
|
139
|
+
}), he = e.object({
|
|
140
140
|
tenant_id: e.string(),
|
|
141
141
|
event_type: e.string(),
|
|
142
142
|
log_type: e.string(),
|
|
143
143
|
description: e.string().optional(),
|
|
144
|
-
category:
|
|
145
|
-
actor:
|
|
146
|
-
target:
|
|
147
|
-
request:
|
|
148
|
-
response:
|
|
144
|
+
category: ce,
|
|
145
|
+
actor: le,
|
|
146
|
+
target: ue,
|
|
147
|
+
request: de,
|
|
148
|
+
response: fe.optional(),
|
|
149
149
|
connection: e.string().optional(),
|
|
150
150
|
connection_id: e.string().optional(),
|
|
151
151
|
client_name: e.string().optional(),
|
|
@@ -153,12 +153,12 @@ var t = e.object({
|
|
|
153
153
|
strategy_type: e.string().optional(),
|
|
154
154
|
audience: e.string().optional(),
|
|
155
155
|
scope: e.string().optional(),
|
|
156
|
-
location:
|
|
157
|
-
auth0_client:
|
|
156
|
+
location: pe.optional(),
|
|
157
|
+
auth0_client: me.optional(),
|
|
158
158
|
hostname: e.string(),
|
|
159
159
|
is_mobile: e.boolean().optional(),
|
|
160
160
|
timestamp: e.string()
|
|
161
|
-
}), ge =
|
|
161
|
+
}), ge = he.extend({ id: e.string() }), _e = e.enum([
|
|
162
162
|
"AUTH0",
|
|
163
163
|
"EMAIL",
|
|
164
164
|
"REDIRECT"
|
|
@@ -244,7 +244,7 @@ var t = e.object({
|
|
|
244
244
|
phone_number: e.string().optional(),
|
|
245
245
|
phone_verified: e.boolean().optional(),
|
|
246
246
|
family_name: e.string().optional()
|
|
247
|
-
}).catchall(e.any()),
|
|
247
|
+
}).catchall(e.any()), v = e.object({
|
|
248
248
|
connection: e.string(),
|
|
249
249
|
user_id: e.string(),
|
|
250
250
|
provider: e.string(),
|
|
@@ -258,14 +258,14 @@ var t = e.object({
|
|
|
258
258
|
access_token_secret: e.string().optional(),
|
|
259
259
|
refresh_token: e.string().optional(),
|
|
260
260
|
profileData: _.optional()
|
|
261
|
-
}),
|
|
261
|
+
}), y = e.object({
|
|
262
262
|
formatted: e.string().optional(),
|
|
263
263
|
street_address: e.string().optional(),
|
|
264
264
|
locality: e.string().optional(),
|
|
265
265
|
region: e.string().optional(),
|
|
266
266
|
postal_code: e.string().optional(),
|
|
267
267
|
country: e.string().optional()
|
|
268
|
-
}).optional(),
|
|
268
|
+
}).optional(), b = e.object({
|
|
269
269
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
270
270
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
271
271
|
phone_number: e.string().optional(),
|
|
@@ -288,8 +288,8 @@ var t = e.object({
|
|
|
288
288
|
gender: e.string().optional(),
|
|
289
289
|
birthdate: e.string().optional(),
|
|
290
290
|
zoneinfo: e.string().optional(),
|
|
291
|
-
address:
|
|
292
|
-
}),
|
|
291
|
+
address: y
|
|
292
|
+
}), x = b.extend({
|
|
293
293
|
email_verified: e.boolean().default(!1),
|
|
294
294
|
verify_email: e.boolean().optional(),
|
|
295
295
|
last_ip: e.string().optional(),
|
|
@@ -303,29 +303,29 @@ var t = e.object({
|
|
|
303
303
|
hash: e.string(),
|
|
304
304
|
algorithm: e.string()
|
|
305
305
|
}).optional()
|
|
306
|
-
}),
|
|
306
|
+
}), S = x.omit({ password: !0 }).extend(t.shape).extend({
|
|
307
307
|
user_id: e.string(),
|
|
308
308
|
provider: e.string(),
|
|
309
309
|
is_social: e.boolean(),
|
|
310
310
|
email: e.string().optional(),
|
|
311
311
|
login_count: e.number().default(0),
|
|
312
|
-
identities: e.array(
|
|
313
|
-
}),
|
|
312
|
+
identities: e.array(v).optional()
|
|
313
|
+
}), Ce = S.omit({ registration_completed_at: !0 }), we = b.extend({
|
|
314
314
|
login_count: e.number(),
|
|
315
315
|
multifactor: e.array(e.string()).optional(),
|
|
316
316
|
last_ip: e.string().optional(),
|
|
317
317
|
last_login: e.string().optional(),
|
|
318
318
|
user_id: e.string()
|
|
319
|
-
}).catchall(e.any()),
|
|
319
|
+
}).catchall(e.any()), Te = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ee = (e = 21) => {
|
|
320
320
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
321
|
-
for (; e--;) t +=
|
|
321
|
+
for (; e--;) t += Te[n[e] & 63];
|
|
322
322
|
return t;
|
|
323
|
-
},
|
|
323
|
+
}, C = e.object({
|
|
324
324
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
325
325
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
326
326
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
327
327
|
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)." }),
|
|
328
|
-
client_secret: e.string().default(() =>
|
|
328
|
+
client_secret: e.string().default(() => Ee()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
329
329
|
app_type: e.enum([
|
|
330
330
|
"native",
|
|
331
331
|
"spa",
|
|
@@ -365,7 +365,13 @@ var t = e.object({
|
|
|
365
365
|
connections: e.array(e.string()).default([]).optional().openapi({ description: "List of connection IDs enabled for this client. The order determines the display order on the login page." }),
|
|
366
366
|
allowed_logout_urls: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains." }),
|
|
367
367
|
session_transfer: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Native to Web SSO Configuration" }),
|
|
368
|
-
oidc_logout: e.
|
|
368
|
+
oidc_logout: e.object({
|
|
369
|
+
backchannel_logout_urls: e.array(e.string()).optional().openapi({ description: "URLs that receive a signed OIDC Back-Channel Logout 1.0 logout token when a session this client participated in ends." }),
|
|
370
|
+
backchannel_logout_initiators: e.object({
|
|
371
|
+
mode: e.enum(["all", "custom"]).optional().openapi({ description: "Whether all session-end events initiate a backchannel logout (all) or only the selected_initiators (custom)." }),
|
|
372
|
+
selected_initiators: e.array(e.string()).optional().openapi({ description: "Logout initiators that trigger a backchannel logout when mode is custom (e.g. rp-logout, idp-logout, password-changed)." })
|
|
373
|
+
}).passthrough().optional().openapi({ description: "Controls which session-end events initiate backchannel logout notifications. Stored for Auth0 compatibility; not yet enforced — all initiators currently notify." })
|
|
374
|
+
}).passthrough().default({}).optional().openapi({ description: "Configuration for OIDC backchannel logout" }),
|
|
369
375
|
grant_types: e.array(e.string()).default([]).optional().openapi({ description: "List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code." }),
|
|
370
376
|
jwt_configuration: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Configuration related to JWTs for the client." }),
|
|
371
377
|
signing_keys: e.array(e.record(e.string(), e.any())).default([]).optional().openapi({ description: "Signing certificates associated with this client." }),
|
|
@@ -432,10 +438,10 @@ var t = e.object({
|
|
|
432
438
|
]).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." }),
|
|
433
439
|
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." }),
|
|
434
440
|
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." })
|
|
435
|
-
}),
|
|
441
|
+
}), De = e.object({
|
|
436
442
|
created_at: e.string(),
|
|
437
443
|
updated_at: e.string()
|
|
438
|
-
}).extend(
|
|
444
|
+
}).extend(C.shape).extend({ client_id: e.string() }), w = e.object({
|
|
439
445
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
440
446
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
441
447
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -448,38 +454,38 @@ var t = e.object({
|
|
|
448
454
|
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." }),
|
|
449
455
|
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." }),
|
|
450
456
|
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." })
|
|
451
|
-
}),
|
|
457
|
+
}), T = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(w.shape).extend({
|
|
452
458
|
created_at: e.string().optional(),
|
|
453
459
|
updated_at: e.string().optional()
|
|
454
|
-
}),
|
|
460
|
+
}), Oe = e.array(T), E = e.enum(["iat", "rat"]), D = e.object({
|
|
455
461
|
id: e.string(),
|
|
456
462
|
token_hash: e.string(),
|
|
457
|
-
type:
|
|
463
|
+
type: E,
|
|
458
464
|
client_id: e.string().optional(),
|
|
459
465
|
sub: e.string().optional(),
|
|
460
466
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
461
467
|
single_use: e.boolean().default(!1),
|
|
462
468
|
expires_at: e.string().optional()
|
|
463
|
-
}),
|
|
469
|
+
}), ke = e.object({
|
|
464
470
|
created_at: e.string(),
|
|
465
471
|
used_at: e.string().optional(),
|
|
466
472
|
revoked_at: e.string().optional()
|
|
467
|
-
}).extend(
|
|
473
|
+
}).extend(D.shape), O = e.object({
|
|
468
474
|
x: e.number(),
|
|
469
475
|
y: e.number()
|
|
470
|
-
}),
|
|
476
|
+
}), k = /* @__PURE__ */ function(e) {
|
|
471
477
|
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;
|
|
472
|
-
}({}),
|
|
478
|
+
}({}), A = /* @__PURE__ */ function(e) {
|
|
473
479
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
474
|
-
}({}),
|
|
480
|
+
}({}), j = e.object({
|
|
475
481
|
id: e.string(),
|
|
476
|
-
category: e.nativeEnum(
|
|
477
|
-
type: e.nativeEnum(
|
|
478
|
-
}),
|
|
482
|
+
category: e.nativeEnum(A),
|
|
483
|
+
type: e.nativeEnum(k)
|
|
484
|
+
}), M = j.extend({
|
|
479
485
|
category: e.literal("BLOCK"),
|
|
480
486
|
type: e.literal("RICH_TEXT"),
|
|
481
487
|
config: e.object({ content: e.string() }).passthrough()
|
|
482
|
-
}),
|
|
488
|
+
}), N = j.extend({
|
|
483
489
|
category: e.literal("BLOCK"),
|
|
484
490
|
type: e.union([
|
|
485
491
|
e.literal("NEXT_BUTTON"),
|
|
@@ -487,13 +493,13 @@ var t = e.object({
|
|
|
487
493
|
e.literal("SUBMIT_BUTTON")
|
|
488
494
|
]),
|
|
489
495
|
config: e.object({ text: e.string() }).passthrough()
|
|
490
|
-
}),
|
|
496
|
+
}), P = j.extend({
|
|
491
497
|
category: e.literal("FIELD"),
|
|
492
498
|
type: e.literal("LEGAL"),
|
|
493
499
|
required: e.boolean().optional(),
|
|
494
500
|
sensitive: e.boolean().optional(),
|
|
495
501
|
config: e.object({ text: e.string() }).passthrough()
|
|
496
|
-
}),
|
|
502
|
+
}), F = j.extend({
|
|
497
503
|
category: e.literal("FIELD"),
|
|
498
504
|
type: e.union([
|
|
499
505
|
e.literal("TEXT"),
|
|
@@ -513,40 +519,40 @@ var t = e.object({
|
|
|
513
519
|
label: e.string().optional(),
|
|
514
520
|
placeholder: e.string().optional()
|
|
515
521
|
}).passthrough()
|
|
516
|
-
}),
|
|
522
|
+
}), I = e.object({
|
|
517
523
|
id: e.string(),
|
|
518
524
|
category: e.string(),
|
|
519
525
|
type: e.string()
|
|
520
|
-
}).passthrough(),
|
|
521
|
-
j,
|
|
526
|
+
}).passthrough(), L = e.union([
|
|
522
527
|
M,
|
|
523
528
|
N,
|
|
524
529
|
P,
|
|
525
|
-
F
|
|
526
|
-
|
|
530
|
+
F,
|
|
531
|
+
I
|
|
532
|
+
]), Ae = /* @__PURE__ */ function(e) {
|
|
527
533
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
528
|
-
}({}),
|
|
534
|
+
}({}), R = e.object({
|
|
529
535
|
id: e.string(),
|
|
530
536
|
type: e.literal("STEP"),
|
|
531
|
-
coordinates:
|
|
537
|
+
coordinates: O,
|
|
532
538
|
alias: e.string().optional(),
|
|
533
539
|
config: e.object({
|
|
534
|
-
components: e.array(
|
|
540
|
+
components: e.array(L),
|
|
535
541
|
next_node: e.string()
|
|
536
542
|
}).passthrough()
|
|
537
|
-
}),
|
|
543
|
+
}), je = e.object({
|
|
538
544
|
id: e.string(),
|
|
539
545
|
type: e.literal("FLOW"),
|
|
540
|
-
coordinates:
|
|
546
|
+
coordinates: O,
|
|
541
547
|
alias: e.string().optional(),
|
|
542
548
|
config: e.object({
|
|
543
549
|
flow_id: e.string(),
|
|
544
550
|
next_node: e.string()
|
|
545
551
|
})
|
|
546
|
-
}),
|
|
552
|
+
}), Me = e.object({
|
|
547
553
|
id: e.string(),
|
|
548
554
|
type: e.literal("ACTION"),
|
|
549
|
-
coordinates:
|
|
555
|
+
coordinates: O,
|
|
550
556
|
alias: e.string().optional(),
|
|
551
557
|
config: e.object({
|
|
552
558
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -558,56 +564,56 @@ var t = e.object({
|
|
|
558
564
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
559
565
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
560
566
|
}).passthrough()
|
|
561
|
-
}),
|
|
567
|
+
}), Ne = e.object({
|
|
562
568
|
id: e.string(),
|
|
563
569
|
type: e.string(),
|
|
564
|
-
coordinates:
|
|
565
|
-
}).passthrough(),
|
|
566
|
-
|
|
570
|
+
coordinates: O
|
|
571
|
+
}).passthrough(), Pe = e.union([
|
|
572
|
+
R,
|
|
573
|
+
je,
|
|
567
574
|
Me,
|
|
568
|
-
Ne
|
|
569
|
-
|
|
570
|
-
]), Ie = e.object({
|
|
575
|
+
Ne
|
|
576
|
+
]), Fe = e.object({
|
|
571
577
|
next_node: e.string(),
|
|
572
|
-
coordinates:
|
|
573
|
-
}).passthrough(),
|
|
578
|
+
coordinates: O
|
|
579
|
+
}).passthrough(), Ie = e.object({
|
|
574
580
|
resume_flow: e.boolean().optional(),
|
|
575
|
-
coordinates:
|
|
576
|
-
}).passthrough(),
|
|
581
|
+
coordinates: O
|
|
582
|
+
}).passthrough(), Le = e.object({
|
|
577
583
|
id: e.string(),
|
|
578
584
|
name: e.string(),
|
|
579
585
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
580
|
-
nodes: e.array(
|
|
581
|
-
start:
|
|
582
|
-
ending:
|
|
586
|
+
nodes: e.array(Pe),
|
|
587
|
+
start: Fe,
|
|
588
|
+
ending: Ie,
|
|
583
589
|
created_at: e.string(),
|
|
584
590
|
updated_at: e.string(),
|
|
585
591
|
links: e.object({
|
|
586
592
|
sdkSrc: e.string().optional(),
|
|
587
593
|
sdk_src: e.string().optional()
|
|
588
594
|
}).passthrough()
|
|
589
|
-
}).passthrough(),
|
|
595
|
+
}).passthrough(), Re = Le.omit({
|
|
590
596
|
id: !0,
|
|
591
597
|
created_at: !0,
|
|
592
598
|
updated_at: !0
|
|
593
|
-
}),
|
|
599
|
+
}), ze = /* @__PURE__ */ function(e) {
|
|
594
600
|
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;
|
|
595
|
-
}({}),
|
|
601
|
+
}({}), Be = /* @__PURE__ */ function(e) {
|
|
596
602
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
597
|
-
}({}),
|
|
603
|
+
}({}), Ve = /* @__PURE__ */ function(e) {
|
|
598
604
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
599
|
-
}({}),
|
|
605
|
+
}({}), He = e.union([e.null(), e.object({
|
|
600
606
|
essential: e.boolean().optional(),
|
|
601
607
|
value: e.unknown().optional(),
|
|
602
608
|
values: e.array(e.unknown()).optional()
|
|
603
|
-
})]).nullable(),
|
|
604
|
-
userinfo: e.record(e.string(),
|
|
605
|
-
id_token: e.record(e.string(),
|
|
606
|
-
}),
|
|
609
|
+
})]).nullable(), Ue = e.object({
|
|
610
|
+
userinfo: e.record(e.string(), He).optional(),
|
|
611
|
+
id_token: e.record(e.string(), He).optional()
|
|
612
|
+
}), We = e.object({
|
|
607
613
|
client_id: e.string(),
|
|
608
614
|
act_as: e.string().optional(),
|
|
609
|
-
response_type: e.nativeEnum(
|
|
610
|
-
response_mode: e.nativeEnum(
|
|
615
|
+
response_type: e.nativeEnum(ze).optional(),
|
|
616
|
+
response_mode: e.nativeEnum(Be).optional(),
|
|
611
617
|
redirect_uri: e.string().optional(),
|
|
612
618
|
audience: e.string().optional(),
|
|
613
619
|
organization: e.string().optional(),
|
|
@@ -615,15 +621,15 @@ var t = e.object({
|
|
|
615
621
|
nonce: e.string().optional(),
|
|
616
622
|
scope: e.string().optional(),
|
|
617
623
|
prompt: e.string().optional(),
|
|
618
|
-
code_challenge_method: e.nativeEnum(
|
|
624
|
+
code_challenge_method: e.nativeEnum(Ve).optional(),
|
|
619
625
|
code_challenge: e.string().optional(),
|
|
620
626
|
username: e.string().optional(),
|
|
621
627
|
ui_locales: e.string().optional(),
|
|
622
628
|
max_age: e.number().optional(),
|
|
623
629
|
acr_values: e.string().optional(),
|
|
624
|
-
claims:
|
|
630
|
+
claims: Ue.optional(),
|
|
625
631
|
vendor_id: e.string().optional()
|
|
626
|
-
}),
|
|
632
|
+
}), Ge = e.object({
|
|
627
633
|
colors: e.object({
|
|
628
634
|
primary: e.string(),
|
|
629
635
|
page_background: e.union([e.string(), e.object({
|
|
@@ -642,7 +648,7 @@ var t = e.object({
|
|
|
642
648
|
"light",
|
|
643
649
|
"auto"
|
|
644
650
|
]).optional()
|
|
645
|
-
}),
|
|
651
|
+
}), Ke = e.enum([
|
|
646
652
|
"password_reset",
|
|
647
653
|
"email_verification",
|
|
648
654
|
"otp",
|
|
@@ -650,11 +656,11 @@ var t = e.object({
|
|
|
650
656
|
"authorization_code",
|
|
651
657
|
"oauth2_state",
|
|
652
658
|
"ticket"
|
|
653
|
-
]),
|
|
659
|
+
]), qe = e.object({
|
|
654
660
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
655
661
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
656
662
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
657
|
-
code_type:
|
|
663
|
+
code_type: Ke,
|
|
658
664
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
659
665
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
660
666
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -665,7 +671,7 @@ var t = e.object({
|
|
|
665
671
|
expires_at: e.string(),
|
|
666
672
|
used_at: e.string().optional(),
|
|
667
673
|
user_id: e.string().optional()
|
|
668
|
-
}),
|
|
674
|
+
}), Je = qe.extend({ created_at: e.string() }), Ye = e.object({
|
|
669
675
|
kid: e.string().optional(),
|
|
670
676
|
team_id: e.string().optional(),
|
|
671
677
|
realms: e.string().optional(),
|
|
@@ -781,23 +787,23 @@ var t = e.object({
|
|
|
781
787
|
"never_on_login"
|
|
782
788
|
]).optional()
|
|
783
789
|
});
|
|
784
|
-
function
|
|
790
|
+
function z(e) {
|
|
785
791
|
if (e !== null) {
|
|
786
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
792
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(z);
|
|
787
793
|
if (e && typeof e == "object") {
|
|
788
794
|
let t = {};
|
|
789
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
795
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = z(r));
|
|
790
796
|
return t;
|
|
791
797
|
}
|
|
792
798
|
return e;
|
|
793
799
|
}
|
|
794
800
|
}
|
|
795
|
-
var
|
|
801
|
+
var Xe = e.object({
|
|
796
802
|
id: e.string().optional(),
|
|
797
803
|
name: e.string(),
|
|
798
804
|
display_name: e.string().optional(),
|
|
799
805
|
strategy: e.string(),
|
|
800
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
806
|
+
options: e.preprocess((e) => e === null ? {} : z(e), Ye).default({}),
|
|
801
807
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
802
808
|
response_type: e.custom().optional(),
|
|
803
809
|
response_mode: e.custom().optional(),
|
|
@@ -805,11 +811,11 @@ var Ze = e.object({
|
|
|
805
811
|
show_as_button: e.boolean().optional(),
|
|
806
812
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
807
813
|
is_system: e.boolean().optional()
|
|
808
|
-
}),
|
|
814
|
+
}), Ze = e.object({
|
|
809
815
|
id: e.string(),
|
|
810
816
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
811
817
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
812
|
-
}).extend(
|
|
818
|
+
}).extend(Xe.shape), B = e.object({
|
|
813
819
|
domain: e.string(),
|
|
814
820
|
custom_domain_id: e.string().optional(),
|
|
815
821
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -823,7 +829,7 @@ var Ze = e.object({
|
|
|
823
829
|
"null"
|
|
824
830
|
]).optional(),
|
|
825
831
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
826
|
-
}),
|
|
832
|
+
}), Qe = e.discriminatedUnion("name", [e.object({
|
|
827
833
|
name: e.literal("txt"),
|
|
828
834
|
record: e.string(),
|
|
829
835
|
domain: e.string()
|
|
@@ -831,7 +837,7 @@ var Ze = e.object({
|
|
|
831
837
|
name: e.literal("http"),
|
|
832
838
|
http_body: e.string(),
|
|
833
839
|
http_url: e.string()
|
|
834
|
-
})]),
|
|
840
|
+
})]), $e = B.extend({
|
|
835
841
|
custom_domain_id: e.string(),
|
|
836
842
|
primary: e.boolean(),
|
|
837
843
|
status: e.enum([
|
|
@@ -841,26 +847,26 @@ var Ze = e.object({
|
|
|
841
847
|
"ready"
|
|
842
848
|
]),
|
|
843
849
|
origin_domain_name: e.string().optional(),
|
|
844
|
-
verification: e.object({ methods: e.array(
|
|
850
|
+
verification: e.object({ methods: e.array(Qe) }).optional(),
|
|
845
851
|
tls_policy: e.string().optional()
|
|
846
|
-
}),
|
|
852
|
+
}), et = B.pick({
|
|
847
853
|
tls_policy: !0,
|
|
848
854
|
custom_client_ip_header: !0,
|
|
849
855
|
domain_metadata: !0
|
|
850
|
-
}).strict(),
|
|
856
|
+
}).strict(), tt = $e.extend({ tenant_id: e.string() }), nt = e.object({
|
|
851
857
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
852
858
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
853
|
-
}),
|
|
859
|
+
}), V = e.object({
|
|
854
860
|
id: e.string(),
|
|
855
861
|
order: e.number().optional(),
|
|
856
862
|
visible: e.boolean().optional().default(!0)
|
|
857
|
-
}),
|
|
863
|
+
}), H = V.extend({ category: e.literal("BLOCK").optional() }), rt = H.extend({
|
|
858
864
|
type: e.literal("DIVIDER"),
|
|
859
865
|
config: e.object({ text: e.string().optional() }).optional()
|
|
860
|
-
}),
|
|
866
|
+
}), it = H.extend({
|
|
861
867
|
type: e.literal("HTML"),
|
|
862
868
|
config: e.object({ content: e.string().optional() }).optional()
|
|
863
|
-
}),
|
|
869
|
+
}), at = H.extend({
|
|
864
870
|
type: e.literal("IMAGE"),
|
|
865
871
|
config: e.object({
|
|
866
872
|
src: e.string().optional(),
|
|
@@ -868,43 +874,43 @@ var Ze = e.object({
|
|
|
868
874
|
width: e.number().optional(),
|
|
869
875
|
height: e.number().optional()
|
|
870
876
|
}).optional()
|
|
871
|
-
}),
|
|
877
|
+
}), ot = H.extend({
|
|
872
878
|
type: e.literal("JUMP_BUTTON"),
|
|
873
879
|
config: e.object({
|
|
874
880
|
text: e.string().optional(),
|
|
875
881
|
target_step: e.string().optional()
|
|
876
882
|
})
|
|
877
|
-
}),
|
|
883
|
+
}), st = H.extend({
|
|
878
884
|
type: e.literal("RESEND_BUTTON"),
|
|
879
885
|
config: e.object({
|
|
880
886
|
text: e.string().optional(),
|
|
881
887
|
resend_action: e.string().optional()
|
|
882
888
|
})
|
|
883
|
-
}),
|
|
889
|
+
}), ct = H.extend({
|
|
884
890
|
type: e.literal("NEXT_BUTTON"),
|
|
885
891
|
config: e.object({ text: e.string().optional() })
|
|
886
|
-
}),
|
|
892
|
+
}), lt = H.extend({
|
|
887
893
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
888
894
|
config: e.object({ text: e.string().optional() })
|
|
889
|
-
}),
|
|
895
|
+
}), ut = H.extend({
|
|
890
896
|
type: e.literal("RICH_TEXT"),
|
|
891
897
|
config: e.object({ content: e.string().optional() }).optional()
|
|
892
|
-
}),
|
|
898
|
+
}), U = V.extend({
|
|
893
899
|
category: e.literal("WIDGET").optional(),
|
|
894
900
|
label: e.string().min(1).optional(),
|
|
895
901
|
hint: e.string().min(1).max(500).optional(),
|
|
896
902
|
required: e.boolean().optional(),
|
|
897
903
|
sensitive: e.boolean().optional()
|
|
898
|
-
}),
|
|
904
|
+
}), dt = U.extend({
|
|
899
905
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
900
906
|
config: e.object({ credential_type: e.string().optional() })
|
|
901
|
-
}),
|
|
907
|
+
}), ft = U.extend({
|
|
902
908
|
type: e.literal("GMAPS_ADDRESS"),
|
|
903
909
|
config: e.object({ api_key: e.string().optional() })
|
|
904
|
-
}),
|
|
910
|
+
}), pt = U.extend({
|
|
905
911
|
type: e.literal("RECAPTCHA"),
|
|
906
912
|
config: e.object({ site_key: e.string().optional() })
|
|
907
|
-
}),
|
|
913
|
+
}), W = V.extend({
|
|
908
914
|
category: e.literal("FIELD").optional(),
|
|
909
915
|
label: e.string().min(1).optional(),
|
|
910
916
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -920,10 +926,10 @@ var Ze = e.object({
|
|
|
920
926
|
})).optional(),
|
|
921
927
|
required: e.boolean().optional(),
|
|
922
928
|
sensitive: e.boolean().optional()
|
|
923
|
-
}),
|
|
929
|
+
}), mt = W.extend({
|
|
924
930
|
type: e.literal("BOOLEAN"),
|
|
925
931
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
926
|
-
}),
|
|
932
|
+
}), ht = W.extend({
|
|
927
933
|
type: e.literal("CARDS"),
|
|
928
934
|
config: e.object({
|
|
929
935
|
options: e.array(e.object({
|
|
@@ -934,7 +940,7 @@ var Ze = e.object({
|
|
|
934
940
|
})).optional(),
|
|
935
941
|
multi_select: e.boolean().optional()
|
|
936
942
|
}).optional()
|
|
937
|
-
}),
|
|
943
|
+
}), gt = W.extend({
|
|
938
944
|
type: e.literal("CHOICE"),
|
|
939
945
|
config: e.object({
|
|
940
946
|
options: e.array(e.object({
|
|
@@ -945,7 +951,7 @@ var Ze = e.object({
|
|
|
945
951
|
multiple: e.boolean().optional(),
|
|
946
952
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
947
953
|
}).optional()
|
|
948
|
-
}),
|
|
954
|
+
}), _t = W.extend({
|
|
949
955
|
type: e.literal("CODE"),
|
|
950
956
|
config: e.object({
|
|
951
957
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -962,7 +968,7 @@ var Ze = e.object({
|
|
|
962
968
|
message: "default_value is longer than the configured length",
|
|
963
969
|
path: ["default_value"]
|
|
964
970
|
}).optional()
|
|
965
|
-
}),
|
|
971
|
+
}), vt = W.extend({
|
|
966
972
|
type: e.literal("CUSTOM"),
|
|
967
973
|
config: e.object({
|
|
968
974
|
component: e.string().optional(),
|
|
@@ -970,7 +976,7 @@ var Ze = e.object({
|
|
|
970
976
|
schema: e.record(e.string(), e.any()).optional(),
|
|
971
977
|
code: e.string().optional()
|
|
972
978
|
})
|
|
973
|
-
}),
|
|
979
|
+
}), yt = W.extend({
|
|
974
980
|
type: e.literal("DATE"),
|
|
975
981
|
config: e.object({
|
|
976
982
|
format: e.string().optional(),
|
|
@@ -978,7 +984,7 @@ var Ze = e.object({
|
|
|
978
984
|
max: e.string().optional(),
|
|
979
985
|
default_value: e.string().optional()
|
|
980
986
|
}).optional()
|
|
981
|
-
}),
|
|
987
|
+
}), bt = W.extend({
|
|
982
988
|
type: e.literal("DROPDOWN"),
|
|
983
989
|
config: e.object({
|
|
984
990
|
options: e.array(e.object({
|
|
@@ -990,26 +996,26 @@ var Ze = e.object({
|
|
|
990
996
|
multiple: e.boolean().optional(),
|
|
991
997
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
992
998
|
}).optional()
|
|
993
|
-
}),
|
|
999
|
+
}), xt = W.extend({
|
|
994
1000
|
type: e.literal("EMAIL"),
|
|
995
1001
|
config: e.object({
|
|
996
1002
|
placeholder: e.string().optional(),
|
|
997
1003
|
default_value: e.string().optional()
|
|
998
1004
|
}).optional()
|
|
999
|
-
}),
|
|
1005
|
+
}), St = W.extend({
|
|
1000
1006
|
type: e.literal("FILE"),
|
|
1001
1007
|
config: e.object({
|
|
1002
1008
|
accept: e.string().optional(),
|
|
1003
1009
|
max_size: e.number().optional(),
|
|
1004
1010
|
multiple: e.boolean().optional()
|
|
1005
1011
|
}).optional()
|
|
1006
|
-
}),
|
|
1012
|
+
}), Ct = W.extend({
|
|
1007
1013
|
type: e.literal("LEGAL"),
|
|
1008
1014
|
config: e.object({
|
|
1009
1015
|
text: e.string(),
|
|
1010
1016
|
html: e.boolean().optional()
|
|
1011
1017
|
}).optional()
|
|
1012
|
-
}),
|
|
1018
|
+
}), wt = W.extend({
|
|
1013
1019
|
type: e.literal("NUMBER"),
|
|
1014
1020
|
config: e.object({
|
|
1015
1021
|
placeholder: e.string().optional(),
|
|
@@ -1018,7 +1024,7 @@ var Ze = e.object({
|
|
|
1018
1024
|
step: e.number().optional(),
|
|
1019
1025
|
default_value: e.string().optional()
|
|
1020
1026
|
}).optional()
|
|
1021
|
-
}),
|
|
1027
|
+
}), Tt = W.extend({
|
|
1022
1028
|
type: e.literal("PASSWORD"),
|
|
1023
1029
|
config: e.object({
|
|
1024
1030
|
placeholder: e.string().optional(),
|
|
@@ -1027,13 +1033,13 @@ var Ze = e.object({
|
|
|
1027
1033
|
forgot_password_link: e.string().optional(),
|
|
1028
1034
|
default_value: e.string().optional()
|
|
1029
1035
|
}).optional()
|
|
1030
|
-
}),
|
|
1036
|
+
}), Et = W.extend({
|
|
1031
1037
|
type: e.literal("PAYMENT"),
|
|
1032
1038
|
config: e.object({
|
|
1033
1039
|
provider: e.string().optional(),
|
|
1034
1040
|
currency: e.string().optional()
|
|
1035
1041
|
}).optional()
|
|
1036
|
-
}),
|
|
1042
|
+
}), Dt = W.extend({
|
|
1037
1043
|
type: e.literal("SOCIAL"),
|
|
1038
1044
|
config: e.object({
|
|
1039
1045
|
providers: e.array(e.string()).optional(),
|
|
@@ -1045,7 +1051,7 @@ var Ze = e.object({
|
|
|
1045
1051
|
href: e.string().optional()
|
|
1046
1052
|
})).optional()
|
|
1047
1053
|
}).optional()
|
|
1048
|
-
}),
|
|
1054
|
+
}), Ot = W.extend({
|
|
1049
1055
|
type: e.literal("TEL"),
|
|
1050
1056
|
config: e.object({
|
|
1051
1057
|
placeholder: e.string().optional(),
|
|
@@ -1053,7 +1059,7 @@ var Ze = e.object({
|
|
|
1053
1059
|
default_value: e.string().optional(),
|
|
1054
1060
|
allow_email: e.boolean().optional()
|
|
1055
1061
|
}).optional()
|
|
1056
|
-
}),
|
|
1062
|
+
}), kt = W.extend({
|
|
1057
1063
|
type: e.literal("TEXT"),
|
|
1058
1064
|
config: e.object({
|
|
1059
1065
|
placeholder: e.string().optional(),
|
|
@@ -1061,37 +1067,38 @@ var Ze = e.object({
|
|
|
1061
1067
|
max_length: e.number().optional(),
|
|
1062
1068
|
default_value: e.string().optional()
|
|
1063
1069
|
}).optional()
|
|
1064
|
-
}),
|
|
1070
|
+
}), At = W.extend({
|
|
1065
1071
|
type: e.literal("COUNTRY"),
|
|
1066
1072
|
config: e.object({
|
|
1067
1073
|
placeholder: e.string().optional(),
|
|
1068
1074
|
default_value: e.string().optional()
|
|
1069
1075
|
}).optional()
|
|
1070
|
-
}),
|
|
1076
|
+
}), jt = W.extend({
|
|
1071
1077
|
type: e.literal("URL"),
|
|
1072
1078
|
config: e.object({
|
|
1073
1079
|
placeholder: e.string().optional(),
|
|
1074
1080
|
default_value: e.string().optional()
|
|
1075
1081
|
}).optional()
|
|
1076
|
-
}),
|
|
1082
|
+
}), Mt = e.discriminatedUnion("type", [
|
|
1083
|
+
rt,
|
|
1077
1084
|
it,
|
|
1078
1085
|
at,
|
|
1079
1086
|
ot,
|
|
1080
1087
|
st,
|
|
1081
1088
|
ct,
|
|
1082
1089
|
lt,
|
|
1083
|
-
ut
|
|
1084
|
-
|
|
1085
|
-
|
|
1090
|
+
ut
|
|
1091
|
+
]), Nt = e.discriminatedUnion("type", [
|
|
1092
|
+
dt,
|
|
1086
1093
|
ft,
|
|
1087
|
-
pt
|
|
1088
|
-
|
|
1089
|
-
|
|
1094
|
+
pt
|
|
1095
|
+
]), Pt = e.discriminatedUnion("type", [
|
|
1096
|
+
mt,
|
|
1090
1097
|
ht,
|
|
1091
1098
|
gt,
|
|
1092
1099
|
_t,
|
|
1100
|
+
At,
|
|
1093
1101
|
vt,
|
|
1094
|
-
jt,
|
|
1095
1102
|
yt,
|
|
1096
1103
|
bt,
|
|
1097
1104
|
xt,
|
|
@@ -1103,13 +1110,12 @@ var Ze = e.object({
|
|
|
1103
1110
|
Dt,
|
|
1104
1111
|
Ot,
|
|
1105
1112
|
kt,
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1113
|
+
jt
|
|
1114
|
+
]), G = e.union([
|
|
1115
|
+
Mt,
|
|
1109
1116
|
Nt,
|
|
1110
|
-
Pt
|
|
1111
|
-
|
|
1112
|
-
]), It = /* @__PURE__ */ new Set([
|
|
1117
|
+
Pt
|
|
1118
|
+
]), Ft = /* @__PURE__ */ new Set([
|
|
1113
1119
|
"BOOLEAN",
|
|
1114
1120
|
"CARDS",
|
|
1115
1121
|
"CHOICE",
|
|
@@ -1124,7 +1130,7 @@ var Ze = e.object({
|
|
|
1124
1130
|
"TEL",
|
|
1125
1131
|
"TEXT",
|
|
1126
1132
|
"URL"
|
|
1127
|
-
]),
|
|
1133
|
+
]), It = e.object({
|
|
1128
1134
|
id: e.string(),
|
|
1129
1135
|
type: e.literal("submit"),
|
|
1130
1136
|
label: e.string(),
|
|
@@ -1133,22 +1139,22 @@ var Ze = e.object({
|
|
|
1133
1139
|
order: e.number().optional(),
|
|
1134
1140
|
visible: e.boolean().optional().default(!0),
|
|
1135
1141
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1136
|
-
}),
|
|
1142
|
+
}), K = e.object({
|
|
1137
1143
|
x: e.number(),
|
|
1138
1144
|
y: e.number()
|
|
1139
|
-
}),
|
|
1145
|
+
}), Lt = e.object({
|
|
1140
1146
|
id: e.string(),
|
|
1141
1147
|
type: e.literal("FLOW"),
|
|
1142
|
-
coordinates:
|
|
1148
|
+
coordinates: K,
|
|
1143
1149
|
alias: e.string().min(1).max(150).optional(),
|
|
1144
1150
|
config: e.object({
|
|
1145
1151
|
flow_id: e.string().max(30),
|
|
1146
1152
|
next_node: e.string().optional()
|
|
1147
1153
|
})
|
|
1148
|
-
}),
|
|
1154
|
+
}), Rt = e.object({
|
|
1149
1155
|
id: e.string(),
|
|
1150
1156
|
type: e.literal("ROUTER"),
|
|
1151
|
-
coordinates:
|
|
1157
|
+
coordinates: K,
|
|
1152
1158
|
alias: e.string().min(1).max(150),
|
|
1153
1159
|
config: e.object({
|
|
1154
1160
|
rules: e.array(e.object({
|
|
@@ -1159,20 +1165,20 @@ var Ze = e.object({
|
|
|
1159
1165
|
})),
|
|
1160
1166
|
fallback: e.string()
|
|
1161
1167
|
})
|
|
1162
|
-
}),
|
|
1168
|
+
}), zt = e.object({
|
|
1163
1169
|
id: e.string(),
|
|
1164
1170
|
type: e.literal("STEP"),
|
|
1165
|
-
coordinates:
|
|
1171
|
+
coordinates: K,
|
|
1166
1172
|
alias: e.string().min(1).max(150).optional(),
|
|
1167
1173
|
config: e.object({
|
|
1168
|
-
components: e.array(
|
|
1174
|
+
components: e.array(G),
|
|
1169
1175
|
next_node: e.string().optional()
|
|
1170
1176
|
})
|
|
1171
|
-
}),
|
|
1177
|
+
}), Bt = e.discriminatedUnion("type", [
|
|
1178
|
+
Lt,
|
|
1172
1179
|
Rt,
|
|
1173
|
-
zt
|
|
1174
|
-
|
|
1175
|
-
]), Ht = e.object({
|
|
1180
|
+
zt
|
|
1181
|
+
]), Vt = e.object({
|
|
1176
1182
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1177
1183
|
messages: e.object({
|
|
1178
1184
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1183,14 +1189,14 @@ var Ze = e.object({
|
|
|
1183
1189
|
default: e.string().optional()
|
|
1184
1190
|
}).optional(),
|
|
1185
1191
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1186
|
-
nodes: e.array(
|
|
1192
|
+
nodes: e.array(Bt).optional(),
|
|
1187
1193
|
start: e.object({
|
|
1188
1194
|
hidden_fields: e.array(e.object({
|
|
1189
1195
|
key: e.string(),
|
|
1190
1196
|
value: e.string()
|
|
1191
1197
|
})).optional(),
|
|
1192
1198
|
next_node: e.string().optional(),
|
|
1193
|
-
coordinates:
|
|
1199
|
+
coordinates: K.optional()
|
|
1194
1200
|
}).optional(),
|
|
1195
1201
|
ending: e.object({
|
|
1196
1202
|
redirection: e.object({
|
|
@@ -1198,7 +1204,7 @@ var Ze = e.object({
|
|
|
1198
1204
|
target: e.string().optional()
|
|
1199
1205
|
}).optional(),
|
|
1200
1206
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1201
|
-
coordinates:
|
|
1207
|
+
coordinates: K.optional(),
|
|
1202
1208
|
resume_flow: e.boolean().optional()
|
|
1203
1209
|
}).optional(),
|
|
1204
1210
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1206,7 +1212,7 @@ var Ze = e.object({
|
|
|
1206
1212
|
sdkSrc: e.string().optional(),
|
|
1207
1213
|
sdk_src: e.string().optional()
|
|
1208
1214
|
}).optional()
|
|
1209
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1215
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), Ht = t.extend(Vt.shape).extend({ id: e.string() }), Ut = e.object({
|
|
1210
1216
|
id: e.number().optional(),
|
|
1211
1217
|
text: e.string(),
|
|
1212
1218
|
type: e.enum([
|
|
@@ -1215,34 +1221,34 @@ var Ze = e.object({
|
|
|
1215
1221
|
"success",
|
|
1216
1222
|
"warning"
|
|
1217
1223
|
])
|
|
1218
|
-
}),
|
|
1224
|
+
}), Wt = e.object({
|
|
1219
1225
|
id: e.string().optional(),
|
|
1220
1226
|
text: e.string(),
|
|
1221
1227
|
href: e.string(),
|
|
1222
1228
|
linkText: e.string().optional()
|
|
1223
|
-
}),
|
|
1229
|
+
}), Gt = e.object({
|
|
1224
1230
|
name: e.string().optional(),
|
|
1225
1231
|
action: e.string(),
|
|
1226
1232
|
method: e.enum(["POST", "GET"]),
|
|
1227
1233
|
title: e.string().optional(),
|
|
1228
1234
|
description: e.string().optional(),
|
|
1229
|
-
components: e.array(
|
|
1230
|
-
messages: e.array(
|
|
1231
|
-
links: e.array(
|
|
1235
|
+
components: e.array(G),
|
|
1236
|
+
messages: e.array(Ut).optional(),
|
|
1237
|
+
links: e.array(Wt).optional(),
|
|
1232
1238
|
footer: e.string().optional()
|
|
1233
1239
|
});
|
|
1234
|
-
function
|
|
1240
|
+
function Kt(e) {
|
|
1235
1241
|
return e.category === "BLOCK";
|
|
1236
1242
|
}
|
|
1237
|
-
function
|
|
1243
|
+
function qt(e) {
|
|
1238
1244
|
return e.category === "WIDGET";
|
|
1239
1245
|
}
|
|
1240
|
-
function
|
|
1246
|
+
function Jt(e) {
|
|
1241
1247
|
return e.category === "FIELD";
|
|
1242
1248
|
}
|
|
1243
1249
|
//#endregion
|
|
1244
1250
|
//#region src/types/Hook.ts
|
|
1245
|
-
var
|
|
1251
|
+
var Yt = e.enum([
|
|
1246
1252
|
"pre-user-registration",
|
|
1247
1253
|
"post-user-registration",
|
|
1248
1254
|
"post-user-login",
|
|
@@ -1250,28 +1256,28 @@ var Xt = e.enum([
|
|
|
1250
1256
|
"validate-registration-username",
|
|
1251
1257
|
"pre-user-deletion",
|
|
1252
1258
|
"post-user-deletion"
|
|
1253
|
-
]),
|
|
1259
|
+
]), Xt = e.enum([
|
|
1254
1260
|
"pre-user-registration",
|
|
1255
1261
|
"post-user-registration",
|
|
1256
1262
|
"post-user-login",
|
|
1257
1263
|
"validate-registration-username",
|
|
1258
1264
|
"pre-user-deletion",
|
|
1259
1265
|
"post-user-deletion"
|
|
1260
|
-
]),
|
|
1266
|
+
]), Zt = e.enum([
|
|
1261
1267
|
"post-user-login",
|
|
1262
1268
|
"post-user-registration",
|
|
1263
1269
|
"post-user-update",
|
|
1264
1270
|
"credentials-exchange"
|
|
1265
|
-
]),
|
|
1271
|
+
]), Qt = e.enum([
|
|
1266
1272
|
"post-user-login",
|
|
1267
1273
|
"credentials-exchange",
|
|
1268
1274
|
"pre-user-registration",
|
|
1269
1275
|
"post-user-registration"
|
|
1270
|
-
]),
|
|
1276
|
+
]), q = e.enum([
|
|
1271
1277
|
"ensure-username",
|
|
1272
1278
|
"set-preferred-username",
|
|
1273
1279
|
"account-linking"
|
|
1274
|
-
]),
|
|
1280
|
+
]), $t = {
|
|
1275
1281
|
"ensure-username": {
|
|
1276
1282
|
name: "Ensure Username",
|
|
1277
1283
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1291,73 +1297,73 @@ var Xt = e.enum([
|
|
|
1291
1297
|
"post-user-update"
|
|
1292
1298
|
]
|
|
1293
1299
|
}
|
|
1294
|
-
},
|
|
1300
|
+
}, J = {
|
|
1295
1301
|
enabled: e.boolean().default(!1),
|
|
1296
1302
|
synchronous: e.boolean().default(!1),
|
|
1297
1303
|
priority: e.number().optional(),
|
|
1298
1304
|
hook_id: e.string().optional(),
|
|
1299
1305
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1300
|
-
},
|
|
1301
|
-
...
|
|
1302
|
-
trigger_id:
|
|
1306
|
+
}, en = e.object({
|
|
1307
|
+
...J,
|
|
1308
|
+
trigger_id: Yt,
|
|
1303
1309
|
url: e.string()
|
|
1310
|
+
}), tn = e.object({
|
|
1311
|
+
...J,
|
|
1312
|
+
trigger_id: Xt,
|
|
1313
|
+
form_id: e.string()
|
|
1304
1314
|
}), nn = e.object({
|
|
1305
|
-
...
|
|
1315
|
+
...J,
|
|
1306
1316
|
trigger_id: Zt,
|
|
1307
|
-
|
|
1317
|
+
template_id: q
|
|
1308
1318
|
}), rn = e.object({
|
|
1309
|
-
...
|
|
1319
|
+
...J,
|
|
1310
1320
|
trigger_id: Qt,
|
|
1311
|
-
template_id: K
|
|
1312
|
-
}), an = e.object({
|
|
1313
|
-
...q,
|
|
1314
|
-
trigger_id: $t,
|
|
1315
1321
|
code_id: e.string()
|
|
1316
|
-
}),
|
|
1322
|
+
}), an = e.union([
|
|
1323
|
+
en,
|
|
1317
1324
|
tn,
|
|
1318
1325
|
nn,
|
|
1319
|
-
rn
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
trigger_id: Xt
|
|
1326
|
+
rn
|
|
1327
|
+
]), on = e.object({
|
|
1328
|
+
...J,
|
|
1329
|
+
trigger_id: Yt
|
|
1324
1330
|
}).extend(t.shape).extend({
|
|
1325
1331
|
hook_id: e.string(),
|
|
1326
1332
|
url: e.string()
|
|
1333
|
+
}), sn = e.object({
|
|
1334
|
+
...J,
|
|
1335
|
+
trigger_id: Xt
|
|
1336
|
+
}).extend(t.shape).extend({
|
|
1337
|
+
hook_id: e.string(),
|
|
1338
|
+
form_id: e.string()
|
|
1327
1339
|
}), cn = e.object({
|
|
1328
|
-
...
|
|
1340
|
+
...J,
|
|
1329
1341
|
trigger_id: Zt
|
|
1330
1342
|
}).extend(t.shape).extend({
|
|
1331
1343
|
hook_id: e.string(),
|
|
1332
|
-
|
|
1344
|
+
template_id: q
|
|
1333
1345
|
}), ln = e.object({
|
|
1334
|
-
...
|
|
1346
|
+
...J,
|
|
1335
1347
|
trigger_id: Qt
|
|
1336
|
-
}).extend(t.shape).extend({
|
|
1337
|
-
hook_id: e.string(),
|
|
1338
|
-
template_id: K
|
|
1339
|
-
}), un = e.object({
|
|
1340
|
-
...q,
|
|
1341
|
-
trigger_id: $t
|
|
1342
1348
|
}).extend(t.shape).extend({
|
|
1343
1349
|
hook_id: e.string(),
|
|
1344
1350
|
code_id: e.string()
|
|
1345
|
-
}),
|
|
1351
|
+
}), un = e.union([
|
|
1352
|
+
on,
|
|
1346
1353
|
sn,
|
|
1347
1354
|
cn,
|
|
1348
|
-
ln
|
|
1349
|
-
|
|
1350
|
-
]), fn = e.object({
|
|
1355
|
+
ln
|
|
1356
|
+
]), dn = e.object({
|
|
1351
1357
|
code: e.string().max(1e5),
|
|
1352
1358
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1353
|
-
}),
|
|
1359
|
+
}), fn = dn.extend({
|
|
1354
1360
|
id: e.string(),
|
|
1355
1361
|
tenant_id: e.string()
|
|
1356
|
-
}).extend(t.shape),
|
|
1362
|
+
}).extend(t.shape), pn = e.object({ name: e.string().optional() }), mn = e.object({ email: e.string().optional() }), hn = e.object({
|
|
1357
1363
|
id: e.string().optional(),
|
|
1358
1364
|
organization_id: e.string().max(50),
|
|
1359
|
-
inviter:
|
|
1360
|
-
invitee:
|
|
1365
|
+
inviter: pn,
|
|
1366
|
+
invitee: mn,
|
|
1361
1367
|
invitation_url: e.string().url(),
|
|
1362
1368
|
client_id: e.string(),
|
|
1363
1369
|
connection_id: e.string().optional(),
|
|
@@ -1366,13 +1372,13 @@ var Xt = e.enum([
|
|
|
1366
1372
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1367
1373
|
roles: e.array(e.string()).default([]).optional(),
|
|
1368
1374
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1369
|
-
}),
|
|
1375
|
+
}), gn = e.object({
|
|
1370
1376
|
id: e.string(),
|
|
1371
1377
|
organization_id: e.string().max(50),
|
|
1372
1378
|
created_at: e.string().datetime(),
|
|
1373
1379
|
expires_at: e.string().datetime(),
|
|
1374
1380
|
ticket_id: e.string().optional()
|
|
1375
|
-
}).extend(
|
|
1381
|
+
}).extend(hn.omit({ id: !0 }).shape), _n = e.object({
|
|
1376
1382
|
alg: e.enum([
|
|
1377
1383
|
"RS256",
|
|
1378
1384
|
"RS384",
|
|
@@ -1413,7 +1419,7 @@ var Xt = e.enum([
|
|
|
1413
1419
|
path: [r],
|
|
1414
1420
|
message: `EC JWK is missing required member '${r}'`
|
|
1415
1421
|
});
|
|
1416
|
-
}),
|
|
1422
|
+
}), vn = e.object({ keys: e.array(_n) }), yn = e.object({
|
|
1417
1423
|
issuer: e.string(),
|
|
1418
1424
|
authorization_endpoint: e.string(),
|
|
1419
1425
|
token_endpoint: e.string(),
|
|
@@ -1436,34 +1442,36 @@ var Xt = e.enum([
|
|
|
1436
1442
|
claims_parameter_supported: e.boolean().optional(),
|
|
1437
1443
|
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
1438
1444
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string()),
|
|
1439
|
-
client_id_metadata_document_supported: e.boolean().optional()
|
|
1440
|
-
|
|
1445
|
+
client_id_metadata_document_supported: e.boolean().optional(),
|
|
1446
|
+
backchannel_logout_supported: e.boolean().optional(),
|
|
1447
|
+
backchannel_logout_session_supported: e.boolean().optional()
|
|
1448
|
+
}), bn = /* @__PURE__ */ function(e) {
|
|
1441
1449
|
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;
|
|
1442
|
-
}({}),
|
|
1450
|
+
}({}), xn = e.nativeEnum(bn), Sn = e.object({
|
|
1443
1451
|
strategy: e.string(),
|
|
1444
1452
|
strategy_type: e.string()
|
|
1445
|
-
}),
|
|
1453
|
+
}), Cn = e.object({
|
|
1446
1454
|
csrf_token: e.string(),
|
|
1447
1455
|
auth0Client: e.string().optional(),
|
|
1448
|
-
authParams:
|
|
1456
|
+
authParams: We,
|
|
1449
1457
|
expires_at: e.string(),
|
|
1450
1458
|
deleted_at: e.string().optional(),
|
|
1451
1459
|
ip: e.string().optional(),
|
|
1452
1460
|
useragent: e.string().optional(),
|
|
1453
1461
|
session_id: e.string().optional(),
|
|
1454
1462
|
authorization_url: e.string().optional(),
|
|
1455
|
-
state:
|
|
1463
|
+
state: xn.optional().default("pending"),
|
|
1456
1464
|
state_data: e.string().optional(),
|
|
1457
1465
|
failure_reason: e.string().optional(),
|
|
1458
1466
|
user_id: e.string().optional(),
|
|
1459
1467
|
auth_connection: e.string().optional(),
|
|
1460
|
-
auth_strategy:
|
|
1468
|
+
auth_strategy: Sn.optional(),
|
|
1461
1469
|
authenticated_at: e.string().optional()
|
|
1462
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1470
|
+
}).openapi({ description: "This represents a login sesion" }), wn = Cn.extend({
|
|
1463
1471
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1464
1472
|
created_at: e.string(),
|
|
1465
1473
|
updated_at: e.string()
|
|
1466
|
-
}),
|
|
1474
|
+
}), Y = {
|
|
1467
1475
|
ACLS_SUMMARY: "acls_summary",
|
|
1468
1476
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1469
1477
|
API_LIMIT: "api_limit",
|
|
@@ -1623,176 +1631,176 @@ var Xt = e.enum([
|
|
|
1623
1631
|
WARNING_DURING_LOGIN: "w",
|
|
1624
1632
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1625
1633
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1626
|
-
},
|
|
1627
|
-
[
|
|
1628
|
-
[
|
|
1629
|
-
[
|
|
1630
|
-
[
|
|
1631
|
-
[
|
|
1632
|
-
[
|
|
1633
|
-
[
|
|
1634
|
-
[
|
|
1635
|
-
[
|
|
1636
|
-
[
|
|
1637
|
-
[
|
|
1638
|
-
[
|
|
1639
|
-
[
|
|
1640
|
-
[
|
|
1641
|
-
[
|
|
1642
|
-
[
|
|
1643
|
-
[
|
|
1644
|
-
[
|
|
1645
|
-
[
|
|
1646
|
-
[
|
|
1647
|
-
[
|
|
1648
|
-
[
|
|
1649
|
-
[
|
|
1650
|
-
[
|
|
1651
|
-
[
|
|
1652
|
-
[
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1656
|
-
[
|
|
1657
|
-
[
|
|
1658
|
-
[
|
|
1659
|
-
[
|
|
1660
|
-
[
|
|
1661
|
-
[
|
|
1662
|
-
[
|
|
1663
|
-
[
|
|
1664
|
-
[
|
|
1665
|
-
[
|
|
1666
|
-
[
|
|
1667
|
-
[
|
|
1668
|
-
[
|
|
1669
|
-
[
|
|
1670
|
-
[
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1673
|
-
[
|
|
1674
|
-
[
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1677
|
-
[
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
[
|
|
1696
|
-
[
|
|
1697
|
-
[
|
|
1698
|
-
[
|
|
1699
|
-
[
|
|
1700
|
-
[
|
|
1701
|
-
[
|
|
1702
|
-
[
|
|
1703
|
-
[
|
|
1704
|
-
[
|
|
1705
|
-
[
|
|
1706
|
-
[
|
|
1707
|
-
[
|
|
1708
|
-
[
|
|
1709
|
-
[
|
|
1710
|
-
[
|
|
1711
|
-
[
|
|
1712
|
-
[
|
|
1713
|
-
[
|
|
1714
|
-
[
|
|
1715
|
-
[
|
|
1716
|
-
[
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1724
|
-
[
|
|
1725
|
-
[
|
|
1726
|
-
[
|
|
1727
|
-
[
|
|
1728
|
-
[
|
|
1729
|
-
[
|
|
1730
|
-
[
|
|
1731
|
-
[
|
|
1732
|
-
[
|
|
1733
|
-
[
|
|
1734
|
-
[
|
|
1735
|
-
[
|
|
1736
|
-
[
|
|
1737
|
-
[
|
|
1738
|
-
[
|
|
1739
|
-
[
|
|
1740
|
-
[
|
|
1741
|
-
[
|
|
1742
|
-
[
|
|
1743
|
-
[
|
|
1744
|
-
[
|
|
1745
|
-
[
|
|
1746
|
-
[
|
|
1747
|
-
[
|
|
1748
|
-
[
|
|
1749
|
-
[
|
|
1750
|
-
[
|
|
1751
|
-
[
|
|
1752
|
-
[
|
|
1753
|
-
[
|
|
1754
|
-
[
|
|
1755
|
-
[
|
|
1756
|
-
[
|
|
1757
|
-
[
|
|
1758
|
-
[
|
|
1759
|
-
[
|
|
1760
|
-
[
|
|
1761
|
-
[
|
|
1762
|
-
[
|
|
1763
|
-
[
|
|
1764
|
-
[
|
|
1765
|
-
[
|
|
1766
|
-
[
|
|
1767
|
-
[
|
|
1768
|
-
[
|
|
1769
|
-
[
|
|
1770
|
-
[
|
|
1771
|
-
[
|
|
1772
|
-
[
|
|
1773
|
-
[
|
|
1774
|
-
[
|
|
1775
|
-
[
|
|
1776
|
-
[
|
|
1777
|
-
[
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1782
|
-
[
|
|
1783
|
-
[
|
|
1784
|
-
[
|
|
1785
|
-
[
|
|
1786
|
-
},
|
|
1634
|
+
}, Tn = e.string().refine((e) => Object.values(Y).includes(e), { message: "Invalid log type" }), En = {
|
|
1635
|
+
[Y.ACLS_SUMMARY]: "ACLs Summary",
|
|
1636
|
+
[Y.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1637
|
+
[Y.API_LIMIT]: "API Rate Limit Reached",
|
|
1638
|
+
[Y.API_LIMIT_WARNING]: "API Rate Limit Warning",
|
|
1639
|
+
[Y.APPI]: "API Operation",
|
|
1640
|
+
[Y.CIBA_EXCHANGE_FAILED]: "CIBA Exchange Failed",
|
|
1641
|
+
[Y.CIBA_EXCHANGE_SUCCEEDED]: "CIBA Exchange Succeeded",
|
|
1642
|
+
[Y.CIBA_START_FAILED]: "CIBA Start Failed",
|
|
1643
|
+
[Y.CIBA_START_SUCCEEDED]: "CIBA Start Succeeded",
|
|
1644
|
+
[Y.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1645
|
+
[Y.CODE_SENT]: "Code Sent",
|
|
1646
|
+
[Y.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1647
|
+
[Y.FAILED_LOGIN]: "Failed Login",
|
|
1648
|
+
[Y.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1649
|
+
[Y.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
1650
|
+
[Y.FAILED_BY_CORS]: "Failed by CORS",
|
|
1651
|
+
[Y.FAILED_CROSS_ORIGIN_AUTHENTICATION]: "Failed Cross Origin Authentication",
|
|
1652
|
+
[Y.FAILED_CHANGE_PASSWORD]: "Failed Change Password",
|
|
1653
|
+
[Y.FAILED_POST_CHANGE_PASSWORD_HOOK]: "Failed Post-Change Password Hook",
|
|
1654
|
+
[Y.FAILED_CHANGE_PHONE_NUMBER]: "Failed Change Phone Number",
|
|
1655
|
+
[Y.FAILED_CHANGE_PASSWORD_REQUEST]: "Failed Change Password Request",
|
|
1656
|
+
[Y.FAILED_CONNECTOR_PROVISIONING]: "Failed Connector Provisioning",
|
|
1657
|
+
[Y.FAILED_CHANGE_USERNAME]: "Failed Change Username",
|
|
1658
|
+
[Y.FAILED_DELEGATION]: "Failed Delegation",
|
|
1659
|
+
[Y.FAILED_DEVICE_ACTIVATION]: "Failed Device Activation",
|
|
1660
|
+
[Y.FAILED_DEVICE_AUTHORIZATION_REQUEST]: "Failed Device Authorization Request",
|
|
1661
|
+
[Y.USER_CANCELED_DEVICE_CONFIRMATION]: "User Canceled Device Confirmation",
|
|
1662
|
+
[Y.FAILED_USER_DELETION]: "Failed User Deletion",
|
|
1663
|
+
[Y.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Authorization Code for Access Token",
|
|
1664
|
+
[Y.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Failed Exchange Access Token for Client Credentials",
|
|
1665
|
+
[Y.FAILED_EXCHANGE_CUSTOM_TOKEN]: "Failed Exchange Custom Token",
|
|
1666
|
+
[Y.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Device Code for Access Token",
|
|
1667
|
+
[Y.FAILED_FEDERATED_LOGOUT]: "Failed Federated Logout",
|
|
1668
|
+
[Y.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Failed Exchange Native Social Login",
|
|
1669
|
+
[Y.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Failed Exchange Password OOB for Access Token",
|
|
1670
|
+
[Y.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Password OTP for Access Token",
|
|
1671
|
+
[Y.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Failed Exchange Password for Access Token",
|
|
1672
|
+
[Y.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Passwordless OTP for Access Token",
|
|
1673
|
+
[Y.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Failed Exchange Password MFA Recovery for Access Token",
|
|
1674
|
+
[Y.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN]: "Failed Exchange Rotating Refresh Token",
|
|
1675
|
+
[Y.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Refresh Token for Access Token",
|
|
1676
|
+
[Y.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Subject Token for Access Token",
|
|
1677
|
+
[Y.FAILED_HOOK]: "Failed Hook",
|
|
1678
|
+
[Y.FAILED_IMPERSONATION]: "Failed Impersonation",
|
|
1679
|
+
[Y.FAILED_INVITE_ACCEPT]: "Failed Invite Accept",
|
|
1680
|
+
[Y.FAILED_LOGOUT]: "Failed Logout",
|
|
1681
|
+
[Y.FLOWS_EXECUTION_COMPLETED]: "Flows Execution Completed",
|
|
1682
|
+
[Y.FLOWS_EXECUTION_FAILED]: "Flows Execution Failed",
|
|
1683
|
+
[Y.FAILED_SENDING_NOTIFICATION]: "Failed Sending Notification",
|
|
1684
|
+
[Y.FORMS_SUBMISSION_FAILED]: "Forms Submission Failed",
|
|
1685
|
+
[Y.FORMS_SUBMISSION_SUCCEEDED]: "Forms Submission Succeeded",
|
|
1686
|
+
[Y.FAILED_LOGIN_INCORRECT_PASSWORD]: "Failed Login - Incorrect Password",
|
|
1687
|
+
[Y.FAILED_PUSHED_AUTHORIZATION_REQUEST]: "Failed Pushed Authorization Request",
|
|
1688
|
+
[Y.FAILED_POST_USER_REGISTRATION_HOOK]: "Failed Post-User Registration Hook",
|
|
1689
|
+
[Y.FAILED_SIGNUP]: "Failed Signup",
|
|
1690
|
+
[Y.FAILED_SILENT_AUTH]: "Failed Silent Auth",
|
|
1691
|
+
[Y.FAILED_LOGIN_INVALID_EMAIL_USERNAME]: "Failed Login - Invalid Email/Username",
|
|
1692
|
+
[Y.FAILED_USERS_IMPORT]: "Failed Users Import",
|
|
1693
|
+
[Y.FAILED_VERIFICATION_EMAIL]: "Failed Verification Email",
|
|
1694
|
+
[Y.FAILED_VERIFICATION_EMAIL_REQUEST]: "Failed Verification Email Request",
|
|
1695
|
+
[Y.EMAIL_VERIFICATION_CONFIRMED]: "Email Verification Confirmed",
|
|
1696
|
+
[Y.EMAIL_VERIFICATION_FAILED]: "Email Verification Failed",
|
|
1697
|
+
[Y.MFA_AUTH_FAILED]: "MFA Auth Failed",
|
|
1698
|
+
[Y.MFA_AUTH_REJECTED]: "MFA Auth Rejected",
|
|
1699
|
+
[Y.MFA_AUTH_SUCCESS]: "MFA Auth Success",
|
|
1700
|
+
[Y.MFA_ENROLLMENT_COMPLETE]: "MFA Enrollment Complete",
|
|
1701
|
+
[Y.TOO_MANY_MFA_FAILURES]: "Too Many MFA Failures",
|
|
1702
|
+
[Y.MFA_RECOVERY_FAILED]: "MFA Recovery Failed",
|
|
1703
|
+
[Y.MFA_RECOVERY_RATE_LIMIT_EXCEED]: "MFA Recovery Rate Limit Exceeded",
|
|
1704
|
+
[Y.MFA_RECOVERY_SUCCESS]: "MFA Recovery Success",
|
|
1705
|
+
[Y.MFA_EMAIL_SENT]: "MFA Email Sent",
|
|
1706
|
+
[Y.EMAIL_VERIFICATION_SENT]: "Email Verification Sent",
|
|
1707
|
+
[Y.EMAIL_VERIFICATION_SEND_FAILURE]: "Email Verification Send Failure",
|
|
1708
|
+
[Y.PUSH_NOTIFICATION_SENT]: "Push Notification Sent",
|
|
1709
|
+
[Y.ERROR_SENDING_MFA_PUSH_NOTIFICATION]: "Error Sending MFA Push Notification",
|
|
1710
|
+
[Y.MFA_SMS_SENT]: "MFA SMS Sent",
|
|
1711
|
+
[Y.ERROR_SENDING_MFA_SMS]: "Error Sending MFA SMS",
|
|
1712
|
+
[Y.MFA_VOICE_CALL_SUCCESS]: "MFA Voice Call Success",
|
|
1713
|
+
[Y.MFA_VOICE_CALL_FAILED]: "MFA Voice Call Failed",
|
|
1714
|
+
[Y.SECOND_FACTOR_STARTED]: "Second Factor Started",
|
|
1715
|
+
[Y.MFA_ENROLL_STARTED]: "MFA Enroll Started",
|
|
1716
|
+
[Y.MFA_ENROLLMENT_FAILED]: "MFA Enrollment Failed",
|
|
1717
|
+
[Y.GUARDIAN_TENANT_UPDATE]: "Guardian Tenant Update",
|
|
1718
|
+
[Y.UNENROLL_DEVICE_ACCOUNT]: "Unenroll Device Account",
|
|
1719
|
+
[Y.UPDATE_DEVICE_ACCOUNT]: "Update Device Account",
|
|
1720
|
+
[Y.WEBAUTHN_CHALLENGE_FAILED]: "WebAuthn Challenge Failed",
|
|
1721
|
+
[Y.WEBAUTHN_ENROLLMENT_FAILED]: "WebAuthn Enrollment Failed",
|
|
1722
|
+
[Y.FAILED_KMS_API_OPERATION]: "Failed KMS API Operation",
|
|
1723
|
+
[Y.SUCCESS_KMS_API_OPERATION]: "Success KMS API Operation",
|
|
1724
|
+
[Y.KMS_KEY_STATE_CHANGED]: "KMS Key State Changed",
|
|
1725
|
+
[Y.TOO_MANY_CALLS_TO_DELEGATION]: "Too Many Calls to Delegation",
|
|
1726
|
+
[Y.BLOCKED_IP_ADDRESS]: "Blocked IP Address",
|
|
1727
|
+
[Y.BLOCKED_ACCOUNT_IP]: "Blocked Account (IP)",
|
|
1728
|
+
[Y.BLOCKED_ACCOUNT_EMAIL]: "Blocked Account (Email)",
|
|
1729
|
+
[Y.INFORMATION]: "Information",
|
|
1730
|
+
[Y.MFA_REQUIRED]: "MFA Required",
|
|
1731
|
+
[Y.MANAGEMENT_API_READ_OPERATION]: "Management API Read Operation",
|
|
1732
|
+
[Y.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Failed Authentication Method Operation (My Account)",
|
|
1733
|
+
[Y.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Successful Authentication Method Operation (My Account)",
|
|
1734
|
+
[Y.FAILED_OIDC_BACKCHANNEL_LOGOUT]: "Failed OIDC Backchannel Logout",
|
|
1735
|
+
[Y.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT]: "Successful OIDC Backchannel Logout",
|
|
1736
|
+
[Y.ORGANIZATION_MEMBER_ADDED]: "Organization Member Added",
|
|
1737
|
+
[Y.PASSKEY_CHALLENGE_FAILED]: "Passkey Challenge Failed",
|
|
1738
|
+
[Y.PASSKEY_CHALLENGE_STARTED]: "Passkey Challenge Started",
|
|
1739
|
+
[Y.PRE_LOGIN_ASSESSMENT]: "Pre-Login Assessment",
|
|
1740
|
+
[Y.BREACHED_PASSWORD]: "Breached Password",
|
|
1741
|
+
[Y.BREACHED_PASSWORD_ON_RESET]: "Breached Password on Reset",
|
|
1742
|
+
[Y.SUCCESS_RESOURCE_CLEANUP]: "Success Resource Cleanup",
|
|
1743
|
+
[Y.RICH_CONSENTS_ACCESS_ERROR]: "Rich Consents Access Error",
|
|
1744
|
+
[Y.SUCCESS_LOGIN]: "Success Login",
|
|
1745
|
+
[Y.SUCCESS_API_OPERATION]: "Success API Operation",
|
|
1746
|
+
[Y.FAILED_API_OPERATION]: "Failed API Operation",
|
|
1747
|
+
[Y.SUCCESS_CHANGE_EMAIL]: "Success Change Email",
|
|
1748
|
+
[Y.SUCCESS_CROSS_ORIGIN_AUTHENTICATION]: "Success Cross Origin Authentication",
|
|
1749
|
+
[Y.SUCCESS_CHANGE_PASSWORD]: "Success Change Password",
|
|
1750
|
+
[Y.SUCCESS_CHANGE_PHONE_NUMBER]: "Success Change Phone Number",
|
|
1751
|
+
[Y.SUCCESS_CHANGE_PASSWORD_REQUEST]: "Success Change Password Request",
|
|
1752
|
+
[Y.SUCCESS_CHANGE_USERNAME]: "Success Change Username",
|
|
1753
|
+
[Y.SUCCESS_CREDENTIAL_VALIDATION]: "Success Credential Validation",
|
|
1754
|
+
[Y.SUCCESS_DELEGATION]: "Success Delegation",
|
|
1755
|
+
[Y.SUCCESS_USER_DELETION]: "Success User Deletion",
|
|
1756
|
+
[Y.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Authorization Code for Access Token",
|
|
1757
|
+
[Y.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Success Exchange Access Token for Client Credentials",
|
|
1758
|
+
[Y.SUCCESS_EXCHANGE_CUSTOM_TOKEN]: "Success Exchange Custom Token",
|
|
1759
|
+
[Y.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Device Code for Access Token",
|
|
1760
|
+
[Y.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
|
|
1761
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
|
|
1762
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
|
|
1763
|
+
[Y.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
|
|
1764
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
|
|
1765
|
+
[Y.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
|
|
1766
|
+
[Y.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
|
|
1767
|
+
[Y.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Passkey MFA Recovery for Access Token",
|
|
1768
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Password MFA Recovery for Access Token",
|
|
1769
|
+
[Y.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Refresh Token for Access Token",
|
|
1770
|
+
[Y.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Subject Token for Access Token",
|
|
1771
|
+
[Y.SUCCESS_IMPERSONATION]: "Success Impersonation",
|
|
1772
|
+
[Y.SUCCESSFULLY_ACCEPTED_USER_INVITE]: "Successfully Accepted User Invite",
|
|
1773
|
+
[Y.BREACHED_PASSWORD_ON_SIGNUP]: "Breached Password on Signup",
|
|
1774
|
+
[Y.SUCCESS_LOGOUT]: "Success Logout",
|
|
1775
|
+
[Y.SUCCESS_HOOK]: "Success Hook",
|
|
1776
|
+
[Y.SUCCESS_PASSWORD_MIGRATION]: "Success Password Migration",
|
|
1777
|
+
[Y.SUCCESS_REVOCATION]: "Success Revocation",
|
|
1778
|
+
[Y.SUCCESS_SIGNUP]: "Success Signup",
|
|
1779
|
+
[Y.FAILED_SS_SSO_OPERATION]: "Failed SS SSO Operation",
|
|
1780
|
+
[Y.INFORMATION_FROM_SS_SSO_OPERATION]: "Information from SS SSO Operation",
|
|
1781
|
+
[Y.SUCCESS_SS_SSO_OPERATION]: "Success SS SSO Operation",
|
|
1782
|
+
[Y.SUCCESS_SILENT_AUTH]: "Success Silent Auth",
|
|
1783
|
+
[Y.SUCCESSFUL_SCIM_OPERATION]: "Successful SCIM Operation",
|
|
1784
|
+
[Y.SUCCESSFULLY_IMPORTED_USERS]: "Successfully Imported Users",
|
|
1785
|
+
[Y.SUCCESS_VERIFICATION_EMAIL]: "Success Verification Email",
|
|
1786
|
+
[Y.SUCCESS_VERIFICATION_EMAIL_REQUEST]: "Success Verification Email Request",
|
|
1787
|
+
[Y.MAX_AMOUNT_OF_AUTHENTICATORS]: "Max Amount of Authenticators",
|
|
1788
|
+
[Y.USER_LOGIN_BLOCK_RELEASED]: "User Login Block Released",
|
|
1789
|
+
[Y.FAILED_UNIVERSAL_LOGOUT]: "Failed Universal Logout",
|
|
1790
|
+
[Y.SUCCESSFUL_UNIVERSAL_LOGOUT]: "Successful Universal Logout",
|
|
1791
|
+
[Y.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1792
|
+
[Y.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1793
|
+
[Y.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1794
|
+
}, Dn = (() => {
|
|
1787
1795
|
let e = {};
|
|
1788
|
-
for (let [t, n] of Object.entries(
|
|
1796
|
+
for (let [t, n] of Object.entries(Y)) 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";
|
|
1789
1797
|
return e;
|
|
1790
1798
|
})();
|
|
1791
1799
|
function On(e) {
|
|
1792
|
-
return
|
|
1800
|
+
return En[e] ?? e;
|
|
1793
1801
|
}
|
|
1794
1802
|
function kn(e) {
|
|
1795
|
-
return
|
|
1803
|
+
return Dn[e] ?? "other";
|
|
1796
1804
|
}
|
|
1797
1805
|
var An = e.object({
|
|
1798
1806
|
name: e.string(),
|
|
@@ -1806,7 +1814,7 @@ var An = e.object({
|
|
|
1806
1814
|
time_zone: e.string(),
|
|
1807
1815
|
continent_code: e.string()
|
|
1808
1816
|
}), Mn = e.object({
|
|
1809
|
-
type:
|
|
1817
|
+
type: Tn,
|
|
1810
1818
|
date: e.string(),
|
|
1811
1819
|
description: e.string().optional(),
|
|
1812
1820
|
ip: e.string().optional(),
|
|
@@ -2831,17 +2839,56 @@ function Hi(e) {
|
|
|
2831
2839
|
function Ui(e) {
|
|
2832
2840
|
return Vi(new TextEncoder().encode(e));
|
|
2833
2841
|
}
|
|
2834
|
-
function
|
|
2842
|
+
function Wi(e) {
|
|
2835
2843
|
return new TextDecoder().decode(Hi(e));
|
|
2836
2844
|
}
|
|
2837
2845
|
//#endregion
|
|
2846
|
+
//#region src/utils/base64.ts
|
|
2847
|
+
function Gi(e) {
|
|
2848
|
+
let t = "";
|
|
2849
|
+
for (let n of e) t += String.fromCharCode(n);
|
|
2850
|
+
return btoa(t);
|
|
2851
|
+
}
|
|
2852
|
+
function Ki(e) {
|
|
2853
|
+
let t = atob(e), n = new Uint8Array(t.length);
|
|
2854
|
+
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2855
|
+
return n;
|
|
2856
|
+
}
|
|
2857
|
+
//#endregion
|
|
2858
|
+
//#region src/utils/base32.ts
|
|
2859
|
+
var $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2860
|
+
function qi(e) {
|
|
2861
|
+
let t = "", n = 0, r = 0;
|
|
2862
|
+
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += $[n >> r & 31];
|
|
2863
|
+
return r > 0 && (t += $[n << 5 - r & 31]), t;
|
|
2864
|
+
}
|
|
2865
|
+
function Ji(e) {
|
|
2866
|
+
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2867
|
+
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2868
|
+
let r = [], i = 0, a = 0;
|
|
2869
|
+
for (let e of t) {
|
|
2870
|
+
let t = $.indexOf(e);
|
|
2871
|
+
if (t === -1) throw Error(`Invalid base32 character: ${e}`);
|
|
2872
|
+
i = i << 5 | t, a += 5, a >= 8 && (a -= 8, r.push(i >> a & 255));
|
|
2873
|
+
}
|
|
2874
|
+
if (a > 0 && i & (1 << a) - 1) throw Error("Invalid base32: non-zero trailing bits");
|
|
2875
|
+
return new Uint8Array(r);
|
|
2876
|
+
}
|
|
2877
|
+
//#endregion
|
|
2878
|
+
//#region src/utils/hex.ts
|
|
2879
|
+
function Yi(e) {
|
|
2880
|
+
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2881
|
+
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2882
|
+
return n;
|
|
2883
|
+
}
|
|
2884
|
+
//#endregion
|
|
2838
2885
|
//#region src/utils/cursor.ts
|
|
2839
|
-
function
|
|
2886
|
+
function Xi(e) {
|
|
2840
2887
|
return Ui(JSON.stringify(e));
|
|
2841
2888
|
}
|
|
2842
|
-
function
|
|
2889
|
+
function Zi(e) {
|
|
2843
2890
|
try {
|
|
2844
|
-
let t = JSON.parse(
|
|
2891
|
+
let t = JSON.parse(Wi(e));
|
|
2845
2892
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
2846
2893
|
} catch {
|
|
2847
2894
|
return null;
|
|
@@ -2849,7 +2896,7 @@ function Gi(e) {
|
|
|
2849
2896
|
}
|
|
2850
2897
|
//#endregion
|
|
2851
2898
|
//#region src/utils/lucene.ts
|
|
2852
|
-
function
|
|
2899
|
+
function Qi(e, t) {
|
|
2853
2900
|
let n = new Set(t), r = (e) => {
|
|
2854
2901
|
let t = [], r = "", i = !1;
|
|
2855
2902
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -2866,4 +2913,4 @@ function Ki(e, t) {
|
|
|
2866
2913
|
return i.length > 1 ? i.map(r).filter((e) => e.length > 0).join(" OR ") : r(e);
|
|
2867
2914
|
}
|
|
2868
2915
|
//#endregion
|
|
2869
|
-
export { ve as Auth0ActionEnum, An as Auth0Client,
|
|
2916
|
+
export { ve as Auth0ActionEnum, An as Auth0Client, Be as AuthorizationResponseMode, ze as AuthorizationResponseType, Ve as CodeChallengeMethod, A as ComponentCategory, k as ComponentType, Oi as DATABASE_CONNECTION_STRATEGY, ye as EmailActionEnum, Ft as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, mr as GrantType, jn as LocationInfo, Y as LogTypes, bn as LoginSessionState, Ae as NodeType, p as RedirectTargetEnum, Ei as Strategy, Di as StrategyType, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, Me as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, hi as activeUsersResponseSchema, le as actorSchema, y as addressSchema, bi as analyticsColumnMetaSchema, vi as analyticsGroupBySchema, _i as analyticsIntervalSchema, Si as analyticsQueryResponseSchema, gi as analyticsResourceSchema, xi as analyticsStatisticsSchema, yi as analyticsUserTypeSchema, Gn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Re as auth0FlowInsertSchema, Le as auth0FlowSchema, xe as auth0QuerySchema, d as auth0UpdateUserActionSchema, Ce as auth0UserResponseSchema, We as authParamsSchema, Ni as authenticationMethodInsertSchema, Pi as authenticationMethodSchema, Ai as authenticationMethodTypeSchema, b as baseUserSchema, Mt as blockComponentSchema, gr as bordersSchema, Ge as brandingSchema, Hn as breachedPasswordDetectionSchema, Un as bruteForceProtectionSchema, N as buttonComponentSchema, Ue as claimsRequestSchema, w as clientGrantInsertSchema, Oe as clientGrantListSchema, T as clientGrantSchema, C as clientInsertSchema, D as clientRegistrationTokenInsertSchema, ke as clientRegistrationTokenSchema, E as clientRegistrationTokenTypeSchema, De as clientSchema, qe as codeInsertSchema, Je as codeSchema, Ke as codeTypeSchema, _r as colorsSchema, Ut as componentMessageSchema, L as componentSchema, Xe as connectionInsertSchema, Ye as connectionOptionsSchema, Ze as connectionSchema, O as coordinatesSchema, Li as createPassthroughAdapter, Ri as createWriteOnlyAdapter, nt as customDomainCertificateUploadSchema, B as customDomainInsertSchema, $e as customDomainSchema, et as customDomainUpdateSchema, tt as customDomainWithTenantIdSchema, Ti as customTextEntrySchema, wi as customTextSchema, mi as dailyStatsSchema, Ji as decodeBase32, Ki as decodeBase64, Hi as decodeBase64Url, Wi as decodeBase64UrlString, Zi as decodeCursor, Or as emailProviderSchema, kr as emailTemplateNameSchema, Ar as emailTemplateSchema, u as emailVerificationRulesSchema, f as emailVerifyActionSchema, qi as encodeBase32, Gi as encodeBase64, Vi as encodeBase64Url, Ui as encodeBase64UrlString, Xi as encodeCursor, Yi as encodeHex, Ie as endingSchema, Pt as fieldComponentSchema, h as flowActionStepSchema, g as flowInsertSchema, be as flowSchema, F as flowsFieldComponentSchema, je as flowsFlowNodeSchema, R as flowsStepNodeSchema, Z as fontDetailsSchema, vr as fontsSchema, It as formControlSchema, Vt as formInsertSchema, G as formNodeComponentDefinition, Bt as formNodeSchema, Ht as formSchema, I as genericComponentSchema, Ne as genericNodeSchema, zi as getConnectionIdentifierConfig, kn as getLogTypeCategory, On as getLogTypeDescription, Ur as grantInsertSchema, Wr as grantSchema, Tr as handlerConfigSchema, dn as hookCodeInsertSchema, fn as hookCodeSchema, an as hookInsertSchema, un as hookSchema, q as hookTemplateId, $t as hookTemplates, v as identitySchema, Fi as importMetadataSchema, hn as inviteInsertSchema, gn as inviteSchema, mn as inviteeSchema, pn as inviterSchema, Kt as isBlockComponent, ki as isDatabaseConnectionStrategy, Jt as isFieldComponent, Bi as isPlainObject, qt as isWidgetComponent, vn as jwksKeySchema, _n as jwksSchema, P as legalComponentSchema, pe as locationInfoSchema, Mn as logInsertSchema, Nn as logSchema, Fn as logStreamFilterSchema, In as logStreamInsertSchema, Ln as logStreamSchema, X as logStreamStatusSchema, Pn as logStreamTypeSchema, Dn as logTypeCategories, En as logTypeDescriptions, Sn as loginSessionAuthStrategySchema, Cn as loginSessionInsertSchema, wn as loginSessionSchema, xn as loginSessionStateSchema, wr as matchSchema, Rn as migrationProviderTypeSchema, zn as migrationSourceCredentialsSchema, Bn as migrationSourceInsertSchema, Vn as migrationSourceSchema, Pe as nodeSchema, yn as openIDConfigurationSchema, ri as organizationBrandingSchema, ci as organizationConnectionInsertSchema, ui as organizationConnectionListSchema, li as organizationConnectionSchema, ii as organizationEnabledConnectionSchema, oi as organizationInsertSchema, si as organizationSchema, ai as organizationTokenQuotaSchema, yr as pageBackgroundSchema, Ii as parseUserId, Kn as passwordInsertSchema, qn as passwordSchema, _ as profileDataSchema, Ci as promptScreenSchema, Cr as promptSettingSchema, Q as proxyRouteInsertSchema, Er as proxyRouteSchema, Dr as proxyRouteUpdateSchema, m as redirectActionSchema, jr as refreshTokenInsertSchema, Mr as refreshTokenSchema, de as requestContextSchema, Lr as resourceServerInsertSchema, zr as resourceServerListSchema, Ir as resourceServerOptionsSchema, Rr as resourceServerSchema, Fr as resourceServerScopeSchema, fe as responseContextSchema, M as richTextComponentSchema, ei as roleInsertSchema, ni as roleListSchema, Br as rolePermissionInsertSchema, Hr as rolePermissionListSchema, Vr as rolePermissionSchema, ti as roleSchema, dr as rolloutInsertSchema, lr as rolloutKindSchema, fr as rolloutSchema, ur as rolloutStatusSchema, pr as rolloutUpdateSchema, Qi as sanitizeLuceneQuery, Wt as screenLinkSchema, Yn as sessionInsertSchema, Xn as sessionSchema, Zn as signingKeySchema, Pr as smsProviderSchema, Nr as smsSendParamsSchema, Fe as startSchema, Wn as suspiciousIpThrottlingSchema, ue as targetSchema, Qn as tenantInsertSchema, nr as tenantOperationEngineSchema, sr as tenantOperationEventInsertSchema, or as tenantOperationEventOutcomeSchema, cr as tenantOperationEventSchema, rr as tenantOperationInsertSchema, er as tenantOperationKindSchema, ir as tenantOperationSchema, tr as tenantOperationStatusSchema, ar as tenantOperationUpdateSchema, $n as tenantSchema, pi as tenantSettingsSchema, xr as themeInsertSchema, Sr as themeSchema, hr as tokenResponseSchema, Se as totalsSchema, Gt as uiScreenSchema, Gr as userActivitySchema, x as userInsertSchema, di as userOrganizationInsertSchema, fi as userOrganizationSchema, Kr as userPermissionInsertSchema, Jr as userPermissionListSchema, qr as userPermissionSchema, Xr as userPermissionWithDetailsListSchema, Yr as userPermissionWithDetailsSchema, we as userResponseSchema, Zr as userRoleInsertSchema, $r as userRoleListSchema, Qr as userRoleSchema, S as userSchema, Qe as verificationMethodsSchema, Nt as widgetComponentSchema, br as widgetSchema };
|