@authhero/adapter-interfaces 0.111.0 → 0.113.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 +18977 -1748
- package/dist/adapter-interfaces.mjs +711 -506
- 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,23 +619,24 @@ 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(),
|
|
631
631
|
is_domain_connection: e.boolean().optional(),
|
|
632
632
|
show_as_button: e.boolean().optional(),
|
|
633
|
-
metadata: e.record(e.any()).optional()
|
|
634
|
-
|
|
633
|
+
metadata: e.record(e.any()).optional(),
|
|
634
|
+
is_system: e.boolean().optional()
|
|
635
|
+
}), fe = e.object({
|
|
635
636
|
id: e.string(),
|
|
636
637
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
637
638
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
638
|
-
}).extend(
|
|
639
|
+
}).extend(be.shape), Ee = e.object({
|
|
639
640
|
id: e.string().optional(),
|
|
640
641
|
// Basic settings
|
|
641
642
|
audience: e.string(),
|
|
@@ -755,23 +756,23 @@ const de = e.object({
|
|
|
755
756
|
// Authorization settings
|
|
756
757
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
757
758
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
758
|
-
}),
|
|
759
|
+
}), Se = e.object({
|
|
759
760
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
760
761
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
761
|
-
...
|
|
762
|
+
...Ee.shape,
|
|
762
763
|
id: e.string()
|
|
763
|
-
}),
|
|
764
|
-
...
|
|
765
|
-
tenant:
|
|
766
|
-
connections: e.array(
|
|
767
|
-
}),
|
|
764
|
+
}), co = e.object({
|
|
765
|
+
...J.shape,
|
|
766
|
+
tenant: Se,
|
|
767
|
+
connections: e.array(fe)
|
|
768
|
+
}), Ae = e.enum([
|
|
768
769
|
"password_reset",
|
|
769
770
|
"email_verification",
|
|
770
771
|
"otp",
|
|
771
772
|
"authorization_code",
|
|
772
773
|
"oauth2_state",
|
|
773
774
|
"ticket"
|
|
774
|
-
]),
|
|
775
|
+
]), Ce = e.object({
|
|
775
776
|
code_id: e.string().openapi({
|
|
776
777
|
description: "The code that will be used in for instance an email verification flow"
|
|
777
778
|
}),
|
|
@@ -781,7 +782,7 @@ const de = e.object({
|
|
|
781
782
|
connection_id: e.string().optional().openapi({
|
|
782
783
|
description: "The connection that the code is connected to"
|
|
783
784
|
}),
|
|
784
|
-
code_type:
|
|
785
|
+
code_type: Ae,
|
|
785
786
|
code_verifier: e.string().optional().openapi({
|
|
786
787
|
description: "The code verifier used in PKCE in outbound flows"
|
|
787
788
|
}),
|
|
@@ -803,10 +804,10 @@ const de = e.object({
|
|
|
803
804
|
expires_at: e.string(),
|
|
804
805
|
used_at: e.string().optional(),
|
|
805
806
|
user_id: e.string().optional()
|
|
806
|
-
}),
|
|
807
|
-
...
|
|
807
|
+
}), po = e.object({
|
|
808
|
+
...Ce.shape,
|
|
808
809
|
created_at: e.string()
|
|
809
|
-
}),
|
|
810
|
+
}), Ie = e.object({
|
|
810
811
|
domain: e.string(),
|
|
811
812
|
custom_domain_id: e.string().optional(),
|
|
812
813
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -820,23 +821,249 @@ const de = e.object({
|
|
|
820
821
|
"null"
|
|
821
822
|
]).optional(),
|
|
822
823
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
823
|
-
}),
|
|
824
|
+
}), ye = e.object({
|
|
824
825
|
name: e.literal("txt"),
|
|
825
826
|
record: e.string(),
|
|
826
827
|
domain: e.string()
|
|
827
|
-
}),
|
|
828
|
-
...
|
|
828
|
+
}), Oe = e.object({
|
|
829
|
+
...Ie.shape,
|
|
829
830
|
custom_domain_id: e.string(),
|
|
830
831
|
primary: e.boolean(),
|
|
831
832
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
832
833
|
origin_domain_name: e.string().optional(),
|
|
833
834
|
verification: e.object({
|
|
834
|
-
methods: e.array(
|
|
835
|
+
methods: e.array(ye)
|
|
835
836
|
}).optional(),
|
|
836
837
|
tls_policy: e.string().optional()
|
|
837
|
-
}),
|
|
838
|
+
}), _o = Oe.extend({
|
|
838
839
|
tenant_id: e.string()
|
|
839
|
-
}),
|
|
840
|
+
}), f = e.object({
|
|
841
|
+
id: e.string(),
|
|
842
|
+
order: e.number().optional(),
|
|
843
|
+
visible: e.boolean().optional().default(!0)
|
|
844
|
+
}), i = f.extend({
|
|
845
|
+
category: e.literal("BLOCK").optional()
|
|
846
|
+
}), Te = i.extend({
|
|
847
|
+
type: e.literal("DIVIDER"),
|
|
848
|
+
config: e.object({}).optional()
|
|
849
|
+
}), Ne = i.extend({
|
|
850
|
+
type: e.literal("HTML"),
|
|
851
|
+
config: e.object({
|
|
852
|
+
content: e.string().optional()
|
|
853
|
+
}).optional()
|
|
854
|
+
}), Re = i.extend({
|
|
855
|
+
type: e.literal("IMAGE"),
|
|
856
|
+
config: e.object({
|
|
857
|
+
src: e.string().optional(),
|
|
858
|
+
alt: e.string().optional(),
|
|
859
|
+
width: e.number().optional(),
|
|
860
|
+
height: e.number().optional()
|
|
861
|
+
}).optional()
|
|
862
|
+
}), Le = i.extend({
|
|
863
|
+
type: e.literal("JUMP_BUTTON"),
|
|
864
|
+
config: e.object({
|
|
865
|
+
text: e.string().optional(),
|
|
866
|
+
target_step: e.string().optional()
|
|
867
|
+
})
|
|
868
|
+
}), De = i.extend({
|
|
869
|
+
type: e.literal("RESEND_BUTTON"),
|
|
870
|
+
config: e.object({
|
|
871
|
+
text: e.string().optional(),
|
|
872
|
+
resend_action: e.string().optional()
|
|
873
|
+
})
|
|
874
|
+
}), je = i.extend({
|
|
875
|
+
type: e.literal("NEXT_BUTTON"),
|
|
876
|
+
config: e.object({
|
|
877
|
+
text: e.string().optional()
|
|
878
|
+
})
|
|
879
|
+
}), we = i.extend({
|
|
880
|
+
type: e.literal("PREVIOUS_BUTTON"),
|
|
881
|
+
config: e.object({
|
|
882
|
+
text: e.string().optional()
|
|
883
|
+
})
|
|
884
|
+
}), Ue = i.extend({
|
|
885
|
+
type: e.literal("RICH_TEXT"),
|
|
886
|
+
config: e.object({
|
|
887
|
+
content: e.string().optional()
|
|
888
|
+
}).optional()
|
|
889
|
+
}), E = f.extend({
|
|
890
|
+
category: e.literal("WIDGET").optional(),
|
|
891
|
+
label: e.string().min(1).optional(),
|
|
892
|
+
hint: e.string().min(1).max(500).optional(),
|
|
893
|
+
required: e.boolean().optional(),
|
|
894
|
+
sensitive: e.boolean().optional()
|
|
895
|
+
}), Fe = E.extend({
|
|
896
|
+
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
897
|
+
config: e.object({
|
|
898
|
+
credential_type: e.string().optional()
|
|
899
|
+
})
|
|
900
|
+
}), ke = E.extend({
|
|
901
|
+
type: e.literal("GMAPS_ADDRESS"),
|
|
902
|
+
config: e.object({
|
|
903
|
+
api_key: e.string().optional()
|
|
904
|
+
})
|
|
905
|
+
}), ve = E.extend({
|
|
906
|
+
type: e.literal("RECAPTCHA"),
|
|
907
|
+
config: e.object({
|
|
908
|
+
site_key: e.string().optional()
|
|
909
|
+
})
|
|
910
|
+
}), o = f.extend({
|
|
911
|
+
category: e.literal("FIELD").optional(),
|
|
912
|
+
label: e.string().min(1).optional(),
|
|
913
|
+
hint: e.string().min(1).max(500).optional(),
|
|
914
|
+
required: e.boolean().optional(),
|
|
915
|
+
sensitive: e.boolean().optional()
|
|
916
|
+
}), xe = o.extend({
|
|
917
|
+
type: e.literal("BOOLEAN"),
|
|
918
|
+
config: e.object({
|
|
919
|
+
default_value: e.boolean().optional()
|
|
920
|
+
}).optional()
|
|
921
|
+
}), Pe = o.extend({
|
|
922
|
+
type: e.literal("CARDS"),
|
|
923
|
+
config: e.object({
|
|
924
|
+
options: e.array(
|
|
925
|
+
e.object({
|
|
926
|
+
value: e.string(),
|
|
927
|
+
label: e.string(),
|
|
928
|
+
description: e.string().optional(),
|
|
929
|
+
image: e.string().optional()
|
|
930
|
+
})
|
|
931
|
+
).optional(),
|
|
932
|
+
multi_select: e.boolean().optional()
|
|
933
|
+
}).optional()
|
|
934
|
+
}), Me = o.extend({
|
|
935
|
+
type: e.literal("CHOICE"),
|
|
936
|
+
config: e.object({
|
|
937
|
+
options: e.array(
|
|
938
|
+
e.object({
|
|
939
|
+
value: e.string(),
|
|
940
|
+
label: e.string()
|
|
941
|
+
})
|
|
942
|
+
).optional(),
|
|
943
|
+
display: e.enum(["radio", "checkbox"]).optional()
|
|
944
|
+
}).optional()
|
|
945
|
+
}), He = o.extend({
|
|
946
|
+
type: e.literal("CUSTOM"),
|
|
947
|
+
config: e.object({
|
|
948
|
+
component: e.string().optional(),
|
|
949
|
+
props: e.record(e.any()).optional()
|
|
950
|
+
})
|
|
951
|
+
}), Ge = o.extend({
|
|
952
|
+
type: e.literal("DATE"),
|
|
953
|
+
config: e.object({
|
|
954
|
+
format: e.string().optional(),
|
|
955
|
+
min: e.string().optional(),
|
|
956
|
+
max: e.string().optional()
|
|
957
|
+
}).optional()
|
|
958
|
+
}), Be = o.extend({
|
|
959
|
+
type: e.literal("DROPDOWN"),
|
|
960
|
+
config: e.object({
|
|
961
|
+
options: e.array(
|
|
962
|
+
e.object({
|
|
963
|
+
value: e.string(),
|
|
964
|
+
label: e.string()
|
|
965
|
+
})
|
|
966
|
+
).optional(),
|
|
967
|
+
placeholder: e.string().optional(),
|
|
968
|
+
searchable: e.boolean().optional()
|
|
969
|
+
}).optional()
|
|
970
|
+
}), Ke = o.extend({
|
|
971
|
+
type: e.literal("EMAIL"),
|
|
972
|
+
config: e.object({
|
|
973
|
+
placeholder: e.string().optional()
|
|
974
|
+
}).optional()
|
|
975
|
+
}), We = o.extend({
|
|
976
|
+
type: e.literal("FILE"),
|
|
977
|
+
config: e.object({
|
|
978
|
+
accept: e.string().optional(),
|
|
979
|
+
max_size: e.number().optional(),
|
|
980
|
+
multiple: e.boolean().optional()
|
|
981
|
+
}).optional()
|
|
982
|
+
}), ze = o.extend({
|
|
983
|
+
type: e.literal("LEGAL"),
|
|
984
|
+
config: e.object({
|
|
985
|
+
text: e.string(),
|
|
986
|
+
html: e.boolean().optional()
|
|
987
|
+
}).optional()
|
|
988
|
+
}), Xe = o.extend({
|
|
989
|
+
type: e.literal("NUMBER"),
|
|
990
|
+
config: e.object({
|
|
991
|
+
placeholder: e.string().optional(),
|
|
992
|
+
min: e.number().optional(),
|
|
993
|
+
max: e.number().optional(),
|
|
994
|
+
step: e.number().optional()
|
|
995
|
+
}).optional()
|
|
996
|
+
}), Ve = o.extend({
|
|
997
|
+
type: e.literal("PASSWORD"),
|
|
998
|
+
config: e.object({
|
|
999
|
+
placeholder: e.string().optional(),
|
|
1000
|
+
min_length: e.number().optional(),
|
|
1001
|
+
show_toggle: e.boolean().optional()
|
|
1002
|
+
}).optional()
|
|
1003
|
+
}), qe = o.extend({
|
|
1004
|
+
type: e.literal("PAYMENT"),
|
|
1005
|
+
config: e.object({
|
|
1006
|
+
provider: e.string().optional(),
|
|
1007
|
+
currency: e.string().optional()
|
|
1008
|
+
}).optional()
|
|
1009
|
+
}), Ye = o.extend({
|
|
1010
|
+
type: e.literal("SOCIAL"),
|
|
1011
|
+
config: e.object({
|
|
1012
|
+
providers: e.array(e.string()).optional()
|
|
1013
|
+
}).optional()
|
|
1014
|
+
}), Qe = o.extend({
|
|
1015
|
+
type: e.literal("TEL"),
|
|
1016
|
+
config: e.object({
|
|
1017
|
+
placeholder: e.string().optional(),
|
|
1018
|
+
default_country: e.string().optional()
|
|
1019
|
+
}).optional()
|
|
1020
|
+
}), Je = o.extend({
|
|
1021
|
+
type: e.literal("TEXT"),
|
|
1022
|
+
config: e.object({
|
|
1023
|
+
placeholder: e.string().optional(),
|
|
1024
|
+
multiline: e.boolean().optional(),
|
|
1025
|
+
max_length: e.number().optional()
|
|
1026
|
+
}).optional()
|
|
1027
|
+
}), Ze = o.extend({
|
|
1028
|
+
type: e.literal("URL"),
|
|
1029
|
+
config: e.object({
|
|
1030
|
+
placeholder: e.string().optional()
|
|
1031
|
+
}).optional()
|
|
1032
|
+
}), $e = e.discriminatedUnion("type", [
|
|
1033
|
+
Te,
|
|
1034
|
+
Ne,
|
|
1035
|
+
Re,
|
|
1036
|
+
Le,
|
|
1037
|
+
De,
|
|
1038
|
+
je,
|
|
1039
|
+
we,
|
|
1040
|
+
Ue
|
|
1041
|
+
]), et = e.discriminatedUnion("type", [
|
|
1042
|
+
Fe,
|
|
1043
|
+
ke,
|
|
1044
|
+
ve
|
|
1045
|
+
]), tt = e.discriminatedUnion("type", [
|
|
1046
|
+
xe,
|
|
1047
|
+
Pe,
|
|
1048
|
+
Me,
|
|
1049
|
+
He,
|
|
1050
|
+
Ge,
|
|
1051
|
+
Be,
|
|
1052
|
+
Ke,
|
|
1053
|
+
We,
|
|
1054
|
+
ze,
|
|
1055
|
+
Xe,
|
|
1056
|
+
Ve,
|
|
1057
|
+
qe,
|
|
1058
|
+
Ye,
|
|
1059
|
+
Qe,
|
|
1060
|
+
Je,
|
|
1061
|
+
Ze
|
|
1062
|
+
]), R = e.union([
|
|
1063
|
+
$e,
|
|
1064
|
+
et,
|
|
1065
|
+
tt
|
|
1066
|
+
]), go = e.object({
|
|
840
1067
|
id: e.string(),
|
|
841
1068
|
type: e.literal("submit"),
|
|
842
1069
|
label: e.string(),
|
|
@@ -845,66 +1072,48 @@ const de = e.object({
|
|
|
845
1072
|
order: e.number().optional(),
|
|
846
1073
|
visible: e.boolean().optional().default(!0),
|
|
847
1074
|
customizations: e.record(e.string(), e.any()).optional()
|
|
848
|
-
}),
|
|
1075
|
+
}), _ = e.object({
|
|
1076
|
+
x: e.number(),
|
|
1077
|
+
y: e.number()
|
|
1078
|
+
}), ot = e.object({
|
|
849
1079
|
id: e.string(),
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
required: e.boolean().optional(),
|
|
857
|
-
sensitive: e.boolean().optional()
|
|
858
|
-
}), Ce = e.discriminatedUnion("type", [
|
|
859
|
-
f.extend({
|
|
860
|
-
type: e.literal("RICH_TEXT"),
|
|
861
|
-
config: e.object({
|
|
862
|
-
content: e.string()
|
|
863
|
-
})
|
|
864
|
-
}),
|
|
865
|
-
c.omit({ sensitive: !0 }).extend({
|
|
866
|
-
type: e.literal("LEGAL"),
|
|
867
|
-
config: e.object({
|
|
868
|
-
text: e.string(),
|
|
869
|
-
html: e.boolean().optional()
|
|
870
|
-
})
|
|
871
|
-
}),
|
|
872
|
-
c.extend({
|
|
873
|
-
type: e.literal("TEXT"),
|
|
874
|
-
config: e.object({
|
|
875
|
-
placeholder: e.string().optional(),
|
|
876
|
-
multiline: e.boolean().optional()
|
|
877
|
-
})
|
|
878
|
-
}),
|
|
879
|
-
f.extend({
|
|
880
|
-
type: e.literal("NEXT_BUTTON"),
|
|
881
|
-
config: e.object({
|
|
882
|
-
text: e.string().optional()
|
|
883
|
-
})
|
|
884
|
-
}),
|
|
885
|
-
c.extend({
|
|
886
|
-
type: e.literal("EMAIL"),
|
|
887
|
-
config: e.object({
|
|
888
|
-
label: e.string().optional(),
|
|
889
|
-
placeholder: e.string().optional()
|
|
890
|
-
})
|
|
891
|
-
}),
|
|
892
|
-
c.extend({
|
|
893
|
-
type: e.literal("NUMBER"),
|
|
894
|
-
config: e.object({
|
|
895
|
-
label: e.string().optional(),
|
|
896
|
-
placeholder: e.string().optional()
|
|
897
|
-
})
|
|
898
|
-
}),
|
|
899
|
-
c.extend({
|
|
900
|
-
type: e.literal("PHONE"),
|
|
901
|
-
config: e.object({
|
|
902
|
-
label: e.string().optional(),
|
|
903
|
-
placeholder: e.string().optional()
|
|
904
|
-
})
|
|
1080
|
+
type: e.literal("FLOW"),
|
|
1081
|
+
coordinates: _,
|
|
1082
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1083
|
+
config: e.object({
|
|
1084
|
+
flow_id: e.string().max(30),
|
|
1085
|
+
next_node: e.string().optional()
|
|
905
1086
|
})
|
|
906
|
-
|
|
907
|
-
|
|
1087
|
+
}), nt = e.object({
|
|
1088
|
+
id: e.string(),
|
|
1089
|
+
type: e.literal("ROUTER"),
|
|
1090
|
+
coordinates: _,
|
|
1091
|
+
alias: e.string().min(1).max(150),
|
|
1092
|
+
config: e.object({
|
|
1093
|
+
rules: e.array(
|
|
1094
|
+
e.object({
|
|
1095
|
+
id: e.string(),
|
|
1096
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1097
|
+
condition: e.any(),
|
|
1098
|
+
next_node: e.string()
|
|
1099
|
+
})
|
|
1100
|
+
),
|
|
1101
|
+
fallback: e.string()
|
|
1102
|
+
})
|
|
1103
|
+
}), it = e.object({
|
|
1104
|
+
id: e.string(),
|
|
1105
|
+
type: e.literal("STEP"),
|
|
1106
|
+
coordinates: _,
|
|
1107
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1108
|
+
config: e.object({
|
|
1109
|
+
components: e.array(R),
|
|
1110
|
+
next_node: e.string().optional()
|
|
1111
|
+
})
|
|
1112
|
+
}), at = e.discriminatedUnion("type", [
|
|
1113
|
+
ot,
|
|
1114
|
+
nt,
|
|
1115
|
+
it
|
|
1116
|
+
]), st = e.object({
|
|
908
1117
|
name: e.string().openapi({
|
|
909
1118
|
description: "The name of the form"
|
|
910
1119
|
}),
|
|
@@ -917,54 +1126,11 @@ const de = e.object({
|
|
|
917
1126
|
default: e.string().optional()
|
|
918
1127
|
}).optional(),
|
|
919
1128
|
translations: e.record(e.string(), e.any()).optional(),
|
|
920
|
-
nodes: e.array(
|
|
921
|
-
e.discriminatedUnion("type", [
|
|
922
|
-
// FLOW node
|
|
923
|
-
e.object({
|
|
924
|
-
id: e.string(),
|
|
925
|
-
type: e.literal("FLOW"),
|
|
926
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
927
|
-
alias: e.string().min(1).max(150).optional(),
|
|
928
|
-
config: e.object({
|
|
929
|
-
flow_id: e.string().max(30),
|
|
930
|
-
next_node: e.string().optional()
|
|
931
|
-
})
|
|
932
|
-
}),
|
|
933
|
-
// ROUTER node
|
|
934
|
-
e.object({
|
|
935
|
-
id: e.string(),
|
|
936
|
-
type: e.literal("ROUTER"),
|
|
937
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
938
|
-
alias: e.string().min(1).max(150),
|
|
939
|
-
config: e.object({
|
|
940
|
-
rules: e.array(
|
|
941
|
-
e.object({
|
|
942
|
-
id: e.string(),
|
|
943
|
-
alias: e.string().min(1).max(150).optional(),
|
|
944
|
-
condition: e.any(),
|
|
945
|
-
next_node: e.string()
|
|
946
|
-
})
|
|
947
|
-
),
|
|
948
|
-
fallback: e.string()
|
|
949
|
-
})
|
|
950
|
-
}),
|
|
951
|
-
// STEP node
|
|
952
|
-
e.object({
|
|
953
|
-
id: e.string(),
|
|
954
|
-
type: e.literal("STEP"),
|
|
955
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
956
|
-
alias: e.string().min(1).max(150).optional(),
|
|
957
|
-
config: e.object({
|
|
958
|
-
components: e.array(Ce),
|
|
959
|
-
next_node: e.string().optional()
|
|
960
|
-
})
|
|
961
|
-
})
|
|
962
|
-
])
|
|
963
|
-
).optional(),
|
|
1129
|
+
nodes: e.array(at).optional(),
|
|
964
1130
|
start: e.object({
|
|
965
1131
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
966
1132
|
next_node: e.string().optional(),
|
|
967
|
-
coordinates:
|
|
1133
|
+
coordinates: _.optional()
|
|
968
1134
|
}).optional(),
|
|
969
1135
|
ending: e.object({
|
|
970
1136
|
redirection: e.object({
|
|
@@ -972,17 +1138,44 @@ const de = e.object({
|
|
|
972
1138
|
target: e.string().optional()
|
|
973
1139
|
}).optional(),
|
|
974
1140
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
975
|
-
coordinates:
|
|
1141
|
+
coordinates: _.optional(),
|
|
976
1142
|
resume_flow: e.boolean().optional()
|
|
977
1143
|
}).optional(),
|
|
978
1144
|
style: e.object({ css: e.string().optional() }).optional()
|
|
979
1145
|
}).openapi({
|
|
980
|
-
description: "Schema for flow-based forms (matches
|
|
981
|
-
}),
|
|
982
|
-
...
|
|
983
|
-
...
|
|
1146
|
+
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1147
|
+
}), uo = e.object({
|
|
1148
|
+
...s.shape,
|
|
1149
|
+
...st.shape,
|
|
984
1150
|
id: e.string()
|
|
985
|
-
}),
|
|
1151
|
+
}), rt = e.object({
|
|
1152
|
+
id: e.number().optional(),
|
|
1153
|
+
text: e.string(),
|
|
1154
|
+
type: e.enum(["info", "error", "success", "warning"])
|
|
1155
|
+
}), lt = e.object({
|
|
1156
|
+
id: e.string().optional(),
|
|
1157
|
+
text: e.string(),
|
|
1158
|
+
href: e.string(),
|
|
1159
|
+
linkText: e.string().optional()
|
|
1160
|
+
}), mo = e.object({
|
|
1161
|
+
action: e.string(),
|
|
1162
|
+
method: e.enum(["POST", "GET"]),
|
|
1163
|
+
title: e.string().optional(),
|
|
1164
|
+
description: e.string().optional(),
|
|
1165
|
+
components: e.array(R),
|
|
1166
|
+
messages: e.array(rt).optional(),
|
|
1167
|
+
links: e.array(lt).optional()
|
|
1168
|
+
});
|
|
1169
|
+
function ho(t) {
|
|
1170
|
+
return t.category === "BLOCK";
|
|
1171
|
+
}
|
|
1172
|
+
function bo(t) {
|
|
1173
|
+
return t.category === "WIDGET";
|
|
1174
|
+
}
|
|
1175
|
+
function fo(t) {
|
|
1176
|
+
return t.category === "FIELD";
|
|
1177
|
+
}
|
|
1178
|
+
const L = e.enum([
|
|
986
1179
|
"pre-user-registration",
|
|
987
1180
|
"post-user-registration",
|
|
988
1181
|
"post-user-login",
|
|
@@ -990,49 +1183,49 @@ const de = e.object({
|
|
|
990
1183
|
"pre-user-deletion",
|
|
991
1184
|
"post-user-deletion"
|
|
992
1185
|
// Potentially other triggers specific to webhooks in the future
|
|
993
|
-
]),
|
|
1186
|
+
]), D = e.enum([
|
|
994
1187
|
"pre-user-registration",
|
|
995
1188
|
"post-user-registration",
|
|
996
1189
|
"post-user-login",
|
|
997
1190
|
"validate-registration-username",
|
|
998
1191
|
"pre-user-deletion",
|
|
999
1192
|
"post-user-deletion"
|
|
1000
|
-
]),
|
|
1193
|
+
]), m = {
|
|
1001
1194
|
enabled: e.boolean().default(!1),
|
|
1002
1195
|
synchronous: e.boolean().default(!1),
|
|
1003
1196
|
priority: e.number().optional(),
|
|
1004
1197
|
hook_id: e.string().optional()
|
|
1005
|
-
},
|
|
1006
|
-
...
|
|
1007
|
-
trigger_id:
|
|
1198
|
+
}, ct = e.object({
|
|
1199
|
+
...m,
|
|
1200
|
+
trigger_id: L,
|
|
1008
1201
|
url: e.string()
|
|
1009
|
-
}),
|
|
1010
|
-
...
|
|
1011
|
-
trigger_id:
|
|
1202
|
+
}), pt = e.object({
|
|
1203
|
+
...m,
|
|
1204
|
+
trigger_id: D,
|
|
1012
1205
|
form_id: e.string()
|
|
1013
|
-
}),
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
]),
|
|
1017
|
-
...
|
|
1018
|
-
trigger_id:
|
|
1019
|
-
...
|
|
1206
|
+
}), Eo = e.union([
|
|
1207
|
+
ct,
|
|
1208
|
+
pt
|
|
1209
|
+
]), _t = e.object({
|
|
1210
|
+
...m,
|
|
1211
|
+
trigger_id: L,
|
|
1212
|
+
...s.shape,
|
|
1020
1213
|
hook_id: e.string(),
|
|
1021
1214
|
url: e.string()
|
|
1022
|
-
}),
|
|
1023
|
-
...
|
|
1024
|
-
trigger_id:
|
|
1025
|
-
...
|
|
1215
|
+
}), dt = e.object({
|
|
1216
|
+
...m,
|
|
1217
|
+
trigger_id: D,
|
|
1218
|
+
...s.shape,
|
|
1026
1219
|
hook_id: e.string(),
|
|
1027
1220
|
form_id: e.string()
|
|
1028
|
-
}),
|
|
1221
|
+
}), So = e.union([_t, dt]), gt = e.object({
|
|
1029
1222
|
name: e.string().optional()
|
|
1030
|
-
}),
|
|
1223
|
+
}), ut = e.object({
|
|
1031
1224
|
email: e.string().optional()
|
|
1032
|
-
}),
|
|
1225
|
+
}), mt = e.object({
|
|
1033
1226
|
organization_id: e.string().max(50),
|
|
1034
|
-
inviter:
|
|
1035
|
-
invitee:
|
|
1227
|
+
inviter: gt,
|
|
1228
|
+
invitee: ut,
|
|
1036
1229
|
invitation_url: e.string().url(),
|
|
1037
1230
|
client_id: e.string(),
|
|
1038
1231
|
connection_id: e.string().optional(),
|
|
@@ -1041,13 +1234,13 @@ const de = e.object({
|
|
|
1041
1234
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1042
1235
|
roles: e.array(e.string()).default([]).optional(),
|
|
1043
1236
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1044
|
-
}),
|
|
1237
|
+
}), Ao = e.object({
|
|
1045
1238
|
id: e.string(),
|
|
1046
1239
|
organization_id: e.string().max(50),
|
|
1047
1240
|
created_at: e.string().datetime(),
|
|
1048
1241
|
expires_at: e.string().datetime(),
|
|
1049
1242
|
ticket_id: e.string().optional()
|
|
1050
|
-
}).extend(
|
|
1243
|
+
}).extend(mt.shape), ht = e.object({
|
|
1051
1244
|
alg: e.enum([
|
|
1052
1245
|
"RS256",
|
|
1053
1246
|
"RS384",
|
|
@@ -1066,9 +1259,9 @@ const de = e.object({
|
|
|
1066
1259
|
x5t: e.string().optional(),
|
|
1067
1260
|
x5c: e.array(e.string()).optional(),
|
|
1068
1261
|
use: e.enum(["sig", "enc"]).optional()
|
|
1069
|
-
}),
|
|
1070
|
-
keys: e.array(
|
|
1071
|
-
}),
|
|
1262
|
+
}), Co = e.object({
|
|
1263
|
+
keys: e.array(ht)
|
|
1264
|
+
}), Io = e.object({
|
|
1072
1265
|
issuer: e.string(),
|
|
1073
1266
|
authorization_endpoint: e.string(),
|
|
1074
1267
|
token_endpoint: e.string(),
|
|
@@ -1089,10 +1282,10 @@ const de = e.object({
|
|
|
1089
1282
|
request_uri_parameter_supported: e.boolean(),
|
|
1090
1283
|
request_parameter_supported: e.boolean(),
|
|
1091
1284
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1092
|
-
}),
|
|
1285
|
+
}), bt = e.object({
|
|
1093
1286
|
csrf_token: e.string(),
|
|
1094
1287
|
auth0Client: e.string().optional(),
|
|
1095
|
-
authParams:
|
|
1288
|
+
authParams: me,
|
|
1096
1289
|
expires_at: e.string(),
|
|
1097
1290
|
deleted_at: e.string().optional(),
|
|
1098
1291
|
ip: e.string().optional(),
|
|
@@ -1102,14 +1295,14 @@ const de = e.object({
|
|
|
1102
1295
|
login_completed: e.boolean().optional().default(!1)
|
|
1103
1296
|
}).openapi({
|
|
1104
1297
|
description: "This represents a login sesion"
|
|
1105
|
-
}),
|
|
1106
|
-
...
|
|
1298
|
+
}), yo = e.object({
|
|
1299
|
+
...bt.shape,
|
|
1107
1300
|
id: e.string().openapi({
|
|
1108
1301
|
description: "This is is used as the state in the universal login"
|
|
1109
1302
|
}),
|
|
1110
1303
|
created_at: e.string(),
|
|
1111
1304
|
updated_at: e.string()
|
|
1112
|
-
}),
|
|
1305
|
+
}), ft = {
|
|
1113
1306
|
// Network & System
|
|
1114
1307
|
ACLS_SUMMARY: "acls_summary",
|
|
1115
1308
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1276,24 +1469,24 @@ const de = e.object({
|
|
|
1276
1469
|
WARNING_DURING_LOGIN: "w",
|
|
1277
1470
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1278
1471
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1279
|
-
},
|
|
1280
|
-
(t) => Object.values(
|
|
1472
|
+
}, Et = e.string().refine(
|
|
1473
|
+
(t) => Object.values(ft).includes(t),
|
|
1281
1474
|
{ message: "Invalid log type" }
|
|
1282
|
-
),
|
|
1475
|
+
), St = e.object({
|
|
1283
1476
|
name: e.string(),
|
|
1284
1477
|
version: e.string(),
|
|
1285
1478
|
env: e.object({
|
|
1286
1479
|
node: e.string().optional()
|
|
1287
1480
|
}).optional()
|
|
1288
|
-
}),
|
|
1481
|
+
}), At = e.object({
|
|
1289
1482
|
country_code: e.string().length(2),
|
|
1290
1483
|
city_name: e.string(),
|
|
1291
1484
|
latitude: e.string(),
|
|
1292
1485
|
longitude: e.string(),
|
|
1293
1486
|
time_zone: e.string(),
|
|
1294
1487
|
continent_code: e.string()
|
|
1295
|
-
}),
|
|
1296
|
-
type:
|
|
1488
|
+
}), Ct = e.object({
|
|
1489
|
+
type: Et,
|
|
1297
1490
|
date: e.string(),
|
|
1298
1491
|
description: e.string().optional(),
|
|
1299
1492
|
ip: e.string().optional(),
|
|
@@ -1312,30 +1505,30 @@ const de = e.object({
|
|
|
1312
1505
|
strategy: e.string().optional(),
|
|
1313
1506
|
strategy_type: e.string().optional(),
|
|
1314
1507
|
hostname: e.string().optional(),
|
|
1315
|
-
auth0_client:
|
|
1508
|
+
auth0_client: St.optional(),
|
|
1316
1509
|
log_id: e.string().optional(),
|
|
1317
|
-
location_info:
|
|
1318
|
-
}),
|
|
1319
|
-
...
|
|
1510
|
+
location_info: At.optional()
|
|
1511
|
+
}), Oo = e.object({
|
|
1512
|
+
...Ct.shape,
|
|
1320
1513
|
log_id: e.string()
|
|
1321
|
-
}),
|
|
1514
|
+
}), It = e.object({
|
|
1322
1515
|
id: e.string().optional(),
|
|
1323
1516
|
user_id: e.string(),
|
|
1324
1517
|
password: e.string(),
|
|
1325
1518
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1326
1519
|
is_current: e.boolean().default(!0)
|
|
1327
|
-
}),
|
|
1520
|
+
}), To = It.extend({
|
|
1328
1521
|
id: e.string(),
|
|
1329
1522
|
created_at: e.string(),
|
|
1330
1523
|
updated_at: e.string()
|
|
1331
|
-
}),
|
|
1524
|
+
}), j = e.object({
|
|
1332
1525
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1333
1526
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1334
1527
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1335
1528
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1336
1529
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1337
1530
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1338
|
-
}),
|
|
1531
|
+
}), yt = e.object({
|
|
1339
1532
|
id: e.string(),
|
|
1340
1533
|
revoked_at: e.string().optional(),
|
|
1341
1534
|
used_at: e.string().optional(),
|
|
@@ -1343,17 +1536,17 @@ const de = e.object({
|
|
|
1343
1536
|
expires_at: e.string().optional(),
|
|
1344
1537
|
login_session_id: e.string(),
|
|
1345
1538
|
idle_expires_at: e.string().optional(),
|
|
1346
|
-
device:
|
|
1539
|
+
device: j.describe(
|
|
1347
1540
|
"Metadata related to the device used in the session"
|
|
1348
1541
|
),
|
|
1349
1542
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1350
|
-
}),
|
|
1543
|
+
}), No = e.object({
|
|
1351
1544
|
created_at: e.string(),
|
|
1352
1545
|
updated_at: e.string(),
|
|
1353
1546
|
authenticated_at: e.string(),
|
|
1354
1547
|
last_interaction_at: e.string(),
|
|
1355
|
-
...
|
|
1356
|
-
}),
|
|
1548
|
+
...yt.shape
|
|
1549
|
+
}), Ro = e.object({
|
|
1357
1550
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1358
1551
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1359
1552
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1379,8 +1572,8 @@ const de = e.object({
|
|
|
1379
1572
|
description: "The type of the signing key"
|
|
1380
1573
|
})
|
|
1381
1574
|
});
|
|
1382
|
-
var
|
|
1383
|
-
const
|
|
1575
|
+
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 || {});
|
|
1576
|
+
const Lo = e.object({
|
|
1384
1577
|
access_token: e.string(),
|
|
1385
1578
|
id_token: e.string().optional(),
|
|
1386
1579
|
scope: e.string().optional(),
|
|
@@ -1393,7 +1586,7 @@ e.object({
|
|
|
1393
1586
|
code: e.string(),
|
|
1394
1587
|
state: e.string().optional()
|
|
1395
1588
|
});
|
|
1396
|
-
const
|
|
1589
|
+
const Tt = e.object({
|
|
1397
1590
|
button_border_radius: e.number(),
|
|
1398
1591
|
button_border_weight: e.number(),
|
|
1399
1592
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1403,7 +1596,7 @@ const Ke = e.object({
|
|
|
1403
1596
|
show_widget_shadow: e.boolean(),
|
|
1404
1597
|
widget_border_weight: e.number(),
|
|
1405
1598
|
widget_corner_radius: e.number()
|
|
1406
|
-
}),
|
|
1599
|
+
}), Nt = e.object({
|
|
1407
1600
|
base_focus_color: e.string(),
|
|
1408
1601
|
base_hover_color: e.string(),
|
|
1409
1602
|
body_text: e.string(),
|
|
@@ -1423,44 +1616,44 @@ const Ke = e.object({
|
|
|
1423
1616
|
success: e.string(),
|
|
1424
1617
|
widget_background: e.string(),
|
|
1425
1618
|
widget_border: e.string()
|
|
1426
|
-
}),
|
|
1619
|
+
}), l = e.object({
|
|
1427
1620
|
bold: e.boolean(),
|
|
1428
1621
|
size: e.number()
|
|
1429
|
-
}),
|
|
1430
|
-
body_text:
|
|
1431
|
-
buttons_text:
|
|
1622
|
+
}), Rt = e.object({
|
|
1623
|
+
body_text: l,
|
|
1624
|
+
buttons_text: l,
|
|
1432
1625
|
font_url: e.string(),
|
|
1433
|
-
input_labels:
|
|
1434
|
-
links:
|
|
1626
|
+
input_labels: l,
|
|
1627
|
+
links: l,
|
|
1435
1628
|
links_style: e.enum(["normal", "underlined"]),
|
|
1436
1629
|
reference_text_size: e.number(),
|
|
1437
|
-
subtitle:
|
|
1438
|
-
title:
|
|
1439
|
-
}),
|
|
1630
|
+
subtitle: l,
|
|
1631
|
+
title: l
|
|
1632
|
+
}), Lt = e.object({
|
|
1440
1633
|
background_color: e.string(),
|
|
1441
1634
|
background_image_url: e.string(),
|
|
1442
1635
|
page_layout: e.enum(["center", "left", "right"])
|
|
1443
|
-
}),
|
|
1636
|
+
}), Dt = e.object({
|
|
1444
1637
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1445
1638
|
logo_height: e.number(),
|
|
1446
1639
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1447
1640
|
logo_url: e.string(),
|
|
1448
1641
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1449
|
-
}),
|
|
1450
|
-
borders:
|
|
1451
|
-
colors:
|
|
1642
|
+
}), jt = e.object({
|
|
1643
|
+
borders: Tt,
|
|
1644
|
+
colors: Nt,
|
|
1452
1645
|
displayName: e.string(),
|
|
1453
|
-
fonts:
|
|
1454
|
-
page_background:
|
|
1455
|
-
widget:
|
|
1456
|
-
}),
|
|
1646
|
+
fonts: Rt,
|
|
1647
|
+
page_background: Lt,
|
|
1648
|
+
widget: Dt
|
|
1649
|
+
}), Do = jt.extend({
|
|
1457
1650
|
themeId: e.string()
|
|
1458
|
-
}),
|
|
1651
|
+
}), jo = e.object({
|
|
1459
1652
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1460
1653
|
identifier_first: e.boolean().default(!0),
|
|
1461
1654
|
password_first: e.boolean().default(!1),
|
|
1462
1655
|
webauthn_platform_first_factor: e.boolean()
|
|
1463
|
-
}),
|
|
1656
|
+
}), wo = e.object({
|
|
1464
1657
|
name: e.string(),
|
|
1465
1658
|
enabled: e.boolean().optional().default(!0),
|
|
1466
1659
|
default_from_address: e.string().optional(),
|
|
@@ -1490,7 +1683,7 @@ const Ke = e.object({
|
|
|
1490
1683
|
})
|
|
1491
1684
|
]),
|
|
1492
1685
|
settings: e.object({}).optional()
|
|
1493
|
-
}),
|
|
1686
|
+
}), wt = e.object({
|
|
1494
1687
|
// The actual refresh token value (primary key).
|
|
1495
1688
|
id: e.string(),
|
|
1496
1689
|
// Link to the session record
|
|
@@ -1503,7 +1696,7 @@ const Ke = e.object({
|
|
|
1503
1696
|
idle_expires_at: e.string().optional(),
|
|
1504
1697
|
// When the token was last used.
|
|
1505
1698
|
last_exchanged_at: e.string().optional(),
|
|
1506
|
-
device:
|
|
1699
|
+
device: j,
|
|
1507
1700
|
resource_servers: e.array(
|
|
1508
1701
|
e.object({
|
|
1509
1702
|
audience: e.string(),
|
|
@@ -1511,21 +1704,21 @@ const Ke = e.object({
|
|
|
1511
1704
|
})
|
|
1512
1705
|
),
|
|
1513
1706
|
rotating: e.boolean()
|
|
1514
|
-
}),
|
|
1707
|
+
}), Uo = e.object({
|
|
1515
1708
|
// When the refresh token record was created.
|
|
1516
1709
|
created_at: e.string(),
|
|
1517
1710
|
// Spread in the rest of the refresh token properties.
|
|
1518
|
-
...
|
|
1519
|
-
}),
|
|
1711
|
+
...wt.shape
|
|
1712
|
+
}), Fo = e.object({
|
|
1520
1713
|
to: e.string(),
|
|
1521
1714
|
message: e.string()
|
|
1522
|
-
}),
|
|
1715
|
+
}), ko = e.object({
|
|
1523
1716
|
name: e.string(),
|
|
1524
1717
|
options: e.object({})
|
|
1525
|
-
}),
|
|
1718
|
+
}), Ut = e.object({
|
|
1526
1719
|
value: e.string(),
|
|
1527
1720
|
description: e.string().optional()
|
|
1528
|
-
}),
|
|
1721
|
+
}), Ft = e.object({
|
|
1529
1722
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1530
1723
|
enforce_policies: e.boolean().optional(),
|
|
1531
1724
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1535,10 +1728,10 @@ const Ke = e.object({
|
|
|
1535
1728
|
mtls: e.object({
|
|
1536
1729
|
bound_access_tokens: e.boolean().optional()
|
|
1537
1730
|
}).optional()
|
|
1538
|
-
}),
|
|
1731
|
+
}), kt = e.object({
|
|
1539
1732
|
name: e.string(),
|
|
1540
1733
|
identifier: e.string(),
|
|
1541
|
-
scopes: e.array(
|
|
1734
|
+
scopes: e.array(Ut).optional(),
|
|
1542
1735
|
signing_alg: e.string().optional(),
|
|
1543
1736
|
signing_secret: e.string().optional(),
|
|
1544
1737
|
token_lifetime: e.number().optional(),
|
|
@@ -1546,29 +1739,30 @@ const Ke = e.object({
|
|
|
1546
1739
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1547
1740
|
allow_offline_access: e.boolean().optional(),
|
|
1548
1741
|
verificationKey: e.string().optional(),
|
|
1549
|
-
options:
|
|
1550
|
-
|
|
1742
|
+
options: Ft.optional(),
|
|
1743
|
+
is_system: e.boolean().optional()
|
|
1744
|
+
}), vt = e.object({
|
|
1551
1745
|
id: e.string().optional(),
|
|
1552
|
-
...
|
|
1746
|
+
...kt.shape,
|
|
1553
1747
|
created_at: e.string().optional(),
|
|
1554
1748
|
updated_at: e.string().optional()
|
|
1555
|
-
}),
|
|
1749
|
+
}), vo = e.array(vt), xt = e.object({
|
|
1556
1750
|
role_id: e.string(),
|
|
1557
1751
|
resource_server_identifier: e.string(),
|
|
1558
1752
|
permission_name: e.string()
|
|
1559
|
-
}),
|
|
1560
|
-
|
|
1753
|
+
}), Pt = e.object({
|
|
1754
|
+
...xt.shape,
|
|
1561
1755
|
created_at: e.string()
|
|
1562
|
-
}),
|
|
1756
|
+
}), xo = e.array(Pt), Mt = e.object({
|
|
1563
1757
|
user_id: e.string(),
|
|
1564
1758
|
resource_server_identifier: e.string(),
|
|
1565
1759
|
permission_name: e.string(),
|
|
1566
1760
|
organization_id: e.string().optional()
|
|
1567
|
-
}),
|
|
1568
|
-
...
|
|
1761
|
+
}), Ht = e.object({
|
|
1762
|
+
...Mt.shape,
|
|
1569
1763
|
tenant_id: e.string(),
|
|
1570
1764
|
created_at: e.string().optional()
|
|
1571
|
-
}),
|
|
1765
|
+
}), Po = e.array(Ht), Gt = e.object({
|
|
1572
1766
|
user_id: e.string(),
|
|
1573
1767
|
resource_server_identifier: e.string(),
|
|
1574
1768
|
resource_server_name: e.string(),
|
|
@@ -1576,31 +1770,32 @@ const Ke = e.object({
|
|
|
1576
1770
|
description: e.string().nullable().optional(),
|
|
1577
1771
|
created_at: e.string().optional(),
|
|
1578
1772
|
organization_id: e.string().optional()
|
|
1579
|
-
}),
|
|
1580
|
-
|
|
1581
|
-
),
|
|
1773
|
+
}), Mo = e.array(
|
|
1774
|
+
Gt
|
|
1775
|
+
), Bt = e.object({
|
|
1582
1776
|
user_id: e.string(),
|
|
1583
1777
|
role_id: e.string(),
|
|
1584
1778
|
organization_id: e.string().optional()
|
|
1585
|
-
}),
|
|
1586
|
-
...
|
|
1779
|
+
}), Kt = e.object({
|
|
1780
|
+
...Bt.shape,
|
|
1587
1781
|
tenant_id: e.string(),
|
|
1588
1782
|
created_at: e.string().optional()
|
|
1589
|
-
}),
|
|
1783
|
+
}), Ho = e.array(Kt), Wt = e.object({
|
|
1590
1784
|
name: e.string().min(1).max(50).openapi({
|
|
1591
1785
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1592
1786
|
}),
|
|
1593
1787
|
description: e.string().max(255).optional().openapi({
|
|
1594
1788
|
description: "The description of the role"
|
|
1595
|
-
})
|
|
1596
|
-
|
|
1789
|
+
}),
|
|
1790
|
+
is_system: e.boolean().optional()
|
|
1791
|
+
}), zt = e.object({
|
|
1597
1792
|
id: e.string().openapi({
|
|
1598
1793
|
description: "The unique identifier of the role"
|
|
1599
1794
|
}),
|
|
1600
|
-
...
|
|
1795
|
+
...Wt.shape,
|
|
1601
1796
|
created_at: e.string().optional(),
|
|
1602
1797
|
updated_at: e.string().optional()
|
|
1603
|
-
}),
|
|
1798
|
+
}), Go = e.array(zt), Xt = e.object({
|
|
1604
1799
|
logo_url: e.string().optional().openapi({
|
|
1605
1800
|
description: "URL of the organization's logo"
|
|
1606
1801
|
}),
|
|
@@ -1612,7 +1807,7 @@ const Ke = e.object({
|
|
|
1612
1807
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1613
1808
|
})
|
|
1614
1809
|
}).optional()
|
|
1615
|
-
}).optional(),
|
|
1810
|
+
}).optional(), Vt = e.object({
|
|
1616
1811
|
connection_id: e.string().openapi({
|
|
1617
1812
|
description: "ID of the connection"
|
|
1618
1813
|
}),
|
|
@@ -1625,7 +1820,7 @@ const Ke = e.object({
|
|
|
1625
1820
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1626
1821
|
description: "Whether signup is enabled for this connection"
|
|
1627
1822
|
})
|
|
1628
|
-
}),
|
|
1823
|
+
}), qt = e.object({
|
|
1629
1824
|
client_credentials: e.object({
|
|
1630
1825
|
enforce: e.boolean().default(!1).openapi({
|
|
1631
1826
|
description: "Whether to enforce token quota limits"
|
|
@@ -1637,7 +1832,7 @@ const Ke = e.object({
|
|
|
1637
1832
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1638
1833
|
})
|
|
1639
1834
|
}).optional()
|
|
1640
|
-
}).optional(),
|
|
1835
|
+
}).optional(), Yt = e.object({
|
|
1641
1836
|
id: e.string().optional(),
|
|
1642
1837
|
name: e.string().min(1).openapi({
|
|
1643
1838
|
description: "The name of the organization"
|
|
@@ -1645,30 +1840,30 @@ const Ke = e.object({
|
|
|
1645
1840
|
display_name: e.string().optional().openapi({
|
|
1646
1841
|
description: "The display name of the organization"
|
|
1647
1842
|
}),
|
|
1648
|
-
branding:
|
|
1843
|
+
branding: Xt,
|
|
1649
1844
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1650
1845
|
description: "Custom metadata for the organization"
|
|
1651
1846
|
}),
|
|
1652
|
-
enabled_connections: e.array(
|
|
1847
|
+
enabled_connections: e.array(Vt).default([]).optional().openapi({
|
|
1653
1848
|
description: "List of enabled connections for the organization"
|
|
1654
1849
|
}),
|
|
1655
|
-
token_quota:
|
|
1656
|
-
}),
|
|
1657
|
-
...
|
|
1658
|
-
...
|
|
1850
|
+
token_quota: qt
|
|
1851
|
+
}), Bo = e.object({
|
|
1852
|
+
...Yt.shape,
|
|
1853
|
+
...s.shape,
|
|
1659
1854
|
id: e.string()
|
|
1660
|
-
}),
|
|
1855
|
+
}), Qt = e.object({
|
|
1661
1856
|
user_id: e.string().openapi({
|
|
1662
1857
|
description: "ID of the user"
|
|
1663
1858
|
}),
|
|
1664
1859
|
organization_id: e.string().openapi({
|
|
1665
1860
|
description: "ID of the organization"
|
|
1666
1861
|
})
|
|
1667
|
-
}),
|
|
1668
|
-
...
|
|
1669
|
-
...
|
|
1862
|
+
}), Ko = e.object({
|
|
1863
|
+
...Qt.shape,
|
|
1864
|
+
...s.shape,
|
|
1670
1865
|
id: e.string()
|
|
1671
|
-
}),
|
|
1866
|
+
}), Wo = e.object({
|
|
1672
1867
|
// Session settings
|
|
1673
1868
|
idle_session_lifetime: e.number().optional(),
|
|
1674
1869
|
session_lifetime: e.number().optional(),
|
|
@@ -1737,7 +1932,7 @@ const Ke = e.object({
|
|
|
1737
1932
|
sessions: e.object({
|
|
1738
1933
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1739
1934
|
}).optional()
|
|
1740
|
-
}),
|
|
1935
|
+
}), zo = e.object({
|
|
1741
1936
|
date: e.string().openapi({
|
|
1742
1937
|
description: "Date these events occurred in ISO 8601 format",
|
|
1743
1938
|
example: "2025-12-19"
|
|
@@ -1762,194 +1957,204 @@ const Ke = e.object({
|
|
|
1762
1957
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1763
1958
|
example: "2025-12-19T00:00:00.000Z"
|
|
1764
1959
|
})
|
|
1765
|
-
}),
|
|
1960
|
+
}), Xo = e.number().openapi({
|
|
1766
1961
|
description: "Number of active users in the last 30 days",
|
|
1767
1962
|
example: 1234
|
|
1768
1963
|
});
|
|
1769
|
-
function
|
|
1770
|
-
const [
|
|
1771
|
-
if (!
|
|
1964
|
+
function Vo(t) {
|
|
1965
|
+
const [a, r] = t.split("|");
|
|
1966
|
+
if (!a || !r)
|
|
1772
1967
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1773
|
-
return { connection:
|
|
1968
|
+
return { connection: a, id: r };
|
|
1774
1969
|
}
|
|
1775
|
-
function
|
|
1970
|
+
function qo(t) {
|
|
1776
1971
|
const {
|
|
1777
|
-
primary:
|
|
1778
|
-
secondaries:
|
|
1779
|
-
syncMethods:
|
|
1780
|
-
} = t,
|
|
1781
|
-
get(
|
|
1782
|
-
if (typeof
|
|
1783
|
-
return
|
|
1784
|
-
const
|
|
1785
|
-
return typeof
|
|
1786
|
-
const
|
|
1787
|
-
for (const
|
|
1788
|
-
const
|
|
1789
|
-
if (typeof
|
|
1972
|
+
primary: a,
|
|
1973
|
+
secondaries: r,
|
|
1974
|
+
syncMethods: w = ["create", "update", "remove", "delete", "set"]
|
|
1975
|
+
} = t, U = {
|
|
1976
|
+
get(d, n) {
|
|
1977
|
+
if (typeof n == "symbol")
|
|
1978
|
+
return d[n];
|
|
1979
|
+
const g = d[n];
|
|
1980
|
+
return typeof g != "function" ? g : w.includes(n) ? async (...h) => {
|
|
1981
|
+
const F = await g.apply(d, h), b = [];
|
|
1982
|
+
for (const p of r) {
|
|
1983
|
+
const S = p.adapter[n];
|
|
1984
|
+
if (typeof S != "function")
|
|
1790
1985
|
continue;
|
|
1791
|
-
const
|
|
1986
|
+
const k = (async () => {
|
|
1792
1987
|
try {
|
|
1793
|
-
await
|
|
1794
|
-
} catch (
|
|
1988
|
+
await S.apply(p.adapter, h);
|
|
1989
|
+
} catch (A) {
|
|
1795
1990
|
try {
|
|
1796
|
-
|
|
1797
|
-
`Passthrough adapter: secondary write failed for ${
|
|
1798
|
-
|
|
1991
|
+
p.onError ? p.onError(A, n, h) : console.error(
|
|
1992
|
+
`Passthrough adapter: secondary write failed for ${n}:`,
|
|
1993
|
+
A
|
|
1799
1994
|
);
|
|
1800
|
-
} catch (
|
|
1995
|
+
} catch (v) {
|
|
1801
1996
|
console.error(
|
|
1802
|
-
`Passthrough adapter: onError handler threw for ${
|
|
1803
|
-
|
|
1997
|
+
`Passthrough adapter: onError handler threw for ${n}:`,
|
|
1998
|
+
v
|
|
1804
1999
|
);
|
|
1805
2000
|
}
|
|
1806
2001
|
}
|
|
1807
2002
|
})();
|
|
1808
|
-
|
|
2003
|
+
p.blocking && b.push(k);
|
|
1809
2004
|
}
|
|
1810
|
-
return
|
|
1811
|
-
} :
|
|
2005
|
+
return b.length > 0 && await Promise.all(b), F;
|
|
2006
|
+
} : g.bind(d);
|
|
1812
2007
|
}
|
|
1813
2008
|
};
|
|
1814
|
-
return new Proxy(
|
|
2009
|
+
return new Proxy(a, U);
|
|
1815
2010
|
}
|
|
1816
|
-
function
|
|
2011
|
+
function Yo(t) {
|
|
1817
2012
|
return t;
|
|
1818
2013
|
}
|
|
1819
2014
|
export {
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
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
|
-
|
|
2015
|
+
$t as Auth0ActionEnum,
|
|
2016
|
+
St as Auth0Client,
|
|
2017
|
+
T as AuthorizationResponseMode,
|
|
2018
|
+
O as AuthorizationResponseType,
|
|
2019
|
+
N as CodeChallengeMethod,
|
|
2020
|
+
y as ComponentCategory,
|
|
2021
|
+
I as ComponentType,
|
|
2022
|
+
eo as EmailActionEnum,
|
|
2023
|
+
Zt as FlowActionTypeEnum,
|
|
2024
|
+
Ot as GrantType,
|
|
2025
|
+
At as LocationInfo,
|
|
2026
|
+
ft as LogTypes,
|
|
2027
|
+
se as NodeType,
|
|
2028
|
+
H as RedirectTargetEnum,
|
|
2029
|
+
ce as actionNodeSchema,
|
|
2030
|
+
Xo as activeUsersResponseSchema,
|
|
2031
|
+
ro as auth0FlowInsertSchema,
|
|
2032
|
+
ue as auth0FlowSchema,
|
|
2033
|
+
oo as auth0QuerySchema,
|
|
2034
|
+
P as auth0UpdateUserActionSchema,
|
|
2035
|
+
io as auth0UserResponseSchema,
|
|
2036
|
+
me as authParamsSchema,
|
|
2037
|
+
C as baseUserSchema,
|
|
2038
|
+
$e as blockComponentSchema,
|
|
2039
|
+
Tt as bordersSchema,
|
|
2040
|
+
lo as brandingSchema,
|
|
2041
|
+
te as buttonComponentSchema,
|
|
2042
|
+
Z as clientGrantInsertSchema,
|
|
2043
|
+
so as clientGrantListSchema,
|
|
2044
|
+
$ as clientGrantSchema,
|
|
2045
|
+
Q as clientInsertSchema,
|
|
2046
|
+
J as clientSchema,
|
|
2047
|
+
Ce as codeInsertSchema,
|
|
2048
|
+
po as codeSchema,
|
|
2049
|
+
Ae as codeTypeSchema,
|
|
2050
|
+
Nt as colorsSchema,
|
|
2051
|
+
rt as componentMessageSchema,
|
|
2052
|
+
ae as componentSchema,
|
|
2053
|
+
be as connectionInsertSchema,
|
|
2054
|
+
he as connectionOptionsSchema,
|
|
2055
|
+
fe as connectionSchema,
|
|
2056
|
+
c as coordinatesSchema,
|
|
2057
|
+
qo as createPassthroughAdapter,
|
|
2058
|
+
Yo as createWriteOnlyAdapter,
|
|
2059
|
+
Ie as customDomainInsertSchema,
|
|
2060
|
+
Oe as customDomainSchema,
|
|
2061
|
+
_o as customDomainWithTenantIdSchema,
|
|
2062
|
+
zo as dailyStatsSchema,
|
|
2063
|
+
wo as emailProviderSchema,
|
|
2064
|
+
x as emailVerificationRulesSchema,
|
|
2065
|
+
M as emailVerifyActionSchema,
|
|
2066
|
+
ge as endingSchema,
|
|
2067
|
+
tt as fieldComponentSchema,
|
|
2068
|
+
B as flowActionStepSchema,
|
|
2069
|
+
K as flowInsertSchema,
|
|
2070
|
+
to as flowSchema,
|
|
2071
|
+
ne as flowsFieldComponentSchema,
|
|
2072
|
+
le as flowsFlowNodeSchema,
|
|
2073
|
+
re as flowsStepNodeSchema,
|
|
2074
|
+
l as fontDetailsSchema,
|
|
2075
|
+
Rt as fontsSchema,
|
|
2076
|
+
go as formControlSchema,
|
|
2077
|
+
st as formInsertSchema,
|
|
2078
|
+
R as formNodeComponentDefinition,
|
|
2079
|
+
at as formNodeSchema,
|
|
2080
|
+
uo as formSchema,
|
|
2081
|
+
ie as genericComponentSchema,
|
|
2082
|
+
pe as genericNodeSchema,
|
|
2083
|
+
Eo as hookInsertSchema,
|
|
2084
|
+
So as hookSchema,
|
|
2085
|
+
z as identitySchema,
|
|
2086
|
+
mt as inviteInsertSchema,
|
|
2087
|
+
Ao as inviteSchema,
|
|
2088
|
+
ut as inviteeSchema,
|
|
2089
|
+
gt as inviterSchema,
|
|
2090
|
+
ho as isBlockComponent,
|
|
2091
|
+
fo as isFieldComponent,
|
|
2092
|
+
bo as isWidgetComponent,
|
|
2093
|
+
Co as jwksKeySchema,
|
|
2094
|
+
ht as jwksSchema,
|
|
2095
|
+
co as legacyClientSchema,
|
|
2096
|
+
oe as legalComponentSchema,
|
|
2097
|
+
Ct as logInsertSchema,
|
|
2098
|
+
Oo as logSchema,
|
|
2099
|
+
bt as loginSessionInsertSchema,
|
|
2100
|
+
yo as loginSessionSchema,
|
|
2101
|
+
_e as nodeSchema,
|
|
2102
|
+
Io as openIDConfigurationSchema,
|
|
2103
|
+
Xt as organizationBrandingSchema,
|
|
2104
|
+
Vt as organizationEnabledConnectionSchema,
|
|
2105
|
+
Yt as organizationInsertSchema,
|
|
2106
|
+
Bo as organizationSchema,
|
|
2107
|
+
qt as organizationTokenQuotaSchema,
|
|
2108
|
+
Lt as pageBackgroundSchema,
|
|
2109
|
+
Vo as parseUserId,
|
|
2110
|
+
It as passwordInsertSchema,
|
|
2111
|
+
To as passwordSchema,
|
|
2112
|
+
W as profileDataSchema,
|
|
2113
|
+
jo as promptSettingSchema,
|
|
2114
|
+
G as redirectActionSchema,
|
|
2115
|
+
wt as refreshTokenInsertSchema,
|
|
2116
|
+
Uo as refreshTokenSchema,
|
|
2117
|
+
kt as resourceServerInsertSchema,
|
|
2118
|
+
vo as resourceServerListSchema,
|
|
2119
|
+
Ft as resourceServerOptionsSchema,
|
|
2120
|
+
vt as resourceServerSchema,
|
|
2121
|
+
Ut as resourceServerScopeSchema,
|
|
2122
|
+
ee as richTextComponentSchema,
|
|
2123
|
+
Wt as roleInsertSchema,
|
|
2124
|
+
Go as roleListSchema,
|
|
2125
|
+
xt as rolePermissionInsertSchema,
|
|
2126
|
+
xo as rolePermissionListSchema,
|
|
2127
|
+
Pt as rolePermissionSchema,
|
|
2128
|
+
zt as roleSchema,
|
|
2129
|
+
lt as screenLinkSchema,
|
|
2130
|
+
yt as sessionInsertSchema,
|
|
2131
|
+
No as sessionSchema,
|
|
2132
|
+
Ro as signingKeySchema,
|
|
2133
|
+
ko as smsProviderSchema,
|
|
2134
|
+
Fo as smsSendParamsSchema,
|
|
2135
|
+
de as startSchema,
|
|
2136
|
+
Ee as tenantInsertSchema,
|
|
2137
|
+
Se as tenantSchema,
|
|
2138
|
+
Wo as tenantSettingsSchema,
|
|
2139
|
+
jt as themeInsertSchema,
|
|
2140
|
+
Do as themeSchema,
|
|
2141
|
+
Lo as tokenResponseSchema,
|
|
2142
|
+
no as totalsSchema,
|
|
2143
|
+
mo as uiScreenSchema,
|
|
2144
|
+
X as userInsertSchema,
|
|
2145
|
+
Qt as userOrganizationInsertSchema,
|
|
2146
|
+
Ko as userOrganizationSchema,
|
|
2147
|
+
Mt as userPermissionInsertSchema,
|
|
2148
|
+
Po as userPermissionListSchema,
|
|
2149
|
+
Ht as userPermissionSchema,
|
|
2150
|
+
Mo as userPermissionWithDetailsListSchema,
|
|
2151
|
+
Gt as userPermissionWithDetailsSchema,
|
|
2152
|
+
ao as userResponseSchema,
|
|
2153
|
+
Bt as userRoleInsertSchema,
|
|
2154
|
+
Ho as userRoleListSchema,
|
|
2155
|
+
Kt as userRoleSchema,
|
|
2156
|
+
V as userSchema,
|
|
2157
|
+
ye as verificationMethodsSchema,
|
|
2158
|
+
et as widgetComponentSchema,
|
|
2159
|
+
Dt as widgetSchema
|
|
1955
2160
|
};
|