@authhero/adapter-interfaces 2.7.0 → 2.8.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 +93 -2
- package/dist/adapter-interfaces.mjs +527 -508
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/ProxyRoutes.d.ts +19 -0
- package/dist/types/adapters/index.d.ts +9 -0
- package/dist/types/types/ProxyRoute.d.ts +65 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -185,7 +185,7 @@ var t = e.object({
|
|
|
185
185
|
user_id: e.string(),
|
|
186
186
|
changes: e.record(e.string(), e.any())
|
|
187
187
|
})
|
|
188
|
-
}),
|
|
188
|
+
}), Se = e.object({
|
|
189
189
|
id: e.string(),
|
|
190
190
|
alias: e.string().max(100).optional(),
|
|
191
191
|
type: e.literal("EMAIL"),
|
|
@@ -196,11 +196,11 @@ var t = e.object({
|
|
|
196
196
|
email: e.string(),
|
|
197
197
|
rules: be.optional()
|
|
198
198
|
})
|
|
199
|
-
}),
|
|
199
|
+
}), u = e.enum([
|
|
200
200
|
"change-email",
|
|
201
201
|
"account",
|
|
202
202
|
"custom"
|
|
203
|
-
]),
|
|
203
|
+
]), d = e.object({
|
|
204
204
|
id: e.string(),
|
|
205
205
|
alias: e.string().max(100).optional(),
|
|
206
206
|
type: e.literal("REDIRECT"),
|
|
@@ -208,31 +208,31 @@ var t = e.object({
|
|
|
208
208
|
allow_failure: e.boolean().optional(),
|
|
209
209
|
mask_output: e.boolean().optional(),
|
|
210
210
|
params: e.object({
|
|
211
|
-
target:
|
|
211
|
+
target: u.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
212
212
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
213
213
|
})
|
|
214
|
-
}),
|
|
214
|
+
}), f = e.union([
|
|
215
215
|
xe,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
]),
|
|
216
|
+
Se,
|
|
217
|
+
d
|
|
218
|
+
]), p = e.object({
|
|
219
219
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
220
|
-
actions: e.array(
|
|
221
|
-
}),
|
|
220
|
+
actions: e.array(f).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
221
|
+
}), Ce = p.extend(t.shape).extend({ id: e.string().openapi({
|
|
222
222
|
description: "Unique identifier for the flow",
|
|
223
223
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
224
|
-
}) }),
|
|
224
|
+
}) }), we = e.object({
|
|
225
225
|
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
226
226
|
per_page: e.string().min(1).optional().default("10").transform((e) => parseInt(e, 10)).openapi({ description: "The number of items per page" }),
|
|
227
227
|
include_totals: e.string().optional().default("false").transform((e) => e === "true").openapi({ description: "If the total number of items should be included in the response" }),
|
|
228
228
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
229
229
|
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
230
|
-
}),
|
|
230
|
+
}), Te = e.object({
|
|
231
231
|
start: e.number(),
|
|
232
232
|
limit: e.number(),
|
|
233
233
|
length: e.number(),
|
|
234
234
|
total: e.number().optional()
|
|
235
|
-
}),
|
|
235
|
+
}), m = e.object({
|
|
236
236
|
email: e.string().optional(),
|
|
237
237
|
email_verified: e.boolean().optional(),
|
|
238
238
|
name: e.string().optional(),
|
|
@@ -241,7 +241,7 @@ var t = e.object({
|
|
|
241
241
|
phone_number: e.string().optional(),
|
|
242
242
|
phone_verified: e.boolean().optional(),
|
|
243
243
|
family_name: e.string().optional()
|
|
244
|
-
}).catchall(e.any()),
|
|
244
|
+
}).catchall(e.any()), h = e.object({
|
|
245
245
|
connection: e.string(),
|
|
246
246
|
user_id: e.string(),
|
|
247
247
|
provider: e.string(),
|
|
@@ -254,15 +254,15 @@ var t = e.object({
|
|
|
254
254
|
access_token: e.string().optional(),
|
|
255
255
|
access_token_secret: e.string().optional(),
|
|
256
256
|
refresh_token: e.string().optional(),
|
|
257
|
-
profileData:
|
|
258
|
-
}),
|
|
257
|
+
profileData: m.optional()
|
|
258
|
+
}), g = e.object({
|
|
259
259
|
formatted: e.string().optional(),
|
|
260
260
|
street_address: e.string().optional(),
|
|
261
261
|
locality: e.string().optional(),
|
|
262
262
|
region: e.string().optional(),
|
|
263
263
|
postal_code: e.string().optional(),
|
|
264
264
|
country: e.string().optional()
|
|
265
|
-
}).optional(),
|
|
265
|
+
}).optional(), _ = e.object({
|
|
266
266
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
267
267
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
268
268
|
phone_number: e.string().optional(),
|
|
@@ -285,8 +285,8 @@ var t = e.object({
|
|
|
285
285
|
gender: e.string().optional(),
|
|
286
286
|
birthdate: e.string().optional(),
|
|
287
287
|
zoneinfo: e.string().optional(),
|
|
288
|
-
address:
|
|
289
|
-
}),
|
|
288
|
+
address: g
|
|
289
|
+
}), v = _.extend({
|
|
290
290
|
email_verified: e.boolean().default(!1),
|
|
291
291
|
verify_email: e.boolean().optional(),
|
|
292
292
|
last_ip: e.string().optional(),
|
|
@@ -300,29 +300,29 @@ var t = e.object({
|
|
|
300
300
|
hash: e.string(),
|
|
301
301
|
algorithm: e.string()
|
|
302
302
|
}).optional()
|
|
303
|
-
}),
|
|
303
|
+
}), y = v.omit({ password: !0 }).extend(t.shape).extend({
|
|
304
304
|
user_id: e.string(),
|
|
305
305
|
provider: e.string(),
|
|
306
306
|
is_social: e.boolean(),
|
|
307
307
|
email: e.string().optional(),
|
|
308
308
|
login_count: e.number().default(0),
|
|
309
|
-
identities: e.array(
|
|
310
|
-
}),
|
|
309
|
+
identities: e.array(h).optional()
|
|
310
|
+
}), Ee = y.omit({ registration_completed_at: !0 }), De = _.extend({
|
|
311
311
|
login_count: e.number(),
|
|
312
312
|
multifactor: e.array(e.string()).optional(),
|
|
313
313
|
last_ip: e.string().optional(),
|
|
314
314
|
last_login: e.string().optional(),
|
|
315
315
|
user_id: e.string()
|
|
316
|
-
}).catchall(e.any()),
|
|
316
|
+
}).catchall(e.any()), Oe = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ke = (e = 21) => {
|
|
317
317
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
318
|
-
for (; e--;) t +=
|
|
318
|
+
for (; e--;) t += Oe[n[e] & 63];
|
|
319
319
|
return t;
|
|
320
|
-
},
|
|
320
|
+
}, b = e.object({
|
|
321
321
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
322
322
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
323
323
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
324
324
|
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)." }),
|
|
325
|
-
client_secret: e.string().default(() =>
|
|
325
|
+
client_secret: e.string().default(() => ke()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
326
326
|
app_type: e.enum([
|
|
327
327
|
"native",
|
|
328
328
|
"spa",
|
|
@@ -429,10 +429,10 @@ var t = e.object({
|
|
|
429
429
|
]).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." }),
|
|
430
430
|
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." }),
|
|
431
431
|
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." })
|
|
432
|
-
}),
|
|
432
|
+
}), Ae = e.object({
|
|
433
433
|
created_at: e.string(),
|
|
434
434
|
updated_at: e.string()
|
|
435
|
-
}).extend(
|
|
435
|
+
}).extend(b.shape).extend({ client_id: e.string() }), x = e.object({
|
|
436
436
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
437
437
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
438
438
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -445,38 +445,38 @@ var t = e.object({
|
|
|
445
445
|
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." }),
|
|
446
446
|
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." }),
|
|
447
447
|
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." })
|
|
448
|
-
}),
|
|
448
|
+
}), S = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(x.shape).extend({
|
|
449
449
|
created_at: e.string().optional(),
|
|
450
450
|
updated_at: e.string().optional()
|
|
451
|
-
}),
|
|
451
|
+
}), je = e.array(S), C = e.enum(["iat", "rat"]), w = e.object({
|
|
452
452
|
id: e.string(),
|
|
453
453
|
token_hash: e.string(),
|
|
454
|
-
type:
|
|
454
|
+
type: C,
|
|
455
455
|
client_id: e.string().optional(),
|
|
456
456
|
sub: e.string().optional(),
|
|
457
457
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
458
458
|
single_use: e.boolean().default(!1),
|
|
459
459
|
expires_at: e.string().optional()
|
|
460
|
-
}),
|
|
460
|
+
}), Me = e.object({
|
|
461
461
|
created_at: e.string(),
|
|
462
462
|
used_at: e.string().optional(),
|
|
463
463
|
revoked_at: e.string().optional()
|
|
464
|
-
}).extend(
|
|
464
|
+
}).extend(w.shape), T = e.object({
|
|
465
465
|
x: e.number(),
|
|
466
466
|
y: e.number()
|
|
467
|
-
}),
|
|
467
|
+
}), E = /* @__PURE__ */ function(e) {
|
|
468
468
|
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;
|
|
469
|
-
}({}),
|
|
469
|
+
}({}), D = /* @__PURE__ */ function(e) {
|
|
470
470
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
471
|
-
}({}),
|
|
471
|
+
}({}), O = e.object({
|
|
472
472
|
id: e.string(),
|
|
473
|
-
category: e.nativeEnum(
|
|
474
|
-
type: e.nativeEnum(
|
|
475
|
-
}),
|
|
473
|
+
category: e.nativeEnum(D),
|
|
474
|
+
type: e.nativeEnum(E)
|
|
475
|
+
}), k = O.extend({
|
|
476
476
|
category: e.literal("BLOCK"),
|
|
477
477
|
type: e.literal("RICH_TEXT"),
|
|
478
478
|
config: e.object({ content: e.string() }).passthrough()
|
|
479
|
-
}),
|
|
479
|
+
}), A = O.extend({
|
|
480
480
|
category: e.literal("BLOCK"),
|
|
481
481
|
type: e.union([
|
|
482
482
|
e.literal("NEXT_BUTTON"),
|
|
@@ -484,13 +484,13 @@ var t = e.object({
|
|
|
484
484
|
e.literal("SUBMIT_BUTTON")
|
|
485
485
|
]),
|
|
486
486
|
config: e.object({ text: e.string() }).passthrough()
|
|
487
|
-
}),
|
|
487
|
+
}), j = O.extend({
|
|
488
488
|
category: e.literal("FIELD"),
|
|
489
489
|
type: e.literal("LEGAL"),
|
|
490
490
|
required: e.boolean().optional(),
|
|
491
491
|
sensitive: e.boolean().optional(),
|
|
492
492
|
config: e.object({ text: e.string() }).passthrough()
|
|
493
|
-
}),
|
|
493
|
+
}), M = O.extend({
|
|
494
494
|
category: e.literal("FIELD"),
|
|
495
495
|
type: e.union([
|
|
496
496
|
e.literal("TEXT"),
|
|
@@ -510,40 +510,40 @@ var t = e.object({
|
|
|
510
510
|
label: e.string().optional(),
|
|
511
511
|
placeholder: e.string().optional()
|
|
512
512
|
}).passthrough()
|
|
513
|
-
}),
|
|
513
|
+
}), N = e.object({
|
|
514
514
|
id: e.string(),
|
|
515
515
|
category: e.string(),
|
|
516
516
|
type: e.string()
|
|
517
|
-
}).passthrough(),
|
|
517
|
+
}).passthrough(), P = e.union([
|
|
518
|
+
k,
|
|
518
519
|
A,
|
|
519
520
|
j,
|
|
520
521
|
M,
|
|
521
|
-
N
|
|
522
|
-
|
|
523
|
-
]), Me = /* @__PURE__ */ function(e) {
|
|
522
|
+
N
|
|
523
|
+
]), Ne = /* @__PURE__ */ function(e) {
|
|
524
524
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
525
|
-
}({}),
|
|
525
|
+
}({}), F = e.object({
|
|
526
526
|
id: e.string(),
|
|
527
527
|
type: e.literal("STEP"),
|
|
528
|
-
coordinates:
|
|
528
|
+
coordinates: T,
|
|
529
529
|
alias: e.string().optional(),
|
|
530
530
|
config: e.object({
|
|
531
|
-
components: e.array(
|
|
531
|
+
components: e.array(P),
|
|
532
532
|
next_node: e.string()
|
|
533
533
|
}).passthrough()
|
|
534
|
-
}),
|
|
534
|
+
}), I = e.object({
|
|
535
535
|
id: e.string(),
|
|
536
536
|
type: e.literal("FLOW"),
|
|
537
|
-
coordinates:
|
|
537
|
+
coordinates: T,
|
|
538
538
|
alias: e.string().optional(),
|
|
539
539
|
config: e.object({
|
|
540
540
|
flow_id: e.string(),
|
|
541
541
|
next_node: e.string()
|
|
542
542
|
})
|
|
543
|
-
}),
|
|
543
|
+
}), L = e.object({
|
|
544
544
|
id: e.string(),
|
|
545
545
|
type: e.literal("ACTION"),
|
|
546
|
-
coordinates:
|
|
546
|
+
coordinates: T,
|
|
547
547
|
alias: e.string().optional(),
|
|
548
548
|
config: e.object({
|
|
549
549
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -555,56 +555,56 @@ var t = e.object({
|
|
|
555
555
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
556
556
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
557
557
|
}).passthrough()
|
|
558
|
-
}),
|
|
558
|
+
}), R = e.object({
|
|
559
559
|
id: e.string(),
|
|
560
560
|
type: e.string(),
|
|
561
|
-
coordinates:
|
|
562
|
-
}).passthrough(),
|
|
561
|
+
coordinates: T
|
|
562
|
+
}).passthrough(), z = e.union([
|
|
563
|
+
F,
|
|
563
564
|
I,
|
|
564
565
|
L,
|
|
565
|
-
R
|
|
566
|
-
|
|
567
|
-
]), Ne = e.object({
|
|
566
|
+
R
|
|
567
|
+
]), Pe = e.object({
|
|
568
568
|
next_node: e.string(),
|
|
569
|
-
coordinates:
|
|
570
|
-
}).passthrough(), Pe = e.object({
|
|
571
|
-
resume_flow: e.boolean().optional(),
|
|
572
|
-
coordinates: E
|
|
569
|
+
coordinates: T
|
|
573
570
|
}).passthrough(), Fe = e.object({
|
|
571
|
+
resume_flow: e.boolean().optional(),
|
|
572
|
+
coordinates: T
|
|
573
|
+
}).passthrough(), Ie = e.object({
|
|
574
574
|
id: e.string(),
|
|
575
575
|
name: e.string(),
|
|
576
576
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
577
|
-
nodes: e.array(
|
|
578
|
-
start:
|
|
579
|
-
ending:
|
|
577
|
+
nodes: e.array(z),
|
|
578
|
+
start: Pe,
|
|
579
|
+
ending: Fe,
|
|
580
580
|
created_at: e.string(),
|
|
581
581
|
updated_at: e.string(),
|
|
582
582
|
links: e.object({
|
|
583
583
|
sdkSrc: e.string().optional(),
|
|
584
584
|
sdk_src: e.string().optional()
|
|
585
585
|
}).passthrough()
|
|
586
|
-
}).passthrough(),
|
|
586
|
+
}).passthrough(), Le = Ie.omit({
|
|
587
587
|
id: !0,
|
|
588
588
|
created_at: !0,
|
|
589
589
|
updated_at: !0
|
|
590
|
-
}),
|
|
590
|
+
}), Re = /* @__PURE__ */ function(e) {
|
|
591
591
|
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;
|
|
592
|
-
}({}), Re = /* @__PURE__ */ function(e) {
|
|
593
|
-
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
594
592
|
}({}), ze = /* @__PURE__ */ function(e) {
|
|
593
|
+
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
594
|
+
}({}), Be = /* @__PURE__ */ function(e) {
|
|
595
595
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
596
|
-
}({}),
|
|
596
|
+
}({}), Ve = e.union([e.null(), e.object({
|
|
597
597
|
essential: e.boolean().optional(),
|
|
598
598
|
value: e.unknown().optional(),
|
|
599
599
|
values: e.array(e.unknown()).optional()
|
|
600
|
-
})]).nullable(),
|
|
601
|
-
userinfo: e.record(e.string(),
|
|
602
|
-
id_token: e.record(e.string(),
|
|
603
|
-
}),
|
|
600
|
+
})]).nullable(), He = e.object({
|
|
601
|
+
userinfo: e.record(e.string(), Ve).optional(),
|
|
602
|
+
id_token: e.record(e.string(), Ve).optional()
|
|
603
|
+
}), Ue = e.object({
|
|
604
604
|
client_id: e.string(),
|
|
605
605
|
act_as: e.string().optional(),
|
|
606
|
-
response_type: e.nativeEnum(
|
|
607
|
-
response_mode: e.nativeEnum(
|
|
606
|
+
response_type: e.nativeEnum(Re).optional(),
|
|
607
|
+
response_mode: e.nativeEnum(ze).optional(),
|
|
608
608
|
redirect_uri: e.string().optional(),
|
|
609
609
|
audience: e.string().optional(),
|
|
610
610
|
organization: e.string().optional(),
|
|
@@ -612,15 +612,15 @@ var t = e.object({
|
|
|
612
612
|
nonce: e.string().optional(),
|
|
613
613
|
scope: e.string().optional(),
|
|
614
614
|
prompt: e.string().optional(),
|
|
615
|
-
code_challenge_method: e.nativeEnum(
|
|
615
|
+
code_challenge_method: e.nativeEnum(Be).optional(),
|
|
616
616
|
code_challenge: e.string().optional(),
|
|
617
617
|
username: e.string().optional(),
|
|
618
618
|
ui_locales: e.string().optional(),
|
|
619
619
|
max_age: e.number().optional(),
|
|
620
620
|
acr_values: e.string().optional(),
|
|
621
|
-
claims:
|
|
621
|
+
claims: He.optional(),
|
|
622
622
|
vendor_id: e.string().optional()
|
|
623
|
-
}),
|
|
623
|
+
}), We = e.object({
|
|
624
624
|
colors: e.object({
|
|
625
625
|
primary: e.string(),
|
|
626
626
|
page_background: e.union([e.string(), e.object({
|
|
@@ -639,7 +639,7 @@ var t = e.object({
|
|
|
639
639
|
"light",
|
|
640
640
|
"auto"
|
|
641
641
|
]).optional()
|
|
642
|
-
}),
|
|
642
|
+
}), Ge = e.enum([
|
|
643
643
|
"password_reset",
|
|
644
644
|
"email_verification",
|
|
645
645
|
"otp",
|
|
@@ -647,11 +647,11 @@ var t = e.object({
|
|
|
647
647
|
"authorization_code",
|
|
648
648
|
"oauth2_state",
|
|
649
649
|
"ticket"
|
|
650
|
-
]),
|
|
650
|
+
]), Ke = e.object({
|
|
651
651
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
652
652
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
653
653
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
654
|
-
code_type:
|
|
654
|
+
code_type: Ge,
|
|
655
655
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
656
656
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
657
657
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -662,7 +662,7 @@ var t = e.object({
|
|
|
662
662
|
expires_at: e.string(),
|
|
663
663
|
used_at: e.string().optional(),
|
|
664
664
|
user_id: e.string().optional()
|
|
665
|
-
}),
|
|
665
|
+
}), qe = Ke.extend({ created_at: e.string() }), Je = e.object({
|
|
666
666
|
kid: e.string().optional(),
|
|
667
667
|
team_id: e.string().optional(),
|
|
668
668
|
realms: e.string().optional(),
|
|
@@ -778,23 +778,23 @@ var t = e.object({
|
|
|
778
778
|
"never_on_login"
|
|
779
779
|
]).optional()
|
|
780
780
|
});
|
|
781
|
-
function
|
|
781
|
+
function B(e) {
|
|
782
782
|
if (e !== null) {
|
|
783
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
783
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(B);
|
|
784
784
|
if (e && typeof e == "object") {
|
|
785
785
|
let t = {};
|
|
786
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
786
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = B(r));
|
|
787
787
|
return t;
|
|
788
788
|
}
|
|
789
789
|
return e;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
var
|
|
792
|
+
var Ye = e.object({
|
|
793
793
|
id: e.string().optional(),
|
|
794
794
|
name: e.string(),
|
|
795
795
|
display_name: e.string().optional(),
|
|
796
796
|
strategy: e.string(),
|
|
797
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
797
|
+
options: e.preprocess((e) => e === null ? {} : B(e), Je).default({}),
|
|
798
798
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
799
799
|
response_type: e.custom().optional(),
|
|
800
800
|
response_mode: e.custom().optional(),
|
|
@@ -802,11 +802,11 @@ var Je = e.object({
|
|
|
802
802
|
show_as_button: e.boolean().optional(),
|
|
803
803
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
804
804
|
is_system: e.boolean().optional()
|
|
805
|
-
}),
|
|
805
|
+
}), Xe = e.object({
|
|
806
806
|
id: e.string(),
|
|
807
807
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
808
808
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
809
|
-
}).extend(
|
|
809
|
+
}).extend(Ye.shape), Ze = e.object({
|
|
810
810
|
domain: e.string(),
|
|
811
811
|
custom_domain_id: e.string().optional(),
|
|
812
812
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -820,7 +820,7 @@ var Je = e.object({
|
|
|
820
820
|
"null"
|
|
821
821
|
]).optional(),
|
|
822
822
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
823
|
-
}),
|
|
823
|
+
}), Qe = e.discriminatedUnion("name", [e.object({
|
|
824
824
|
name: e.literal("txt"),
|
|
825
825
|
record: e.string(),
|
|
826
826
|
domain: e.string()
|
|
@@ -828,7 +828,7 @@ var Je = e.object({
|
|
|
828
828
|
name: e.literal("http"),
|
|
829
829
|
http_body: e.string(),
|
|
830
830
|
http_url: e.string()
|
|
831
|
-
})]),
|
|
831
|
+
})]), $e = Ze.extend({
|
|
832
832
|
custom_domain_id: e.string(),
|
|
833
833
|
primary: e.boolean(),
|
|
834
834
|
status: e.enum([
|
|
@@ -838,19 +838,19 @@ var Je = e.object({
|
|
|
838
838
|
"ready"
|
|
839
839
|
]),
|
|
840
840
|
origin_domain_name: e.string().optional(),
|
|
841
|
-
verification: e.object({ methods: e.array(
|
|
841
|
+
verification: e.object({ methods: e.array(Qe) }).optional(),
|
|
842
842
|
tls_policy: e.string().optional()
|
|
843
|
-
}),
|
|
843
|
+
}), et = $e.extend({ tenant_id: e.string() }), V = e.object({
|
|
844
844
|
id: e.string(),
|
|
845
845
|
order: e.number().optional(),
|
|
846
846
|
visible: e.boolean().optional().default(!0)
|
|
847
|
-
}),
|
|
847
|
+
}), H = V.extend({ category: e.literal("BLOCK").optional() }), tt = H.extend({
|
|
848
848
|
type: e.literal("DIVIDER"),
|
|
849
849
|
config: e.object({ text: e.string().optional() }).optional()
|
|
850
|
-
}),
|
|
850
|
+
}), nt = H.extend({
|
|
851
851
|
type: e.literal("HTML"),
|
|
852
852
|
config: e.object({ content: e.string().optional() }).optional()
|
|
853
|
-
}),
|
|
853
|
+
}), rt = H.extend({
|
|
854
854
|
type: e.literal("IMAGE"),
|
|
855
855
|
config: e.object({
|
|
856
856
|
src: e.string().optional(),
|
|
@@ -858,43 +858,43 @@ var Je = e.object({
|
|
|
858
858
|
width: e.number().optional(),
|
|
859
859
|
height: e.number().optional()
|
|
860
860
|
}).optional()
|
|
861
|
-
}),
|
|
861
|
+
}), it = H.extend({
|
|
862
862
|
type: e.literal("JUMP_BUTTON"),
|
|
863
863
|
config: e.object({
|
|
864
864
|
text: e.string().optional(),
|
|
865
865
|
target_step: e.string().optional()
|
|
866
866
|
})
|
|
867
|
-
}),
|
|
867
|
+
}), at = H.extend({
|
|
868
868
|
type: e.literal("RESEND_BUTTON"),
|
|
869
869
|
config: e.object({
|
|
870
870
|
text: e.string().optional(),
|
|
871
871
|
resend_action: e.string().optional()
|
|
872
872
|
})
|
|
873
|
-
}),
|
|
873
|
+
}), ot = H.extend({
|
|
874
874
|
type: e.literal("NEXT_BUTTON"),
|
|
875
875
|
config: e.object({ text: e.string().optional() })
|
|
876
|
-
}),
|
|
876
|
+
}), st = H.extend({
|
|
877
877
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
878
878
|
config: e.object({ text: e.string().optional() })
|
|
879
|
-
}),
|
|
879
|
+
}), ct = H.extend({
|
|
880
880
|
type: e.literal("RICH_TEXT"),
|
|
881
881
|
config: e.object({ content: e.string().optional() }).optional()
|
|
882
|
-
}),
|
|
882
|
+
}), U = V.extend({
|
|
883
883
|
category: e.literal("WIDGET").optional(),
|
|
884
884
|
label: e.string().min(1).optional(),
|
|
885
885
|
hint: e.string().min(1).max(500).optional(),
|
|
886
886
|
required: e.boolean().optional(),
|
|
887
887
|
sensitive: e.boolean().optional()
|
|
888
|
-
}),
|
|
888
|
+
}), lt = U.extend({
|
|
889
889
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
890
890
|
config: e.object({ credential_type: e.string().optional() })
|
|
891
|
-
}),
|
|
891
|
+
}), ut = U.extend({
|
|
892
892
|
type: e.literal("GMAPS_ADDRESS"),
|
|
893
893
|
config: e.object({ api_key: e.string().optional() })
|
|
894
|
-
}),
|
|
894
|
+
}), dt = U.extend({
|
|
895
895
|
type: e.literal("RECAPTCHA"),
|
|
896
896
|
config: e.object({ site_key: e.string().optional() })
|
|
897
|
-
}),
|
|
897
|
+
}), W = V.extend({
|
|
898
898
|
category: e.literal("FIELD").optional(),
|
|
899
899
|
label: e.string().min(1).optional(),
|
|
900
900
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -910,10 +910,10 @@ var Je = e.object({
|
|
|
910
910
|
})).optional(),
|
|
911
911
|
required: e.boolean().optional(),
|
|
912
912
|
sensitive: e.boolean().optional()
|
|
913
|
-
}),
|
|
913
|
+
}), ft = W.extend({
|
|
914
914
|
type: e.literal("BOOLEAN"),
|
|
915
915
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
916
|
-
}),
|
|
916
|
+
}), pt = W.extend({
|
|
917
917
|
type: e.literal("CARDS"),
|
|
918
918
|
config: e.object({
|
|
919
919
|
options: e.array(e.object({
|
|
@@ -924,7 +924,7 @@ var Je = e.object({
|
|
|
924
924
|
})).optional(),
|
|
925
925
|
multi_select: e.boolean().optional()
|
|
926
926
|
}).optional()
|
|
927
|
-
}),
|
|
927
|
+
}), mt = W.extend({
|
|
928
928
|
type: e.literal("CHOICE"),
|
|
929
929
|
config: e.object({
|
|
930
930
|
options: e.array(e.object({
|
|
@@ -935,7 +935,7 @@ var Je = e.object({
|
|
|
935
935
|
multiple: e.boolean().optional(),
|
|
936
936
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
937
937
|
}).optional()
|
|
938
|
-
}),
|
|
938
|
+
}), ht = W.extend({
|
|
939
939
|
type: e.literal("CUSTOM"),
|
|
940
940
|
config: e.object({
|
|
941
941
|
component: e.string().optional(),
|
|
@@ -943,7 +943,7 @@ var Je = e.object({
|
|
|
943
943
|
schema: e.record(e.string(), e.any()).optional(),
|
|
944
944
|
code: e.string().optional()
|
|
945
945
|
})
|
|
946
|
-
}),
|
|
946
|
+
}), gt = W.extend({
|
|
947
947
|
type: e.literal("DATE"),
|
|
948
948
|
config: e.object({
|
|
949
949
|
format: e.string().optional(),
|
|
@@ -951,7 +951,7 @@ var Je = e.object({
|
|
|
951
951
|
max: e.string().optional(),
|
|
952
952
|
default_value: e.string().optional()
|
|
953
953
|
}).optional()
|
|
954
|
-
}),
|
|
954
|
+
}), _t = W.extend({
|
|
955
955
|
type: e.literal("DROPDOWN"),
|
|
956
956
|
config: e.object({
|
|
957
957
|
options: e.array(e.object({
|
|
@@ -963,26 +963,26 @@ var Je = e.object({
|
|
|
963
963
|
multiple: e.boolean().optional(),
|
|
964
964
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
965
965
|
}).optional()
|
|
966
|
-
}),
|
|
966
|
+
}), vt = W.extend({
|
|
967
967
|
type: e.literal("EMAIL"),
|
|
968
968
|
config: e.object({
|
|
969
969
|
placeholder: e.string().optional(),
|
|
970
970
|
default_value: e.string().optional()
|
|
971
971
|
}).optional()
|
|
972
|
-
}),
|
|
972
|
+
}), yt = W.extend({
|
|
973
973
|
type: e.literal("FILE"),
|
|
974
974
|
config: e.object({
|
|
975
975
|
accept: e.string().optional(),
|
|
976
976
|
max_size: e.number().optional(),
|
|
977
977
|
multiple: e.boolean().optional()
|
|
978
978
|
}).optional()
|
|
979
|
-
}),
|
|
979
|
+
}), bt = W.extend({
|
|
980
980
|
type: e.literal("LEGAL"),
|
|
981
981
|
config: e.object({
|
|
982
982
|
text: e.string(),
|
|
983
983
|
html: e.boolean().optional()
|
|
984
984
|
}).optional()
|
|
985
|
-
}),
|
|
985
|
+
}), xt = W.extend({
|
|
986
986
|
type: e.literal("NUMBER"),
|
|
987
987
|
config: e.object({
|
|
988
988
|
placeholder: e.string().optional(),
|
|
@@ -991,7 +991,7 @@ var Je = e.object({
|
|
|
991
991
|
step: e.number().optional(),
|
|
992
992
|
default_value: e.string().optional()
|
|
993
993
|
}).optional()
|
|
994
|
-
}),
|
|
994
|
+
}), St = W.extend({
|
|
995
995
|
type: e.literal("PASSWORD"),
|
|
996
996
|
config: e.object({
|
|
997
997
|
placeholder: e.string().optional(),
|
|
@@ -1000,13 +1000,13 @@ var Je = e.object({
|
|
|
1000
1000
|
forgot_password_link: e.string().optional(),
|
|
1001
1001
|
default_value: e.string().optional()
|
|
1002
1002
|
}).optional()
|
|
1003
|
-
}),
|
|
1003
|
+
}), Ct = W.extend({
|
|
1004
1004
|
type: e.literal("PAYMENT"),
|
|
1005
1005
|
config: e.object({
|
|
1006
1006
|
provider: e.string().optional(),
|
|
1007
1007
|
currency: e.string().optional()
|
|
1008
1008
|
}).optional()
|
|
1009
|
-
}),
|
|
1009
|
+
}), wt = W.extend({
|
|
1010
1010
|
type: e.literal("SOCIAL"),
|
|
1011
1011
|
config: e.object({
|
|
1012
1012
|
providers: e.array(e.string()).optional(),
|
|
@@ -1018,7 +1018,7 @@ var Je = e.object({
|
|
|
1018
1018
|
href: e.string().optional()
|
|
1019
1019
|
})).optional()
|
|
1020
1020
|
}).optional()
|
|
1021
|
-
}),
|
|
1021
|
+
}), Tt = W.extend({
|
|
1022
1022
|
type: e.literal("TEL"),
|
|
1023
1023
|
config: e.object({
|
|
1024
1024
|
placeholder: e.string().optional(),
|
|
@@ -1026,7 +1026,7 @@ var Je = e.object({
|
|
|
1026
1026
|
default_value: e.string().optional(),
|
|
1027
1027
|
allow_email: e.boolean().optional()
|
|
1028
1028
|
}).optional()
|
|
1029
|
-
}),
|
|
1029
|
+
}), Et = W.extend({
|
|
1030
1030
|
type: e.literal("TEXT"),
|
|
1031
1031
|
config: e.object({
|
|
1032
1032
|
placeholder: e.string().optional(),
|
|
@@ -1034,37 +1034,36 @@ var Je = e.object({
|
|
|
1034
1034
|
max_length: e.number().optional(),
|
|
1035
1035
|
default_value: e.string().optional()
|
|
1036
1036
|
}).optional()
|
|
1037
|
-
}),
|
|
1037
|
+
}), Dt = W.extend({
|
|
1038
1038
|
type: e.literal("COUNTRY"),
|
|
1039
1039
|
config: e.object({
|
|
1040
1040
|
placeholder: e.string().optional(),
|
|
1041
1041
|
default_value: e.string().optional()
|
|
1042
1042
|
}).optional()
|
|
1043
|
-
}),
|
|
1043
|
+
}), Ot = W.extend({
|
|
1044
1044
|
type: e.literal("URL"),
|
|
1045
1045
|
config: e.object({
|
|
1046
1046
|
placeholder: e.string().optional(),
|
|
1047
1047
|
default_value: e.string().optional()
|
|
1048
1048
|
}).optional()
|
|
1049
|
-
}),
|
|
1050
|
-
et,
|
|
1049
|
+
}), kt = e.discriminatedUnion("type", [
|
|
1051
1050
|
tt,
|
|
1052
1051
|
nt,
|
|
1053
1052
|
rt,
|
|
1054
1053
|
it,
|
|
1055
1054
|
at,
|
|
1056
1055
|
ot,
|
|
1057
|
-
st
|
|
1058
|
-
|
|
1059
|
-
ct,
|
|
1060
|
-
lt,
|
|
1061
|
-
ut
|
|
1056
|
+
st,
|
|
1057
|
+
ct
|
|
1062
1058
|
]), At = e.discriminatedUnion("type", [
|
|
1063
|
-
|
|
1059
|
+
lt,
|
|
1060
|
+
ut,
|
|
1061
|
+
dt
|
|
1062
|
+
]), jt = e.discriminatedUnion("type", [
|
|
1064
1063
|
ft,
|
|
1065
1064
|
pt,
|
|
1066
|
-
Et,
|
|
1067
1065
|
mt,
|
|
1066
|
+
Dt,
|
|
1068
1067
|
ht,
|
|
1069
1068
|
gt,
|
|
1070
1069
|
_t,
|
|
@@ -1076,12 +1075,13 @@ var Je = e.object({
|
|
|
1076
1075
|
Ct,
|
|
1077
1076
|
wt,
|
|
1078
1077
|
Tt,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1078
|
+
Et,
|
|
1079
|
+
Ot
|
|
1080
|
+
]), G = e.union([
|
|
1082
1081
|
kt,
|
|
1083
|
-
At
|
|
1084
|
-
|
|
1082
|
+
At,
|
|
1083
|
+
jt
|
|
1084
|
+
]), Mt = new Set([
|
|
1085
1085
|
"BOOLEAN",
|
|
1086
1086
|
"CARDS",
|
|
1087
1087
|
"CHOICE",
|
|
@@ -1095,7 +1095,7 @@ var Je = e.object({
|
|
|
1095
1095
|
"TEL",
|
|
1096
1096
|
"TEXT",
|
|
1097
1097
|
"URL"
|
|
1098
|
-
]),
|
|
1098
|
+
]), Nt = e.object({
|
|
1099
1099
|
id: e.string(),
|
|
1100
1100
|
type: e.literal("submit"),
|
|
1101
1101
|
label: e.string(),
|
|
@@ -1104,22 +1104,22 @@ var Je = e.object({
|
|
|
1104
1104
|
order: e.number().optional(),
|
|
1105
1105
|
visible: e.boolean().optional().default(!0),
|
|
1106
1106
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1107
|
-
}),
|
|
1107
|
+
}), K = e.object({
|
|
1108
1108
|
x: e.number(),
|
|
1109
1109
|
y: e.number()
|
|
1110
|
-
}),
|
|
1110
|
+
}), Pt = e.object({
|
|
1111
1111
|
id: e.string(),
|
|
1112
1112
|
type: e.literal("FLOW"),
|
|
1113
|
-
coordinates:
|
|
1113
|
+
coordinates: K,
|
|
1114
1114
|
alias: e.string().min(1).max(150).optional(),
|
|
1115
1115
|
config: e.object({
|
|
1116
1116
|
flow_id: e.string().max(30),
|
|
1117
1117
|
next_node: e.string().optional()
|
|
1118
1118
|
})
|
|
1119
|
-
}),
|
|
1119
|
+
}), Ft = e.object({
|
|
1120
1120
|
id: e.string(),
|
|
1121
1121
|
type: e.literal("ROUTER"),
|
|
1122
|
-
coordinates:
|
|
1122
|
+
coordinates: K,
|
|
1123
1123
|
alias: e.string().min(1).max(150),
|
|
1124
1124
|
config: e.object({
|
|
1125
1125
|
rules: e.array(e.object({
|
|
@@ -1130,20 +1130,20 @@ var Je = e.object({
|
|
|
1130
1130
|
})),
|
|
1131
1131
|
fallback: e.string()
|
|
1132
1132
|
})
|
|
1133
|
-
}),
|
|
1133
|
+
}), It = e.object({
|
|
1134
1134
|
id: e.string(),
|
|
1135
1135
|
type: e.literal("STEP"),
|
|
1136
|
-
coordinates:
|
|
1136
|
+
coordinates: K,
|
|
1137
1137
|
alias: e.string().min(1).max(150).optional(),
|
|
1138
1138
|
config: e.object({
|
|
1139
|
-
components: e.array(
|
|
1139
|
+
components: e.array(G),
|
|
1140
1140
|
next_node: e.string().optional()
|
|
1141
1141
|
})
|
|
1142
|
-
}),
|
|
1143
|
-
Nt,
|
|
1142
|
+
}), Lt = e.discriminatedUnion("type", [
|
|
1144
1143
|
Pt,
|
|
1145
|
-
Ft
|
|
1146
|
-
|
|
1144
|
+
Ft,
|
|
1145
|
+
It
|
|
1146
|
+
]), Rt = e.object({
|
|
1147
1147
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1148
1148
|
messages: e.object({
|
|
1149
1149
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1154,14 +1154,14 @@ var Je = e.object({
|
|
|
1154
1154
|
default: e.string().optional()
|
|
1155
1155
|
}).optional(),
|
|
1156
1156
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1157
|
-
nodes: e.array(
|
|
1157
|
+
nodes: e.array(Lt).optional(),
|
|
1158
1158
|
start: e.object({
|
|
1159
1159
|
hidden_fields: e.array(e.object({
|
|
1160
1160
|
key: e.string(),
|
|
1161
1161
|
value: e.string()
|
|
1162
1162
|
})).optional(),
|
|
1163
1163
|
next_node: e.string().optional(),
|
|
1164
|
-
coordinates:
|
|
1164
|
+
coordinates: K.optional()
|
|
1165
1165
|
}).optional(),
|
|
1166
1166
|
ending: e.object({
|
|
1167
1167
|
redirection: e.object({
|
|
@@ -1169,7 +1169,7 @@ var Je = e.object({
|
|
|
1169
1169
|
target: e.string().optional()
|
|
1170
1170
|
}).optional(),
|
|
1171
1171
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1172
|
-
coordinates:
|
|
1172
|
+
coordinates: K.optional(),
|
|
1173
1173
|
resume_flow: e.boolean().optional()
|
|
1174
1174
|
}).optional(),
|
|
1175
1175
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1177,7 +1177,7 @@ var Je = e.object({
|
|
|
1177
1177
|
sdkSrc: e.string().optional(),
|
|
1178
1178
|
sdk_src: e.string().optional()
|
|
1179
1179
|
}).optional()
|
|
1180
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1180
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), zt = t.extend(Rt.shape).extend({ id: e.string() }), Bt = e.object({
|
|
1181
1181
|
id: e.number().optional(),
|
|
1182
1182
|
text: e.string(),
|
|
1183
1183
|
type: e.enum([
|
|
@@ -1186,34 +1186,34 @@ var Je = e.object({
|
|
|
1186
1186
|
"success",
|
|
1187
1187
|
"warning"
|
|
1188
1188
|
])
|
|
1189
|
-
}),
|
|
1189
|
+
}), Vt = e.object({
|
|
1190
1190
|
id: e.string().optional(),
|
|
1191
1191
|
text: e.string(),
|
|
1192
1192
|
href: e.string(),
|
|
1193
1193
|
linkText: e.string().optional()
|
|
1194
|
-
}),
|
|
1194
|
+
}), Ht = e.object({
|
|
1195
1195
|
name: e.string().optional(),
|
|
1196
1196
|
action: e.string(),
|
|
1197
1197
|
method: e.enum(["POST", "GET"]),
|
|
1198
1198
|
title: e.string().optional(),
|
|
1199
1199
|
description: e.string().optional(),
|
|
1200
|
-
components: e.array(
|
|
1201
|
-
messages: e.array(
|
|
1202
|
-
links: e.array(
|
|
1200
|
+
components: e.array(G),
|
|
1201
|
+
messages: e.array(Bt).optional(),
|
|
1202
|
+
links: e.array(Vt).optional(),
|
|
1203
1203
|
footer: e.string().optional()
|
|
1204
1204
|
});
|
|
1205
|
-
function
|
|
1205
|
+
function Ut(e) {
|
|
1206
1206
|
return e.category === "BLOCK";
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Wt(e) {
|
|
1209
1209
|
return e.category === "WIDGET";
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Gt(e) {
|
|
1212
1212
|
return e.category === "FIELD";
|
|
1213
1213
|
}
|
|
1214
1214
|
//#endregion
|
|
1215
1215
|
//#region src/types/Hook.ts
|
|
1216
|
-
var
|
|
1216
|
+
var Kt = e.enum([
|
|
1217
1217
|
"pre-user-registration",
|
|
1218
1218
|
"post-user-registration",
|
|
1219
1219
|
"post-user-login",
|
|
@@ -1221,28 +1221,28 @@ var Wt = e.enum([
|
|
|
1221
1221
|
"validate-registration-username",
|
|
1222
1222
|
"pre-user-deletion",
|
|
1223
1223
|
"post-user-deletion"
|
|
1224
|
-
]),
|
|
1224
|
+
]), qt = e.enum([
|
|
1225
1225
|
"pre-user-registration",
|
|
1226
1226
|
"post-user-registration",
|
|
1227
1227
|
"post-user-login",
|
|
1228
1228
|
"validate-registration-username",
|
|
1229
1229
|
"pre-user-deletion",
|
|
1230
1230
|
"post-user-deletion"
|
|
1231
|
-
]),
|
|
1231
|
+
]), Jt = e.enum([
|
|
1232
1232
|
"post-user-login",
|
|
1233
1233
|
"post-user-registration",
|
|
1234
1234
|
"post-user-update",
|
|
1235
1235
|
"credentials-exchange"
|
|
1236
|
-
]),
|
|
1236
|
+
]), Yt = e.enum([
|
|
1237
1237
|
"post-user-login",
|
|
1238
1238
|
"credentials-exchange",
|
|
1239
1239
|
"pre-user-registration",
|
|
1240
1240
|
"post-user-registration"
|
|
1241
|
-
]),
|
|
1241
|
+
]), q = e.enum([
|
|
1242
1242
|
"ensure-username",
|
|
1243
1243
|
"set-preferred-username",
|
|
1244
1244
|
"account-linking"
|
|
1245
|
-
]),
|
|
1245
|
+
]), Xt = {
|
|
1246
1246
|
"ensure-username": {
|
|
1247
1247
|
name: "Ensure Username",
|
|
1248
1248
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1262,73 +1262,73 @@ var Wt = e.enum([
|
|
|
1262
1262
|
"post-user-update"
|
|
1263
1263
|
]
|
|
1264
1264
|
}
|
|
1265
|
-
},
|
|
1265
|
+
}, J = {
|
|
1266
1266
|
enabled: e.boolean().default(!1),
|
|
1267
1267
|
synchronous: e.boolean().default(!1),
|
|
1268
1268
|
priority: e.number().optional(),
|
|
1269
1269
|
hook_id: e.string().optional(),
|
|
1270
1270
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1271
|
-
},
|
|
1272
|
-
...
|
|
1273
|
-
trigger_id: Wt,
|
|
1274
|
-
url: e.string()
|
|
1275
|
-
}), Xt = e.object({
|
|
1276
|
-
...X,
|
|
1277
|
-
trigger_id: Gt,
|
|
1278
|
-
form_id: e.string()
|
|
1279
|
-
}), Zt = e.object({
|
|
1280
|
-
...X,
|
|
1271
|
+
}, Zt = e.object({
|
|
1272
|
+
...J,
|
|
1281
1273
|
trigger_id: Kt,
|
|
1282
|
-
|
|
1274
|
+
url: e.string()
|
|
1283
1275
|
}), Qt = e.object({
|
|
1284
|
-
...
|
|
1276
|
+
...J,
|
|
1285
1277
|
trigger_id: qt,
|
|
1278
|
+
form_id: e.string()
|
|
1279
|
+
}), $t = e.object({
|
|
1280
|
+
...J,
|
|
1281
|
+
trigger_id: Jt,
|
|
1282
|
+
template_id: q
|
|
1283
|
+
}), en = e.object({
|
|
1284
|
+
...J,
|
|
1285
|
+
trigger_id: Yt,
|
|
1286
1286
|
code_id: e.string()
|
|
1287
|
-
}),
|
|
1288
|
-
Yt,
|
|
1289
|
-
Xt,
|
|
1287
|
+
}), tn = e.union([
|
|
1290
1288
|
Zt,
|
|
1291
|
-
Qt
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1289
|
+
Qt,
|
|
1290
|
+
$t,
|
|
1291
|
+
en
|
|
1292
|
+
]), nn = e.object({
|
|
1293
|
+
...J,
|
|
1294
|
+
trigger_id: Kt
|
|
1295
1295
|
}).extend(t.shape).extend({
|
|
1296
1296
|
hook_id: e.string(),
|
|
1297
1297
|
url: e.string()
|
|
1298
|
-
}),
|
|
1299
|
-
...
|
|
1300
|
-
trigger_id:
|
|
1298
|
+
}), rn = e.object({
|
|
1299
|
+
...J,
|
|
1300
|
+
trigger_id: qt
|
|
1301
1301
|
}).extend(t.shape).extend({
|
|
1302
1302
|
hook_id: e.string(),
|
|
1303
1303
|
form_id: e.string()
|
|
1304
|
-
}),
|
|
1305
|
-
...
|
|
1306
|
-
trigger_id:
|
|
1304
|
+
}), an = e.object({
|
|
1305
|
+
...J,
|
|
1306
|
+
trigger_id: Jt
|
|
1307
1307
|
}).extend(t.shape).extend({
|
|
1308
1308
|
hook_id: e.string(),
|
|
1309
|
-
template_id:
|
|
1310
|
-
}),
|
|
1311
|
-
...
|
|
1312
|
-
trigger_id:
|
|
1309
|
+
template_id: q
|
|
1310
|
+
}), on = e.object({
|
|
1311
|
+
...J,
|
|
1312
|
+
trigger_id: Yt
|
|
1313
1313
|
}).extend(t.shape).extend({
|
|
1314
1314
|
hook_id: e.string(),
|
|
1315
1315
|
code_id: e.string()
|
|
1316
|
-
}),
|
|
1317
|
-
en,
|
|
1318
|
-
tn,
|
|
1316
|
+
}), sn = e.union([
|
|
1319
1317
|
nn,
|
|
1320
|
-
rn
|
|
1321
|
-
|
|
1318
|
+
rn,
|
|
1319
|
+
an,
|
|
1320
|
+
on
|
|
1321
|
+
]), cn = e.object({
|
|
1322
1322
|
code: e.string().max(1e5),
|
|
1323
1323
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1324
|
-
}),
|
|
1324
|
+
}), ln = cn.extend({
|
|
1325
1325
|
id: e.string(),
|
|
1326
1326
|
tenant_id: e.string()
|
|
1327
|
-
}).extend(t.shape),
|
|
1327
|
+
}).extend(t.shape), un = e.object({ name: e.string().optional() }), dn = e.object({ email: e.string().optional() }), Y = e.object({
|
|
1328
1328
|
id: e.string().optional(),
|
|
1329
1329
|
organization_id: e.string().max(50),
|
|
1330
|
-
inviter:
|
|
1331
|
-
invitee:
|
|
1330
|
+
inviter: un,
|
|
1331
|
+
invitee: dn,
|
|
1332
1332
|
invitation_url: e.string().url(),
|
|
1333
1333
|
client_id: e.string(),
|
|
1334
1334
|
connection_id: e.string().optional(),
|
|
@@ -1337,13 +1337,13 @@ var Wt = e.enum([
|
|
|
1337
1337
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1338
1338
|
roles: e.array(e.string()).default([]).optional(),
|
|
1339
1339
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1340
|
-
}),
|
|
1340
|
+
}), fn = e.object({
|
|
1341
1341
|
id: e.string(),
|
|
1342
1342
|
organization_id: e.string().max(50),
|
|
1343
1343
|
created_at: e.string().datetime(),
|
|
1344
1344
|
expires_at: e.string().datetime(),
|
|
1345
1345
|
ticket_id: e.string().optional()
|
|
1346
|
-
}).extend(
|
|
1346
|
+
}).extend(Y.omit({ id: !0 }).shape), pn = e.object({
|
|
1347
1347
|
alg: e.enum([
|
|
1348
1348
|
"RS256",
|
|
1349
1349
|
"RS384",
|
|
@@ -1384,7 +1384,7 @@ var Wt = e.enum([
|
|
|
1384
1384
|
path: [r],
|
|
1385
1385
|
message: `EC JWK is missing required member '${r}'`
|
|
1386
1386
|
});
|
|
1387
|
-
}),
|
|
1387
|
+
}), mn = e.object({ keys: e.array(pn) }), hn = e.object({
|
|
1388
1388
|
issuer: e.string(),
|
|
1389
1389
|
authorization_endpoint: e.string(),
|
|
1390
1390
|
token_endpoint: e.string(),
|
|
@@ -1407,33 +1407,33 @@ var Wt = e.enum([
|
|
|
1407
1407
|
claims_parameter_supported: e.boolean().optional(),
|
|
1408
1408
|
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
1409
1409
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1410
|
-
}),
|
|
1410
|
+
}), gn = /* @__PURE__ */ function(e) {
|
|
1411
1411
|
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.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1412
|
-
}({}),
|
|
1412
|
+
}({}), _n = e.nativeEnum(gn), vn = e.object({
|
|
1413
1413
|
strategy: e.string(),
|
|
1414
1414
|
strategy_type: e.string()
|
|
1415
|
-
}),
|
|
1415
|
+
}), yn = e.object({
|
|
1416
1416
|
csrf_token: e.string(),
|
|
1417
1417
|
auth0Client: e.string().optional(),
|
|
1418
|
-
authParams:
|
|
1418
|
+
authParams: Ue,
|
|
1419
1419
|
expires_at: e.string(),
|
|
1420
1420
|
deleted_at: e.string().optional(),
|
|
1421
1421
|
ip: e.string().optional(),
|
|
1422
1422
|
useragent: e.string().optional(),
|
|
1423
1423
|
session_id: e.string().optional(),
|
|
1424
1424
|
authorization_url: e.string().optional(),
|
|
1425
|
-
state:
|
|
1425
|
+
state: _n.optional().default("pending"),
|
|
1426
1426
|
state_data: e.string().optional(),
|
|
1427
1427
|
failure_reason: e.string().optional(),
|
|
1428
1428
|
user_id: e.string().optional(),
|
|
1429
1429
|
auth_connection: e.string().optional(),
|
|
1430
|
-
auth_strategy:
|
|
1430
|
+
auth_strategy: vn.optional(),
|
|
1431
1431
|
authenticated_at: e.string().optional()
|
|
1432
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1432
|
+
}).openapi({ description: "This represents a login sesion" }), bn = yn.extend({
|
|
1433
1433
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1434
1434
|
created_at: e.string(),
|
|
1435
1435
|
updated_at: e.string()
|
|
1436
|
-
}),
|
|
1436
|
+
}), X = {
|
|
1437
1437
|
ACLS_SUMMARY: "acls_summary",
|
|
1438
1438
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1439
1439
|
API_LIMIT: "api_limit",
|
|
@@ -1591,188 +1591,188 @@ var Wt = e.enum([
|
|
|
1591
1591
|
WARNING_DURING_LOGIN: "w",
|
|
1592
1592
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1593
1593
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1594
|
-
},
|
|
1595
|
-
[
|
|
1596
|
-
[
|
|
1597
|
-
[
|
|
1598
|
-
[
|
|
1599
|
-
[
|
|
1600
|
-
[
|
|
1601
|
-
[
|
|
1602
|
-
[
|
|
1603
|
-
[
|
|
1604
|
-
[
|
|
1605
|
-
[
|
|
1606
|
-
[
|
|
1607
|
-
[
|
|
1608
|
-
[
|
|
1609
|
-
[
|
|
1610
|
-
[
|
|
1611
|
-
[
|
|
1612
|
-
[
|
|
1613
|
-
[
|
|
1614
|
-
[
|
|
1615
|
-
[
|
|
1616
|
-
[
|
|
1617
|
-
[
|
|
1618
|
-
[
|
|
1619
|
-
[
|
|
1620
|
-
[
|
|
1621
|
-
[
|
|
1622
|
-
[
|
|
1623
|
-
[
|
|
1624
|
-
[
|
|
1625
|
-
[
|
|
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
|
-
},
|
|
1594
|
+
}, xn = e.string().refine((e) => Object.values(X).includes(e), { message: "Invalid log type" }), Sn = {
|
|
1595
|
+
[X.ACLS_SUMMARY]: "ACLs Summary",
|
|
1596
|
+
[X.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1597
|
+
[X.API_LIMIT]: "API Rate Limit Reached",
|
|
1598
|
+
[X.API_LIMIT_WARNING]: "API Rate Limit Warning",
|
|
1599
|
+
[X.APPI]: "API Operation",
|
|
1600
|
+
[X.CIBA_EXCHANGE_FAILED]: "CIBA Exchange Failed",
|
|
1601
|
+
[X.CIBA_EXCHANGE_SUCCEEDED]: "CIBA Exchange Succeeded",
|
|
1602
|
+
[X.CIBA_START_FAILED]: "CIBA Start Failed",
|
|
1603
|
+
[X.CIBA_START_SUCCEEDED]: "CIBA Start Succeeded",
|
|
1604
|
+
[X.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1605
|
+
[X.CODE_SENT]: "Code Sent",
|
|
1606
|
+
[X.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1607
|
+
[X.FAILED_LOGIN]: "Failed Login",
|
|
1608
|
+
[X.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1609
|
+
[X.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
1610
|
+
[X.FAILED_BY_CORS]: "Failed by CORS",
|
|
1611
|
+
[X.FAILED_CROSS_ORIGIN_AUTHENTICATION]: "Failed Cross Origin Authentication",
|
|
1612
|
+
[X.FAILED_CHANGE_PASSWORD]: "Failed Change Password",
|
|
1613
|
+
[X.FAILED_POST_CHANGE_PASSWORD_HOOK]: "Failed Post-Change Password Hook",
|
|
1614
|
+
[X.FAILED_CHANGE_PHONE_NUMBER]: "Failed Change Phone Number",
|
|
1615
|
+
[X.FAILED_CHANGE_PASSWORD_REQUEST]: "Failed Change Password Request",
|
|
1616
|
+
[X.FAILED_CONNECTOR_PROVISIONING]: "Failed Connector Provisioning",
|
|
1617
|
+
[X.FAILED_CHANGE_USERNAME]: "Failed Change Username",
|
|
1618
|
+
[X.FAILED_DELEGATION]: "Failed Delegation",
|
|
1619
|
+
[X.FAILED_DEVICE_ACTIVATION]: "Failed Device Activation",
|
|
1620
|
+
[X.FAILED_DEVICE_AUTHORIZATION_REQUEST]: "Failed Device Authorization Request",
|
|
1621
|
+
[X.USER_CANCELED_DEVICE_CONFIRMATION]: "User Canceled Device Confirmation",
|
|
1622
|
+
[X.FAILED_USER_DELETION]: "Failed User Deletion",
|
|
1623
|
+
[X.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Authorization Code for Access Token",
|
|
1624
|
+
[X.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Failed Exchange Access Token for Client Credentials",
|
|
1625
|
+
[X.FAILED_EXCHANGE_CUSTOM_TOKEN]: "Failed Exchange Custom Token",
|
|
1626
|
+
[X.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Device Code for Access Token",
|
|
1627
|
+
[X.FAILED_FEDERATED_LOGOUT]: "Failed Federated Logout",
|
|
1628
|
+
[X.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Failed Exchange Native Social Login",
|
|
1629
|
+
[X.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Failed Exchange Password OOB for Access Token",
|
|
1630
|
+
[X.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Password OTP for Access Token",
|
|
1631
|
+
[X.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Failed Exchange Password for Access Token",
|
|
1632
|
+
[X.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Passwordless OTP for Access Token",
|
|
1633
|
+
[X.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Failed Exchange Password MFA Recovery for Access Token",
|
|
1634
|
+
[X.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN]: "Failed Exchange Rotating Refresh Token",
|
|
1635
|
+
[X.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Refresh Token for Access Token",
|
|
1636
|
+
[X.FAILED_HOOK]: "Failed Hook",
|
|
1637
|
+
[X.FAILED_IMPERSONATION]: "Failed Impersonation",
|
|
1638
|
+
[X.FAILED_INVITE_ACCEPT]: "Failed Invite Accept",
|
|
1639
|
+
[X.FAILED_LOGOUT]: "Failed Logout",
|
|
1640
|
+
[X.FLOWS_EXECUTION_COMPLETED]: "Flows Execution Completed",
|
|
1641
|
+
[X.FLOWS_EXECUTION_FAILED]: "Flows Execution Failed",
|
|
1642
|
+
[X.FAILED_SENDING_NOTIFICATION]: "Failed Sending Notification",
|
|
1643
|
+
[X.FORMS_SUBMISSION_FAILED]: "Forms Submission Failed",
|
|
1644
|
+
[X.FORMS_SUBMISSION_SUCCEEDED]: "Forms Submission Succeeded",
|
|
1645
|
+
[X.FAILED_LOGIN_INCORRECT_PASSWORD]: "Failed Login - Incorrect Password",
|
|
1646
|
+
[X.FAILED_PUSHED_AUTHORIZATION_REQUEST]: "Failed Pushed Authorization Request",
|
|
1647
|
+
[X.FAILED_POST_USER_REGISTRATION_HOOK]: "Failed Post-User Registration Hook",
|
|
1648
|
+
[X.FAILED_SIGNUP]: "Failed Signup",
|
|
1649
|
+
[X.FAILED_SILENT_AUTH]: "Failed Silent Auth",
|
|
1650
|
+
[X.FAILED_LOGIN_INVALID_EMAIL_USERNAME]: "Failed Login - Invalid Email/Username",
|
|
1651
|
+
[X.FAILED_USERS_IMPORT]: "Failed Users Import",
|
|
1652
|
+
[X.FAILED_VERIFICATION_EMAIL]: "Failed Verification Email",
|
|
1653
|
+
[X.FAILED_VERIFICATION_EMAIL_REQUEST]: "Failed Verification Email Request",
|
|
1654
|
+
[X.EMAIL_VERIFICATION_CONFIRMED]: "Email Verification Confirmed",
|
|
1655
|
+
[X.EMAIL_VERIFICATION_FAILED]: "Email Verification Failed",
|
|
1656
|
+
[X.MFA_AUTH_FAILED]: "MFA Auth Failed",
|
|
1657
|
+
[X.MFA_AUTH_REJECTED]: "MFA Auth Rejected",
|
|
1658
|
+
[X.MFA_AUTH_SUCCESS]: "MFA Auth Success",
|
|
1659
|
+
[X.MFA_ENROLLMENT_COMPLETE]: "MFA Enrollment Complete",
|
|
1660
|
+
[X.TOO_MANY_MFA_FAILURES]: "Too Many MFA Failures",
|
|
1661
|
+
[X.MFA_RECOVERY_FAILED]: "MFA Recovery Failed",
|
|
1662
|
+
[X.MFA_RECOVERY_RATE_LIMIT_EXCEED]: "MFA Recovery Rate Limit Exceeded",
|
|
1663
|
+
[X.MFA_RECOVERY_SUCCESS]: "MFA Recovery Success",
|
|
1664
|
+
[X.MFA_EMAIL_SENT]: "MFA Email Sent",
|
|
1665
|
+
[X.EMAIL_VERIFICATION_SENT]: "Email Verification Sent",
|
|
1666
|
+
[X.EMAIL_VERIFICATION_SEND_FAILURE]: "Email Verification Send Failure",
|
|
1667
|
+
[X.PUSH_NOTIFICATION_SENT]: "Push Notification Sent",
|
|
1668
|
+
[X.ERROR_SENDING_MFA_PUSH_NOTIFICATION]: "Error Sending MFA Push Notification",
|
|
1669
|
+
[X.MFA_SMS_SENT]: "MFA SMS Sent",
|
|
1670
|
+
[X.ERROR_SENDING_MFA_SMS]: "Error Sending MFA SMS",
|
|
1671
|
+
[X.MFA_VOICE_CALL_SUCCESS]: "MFA Voice Call Success",
|
|
1672
|
+
[X.MFA_VOICE_CALL_FAILED]: "MFA Voice Call Failed",
|
|
1673
|
+
[X.SECOND_FACTOR_STARTED]: "Second Factor Started",
|
|
1674
|
+
[X.MFA_ENROLL_STARTED]: "MFA Enroll Started",
|
|
1675
|
+
[X.MFA_ENROLLMENT_FAILED]: "MFA Enrollment Failed",
|
|
1676
|
+
[X.GUARDIAN_TENANT_UPDATE]: "Guardian Tenant Update",
|
|
1677
|
+
[X.UNENROLL_DEVICE_ACCOUNT]: "Unenroll Device Account",
|
|
1678
|
+
[X.UPDATE_DEVICE_ACCOUNT]: "Update Device Account",
|
|
1679
|
+
[X.WEBAUTHN_CHALLENGE_FAILED]: "WebAuthn Challenge Failed",
|
|
1680
|
+
[X.WEBAUTHN_ENROLLMENT_FAILED]: "WebAuthn Enrollment Failed",
|
|
1681
|
+
[X.FAILED_KMS_API_OPERATION]: "Failed KMS API Operation",
|
|
1682
|
+
[X.SUCCESS_KMS_API_OPERATION]: "Success KMS API Operation",
|
|
1683
|
+
[X.KMS_KEY_STATE_CHANGED]: "KMS Key State Changed",
|
|
1684
|
+
[X.TOO_MANY_CALLS_TO_DELEGATION]: "Too Many Calls to Delegation",
|
|
1685
|
+
[X.BLOCKED_IP_ADDRESS]: "Blocked IP Address",
|
|
1686
|
+
[X.BLOCKED_ACCOUNT_IP]: "Blocked Account (IP)",
|
|
1687
|
+
[X.BLOCKED_ACCOUNT_EMAIL]: "Blocked Account (Email)",
|
|
1688
|
+
[X.INFORMATION]: "Information",
|
|
1689
|
+
[X.MFA_REQUIRED]: "MFA Required",
|
|
1690
|
+
[X.MANAGEMENT_API_READ_OPERATION]: "Management API Read Operation",
|
|
1691
|
+
[X.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Failed Authentication Method Operation (My Account)",
|
|
1692
|
+
[X.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Successful Authentication Method Operation (My Account)",
|
|
1693
|
+
[X.FAILED_OIDC_BACKCHANNEL_LOGOUT]: "Failed OIDC Backchannel Logout",
|
|
1694
|
+
[X.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT]: "Successful OIDC Backchannel Logout",
|
|
1695
|
+
[X.ORGANIZATION_MEMBER_ADDED]: "Organization Member Added",
|
|
1696
|
+
[X.PASSKEY_CHALLENGE_FAILED]: "Passkey Challenge Failed",
|
|
1697
|
+
[X.PASSKEY_CHALLENGE_STARTED]: "Passkey Challenge Started",
|
|
1698
|
+
[X.PRE_LOGIN_ASSESSMENT]: "Pre-Login Assessment",
|
|
1699
|
+
[X.BREACHED_PASSWORD]: "Breached Password",
|
|
1700
|
+
[X.BREACHED_PASSWORD_ON_RESET]: "Breached Password on Reset",
|
|
1701
|
+
[X.SUCCESS_RESOURCE_CLEANUP]: "Success Resource Cleanup",
|
|
1702
|
+
[X.RICH_CONSENTS_ACCESS_ERROR]: "Rich Consents Access Error",
|
|
1703
|
+
[X.SUCCESS_LOGIN]: "Success Login",
|
|
1704
|
+
[X.SUCCESS_API_OPERATION]: "Success API Operation",
|
|
1705
|
+
[X.FAILED_API_OPERATION]: "Failed API Operation",
|
|
1706
|
+
[X.SUCCESS_CHANGE_EMAIL]: "Success Change Email",
|
|
1707
|
+
[X.SUCCESS_CROSS_ORIGIN_AUTHENTICATION]: "Success Cross Origin Authentication",
|
|
1708
|
+
[X.SUCCESS_CHANGE_PASSWORD]: "Success Change Password",
|
|
1709
|
+
[X.SUCCESS_CHANGE_PHONE_NUMBER]: "Success Change Phone Number",
|
|
1710
|
+
[X.SUCCESS_CHANGE_PASSWORD_REQUEST]: "Success Change Password Request",
|
|
1711
|
+
[X.SUCCESS_CHANGE_USERNAME]: "Success Change Username",
|
|
1712
|
+
[X.SUCCESS_CREDENTIAL_VALIDATION]: "Success Credential Validation",
|
|
1713
|
+
[X.SUCCESS_DELEGATION]: "Success Delegation",
|
|
1714
|
+
[X.SUCCESS_USER_DELETION]: "Success User Deletion",
|
|
1715
|
+
[X.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Authorization Code for Access Token",
|
|
1716
|
+
[X.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Success Exchange Access Token for Client Credentials",
|
|
1717
|
+
[X.SUCCESS_EXCHANGE_CUSTOM_TOKEN]: "Success Exchange Custom Token",
|
|
1718
|
+
[X.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Device Code for Access Token",
|
|
1719
|
+
[X.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
|
|
1720
|
+
[X.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
|
|
1721
|
+
[X.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
|
|
1722
|
+
[X.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
|
|
1723
|
+
[X.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
|
|
1724
|
+
[X.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
|
|
1725
|
+
[X.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
|
|
1726
|
+
[X.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Passkey MFA Recovery for Access Token",
|
|
1727
|
+
[X.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Password MFA Recovery for Access Token",
|
|
1728
|
+
[X.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Refresh Token for Access Token",
|
|
1729
|
+
[X.SUCCESS_IMPERSONATION]: "Success Impersonation",
|
|
1730
|
+
[X.SUCCESSFULLY_ACCEPTED_USER_INVITE]: "Successfully Accepted User Invite",
|
|
1731
|
+
[X.BREACHED_PASSWORD_ON_SIGNUP]: "Breached Password on Signup",
|
|
1732
|
+
[X.SUCCESS_LOGOUT]: "Success Logout",
|
|
1733
|
+
[X.SUCCESS_HOOK]: "Success Hook",
|
|
1734
|
+
[X.SUCCESS_PASSWORD_MIGRATION]: "Success Password Migration",
|
|
1735
|
+
[X.SUCCESS_REVOCATION]: "Success Revocation",
|
|
1736
|
+
[X.SUCCESS_SIGNUP]: "Success Signup",
|
|
1737
|
+
[X.FAILED_SS_SSO_OPERATION]: "Failed SS SSO Operation",
|
|
1738
|
+
[X.INFORMATION_FROM_SS_SSO_OPERATION]: "Information from SS SSO Operation",
|
|
1739
|
+
[X.SUCCESS_SS_SSO_OPERATION]: "Success SS SSO Operation",
|
|
1740
|
+
[X.SUCCESS_SILENT_AUTH]: "Success Silent Auth",
|
|
1741
|
+
[X.SUCCESSFUL_SCIM_OPERATION]: "Successful SCIM Operation",
|
|
1742
|
+
[X.SUCCESSFULLY_IMPORTED_USERS]: "Successfully Imported Users",
|
|
1743
|
+
[X.SUCCESS_VERIFICATION_EMAIL]: "Success Verification Email",
|
|
1744
|
+
[X.SUCCESS_VERIFICATION_EMAIL_REQUEST]: "Success Verification Email Request",
|
|
1745
|
+
[X.MAX_AMOUNT_OF_AUTHENTICATORS]: "Max Amount of Authenticators",
|
|
1746
|
+
[X.USER_LOGIN_BLOCK_RELEASED]: "User Login Block Released",
|
|
1747
|
+
[X.FAILED_UNIVERSAL_LOGOUT]: "Failed Universal Logout",
|
|
1748
|
+
[X.SUCCESSFUL_UNIVERSAL_LOGOUT]: "Successful Universal Logout",
|
|
1749
|
+
[X.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1750
|
+
[X.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1751
|
+
[X.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1752
|
+
}, Cn = (() => {
|
|
1753
1753
|
let e = {};
|
|
1754
|
-
for (let [t, n] of Object.entries(
|
|
1754
|
+
for (let [t, n] of Object.entries(X)) 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";
|
|
1755
1755
|
return e;
|
|
1756
1756
|
})();
|
|
1757
|
-
function Cn(e) {
|
|
1758
|
-
return xn[e] ?? e;
|
|
1759
|
-
}
|
|
1760
1757
|
function wn(e) {
|
|
1761
|
-
return Sn[e] ??
|
|
1758
|
+
return Sn[e] ?? e;
|
|
1762
1759
|
}
|
|
1763
|
-
|
|
1760
|
+
function Tn(e) {
|
|
1761
|
+
return Cn[e] ?? "other";
|
|
1762
|
+
}
|
|
1763
|
+
var En = e.object({
|
|
1764
1764
|
name: e.string(),
|
|
1765
1765
|
version: e.string(),
|
|
1766
1766
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1767
|
-
}),
|
|
1767
|
+
}), Dn = e.object({
|
|
1768
1768
|
country_code: e.string().length(2),
|
|
1769
1769
|
city_name: e.string(),
|
|
1770
1770
|
latitude: e.string(),
|
|
1771
1771
|
longitude: e.string(),
|
|
1772
1772
|
time_zone: e.string(),
|
|
1773
1773
|
continent_code: e.string()
|
|
1774
|
-
}),
|
|
1775
|
-
type:
|
|
1774
|
+
}), On = e.object({
|
|
1775
|
+
type: xn,
|
|
1776
1776
|
date: e.string(),
|
|
1777
1777
|
description: e.string().optional(),
|
|
1778
1778
|
ip: e.string().optional(),
|
|
@@ -1790,58 +1790,58 @@ var Tn = e.object({
|
|
|
1790
1790
|
strategy: e.string().optional(),
|
|
1791
1791
|
strategy_type: e.string().optional(),
|
|
1792
1792
|
hostname: e.string().optional(),
|
|
1793
|
-
auth0_client:
|
|
1793
|
+
auth0_client: En.optional(),
|
|
1794
1794
|
log_id: e.string().optional(),
|
|
1795
|
-
location_info:
|
|
1796
|
-
}),
|
|
1795
|
+
location_info: Dn.optional()
|
|
1796
|
+
}), kn = On.extend({ log_id: e.string() }), An = e.enum([
|
|
1797
1797
|
"http",
|
|
1798
1798
|
"eventbridge",
|
|
1799
1799
|
"eventgrid",
|
|
1800
1800
|
"splunk",
|
|
1801
1801
|
"datadog",
|
|
1802
1802
|
"sumo"
|
|
1803
|
-
]),
|
|
1803
|
+
]), Z = e.enum([
|
|
1804
1804
|
"active",
|
|
1805
1805
|
"paused",
|
|
1806
1806
|
"suspended"
|
|
1807
|
-
]),
|
|
1807
|
+
]), jn = e.object({
|
|
1808
1808
|
type: e.string(),
|
|
1809
1809
|
name: e.string()
|
|
1810
|
-
}),
|
|
1810
|
+
}), Mn = e.object({
|
|
1811
1811
|
name: e.string(),
|
|
1812
|
-
type:
|
|
1813
|
-
status:
|
|
1812
|
+
type: An,
|
|
1813
|
+
status: Z.optional(),
|
|
1814
1814
|
sink: e.record(e.string(), e.unknown()),
|
|
1815
|
-
filters: e.array(
|
|
1815
|
+
filters: e.array(jn).optional(),
|
|
1816
1816
|
isPriority: e.boolean().optional()
|
|
1817
|
-
}),
|
|
1817
|
+
}), Nn = Mn.extend({
|
|
1818
1818
|
id: e.string(),
|
|
1819
|
-
status:
|
|
1819
|
+
status: Z,
|
|
1820
1820
|
created_at: e.string().optional(),
|
|
1821
1821
|
updated_at: e.string().optional()
|
|
1822
|
-
}),
|
|
1822
|
+
}), Pn = e.enum([
|
|
1823
1823
|
"auth0",
|
|
1824
1824
|
"cognito",
|
|
1825
1825
|
"okta",
|
|
1826
1826
|
"oidc"
|
|
1827
|
-
]),
|
|
1827
|
+
]), Fn = e.object({
|
|
1828
1828
|
domain: e.string(),
|
|
1829
1829
|
client_id: e.string(),
|
|
1830
1830
|
client_secret: e.string(),
|
|
1831
1831
|
audience: e.string().optional(),
|
|
1832
1832
|
scope: e.string().optional()
|
|
1833
|
-
}),
|
|
1833
|
+
}), In = e.object({
|
|
1834
1834
|
id: e.string().optional(),
|
|
1835
1835
|
name: e.string(),
|
|
1836
|
-
provider:
|
|
1836
|
+
provider: Pn,
|
|
1837
1837
|
connection: e.string(),
|
|
1838
1838
|
enabled: e.boolean().default(!0),
|
|
1839
|
-
credentials:
|
|
1840
|
-
}),
|
|
1839
|
+
credentials: Fn
|
|
1840
|
+
}), Ln = e.object({
|
|
1841
1841
|
id: e.string(),
|
|
1842
1842
|
created_at: e.string(),
|
|
1843
1843
|
updated_at: e.string()
|
|
1844
|
-
}).extend(
|
|
1844
|
+
}).extend(In.shape), Rn = e.object({
|
|
1845
1845
|
enabled: e.boolean().optional(),
|
|
1846
1846
|
shields: e.array(e.string()).optional(),
|
|
1847
1847
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1850,13 +1850,13 @@ var Tn = e.object({
|
|
|
1850
1850
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1851
1851
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1852
1852
|
}).optional()
|
|
1853
|
-
}),
|
|
1853
|
+
}), zn = e.object({
|
|
1854
1854
|
enabled: e.boolean().optional(),
|
|
1855
1855
|
shields: e.array(e.string()).optional(),
|
|
1856
1856
|
allowlist: e.array(e.string()).optional(),
|
|
1857
1857
|
mode: e.string().optional(),
|
|
1858
1858
|
max_attempts: e.number().optional()
|
|
1859
|
-
}),
|
|
1859
|
+
}), Bn = e.object({
|
|
1860
1860
|
enabled: e.boolean().optional(),
|
|
1861
1861
|
shields: e.array(e.string()).optional(),
|
|
1862
1862
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1870,28 +1870,28 @@ var Tn = e.object({
|
|
|
1870
1870
|
rate: e.number().optional()
|
|
1871
1871
|
}).optional()
|
|
1872
1872
|
}).optional()
|
|
1873
|
-
}), Bn = e.object({
|
|
1874
|
-
breached_password_detection: Ln.optional(),
|
|
1875
|
-
brute_force_protection: Rn.optional(),
|
|
1876
|
-
suspicious_ip_throttling: zn.optional()
|
|
1877
1873
|
}), Vn = e.object({
|
|
1874
|
+
breached_password_detection: Rn.optional(),
|
|
1875
|
+
brute_force_protection: zn.optional(),
|
|
1876
|
+
suspicious_ip_throttling: Bn.optional()
|
|
1877
|
+
}), Hn = e.object({
|
|
1878
1878
|
id: e.string().optional(),
|
|
1879
1879
|
user_id: e.string(),
|
|
1880
1880
|
password: e.string(),
|
|
1881
1881
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1882
1882
|
is_current: e.boolean().default(!0)
|
|
1883
|
-
}),
|
|
1883
|
+
}), Un = Hn.extend({
|
|
1884
1884
|
id: e.string(),
|
|
1885
1885
|
created_at: e.string(),
|
|
1886
1886
|
updated_at: e.string()
|
|
1887
|
-
}),
|
|
1887
|
+
}), Wn = e.object({
|
|
1888
1888
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1889
1889
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1890
1890
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1891
1891
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1892
1892
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1893
1893
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1894
|
-
}),
|
|
1894
|
+
}), Gn = e.object({
|
|
1895
1895
|
id: e.string(),
|
|
1896
1896
|
revoked_at: e.string().optional(),
|
|
1897
1897
|
used_at: e.string().optional(),
|
|
@@ -1899,14 +1899,14 @@ var Tn = e.object({
|
|
|
1899
1899
|
expires_at: e.string().optional(),
|
|
1900
1900
|
login_session_id: e.string(),
|
|
1901
1901
|
idle_expires_at: e.string().optional(),
|
|
1902
|
-
device:
|
|
1902
|
+
device: Wn.describe("Metadata related to the device used in the session"),
|
|
1903
1903
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1904
|
-
}),
|
|
1904
|
+
}), Kn = e.object({
|
|
1905
1905
|
created_at: e.string(),
|
|
1906
1906
|
updated_at: e.string(),
|
|
1907
1907
|
authenticated_at: e.string(),
|
|
1908
1908
|
last_interaction_at: e.string()
|
|
1909
|
-
}).extend(
|
|
1909
|
+
}).extend(Gn.shape), qn = e.object({
|
|
1910
1910
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1911
1911
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
1912
1912
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -1922,7 +1922,7 @@ var Tn = e.object({
|
|
|
1922
1922
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
1923
1923
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
1924
1924
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
1925
|
-
}),
|
|
1925
|
+
}), Jn = e.object({
|
|
1926
1926
|
id: e.string().optional(),
|
|
1927
1927
|
audience: e.string(),
|
|
1928
1928
|
friendly_name: e.string(),
|
|
@@ -2020,7 +2020,7 @@ var Tn = e.object({
|
|
|
2020
2020
|
mtls: e.object({ enable_endpoint_aliases: e.boolean().optional() }).nullish(),
|
|
2021
2021
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
2022
2022
|
authorization_response_iss_parameter_supported: e.boolean().optional(),
|
|
2023
|
-
attack_protection:
|
|
2023
|
+
attack_protection: Vn.optional(),
|
|
2024
2024
|
mfa: e.object({
|
|
2025
2025
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2026
2026
|
factors: e.object({
|
|
@@ -2047,15 +2047,15 @@ var Tn = e.object({
|
|
|
2047
2047
|
}).optional(),
|
|
2048
2048
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2049
2049
|
}).optional()
|
|
2050
|
-
}),
|
|
2050
|
+
}), Yn = e.object({
|
|
2051
2051
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2052
2052
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2053
|
-
}).extend(
|
|
2053
|
+
}).extend(Jn.shape).extend({
|
|
2054
2054
|
id: e.string(),
|
|
2055
2055
|
is_control_plane: e.boolean().optional()
|
|
2056
|
-
}),
|
|
2056
|
+
}), Xn = /* @__PURE__ */ function(e) {
|
|
2057
2057
|
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;
|
|
2058
|
-
}({}),
|
|
2058
|
+
}({}), Zn = e.object({
|
|
2059
2059
|
access_token: e.string(),
|
|
2060
2060
|
id_token: e.string().optional(),
|
|
2061
2061
|
scope: e.string().optional(),
|
|
@@ -2070,7 +2070,7 @@ e.object({
|
|
|
2070
2070
|
});
|
|
2071
2071
|
//#endregion
|
|
2072
2072
|
//#region src/types/Theme.ts
|
|
2073
|
-
var
|
|
2073
|
+
var Qn = e.object({
|
|
2074
2074
|
button_border_radius: e.number(),
|
|
2075
2075
|
button_border_weight: e.number(),
|
|
2076
2076
|
buttons_style: e.enum([
|
|
@@ -2088,7 +2088,7 @@ var Zn = e.object({
|
|
|
2088
2088
|
show_widget_shadow: e.boolean(),
|
|
2089
2089
|
widget_border_weight: e.number(),
|
|
2090
2090
|
widget_corner_radius: e.number()
|
|
2091
|
-
}),
|
|
2091
|
+
}), $n = e.object({
|
|
2092
2092
|
base_focus_color: e.string(),
|
|
2093
2093
|
base_hover_color: e.string(),
|
|
2094
2094
|
body_text: e.string(),
|
|
@@ -2112,20 +2112,20 @@ var Zn = e.object({
|
|
|
2112
2112
|
success: e.string(),
|
|
2113
2113
|
widget_background: e.string(),
|
|
2114
2114
|
widget_border: e.string()
|
|
2115
|
-
}),
|
|
2115
|
+
}), Q = e.object({
|
|
2116
2116
|
bold: e.boolean(),
|
|
2117
2117
|
size: e.number()
|
|
2118
|
-
}),
|
|
2119
|
-
body_text:
|
|
2120
|
-
buttons_text:
|
|
2118
|
+
}), er = e.object({
|
|
2119
|
+
body_text: Q,
|
|
2120
|
+
buttons_text: Q,
|
|
2121
2121
|
font_url: e.string(),
|
|
2122
|
-
input_labels:
|
|
2123
|
-
links:
|
|
2122
|
+
input_labels: Q,
|
|
2123
|
+
links: Q,
|
|
2124
2124
|
links_style: e.enum(["normal", "underlined"]),
|
|
2125
2125
|
reference_text_size: e.number(),
|
|
2126
|
-
subtitle:
|
|
2127
|
-
title:
|
|
2128
|
-
}),
|
|
2126
|
+
subtitle: Q,
|
|
2127
|
+
title: Q
|
|
2128
|
+
}), tr = e.object({
|
|
2129
2129
|
background_color: e.string(),
|
|
2130
2130
|
background_image_url: e.string(),
|
|
2131
2131
|
page_layout: e.enum([
|
|
@@ -2138,7 +2138,7 @@ var Zn = e.object({
|
|
|
2138
2138
|
"chip",
|
|
2139
2139
|
"none"
|
|
2140
2140
|
]).optional()
|
|
2141
|
-
}),
|
|
2141
|
+
}), nr = e.object({
|
|
2142
2142
|
header_text_alignment: e.enum([
|
|
2143
2143
|
"center",
|
|
2144
2144
|
"left",
|
|
@@ -2153,25 +2153,44 @@ var Zn = e.object({
|
|
|
2153
2153
|
]),
|
|
2154
2154
|
logo_url: e.string(),
|
|
2155
2155
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2156
|
-
}),
|
|
2157
|
-
borders:
|
|
2158
|
-
colors:
|
|
2156
|
+
}), rr = e.object({
|
|
2157
|
+
borders: Qn,
|
|
2158
|
+
colors: $n,
|
|
2159
2159
|
displayName: e.string(),
|
|
2160
|
-
fonts:
|
|
2161
|
-
page_background:
|
|
2162
|
-
widget:
|
|
2163
|
-
}),
|
|
2160
|
+
fonts: er,
|
|
2161
|
+
page_background: tr,
|
|
2162
|
+
widget: nr
|
|
2163
|
+
}), ir = rr.extend({ themeId: e.string() }), ar = e.object({
|
|
2164
2164
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2165
2165
|
identifier_first: e.boolean().default(!0),
|
|
2166
2166
|
password_first: e.boolean().default(!1),
|
|
2167
2167
|
webauthn_platform_first_factor: e.boolean()
|
|
2168
|
-
}),
|
|
2168
|
+
}), or = e.object({
|
|
2169
|
+
hosts: e.array(e.string()).optional(),
|
|
2170
|
+
methods: e.array(e.string()).optional(),
|
|
2171
|
+
path: e.string().default("/*"),
|
|
2172
|
+
headers: e.record(e.string(), e.string()).optional(),
|
|
2173
|
+
query: e.record(e.string(), e.string()).optional()
|
|
2174
|
+
}), sr = e.object({
|
|
2175
|
+
type: e.string(),
|
|
2176
|
+
options: e.record(e.string(), e.unknown()).default({})
|
|
2177
|
+
}), $ = e.object({
|
|
2178
|
+
custom_domain_id: e.string(),
|
|
2179
|
+
priority: e.number().int().default(100),
|
|
2180
|
+
match: or,
|
|
2181
|
+
handlers: e.array(sr).min(1)
|
|
2182
|
+
}), cr = $.extend({
|
|
2183
|
+
id: e.string(),
|
|
2184
|
+
tenant_id: e.string(),
|
|
2185
|
+
created_at: e.string(),
|
|
2186
|
+
updated_at: e.string()
|
|
2187
|
+
}), lr = $.partial().omit({ custom_domain_id: !0 }), ur = e.object({
|
|
2169
2188
|
name: e.string(),
|
|
2170
2189
|
enabled: e.boolean().optional().default(!0),
|
|
2171
2190
|
default_from_address: e.string().optional(),
|
|
2172
2191
|
credentials: e.record(e.string(), e.unknown()),
|
|
2173
2192
|
settings: e.object({}).optional()
|
|
2174
|
-
}),
|
|
2193
|
+
}), dr = e.enum([
|
|
2175
2194
|
"verify_email",
|
|
2176
2195
|
"verify_email_by_code",
|
|
2177
2196
|
"reset_email",
|
|
@@ -2184,8 +2203,8 @@ var Zn = e.object({
|
|
|
2184
2203
|
"change_password",
|
|
2185
2204
|
"password_reset",
|
|
2186
2205
|
"user_invitation"
|
|
2187
|
-
]),
|
|
2188
|
-
template:
|
|
2206
|
+
]), fr = e.object({
|
|
2207
|
+
template: dr,
|
|
2189
2208
|
body: e.string(),
|
|
2190
2209
|
from: e.string(),
|
|
2191
2210
|
subject: e.string(),
|
|
@@ -2194,7 +2213,7 @@ var Zn = e.object({
|
|
|
2194
2213
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2195
2214
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2196
2215
|
enabled: e.boolean().default(!0)
|
|
2197
|
-
}),
|
|
2216
|
+
}), pr = e.object({
|
|
2198
2217
|
id: e.string(),
|
|
2199
2218
|
login_id: e.string(),
|
|
2200
2219
|
user_id: e.string(),
|
|
@@ -2202,7 +2221,7 @@ var Zn = e.object({
|
|
|
2202
2221
|
expires_at: e.string().optional(),
|
|
2203
2222
|
idle_expires_at: e.string().optional(),
|
|
2204
2223
|
last_exchanged_at: e.string().optional(),
|
|
2205
|
-
device:
|
|
2224
|
+
device: Wn,
|
|
2206
2225
|
resource_servers: e.array(e.object({
|
|
2207
2226
|
audience: e.string(),
|
|
2208
2227
|
scopes: e.string()
|
|
@@ -2213,19 +2232,19 @@ var Zn = e.object({
|
|
|
2213
2232
|
family_id: e.string().optional(),
|
|
2214
2233
|
rotated_to: e.string().optional(),
|
|
2215
2234
|
rotated_at: e.string().optional()
|
|
2216
|
-
}),
|
|
2235
|
+
}), mr = pr.extend({
|
|
2217
2236
|
created_at: e.string(),
|
|
2218
2237
|
revoked_at: e.string().optional()
|
|
2219
|
-
}),
|
|
2238
|
+
}), hr = e.object({
|
|
2220
2239
|
to: e.string(),
|
|
2221
2240
|
message: e.string()
|
|
2222
|
-
}),
|
|
2241
|
+
}), gr = e.object({
|
|
2223
2242
|
name: e.string(),
|
|
2224
2243
|
options: e.object({})
|
|
2225
|
-
}),
|
|
2244
|
+
}), _r = e.object({
|
|
2226
2245
|
value: e.string(),
|
|
2227
2246
|
description: e.string().optional()
|
|
2228
|
-
}),
|
|
2247
|
+
}), vr = e.object({
|
|
2229
2248
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2230
2249
|
enforce_policies: e.boolean().optional(),
|
|
2231
2250
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2233,11 +2252,11 @@ var Zn = e.object({
|
|
|
2233
2252
|
persist_client_authorization: e.boolean().optional(),
|
|
2234
2253
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2235
2254
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2236
|
-
}),
|
|
2255
|
+
}), yr = e.object({
|
|
2237
2256
|
id: e.string().optional(),
|
|
2238
2257
|
name: e.string(),
|
|
2239
2258
|
identifier: e.string(),
|
|
2240
|
-
scopes: e.array(
|
|
2259
|
+
scopes: e.array(_r).optional(),
|
|
2241
2260
|
signing_alg: e.string().optional(),
|
|
2242
2261
|
signing_secret: e.string().optional(),
|
|
2243
2262
|
token_lifetime: e.number().default(86400),
|
|
@@ -2245,25 +2264,25 @@ var Zn = e.object({
|
|
|
2245
2264
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2246
2265
|
allow_offline_access: e.boolean().optional(),
|
|
2247
2266
|
verificationKey: e.string().optional(),
|
|
2248
|
-
options:
|
|
2267
|
+
options: vr.optional(),
|
|
2249
2268
|
is_system: e.boolean().optional(),
|
|
2250
2269
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2251
|
-
}),
|
|
2270
|
+
}), br = yr.extend({
|
|
2252
2271
|
created_at: e.string().optional(),
|
|
2253
2272
|
updated_at: e.string().optional()
|
|
2254
|
-
}),
|
|
2273
|
+
}), xr = e.array(br), Sr = e.object({
|
|
2255
2274
|
role_id: e.string(),
|
|
2256
2275
|
resource_server_identifier: e.string(),
|
|
2257
2276
|
permission_name: e.string()
|
|
2258
|
-
}),
|
|
2277
|
+
}), Cr = Sr.extend({ created_at: e.string() }), wr = e.array(Cr), Tr = e.object({
|
|
2259
2278
|
user_id: e.string(),
|
|
2260
2279
|
resource_server_identifier: e.string(),
|
|
2261
2280
|
permission_name: e.string(),
|
|
2262
2281
|
organization_id: e.string().optional()
|
|
2263
|
-
}),
|
|
2282
|
+
}), Er = Tr.extend({
|
|
2264
2283
|
tenant_id: e.string(),
|
|
2265
2284
|
created_at: e.string().optional()
|
|
2266
|
-
}),
|
|
2285
|
+
}), Dr = e.array(Er), Or = e.object({
|
|
2267
2286
|
user_id: e.string(),
|
|
2268
2287
|
resource_server_identifier: e.string(),
|
|
2269
2288
|
resource_server_name: e.string(),
|
|
@@ -2271,65 +2290,65 @@ var Zn = e.object({
|
|
|
2271
2290
|
description: e.string().nullable().optional(),
|
|
2272
2291
|
created_at: e.string().optional(),
|
|
2273
2292
|
organization_id: e.string().optional()
|
|
2274
|
-
}),
|
|
2293
|
+
}), kr = e.array(Or), Ar = e.object({
|
|
2275
2294
|
user_id: e.string(),
|
|
2276
2295
|
role_id: e.string(),
|
|
2277
2296
|
organization_id: e.string().optional()
|
|
2278
|
-
}),
|
|
2297
|
+
}), jr = Ar.extend({
|
|
2279
2298
|
tenant_id: e.string(),
|
|
2280
2299
|
created_at: e.string().optional()
|
|
2281
|
-
}),
|
|
2300
|
+
}), Mr = e.array(jr), Nr = e.object({
|
|
2282
2301
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2283
2302
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2284
2303
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2285
2304
|
is_system: e.boolean().optional(),
|
|
2286
2305
|
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." })
|
|
2287
|
-
}),
|
|
2306
|
+
}), Pr = Nr.extend({
|
|
2288
2307
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2289
2308
|
created_at: e.string().optional(),
|
|
2290
2309
|
updated_at: e.string().optional()
|
|
2291
|
-
}),
|
|
2310
|
+
}), Fr = e.array(Pr), Ir = e.object({
|
|
2292
2311
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2293
2312
|
colors: e.object({
|
|
2294
2313
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2295
2314
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2296
2315
|
}).optional()
|
|
2297
|
-
}).optional(),
|
|
2316
|
+
}).optional(), Lr = e.object({
|
|
2298
2317
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2299
2318
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2300
2319
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2301
2320
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2302
|
-
}),
|
|
2321
|
+
}), Rr = e.object({ client_credentials: e.object({
|
|
2303
2322
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2304
2323
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2305
2324
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2306
|
-
}).optional() }).optional(),
|
|
2325
|
+
}).optional() }).optional(), zr = e.object({
|
|
2307
2326
|
id: e.string().optional(),
|
|
2308
2327
|
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." }),
|
|
2309
2328
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2310
|
-
branding:
|
|
2329
|
+
branding: Ir,
|
|
2311
2330
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2312
|
-
enabled_connections: e.array(
|
|
2313
|
-
token_quota:
|
|
2314
|
-
}),
|
|
2331
|
+
enabled_connections: e.array(Lr).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2332
|
+
token_quota: Rr
|
|
2333
|
+
}), Br = zr.extend(t.shape).extend({
|
|
2315
2334
|
id: e.string(),
|
|
2316
2335
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2317
|
-
}),
|
|
2336
|
+
}), Vr = e.object({
|
|
2318
2337
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2319
2338
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2320
2339
|
show_as_button: e.boolean().optional().default(!0),
|
|
2321
2340
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2322
|
-
}),
|
|
2341
|
+
}), Hr = Vr.extend({
|
|
2323
2342
|
connection: e.object({
|
|
2324
2343
|
name: e.string().optional(),
|
|
2325
2344
|
strategy: e.string().optional()
|
|
2326
2345
|
}).optional(),
|
|
2327
2346
|
created_at: e.string().optional(),
|
|
2328
2347
|
updated_at: e.string().optional()
|
|
2329
|
-
}),
|
|
2348
|
+
}), Ur = e.array(Hr), Wr = e.object({
|
|
2330
2349
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2331
2350
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2332
|
-
}),
|
|
2351
|
+
}), Gr = Wr.extend(t.shape).extend({ id: e.string() }), Kr = e.object({
|
|
2333
2352
|
idle_session_lifetime: e.number().default(72),
|
|
2334
2353
|
session_lifetime: e.number().default(168),
|
|
2335
2354
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2408,7 +2427,7 @@ var Zn = e.object({
|
|
|
2408
2427
|
}).optional(),
|
|
2409
2428
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2410
2429
|
}).optional()
|
|
2411
|
-
}),
|
|
2430
|
+
}), qr = e.object({
|
|
2412
2431
|
date: e.string().openapi({
|
|
2413
2432
|
description: "Date these events occurred in ISO 8601 format",
|
|
2414
2433
|
example: "2025-12-19"
|
|
@@ -2433,55 +2452,55 @@ var Zn = e.object({
|
|
|
2433
2452
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2434
2453
|
example: "2025-12-19T00:00:00.000Z"
|
|
2435
2454
|
})
|
|
2436
|
-
}),
|
|
2455
|
+
}), Jr = e.number().openapi({
|
|
2437
2456
|
description: "Number of active users in the last 30 days",
|
|
2438
2457
|
example: 1234
|
|
2439
|
-
}),
|
|
2458
|
+
}), Yr = e.enum([
|
|
2440
2459
|
"active-users",
|
|
2441
2460
|
"logins",
|
|
2442
2461
|
"signups",
|
|
2443
2462
|
"refresh-tokens",
|
|
2444
2463
|
"sessions"
|
|
2445
|
-
]),
|
|
2464
|
+
]), Xr = e.enum([
|
|
2446
2465
|
"hour",
|
|
2447
2466
|
"day",
|
|
2448
2467
|
"week",
|
|
2449
2468
|
"month"
|
|
2450
|
-
]),
|
|
2469
|
+
]), Zr = e.enum([
|
|
2451
2470
|
"time",
|
|
2452
2471
|
"connection",
|
|
2453
2472
|
"client_id",
|
|
2454
2473
|
"user_type",
|
|
2455
2474
|
"event"
|
|
2456
|
-
]),
|
|
2475
|
+
]), Qr = e.enum([
|
|
2457
2476
|
"password",
|
|
2458
2477
|
"social",
|
|
2459
2478
|
"passwordless",
|
|
2460
2479
|
"enterprise"
|
|
2461
|
-
]),
|
|
2480
|
+
]), $r = e.object({
|
|
2462
2481
|
name: e.string(),
|
|
2463
2482
|
type: e.string()
|
|
2464
|
-
}),
|
|
2483
|
+
}), ei = e.object({
|
|
2465
2484
|
elapsed: e.number(),
|
|
2466
2485
|
rows_read: e.number().optional(),
|
|
2467
2486
|
bytes_read: e.number().optional()
|
|
2468
|
-
}),
|
|
2469
|
-
meta: e.array(
|
|
2487
|
+
}), ti = e.object({
|
|
2488
|
+
meta: e.array($r),
|
|
2470
2489
|
data: e.array(e.record(e.string(), e.any())),
|
|
2471
2490
|
rows: e.number(),
|
|
2472
2491
|
rows_before_limit_at_least: e.number().optional(),
|
|
2473
|
-
statistics:
|
|
2474
|
-
}),
|
|
2492
|
+
statistics: ei.optional()
|
|
2493
|
+
}), ni = 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(".")), ri = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2475
2494
|
type: "object",
|
|
2476
2495
|
additionalProperties: {
|
|
2477
2496
|
type: "object",
|
|
2478
2497
|
additionalProperties: { type: "string" }
|
|
2479
2498
|
}
|
|
2480
|
-
}),
|
|
2481
|
-
prompt:
|
|
2499
|
+
}), ii = e.object({
|
|
2500
|
+
prompt: ni,
|
|
2482
2501
|
language: e.string(),
|
|
2483
|
-
custom_text:
|
|
2484
|
-
}),
|
|
2502
|
+
custom_text: ri
|
|
2503
|
+
}), ai = {
|
|
2485
2504
|
EMAIL: "email",
|
|
2486
2505
|
SMS: "sms",
|
|
2487
2506
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2496,11 +2515,11 @@ var Zn = e.object({
|
|
|
2496
2515
|
SAMLP: "samlp",
|
|
2497
2516
|
WAAD: "waad",
|
|
2498
2517
|
ADFS: "adfs"
|
|
2499
|
-
},
|
|
2518
|
+
}, oi = {
|
|
2500
2519
|
DATABASE: "database",
|
|
2501
2520
|
SOCIAL: "social",
|
|
2502
2521
|
PASSWORDLESS: "passwordless"
|
|
2503
|
-
},
|
|
2522
|
+
}, si = e.enum([
|
|
2504
2523
|
"phone",
|
|
2505
2524
|
"totp",
|
|
2506
2525
|
"email",
|
|
@@ -2508,9 +2527,9 @@ var Zn = e.object({
|
|
|
2508
2527
|
"webauthn-roaming",
|
|
2509
2528
|
"webauthn-platform",
|
|
2510
2529
|
"passkey"
|
|
2511
|
-
]),
|
|
2530
|
+
]), ci = e.object({
|
|
2512
2531
|
user_id: e.string(),
|
|
2513
|
-
type:
|
|
2532
|
+
type: si,
|
|
2514
2533
|
phone_number: e.string().optional(),
|
|
2515
2534
|
totp_secret: e.string().optional(),
|
|
2516
2535
|
credential_id: e.string().optional(),
|
|
@@ -2521,7 +2540,7 @@ var Zn = e.object({
|
|
|
2521
2540
|
friendly_name: e.string().optional(),
|
|
2522
2541
|
confirmed: e.boolean().default(!1)
|
|
2523
2542
|
});
|
|
2524
|
-
function
|
|
2543
|
+
function li(t, n) {
|
|
2525
2544
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2526
2545
|
code: e.ZodIssueCode.custom,
|
|
2527
2546
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2544,14 +2563,14 @@ function ii(t, n) {
|
|
|
2544
2563
|
path: ["public_key"]
|
|
2545
2564
|
}));
|
|
2546
2565
|
}
|
|
2547
|
-
var
|
|
2566
|
+
var ui = ci.superRefine(li), di = ci.extend({
|
|
2548
2567
|
id: e.string(),
|
|
2549
2568
|
created_at: e.string(),
|
|
2550
2569
|
updated_at: e.string()
|
|
2551
|
-
}).superRefine(
|
|
2570
|
+
}).superRefine(li);
|
|
2552
2571
|
//#endregion
|
|
2553
2572
|
//#region src/utils/user-id.ts
|
|
2554
|
-
function
|
|
2573
|
+
function fi(e) {
|
|
2555
2574
|
let [t, n] = e.split("|");
|
|
2556
2575
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2557
2576
|
return {
|
|
@@ -2561,7 +2580,7 @@ function si(e) {
|
|
|
2561
2580
|
}
|
|
2562
2581
|
//#endregion
|
|
2563
2582
|
//#region src/utils/passthrough.ts
|
|
2564
|
-
function
|
|
2583
|
+
function pi(e) {
|
|
2565
2584
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2566
2585
|
"create",
|
|
2567
2586
|
"rawCreate",
|
|
@@ -2595,12 +2614,12 @@ function ci(e) {
|
|
|
2595
2614
|
} : i.bind(e) : i;
|
|
2596
2615
|
} });
|
|
2597
2616
|
}
|
|
2598
|
-
function
|
|
2617
|
+
function mi(e) {
|
|
2599
2618
|
return e;
|
|
2600
2619
|
}
|
|
2601
2620
|
//#endregion
|
|
2602
2621
|
//#region src/utils/connection-attributes.ts
|
|
2603
|
-
function
|
|
2622
|
+
function hi(e) {
|
|
2604
2623
|
let t = e?.options;
|
|
2605
2624
|
if (!t) return {
|
|
2606
2625
|
usernameIdentifierActive: !1,
|
|
@@ -2623,8 +2642,8 @@ function ui(e) {
|
|
|
2623
2642
|
}
|
|
2624
2643
|
//#endregion
|
|
2625
2644
|
//#region src/utils/guards.ts
|
|
2626
|
-
function
|
|
2645
|
+
function gi(e) {
|
|
2627
2646
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2628
2647
|
}
|
|
2629
2648
|
//#endregion
|
|
2630
|
-
export { ve as Auth0ActionEnum,
|
|
2649
|
+
export { ve as Auth0ActionEnum, En as Auth0Client, ze as AuthorizationResponseMode, Re as AuthorizationResponseType, Be as CodeChallengeMethod, D as ComponentCategory, E as ComponentType, ye as EmailActionEnum, Mt as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, Xn as GrantType, Dn as LocationInfo, X as LogTypes, gn as LoginSessionState, Ne as NodeType, u as RedirectTargetEnum, ai as Strategy, oi 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, L as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, Jr as activeUsersResponseSchema, le as actorSchema, g as addressSchema, $r as analyticsColumnMetaSchema, Zr as analyticsGroupBySchema, Xr as analyticsIntervalSchema, ti as analyticsQueryResponseSchema, Yr as analyticsResourceSchema, ei as analyticsStatisticsSchema, Qr as analyticsUserTypeSchema, Vn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Le as auth0FlowInsertSchema, Ie as auth0FlowSchema, we as auth0QuerySchema, xe as auth0UpdateUserActionSchema, Ee as auth0UserResponseSchema, Ue as authParamsSchema, ui as authenticationMethodInsertSchema, di as authenticationMethodSchema, si as authenticationMethodTypeSchema, _ as baseUserSchema, kt as blockComponentSchema, Qn as bordersSchema, We as brandingSchema, Rn as breachedPasswordDetectionSchema, zn as bruteForceProtectionSchema, A as buttonComponentSchema, He as claimsRequestSchema, x as clientGrantInsertSchema, je as clientGrantListSchema, S as clientGrantSchema, b as clientInsertSchema, w as clientRegistrationTokenInsertSchema, Me as clientRegistrationTokenSchema, C as clientRegistrationTokenTypeSchema, Ae as clientSchema, Ke as codeInsertSchema, qe as codeSchema, Ge as codeTypeSchema, $n as colorsSchema, Bt as componentMessageSchema, P as componentSchema, Ye as connectionInsertSchema, Je as connectionOptionsSchema, Xe as connectionSchema, T as coordinatesSchema, pi as createPassthroughAdapter, mi as createWriteOnlyAdapter, Ze as customDomainInsertSchema, $e as customDomainSchema, et as customDomainWithTenantIdSchema, ii as customTextEntrySchema, ri as customTextSchema, qr as dailyStatsSchema, ur as emailProviderSchema, dr as emailTemplateNameSchema, fr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, Fe as endingSchema, jt as fieldComponentSchema, f as flowActionStepSchema, p as flowInsertSchema, Ce as flowSchema, M as flowsFieldComponentSchema, I as flowsFlowNodeSchema, F as flowsStepNodeSchema, Q as fontDetailsSchema, er as fontsSchema, Nt as formControlSchema, Rt as formInsertSchema, G as formNodeComponentDefinition, Lt as formNodeSchema, zt as formSchema, N as genericComponentSchema, R as genericNodeSchema, hi as getConnectionIdentifierConfig, Tn as getLogTypeCategory, wn as getLogTypeDescription, sr as handlerConfigSchema, cn as hookCodeInsertSchema, ln as hookCodeSchema, tn as hookInsertSchema, sn as hookSchema, q as hookTemplateId, Xt as hookTemplates, h as identitySchema, Y as inviteInsertSchema, fn as inviteSchema, dn as inviteeSchema, un as inviterSchema, Ut as isBlockComponent, Gt as isFieldComponent, gi as isPlainObject, Wt as isWidgetComponent, mn as jwksKeySchema, pn as jwksSchema, j as legalComponentSchema, pe as locationInfoSchema, On as logInsertSchema, kn as logSchema, jn as logStreamFilterSchema, Mn as logStreamInsertSchema, Nn as logStreamSchema, Z as logStreamStatusSchema, An as logStreamTypeSchema, Cn as logTypeCategories, Sn as logTypeDescriptions, vn as loginSessionAuthStrategySchema, yn as loginSessionInsertSchema, bn as loginSessionSchema, _n as loginSessionStateSchema, or as matchSchema, Pn as migrationProviderTypeSchema, Fn as migrationSourceCredentialsSchema, In as migrationSourceInsertSchema, Ln as migrationSourceSchema, z as nodeSchema, hn as openIDConfigurationSchema, Ir as organizationBrandingSchema, Vr as organizationConnectionInsertSchema, Ur as organizationConnectionListSchema, Hr as organizationConnectionSchema, Lr as organizationEnabledConnectionSchema, zr as organizationInsertSchema, Br as organizationSchema, Rr as organizationTokenQuotaSchema, tr as pageBackgroundSchema, fi as parseUserId, Hn as passwordInsertSchema, Un as passwordSchema, m as profileDataSchema, ni as promptScreenSchema, ar as promptSettingSchema, $ as proxyRouteInsertSchema, cr as proxyRouteSchema, lr as proxyRouteUpdateSchema, d as redirectActionSchema, pr as refreshTokenInsertSchema, mr as refreshTokenSchema, de as requestContextSchema, yr as resourceServerInsertSchema, xr as resourceServerListSchema, vr as resourceServerOptionsSchema, br as resourceServerSchema, _r as resourceServerScopeSchema, fe as responseContextSchema, k as richTextComponentSchema, Nr as roleInsertSchema, Fr as roleListSchema, Sr as rolePermissionInsertSchema, wr as rolePermissionListSchema, Cr as rolePermissionSchema, Pr as roleSchema, Vt as screenLinkSchema, Gn as sessionInsertSchema, Kn as sessionSchema, qn as signingKeySchema, gr as smsProviderSchema, hr as smsSendParamsSchema, Pe as startSchema, Bn as suspiciousIpThrottlingSchema, ue as targetSchema, Jn as tenantInsertSchema, Yn as tenantSchema, Kr as tenantSettingsSchema, rr as themeInsertSchema, ir as themeSchema, Zn as tokenResponseSchema, Te as totalsSchema, Ht as uiScreenSchema, v as userInsertSchema, Wr as userOrganizationInsertSchema, Gr as userOrganizationSchema, Tr as userPermissionInsertSchema, Dr as userPermissionListSchema, Er as userPermissionSchema, kr as userPermissionWithDetailsListSchema, Or as userPermissionWithDetailsSchema, De as userResponseSchema, Ar as userRoleInsertSchema, Mr as userRoleListSchema, jr as userRoleSchema, y as userSchema, Qe as verificationMethodsSchema, At as widgetComponentSchema, nr as widgetSchema };
|