@authhero/adapter-interfaces 0.104.0 → 0.106.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 +1048 -152
- package/dist/adapter-interfaces.mjs +363 -348
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const Ve = e.object({
|
|
3
3
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
4
4
|
description: "The page number where 0 is the first page"
|
|
5
5
|
}),
|
|
@@ -15,14 +15,14 @@ const Be = e.object({
|
|
|
15
15
|
q: e.string().optional().openapi({
|
|
16
16
|
description: "A lucene query string used to filter the results"
|
|
17
17
|
})
|
|
18
|
-
}),
|
|
18
|
+
}), qe = e.object({
|
|
19
19
|
start: e.number(),
|
|
20
20
|
limit: e.number(),
|
|
21
21
|
length: e.number()
|
|
22
22
|
}), n = e.object({
|
|
23
23
|
created_at: e.string(),
|
|
24
24
|
updated_at: e.string()
|
|
25
|
-
}),
|
|
25
|
+
}), A = e.object({
|
|
26
26
|
email: e.string().optional(),
|
|
27
27
|
email_verified: e.boolean().optional(),
|
|
28
28
|
name: e.string().optional(),
|
|
@@ -31,7 +31,7 @@ const Be = e.object({
|
|
|
31
31
|
phone_number: e.string().optional(),
|
|
32
32
|
phone_verified: e.boolean().optional(),
|
|
33
33
|
family_name: e.string().optional()
|
|
34
|
-
}).catchall(e.any()),
|
|
34
|
+
}).catchall(e.any()), I = e.object({
|
|
35
35
|
connection: e.string(),
|
|
36
36
|
user_id: e.string(),
|
|
37
37
|
provider: e.string(),
|
|
@@ -39,8 +39,8 @@ const Be = e.object({
|
|
|
39
39
|
access_token: e.string().optional(),
|
|
40
40
|
access_token_secret: e.string().optional(),
|
|
41
41
|
refresh_token: e.string().optional(),
|
|
42
|
-
profileData:
|
|
43
|
-
}),
|
|
42
|
+
profileData: A.optional()
|
|
43
|
+
}), p = e.object({
|
|
44
44
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
45
45
|
username: e.string().optional(),
|
|
46
46
|
phone_number: e.string().optional(),
|
|
@@ -55,7 +55,7 @@ const Be = e.object({
|
|
|
55
55
|
user_id: e.string().optional(),
|
|
56
56
|
app_metadata: e.any().default({}).optional(),
|
|
57
57
|
user_metadata: e.any().default({}).optional()
|
|
58
|
-
}),
|
|
58
|
+
}), C = p.extend({
|
|
59
59
|
email_verified: e.boolean().default(!1),
|
|
60
60
|
verify_email: e.boolean().optional(),
|
|
61
61
|
last_ip: e.string().optional(),
|
|
@@ -64,29 +64,29 @@ const Be = e.object({
|
|
|
64
64
|
provider: e.string().optional(),
|
|
65
65
|
connection: e.string(),
|
|
66
66
|
is_social: e.boolean().optional()
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
67
|
+
}), O = e.object({
|
|
68
|
+
...C.shape,
|
|
69
69
|
...n.shape,
|
|
70
70
|
user_id: e.string(),
|
|
71
71
|
provider: e.string(),
|
|
72
72
|
is_social: e.boolean(),
|
|
73
73
|
email: e.string().optional(),
|
|
74
74
|
login_count: e.number().default(0),
|
|
75
|
-
identities: e.array(
|
|
76
|
-
}),
|
|
75
|
+
identities: e.array(I).optional()
|
|
76
|
+
}), Ye = O, Qe = p.extend({
|
|
77
77
|
login_count: e.number(),
|
|
78
78
|
multifactor: e.array(e.string()).optional(),
|
|
79
79
|
last_ip: e.string().optional(),
|
|
80
80
|
last_login: e.string().optional(),
|
|
81
81
|
user_id: e.string()
|
|
82
|
-
}).catchall(e.any()),
|
|
83
|
-
let
|
|
84
|
-
let i = "",
|
|
82
|
+
}).catchall(e.any()), T = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
83
|
+
let y = (t = 21) => {
|
|
84
|
+
let i = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
85
85
|
for (; t--; )
|
|
86
|
-
i +=
|
|
86
|
+
i += T[r[t] & 63];
|
|
87
87
|
return i;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const N = e.object({
|
|
90
90
|
client_id: e.string().openapi({
|
|
91
91
|
description: "ID of this client."
|
|
92
92
|
}),
|
|
@@ -99,7 +99,7 @@ const O = e.object({
|
|
|
99
99
|
global: e.boolean().default(!1).openapi({
|
|
100
100
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
101
101
|
}),
|
|
102
|
-
client_secret: e.string().default(() =>
|
|
102
|
+
client_secret: e.string().default(() => y()).optional().openapi({
|
|
103
103
|
description: "Client secret (which you must not make public)."
|
|
104
104
|
}),
|
|
105
105
|
app_type: e.enum([
|
|
@@ -155,6 +155,9 @@ const O = e.object({
|
|
|
155
155
|
allowed_clients: e.array(e.string()).default([]).optional().openapi({
|
|
156
156
|
description: "List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."
|
|
157
157
|
}),
|
|
158
|
+
connections: e.array(e.string()).default([]).optional().openapi({
|
|
159
|
+
description: "List of connection IDs enabled for this client. The order determines the display order on the login page."
|
|
160
|
+
}),
|
|
158
161
|
allowed_logout_urls: e.array(e.string()).default([]).optional().openapi({
|
|
159
162
|
description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
|
|
160
163
|
}),
|
|
@@ -253,11 +256,11 @@ const O = e.object({
|
|
|
253
256
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
254
257
|
}),
|
|
255
258
|
token_quota: e.record(e.any()).default({}).optional()
|
|
256
|
-
}),
|
|
259
|
+
}), L = e.object({
|
|
257
260
|
created_at: e.string(),
|
|
258
261
|
updated_at: e.string(),
|
|
259
|
-
...
|
|
260
|
-
}),
|
|
262
|
+
...N.shape
|
|
263
|
+
}), R = e.object({
|
|
261
264
|
client_id: e.string().min(1).openapi({
|
|
262
265
|
description: "ID of the client."
|
|
263
266
|
}),
|
|
@@ -282,23 +285,23 @@ const O = e.object({
|
|
|
282
285
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
283
286
|
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."
|
|
284
287
|
})
|
|
285
|
-
}),
|
|
288
|
+
}), D = e.object({
|
|
286
289
|
id: e.string().openapi({
|
|
287
290
|
description: "ID of the client grant."
|
|
288
291
|
}),
|
|
289
|
-
...
|
|
292
|
+
...R.shape,
|
|
290
293
|
created_at: e.string().optional(),
|
|
291
294
|
updated_at: e.string().optional()
|
|
292
|
-
}),
|
|
295
|
+
}), Je = e.array(D), s = e.object({
|
|
293
296
|
x: e.number(),
|
|
294
297
|
y: e.number()
|
|
295
298
|
});
|
|
296
|
-
var
|
|
297
|
-
const
|
|
299
|
+
var d = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(d || {}), g = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(g || {});
|
|
300
|
+
const l = e.object({
|
|
298
301
|
id: e.string(),
|
|
299
|
-
category: e.nativeEnum(
|
|
300
|
-
type: e.nativeEnum(
|
|
301
|
-
}),
|
|
302
|
+
category: e.nativeEnum(g),
|
|
303
|
+
type: e.nativeEnum(d)
|
|
304
|
+
}), w = l.extend({
|
|
302
305
|
category: e.literal(
|
|
303
306
|
"BLOCK"
|
|
304
307
|
/* BLOCK */
|
|
@@ -310,7 +313,7 @@ const r = e.object({
|
|
|
310
313
|
config: e.object({
|
|
311
314
|
content: e.string()
|
|
312
315
|
}).passthrough()
|
|
313
|
-
}),
|
|
316
|
+
}), j = l.extend({
|
|
314
317
|
category: e.literal(
|
|
315
318
|
"BLOCK"
|
|
316
319
|
/* BLOCK */
|
|
@@ -332,7 +335,7 @@ const r = e.object({
|
|
|
332
335
|
config: e.object({
|
|
333
336
|
text: e.string()
|
|
334
337
|
}).passthrough()
|
|
335
|
-
}),
|
|
338
|
+
}), k = l.extend({
|
|
336
339
|
category: e.literal(
|
|
337
340
|
"FIELD"
|
|
338
341
|
/* FIELD */
|
|
@@ -346,7 +349,7 @@ const r = e.object({
|
|
|
346
349
|
config: e.object({
|
|
347
350
|
text: e.string()
|
|
348
351
|
}).passthrough()
|
|
349
|
-
}),
|
|
352
|
+
}), U = l.extend({
|
|
350
353
|
category: e.literal(
|
|
351
354
|
"FIELD"
|
|
352
355
|
/* FIELD */
|
|
@@ -399,82 +402,82 @@ const r = e.object({
|
|
|
399
402
|
label: e.string().optional(),
|
|
400
403
|
placeholder: e.string().optional()
|
|
401
404
|
}).passthrough()
|
|
402
|
-
}),
|
|
405
|
+
}), F = e.object({
|
|
403
406
|
id: e.string(),
|
|
404
407
|
category: e.string(),
|
|
405
408
|
type: e.string()
|
|
406
|
-
}).passthrough(),
|
|
407
|
-
L,
|
|
408
|
-
R,
|
|
409
|
-
D,
|
|
409
|
+
}).passthrough(), v = e.union([
|
|
410
410
|
w,
|
|
411
|
-
j
|
|
411
|
+
j,
|
|
412
|
+
k,
|
|
413
|
+
U,
|
|
414
|
+
F
|
|
412
415
|
]);
|
|
413
|
-
var
|
|
414
|
-
const
|
|
416
|
+
var P = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(P || {});
|
|
417
|
+
const x = e.object({
|
|
415
418
|
id: e.string(),
|
|
416
419
|
type: e.literal(
|
|
417
420
|
"STEP"
|
|
418
421
|
/* STEP */
|
|
419
422
|
),
|
|
420
|
-
coordinates:
|
|
423
|
+
coordinates: s,
|
|
421
424
|
alias: e.string().optional(),
|
|
422
425
|
config: e.object({
|
|
423
|
-
components: e.array(
|
|
426
|
+
components: e.array(v),
|
|
424
427
|
next_node: e.string()
|
|
425
428
|
}).passthrough()
|
|
426
|
-
}),
|
|
429
|
+
}), M = e.object({
|
|
427
430
|
id: e.string(),
|
|
428
431
|
type: e.literal(
|
|
429
432
|
"FLOW"
|
|
430
433
|
/* FLOW */
|
|
431
434
|
),
|
|
432
|
-
coordinates:
|
|
435
|
+
coordinates: s,
|
|
433
436
|
alias: e.string().optional(),
|
|
434
437
|
config: e.object({
|
|
435
438
|
flow_id: e.string(),
|
|
436
439
|
next_node: e.string()
|
|
437
440
|
})
|
|
438
|
-
}),
|
|
441
|
+
}), H = e.object({
|
|
439
442
|
id: e.string(),
|
|
440
443
|
type: e.string(),
|
|
441
|
-
coordinates:
|
|
442
|
-
}).passthrough(),
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
]),
|
|
444
|
+
coordinates: s
|
|
445
|
+
}).passthrough(), G = e.union([
|
|
446
|
+
x,
|
|
447
|
+
M,
|
|
448
|
+
H
|
|
449
|
+
]), K = e.object({
|
|
447
450
|
next_node: e.string(),
|
|
448
|
-
coordinates:
|
|
449
|
-
}).passthrough(),
|
|
451
|
+
coordinates: s
|
|
452
|
+
}).passthrough(), B = e.object({
|
|
450
453
|
resume_flow: e.boolean().optional(),
|
|
451
|
-
coordinates:
|
|
452
|
-
}).passthrough(),
|
|
454
|
+
coordinates: s
|
|
455
|
+
}).passthrough(), z = e.object({
|
|
453
456
|
id: e.string(),
|
|
454
457
|
name: e.string(),
|
|
455
458
|
languages: e.object({
|
|
456
459
|
primary: e.string()
|
|
457
460
|
}).passthrough(),
|
|
458
|
-
nodes: e.array(
|
|
459
|
-
start:
|
|
460
|
-
ending:
|
|
461
|
+
nodes: e.array(G),
|
|
462
|
+
start: K,
|
|
463
|
+
ending: B,
|
|
461
464
|
created_at: e.string(),
|
|
462
465
|
updated_at: e.string(),
|
|
463
466
|
links: e.object({
|
|
464
467
|
sdkSrc: e.string().optional(),
|
|
465
468
|
sdk_src: e.string().optional()
|
|
466
469
|
}).passthrough()
|
|
467
|
-
}).passthrough(),
|
|
470
|
+
}).passthrough(), Ze = z.omit({
|
|
468
471
|
id: !0,
|
|
469
472
|
created_at: !0,
|
|
470
473
|
updated_at: !0
|
|
471
474
|
});
|
|
472
|
-
var
|
|
473
|
-
const
|
|
475
|
+
var u = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(u || {}), m = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(m || {}), h = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(h || {});
|
|
476
|
+
const W = e.object({
|
|
474
477
|
client_id: e.string(),
|
|
475
478
|
act_as: e.string().optional(),
|
|
476
|
-
response_type: e.nativeEnum(
|
|
477
|
-
response_mode: e.nativeEnum(
|
|
479
|
+
response_type: e.nativeEnum(u).optional(),
|
|
480
|
+
response_mode: e.nativeEnum(m).optional(),
|
|
478
481
|
redirect_uri: e.string().optional(),
|
|
479
482
|
audience: e.string().optional(),
|
|
480
483
|
organization: e.string().optional(),
|
|
@@ -482,13 +485,13 @@ const K = e.object({
|
|
|
482
485
|
nonce: e.string().optional(),
|
|
483
486
|
scope: e.string().optional(),
|
|
484
487
|
prompt: e.string().optional(),
|
|
485
|
-
code_challenge_method: e.nativeEnum(
|
|
488
|
+
code_challenge_method: e.nativeEnum(h).optional(),
|
|
486
489
|
code_challenge: e.string().optional(),
|
|
487
490
|
username: e.string().optional(),
|
|
488
491
|
ui_locales: e.string().optional(),
|
|
489
492
|
// The following fields are not available in Auth0
|
|
490
493
|
vendor_id: e.string().optional()
|
|
491
|
-
}),
|
|
494
|
+
}), $e = e.object({
|
|
492
495
|
colors: e.object({
|
|
493
496
|
primary: e.string(),
|
|
494
497
|
page_background: e.object({
|
|
@@ -504,7 +507,7 @@ const K = e.object({
|
|
|
504
507
|
font: e.object({
|
|
505
508
|
url: e.string()
|
|
506
509
|
}).optional()
|
|
507
|
-
}),
|
|
510
|
+
}), X = e.object({
|
|
508
511
|
kid: e.string().optional(),
|
|
509
512
|
team_id: e.string().optional(),
|
|
510
513
|
realms: e.string().optional(),
|
|
@@ -524,23 +527,23 @@ const K = e.object({
|
|
|
524
527
|
twilio_sid: e.string().optional(),
|
|
525
528
|
twilio_token: e.string().optional(),
|
|
526
529
|
icon_url: e.string().optional()
|
|
527
|
-
}),
|
|
530
|
+
}), V = e.object({
|
|
528
531
|
id: e.string().optional(),
|
|
529
532
|
name: e.string(),
|
|
530
533
|
display_name: e.string().optional(),
|
|
531
534
|
strategy: e.string(),
|
|
532
|
-
options:
|
|
535
|
+
options: X.default({}),
|
|
533
536
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
534
537
|
response_type: e.custom().optional(),
|
|
535
538
|
response_mode: e.custom().optional(),
|
|
536
539
|
is_domain_connection: e.boolean().optional(),
|
|
537
540
|
show_as_button: e.boolean().optional(),
|
|
538
541
|
metadata: e.record(e.any()).optional()
|
|
539
|
-
}),
|
|
542
|
+
}), q = e.object({
|
|
540
543
|
id: e.string(),
|
|
541
544
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
542
545
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
543
|
-
}).extend(
|
|
546
|
+
}).extend(V.shape), Y = e.object({
|
|
544
547
|
id: e.string().optional(),
|
|
545
548
|
// Basic settings
|
|
546
549
|
audience: e.string(),
|
|
@@ -660,25 +663,25 @@ const K = e.object({
|
|
|
660
663
|
// Authorization settings
|
|
661
664
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
662
665
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
663
|
-
}),
|
|
666
|
+
}), Q = e.object({
|
|
664
667
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
665
668
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
666
|
-
...
|
|
669
|
+
...Y.shape,
|
|
667
670
|
id: e.string()
|
|
668
671
|
});
|
|
669
672
|
e.object({
|
|
670
|
-
...
|
|
671
|
-
tenant:
|
|
672
|
-
connections: e.array(
|
|
673
|
+
...L.shape,
|
|
674
|
+
tenant: Q,
|
|
675
|
+
connections: e.array(q)
|
|
673
676
|
});
|
|
674
|
-
const
|
|
677
|
+
const J = e.enum([
|
|
675
678
|
"password_reset",
|
|
676
679
|
"email_verification",
|
|
677
680
|
"otp",
|
|
678
681
|
"authorization_code",
|
|
679
682
|
"oauth2_state",
|
|
680
683
|
"ticket"
|
|
681
|
-
]),
|
|
684
|
+
]), Z = e.object({
|
|
682
685
|
code_id: e.string().openapi({
|
|
683
686
|
description: "The code that will be used in for instance an email verification flow"
|
|
684
687
|
}),
|
|
@@ -688,7 +691,7 @@ const q = e.enum([
|
|
|
688
691
|
connection_id: e.string().optional().openapi({
|
|
689
692
|
description: "The connection that the code is connected to"
|
|
690
693
|
}),
|
|
691
|
-
code_type:
|
|
694
|
+
code_type: J,
|
|
692
695
|
code_verifier: e.string().optional().openapi({
|
|
693
696
|
description: "The code verifier used in PKCE in outbound flows"
|
|
694
697
|
}),
|
|
@@ -710,10 +713,10 @@ const q = e.enum([
|
|
|
710
713
|
expires_at: e.string(),
|
|
711
714
|
used_at: e.string().optional(),
|
|
712
715
|
user_id: e.string().optional()
|
|
713
|
-
}),
|
|
714
|
-
...
|
|
716
|
+
}), et = e.object({
|
|
717
|
+
...Z.shape,
|
|
715
718
|
created_at: e.string()
|
|
716
|
-
}),
|
|
719
|
+
}), $ = e.object({
|
|
717
720
|
domain: e.string(),
|
|
718
721
|
custom_domain_id: e.string().optional(),
|
|
719
722
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -727,23 +730,23 @@ const q = e.enum([
|
|
|
727
730
|
"null"
|
|
728
731
|
]).optional(),
|
|
729
732
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
730
|
-
}),
|
|
733
|
+
}), ee = e.object({
|
|
731
734
|
name: e.literal("txt"),
|
|
732
735
|
record: e.string(),
|
|
733
736
|
domain: e.string()
|
|
734
|
-
}),
|
|
735
|
-
|
|
737
|
+
}), te = e.object({
|
|
738
|
+
...$.shape,
|
|
736
739
|
custom_domain_id: e.string(),
|
|
737
740
|
primary: e.boolean(),
|
|
738
741
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
739
742
|
origin_domain_name: e.string().optional(),
|
|
740
743
|
verification: e.object({
|
|
741
|
-
methods: e.array(
|
|
744
|
+
methods: e.array(ee)
|
|
742
745
|
}).optional(),
|
|
743
746
|
tls_policy: e.string().optional()
|
|
744
|
-
}),
|
|
747
|
+
}), tt = te.extend({
|
|
745
748
|
tenant_id: e.string()
|
|
746
|
-
}),
|
|
749
|
+
}), ot = e.object({
|
|
747
750
|
id: e.string(),
|
|
748
751
|
type: e.literal("submit"),
|
|
749
752
|
label: e.string(),
|
|
@@ -752,54 +755,66 @@ const q = e.enum([
|
|
|
752
755
|
order: e.number().optional(),
|
|
753
756
|
visible: e.boolean().optional().default(!0),
|
|
754
757
|
customizations: e.record(e.string(), e.any()).optional()
|
|
755
|
-
}),
|
|
756
|
-
e.
|
|
757
|
-
|
|
758
|
-
|
|
758
|
+
}), b = e.object({
|
|
759
|
+
id: e.string(),
|
|
760
|
+
order: e.number().optional(),
|
|
761
|
+
visible: e.boolean().optional().default(!0)
|
|
762
|
+
}), c = b.extend({
|
|
763
|
+
category: e.literal("BLOCK").optional()
|
|
764
|
+
}), a = b.extend({
|
|
765
|
+
category: e.literal("FIELD").optional(),
|
|
766
|
+
required: e.boolean().optional(),
|
|
767
|
+
sensitive: e.boolean().optional()
|
|
768
|
+
}), oe = e.discriminatedUnion("type", [
|
|
769
|
+
c.extend({
|
|
759
770
|
type: e.literal("RICH_TEXT"),
|
|
760
771
|
config: e.object({
|
|
761
772
|
content: e.string()
|
|
762
|
-
})
|
|
763
|
-
order: e.number().optional(),
|
|
764
|
-
visible: e.boolean().optional().default(!0)
|
|
773
|
+
})
|
|
765
774
|
}),
|
|
766
|
-
|
|
767
|
-
id: e.string(),
|
|
768
|
-
category: e.literal("FIELD").optional(),
|
|
775
|
+
a.omit({ sensitive: !0 }).extend({
|
|
769
776
|
type: e.literal("LEGAL"),
|
|
770
777
|
config: e.object({
|
|
771
778
|
text: e.string(),
|
|
772
779
|
html: e.boolean().optional()
|
|
773
|
-
})
|
|
774
|
-
required: e.boolean().optional(),
|
|
775
|
-
order: e.number().optional(),
|
|
776
|
-
visible: e.boolean().optional().default(!0)
|
|
780
|
+
})
|
|
777
781
|
}),
|
|
778
|
-
|
|
779
|
-
id: e.string(),
|
|
780
|
-
category: e.literal("FIELD").optional(),
|
|
782
|
+
a.extend({
|
|
781
783
|
type: e.literal("TEXT"),
|
|
782
784
|
config: e.object({
|
|
783
785
|
placeholder: e.string().optional(),
|
|
784
786
|
multiline: e.boolean().optional()
|
|
785
|
-
})
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
order: e.number().optional(),
|
|
789
|
-
visible: e.boolean().optional().default(!0)
|
|
790
|
-
}),
|
|
791
|
-
e.object({
|
|
792
|
-
id: e.string(),
|
|
793
|
-
category: e.literal("BLOCK").optional(),
|
|
787
|
+
})
|
|
788
|
+
}),
|
|
789
|
+
c.extend({
|
|
794
790
|
type: e.literal("NEXT_BUTTON"),
|
|
795
791
|
config: e.object({
|
|
796
792
|
text: e.string().optional()
|
|
797
|
-
})
|
|
798
|
-
|
|
799
|
-
|
|
793
|
+
})
|
|
794
|
+
}),
|
|
795
|
+
a.extend({
|
|
796
|
+
type: e.literal("EMAIL"),
|
|
797
|
+
config: e.object({
|
|
798
|
+
label: e.string().optional(),
|
|
799
|
+
placeholder: e.string().optional()
|
|
800
|
+
})
|
|
801
|
+
}),
|
|
802
|
+
a.extend({
|
|
803
|
+
type: e.literal("NUMBER"),
|
|
804
|
+
config: e.object({
|
|
805
|
+
label: e.string().optional(),
|
|
806
|
+
placeholder: e.string().optional()
|
|
807
|
+
})
|
|
808
|
+
}),
|
|
809
|
+
a.extend({
|
|
810
|
+
type: e.literal("PHONE"),
|
|
811
|
+
config: e.object({
|
|
812
|
+
label: e.string().optional(),
|
|
813
|
+
placeholder: e.string().optional()
|
|
814
|
+
})
|
|
800
815
|
})
|
|
801
816
|
// Add more component types as needed
|
|
802
|
-
]),
|
|
817
|
+
]), ne = e.object({
|
|
803
818
|
name: e.string().openapi({
|
|
804
819
|
description: "The name of the form"
|
|
805
820
|
}),
|
|
@@ -850,7 +865,7 @@ const q = e.enum([
|
|
|
850
865
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
851
866
|
alias: e.string().min(1).max(150).optional(),
|
|
852
867
|
config: e.object({
|
|
853
|
-
components: e.array(
|
|
868
|
+
components: e.array(oe),
|
|
854
869
|
next_node: e.string().optional()
|
|
855
870
|
})
|
|
856
871
|
})
|
|
@@ -873,11 +888,11 @@ const q = e.enum([
|
|
|
873
888
|
style: e.object({ css: e.string().optional() }).optional()
|
|
874
889
|
}).openapi({
|
|
875
890
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
876
|
-
}),
|
|
891
|
+
}), nt = e.object({
|
|
877
892
|
...n.shape,
|
|
878
|
-
...
|
|
893
|
+
...ne.shape,
|
|
879
894
|
id: e.string()
|
|
880
|
-
}),
|
|
895
|
+
}), E = e.enum([
|
|
881
896
|
"pre-user-registration",
|
|
882
897
|
"post-user-registration",
|
|
883
898
|
"post-user-login",
|
|
@@ -885,49 +900,49 @@ const q = e.enum([
|
|
|
885
900
|
"pre-user-deletion",
|
|
886
901
|
"post-user-deletion"
|
|
887
902
|
// Potentially other triggers specific to webhooks in the future
|
|
888
|
-
]),
|
|
903
|
+
]), f = e.enum([
|
|
889
904
|
"pre-user-registration",
|
|
890
905
|
"post-user-registration",
|
|
891
906
|
"post-user-login",
|
|
892
907
|
"validate-registration-username",
|
|
893
908
|
"pre-user-deletion",
|
|
894
909
|
"post-user-deletion"
|
|
895
|
-
]),
|
|
910
|
+
]), _ = {
|
|
896
911
|
enabled: e.boolean().default(!1),
|
|
897
912
|
synchronous: e.boolean().default(!1),
|
|
898
913
|
priority: e.number().optional(),
|
|
899
914
|
hook_id: e.string().optional()
|
|
900
|
-
},
|
|
901
|
-
...
|
|
902
|
-
trigger_id:
|
|
915
|
+
}, ie = e.object({
|
|
916
|
+
..._,
|
|
917
|
+
trigger_id: E,
|
|
903
918
|
url: e.string()
|
|
904
|
-
}),
|
|
905
|
-
...
|
|
906
|
-
trigger_id:
|
|
919
|
+
}), ae = e.object({
|
|
920
|
+
..._,
|
|
921
|
+
trigger_id: f,
|
|
907
922
|
form_id: e.string()
|
|
908
|
-
}),
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
]),
|
|
912
|
-
...
|
|
913
|
-
trigger_id:
|
|
923
|
+
}), it = e.union([
|
|
924
|
+
ie,
|
|
925
|
+
ae
|
|
926
|
+
]), se = e.object({
|
|
927
|
+
..._,
|
|
928
|
+
trigger_id: E,
|
|
914
929
|
...n.shape,
|
|
915
930
|
hook_id: e.string(),
|
|
916
931
|
url: e.string()
|
|
917
|
-
}),
|
|
918
|
-
...
|
|
919
|
-
trigger_id:
|
|
932
|
+
}), re = e.object({
|
|
933
|
+
..._,
|
|
934
|
+
trigger_id: f,
|
|
920
935
|
...n.shape,
|
|
921
936
|
hook_id: e.string(),
|
|
922
937
|
form_id: e.string()
|
|
923
|
-
}),
|
|
938
|
+
}), at = e.union([se, re]), le = e.object({
|
|
924
939
|
name: e.string().optional()
|
|
925
|
-
}),
|
|
940
|
+
}), _e = e.object({
|
|
926
941
|
email: e.string().optional()
|
|
927
|
-
}),
|
|
942
|
+
}), ce = e.object({
|
|
928
943
|
organization_id: e.string().max(50),
|
|
929
|
-
inviter:
|
|
930
|
-
invitee:
|
|
944
|
+
inviter: le,
|
|
945
|
+
invitee: _e,
|
|
931
946
|
invitation_url: e.string().url(),
|
|
932
947
|
client_id: e.string(),
|
|
933
948
|
connection_id: e.string().optional(),
|
|
@@ -936,13 +951,13 @@ const q = e.enum([
|
|
|
936
951
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
937
952
|
roles: e.array(e.string()).default([]).optional(),
|
|
938
953
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
939
|
-
}),
|
|
954
|
+
}), st = e.object({
|
|
940
955
|
id: e.string(),
|
|
941
956
|
organization_id: e.string().max(50),
|
|
942
957
|
created_at: e.string().datetime(),
|
|
943
958
|
expires_at: e.string().datetime(),
|
|
944
959
|
ticket_id: e.string().optional()
|
|
945
|
-
}).extend(
|
|
960
|
+
}).extend(ce.shape), pe = e.object({
|
|
946
961
|
alg: e.enum([
|
|
947
962
|
"RS256",
|
|
948
963
|
"RS384",
|
|
@@ -961,9 +976,9 @@ const q = e.enum([
|
|
|
961
976
|
x5t: e.string().optional(),
|
|
962
977
|
x5c: e.array(e.string()).optional(),
|
|
963
978
|
use: e.enum(["sig", "enc"]).optional()
|
|
964
|
-
}),
|
|
965
|
-
keys: e.array(
|
|
966
|
-
}),
|
|
979
|
+
}), rt = e.object({
|
|
980
|
+
keys: e.array(pe)
|
|
981
|
+
}), lt = e.object({
|
|
967
982
|
issuer: e.string(),
|
|
968
983
|
authorization_endpoint: e.string(),
|
|
969
984
|
token_endpoint: e.string(),
|
|
@@ -984,10 +999,10 @@ const q = e.enum([
|
|
|
984
999
|
request_uri_parameter_supported: e.boolean(),
|
|
985
1000
|
request_parameter_supported: e.boolean(),
|
|
986
1001
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
987
|
-
}),
|
|
1002
|
+
}), de = e.object({
|
|
988
1003
|
csrf_token: e.string(),
|
|
989
1004
|
auth0Client: e.string().optional(),
|
|
990
|
-
authParams:
|
|
1005
|
+
authParams: W,
|
|
991
1006
|
expires_at: e.string(),
|
|
992
1007
|
deleted_at: e.string().optional(),
|
|
993
1008
|
ip: e.string().optional(),
|
|
@@ -997,14 +1012,14 @@ const q = e.enum([
|
|
|
997
1012
|
login_completed: e.boolean().optional().default(!1)
|
|
998
1013
|
}).openapi({
|
|
999
1014
|
description: "This represents a login sesion"
|
|
1000
|
-
}),
|
|
1001
|
-
...
|
|
1015
|
+
}), _t = e.object({
|
|
1016
|
+
...de.shape,
|
|
1002
1017
|
id: e.string().openapi({
|
|
1003
1018
|
description: "This is is used as the state in the universal login"
|
|
1004
1019
|
}),
|
|
1005
1020
|
created_at: e.string(),
|
|
1006
1021
|
updated_at: e.string()
|
|
1007
|
-
}),
|
|
1022
|
+
}), ge = {
|
|
1008
1023
|
// Network & System
|
|
1009
1024
|
ACLS_SUMMARY: "acls_summary",
|
|
1010
1025
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1171,24 +1186,24 @@ const q = e.enum([
|
|
|
1171
1186
|
WARNING_DURING_LOGIN: "w",
|
|
1172
1187
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1173
1188
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1174
|
-
},
|
|
1175
|
-
(t) => Object.values(
|
|
1189
|
+
}, ue = e.string().refine(
|
|
1190
|
+
(t) => Object.values(ge).includes(t),
|
|
1176
1191
|
{ message: "Invalid log type" }
|
|
1177
|
-
),
|
|
1192
|
+
), me = e.object({
|
|
1178
1193
|
name: e.string(),
|
|
1179
1194
|
version: e.string(),
|
|
1180
1195
|
env: e.object({
|
|
1181
1196
|
node: e.string().optional()
|
|
1182
1197
|
}).optional()
|
|
1183
|
-
}),
|
|
1198
|
+
}), he = e.object({
|
|
1184
1199
|
country_code: e.string().length(2),
|
|
1185
1200
|
city_name: e.string(),
|
|
1186
1201
|
latitude: e.string(),
|
|
1187
1202
|
longitude: e.string(),
|
|
1188
1203
|
time_zone: e.string(),
|
|
1189
1204
|
continent_code: e.string()
|
|
1190
|
-
}),
|
|
1191
|
-
type:
|
|
1205
|
+
}), be = e.object({
|
|
1206
|
+
type: ue,
|
|
1192
1207
|
date: e.string(),
|
|
1193
1208
|
description: e.string().optional(),
|
|
1194
1209
|
ip: e.string().optional(),
|
|
@@ -1207,30 +1222,30 @@ const q = e.enum([
|
|
|
1207
1222
|
strategy: e.string().optional(),
|
|
1208
1223
|
strategy_type: e.string().optional(),
|
|
1209
1224
|
hostname: e.string().optional(),
|
|
1210
|
-
auth0_client:
|
|
1225
|
+
auth0_client: me.optional(),
|
|
1211
1226
|
log_id: e.string().optional(),
|
|
1212
|
-
location_info:
|
|
1213
|
-
}),
|
|
1214
|
-
...
|
|
1227
|
+
location_info: he.optional()
|
|
1228
|
+
}), ct = e.object({
|
|
1229
|
+
...be.shape,
|
|
1215
1230
|
log_id: e.string()
|
|
1216
|
-
}),
|
|
1231
|
+
}), Ee = e.object({
|
|
1217
1232
|
id: e.string().optional(),
|
|
1218
1233
|
user_id: e.string(),
|
|
1219
1234
|
password: e.string(),
|
|
1220
1235
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1221
1236
|
is_current: e.boolean().default(!0)
|
|
1222
|
-
}),
|
|
1237
|
+
}), pt = Ee.extend({
|
|
1223
1238
|
id: e.string(),
|
|
1224
1239
|
created_at: e.string(),
|
|
1225
1240
|
updated_at: e.string()
|
|
1226
|
-
}),
|
|
1241
|
+
}), S = e.object({
|
|
1227
1242
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1228
1243
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1229
1244
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1230
1245
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1231
1246
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1232
1247
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1233
|
-
}),
|
|
1248
|
+
}), fe = e.object({
|
|
1234
1249
|
id: e.string(),
|
|
1235
1250
|
revoked_at: e.string().optional(),
|
|
1236
1251
|
used_at: e.string().optional(),
|
|
@@ -1238,17 +1253,17 @@ const q = e.enum([
|
|
|
1238
1253
|
expires_at: e.string().optional(),
|
|
1239
1254
|
login_session_id: e.string(),
|
|
1240
1255
|
idle_expires_at: e.string().optional(),
|
|
1241
|
-
device:
|
|
1256
|
+
device: S.describe(
|
|
1242
1257
|
"Metadata related to the device used in the session"
|
|
1243
1258
|
),
|
|
1244
1259
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1245
|
-
}),
|
|
1260
|
+
}), dt = e.object({
|
|
1246
1261
|
created_at: e.string(),
|
|
1247
1262
|
updated_at: e.string(),
|
|
1248
1263
|
authenticated_at: e.string(),
|
|
1249
1264
|
last_interaction_at: e.string(),
|
|
1250
|
-
...
|
|
1251
|
-
}),
|
|
1265
|
+
...fe.shape
|
|
1266
|
+
}), gt = e.object({
|
|
1252
1267
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1253
1268
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1254
1269
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1274,8 +1289,8 @@ const q = e.enum([
|
|
|
1274
1289
|
description: "The type of the signing key"
|
|
1275
1290
|
})
|
|
1276
1291
|
});
|
|
1277
|
-
var
|
|
1278
|
-
const
|
|
1292
|
+
var Se = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(Se || {});
|
|
1293
|
+
const ut = e.object({
|
|
1279
1294
|
access_token: e.string(),
|
|
1280
1295
|
id_token: e.string().optional(),
|
|
1281
1296
|
scope: e.string().optional(),
|
|
@@ -1288,7 +1303,7 @@ e.object({
|
|
|
1288
1303
|
code: e.string(),
|
|
1289
1304
|
state: e.string().optional()
|
|
1290
1305
|
});
|
|
1291
|
-
const
|
|
1306
|
+
const Ae = e.object({
|
|
1292
1307
|
button_border_radius: e.number(),
|
|
1293
1308
|
button_border_weight: e.number(),
|
|
1294
1309
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1298,7 +1313,7 @@ const Ee = e.object({
|
|
|
1298
1313
|
show_widget_shadow: e.boolean(),
|
|
1299
1314
|
widget_border_weight: e.number(),
|
|
1300
1315
|
widget_corner_radius: e.number()
|
|
1301
|
-
}),
|
|
1316
|
+
}), Ie = e.object({
|
|
1302
1317
|
base_focus_color: e.string(),
|
|
1303
1318
|
base_hover_color: e.string(),
|
|
1304
1319
|
body_text: e.string(),
|
|
@@ -1321,7 +1336,7 @@ const Ee = e.object({
|
|
|
1321
1336
|
}), o = e.object({
|
|
1322
1337
|
bold: e.boolean(),
|
|
1323
1338
|
size: e.number()
|
|
1324
|
-
}),
|
|
1339
|
+
}), Ce = e.object({
|
|
1325
1340
|
body_text: o,
|
|
1326
1341
|
buttons_text: o,
|
|
1327
1342
|
font_url: e.string(),
|
|
@@ -1331,31 +1346,31 @@ const Ee = e.object({
|
|
|
1331
1346
|
reference_text_size: e.number(),
|
|
1332
1347
|
subtitle: o,
|
|
1333
1348
|
title: o
|
|
1334
|
-
}),
|
|
1349
|
+
}), Oe = e.object({
|
|
1335
1350
|
background_color: e.string(),
|
|
1336
1351
|
background_image_url: e.string(),
|
|
1337
1352
|
page_layout: e.enum(["center", "left", "right"])
|
|
1338
|
-
}),
|
|
1353
|
+
}), Te = e.object({
|
|
1339
1354
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1340
1355
|
logo_height: e.number(),
|
|
1341
1356
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1342
1357
|
logo_url: e.string(),
|
|
1343
1358
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1344
|
-
}),
|
|
1345
|
-
borders:
|
|
1346
|
-
colors:
|
|
1359
|
+
}), ye = e.object({
|
|
1360
|
+
borders: Ae,
|
|
1361
|
+
colors: Ie,
|
|
1347
1362
|
displayName: e.string(),
|
|
1348
|
-
fonts:
|
|
1349
|
-
page_background:
|
|
1350
|
-
widget:
|
|
1351
|
-
}),
|
|
1363
|
+
fonts: Ce,
|
|
1364
|
+
page_background: Oe,
|
|
1365
|
+
widget: Te
|
|
1366
|
+
}), mt = ye.extend({
|
|
1352
1367
|
themeId: e.string()
|
|
1353
|
-
}),
|
|
1368
|
+
}), ht = e.object({
|
|
1354
1369
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1355
1370
|
identifier_first: e.boolean().default(!0),
|
|
1356
1371
|
password_first: e.boolean().default(!1),
|
|
1357
1372
|
webauthn_platform_first_factor: e.boolean()
|
|
1358
|
-
}),
|
|
1373
|
+
}), bt = e.object({
|
|
1359
1374
|
name: e.string(),
|
|
1360
1375
|
enabled: e.boolean().optional().default(!0),
|
|
1361
1376
|
default_from_address: e.string().optional(),
|
|
@@ -1385,7 +1400,7 @@ const Ee = e.object({
|
|
|
1385
1400
|
})
|
|
1386
1401
|
]),
|
|
1387
1402
|
settings: e.object({}).optional()
|
|
1388
|
-
}),
|
|
1403
|
+
}), Ne = e.object({
|
|
1389
1404
|
// The actual refresh token value (primary key).
|
|
1390
1405
|
id: e.string(),
|
|
1391
1406
|
// Link to the session record
|
|
@@ -1398,7 +1413,7 @@ const Ee = e.object({
|
|
|
1398
1413
|
idle_expires_at: e.string().optional(),
|
|
1399
1414
|
// When the token was last used.
|
|
1400
1415
|
last_exchanged_at: e.string().optional(),
|
|
1401
|
-
device:
|
|
1416
|
+
device: S,
|
|
1402
1417
|
resource_servers: e.array(
|
|
1403
1418
|
e.object({
|
|
1404
1419
|
audience: e.string(),
|
|
@@ -1406,21 +1421,21 @@ const Ee = e.object({
|
|
|
1406
1421
|
})
|
|
1407
1422
|
),
|
|
1408
1423
|
rotating: e.boolean()
|
|
1409
|
-
}),
|
|
1424
|
+
}), Et = e.object({
|
|
1410
1425
|
// When the refresh token record was created.
|
|
1411
1426
|
created_at: e.string(),
|
|
1412
1427
|
// Spread in the rest of the refresh token properties.
|
|
1413
|
-
...
|
|
1414
|
-
}),
|
|
1428
|
+
...Ne.shape
|
|
1429
|
+
}), ft = e.object({
|
|
1415
1430
|
to: e.string(),
|
|
1416
1431
|
message: e.string()
|
|
1417
|
-
}),
|
|
1432
|
+
}), St = e.object({
|
|
1418
1433
|
name: e.string(),
|
|
1419
1434
|
options: e.object({})
|
|
1420
|
-
}),
|
|
1435
|
+
}), Le = e.object({
|
|
1421
1436
|
value: e.string(),
|
|
1422
1437
|
description: e.string().optional()
|
|
1423
|
-
}),
|
|
1438
|
+
}), Re = e.object({
|
|
1424
1439
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1425
1440
|
enforce_policies: e.boolean().optional(),
|
|
1426
1441
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1430,10 +1445,10 @@ const Ee = e.object({
|
|
|
1430
1445
|
mtls: e.object({
|
|
1431
1446
|
bound_access_tokens: e.boolean().optional()
|
|
1432
1447
|
}).optional()
|
|
1433
|
-
}),
|
|
1448
|
+
}), De = e.object({
|
|
1434
1449
|
name: e.string(),
|
|
1435
1450
|
identifier: e.string(),
|
|
1436
|
-
scopes: e.array(
|
|
1451
|
+
scopes: e.array(Le).optional(),
|
|
1437
1452
|
signing_alg: e.string().optional(),
|
|
1438
1453
|
signing_secret: e.string().optional(),
|
|
1439
1454
|
token_lifetime: e.number().optional(),
|
|
@@ -1441,29 +1456,29 @@ const Ee = e.object({
|
|
|
1441
1456
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1442
1457
|
allow_offline_access: e.boolean().optional(),
|
|
1443
1458
|
verificationKey: e.string().optional(),
|
|
1444
|
-
options:
|
|
1445
|
-
}),
|
|
1459
|
+
options: Re.optional()
|
|
1460
|
+
}), we = e.object({
|
|
1446
1461
|
id: e.string().optional(),
|
|
1447
|
-
...
|
|
1462
|
+
...De.shape,
|
|
1448
1463
|
created_at: e.string().optional(),
|
|
1449
1464
|
updated_at: e.string().optional()
|
|
1450
|
-
}),
|
|
1465
|
+
}), At = e.array(we), je = e.object({
|
|
1451
1466
|
role_id: e.string(),
|
|
1452
1467
|
resource_server_identifier: e.string(),
|
|
1453
1468
|
permission_name: e.string()
|
|
1454
|
-
}),
|
|
1455
|
-
...
|
|
1469
|
+
}), ke = e.object({
|
|
1470
|
+
...je.shape,
|
|
1456
1471
|
created_at: e.string()
|
|
1457
|
-
}),
|
|
1472
|
+
}), It = e.array(ke), Ue = e.object({
|
|
1458
1473
|
user_id: e.string(),
|
|
1459
1474
|
resource_server_identifier: e.string(),
|
|
1460
1475
|
permission_name: e.string(),
|
|
1461
1476
|
organization_id: e.string().optional()
|
|
1462
|
-
}),
|
|
1463
|
-
...
|
|
1477
|
+
}), Fe = e.object({
|
|
1478
|
+
...Ue.shape,
|
|
1464
1479
|
tenant_id: e.string(),
|
|
1465
1480
|
created_at: e.string().optional()
|
|
1466
|
-
}),
|
|
1481
|
+
}), Ct = e.array(Fe), ve = e.object({
|
|
1467
1482
|
user_id: e.string(),
|
|
1468
1483
|
resource_server_identifier: e.string(),
|
|
1469
1484
|
resource_server_name: e.string(),
|
|
@@ -1471,31 +1486,31 @@ const Ee = e.object({
|
|
|
1471
1486
|
description: e.string().nullable().optional(),
|
|
1472
1487
|
created_at: e.string().optional(),
|
|
1473
1488
|
organization_id: e.string().optional()
|
|
1474
|
-
}),
|
|
1475
|
-
|
|
1476
|
-
),
|
|
1489
|
+
}), Ot = e.array(
|
|
1490
|
+
ve
|
|
1491
|
+
), Pe = e.object({
|
|
1477
1492
|
user_id: e.string(),
|
|
1478
1493
|
role_id: e.string(),
|
|
1479
1494
|
organization_id: e.string().optional()
|
|
1480
|
-
}),
|
|
1481
|
-
...
|
|
1495
|
+
}), xe = e.object({
|
|
1496
|
+
...Pe.shape,
|
|
1482
1497
|
tenant_id: e.string(),
|
|
1483
1498
|
created_at: e.string().optional()
|
|
1484
|
-
}),
|
|
1499
|
+
}), Tt = e.array(xe), Me = e.object({
|
|
1485
1500
|
name: e.string().min(1).max(50).openapi({
|
|
1486
1501
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1487
1502
|
}),
|
|
1488
1503
|
description: e.string().max(255).optional().openapi({
|
|
1489
1504
|
description: "The description of the role"
|
|
1490
1505
|
})
|
|
1491
|
-
}),
|
|
1506
|
+
}), He = e.object({
|
|
1492
1507
|
id: e.string().openapi({
|
|
1493
1508
|
description: "The unique identifier of the role"
|
|
1494
1509
|
}),
|
|
1495
|
-
...
|
|
1510
|
+
...Me.shape,
|
|
1496
1511
|
created_at: e.string().optional(),
|
|
1497
1512
|
updated_at: e.string().optional()
|
|
1498
|
-
}),
|
|
1513
|
+
}), yt = e.array(He), Ge = e.object({
|
|
1499
1514
|
logo_url: e.string().optional().openapi({
|
|
1500
1515
|
description: "URL of the organization's logo"
|
|
1501
1516
|
}),
|
|
@@ -1507,7 +1522,7 @@ const Ee = e.object({
|
|
|
1507
1522
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1508
1523
|
})
|
|
1509
1524
|
}).optional()
|
|
1510
|
-
}).optional(),
|
|
1525
|
+
}).optional(), Ke = e.object({
|
|
1511
1526
|
connection_id: e.string().openapi({
|
|
1512
1527
|
description: "ID of the connection"
|
|
1513
1528
|
}),
|
|
@@ -1520,7 +1535,7 @@ const Ee = e.object({
|
|
|
1520
1535
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1521
1536
|
description: "Whether signup is enabled for this connection"
|
|
1522
1537
|
})
|
|
1523
|
-
}),
|
|
1538
|
+
}), Be = e.object({
|
|
1524
1539
|
client_credentials: e.object({
|
|
1525
1540
|
enforce: e.boolean().default(!1).openapi({
|
|
1526
1541
|
description: "Whether to enforce token quota limits"
|
|
@@ -1532,7 +1547,7 @@ const Ee = e.object({
|
|
|
1532
1547
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1533
1548
|
})
|
|
1534
1549
|
}).optional()
|
|
1535
|
-
}).optional(),
|
|
1550
|
+
}).optional(), ze = e.object({
|
|
1536
1551
|
id: e.string().optional(),
|
|
1537
1552
|
name: e.string().min(1).openapi({
|
|
1538
1553
|
description: "The name of the organization"
|
|
@@ -1540,30 +1555,30 @@ const Ee = e.object({
|
|
|
1540
1555
|
display_name: e.string().optional().openapi({
|
|
1541
1556
|
description: "The display name of the organization"
|
|
1542
1557
|
}),
|
|
1543
|
-
branding:
|
|
1558
|
+
branding: Ge,
|
|
1544
1559
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1545
1560
|
description: "Custom metadata for the organization"
|
|
1546
1561
|
}),
|
|
1547
|
-
enabled_connections: e.array(
|
|
1562
|
+
enabled_connections: e.array(Ke).default([]).optional().openapi({
|
|
1548
1563
|
description: "List of enabled connections for the organization"
|
|
1549
1564
|
}),
|
|
1550
|
-
token_quota:
|
|
1551
|
-
}),
|
|
1552
|
-
...
|
|
1565
|
+
token_quota: Be
|
|
1566
|
+
}), Nt = e.object({
|
|
1567
|
+
...ze.shape,
|
|
1553
1568
|
...n.shape,
|
|
1554
1569
|
id: e.string()
|
|
1555
|
-
}),
|
|
1570
|
+
}), We = e.object({
|
|
1556
1571
|
user_id: e.string().openapi({
|
|
1557
1572
|
description: "ID of the user"
|
|
1558
1573
|
}),
|
|
1559
1574
|
organization_id: e.string().openapi({
|
|
1560
1575
|
description: "ID of the organization"
|
|
1561
1576
|
})
|
|
1562
|
-
}),
|
|
1563
|
-
...
|
|
1577
|
+
}), Lt = e.object({
|
|
1578
|
+
...We.shape,
|
|
1564
1579
|
...n.shape,
|
|
1565
1580
|
id: e.string()
|
|
1566
|
-
}),
|
|
1581
|
+
}), Rt = e.object({
|
|
1567
1582
|
// Session settings
|
|
1568
1583
|
idle_session_lifetime: e.number().optional(),
|
|
1569
1584
|
session_lifetime: e.number().optional(),
|
|
@@ -1633,129 +1648,129 @@ const Ee = e.object({
|
|
|
1633
1648
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1634
1649
|
}).optional()
|
|
1635
1650
|
});
|
|
1636
|
-
function
|
|
1637
|
-
const [i,
|
|
1638
|
-
if (!i || !
|
|
1651
|
+
function Dt(t) {
|
|
1652
|
+
const [i, r] = t.split("|");
|
|
1653
|
+
if (!i || !r)
|
|
1639
1654
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1640
|
-
return { connection: i, id:
|
|
1655
|
+
return { connection: i, id: r };
|
|
1641
1656
|
}
|
|
1642
1657
|
export {
|
|
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
|
-
|
|
1658
|
+
me as Auth0Client,
|
|
1659
|
+
m as AuthorizationResponseMode,
|
|
1660
|
+
u as AuthorizationResponseType,
|
|
1661
|
+
h as CodeChallengeMethod,
|
|
1662
|
+
g as ComponentCategory,
|
|
1663
|
+
d as ComponentType,
|
|
1664
|
+
Se as GrantType,
|
|
1665
|
+
he as LocationInfo,
|
|
1666
|
+
ge as LogTypes,
|
|
1667
|
+
P as NodeType,
|
|
1668
|
+
Ze as auth0FlowInsertSchema,
|
|
1669
|
+
z as auth0FlowSchema,
|
|
1670
|
+
Ve as auth0QuerySchema,
|
|
1671
|
+
Ye as auth0UserResponseSchema,
|
|
1672
|
+
W as authParamsSchema,
|
|
1673
|
+
p as baseUserSchema,
|
|
1674
|
+
Ae as bordersSchema,
|
|
1675
|
+
$e as brandingSchema,
|
|
1676
|
+
j as buttonComponentSchema,
|
|
1677
|
+
R as clientGrantInsertSchema,
|
|
1678
|
+
Je as clientGrantListSchema,
|
|
1679
|
+
D as clientGrantSchema,
|
|
1680
|
+
N as clientInsertSchema,
|
|
1681
|
+
L as clientSchema,
|
|
1682
|
+
Z as codeInsertSchema,
|
|
1683
|
+
et as codeSchema,
|
|
1684
|
+
J as codeTypeSchema,
|
|
1685
|
+
Ie as colorsSchema,
|
|
1686
|
+
v as componentSchema,
|
|
1687
|
+
V as connectionInsertSchema,
|
|
1688
|
+
X as connectionOptionsSchema,
|
|
1689
|
+
q as connectionSchema,
|
|
1690
|
+
s as coordinatesSchema,
|
|
1691
|
+
$ as customDomainInsertSchema,
|
|
1692
|
+
te as customDomainSchema,
|
|
1693
|
+
tt as customDomainWithTenantIdSchema,
|
|
1694
|
+
bt as emailProviderSchema,
|
|
1695
|
+
B as endingSchema,
|
|
1696
|
+
U as fieldComponentSchema,
|
|
1697
|
+
M as flowNodeSchema,
|
|
1683
1698
|
o as fontDetailsSchema,
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1699
|
+
Ce as fontsSchema,
|
|
1700
|
+
ot as formControlSchema,
|
|
1701
|
+
ne as formInsertSchema,
|
|
1702
|
+
oe as formNodeComponentDefinition,
|
|
1703
|
+
nt as formSchema,
|
|
1704
|
+
F as genericComponentSchema,
|
|
1705
|
+
H as genericNodeSchema,
|
|
1706
|
+
it as hookInsertSchema,
|
|
1707
|
+
at as hookSchema,
|
|
1708
|
+
I as identitySchema,
|
|
1709
|
+
ce as inviteInsertSchema,
|
|
1710
|
+
st as inviteSchema,
|
|
1711
|
+
_e as inviteeSchema,
|
|
1712
|
+
le as inviterSchema,
|
|
1713
|
+
rt as jwksKeySchema,
|
|
1714
|
+
pe as jwksSchema,
|
|
1715
|
+
k as legalComponentSchema,
|
|
1716
|
+
be as logInsertSchema,
|
|
1717
|
+
ct as logSchema,
|
|
1718
|
+
de as loginSessionInsertSchema,
|
|
1719
|
+
_t as loginSessionSchema,
|
|
1720
|
+
G as nodeSchema,
|
|
1721
|
+
lt as openIDConfigurationSchema,
|
|
1722
|
+
Ge as organizationBrandingSchema,
|
|
1723
|
+
Ke as organizationEnabledConnectionSchema,
|
|
1724
|
+
ze as organizationInsertSchema,
|
|
1725
|
+
Nt as organizationSchema,
|
|
1726
|
+
Be as organizationTokenQuotaSchema,
|
|
1727
|
+
Oe as pageBackgroundSchema,
|
|
1728
|
+
Dt as parseUserId,
|
|
1729
|
+
Ee as passwordInsertSchema,
|
|
1730
|
+
pt as passwordSchema,
|
|
1731
|
+
A as profileDataSchema,
|
|
1732
|
+
ht as promptSettingSchema,
|
|
1733
|
+
Ne as refreshTokenInsertSchema,
|
|
1734
|
+
Et as refreshTokenSchema,
|
|
1735
|
+
De as resourceServerInsertSchema,
|
|
1736
|
+
At as resourceServerListSchema,
|
|
1737
|
+
Re as resourceServerOptionsSchema,
|
|
1738
|
+
we as resourceServerSchema,
|
|
1739
|
+
Le as resourceServerScopeSchema,
|
|
1740
|
+
w as richTextComponentSchema,
|
|
1741
|
+
Me as roleInsertSchema,
|
|
1742
|
+
yt as roleListSchema,
|
|
1743
|
+
je as rolePermissionInsertSchema,
|
|
1744
|
+
It as rolePermissionListSchema,
|
|
1745
|
+
ke as rolePermissionSchema,
|
|
1746
|
+
He as roleSchema,
|
|
1747
|
+
fe as sessionInsertSchema,
|
|
1748
|
+
dt as sessionSchema,
|
|
1749
|
+
gt as signingKeySchema,
|
|
1750
|
+
St as smsProviderSchema,
|
|
1751
|
+
ft as smsSendParamsSchema,
|
|
1752
|
+
K as startSchema,
|
|
1753
|
+
x as stepNodeSchema,
|
|
1754
|
+
Y as tenantInsertSchema,
|
|
1755
|
+
Q as tenantSchema,
|
|
1756
|
+
Rt as tenantSettingsSchema,
|
|
1757
|
+
ye as themeInsertSchema,
|
|
1758
|
+
mt as themeSchema,
|
|
1759
|
+
ut as tokenResponseSchema,
|
|
1760
|
+
qe as totalsSchema,
|
|
1761
|
+
C as userInsertSchema,
|
|
1762
|
+
We as userOrganizationInsertSchema,
|
|
1763
|
+
Lt as userOrganizationSchema,
|
|
1764
|
+
Ue as userPermissionInsertSchema,
|
|
1765
|
+
Ct as userPermissionListSchema,
|
|
1766
|
+
Fe as userPermissionSchema,
|
|
1767
|
+
Ot as userPermissionWithDetailsListSchema,
|
|
1768
|
+
ve as userPermissionWithDetailsSchema,
|
|
1769
|
+
Qe as userResponseSchema,
|
|
1770
|
+
Pe as userRoleInsertSchema,
|
|
1771
|
+
Tt as userRoleListSchema,
|
|
1772
|
+
xe as userRoleSchema,
|
|
1773
|
+
O as userSchema,
|
|
1774
|
+
ee as verificationMethodsSchema,
|
|
1775
|
+
Te as widgetSchema
|
|
1761
1776
|
};
|