@authhero/adapter-interfaces 0.112.0 → 0.114.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 +18966 -1749
- package/dist/adapter-interfaces.mjs +711 -505
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const s = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), Zt = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), $t = e.enum([
|
|
6
6
|
"CREATE_USER",
|
|
7
7
|
"GET_USER",
|
|
8
8
|
"UPDATE_USER",
|
|
9
9
|
"SEND_REQUEST",
|
|
10
10
|
"SEND_EMAIL"
|
|
11
|
-
]),
|
|
11
|
+
]), eo = e.enum(["VERIFY_EMAIL"]), x = e.object({
|
|
12
12
|
require_mx_record: e.boolean().optional(),
|
|
13
13
|
block_aliases: e.boolean().optional(),
|
|
14
14
|
block_free_emails: e.boolean().optional(),
|
|
15
15
|
block_disposable_emails: e.boolean().optional(),
|
|
16
16
|
blocklist: e.array(e.string()).optional(),
|
|
17
17
|
allowlist: e.array(e.string()).optional()
|
|
18
|
-
}),
|
|
18
|
+
}), P = e.object({
|
|
19
19
|
id: e.string(),
|
|
20
20
|
alias: e.string().max(100).optional(),
|
|
21
21
|
type: e.literal("AUTH0"),
|
|
@@ -27,7 +27,7 @@ const i = e.object({
|
|
|
27
27
|
user_id: e.string(),
|
|
28
28
|
changes: e.record(e.string(), e.any())
|
|
29
29
|
})
|
|
30
|
-
}),
|
|
30
|
+
}), M = e.object({
|
|
31
31
|
id: e.string(),
|
|
32
32
|
alias: e.string().max(100).optional(),
|
|
33
33
|
type: e.literal("EMAIL"),
|
|
@@ -36,9 +36,9 @@ const i = e.object({
|
|
|
36
36
|
mask_output: e.boolean().optional(),
|
|
37
37
|
params: e.object({
|
|
38
38
|
email: e.string(),
|
|
39
|
-
rules:
|
|
39
|
+
rules: x.optional()
|
|
40
40
|
})
|
|
41
|
-
}),
|
|
41
|
+
}), H = e.enum(["change-email", "account", "custom"]), G = e.object({
|
|
42
42
|
id: e.string(),
|
|
43
43
|
alias: e.string().max(100).optional(),
|
|
44
44
|
type: e.literal("REDIRECT"),
|
|
@@ -46,32 +46,32 @@ const i = e.object({
|
|
|
46
46
|
allow_failure: e.boolean().optional(),
|
|
47
47
|
mask_output: e.boolean().optional(),
|
|
48
48
|
params: e.object({
|
|
49
|
-
target:
|
|
49
|
+
target: H.openapi({
|
|
50
50
|
description: "The predefined target to redirect to, or 'custom' for a custom URL"
|
|
51
51
|
}),
|
|
52
52
|
custom_url: e.string().optional().openapi({
|
|
53
53
|
description: "Custom URL to redirect to when target is 'custom'"
|
|
54
54
|
})
|
|
55
55
|
})
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]),
|
|
56
|
+
}), B = e.union([
|
|
57
|
+
P,
|
|
58
|
+
M,
|
|
59
|
+
G
|
|
60
|
+
]), K = e.object({
|
|
61
61
|
name: e.string().min(1).max(150).openapi({
|
|
62
62
|
description: "The name of the flow"
|
|
63
63
|
}),
|
|
64
64
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
65
|
-
actions: e.array(
|
|
65
|
+
actions: e.array(B).optional().default([]).openapi({
|
|
66
66
|
description: "The list of actions to execute in sequence"
|
|
67
67
|
})
|
|
68
|
-
}),
|
|
69
|
-
...
|
|
68
|
+
}), to = K.extend({
|
|
69
|
+
...s.shape,
|
|
70
70
|
id: e.string().openapi({
|
|
71
71
|
description: "Unique identifier for the flow",
|
|
72
72
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
73
73
|
})
|
|
74
|
-
}),
|
|
74
|
+
}), oo = e.object({
|
|
75
75
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
76
76
|
description: "The page number where 0 is the first page"
|
|
77
77
|
}),
|
|
@@ -87,11 +87,11 @@ const i = e.object({
|
|
|
87
87
|
q: e.string().optional().openapi({
|
|
88
88
|
description: "A lucene query string used to filter the results"
|
|
89
89
|
})
|
|
90
|
-
}),
|
|
90
|
+
}), no = e.object({
|
|
91
91
|
start: e.number(),
|
|
92
92
|
limit: e.number(),
|
|
93
93
|
length: e.number()
|
|
94
|
-
}),
|
|
94
|
+
}), W = e.object({
|
|
95
95
|
email: e.string().optional(),
|
|
96
96
|
email_verified: e.boolean().optional(),
|
|
97
97
|
name: e.string().optional(),
|
|
@@ -100,7 +100,7 @@ const i = e.object({
|
|
|
100
100
|
phone_number: e.string().optional(),
|
|
101
101
|
phone_verified: e.boolean().optional(),
|
|
102
102
|
family_name: e.string().optional()
|
|
103
|
-
}).catchall(e.any()),
|
|
103
|
+
}).catchall(e.any()), z = e.object({
|
|
104
104
|
connection: e.string(),
|
|
105
105
|
user_id: e.string(),
|
|
106
106
|
provider: e.string(),
|
|
@@ -108,8 +108,8 @@ const i = e.object({
|
|
|
108
108
|
access_token: e.string().optional(),
|
|
109
109
|
access_token_secret: e.string().optional(),
|
|
110
110
|
refresh_token: e.string().optional(),
|
|
111
|
-
profileData:
|
|
112
|
-
}),
|
|
111
|
+
profileData: W.optional()
|
|
112
|
+
}), C = e.object({
|
|
113
113
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
114
114
|
username: e.string().optional(),
|
|
115
115
|
phone_number: e.string().optional(),
|
|
@@ -124,7 +124,7 @@ const i = e.object({
|
|
|
124
124
|
user_id: e.string().optional(),
|
|
125
125
|
app_metadata: e.any().default({}).optional(),
|
|
126
126
|
user_metadata: e.any().default({}).optional()
|
|
127
|
-
}),
|
|
127
|
+
}), X = C.extend({
|
|
128
128
|
email_verified: e.boolean().default(!1),
|
|
129
129
|
verify_email: e.boolean().optional(),
|
|
130
130
|
last_ip: e.string().optional(),
|
|
@@ -133,29 +133,29 @@ const i = e.object({
|
|
|
133
133
|
provider: e.string().optional(),
|
|
134
134
|
connection: e.string(),
|
|
135
135
|
is_social: e.boolean().optional()
|
|
136
|
-
}),
|
|
137
|
-
...
|
|
138
|
-
...
|
|
136
|
+
}), V = e.object({
|
|
137
|
+
...X.shape,
|
|
138
|
+
...s.shape,
|
|
139
139
|
user_id: e.string(),
|
|
140
140
|
provider: e.string(),
|
|
141
141
|
is_social: e.boolean(),
|
|
142
142
|
email: e.string().optional(),
|
|
143
143
|
login_count: e.number().default(0),
|
|
144
|
-
identities: e.array(
|
|
145
|
-
}),
|
|
144
|
+
identities: e.array(z).optional()
|
|
145
|
+
}), io = V, ao = C.extend({
|
|
146
146
|
login_count: e.number(),
|
|
147
147
|
multifactor: e.array(e.string()).optional(),
|
|
148
148
|
last_ip: e.string().optional(),
|
|
149
149
|
last_login: e.string().optional(),
|
|
150
150
|
user_id: e.string()
|
|
151
|
-
}).catchall(e.any()),
|
|
152
|
-
let
|
|
153
|
-
let
|
|
151
|
+
}).catchall(e.any()), q = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
152
|
+
let Y = (t = 21) => {
|
|
153
|
+
let a = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
154
154
|
for (; t--; )
|
|
155
|
-
|
|
156
|
-
return
|
|
155
|
+
a += q[r[t] & 63];
|
|
156
|
+
return a;
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const Q = e.object({
|
|
159
159
|
client_id: e.string().openapi({
|
|
160
160
|
description: "ID of this client."
|
|
161
161
|
}),
|
|
@@ -168,7 +168,7 @@ const V = e.object({
|
|
|
168
168
|
global: e.boolean().default(!1).openapi({
|
|
169
169
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
170
170
|
}),
|
|
171
|
-
client_secret: e.string().default(() =>
|
|
171
|
+
client_secret: e.string().default(() => Y()).optional().openapi({
|
|
172
172
|
description: "Client secret (which you must not make public)."
|
|
173
173
|
}),
|
|
174
174
|
app_type: e.enum([
|
|
@@ -325,11 +325,11 @@ const V = e.object({
|
|
|
325
325
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
326
326
|
}),
|
|
327
327
|
token_quota: e.record(e.any()).default({}).optional()
|
|
328
|
-
}),
|
|
328
|
+
}), J = e.object({
|
|
329
329
|
created_at: e.string(),
|
|
330
330
|
updated_at: e.string(),
|
|
331
|
-
...
|
|
332
|
-
}),
|
|
331
|
+
...Q.shape
|
|
332
|
+
}), Z = e.object({
|
|
333
333
|
client_id: e.string().min(1).openapi({
|
|
334
334
|
description: "ID of the client."
|
|
335
335
|
}),
|
|
@@ -354,23 +354,23 @@ const V = e.object({
|
|
|
354
354
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
355
355
|
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."
|
|
356
356
|
})
|
|
357
|
-
}),
|
|
357
|
+
}), $ = e.object({
|
|
358
358
|
id: e.string().openapi({
|
|
359
359
|
description: "ID of the client grant."
|
|
360
360
|
}),
|
|
361
|
-
...
|
|
361
|
+
...Z.shape,
|
|
362
362
|
created_at: e.string().optional(),
|
|
363
363
|
updated_at: e.string().optional()
|
|
364
|
-
}),
|
|
364
|
+
}), so = e.array($), c = e.object({
|
|
365
365
|
x: e.number(),
|
|
366
366
|
y: e.number()
|
|
367
367
|
});
|
|
368
|
-
var
|
|
369
|
-
const
|
|
368
|
+
var I = /* @__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))(I || {}), y = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(y || {});
|
|
369
|
+
const u = e.object({
|
|
370
370
|
id: e.string(),
|
|
371
|
-
category: e.nativeEnum(
|
|
372
|
-
type: e.nativeEnum(
|
|
373
|
-
}),
|
|
371
|
+
category: e.nativeEnum(y),
|
|
372
|
+
type: e.nativeEnum(I)
|
|
373
|
+
}), ee = u.extend({
|
|
374
374
|
category: e.literal(
|
|
375
375
|
"BLOCK"
|
|
376
376
|
/* BLOCK */
|
|
@@ -382,7 +382,7 @@ const d = e.object({
|
|
|
382
382
|
config: e.object({
|
|
383
383
|
content: e.string()
|
|
384
384
|
}).passthrough()
|
|
385
|
-
}),
|
|
385
|
+
}), te = u.extend({
|
|
386
386
|
category: e.literal(
|
|
387
387
|
"BLOCK"
|
|
388
388
|
/* BLOCK */
|
|
@@ -404,7 +404,7 @@ const d = e.object({
|
|
|
404
404
|
config: e.object({
|
|
405
405
|
text: e.string()
|
|
406
406
|
}).passthrough()
|
|
407
|
-
}),
|
|
407
|
+
}), oe = u.extend({
|
|
408
408
|
category: e.literal(
|
|
409
409
|
"FIELD"
|
|
410
410
|
/* FIELD */
|
|
@@ -418,7 +418,7 @@ const d = e.object({
|
|
|
418
418
|
config: e.object({
|
|
419
419
|
text: e.string()
|
|
420
420
|
}).passthrough()
|
|
421
|
-
}),
|
|
421
|
+
}), ne = u.extend({
|
|
422
422
|
category: e.literal(
|
|
423
423
|
"FIELD"
|
|
424
424
|
/* FIELD */
|
|
@@ -471,49 +471,49 @@ const d = e.object({
|
|
|
471
471
|
label: e.string().optional(),
|
|
472
472
|
placeholder: e.string().optional()
|
|
473
473
|
}).passthrough()
|
|
474
|
-
}),
|
|
474
|
+
}), ie = e.object({
|
|
475
475
|
id: e.string(),
|
|
476
476
|
category: e.string(),
|
|
477
477
|
type: e.string()
|
|
478
|
-
}).passthrough(),
|
|
479
|
-
J,
|
|
480
|
-
Z,
|
|
481
|
-
$,
|
|
478
|
+
}).passthrough(), ae = e.union([
|
|
482
479
|
ee,
|
|
483
|
-
te
|
|
480
|
+
te,
|
|
481
|
+
oe,
|
|
482
|
+
ne,
|
|
483
|
+
ie
|
|
484
484
|
]);
|
|
485
|
-
var
|
|
486
|
-
const
|
|
485
|
+
var se = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(se || {});
|
|
486
|
+
const re = e.object({
|
|
487
487
|
id: e.string(),
|
|
488
488
|
type: e.literal(
|
|
489
489
|
"STEP"
|
|
490
490
|
/* STEP */
|
|
491
491
|
),
|
|
492
|
-
coordinates:
|
|
492
|
+
coordinates: c,
|
|
493
493
|
alias: e.string().optional(),
|
|
494
494
|
config: e.object({
|
|
495
|
-
components: e.array(
|
|
495
|
+
components: e.array(ae),
|
|
496
496
|
next_node: e.string()
|
|
497
497
|
}).passthrough()
|
|
498
|
-
}),
|
|
498
|
+
}), le = e.object({
|
|
499
499
|
id: e.string(),
|
|
500
500
|
type: e.literal(
|
|
501
501
|
"FLOW"
|
|
502
502
|
/* FLOW */
|
|
503
503
|
),
|
|
504
|
-
coordinates:
|
|
504
|
+
coordinates: c,
|
|
505
505
|
alias: e.string().optional(),
|
|
506
506
|
config: e.object({
|
|
507
507
|
flow_id: e.string(),
|
|
508
508
|
next_node: e.string()
|
|
509
509
|
})
|
|
510
|
-
}),
|
|
510
|
+
}), ce = e.object({
|
|
511
511
|
id: e.string(),
|
|
512
512
|
type: e.literal(
|
|
513
513
|
"ACTION"
|
|
514
514
|
/* ACTION */
|
|
515
515
|
),
|
|
516
|
-
coordinates:
|
|
516
|
+
coordinates: c,
|
|
517
517
|
alias: e.string().optional(),
|
|
518
518
|
config: e.object({
|
|
519
519
|
action_type: e.enum(["REDIRECT"]).openapi({
|
|
@@ -529,47 +529,47 @@ const ie = e.object({
|
|
|
529
529
|
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
530
530
|
})
|
|
531
531
|
}).passthrough()
|
|
532
|
-
}),
|
|
532
|
+
}), pe = e.object({
|
|
533
533
|
id: e.string(),
|
|
534
534
|
type: e.string(),
|
|
535
|
-
coordinates:
|
|
536
|
-
}).passthrough(),
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
]),
|
|
535
|
+
coordinates: c
|
|
536
|
+
}).passthrough(), _e = e.union([
|
|
537
|
+
re,
|
|
538
|
+
le,
|
|
539
|
+
ce,
|
|
540
|
+
pe
|
|
541
|
+
]), de = e.object({
|
|
542
542
|
next_node: e.string(),
|
|
543
|
-
coordinates:
|
|
544
|
-
}).passthrough(),
|
|
543
|
+
coordinates: c
|
|
544
|
+
}).passthrough(), ge = e.object({
|
|
545
545
|
resume_flow: e.boolean().optional(),
|
|
546
|
-
coordinates:
|
|
547
|
-
}).passthrough(),
|
|
546
|
+
coordinates: c
|
|
547
|
+
}).passthrough(), ue = e.object({
|
|
548
548
|
id: e.string(),
|
|
549
549
|
name: e.string(),
|
|
550
550
|
languages: e.object({
|
|
551
551
|
primary: e.string()
|
|
552
552
|
}).passthrough(),
|
|
553
|
-
nodes: e.array(
|
|
554
|
-
start:
|
|
555
|
-
ending:
|
|
553
|
+
nodes: e.array(_e),
|
|
554
|
+
start: de,
|
|
555
|
+
ending: ge,
|
|
556
556
|
created_at: e.string(),
|
|
557
557
|
updated_at: e.string(),
|
|
558
558
|
links: e.object({
|
|
559
559
|
sdkSrc: e.string().optional(),
|
|
560
560
|
sdk_src: e.string().optional()
|
|
561
561
|
}).passthrough()
|
|
562
|
-
}).passthrough(),
|
|
562
|
+
}).passthrough(), ro = ue.omit({
|
|
563
563
|
id: !0,
|
|
564
564
|
created_at: !0,
|
|
565
565
|
updated_at: !0
|
|
566
566
|
});
|
|
567
|
-
var
|
|
568
|
-
const
|
|
567
|
+
var O = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(O || {}), T = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(T || {}), N = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(N || {});
|
|
568
|
+
const me = e.object({
|
|
569
569
|
client_id: e.string(),
|
|
570
570
|
act_as: e.string().optional(),
|
|
571
|
-
response_type: e.nativeEnum(
|
|
572
|
-
response_mode: e.nativeEnum(
|
|
571
|
+
response_type: e.nativeEnum(O).optional(),
|
|
572
|
+
response_mode: e.nativeEnum(T).optional(),
|
|
573
573
|
redirect_uri: e.string().optional(),
|
|
574
574
|
audience: e.string().optional(),
|
|
575
575
|
organization: e.string().optional(),
|
|
@@ -577,13 +577,13 @@ const de = e.object({
|
|
|
577
577
|
nonce: e.string().optional(),
|
|
578
578
|
scope: e.string().optional(),
|
|
579
579
|
prompt: e.string().optional(),
|
|
580
|
-
code_challenge_method: e.nativeEnum(
|
|
580
|
+
code_challenge_method: e.nativeEnum(N).optional(),
|
|
581
581
|
code_challenge: e.string().optional(),
|
|
582
582
|
username: e.string().optional(),
|
|
583
583
|
ui_locales: e.string().optional(),
|
|
584
584
|
// The following fields are not available in Auth0
|
|
585
585
|
vendor_id: e.string().optional()
|
|
586
|
-
}),
|
|
586
|
+
}), lo = e.object({
|
|
587
587
|
colors: e.object({
|
|
588
588
|
primary: e.string(),
|
|
589
589
|
page_background: e.object({
|
|
@@ -599,7 +599,7 @@ const de = e.object({
|
|
|
599
599
|
font: e.object({
|
|
600
600
|
url: e.string()
|
|
601
601
|
}).optional()
|
|
602
|
-
}),
|
|
602
|
+
}), he = e.object({
|
|
603
603
|
kid: e.string().optional(),
|
|
604
604
|
team_id: e.string().optional(),
|
|
605
605
|
realms: e.string().optional(),
|
|
@@ -619,12 +619,12 @@ const de = e.object({
|
|
|
619
619
|
twilio_sid: e.string().optional(),
|
|
620
620
|
twilio_token: e.string().optional(),
|
|
621
621
|
icon_url: e.string().optional()
|
|
622
|
-
}),
|
|
622
|
+
}), be = e.object({
|
|
623
623
|
id: e.string().optional(),
|
|
624
624
|
name: e.string(),
|
|
625
625
|
display_name: e.string().optional(),
|
|
626
626
|
strategy: e.string(),
|
|
627
|
-
options:
|
|
627
|
+
options: he.default({}),
|
|
628
628
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
629
629
|
response_type: e.custom().optional(),
|
|
630
630
|
response_mode: e.custom().optional(),
|
|
@@ -632,11 +632,11 @@ const de = e.object({
|
|
|
632
632
|
show_as_button: e.boolean().optional(),
|
|
633
633
|
metadata: e.record(e.any()).optional(),
|
|
634
634
|
is_system: e.boolean().optional()
|
|
635
|
-
}),
|
|
635
|
+
}), fe = e.object({
|
|
636
636
|
id: e.string(),
|
|
637
637
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
638
638
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
639
|
-
}).extend(
|
|
639
|
+
}).extend(be.shape), Ee = e.object({
|
|
640
640
|
id: e.string().optional(),
|
|
641
641
|
// Basic settings
|
|
642
642
|
audience: e.string(),
|
|
@@ -701,7 +701,11 @@ const de = e.object({
|
|
|
701
701
|
remove_alg_from_jwks: e.boolean().optional(),
|
|
702
702
|
revoke_refresh_token_grant: e.boolean().optional(),
|
|
703
703
|
trust_azure_adfs_email_verified_connection_property: e.boolean().optional(),
|
|
704
|
-
use_scope_descriptions_for_consent: e.boolean().optional()
|
|
704
|
+
use_scope_descriptions_for_consent: e.boolean().optional(),
|
|
705
|
+
// When enabled, tenant-level permissions will be inherited when users request
|
|
706
|
+
// organization-scoped tokens. This allows users with tenant-level roles to maintain
|
|
707
|
+
// their permissions when accessing resources in an organization context.
|
|
708
|
+
inherit_global_permissions_in_organizations: e.boolean().optional()
|
|
705
709
|
}).optional(),
|
|
706
710
|
// Sandbox settings
|
|
707
711
|
sandbox_version: e.string().optional(),
|
|
@@ -756,23 +760,23 @@ const de = e.object({
|
|
|
756
760
|
// Authorization settings
|
|
757
761
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
758
762
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
759
|
-
}),
|
|
763
|
+
}), Se = e.object({
|
|
760
764
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
761
765
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
762
|
-
...
|
|
766
|
+
...Ee.shape,
|
|
763
767
|
id: e.string()
|
|
764
|
-
}),
|
|
765
|
-
...
|
|
766
|
-
tenant:
|
|
767
|
-
connections: e.array(
|
|
768
|
-
}),
|
|
768
|
+
}), co = e.object({
|
|
769
|
+
...J.shape,
|
|
770
|
+
tenant: Se,
|
|
771
|
+
connections: e.array(fe)
|
|
772
|
+
}), Ae = e.enum([
|
|
769
773
|
"password_reset",
|
|
770
774
|
"email_verification",
|
|
771
775
|
"otp",
|
|
772
776
|
"authorization_code",
|
|
773
777
|
"oauth2_state",
|
|
774
778
|
"ticket"
|
|
775
|
-
]),
|
|
779
|
+
]), Ce = e.object({
|
|
776
780
|
code_id: e.string().openapi({
|
|
777
781
|
description: "The code that will be used in for instance an email verification flow"
|
|
778
782
|
}),
|
|
@@ -782,7 +786,7 @@ const de = e.object({
|
|
|
782
786
|
connection_id: e.string().optional().openapi({
|
|
783
787
|
description: "The connection that the code is connected to"
|
|
784
788
|
}),
|
|
785
|
-
code_type:
|
|
789
|
+
code_type: Ae,
|
|
786
790
|
code_verifier: e.string().optional().openapi({
|
|
787
791
|
description: "The code verifier used in PKCE in outbound flows"
|
|
788
792
|
}),
|
|
@@ -804,10 +808,10 @@ const de = e.object({
|
|
|
804
808
|
expires_at: e.string(),
|
|
805
809
|
used_at: e.string().optional(),
|
|
806
810
|
user_id: e.string().optional()
|
|
807
|
-
}),
|
|
808
|
-
...
|
|
811
|
+
}), po = e.object({
|
|
812
|
+
...Ce.shape,
|
|
809
813
|
created_at: e.string()
|
|
810
|
-
}),
|
|
814
|
+
}), Ie = e.object({
|
|
811
815
|
domain: e.string(),
|
|
812
816
|
custom_domain_id: e.string().optional(),
|
|
813
817
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -821,23 +825,249 @@ const de = e.object({
|
|
|
821
825
|
"null"
|
|
822
826
|
]).optional(),
|
|
823
827
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
824
|
-
}),
|
|
828
|
+
}), ye = e.object({
|
|
825
829
|
name: e.literal("txt"),
|
|
826
830
|
record: e.string(),
|
|
827
831
|
domain: e.string()
|
|
828
|
-
}),
|
|
829
|
-
...
|
|
832
|
+
}), Oe = e.object({
|
|
833
|
+
...Ie.shape,
|
|
830
834
|
custom_domain_id: e.string(),
|
|
831
835
|
primary: e.boolean(),
|
|
832
836
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
833
837
|
origin_domain_name: e.string().optional(),
|
|
834
838
|
verification: e.object({
|
|
835
|
-
methods: e.array(
|
|
839
|
+
methods: e.array(ye)
|
|
836
840
|
}).optional(),
|
|
837
841
|
tls_policy: e.string().optional()
|
|
838
|
-
}),
|
|
842
|
+
}), _o = Oe.extend({
|
|
839
843
|
tenant_id: e.string()
|
|
840
|
-
}),
|
|
844
|
+
}), f = e.object({
|
|
845
|
+
id: e.string(),
|
|
846
|
+
order: e.number().optional(),
|
|
847
|
+
visible: e.boolean().optional().default(!0)
|
|
848
|
+
}), i = f.extend({
|
|
849
|
+
category: e.literal("BLOCK").optional()
|
|
850
|
+
}), Te = i.extend({
|
|
851
|
+
type: e.literal("DIVIDER"),
|
|
852
|
+
config: e.object({}).optional()
|
|
853
|
+
}), Ne = i.extend({
|
|
854
|
+
type: e.literal("HTML"),
|
|
855
|
+
config: e.object({
|
|
856
|
+
content: e.string().optional()
|
|
857
|
+
}).optional()
|
|
858
|
+
}), Re = i.extend({
|
|
859
|
+
type: e.literal("IMAGE"),
|
|
860
|
+
config: e.object({
|
|
861
|
+
src: e.string().optional(),
|
|
862
|
+
alt: e.string().optional(),
|
|
863
|
+
width: e.number().optional(),
|
|
864
|
+
height: e.number().optional()
|
|
865
|
+
}).optional()
|
|
866
|
+
}), Le = i.extend({
|
|
867
|
+
type: e.literal("JUMP_BUTTON"),
|
|
868
|
+
config: e.object({
|
|
869
|
+
text: e.string().optional(),
|
|
870
|
+
target_step: e.string().optional()
|
|
871
|
+
})
|
|
872
|
+
}), De = i.extend({
|
|
873
|
+
type: e.literal("RESEND_BUTTON"),
|
|
874
|
+
config: e.object({
|
|
875
|
+
text: e.string().optional(),
|
|
876
|
+
resend_action: e.string().optional()
|
|
877
|
+
})
|
|
878
|
+
}), je = i.extend({
|
|
879
|
+
type: e.literal("NEXT_BUTTON"),
|
|
880
|
+
config: e.object({
|
|
881
|
+
text: e.string().optional()
|
|
882
|
+
})
|
|
883
|
+
}), we = i.extend({
|
|
884
|
+
type: e.literal("PREVIOUS_BUTTON"),
|
|
885
|
+
config: e.object({
|
|
886
|
+
text: e.string().optional()
|
|
887
|
+
})
|
|
888
|
+
}), Ue = i.extend({
|
|
889
|
+
type: e.literal("RICH_TEXT"),
|
|
890
|
+
config: e.object({
|
|
891
|
+
content: e.string().optional()
|
|
892
|
+
}).optional()
|
|
893
|
+
}), E = f.extend({
|
|
894
|
+
category: e.literal("WIDGET").optional(),
|
|
895
|
+
label: e.string().min(1).optional(),
|
|
896
|
+
hint: e.string().min(1).max(500).optional(),
|
|
897
|
+
required: e.boolean().optional(),
|
|
898
|
+
sensitive: e.boolean().optional()
|
|
899
|
+
}), Fe = E.extend({
|
|
900
|
+
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
901
|
+
config: e.object({
|
|
902
|
+
credential_type: e.string().optional()
|
|
903
|
+
})
|
|
904
|
+
}), ke = E.extend({
|
|
905
|
+
type: e.literal("GMAPS_ADDRESS"),
|
|
906
|
+
config: e.object({
|
|
907
|
+
api_key: e.string().optional()
|
|
908
|
+
})
|
|
909
|
+
}), ve = E.extend({
|
|
910
|
+
type: e.literal("RECAPTCHA"),
|
|
911
|
+
config: e.object({
|
|
912
|
+
site_key: e.string().optional()
|
|
913
|
+
})
|
|
914
|
+
}), o = f.extend({
|
|
915
|
+
category: e.literal("FIELD").optional(),
|
|
916
|
+
label: e.string().min(1).optional(),
|
|
917
|
+
hint: e.string().min(1).max(500).optional(),
|
|
918
|
+
required: e.boolean().optional(),
|
|
919
|
+
sensitive: e.boolean().optional()
|
|
920
|
+
}), xe = o.extend({
|
|
921
|
+
type: e.literal("BOOLEAN"),
|
|
922
|
+
config: e.object({
|
|
923
|
+
default_value: e.boolean().optional()
|
|
924
|
+
}).optional()
|
|
925
|
+
}), Pe = o.extend({
|
|
926
|
+
type: e.literal("CARDS"),
|
|
927
|
+
config: e.object({
|
|
928
|
+
options: e.array(
|
|
929
|
+
e.object({
|
|
930
|
+
value: e.string(),
|
|
931
|
+
label: e.string(),
|
|
932
|
+
description: e.string().optional(),
|
|
933
|
+
image: e.string().optional()
|
|
934
|
+
})
|
|
935
|
+
).optional(),
|
|
936
|
+
multi_select: e.boolean().optional()
|
|
937
|
+
}).optional()
|
|
938
|
+
}), Me = o.extend({
|
|
939
|
+
type: e.literal("CHOICE"),
|
|
940
|
+
config: e.object({
|
|
941
|
+
options: e.array(
|
|
942
|
+
e.object({
|
|
943
|
+
value: e.string(),
|
|
944
|
+
label: e.string()
|
|
945
|
+
})
|
|
946
|
+
).optional(),
|
|
947
|
+
display: e.enum(["radio", "checkbox"]).optional()
|
|
948
|
+
}).optional()
|
|
949
|
+
}), He = o.extend({
|
|
950
|
+
type: e.literal("CUSTOM"),
|
|
951
|
+
config: e.object({
|
|
952
|
+
component: e.string().optional(),
|
|
953
|
+
props: e.record(e.any()).optional()
|
|
954
|
+
})
|
|
955
|
+
}), Ge = o.extend({
|
|
956
|
+
type: e.literal("DATE"),
|
|
957
|
+
config: e.object({
|
|
958
|
+
format: e.string().optional(),
|
|
959
|
+
min: e.string().optional(),
|
|
960
|
+
max: e.string().optional()
|
|
961
|
+
}).optional()
|
|
962
|
+
}), Be = o.extend({
|
|
963
|
+
type: e.literal("DROPDOWN"),
|
|
964
|
+
config: e.object({
|
|
965
|
+
options: e.array(
|
|
966
|
+
e.object({
|
|
967
|
+
value: e.string(),
|
|
968
|
+
label: e.string()
|
|
969
|
+
})
|
|
970
|
+
).optional(),
|
|
971
|
+
placeholder: e.string().optional(),
|
|
972
|
+
searchable: e.boolean().optional()
|
|
973
|
+
}).optional()
|
|
974
|
+
}), Ke = o.extend({
|
|
975
|
+
type: e.literal("EMAIL"),
|
|
976
|
+
config: e.object({
|
|
977
|
+
placeholder: e.string().optional()
|
|
978
|
+
}).optional()
|
|
979
|
+
}), We = o.extend({
|
|
980
|
+
type: e.literal("FILE"),
|
|
981
|
+
config: e.object({
|
|
982
|
+
accept: e.string().optional(),
|
|
983
|
+
max_size: e.number().optional(),
|
|
984
|
+
multiple: e.boolean().optional()
|
|
985
|
+
}).optional()
|
|
986
|
+
}), ze = o.extend({
|
|
987
|
+
type: e.literal("LEGAL"),
|
|
988
|
+
config: e.object({
|
|
989
|
+
text: e.string(),
|
|
990
|
+
html: e.boolean().optional()
|
|
991
|
+
}).optional()
|
|
992
|
+
}), Xe = o.extend({
|
|
993
|
+
type: e.literal("NUMBER"),
|
|
994
|
+
config: e.object({
|
|
995
|
+
placeholder: e.string().optional(),
|
|
996
|
+
min: e.number().optional(),
|
|
997
|
+
max: e.number().optional(),
|
|
998
|
+
step: e.number().optional()
|
|
999
|
+
}).optional()
|
|
1000
|
+
}), Ve = o.extend({
|
|
1001
|
+
type: e.literal("PASSWORD"),
|
|
1002
|
+
config: e.object({
|
|
1003
|
+
placeholder: e.string().optional(),
|
|
1004
|
+
min_length: e.number().optional(),
|
|
1005
|
+
show_toggle: e.boolean().optional()
|
|
1006
|
+
}).optional()
|
|
1007
|
+
}), qe = o.extend({
|
|
1008
|
+
type: e.literal("PAYMENT"),
|
|
1009
|
+
config: e.object({
|
|
1010
|
+
provider: e.string().optional(),
|
|
1011
|
+
currency: e.string().optional()
|
|
1012
|
+
}).optional()
|
|
1013
|
+
}), Ye = o.extend({
|
|
1014
|
+
type: e.literal("SOCIAL"),
|
|
1015
|
+
config: e.object({
|
|
1016
|
+
providers: e.array(e.string()).optional()
|
|
1017
|
+
}).optional()
|
|
1018
|
+
}), Qe = o.extend({
|
|
1019
|
+
type: e.literal("TEL"),
|
|
1020
|
+
config: e.object({
|
|
1021
|
+
placeholder: e.string().optional(),
|
|
1022
|
+
default_country: e.string().optional()
|
|
1023
|
+
}).optional()
|
|
1024
|
+
}), Je = o.extend({
|
|
1025
|
+
type: e.literal("TEXT"),
|
|
1026
|
+
config: e.object({
|
|
1027
|
+
placeholder: e.string().optional(),
|
|
1028
|
+
multiline: e.boolean().optional(),
|
|
1029
|
+
max_length: e.number().optional()
|
|
1030
|
+
}).optional()
|
|
1031
|
+
}), Ze = o.extend({
|
|
1032
|
+
type: e.literal("URL"),
|
|
1033
|
+
config: e.object({
|
|
1034
|
+
placeholder: e.string().optional()
|
|
1035
|
+
}).optional()
|
|
1036
|
+
}), $e = e.discriminatedUnion("type", [
|
|
1037
|
+
Te,
|
|
1038
|
+
Ne,
|
|
1039
|
+
Re,
|
|
1040
|
+
Le,
|
|
1041
|
+
De,
|
|
1042
|
+
je,
|
|
1043
|
+
we,
|
|
1044
|
+
Ue
|
|
1045
|
+
]), et = e.discriminatedUnion("type", [
|
|
1046
|
+
Fe,
|
|
1047
|
+
ke,
|
|
1048
|
+
ve
|
|
1049
|
+
]), tt = e.discriminatedUnion("type", [
|
|
1050
|
+
xe,
|
|
1051
|
+
Pe,
|
|
1052
|
+
Me,
|
|
1053
|
+
He,
|
|
1054
|
+
Ge,
|
|
1055
|
+
Be,
|
|
1056
|
+
Ke,
|
|
1057
|
+
We,
|
|
1058
|
+
ze,
|
|
1059
|
+
Xe,
|
|
1060
|
+
Ve,
|
|
1061
|
+
qe,
|
|
1062
|
+
Ye,
|
|
1063
|
+
Qe,
|
|
1064
|
+
Je,
|
|
1065
|
+
Ze
|
|
1066
|
+
]), R = e.union([
|
|
1067
|
+
$e,
|
|
1068
|
+
et,
|
|
1069
|
+
tt
|
|
1070
|
+
]), go = e.object({
|
|
841
1071
|
id: e.string(),
|
|
842
1072
|
type: e.literal("submit"),
|
|
843
1073
|
label: e.string(),
|
|
@@ -846,66 +1076,48 @@ const de = e.object({
|
|
|
846
1076
|
order: e.number().optional(),
|
|
847
1077
|
visible: e.boolean().optional().default(!0),
|
|
848
1078
|
customizations: e.record(e.string(), e.any()).optional()
|
|
849
|
-
}),
|
|
1079
|
+
}), _ = e.object({
|
|
1080
|
+
x: e.number(),
|
|
1081
|
+
y: e.number()
|
|
1082
|
+
}), ot = e.object({
|
|
850
1083
|
id: e.string(),
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
config: e.object({
|
|
883
|
-
text: e.string().optional()
|
|
884
|
-
})
|
|
885
|
-
}),
|
|
886
|
-
c.extend({
|
|
887
|
-
type: e.literal("EMAIL"),
|
|
888
|
-
config: e.object({
|
|
889
|
-
label: e.string().optional(),
|
|
890
|
-
placeholder: e.string().optional()
|
|
891
|
-
})
|
|
892
|
-
}),
|
|
893
|
-
c.extend({
|
|
894
|
-
type: e.literal("NUMBER"),
|
|
895
|
-
config: e.object({
|
|
896
|
-
label: e.string().optional(),
|
|
897
|
-
placeholder: e.string().optional()
|
|
898
|
-
})
|
|
899
|
-
}),
|
|
900
|
-
c.extend({
|
|
901
|
-
type: e.literal("PHONE"),
|
|
902
|
-
config: e.object({
|
|
903
|
-
label: e.string().optional(),
|
|
904
|
-
placeholder: e.string().optional()
|
|
905
|
-
})
|
|
1084
|
+
type: e.literal("FLOW"),
|
|
1085
|
+
coordinates: _,
|
|
1086
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1087
|
+
config: e.object({
|
|
1088
|
+
flow_id: e.string().max(30),
|
|
1089
|
+
next_node: e.string().optional()
|
|
1090
|
+
})
|
|
1091
|
+
}), nt = e.object({
|
|
1092
|
+
id: e.string(),
|
|
1093
|
+
type: e.literal("ROUTER"),
|
|
1094
|
+
coordinates: _,
|
|
1095
|
+
alias: e.string().min(1).max(150),
|
|
1096
|
+
config: e.object({
|
|
1097
|
+
rules: e.array(
|
|
1098
|
+
e.object({
|
|
1099
|
+
id: e.string(),
|
|
1100
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1101
|
+
condition: e.any(),
|
|
1102
|
+
next_node: e.string()
|
|
1103
|
+
})
|
|
1104
|
+
),
|
|
1105
|
+
fallback: e.string()
|
|
1106
|
+
})
|
|
1107
|
+
}), it = e.object({
|
|
1108
|
+
id: e.string(),
|
|
1109
|
+
type: e.literal("STEP"),
|
|
1110
|
+
coordinates: _,
|
|
1111
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1112
|
+
config: e.object({
|
|
1113
|
+
components: e.array(R),
|
|
1114
|
+
next_node: e.string().optional()
|
|
906
1115
|
})
|
|
907
|
-
|
|
908
|
-
|
|
1116
|
+
}), at = e.discriminatedUnion("type", [
|
|
1117
|
+
ot,
|
|
1118
|
+
nt,
|
|
1119
|
+
it
|
|
1120
|
+
]), st = e.object({
|
|
909
1121
|
name: e.string().openapi({
|
|
910
1122
|
description: "The name of the form"
|
|
911
1123
|
}),
|
|
@@ -918,54 +1130,11 @@ const de = e.object({
|
|
|
918
1130
|
default: e.string().optional()
|
|
919
1131
|
}).optional(),
|
|
920
1132
|
translations: e.record(e.string(), e.any()).optional(),
|
|
921
|
-
nodes: e.array(
|
|
922
|
-
e.discriminatedUnion("type", [
|
|
923
|
-
// FLOW node
|
|
924
|
-
e.object({
|
|
925
|
-
id: e.string(),
|
|
926
|
-
type: e.literal("FLOW"),
|
|
927
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
928
|
-
alias: e.string().min(1).max(150).optional(),
|
|
929
|
-
config: e.object({
|
|
930
|
-
flow_id: e.string().max(30),
|
|
931
|
-
next_node: e.string().optional()
|
|
932
|
-
})
|
|
933
|
-
}),
|
|
934
|
-
// ROUTER node
|
|
935
|
-
e.object({
|
|
936
|
-
id: e.string(),
|
|
937
|
-
type: e.literal("ROUTER"),
|
|
938
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
939
|
-
alias: e.string().min(1).max(150),
|
|
940
|
-
config: e.object({
|
|
941
|
-
rules: e.array(
|
|
942
|
-
e.object({
|
|
943
|
-
id: e.string(),
|
|
944
|
-
alias: e.string().min(1).max(150).optional(),
|
|
945
|
-
condition: e.any(),
|
|
946
|
-
next_node: e.string()
|
|
947
|
-
})
|
|
948
|
-
),
|
|
949
|
-
fallback: e.string()
|
|
950
|
-
})
|
|
951
|
-
}),
|
|
952
|
-
// STEP node
|
|
953
|
-
e.object({
|
|
954
|
-
id: e.string(),
|
|
955
|
-
type: e.literal("STEP"),
|
|
956
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
957
|
-
alias: e.string().min(1).max(150).optional(),
|
|
958
|
-
config: e.object({
|
|
959
|
-
components: e.array(Ce),
|
|
960
|
-
next_node: e.string().optional()
|
|
961
|
-
})
|
|
962
|
-
})
|
|
963
|
-
])
|
|
964
|
-
).optional(),
|
|
1133
|
+
nodes: e.array(at).optional(),
|
|
965
1134
|
start: e.object({
|
|
966
1135
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
967
1136
|
next_node: e.string().optional(),
|
|
968
|
-
coordinates:
|
|
1137
|
+
coordinates: _.optional()
|
|
969
1138
|
}).optional(),
|
|
970
1139
|
ending: e.object({
|
|
971
1140
|
redirection: e.object({
|
|
@@ -973,17 +1142,44 @@ const de = e.object({
|
|
|
973
1142
|
target: e.string().optional()
|
|
974
1143
|
}).optional(),
|
|
975
1144
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
976
|
-
coordinates:
|
|
1145
|
+
coordinates: _.optional(),
|
|
977
1146
|
resume_flow: e.boolean().optional()
|
|
978
1147
|
}).optional(),
|
|
979
1148
|
style: e.object({ css: e.string().optional() }).optional()
|
|
980
1149
|
}).openapi({
|
|
981
|
-
description: "Schema for flow-based forms (matches
|
|
982
|
-
}),
|
|
983
|
-
...
|
|
984
|
-
...
|
|
1150
|
+
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1151
|
+
}), uo = e.object({
|
|
1152
|
+
...s.shape,
|
|
1153
|
+
...st.shape,
|
|
985
1154
|
id: e.string()
|
|
986
|
-
}),
|
|
1155
|
+
}), rt = e.object({
|
|
1156
|
+
id: e.number().optional(),
|
|
1157
|
+
text: e.string(),
|
|
1158
|
+
type: e.enum(["info", "error", "success", "warning"])
|
|
1159
|
+
}), lt = e.object({
|
|
1160
|
+
id: e.string().optional(),
|
|
1161
|
+
text: e.string(),
|
|
1162
|
+
href: e.string(),
|
|
1163
|
+
linkText: e.string().optional()
|
|
1164
|
+
}), mo = e.object({
|
|
1165
|
+
action: e.string(),
|
|
1166
|
+
method: e.enum(["POST", "GET"]),
|
|
1167
|
+
title: e.string().optional(),
|
|
1168
|
+
description: e.string().optional(),
|
|
1169
|
+
components: e.array(R),
|
|
1170
|
+
messages: e.array(rt).optional(),
|
|
1171
|
+
links: e.array(lt).optional()
|
|
1172
|
+
});
|
|
1173
|
+
function ho(t) {
|
|
1174
|
+
return t.category === "BLOCK";
|
|
1175
|
+
}
|
|
1176
|
+
function bo(t) {
|
|
1177
|
+
return t.category === "WIDGET";
|
|
1178
|
+
}
|
|
1179
|
+
function fo(t) {
|
|
1180
|
+
return t.category === "FIELD";
|
|
1181
|
+
}
|
|
1182
|
+
const L = e.enum([
|
|
987
1183
|
"pre-user-registration",
|
|
988
1184
|
"post-user-registration",
|
|
989
1185
|
"post-user-login",
|
|
@@ -991,49 +1187,49 @@ const de = e.object({
|
|
|
991
1187
|
"pre-user-deletion",
|
|
992
1188
|
"post-user-deletion"
|
|
993
1189
|
// Potentially other triggers specific to webhooks in the future
|
|
994
|
-
]),
|
|
1190
|
+
]), D = e.enum([
|
|
995
1191
|
"pre-user-registration",
|
|
996
1192
|
"post-user-registration",
|
|
997
1193
|
"post-user-login",
|
|
998
1194
|
"validate-registration-username",
|
|
999
1195
|
"pre-user-deletion",
|
|
1000
1196
|
"post-user-deletion"
|
|
1001
|
-
]),
|
|
1197
|
+
]), m = {
|
|
1002
1198
|
enabled: e.boolean().default(!1),
|
|
1003
1199
|
synchronous: e.boolean().default(!1),
|
|
1004
1200
|
priority: e.number().optional(),
|
|
1005
1201
|
hook_id: e.string().optional()
|
|
1006
|
-
},
|
|
1007
|
-
...
|
|
1008
|
-
trigger_id:
|
|
1202
|
+
}, ct = e.object({
|
|
1203
|
+
...m,
|
|
1204
|
+
trigger_id: L,
|
|
1009
1205
|
url: e.string()
|
|
1010
|
-
}),
|
|
1011
|
-
...
|
|
1012
|
-
trigger_id:
|
|
1206
|
+
}), pt = e.object({
|
|
1207
|
+
...m,
|
|
1208
|
+
trigger_id: D,
|
|
1013
1209
|
form_id: e.string()
|
|
1014
|
-
}),
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
]),
|
|
1018
|
-
...
|
|
1019
|
-
trigger_id:
|
|
1020
|
-
...
|
|
1210
|
+
}), Eo = e.union([
|
|
1211
|
+
ct,
|
|
1212
|
+
pt
|
|
1213
|
+
]), _t = e.object({
|
|
1214
|
+
...m,
|
|
1215
|
+
trigger_id: L,
|
|
1216
|
+
...s.shape,
|
|
1021
1217
|
hook_id: e.string(),
|
|
1022
1218
|
url: e.string()
|
|
1023
|
-
}),
|
|
1024
|
-
...
|
|
1025
|
-
trigger_id:
|
|
1026
|
-
...
|
|
1219
|
+
}), dt = e.object({
|
|
1220
|
+
...m,
|
|
1221
|
+
trigger_id: D,
|
|
1222
|
+
...s.shape,
|
|
1027
1223
|
hook_id: e.string(),
|
|
1028
1224
|
form_id: e.string()
|
|
1029
|
-
}),
|
|
1225
|
+
}), So = e.union([_t, dt]), gt = e.object({
|
|
1030
1226
|
name: e.string().optional()
|
|
1031
|
-
}),
|
|
1227
|
+
}), ut = e.object({
|
|
1032
1228
|
email: e.string().optional()
|
|
1033
|
-
}),
|
|
1229
|
+
}), mt = e.object({
|
|
1034
1230
|
organization_id: e.string().max(50),
|
|
1035
|
-
inviter:
|
|
1036
|
-
invitee:
|
|
1231
|
+
inviter: gt,
|
|
1232
|
+
invitee: ut,
|
|
1037
1233
|
invitation_url: e.string().url(),
|
|
1038
1234
|
client_id: e.string(),
|
|
1039
1235
|
connection_id: e.string().optional(),
|
|
@@ -1042,13 +1238,13 @@ const de = e.object({
|
|
|
1042
1238
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1043
1239
|
roles: e.array(e.string()).default([]).optional(),
|
|
1044
1240
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1045
|
-
}),
|
|
1241
|
+
}), Ao = e.object({
|
|
1046
1242
|
id: e.string(),
|
|
1047
1243
|
organization_id: e.string().max(50),
|
|
1048
1244
|
created_at: e.string().datetime(),
|
|
1049
1245
|
expires_at: e.string().datetime(),
|
|
1050
1246
|
ticket_id: e.string().optional()
|
|
1051
|
-
}).extend(
|
|
1247
|
+
}).extend(mt.shape), ht = e.object({
|
|
1052
1248
|
alg: e.enum([
|
|
1053
1249
|
"RS256",
|
|
1054
1250
|
"RS384",
|
|
@@ -1067,9 +1263,9 @@ const de = e.object({
|
|
|
1067
1263
|
x5t: e.string().optional(),
|
|
1068
1264
|
x5c: e.array(e.string()).optional(),
|
|
1069
1265
|
use: e.enum(["sig", "enc"]).optional()
|
|
1070
|
-
}),
|
|
1071
|
-
keys: e.array(
|
|
1072
|
-
}),
|
|
1266
|
+
}), Co = e.object({
|
|
1267
|
+
keys: e.array(ht)
|
|
1268
|
+
}), Io = e.object({
|
|
1073
1269
|
issuer: e.string(),
|
|
1074
1270
|
authorization_endpoint: e.string(),
|
|
1075
1271
|
token_endpoint: e.string(),
|
|
@@ -1090,10 +1286,10 @@ const de = e.object({
|
|
|
1090
1286
|
request_uri_parameter_supported: e.boolean(),
|
|
1091
1287
|
request_parameter_supported: e.boolean(),
|
|
1092
1288
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1093
|
-
}),
|
|
1289
|
+
}), bt = e.object({
|
|
1094
1290
|
csrf_token: e.string(),
|
|
1095
1291
|
auth0Client: e.string().optional(),
|
|
1096
|
-
authParams:
|
|
1292
|
+
authParams: me,
|
|
1097
1293
|
expires_at: e.string(),
|
|
1098
1294
|
deleted_at: e.string().optional(),
|
|
1099
1295
|
ip: e.string().optional(),
|
|
@@ -1103,14 +1299,14 @@ const de = e.object({
|
|
|
1103
1299
|
login_completed: e.boolean().optional().default(!1)
|
|
1104
1300
|
}).openapi({
|
|
1105
1301
|
description: "This represents a login sesion"
|
|
1106
|
-
}),
|
|
1107
|
-
...
|
|
1302
|
+
}), yo = e.object({
|
|
1303
|
+
...bt.shape,
|
|
1108
1304
|
id: e.string().openapi({
|
|
1109
1305
|
description: "This is is used as the state in the universal login"
|
|
1110
1306
|
}),
|
|
1111
1307
|
created_at: e.string(),
|
|
1112
1308
|
updated_at: e.string()
|
|
1113
|
-
}),
|
|
1309
|
+
}), ft = {
|
|
1114
1310
|
// Network & System
|
|
1115
1311
|
ACLS_SUMMARY: "acls_summary",
|
|
1116
1312
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1277,24 +1473,24 @@ const de = e.object({
|
|
|
1277
1473
|
WARNING_DURING_LOGIN: "w",
|
|
1278
1474
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1279
1475
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1280
|
-
},
|
|
1281
|
-
(t) => Object.values(
|
|
1476
|
+
}, Et = e.string().refine(
|
|
1477
|
+
(t) => Object.values(ft).includes(t),
|
|
1282
1478
|
{ message: "Invalid log type" }
|
|
1283
|
-
),
|
|
1479
|
+
), St = e.object({
|
|
1284
1480
|
name: e.string(),
|
|
1285
1481
|
version: e.string(),
|
|
1286
1482
|
env: e.object({
|
|
1287
1483
|
node: e.string().optional()
|
|
1288
1484
|
}).optional()
|
|
1289
|
-
}),
|
|
1485
|
+
}), At = e.object({
|
|
1290
1486
|
country_code: e.string().length(2),
|
|
1291
1487
|
city_name: e.string(),
|
|
1292
1488
|
latitude: e.string(),
|
|
1293
1489
|
longitude: e.string(),
|
|
1294
1490
|
time_zone: e.string(),
|
|
1295
1491
|
continent_code: e.string()
|
|
1296
|
-
}),
|
|
1297
|
-
type:
|
|
1492
|
+
}), Ct = e.object({
|
|
1493
|
+
type: Et,
|
|
1298
1494
|
date: e.string(),
|
|
1299
1495
|
description: e.string().optional(),
|
|
1300
1496
|
ip: e.string().optional(),
|
|
@@ -1313,30 +1509,30 @@ const de = e.object({
|
|
|
1313
1509
|
strategy: e.string().optional(),
|
|
1314
1510
|
strategy_type: e.string().optional(),
|
|
1315
1511
|
hostname: e.string().optional(),
|
|
1316
|
-
auth0_client:
|
|
1512
|
+
auth0_client: St.optional(),
|
|
1317
1513
|
log_id: e.string().optional(),
|
|
1318
|
-
location_info:
|
|
1319
|
-
}),
|
|
1320
|
-
...
|
|
1514
|
+
location_info: At.optional()
|
|
1515
|
+
}), Oo = e.object({
|
|
1516
|
+
...Ct.shape,
|
|
1321
1517
|
log_id: e.string()
|
|
1322
|
-
}),
|
|
1518
|
+
}), It = e.object({
|
|
1323
1519
|
id: e.string().optional(),
|
|
1324
1520
|
user_id: e.string(),
|
|
1325
1521
|
password: e.string(),
|
|
1326
1522
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1327
1523
|
is_current: e.boolean().default(!0)
|
|
1328
|
-
}),
|
|
1524
|
+
}), To = It.extend({
|
|
1329
1525
|
id: e.string(),
|
|
1330
1526
|
created_at: e.string(),
|
|
1331
1527
|
updated_at: e.string()
|
|
1332
|
-
}),
|
|
1528
|
+
}), j = e.object({
|
|
1333
1529
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1334
1530
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1335
1531
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1336
1532
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1337
1533
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1338
1534
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1339
|
-
}),
|
|
1535
|
+
}), yt = e.object({
|
|
1340
1536
|
id: e.string(),
|
|
1341
1537
|
revoked_at: e.string().optional(),
|
|
1342
1538
|
used_at: e.string().optional(),
|
|
@@ -1344,17 +1540,17 @@ const de = e.object({
|
|
|
1344
1540
|
expires_at: e.string().optional(),
|
|
1345
1541
|
login_session_id: e.string(),
|
|
1346
1542
|
idle_expires_at: e.string().optional(),
|
|
1347
|
-
device:
|
|
1543
|
+
device: j.describe(
|
|
1348
1544
|
"Metadata related to the device used in the session"
|
|
1349
1545
|
),
|
|
1350
1546
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1351
|
-
}),
|
|
1547
|
+
}), No = e.object({
|
|
1352
1548
|
created_at: e.string(),
|
|
1353
1549
|
updated_at: e.string(),
|
|
1354
1550
|
authenticated_at: e.string(),
|
|
1355
1551
|
last_interaction_at: e.string(),
|
|
1356
|
-
...
|
|
1357
|
-
}),
|
|
1552
|
+
...yt.shape
|
|
1553
|
+
}), Ro = e.object({
|
|
1358
1554
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1359
1555
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1360
1556
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1380,8 +1576,8 @@ const de = e.object({
|
|
|
1380
1576
|
description: "The type of the signing key"
|
|
1381
1577
|
})
|
|
1382
1578
|
});
|
|
1383
|
-
var
|
|
1384
|
-
const
|
|
1579
|
+
var Ot = /* @__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))(Ot || {});
|
|
1580
|
+
const Lo = e.object({
|
|
1385
1581
|
access_token: e.string(),
|
|
1386
1582
|
id_token: e.string().optional(),
|
|
1387
1583
|
scope: e.string().optional(),
|
|
@@ -1394,7 +1590,7 @@ e.object({
|
|
|
1394
1590
|
code: e.string(),
|
|
1395
1591
|
state: e.string().optional()
|
|
1396
1592
|
});
|
|
1397
|
-
const
|
|
1593
|
+
const Tt = e.object({
|
|
1398
1594
|
button_border_radius: e.number(),
|
|
1399
1595
|
button_border_weight: e.number(),
|
|
1400
1596
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1404,7 +1600,7 @@ const Ke = e.object({
|
|
|
1404
1600
|
show_widget_shadow: e.boolean(),
|
|
1405
1601
|
widget_border_weight: e.number(),
|
|
1406
1602
|
widget_corner_radius: e.number()
|
|
1407
|
-
}),
|
|
1603
|
+
}), Nt = e.object({
|
|
1408
1604
|
base_focus_color: e.string(),
|
|
1409
1605
|
base_hover_color: e.string(),
|
|
1410
1606
|
body_text: e.string(),
|
|
@@ -1424,44 +1620,44 @@ const Ke = e.object({
|
|
|
1424
1620
|
success: e.string(),
|
|
1425
1621
|
widget_background: e.string(),
|
|
1426
1622
|
widget_border: e.string()
|
|
1427
|
-
}),
|
|
1623
|
+
}), l = e.object({
|
|
1428
1624
|
bold: e.boolean(),
|
|
1429
1625
|
size: e.number()
|
|
1430
|
-
}),
|
|
1431
|
-
body_text:
|
|
1432
|
-
buttons_text:
|
|
1626
|
+
}), Rt = e.object({
|
|
1627
|
+
body_text: l,
|
|
1628
|
+
buttons_text: l,
|
|
1433
1629
|
font_url: e.string(),
|
|
1434
|
-
input_labels:
|
|
1435
|
-
links:
|
|
1630
|
+
input_labels: l,
|
|
1631
|
+
links: l,
|
|
1436
1632
|
links_style: e.enum(["normal", "underlined"]),
|
|
1437
1633
|
reference_text_size: e.number(),
|
|
1438
|
-
subtitle:
|
|
1439
|
-
title:
|
|
1440
|
-
}),
|
|
1634
|
+
subtitle: l,
|
|
1635
|
+
title: l
|
|
1636
|
+
}), Lt = e.object({
|
|
1441
1637
|
background_color: e.string(),
|
|
1442
1638
|
background_image_url: e.string(),
|
|
1443
1639
|
page_layout: e.enum(["center", "left", "right"])
|
|
1444
|
-
}),
|
|
1640
|
+
}), Dt = e.object({
|
|
1445
1641
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1446
1642
|
logo_height: e.number(),
|
|
1447
1643
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1448
1644
|
logo_url: e.string(),
|
|
1449
1645
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1450
|
-
}),
|
|
1451
|
-
borders:
|
|
1452
|
-
colors:
|
|
1646
|
+
}), jt = e.object({
|
|
1647
|
+
borders: Tt,
|
|
1648
|
+
colors: Nt,
|
|
1453
1649
|
displayName: e.string(),
|
|
1454
|
-
fonts:
|
|
1455
|
-
page_background:
|
|
1456
|
-
widget:
|
|
1457
|
-
}),
|
|
1650
|
+
fonts: Rt,
|
|
1651
|
+
page_background: Lt,
|
|
1652
|
+
widget: Dt
|
|
1653
|
+
}), Do = jt.extend({
|
|
1458
1654
|
themeId: e.string()
|
|
1459
|
-
}),
|
|
1655
|
+
}), jo = e.object({
|
|
1460
1656
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1461
1657
|
identifier_first: e.boolean().default(!0),
|
|
1462
1658
|
password_first: e.boolean().default(!1),
|
|
1463
1659
|
webauthn_platform_first_factor: e.boolean()
|
|
1464
|
-
}),
|
|
1660
|
+
}), wo = e.object({
|
|
1465
1661
|
name: e.string(),
|
|
1466
1662
|
enabled: e.boolean().optional().default(!0),
|
|
1467
1663
|
default_from_address: e.string().optional(),
|
|
@@ -1491,7 +1687,7 @@ const Ke = e.object({
|
|
|
1491
1687
|
})
|
|
1492
1688
|
]),
|
|
1493
1689
|
settings: e.object({}).optional()
|
|
1494
|
-
}),
|
|
1690
|
+
}), wt = e.object({
|
|
1495
1691
|
// The actual refresh token value (primary key).
|
|
1496
1692
|
id: e.string(),
|
|
1497
1693
|
// Link to the session record
|
|
@@ -1504,7 +1700,7 @@ const Ke = e.object({
|
|
|
1504
1700
|
idle_expires_at: e.string().optional(),
|
|
1505
1701
|
// When the token was last used.
|
|
1506
1702
|
last_exchanged_at: e.string().optional(),
|
|
1507
|
-
device:
|
|
1703
|
+
device: j,
|
|
1508
1704
|
resource_servers: e.array(
|
|
1509
1705
|
e.object({
|
|
1510
1706
|
audience: e.string(),
|
|
@@ -1512,21 +1708,21 @@ const Ke = e.object({
|
|
|
1512
1708
|
})
|
|
1513
1709
|
),
|
|
1514
1710
|
rotating: e.boolean()
|
|
1515
|
-
}),
|
|
1711
|
+
}), Uo = e.object({
|
|
1516
1712
|
// When the refresh token record was created.
|
|
1517
1713
|
created_at: e.string(),
|
|
1518
1714
|
// Spread in the rest of the refresh token properties.
|
|
1519
|
-
...
|
|
1520
|
-
}),
|
|
1715
|
+
...wt.shape
|
|
1716
|
+
}), Fo = e.object({
|
|
1521
1717
|
to: e.string(),
|
|
1522
1718
|
message: e.string()
|
|
1523
|
-
}),
|
|
1719
|
+
}), ko = e.object({
|
|
1524
1720
|
name: e.string(),
|
|
1525
1721
|
options: e.object({})
|
|
1526
|
-
}),
|
|
1722
|
+
}), Ut = e.object({
|
|
1527
1723
|
value: e.string(),
|
|
1528
1724
|
description: e.string().optional()
|
|
1529
|
-
}),
|
|
1725
|
+
}), Ft = e.object({
|
|
1530
1726
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1531
1727
|
enforce_policies: e.boolean().optional(),
|
|
1532
1728
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1536,10 +1732,10 @@ const Ke = e.object({
|
|
|
1536
1732
|
mtls: e.object({
|
|
1537
1733
|
bound_access_tokens: e.boolean().optional()
|
|
1538
1734
|
}).optional()
|
|
1539
|
-
}),
|
|
1735
|
+
}), kt = e.object({
|
|
1540
1736
|
name: e.string(),
|
|
1541
1737
|
identifier: e.string(),
|
|
1542
|
-
scopes: e.array(
|
|
1738
|
+
scopes: e.array(Ut).optional(),
|
|
1543
1739
|
signing_alg: e.string().optional(),
|
|
1544
1740
|
signing_secret: e.string().optional(),
|
|
1545
1741
|
token_lifetime: e.number().optional(),
|
|
@@ -1547,30 +1743,30 @@ const Ke = e.object({
|
|
|
1547
1743
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1548
1744
|
allow_offline_access: e.boolean().optional(),
|
|
1549
1745
|
verificationKey: e.string().optional(),
|
|
1550
|
-
options:
|
|
1746
|
+
options: Ft.optional(),
|
|
1551
1747
|
is_system: e.boolean().optional()
|
|
1552
|
-
}),
|
|
1748
|
+
}), vt = e.object({
|
|
1553
1749
|
id: e.string().optional(),
|
|
1554
|
-
...
|
|
1750
|
+
...kt.shape,
|
|
1555
1751
|
created_at: e.string().optional(),
|
|
1556
1752
|
updated_at: e.string().optional()
|
|
1557
|
-
}),
|
|
1753
|
+
}), vo = e.array(vt), xt = e.object({
|
|
1558
1754
|
role_id: e.string(),
|
|
1559
1755
|
resource_server_identifier: e.string(),
|
|
1560
1756
|
permission_name: e.string()
|
|
1561
|
-
}),
|
|
1562
|
-
|
|
1757
|
+
}), Pt = e.object({
|
|
1758
|
+
...xt.shape,
|
|
1563
1759
|
created_at: e.string()
|
|
1564
|
-
}),
|
|
1760
|
+
}), xo = e.array(Pt), Mt = e.object({
|
|
1565
1761
|
user_id: e.string(),
|
|
1566
1762
|
resource_server_identifier: e.string(),
|
|
1567
1763
|
permission_name: e.string(),
|
|
1568
1764
|
organization_id: e.string().optional()
|
|
1569
|
-
}),
|
|
1570
|
-
...
|
|
1765
|
+
}), Ht = e.object({
|
|
1766
|
+
...Mt.shape,
|
|
1571
1767
|
tenant_id: e.string(),
|
|
1572
1768
|
created_at: e.string().optional()
|
|
1573
|
-
}),
|
|
1769
|
+
}), Po = e.array(Ht), Gt = e.object({
|
|
1574
1770
|
user_id: e.string(),
|
|
1575
1771
|
resource_server_identifier: e.string(),
|
|
1576
1772
|
resource_server_name: e.string(),
|
|
@@ -1578,17 +1774,17 @@ const Ke = e.object({
|
|
|
1578
1774
|
description: e.string().nullable().optional(),
|
|
1579
1775
|
created_at: e.string().optional(),
|
|
1580
1776
|
organization_id: e.string().optional()
|
|
1581
|
-
}),
|
|
1582
|
-
|
|
1583
|
-
),
|
|
1777
|
+
}), Mo = e.array(
|
|
1778
|
+
Gt
|
|
1779
|
+
), Bt = e.object({
|
|
1584
1780
|
user_id: e.string(),
|
|
1585
1781
|
role_id: e.string(),
|
|
1586
1782
|
organization_id: e.string().optional()
|
|
1587
|
-
}),
|
|
1588
|
-
...
|
|
1783
|
+
}), Kt = e.object({
|
|
1784
|
+
...Bt.shape,
|
|
1589
1785
|
tenant_id: e.string(),
|
|
1590
1786
|
created_at: e.string().optional()
|
|
1591
|
-
}),
|
|
1787
|
+
}), Ho = e.array(Kt), Wt = e.object({
|
|
1592
1788
|
name: e.string().min(1).max(50).openapi({
|
|
1593
1789
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1594
1790
|
}),
|
|
@@ -1596,14 +1792,14 @@ const Ke = e.object({
|
|
|
1596
1792
|
description: "The description of the role"
|
|
1597
1793
|
}),
|
|
1598
1794
|
is_system: e.boolean().optional()
|
|
1599
|
-
}),
|
|
1795
|
+
}), zt = e.object({
|
|
1600
1796
|
id: e.string().openapi({
|
|
1601
1797
|
description: "The unique identifier of the role"
|
|
1602
1798
|
}),
|
|
1603
|
-
...
|
|
1799
|
+
...Wt.shape,
|
|
1604
1800
|
created_at: e.string().optional(),
|
|
1605
1801
|
updated_at: e.string().optional()
|
|
1606
|
-
}),
|
|
1802
|
+
}), Go = e.array(zt), Xt = e.object({
|
|
1607
1803
|
logo_url: e.string().optional().openapi({
|
|
1608
1804
|
description: "URL of the organization's logo"
|
|
1609
1805
|
}),
|
|
@@ -1615,7 +1811,7 @@ const Ke = e.object({
|
|
|
1615
1811
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1616
1812
|
})
|
|
1617
1813
|
}).optional()
|
|
1618
|
-
}).optional(),
|
|
1814
|
+
}).optional(), Vt = e.object({
|
|
1619
1815
|
connection_id: e.string().openapi({
|
|
1620
1816
|
description: "ID of the connection"
|
|
1621
1817
|
}),
|
|
@@ -1628,7 +1824,7 @@ const Ke = e.object({
|
|
|
1628
1824
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1629
1825
|
description: "Whether signup is enabled for this connection"
|
|
1630
1826
|
})
|
|
1631
|
-
}),
|
|
1827
|
+
}), qt = e.object({
|
|
1632
1828
|
client_credentials: e.object({
|
|
1633
1829
|
enforce: e.boolean().default(!1).openapi({
|
|
1634
1830
|
description: "Whether to enforce token quota limits"
|
|
@@ -1640,7 +1836,7 @@ const Ke = e.object({
|
|
|
1640
1836
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1641
1837
|
})
|
|
1642
1838
|
}).optional()
|
|
1643
|
-
}).optional(),
|
|
1839
|
+
}).optional(), Yt = e.object({
|
|
1644
1840
|
id: e.string().optional(),
|
|
1645
1841
|
name: e.string().min(1).openapi({
|
|
1646
1842
|
description: "The name of the organization"
|
|
@@ -1648,30 +1844,30 @@ const Ke = e.object({
|
|
|
1648
1844
|
display_name: e.string().optional().openapi({
|
|
1649
1845
|
description: "The display name of the organization"
|
|
1650
1846
|
}),
|
|
1651
|
-
branding:
|
|
1847
|
+
branding: Xt,
|
|
1652
1848
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1653
1849
|
description: "Custom metadata for the organization"
|
|
1654
1850
|
}),
|
|
1655
|
-
enabled_connections: e.array(
|
|
1851
|
+
enabled_connections: e.array(Vt).default([]).optional().openapi({
|
|
1656
1852
|
description: "List of enabled connections for the organization"
|
|
1657
1853
|
}),
|
|
1658
|
-
token_quota:
|
|
1659
|
-
}),
|
|
1660
|
-
...
|
|
1661
|
-
...
|
|
1854
|
+
token_quota: qt
|
|
1855
|
+
}), Bo = e.object({
|
|
1856
|
+
...Yt.shape,
|
|
1857
|
+
...s.shape,
|
|
1662
1858
|
id: e.string()
|
|
1663
|
-
}),
|
|
1859
|
+
}), Qt = e.object({
|
|
1664
1860
|
user_id: e.string().openapi({
|
|
1665
1861
|
description: "ID of the user"
|
|
1666
1862
|
}),
|
|
1667
1863
|
organization_id: e.string().openapi({
|
|
1668
1864
|
description: "ID of the organization"
|
|
1669
1865
|
})
|
|
1670
|
-
}),
|
|
1671
|
-
...
|
|
1672
|
-
...
|
|
1866
|
+
}), Ko = e.object({
|
|
1867
|
+
...Qt.shape,
|
|
1868
|
+
...s.shape,
|
|
1673
1869
|
id: e.string()
|
|
1674
|
-
}),
|
|
1870
|
+
}), Wo = e.object({
|
|
1675
1871
|
// Session settings
|
|
1676
1872
|
idle_session_lifetime: e.number().optional(),
|
|
1677
1873
|
session_lifetime: e.number().optional(),
|
|
@@ -1740,7 +1936,7 @@ const Ke = e.object({
|
|
|
1740
1936
|
sessions: e.object({
|
|
1741
1937
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1742
1938
|
}).optional()
|
|
1743
|
-
}),
|
|
1939
|
+
}), zo = e.object({
|
|
1744
1940
|
date: e.string().openapi({
|
|
1745
1941
|
description: "Date these events occurred in ISO 8601 format",
|
|
1746
1942
|
example: "2025-12-19"
|
|
@@ -1765,194 +1961,204 @@ const Ke = e.object({
|
|
|
1765
1961
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1766
1962
|
example: "2025-12-19T00:00:00.000Z"
|
|
1767
1963
|
})
|
|
1768
|
-
}),
|
|
1964
|
+
}), Xo = e.number().openapi({
|
|
1769
1965
|
description: "Number of active users in the last 30 days",
|
|
1770
1966
|
example: 1234
|
|
1771
1967
|
});
|
|
1772
|
-
function
|
|
1773
|
-
const [
|
|
1774
|
-
if (!
|
|
1968
|
+
function Vo(t) {
|
|
1969
|
+
const [a, r] = t.split("|");
|
|
1970
|
+
if (!a || !r)
|
|
1775
1971
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1776
|
-
return { connection:
|
|
1972
|
+
return { connection: a, id: r };
|
|
1777
1973
|
}
|
|
1778
|
-
function
|
|
1974
|
+
function qo(t) {
|
|
1779
1975
|
const {
|
|
1780
|
-
primary:
|
|
1781
|
-
secondaries:
|
|
1782
|
-
syncMethods:
|
|
1783
|
-
} = t,
|
|
1784
|
-
get(
|
|
1785
|
-
if (typeof
|
|
1786
|
-
return
|
|
1787
|
-
const
|
|
1788
|
-
return typeof
|
|
1789
|
-
const
|
|
1790
|
-
for (const
|
|
1791
|
-
const
|
|
1792
|
-
if (typeof
|
|
1976
|
+
primary: a,
|
|
1977
|
+
secondaries: r,
|
|
1978
|
+
syncMethods: w = ["create", "update", "remove", "delete", "set"]
|
|
1979
|
+
} = t, U = {
|
|
1980
|
+
get(d, n) {
|
|
1981
|
+
if (typeof n == "symbol")
|
|
1982
|
+
return d[n];
|
|
1983
|
+
const g = d[n];
|
|
1984
|
+
return typeof g != "function" ? g : w.includes(n) ? async (...h) => {
|
|
1985
|
+
const F = await g.apply(d, h), b = [];
|
|
1986
|
+
for (const p of r) {
|
|
1987
|
+
const S = p.adapter[n];
|
|
1988
|
+
if (typeof S != "function")
|
|
1793
1989
|
continue;
|
|
1794
|
-
const
|
|
1990
|
+
const k = (async () => {
|
|
1795
1991
|
try {
|
|
1796
|
-
await
|
|
1797
|
-
} catch (
|
|
1992
|
+
await S.apply(p.adapter, h);
|
|
1993
|
+
} catch (A) {
|
|
1798
1994
|
try {
|
|
1799
|
-
|
|
1800
|
-
`Passthrough adapter: secondary write failed for ${
|
|
1801
|
-
|
|
1995
|
+
p.onError ? p.onError(A, n, h) : console.error(
|
|
1996
|
+
`Passthrough adapter: secondary write failed for ${n}:`,
|
|
1997
|
+
A
|
|
1802
1998
|
);
|
|
1803
|
-
} catch (
|
|
1999
|
+
} catch (v) {
|
|
1804
2000
|
console.error(
|
|
1805
|
-
`Passthrough adapter: onError handler threw for ${
|
|
1806
|
-
|
|
2001
|
+
`Passthrough adapter: onError handler threw for ${n}:`,
|
|
2002
|
+
v
|
|
1807
2003
|
);
|
|
1808
2004
|
}
|
|
1809
2005
|
}
|
|
1810
2006
|
})();
|
|
1811
|
-
|
|
2007
|
+
p.blocking && b.push(k);
|
|
1812
2008
|
}
|
|
1813
|
-
return
|
|
1814
|
-
} :
|
|
2009
|
+
return b.length > 0 && await Promise.all(b), F;
|
|
2010
|
+
} : g.bind(d);
|
|
1815
2011
|
}
|
|
1816
2012
|
};
|
|
1817
|
-
return new Proxy(
|
|
2013
|
+
return new Proxy(a, U);
|
|
1818
2014
|
}
|
|
1819
|
-
function
|
|
2015
|
+
function Yo(t) {
|
|
1820
2016
|
return t;
|
|
1821
2017
|
}
|
|
1822
2018
|
export {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2019
|
+
$t as Auth0ActionEnum,
|
|
2020
|
+
St as Auth0Client,
|
|
2021
|
+
T as AuthorizationResponseMode,
|
|
2022
|
+
O as AuthorizationResponseType,
|
|
2023
|
+
N as CodeChallengeMethod,
|
|
2024
|
+
y as ComponentCategory,
|
|
2025
|
+
I as ComponentType,
|
|
2026
|
+
eo as EmailActionEnum,
|
|
2027
|
+
Zt as FlowActionTypeEnum,
|
|
2028
|
+
Ot as GrantType,
|
|
2029
|
+
At as LocationInfo,
|
|
2030
|
+
ft as LogTypes,
|
|
2031
|
+
se as NodeType,
|
|
2032
|
+
H as RedirectTargetEnum,
|
|
2033
|
+
ce as actionNodeSchema,
|
|
2034
|
+
Xo as activeUsersResponseSchema,
|
|
2035
|
+
ro as auth0FlowInsertSchema,
|
|
2036
|
+
ue as auth0FlowSchema,
|
|
2037
|
+
oo as auth0QuerySchema,
|
|
2038
|
+
P as auth0UpdateUserActionSchema,
|
|
2039
|
+
io as auth0UserResponseSchema,
|
|
2040
|
+
me as authParamsSchema,
|
|
2041
|
+
C as baseUserSchema,
|
|
2042
|
+
$e as blockComponentSchema,
|
|
2043
|
+
Tt as bordersSchema,
|
|
2044
|
+
lo as brandingSchema,
|
|
2045
|
+
te as buttonComponentSchema,
|
|
2046
|
+
Z as clientGrantInsertSchema,
|
|
2047
|
+
so as clientGrantListSchema,
|
|
2048
|
+
$ as clientGrantSchema,
|
|
2049
|
+
Q as clientInsertSchema,
|
|
2050
|
+
J as clientSchema,
|
|
2051
|
+
Ce as codeInsertSchema,
|
|
2052
|
+
po as codeSchema,
|
|
2053
|
+
Ae as codeTypeSchema,
|
|
2054
|
+
Nt as colorsSchema,
|
|
2055
|
+
rt as componentMessageSchema,
|
|
2056
|
+
ae as componentSchema,
|
|
2057
|
+
be as connectionInsertSchema,
|
|
2058
|
+
he as connectionOptionsSchema,
|
|
2059
|
+
fe as connectionSchema,
|
|
2060
|
+
c as coordinatesSchema,
|
|
2061
|
+
qo as createPassthroughAdapter,
|
|
2062
|
+
Yo as createWriteOnlyAdapter,
|
|
2063
|
+
Ie as customDomainInsertSchema,
|
|
2064
|
+
Oe as customDomainSchema,
|
|
2065
|
+
_o as customDomainWithTenantIdSchema,
|
|
2066
|
+
zo as dailyStatsSchema,
|
|
2067
|
+
wo as emailProviderSchema,
|
|
2068
|
+
x as emailVerificationRulesSchema,
|
|
2069
|
+
M as emailVerifyActionSchema,
|
|
2070
|
+
ge as endingSchema,
|
|
2071
|
+
tt as fieldComponentSchema,
|
|
2072
|
+
B as flowActionStepSchema,
|
|
2073
|
+
K as flowInsertSchema,
|
|
2074
|
+
to as flowSchema,
|
|
2075
|
+
ne as flowsFieldComponentSchema,
|
|
2076
|
+
le as flowsFlowNodeSchema,
|
|
2077
|
+
re as flowsStepNodeSchema,
|
|
2078
|
+
l as fontDetailsSchema,
|
|
2079
|
+
Rt as fontsSchema,
|
|
2080
|
+
go as formControlSchema,
|
|
2081
|
+
st as formInsertSchema,
|
|
2082
|
+
R as formNodeComponentDefinition,
|
|
2083
|
+
at as formNodeSchema,
|
|
2084
|
+
uo as formSchema,
|
|
2085
|
+
ie as genericComponentSchema,
|
|
2086
|
+
pe as genericNodeSchema,
|
|
2087
|
+
Eo as hookInsertSchema,
|
|
2088
|
+
So as hookSchema,
|
|
2089
|
+
z as identitySchema,
|
|
2090
|
+
mt as inviteInsertSchema,
|
|
2091
|
+
Ao as inviteSchema,
|
|
2092
|
+
ut as inviteeSchema,
|
|
2093
|
+
gt as inviterSchema,
|
|
2094
|
+
ho as isBlockComponent,
|
|
2095
|
+
fo as isFieldComponent,
|
|
2096
|
+
bo as isWidgetComponent,
|
|
2097
|
+
Co as jwksKeySchema,
|
|
2098
|
+
ht as jwksSchema,
|
|
2099
|
+
co as legacyClientSchema,
|
|
2100
|
+
oe as legalComponentSchema,
|
|
2101
|
+
Ct as logInsertSchema,
|
|
2102
|
+
Oo as logSchema,
|
|
2103
|
+
bt as loginSessionInsertSchema,
|
|
2104
|
+
yo as loginSessionSchema,
|
|
2105
|
+
_e as nodeSchema,
|
|
2106
|
+
Io as openIDConfigurationSchema,
|
|
2107
|
+
Xt as organizationBrandingSchema,
|
|
2108
|
+
Vt as organizationEnabledConnectionSchema,
|
|
2109
|
+
Yt as organizationInsertSchema,
|
|
2110
|
+
Bo as organizationSchema,
|
|
2111
|
+
qt as organizationTokenQuotaSchema,
|
|
2112
|
+
Lt as pageBackgroundSchema,
|
|
2113
|
+
Vo as parseUserId,
|
|
2114
|
+
It as passwordInsertSchema,
|
|
2115
|
+
To as passwordSchema,
|
|
2116
|
+
W as profileDataSchema,
|
|
2117
|
+
jo as promptSettingSchema,
|
|
2118
|
+
G as redirectActionSchema,
|
|
2119
|
+
wt as refreshTokenInsertSchema,
|
|
2120
|
+
Uo as refreshTokenSchema,
|
|
2121
|
+
kt as resourceServerInsertSchema,
|
|
2122
|
+
vo as resourceServerListSchema,
|
|
2123
|
+
Ft as resourceServerOptionsSchema,
|
|
2124
|
+
vt as resourceServerSchema,
|
|
2125
|
+
Ut as resourceServerScopeSchema,
|
|
2126
|
+
ee as richTextComponentSchema,
|
|
2127
|
+
Wt as roleInsertSchema,
|
|
2128
|
+
Go as roleListSchema,
|
|
2129
|
+
xt as rolePermissionInsertSchema,
|
|
2130
|
+
xo as rolePermissionListSchema,
|
|
2131
|
+
Pt as rolePermissionSchema,
|
|
2132
|
+
zt as roleSchema,
|
|
2133
|
+
lt as screenLinkSchema,
|
|
2134
|
+
yt as sessionInsertSchema,
|
|
2135
|
+
No as sessionSchema,
|
|
2136
|
+
Ro as signingKeySchema,
|
|
2137
|
+
ko as smsProviderSchema,
|
|
2138
|
+
Fo as smsSendParamsSchema,
|
|
2139
|
+
de as startSchema,
|
|
2140
|
+
Ee as tenantInsertSchema,
|
|
2141
|
+
Se as tenantSchema,
|
|
2142
|
+
Wo as tenantSettingsSchema,
|
|
2143
|
+
jt as themeInsertSchema,
|
|
2144
|
+
Do as themeSchema,
|
|
2145
|
+
Lo as tokenResponseSchema,
|
|
2146
|
+
no as totalsSchema,
|
|
2147
|
+
mo as uiScreenSchema,
|
|
2148
|
+
X as userInsertSchema,
|
|
2149
|
+
Qt as userOrganizationInsertSchema,
|
|
2150
|
+
Ko as userOrganizationSchema,
|
|
2151
|
+
Mt as userPermissionInsertSchema,
|
|
2152
|
+
Po as userPermissionListSchema,
|
|
2153
|
+
Ht as userPermissionSchema,
|
|
2154
|
+
Mo as userPermissionWithDetailsListSchema,
|
|
2155
|
+
Gt as userPermissionWithDetailsSchema,
|
|
2156
|
+
ao as userResponseSchema,
|
|
2157
|
+
Bt as userRoleInsertSchema,
|
|
2158
|
+
Ho as userRoleListSchema,
|
|
2159
|
+
Kt as userRoleSchema,
|
|
2160
|
+
V as userSchema,
|
|
2161
|
+
ye as verificationMethodsSchema,
|
|
2162
|
+
et as widgetComponentSchema,
|
|
2163
|
+
Dt as widgetSchema
|
|
1958
2164
|
};
|