@authhero/adapter-interfaces 0.105.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 +928 -64
- package/dist/adapter-interfaces.mjs +360 -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([
|
|
@@ -256,11 +256,11 @@ const O = e.object({
|
|
|
256
256
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
257
257
|
}),
|
|
258
258
|
token_quota: e.record(e.any()).default({}).optional()
|
|
259
|
-
}),
|
|
259
|
+
}), L = e.object({
|
|
260
260
|
created_at: e.string(),
|
|
261
261
|
updated_at: e.string(),
|
|
262
|
-
...
|
|
263
|
-
}),
|
|
262
|
+
...N.shape
|
|
263
|
+
}), R = e.object({
|
|
264
264
|
client_id: e.string().min(1).openapi({
|
|
265
265
|
description: "ID of the client."
|
|
266
266
|
}),
|
|
@@ -285,23 +285,23 @@ const O = e.object({
|
|
|
285
285
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
286
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."
|
|
287
287
|
})
|
|
288
|
-
}),
|
|
288
|
+
}), D = e.object({
|
|
289
289
|
id: e.string().openapi({
|
|
290
290
|
description: "ID of the client grant."
|
|
291
291
|
}),
|
|
292
|
-
...
|
|
292
|
+
...R.shape,
|
|
293
293
|
created_at: e.string().optional(),
|
|
294
294
|
updated_at: e.string().optional()
|
|
295
|
-
}),
|
|
295
|
+
}), Je = e.array(D), s = e.object({
|
|
296
296
|
x: e.number(),
|
|
297
297
|
y: e.number()
|
|
298
298
|
});
|
|
299
|
-
var
|
|
300
|
-
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({
|
|
301
301
|
id: e.string(),
|
|
302
|
-
category: e.nativeEnum(
|
|
303
|
-
type: e.nativeEnum(
|
|
304
|
-
}),
|
|
302
|
+
category: e.nativeEnum(g),
|
|
303
|
+
type: e.nativeEnum(d)
|
|
304
|
+
}), w = l.extend({
|
|
305
305
|
category: e.literal(
|
|
306
306
|
"BLOCK"
|
|
307
307
|
/* BLOCK */
|
|
@@ -313,7 +313,7 @@ const r = e.object({
|
|
|
313
313
|
config: e.object({
|
|
314
314
|
content: e.string()
|
|
315
315
|
}).passthrough()
|
|
316
|
-
}),
|
|
316
|
+
}), j = l.extend({
|
|
317
317
|
category: e.literal(
|
|
318
318
|
"BLOCK"
|
|
319
319
|
/* BLOCK */
|
|
@@ -335,7 +335,7 @@ const r = e.object({
|
|
|
335
335
|
config: e.object({
|
|
336
336
|
text: e.string()
|
|
337
337
|
}).passthrough()
|
|
338
|
-
}),
|
|
338
|
+
}), k = l.extend({
|
|
339
339
|
category: e.literal(
|
|
340
340
|
"FIELD"
|
|
341
341
|
/* FIELD */
|
|
@@ -349,7 +349,7 @@ const r = e.object({
|
|
|
349
349
|
config: e.object({
|
|
350
350
|
text: e.string()
|
|
351
351
|
}).passthrough()
|
|
352
|
-
}),
|
|
352
|
+
}), U = l.extend({
|
|
353
353
|
category: e.literal(
|
|
354
354
|
"FIELD"
|
|
355
355
|
/* FIELD */
|
|
@@ -402,82 +402,82 @@ const r = e.object({
|
|
|
402
402
|
label: e.string().optional(),
|
|
403
403
|
placeholder: e.string().optional()
|
|
404
404
|
}).passthrough()
|
|
405
|
-
}),
|
|
405
|
+
}), F = e.object({
|
|
406
406
|
id: e.string(),
|
|
407
407
|
category: e.string(),
|
|
408
408
|
type: e.string()
|
|
409
|
-
}).passthrough(),
|
|
410
|
-
L,
|
|
411
|
-
R,
|
|
412
|
-
D,
|
|
409
|
+
}).passthrough(), v = e.union([
|
|
413
410
|
w,
|
|
414
|
-
j
|
|
411
|
+
j,
|
|
412
|
+
k,
|
|
413
|
+
U,
|
|
414
|
+
F
|
|
415
415
|
]);
|
|
416
|
-
var
|
|
417
|
-
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({
|
|
418
418
|
id: e.string(),
|
|
419
419
|
type: e.literal(
|
|
420
420
|
"STEP"
|
|
421
421
|
/* STEP */
|
|
422
422
|
),
|
|
423
|
-
coordinates:
|
|
423
|
+
coordinates: s,
|
|
424
424
|
alias: e.string().optional(),
|
|
425
425
|
config: e.object({
|
|
426
|
-
components: e.array(
|
|
426
|
+
components: e.array(v),
|
|
427
427
|
next_node: e.string()
|
|
428
428
|
}).passthrough()
|
|
429
|
-
}),
|
|
429
|
+
}), M = e.object({
|
|
430
430
|
id: e.string(),
|
|
431
431
|
type: e.literal(
|
|
432
432
|
"FLOW"
|
|
433
433
|
/* FLOW */
|
|
434
434
|
),
|
|
435
|
-
coordinates:
|
|
435
|
+
coordinates: s,
|
|
436
436
|
alias: e.string().optional(),
|
|
437
437
|
config: e.object({
|
|
438
438
|
flow_id: e.string(),
|
|
439
439
|
next_node: e.string()
|
|
440
440
|
})
|
|
441
|
-
}),
|
|
441
|
+
}), H = e.object({
|
|
442
442
|
id: e.string(),
|
|
443
443
|
type: e.string(),
|
|
444
|
-
coordinates:
|
|
445
|
-
}).passthrough(),
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
]),
|
|
444
|
+
coordinates: s
|
|
445
|
+
}).passthrough(), G = e.union([
|
|
446
|
+
x,
|
|
447
|
+
M,
|
|
448
|
+
H
|
|
449
|
+
]), K = e.object({
|
|
450
450
|
next_node: e.string(),
|
|
451
|
-
coordinates:
|
|
452
|
-
}).passthrough(),
|
|
451
|
+
coordinates: s
|
|
452
|
+
}).passthrough(), B = e.object({
|
|
453
453
|
resume_flow: e.boolean().optional(),
|
|
454
|
-
coordinates:
|
|
455
|
-
}).passthrough(),
|
|
454
|
+
coordinates: s
|
|
455
|
+
}).passthrough(), z = e.object({
|
|
456
456
|
id: e.string(),
|
|
457
457
|
name: e.string(),
|
|
458
458
|
languages: e.object({
|
|
459
459
|
primary: e.string()
|
|
460
460
|
}).passthrough(),
|
|
461
|
-
nodes: e.array(
|
|
462
|
-
start:
|
|
463
|
-
ending:
|
|
461
|
+
nodes: e.array(G),
|
|
462
|
+
start: K,
|
|
463
|
+
ending: B,
|
|
464
464
|
created_at: e.string(),
|
|
465
465
|
updated_at: e.string(),
|
|
466
466
|
links: e.object({
|
|
467
467
|
sdkSrc: e.string().optional(),
|
|
468
468
|
sdk_src: e.string().optional()
|
|
469
469
|
}).passthrough()
|
|
470
|
-
}).passthrough(),
|
|
470
|
+
}).passthrough(), Ze = z.omit({
|
|
471
471
|
id: !0,
|
|
472
472
|
created_at: !0,
|
|
473
473
|
updated_at: !0
|
|
474
474
|
});
|
|
475
|
-
var
|
|
476
|
-
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({
|
|
477
477
|
client_id: e.string(),
|
|
478
478
|
act_as: e.string().optional(),
|
|
479
|
-
response_type: e.nativeEnum(
|
|
480
|
-
response_mode: e.nativeEnum(
|
|
479
|
+
response_type: e.nativeEnum(u).optional(),
|
|
480
|
+
response_mode: e.nativeEnum(m).optional(),
|
|
481
481
|
redirect_uri: e.string().optional(),
|
|
482
482
|
audience: e.string().optional(),
|
|
483
483
|
organization: e.string().optional(),
|
|
@@ -485,13 +485,13 @@ const K = e.object({
|
|
|
485
485
|
nonce: e.string().optional(),
|
|
486
486
|
scope: e.string().optional(),
|
|
487
487
|
prompt: e.string().optional(),
|
|
488
|
-
code_challenge_method: e.nativeEnum(
|
|
488
|
+
code_challenge_method: e.nativeEnum(h).optional(),
|
|
489
489
|
code_challenge: e.string().optional(),
|
|
490
490
|
username: e.string().optional(),
|
|
491
491
|
ui_locales: e.string().optional(),
|
|
492
492
|
// The following fields are not available in Auth0
|
|
493
493
|
vendor_id: e.string().optional()
|
|
494
|
-
}),
|
|
494
|
+
}), $e = e.object({
|
|
495
495
|
colors: e.object({
|
|
496
496
|
primary: e.string(),
|
|
497
497
|
page_background: e.object({
|
|
@@ -507,7 +507,7 @@ const K = e.object({
|
|
|
507
507
|
font: e.object({
|
|
508
508
|
url: e.string()
|
|
509
509
|
}).optional()
|
|
510
|
-
}),
|
|
510
|
+
}), X = e.object({
|
|
511
511
|
kid: e.string().optional(),
|
|
512
512
|
team_id: e.string().optional(),
|
|
513
513
|
realms: e.string().optional(),
|
|
@@ -527,23 +527,23 @@ const K = e.object({
|
|
|
527
527
|
twilio_sid: e.string().optional(),
|
|
528
528
|
twilio_token: e.string().optional(),
|
|
529
529
|
icon_url: e.string().optional()
|
|
530
|
-
}),
|
|
530
|
+
}), V = e.object({
|
|
531
531
|
id: e.string().optional(),
|
|
532
532
|
name: e.string(),
|
|
533
533
|
display_name: e.string().optional(),
|
|
534
534
|
strategy: e.string(),
|
|
535
|
-
options:
|
|
535
|
+
options: X.default({}),
|
|
536
536
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
537
537
|
response_type: e.custom().optional(),
|
|
538
538
|
response_mode: e.custom().optional(),
|
|
539
539
|
is_domain_connection: e.boolean().optional(),
|
|
540
540
|
show_as_button: e.boolean().optional(),
|
|
541
541
|
metadata: e.record(e.any()).optional()
|
|
542
|
-
}),
|
|
542
|
+
}), q = e.object({
|
|
543
543
|
id: e.string(),
|
|
544
544
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
545
545
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
546
|
-
}).extend(
|
|
546
|
+
}).extend(V.shape), Y = e.object({
|
|
547
547
|
id: e.string().optional(),
|
|
548
548
|
// Basic settings
|
|
549
549
|
audience: e.string(),
|
|
@@ -663,25 +663,25 @@ const K = e.object({
|
|
|
663
663
|
// Authorization settings
|
|
664
664
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
665
665
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
666
|
-
}),
|
|
666
|
+
}), Q = e.object({
|
|
667
667
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
668
668
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
669
|
-
...
|
|
669
|
+
...Y.shape,
|
|
670
670
|
id: e.string()
|
|
671
671
|
});
|
|
672
672
|
e.object({
|
|
673
|
-
...
|
|
674
|
-
tenant:
|
|
675
|
-
connections: e.array(
|
|
673
|
+
...L.shape,
|
|
674
|
+
tenant: Q,
|
|
675
|
+
connections: e.array(q)
|
|
676
676
|
});
|
|
677
|
-
const
|
|
677
|
+
const J = e.enum([
|
|
678
678
|
"password_reset",
|
|
679
679
|
"email_verification",
|
|
680
680
|
"otp",
|
|
681
681
|
"authorization_code",
|
|
682
682
|
"oauth2_state",
|
|
683
683
|
"ticket"
|
|
684
|
-
]),
|
|
684
|
+
]), Z = e.object({
|
|
685
685
|
code_id: e.string().openapi({
|
|
686
686
|
description: "The code that will be used in for instance an email verification flow"
|
|
687
687
|
}),
|
|
@@ -691,7 +691,7 @@ const q = e.enum([
|
|
|
691
691
|
connection_id: e.string().optional().openapi({
|
|
692
692
|
description: "The connection that the code is connected to"
|
|
693
693
|
}),
|
|
694
|
-
code_type:
|
|
694
|
+
code_type: J,
|
|
695
695
|
code_verifier: e.string().optional().openapi({
|
|
696
696
|
description: "The code verifier used in PKCE in outbound flows"
|
|
697
697
|
}),
|
|
@@ -713,10 +713,10 @@ const q = e.enum([
|
|
|
713
713
|
expires_at: e.string(),
|
|
714
714
|
used_at: e.string().optional(),
|
|
715
715
|
user_id: e.string().optional()
|
|
716
|
-
}),
|
|
717
|
-
...
|
|
716
|
+
}), et = e.object({
|
|
717
|
+
...Z.shape,
|
|
718
718
|
created_at: e.string()
|
|
719
|
-
}),
|
|
719
|
+
}), $ = e.object({
|
|
720
720
|
domain: e.string(),
|
|
721
721
|
custom_domain_id: e.string().optional(),
|
|
722
722
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -730,23 +730,23 @@ const q = e.enum([
|
|
|
730
730
|
"null"
|
|
731
731
|
]).optional(),
|
|
732
732
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
733
|
-
}),
|
|
733
|
+
}), ee = e.object({
|
|
734
734
|
name: e.literal("txt"),
|
|
735
735
|
record: e.string(),
|
|
736
736
|
domain: e.string()
|
|
737
|
-
}),
|
|
738
|
-
|
|
737
|
+
}), te = e.object({
|
|
738
|
+
...$.shape,
|
|
739
739
|
custom_domain_id: e.string(),
|
|
740
740
|
primary: e.boolean(),
|
|
741
741
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
742
742
|
origin_domain_name: e.string().optional(),
|
|
743
743
|
verification: e.object({
|
|
744
|
-
methods: e.array(
|
|
744
|
+
methods: e.array(ee)
|
|
745
745
|
}).optional(),
|
|
746
746
|
tls_policy: e.string().optional()
|
|
747
|
-
}),
|
|
747
|
+
}), tt = te.extend({
|
|
748
748
|
tenant_id: e.string()
|
|
749
|
-
}),
|
|
749
|
+
}), ot = e.object({
|
|
750
750
|
id: e.string(),
|
|
751
751
|
type: e.literal("submit"),
|
|
752
752
|
label: e.string(),
|
|
@@ -755,54 +755,66 @@ const q = e.enum([
|
|
|
755
755
|
order: e.number().optional(),
|
|
756
756
|
visible: e.boolean().optional().default(!0),
|
|
757
757
|
customizations: e.record(e.string(), e.any()).optional()
|
|
758
|
-
}),
|
|
759
|
-
e.
|
|
760
|
-
|
|
761
|
-
|
|
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({
|
|
762
770
|
type: e.literal("RICH_TEXT"),
|
|
763
771
|
config: e.object({
|
|
764
772
|
content: e.string()
|
|
765
|
-
})
|
|
766
|
-
order: e.number().optional(),
|
|
767
|
-
visible: e.boolean().optional().default(!0)
|
|
773
|
+
})
|
|
768
774
|
}),
|
|
769
|
-
|
|
770
|
-
id: e.string(),
|
|
771
|
-
category: e.literal("FIELD").optional(),
|
|
775
|
+
a.omit({ sensitive: !0 }).extend({
|
|
772
776
|
type: e.literal("LEGAL"),
|
|
773
777
|
config: e.object({
|
|
774
778
|
text: e.string(),
|
|
775
779
|
html: e.boolean().optional()
|
|
776
|
-
})
|
|
777
|
-
required: e.boolean().optional(),
|
|
778
|
-
order: e.number().optional(),
|
|
779
|
-
visible: e.boolean().optional().default(!0)
|
|
780
|
+
})
|
|
780
781
|
}),
|
|
781
|
-
|
|
782
|
-
id: e.string(),
|
|
783
|
-
category: e.literal("FIELD").optional(),
|
|
782
|
+
a.extend({
|
|
784
783
|
type: e.literal("TEXT"),
|
|
785
784
|
config: e.object({
|
|
786
785
|
placeholder: e.string().optional(),
|
|
787
786
|
multiline: e.boolean().optional()
|
|
788
|
-
})
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
order: e.number().optional(),
|
|
792
|
-
visible: e.boolean().optional().default(!0)
|
|
793
|
-
}),
|
|
794
|
-
e.object({
|
|
795
|
-
id: e.string(),
|
|
796
|
-
category: e.literal("BLOCK").optional(),
|
|
787
|
+
})
|
|
788
|
+
}),
|
|
789
|
+
c.extend({
|
|
797
790
|
type: e.literal("NEXT_BUTTON"),
|
|
798
791
|
config: e.object({
|
|
799
792
|
text: e.string().optional()
|
|
800
|
-
})
|
|
801
|
-
|
|
802
|
-
|
|
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
|
+
})
|
|
803
815
|
})
|
|
804
816
|
// Add more component types as needed
|
|
805
|
-
]),
|
|
817
|
+
]), ne = e.object({
|
|
806
818
|
name: e.string().openapi({
|
|
807
819
|
description: "The name of the form"
|
|
808
820
|
}),
|
|
@@ -853,7 +865,7 @@ const q = e.enum([
|
|
|
853
865
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
854
866
|
alias: e.string().min(1).max(150).optional(),
|
|
855
867
|
config: e.object({
|
|
856
|
-
components: e.array(
|
|
868
|
+
components: e.array(oe),
|
|
857
869
|
next_node: e.string().optional()
|
|
858
870
|
})
|
|
859
871
|
})
|
|
@@ -876,11 +888,11 @@ const q = e.enum([
|
|
|
876
888
|
style: e.object({ css: e.string().optional() }).optional()
|
|
877
889
|
}).openapi({
|
|
878
890
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
879
|
-
}),
|
|
891
|
+
}), nt = e.object({
|
|
880
892
|
...n.shape,
|
|
881
|
-
...
|
|
893
|
+
...ne.shape,
|
|
882
894
|
id: e.string()
|
|
883
|
-
}),
|
|
895
|
+
}), E = e.enum([
|
|
884
896
|
"pre-user-registration",
|
|
885
897
|
"post-user-registration",
|
|
886
898
|
"post-user-login",
|
|
@@ -888,49 +900,49 @@ const q = e.enum([
|
|
|
888
900
|
"pre-user-deletion",
|
|
889
901
|
"post-user-deletion"
|
|
890
902
|
// Potentially other triggers specific to webhooks in the future
|
|
891
|
-
]),
|
|
903
|
+
]), f = e.enum([
|
|
892
904
|
"pre-user-registration",
|
|
893
905
|
"post-user-registration",
|
|
894
906
|
"post-user-login",
|
|
895
907
|
"validate-registration-username",
|
|
896
908
|
"pre-user-deletion",
|
|
897
909
|
"post-user-deletion"
|
|
898
|
-
]),
|
|
910
|
+
]), _ = {
|
|
899
911
|
enabled: e.boolean().default(!1),
|
|
900
912
|
synchronous: e.boolean().default(!1),
|
|
901
913
|
priority: e.number().optional(),
|
|
902
914
|
hook_id: e.string().optional()
|
|
903
|
-
},
|
|
904
|
-
...
|
|
905
|
-
trigger_id:
|
|
915
|
+
}, ie = e.object({
|
|
916
|
+
..._,
|
|
917
|
+
trigger_id: E,
|
|
906
918
|
url: e.string()
|
|
907
|
-
}),
|
|
908
|
-
...
|
|
909
|
-
trigger_id:
|
|
919
|
+
}), ae = e.object({
|
|
920
|
+
..._,
|
|
921
|
+
trigger_id: f,
|
|
910
922
|
form_id: e.string()
|
|
911
|
-
}),
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
]),
|
|
915
|
-
...
|
|
916
|
-
trigger_id:
|
|
923
|
+
}), it = e.union([
|
|
924
|
+
ie,
|
|
925
|
+
ae
|
|
926
|
+
]), se = e.object({
|
|
927
|
+
..._,
|
|
928
|
+
trigger_id: E,
|
|
917
929
|
...n.shape,
|
|
918
930
|
hook_id: e.string(),
|
|
919
931
|
url: e.string()
|
|
920
|
-
}),
|
|
921
|
-
...
|
|
922
|
-
trigger_id:
|
|
932
|
+
}), re = e.object({
|
|
933
|
+
..._,
|
|
934
|
+
trigger_id: f,
|
|
923
935
|
...n.shape,
|
|
924
936
|
hook_id: e.string(),
|
|
925
937
|
form_id: e.string()
|
|
926
|
-
}),
|
|
938
|
+
}), at = e.union([se, re]), le = e.object({
|
|
927
939
|
name: e.string().optional()
|
|
928
|
-
}),
|
|
940
|
+
}), _e = e.object({
|
|
929
941
|
email: e.string().optional()
|
|
930
|
-
}),
|
|
942
|
+
}), ce = e.object({
|
|
931
943
|
organization_id: e.string().max(50),
|
|
932
|
-
inviter:
|
|
933
|
-
invitee:
|
|
944
|
+
inviter: le,
|
|
945
|
+
invitee: _e,
|
|
934
946
|
invitation_url: e.string().url(),
|
|
935
947
|
client_id: e.string(),
|
|
936
948
|
connection_id: e.string().optional(),
|
|
@@ -939,13 +951,13 @@ const q = e.enum([
|
|
|
939
951
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
940
952
|
roles: e.array(e.string()).default([]).optional(),
|
|
941
953
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
942
|
-
}),
|
|
954
|
+
}), st = e.object({
|
|
943
955
|
id: e.string(),
|
|
944
956
|
organization_id: e.string().max(50),
|
|
945
957
|
created_at: e.string().datetime(),
|
|
946
958
|
expires_at: e.string().datetime(),
|
|
947
959
|
ticket_id: e.string().optional()
|
|
948
|
-
}).extend(
|
|
960
|
+
}).extend(ce.shape), pe = e.object({
|
|
949
961
|
alg: e.enum([
|
|
950
962
|
"RS256",
|
|
951
963
|
"RS384",
|
|
@@ -964,9 +976,9 @@ const q = e.enum([
|
|
|
964
976
|
x5t: e.string().optional(),
|
|
965
977
|
x5c: e.array(e.string()).optional(),
|
|
966
978
|
use: e.enum(["sig", "enc"]).optional()
|
|
967
|
-
}),
|
|
968
|
-
keys: e.array(
|
|
969
|
-
}),
|
|
979
|
+
}), rt = e.object({
|
|
980
|
+
keys: e.array(pe)
|
|
981
|
+
}), lt = e.object({
|
|
970
982
|
issuer: e.string(),
|
|
971
983
|
authorization_endpoint: e.string(),
|
|
972
984
|
token_endpoint: e.string(),
|
|
@@ -987,10 +999,10 @@ const q = e.enum([
|
|
|
987
999
|
request_uri_parameter_supported: e.boolean(),
|
|
988
1000
|
request_parameter_supported: e.boolean(),
|
|
989
1001
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
990
|
-
}),
|
|
1002
|
+
}), de = e.object({
|
|
991
1003
|
csrf_token: e.string(),
|
|
992
1004
|
auth0Client: e.string().optional(),
|
|
993
|
-
authParams:
|
|
1005
|
+
authParams: W,
|
|
994
1006
|
expires_at: e.string(),
|
|
995
1007
|
deleted_at: e.string().optional(),
|
|
996
1008
|
ip: e.string().optional(),
|
|
@@ -1000,14 +1012,14 @@ const q = e.enum([
|
|
|
1000
1012
|
login_completed: e.boolean().optional().default(!1)
|
|
1001
1013
|
}).openapi({
|
|
1002
1014
|
description: "This represents a login sesion"
|
|
1003
|
-
}),
|
|
1004
|
-
...
|
|
1015
|
+
}), _t = e.object({
|
|
1016
|
+
...de.shape,
|
|
1005
1017
|
id: e.string().openapi({
|
|
1006
1018
|
description: "This is is used as the state in the universal login"
|
|
1007
1019
|
}),
|
|
1008
1020
|
created_at: e.string(),
|
|
1009
1021
|
updated_at: e.string()
|
|
1010
|
-
}),
|
|
1022
|
+
}), ge = {
|
|
1011
1023
|
// Network & System
|
|
1012
1024
|
ACLS_SUMMARY: "acls_summary",
|
|
1013
1025
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1174,24 +1186,24 @@ const q = e.enum([
|
|
|
1174
1186
|
WARNING_DURING_LOGIN: "w",
|
|
1175
1187
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1176
1188
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1177
|
-
},
|
|
1178
|
-
(t) => Object.values(
|
|
1189
|
+
}, ue = e.string().refine(
|
|
1190
|
+
(t) => Object.values(ge).includes(t),
|
|
1179
1191
|
{ message: "Invalid log type" }
|
|
1180
|
-
),
|
|
1192
|
+
), me = e.object({
|
|
1181
1193
|
name: e.string(),
|
|
1182
1194
|
version: e.string(),
|
|
1183
1195
|
env: e.object({
|
|
1184
1196
|
node: e.string().optional()
|
|
1185
1197
|
}).optional()
|
|
1186
|
-
}),
|
|
1198
|
+
}), he = e.object({
|
|
1187
1199
|
country_code: e.string().length(2),
|
|
1188
1200
|
city_name: e.string(),
|
|
1189
1201
|
latitude: e.string(),
|
|
1190
1202
|
longitude: e.string(),
|
|
1191
1203
|
time_zone: e.string(),
|
|
1192
1204
|
continent_code: e.string()
|
|
1193
|
-
}),
|
|
1194
|
-
type:
|
|
1205
|
+
}), be = e.object({
|
|
1206
|
+
type: ue,
|
|
1195
1207
|
date: e.string(),
|
|
1196
1208
|
description: e.string().optional(),
|
|
1197
1209
|
ip: e.string().optional(),
|
|
@@ -1210,30 +1222,30 @@ const q = e.enum([
|
|
|
1210
1222
|
strategy: e.string().optional(),
|
|
1211
1223
|
strategy_type: e.string().optional(),
|
|
1212
1224
|
hostname: e.string().optional(),
|
|
1213
|
-
auth0_client:
|
|
1225
|
+
auth0_client: me.optional(),
|
|
1214
1226
|
log_id: e.string().optional(),
|
|
1215
|
-
location_info:
|
|
1216
|
-
}),
|
|
1217
|
-
...
|
|
1227
|
+
location_info: he.optional()
|
|
1228
|
+
}), ct = e.object({
|
|
1229
|
+
...be.shape,
|
|
1218
1230
|
log_id: e.string()
|
|
1219
|
-
}),
|
|
1231
|
+
}), Ee = e.object({
|
|
1220
1232
|
id: e.string().optional(),
|
|
1221
1233
|
user_id: e.string(),
|
|
1222
1234
|
password: e.string(),
|
|
1223
1235
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1224
1236
|
is_current: e.boolean().default(!0)
|
|
1225
|
-
}),
|
|
1237
|
+
}), pt = Ee.extend({
|
|
1226
1238
|
id: e.string(),
|
|
1227
1239
|
created_at: e.string(),
|
|
1228
1240
|
updated_at: e.string()
|
|
1229
|
-
}),
|
|
1241
|
+
}), S = e.object({
|
|
1230
1242
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1231
1243
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1232
1244
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1233
1245
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1234
1246
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1235
1247
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1236
|
-
}),
|
|
1248
|
+
}), fe = e.object({
|
|
1237
1249
|
id: e.string(),
|
|
1238
1250
|
revoked_at: e.string().optional(),
|
|
1239
1251
|
used_at: e.string().optional(),
|
|
@@ -1241,17 +1253,17 @@ const q = e.enum([
|
|
|
1241
1253
|
expires_at: e.string().optional(),
|
|
1242
1254
|
login_session_id: e.string(),
|
|
1243
1255
|
idle_expires_at: e.string().optional(),
|
|
1244
|
-
device:
|
|
1256
|
+
device: S.describe(
|
|
1245
1257
|
"Metadata related to the device used in the session"
|
|
1246
1258
|
),
|
|
1247
1259
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1248
|
-
}),
|
|
1260
|
+
}), dt = e.object({
|
|
1249
1261
|
created_at: e.string(),
|
|
1250
1262
|
updated_at: e.string(),
|
|
1251
1263
|
authenticated_at: e.string(),
|
|
1252
1264
|
last_interaction_at: e.string(),
|
|
1253
|
-
...
|
|
1254
|
-
}),
|
|
1265
|
+
...fe.shape
|
|
1266
|
+
}), gt = e.object({
|
|
1255
1267
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1256
1268
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1257
1269
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1277,8 +1289,8 @@ const q = e.enum([
|
|
|
1277
1289
|
description: "The type of the signing key"
|
|
1278
1290
|
})
|
|
1279
1291
|
});
|
|
1280
|
-
var
|
|
1281
|
-
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({
|
|
1282
1294
|
access_token: e.string(),
|
|
1283
1295
|
id_token: e.string().optional(),
|
|
1284
1296
|
scope: e.string().optional(),
|
|
@@ -1291,7 +1303,7 @@ e.object({
|
|
|
1291
1303
|
code: e.string(),
|
|
1292
1304
|
state: e.string().optional()
|
|
1293
1305
|
});
|
|
1294
|
-
const
|
|
1306
|
+
const Ae = e.object({
|
|
1295
1307
|
button_border_radius: e.number(),
|
|
1296
1308
|
button_border_weight: e.number(),
|
|
1297
1309
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1301,7 +1313,7 @@ const Ee = e.object({
|
|
|
1301
1313
|
show_widget_shadow: e.boolean(),
|
|
1302
1314
|
widget_border_weight: e.number(),
|
|
1303
1315
|
widget_corner_radius: e.number()
|
|
1304
|
-
}),
|
|
1316
|
+
}), Ie = e.object({
|
|
1305
1317
|
base_focus_color: e.string(),
|
|
1306
1318
|
base_hover_color: e.string(),
|
|
1307
1319
|
body_text: e.string(),
|
|
@@ -1324,7 +1336,7 @@ const Ee = e.object({
|
|
|
1324
1336
|
}), o = e.object({
|
|
1325
1337
|
bold: e.boolean(),
|
|
1326
1338
|
size: e.number()
|
|
1327
|
-
}),
|
|
1339
|
+
}), Ce = e.object({
|
|
1328
1340
|
body_text: o,
|
|
1329
1341
|
buttons_text: o,
|
|
1330
1342
|
font_url: e.string(),
|
|
@@ -1334,31 +1346,31 @@ const Ee = e.object({
|
|
|
1334
1346
|
reference_text_size: e.number(),
|
|
1335
1347
|
subtitle: o,
|
|
1336
1348
|
title: o
|
|
1337
|
-
}),
|
|
1349
|
+
}), Oe = e.object({
|
|
1338
1350
|
background_color: e.string(),
|
|
1339
1351
|
background_image_url: e.string(),
|
|
1340
1352
|
page_layout: e.enum(["center", "left", "right"])
|
|
1341
|
-
}),
|
|
1353
|
+
}), Te = e.object({
|
|
1342
1354
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1343
1355
|
logo_height: e.number(),
|
|
1344
1356
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1345
1357
|
logo_url: e.string(),
|
|
1346
1358
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1347
|
-
}),
|
|
1348
|
-
borders:
|
|
1349
|
-
colors:
|
|
1359
|
+
}), ye = e.object({
|
|
1360
|
+
borders: Ae,
|
|
1361
|
+
colors: Ie,
|
|
1350
1362
|
displayName: e.string(),
|
|
1351
|
-
fonts:
|
|
1352
|
-
page_background:
|
|
1353
|
-
widget:
|
|
1354
|
-
}),
|
|
1363
|
+
fonts: Ce,
|
|
1364
|
+
page_background: Oe,
|
|
1365
|
+
widget: Te
|
|
1366
|
+
}), mt = ye.extend({
|
|
1355
1367
|
themeId: e.string()
|
|
1356
|
-
}),
|
|
1368
|
+
}), ht = e.object({
|
|
1357
1369
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1358
1370
|
identifier_first: e.boolean().default(!0),
|
|
1359
1371
|
password_first: e.boolean().default(!1),
|
|
1360
1372
|
webauthn_platform_first_factor: e.boolean()
|
|
1361
|
-
}),
|
|
1373
|
+
}), bt = e.object({
|
|
1362
1374
|
name: e.string(),
|
|
1363
1375
|
enabled: e.boolean().optional().default(!0),
|
|
1364
1376
|
default_from_address: e.string().optional(),
|
|
@@ -1388,7 +1400,7 @@ const Ee = e.object({
|
|
|
1388
1400
|
})
|
|
1389
1401
|
]),
|
|
1390
1402
|
settings: e.object({}).optional()
|
|
1391
|
-
}),
|
|
1403
|
+
}), Ne = e.object({
|
|
1392
1404
|
// The actual refresh token value (primary key).
|
|
1393
1405
|
id: e.string(),
|
|
1394
1406
|
// Link to the session record
|
|
@@ -1401,7 +1413,7 @@ const Ee = e.object({
|
|
|
1401
1413
|
idle_expires_at: e.string().optional(),
|
|
1402
1414
|
// When the token was last used.
|
|
1403
1415
|
last_exchanged_at: e.string().optional(),
|
|
1404
|
-
device:
|
|
1416
|
+
device: S,
|
|
1405
1417
|
resource_servers: e.array(
|
|
1406
1418
|
e.object({
|
|
1407
1419
|
audience: e.string(),
|
|
@@ -1409,21 +1421,21 @@ const Ee = e.object({
|
|
|
1409
1421
|
})
|
|
1410
1422
|
),
|
|
1411
1423
|
rotating: e.boolean()
|
|
1412
|
-
}),
|
|
1424
|
+
}), Et = e.object({
|
|
1413
1425
|
// When the refresh token record was created.
|
|
1414
1426
|
created_at: e.string(),
|
|
1415
1427
|
// Spread in the rest of the refresh token properties.
|
|
1416
|
-
...
|
|
1417
|
-
}),
|
|
1428
|
+
...Ne.shape
|
|
1429
|
+
}), ft = e.object({
|
|
1418
1430
|
to: e.string(),
|
|
1419
1431
|
message: e.string()
|
|
1420
|
-
}),
|
|
1432
|
+
}), St = e.object({
|
|
1421
1433
|
name: e.string(),
|
|
1422
1434
|
options: e.object({})
|
|
1423
|
-
}),
|
|
1435
|
+
}), Le = e.object({
|
|
1424
1436
|
value: e.string(),
|
|
1425
1437
|
description: e.string().optional()
|
|
1426
|
-
}),
|
|
1438
|
+
}), Re = e.object({
|
|
1427
1439
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1428
1440
|
enforce_policies: e.boolean().optional(),
|
|
1429
1441
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1433,10 +1445,10 @@ const Ee = e.object({
|
|
|
1433
1445
|
mtls: e.object({
|
|
1434
1446
|
bound_access_tokens: e.boolean().optional()
|
|
1435
1447
|
}).optional()
|
|
1436
|
-
}),
|
|
1448
|
+
}), De = e.object({
|
|
1437
1449
|
name: e.string(),
|
|
1438
1450
|
identifier: e.string(),
|
|
1439
|
-
scopes: e.array(
|
|
1451
|
+
scopes: e.array(Le).optional(),
|
|
1440
1452
|
signing_alg: e.string().optional(),
|
|
1441
1453
|
signing_secret: e.string().optional(),
|
|
1442
1454
|
token_lifetime: e.number().optional(),
|
|
@@ -1444,29 +1456,29 @@ const Ee = e.object({
|
|
|
1444
1456
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1445
1457
|
allow_offline_access: e.boolean().optional(),
|
|
1446
1458
|
verificationKey: e.string().optional(),
|
|
1447
|
-
options:
|
|
1448
|
-
}),
|
|
1459
|
+
options: Re.optional()
|
|
1460
|
+
}), we = e.object({
|
|
1449
1461
|
id: e.string().optional(),
|
|
1450
|
-
...
|
|
1462
|
+
...De.shape,
|
|
1451
1463
|
created_at: e.string().optional(),
|
|
1452
1464
|
updated_at: e.string().optional()
|
|
1453
|
-
}),
|
|
1465
|
+
}), At = e.array(we), je = e.object({
|
|
1454
1466
|
role_id: e.string(),
|
|
1455
1467
|
resource_server_identifier: e.string(),
|
|
1456
1468
|
permission_name: e.string()
|
|
1457
|
-
}),
|
|
1458
|
-
...
|
|
1469
|
+
}), ke = e.object({
|
|
1470
|
+
...je.shape,
|
|
1459
1471
|
created_at: e.string()
|
|
1460
|
-
}),
|
|
1472
|
+
}), It = e.array(ke), Ue = e.object({
|
|
1461
1473
|
user_id: e.string(),
|
|
1462
1474
|
resource_server_identifier: e.string(),
|
|
1463
1475
|
permission_name: e.string(),
|
|
1464
1476
|
organization_id: e.string().optional()
|
|
1465
|
-
}),
|
|
1466
|
-
...
|
|
1477
|
+
}), Fe = e.object({
|
|
1478
|
+
...Ue.shape,
|
|
1467
1479
|
tenant_id: e.string(),
|
|
1468
1480
|
created_at: e.string().optional()
|
|
1469
|
-
}),
|
|
1481
|
+
}), Ct = e.array(Fe), ve = e.object({
|
|
1470
1482
|
user_id: e.string(),
|
|
1471
1483
|
resource_server_identifier: e.string(),
|
|
1472
1484
|
resource_server_name: e.string(),
|
|
@@ -1474,31 +1486,31 @@ const Ee = e.object({
|
|
|
1474
1486
|
description: e.string().nullable().optional(),
|
|
1475
1487
|
created_at: e.string().optional(),
|
|
1476
1488
|
organization_id: e.string().optional()
|
|
1477
|
-
}),
|
|
1478
|
-
|
|
1479
|
-
),
|
|
1489
|
+
}), Ot = e.array(
|
|
1490
|
+
ve
|
|
1491
|
+
), Pe = e.object({
|
|
1480
1492
|
user_id: e.string(),
|
|
1481
1493
|
role_id: e.string(),
|
|
1482
1494
|
organization_id: e.string().optional()
|
|
1483
|
-
}),
|
|
1484
|
-
...
|
|
1495
|
+
}), xe = e.object({
|
|
1496
|
+
...Pe.shape,
|
|
1485
1497
|
tenant_id: e.string(),
|
|
1486
1498
|
created_at: e.string().optional()
|
|
1487
|
-
}),
|
|
1499
|
+
}), Tt = e.array(xe), Me = e.object({
|
|
1488
1500
|
name: e.string().min(1).max(50).openapi({
|
|
1489
1501
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1490
1502
|
}),
|
|
1491
1503
|
description: e.string().max(255).optional().openapi({
|
|
1492
1504
|
description: "The description of the role"
|
|
1493
1505
|
})
|
|
1494
|
-
}),
|
|
1506
|
+
}), He = e.object({
|
|
1495
1507
|
id: e.string().openapi({
|
|
1496
1508
|
description: "The unique identifier of the role"
|
|
1497
1509
|
}),
|
|
1498
|
-
...
|
|
1510
|
+
...Me.shape,
|
|
1499
1511
|
created_at: e.string().optional(),
|
|
1500
1512
|
updated_at: e.string().optional()
|
|
1501
|
-
}),
|
|
1513
|
+
}), yt = e.array(He), Ge = e.object({
|
|
1502
1514
|
logo_url: e.string().optional().openapi({
|
|
1503
1515
|
description: "URL of the organization's logo"
|
|
1504
1516
|
}),
|
|
@@ -1510,7 +1522,7 @@ const Ee = e.object({
|
|
|
1510
1522
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1511
1523
|
})
|
|
1512
1524
|
}).optional()
|
|
1513
|
-
}).optional(),
|
|
1525
|
+
}).optional(), Ke = e.object({
|
|
1514
1526
|
connection_id: e.string().openapi({
|
|
1515
1527
|
description: "ID of the connection"
|
|
1516
1528
|
}),
|
|
@@ -1523,7 +1535,7 @@ const Ee = e.object({
|
|
|
1523
1535
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1524
1536
|
description: "Whether signup is enabled for this connection"
|
|
1525
1537
|
})
|
|
1526
|
-
}),
|
|
1538
|
+
}), Be = e.object({
|
|
1527
1539
|
client_credentials: e.object({
|
|
1528
1540
|
enforce: e.boolean().default(!1).openapi({
|
|
1529
1541
|
description: "Whether to enforce token quota limits"
|
|
@@ -1535,7 +1547,7 @@ const Ee = e.object({
|
|
|
1535
1547
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1536
1548
|
})
|
|
1537
1549
|
}).optional()
|
|
1538
|
-
}).optional(),
|
|
1550
|
+
}).optional(), ze = e.object({
|
|
1539
1551
|
id: e.string().optional(),
|
|
1540
1552
|
name: e.string().min(1).openapi({
|
|
1541
1553
|
description: "The name of the organization"
|
|
@@ -1543,30 +1555,30 @@ const Ee = e.object({
|
|
|
1543
1555
|
display_name: e.string().optional().openapi({
|
|
1544
1556
|
description: "The display name of the organization"
|
|
1545
1557
|
}),
|
|
1546
|
-
branding:
|
|
1558
|
+
branding: Ge,
|
|
1547
1559
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1548
1560
|
description: "Custom metadata for the organization"
|
|
1549
1561
|
}),
|
|
1550
|
-
enabled_connections: e.array(
|
|
1562
|
+
enabled_connections: e.array(Ke).default([]).optional().openapi({
|
|
1551
1563
|
description: "List of enabled connections for the organization"
|
|
1552
1564
|
}),
|
|
1553
|
-
token_quota:
|
|
1554
|
-
}),
|
|
1555
|
-
...
|
|
1565
|
+
token_quota: Be
|
|
1566
|
+
}), Nt = e.object({
|
|
1567
|
+
...ze.shape,
|
|
1556
1568
|
...n.shape,
|
|
1557
1569
|
id: e.string()
|
|
1558
|
-
}),
|
|
1570
|
+
}), We = e.object({
|
|
1559
1571
|
user_id: e.string().openapi({
|
|
1560
1572
|
description: "ID of the user"
|
|
1561
1573
|
}),
|
|
1562
1574
|
organization_id: e.string().openapi({
|
|
1563
1575
|
description: "ID of the organization"
|
|
1564
1576
|
})
|
|
1565
|
-
}),
|
|
1566
|
-
...
|
|
1577
|
+
}), Lt = e.object({
|
|
1578
|
+
...We.shape,
|
|
1567
1579
|
...n.shape,
|
|
1568
1580
|
id: e.string()
|
|
1569
|
-
}),
|
|
1581
|
+
}), Rt = e.object({
|
|
1570
1582
|
// Session settings
|
|
1571
1583
|
idle_session_lifetime: e.number().optional(),
|
|
1572
1584
|
session_lifetime: e.number().optional(),
|
|
@@ -1636,129 +1648,129 @@ const Ee = e.object({
|
|
|
1636
1648
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1637
1649
|
}).optional()
|
|
1638
1650
|
});
|
|
1639
|
-
function
|
|
1640
|
-
const [i,
|
|
1641
|
-
if (!i || !
|
|
1651
|
+
function Dt(t) {
|
|
1652
|
+
const [i, r] = t.split("|");
|
|
1653
|
+
if (!i || !r)
|
|
1642
1654
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1643
|
-
return { connection: i, id:
|
|
1655
|
+
return { connection: i, id: r };
|
|
1644
1656
|
}
|
|
1645
1657
|
export {
|
|
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
|
-
|
|
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,
|
|
1686
1698
|
o as fontDetailsSchema,
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
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
|
|
1764
1776
|
};
|