@authhero/adapter-interfaces 1.16.0 → 1.17.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 +177 -0
- package/dist/adapter-interfaces.mjs +579 -564
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const a = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), w = e.object({
|
|
6
6
|
id: e.string(),
|
|
7
7
|
version: e.string().optional()
|
|
8
|
-
}),
|
|
8
|
+
}), j = e.object({
|
|
9
9
|
name: e.string(),
|
|
10
10
|
version: e.string()
|
|
11
|
-
}),
|
|
11
|
+
}), R = e.object({
|
|
12
12
|
name: e.string(),
|
|
13
13
|
// Optional on writes so PATCH callers can omit the value to preserve the
|
|
14
14
|
// existing secret. The adapter merges by name when value is missing.
|
|
15
15
|
value: e.string().optional()
|
|
16
|
-
}),
|
|
16
|
+
}), k = e.object({
|
|
17
17
|
name: e.string().max(255),
|
|
18
18
|
code: e.string().max(1e5),
|
|
19
|
-
supported_triggers: e.array(
|
|
19
|
+
supported_triggers: e.array(w).optional(),
|
|
20
20
|
runtime: e.string().max(50).optional(),
|
|
21
|
-
dependencies: e.array(
|
|
22
|
-
secrets: e.array(
|
|
23
|
-
}),
|
|
21
|
+
dependencies: e.array(j).optional(),
|
|
22
|
+
secrets: e.array(R).optional()
|
|
23
|
+
}), zo = k.partial().extend({
|
|
24
24
|
status: e.enum(["draft", "built"]).optional(),
|
|
25
25
|
deployed_at: e.string().optional()
|
|
26
|
-
}),
|
|
26
|
+
}), qo = k.extend({
|
|
27
27
|
id: e.string(),
|
|
28
28
|
tenant_id: e.string(),
|
|
29
29
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -35,13 +35,26 @@ const r = e.object({
|
|
|
35
35
|
value: e.string().optional()
|
|
36
36
|
})
|
|
37
37
|
).optional(),
|
|
38
|
-
...
|
|
39
|
-
}), J = e.
|
|
38
|
+
...a.shape
|
|
39
|
+
}), J = e.object({
|
|
40
|
+
action_id: e.string(),
|
|
41
|
+
code: e.string().max(1e5),
|
|
42
|
+
runtime: e.string().max(50).optional(),
|
|
43
|
+
dependencies: e.array(j).optional(),
|
|
44
|
+
secrets: e.array(R).optional(),
|
|
45
|
+
supported_triggers: e.array(w).optional(),
|
|
46
|
+
deployed: e.boolean().default(!0)
|
|
47
|
+
}), Vo = J.extend({
|
|
48
|
+
id: e.string(),
|
|
49
|
+
tenant_id: e.string(),
|
|
50
|
+
number: e.number().int(),
|
|
51
|
+
...a.shape
|
|
52
|
+
}), ee = e.enum([
|
|
40
53
|
"user_action",
|
|
41
54
|
"admin_action",
|
|
42
55
|
"system",
|
|
43
56
|
"api"
|
|
44
|
-
]),
|
|
57
|
+
]), te = e.object({
|
|
45
58
|
type: e.enum(["user", "admin", "system", "api_key", "client_credentials"]),
|
|
46
59
|
id: e.string().optional(),
|
|
47
60
|
email: e.string().optional(),
|
|
@@ -49,13 +62,13 @@ const r = e.object({
|
|
|
49
62
|
org_name: e.string().optional(),
|
|
50
63
|
scopes: e.array(e.string()).optional(),
|
|
51
64
|
client_id: e.string().optional()
|
|
52
|
-
}),
|
|
65
|
+
}), oe = e.object({
|
|
53
66
|
type: e.string(),
|
|
54
67
|
id: e.string(),
|
|
55
68
|
before: e.record(e.unknown()).optional(),
|
|
56
69
|
after: e.record(e.unknown()).optional(),
|
|
57
70
|
diff: e.record(e.object({ old: e.unknown(), new: e.unknown() })).optional()
|
|
58
|
-
}),
|
|
71
|
+
}), ne = e.object({
|
|
59
72
|
method: e.string(),
|
|
60
73
|
path: e.string(),
|
|
61
74
|
query: e.record(e.string()).optional(),
|
|
@@ -63,56 +76,56 @@ const r = e.object({
|
|
|
63
76
|
ip: e.string(),
|
|
64
77
|
user_agent: e.string().optional(),
|
|
65
78
|
correlation_id: e.string().optional()
|
|
66
|
-
}),
|
|
79
|
+
}), ie = e.object({
|
|
67
80
|
status_code: e.number(),
|
|
68
81
|
body: e.unknown().optional()
|
|
69
|
-
}),
|
|
82
|
+
}), ae = e.object({
|
|
70
83
|
country_code: e.string(),
|
|
71
84
|
city_name: e.string(),
|
|
72
85
|
latitude: e.string(),
|
|
73
86
|
longitude: e.string(),
|
|
74
87
|
time_zone: e.string(),
|
|
75
88
|
continent_code: e.string()
|
|
76
|
-
}),
|
|
89
|
+
}), re = e.object({
|
|
77
90
|
name: e.string(),
|
|
78
91
|
version: e.string(),
|
|
79
92
|
env: e.record(e.string()).optional()
|
|
80
|
-
}),
|
|
93
|
+
}), se = e.object({
|
|
81
94
|
tenant_id: e.string(),
|
|
82
95
|
event_type: e.string(),
|
|
83
96
|
log_type: e.string(),
|
|
84
97
|
description: e.string().optional(),
|
|
85
|
-
category:
|
|
86
|
-
actor:
|
|
87
|
-
target:
|
|
88
|
-
request:
|
|
89
|
-
response:
|
|
98
|
+
category: ee,
|
|
99
|
+
actor: te,
|
|
100
|
+
target: oe,
|
|
101
|
+
request: ne,
|
|
102
|
+
response: ie.optional(),
|
|
90
103
|
connection: e.string().optional(),
|
|
91
104
|
strategy: e.string().optional(),
|
|
92
105
|
strategy_type: e.string().optional(),
|
|
93
106
|
audience: e.string().optional(),
|
|
94
107
|
scope: e.string().optional(),
|
|
95
|
-
location:
|
|
96
|
-
auth0_client:
|
|
108
|
+
location: ae.optional(),
|
|
109
|
+
auth0_client: re.optional(),
|
|
97
110
|
hostname: e.string(),
|
|
98
111
|
is_mobile: e.boolean().optional(),
|
|
99
112
|
timestamp: e.string()
|
|
100
|
-
}),
|
|
113
|
+
}), Xo = se.extend({
|
|
101
114
|
id: e.string()
|
|
102
|
-
}),
|
|
115
|
+
}), Yo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), Zo = e.enum([
|
|
103
116
|
"CREATE_USER",
|
|
104
117
|
"GET_USER",
|
|
105
118
|
"UPDATE_USER",
|
|
106
119
|
"SEND_REQUEST",
|
|
107
120
|
"SEND_EMAIL"
|
|
108
|
-
]),
|
|
121
|
+
]), Qo = e.enum(["VERIFY_EMAIL"]), le = e.object({
|
|
109
122
|
require_mx_record: e.boolean().optional(),
|
|
110
123
|
block_aliases: e.boolean().optional(),
|
|
111
124
|
block_free_emails: e.boolean().optional(),
|
|
112
125
|
block_disposable_emails: e.boolean().optional(),
|
|
113
126
|
blocklist: e.array(e.string()).optional(),
|
|
114
127
|
allowlist: e.array(e.string()).optional()
|
|
115
|
-
}),
|
|
128
|
+
}), pe = e.object({
|
|
116
129
|
id: e.string(),
|
|
117
130
|
alias: e.string().max(100).optional(),
|
|
118
131
|
type: e.literal("AUTH0"),
|
|
@@ -124,7 +137,7 @@ const r = e.object({
|
|
|
124
137
|
user_id: e.string(),
|
|
125
138
|
changes: e.record(e.string(), e.any())
|
|
126
139
|
})
|
|
127
|
-
}),
|
|
140
|
+
}), ce = e.object({
|
|
128
141
|
id: e.string(),
|
|
129
142
|
alias: e.string().max(100).optional(),
|
|
130
143
|
type: e.literal("EMAIL"),
|
|
@@ -133,9 +146,9 @@ const r = e.object({
|
|
|
133
146
|
mask_output: e.boolean().optional(),
|
|
134
147
|
params: e.object({
|
|
135
148
|
email: e.string(),
|
|
136
|
-
rules:
|
|
149
|
+
rules: le.optional()
|
|
137
150
|
})
|
|
138
|
-
}),
|
|
151
|
+
}), de = e.enum(["change-email", "account", "custom"]), _e = e.object({
|
|
139
152
|
id: e.string(),
|
|
140
153
|
alias: e.string().max(100).optional(),
|
|
141
154
|
type: e.literal("REDIRECT"),
|
|
@@ -143,32 +156,32 @@ const r = e.object({
|
|
|
143
156
|
allow_failure: e.boolean().optional(),
|
|
144
157
|
mask_output: e.boolean().optional(),
|
|
145
158
|
params: e.object({
|
|
146
|
-
target:
|
|
159
|
+
target: de.openapi({
|
|
147
160
|
description: "The predefined target to redirect to, or 'custom' for a custom URL"
|
|
148
161
|
}),
|
|
149
162
|
custom_url: e.string().optional().openapi({
|
|
150
163
|
description: "Custom URL to redirect to when target is 'custom'"
|
|
151
164
|
})
|
|
152
165
|
})
|
|
153
|
-
}),
|
|
154
|
-
le,
|
|
166
|
+
}), ge = e.union([
|
|
155
167
|
pe,
|
|
156
|
-
|
|
157
|
-
|
|
168
|
+
ce,
|
|
169
|
+
_e
|
|
170
|
+
]), ue = e.object({
|
|
158
171
|
name: e.string().min(1).max(150).openapi({
|
|
159
172
|
description: "The name of the flow"
|
|
160
173
|
}),
|
|
161
174
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
162
|
-
actions: e.array(
|
|
175
|
+
actions: e.array(ge).optional().default([]).openapi({
|
|
163
176
|
description: "The list of actions to execute in sequence"
|
|
164
177
|
})
|
|
165
|
-
}),
|
|
166
|
-
...
|
|
178
|
+
}), $o = ue.extend({
|
|
179
|
+
...a.shape,
|
|
167
180
|
id: e.string().openapi({
|
|
168
181
|
description: "Unique identifier for the flow",
|
|
169
182
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
170
183
|
})
|
|
171
|
-
}),
|
|
184
|
+
}), Jo = e.object({
|
|
172
185
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
173
186
|
description: "The page number where 0 is the first page"
|
|
174
187
|
}),
|
|
@@ -184,12 +197,12 @@ const r = e.object({
|
|
|
184
197
|
q: e.string().optional().openapi({
|
|
185
198
|
description: "A lucene query string used to filter the results"
|
|
186
199
|
})
|
|
187
|
-
}),
|
|
200
|
+
}), en = e.object({
|
|
188
201
|
start: e.number(),
|
|
189
202
|
limit: e.number(),
|
|
190
203
|
length: e.number(),
|
|
191
204
|
total: e.number().optional()
|
|
192
|
-
}),
|
|
205
|
+
}), me = e.object({
|
|
193
206
|
email: e.string().optional(),
|
|
194
207
|
email_verified: e.boolean().optional(),
|
|
195
208
|
name: e.string().optional(),
|
|
@@ -198,7 +211,7 @@ const r = e.object({
|
|
|
198
211
|
phone_number: e.string().optional(),
|
|
199
212
|
phone_verified: e.boolean().optional(),
|
|
200
213
|
family_name: e.string().optional()
|
|
201
|
-
}).catchall(e.any()),
|
|
214
|
+
}).catchall(e.any()), he = e.object({
|
|
202
215
|
connection: e.string(),
|
|
203
216
|
user_id: e.string(),
|
|
204
217
|
provider: e.string(),
|
|
@@ -211,8 +224,8 @@ const r = e.object({
|
|
|
211
224
|
access_token: e.string().optional(),
|
|
212
225
|
access_token_secret: e.string().optional(),
|
|
213
226
|
refresh_token: e.string().optional(),
|
|
214
|
-
profileData:
|
|
215
|
-
}),
|
|
227
|
+
profileData: me.optional()
|
|
228
|
+
}), be = e.object({
|
|
216
229
|
formatted: e.string().optional(),
|
|
217
230
|
// Full mailing address
|
|
218
231
|
street_address: e.string().optional(),
|
|
@@ -225,7 +238,7 @@ const r = e.object({
|
|
|
225
238
|
// Zip code or postal code
|
|
226
239
|
country: e.string().optional()
|
|
227
240
|
// Country name
|
|
228
|
-
}).optional(),
|
|
241
|
+
}).optional(), v = e.object({
|
|
229
242
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
230
243
|
username: e.string().refine((t) => !t.includes("@"), {
|
|
231
244
|
message: 'Usernames must not contain "@". Use the email field for email addresses.'
|
|
@@ -257,8 +270,8 @@ const r = e.object({
|
|
|
257
270
|
zoneinfo: e.string().optional(),
|
|
258
271
|
// e.g., "Europe/Paris"
|
|
259
272
|
// OIDC address claim (OIDC Core 5.1.1)
|
|
260
|
-
address:
|
|
261
|
-
}),
|
|
273
|
+
address: be
|
|
274
|
+
}), fe = v.extend({
|
|
262
275
|
email_verified: e.boolean().default(!1),
|
|
263
276
|
verify_email: e.boolean().optional(),
|
|
264
277
|
last_ip: e.string().optional(),
|
|
@@ -281,31 +294,31 @@ const r = e.object({
|
|
|
281
294
|
hash: e.string(),
|
|
282
295
|
algorithm: e.string()
|
|
283
296
|
}).optional()
|
|
284
|
-
}),
|
|
285
|
-
...
|
|
286
|
-
...
|
|
297
|
+
}), Ee = e.object({
|
|
298
|
+
...fe.omit({ password: !0 }).shape,
|
|
299
|
+
...a.shape,
|
|
287
300
|
user_id: e.string(),
|
|
288
301
|
provider: e.string(),
|
|
289
302
|
is_social: e.boolean(),
|
|
290
303
|
email: e.string().optional(),
|
|
291
304
|
login_count: e.number().default(0),
|
|
292
|
-
identities: e.array(
|
|
293
|
-
}),
|
|
305
|
+
identities: e.array(he).optional()
|
|
306
|
+
}), tn = Ee.omit({
|
|
294
307
|
registration_completed_at: !0
|
|
295
|
-
}),
|
|
308
|
+
}), on = v.extend({
|
|
296
309
|
login_count: e.number(),
|
|
297
310
|
multifactor: e.array(e.string()).optional(),
|
|
298
311
|
last_ip: e.string().optional(),
|
|
299
312
|
last_login: e.string().optional(),
|
|
300
313
|
user_id: e.string()
|
|
301
314
|
}).catchall(e.any());
|
|
302
|
-
let
|
|
315
|
+
let Se = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ye = (t = 21) => {
|
|
303
316
|
let o = "", n = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
304
317
|
for (; t--; )
|
|
305
|
-
o +=
|
|
318
|
+
o += Se[n[t] & 63];
|
|
306
319
|
return o;
|
|
307
320
|
};
|
|
308
|
-
const
|
|
321
|
+
const Ae = e.object({
|
|
309
322
|
client_id: e.string().optional().openapi({
|
|
310
323
|
description: "ID of this client. Generated server-side if omitted (Auth0 behavior)."
|
|
311
324
|
}),
|
|
@@ -318,7 +331,7 @@ const ye = e.object({
|
|
|
318
331
|
global: e.boolean().default(!1).openapi({
|
|
319
332
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
320
333
|
}),
|
|
321
|
-
client_secret: e.string().default(() =>
|
|
334
|
+
client_secret: e.string().default(() => ye()).optional().openapi({
|
|
322
335
|
description: "Client secret (which you must not make public)."
|
|
323
336
|
}),
|
|
324
337
|
app_type: e.enum([
|
|
@@ -523,14 +536,14 @@ const ye = e.object({
|
|
|
523
536
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({
|
|
524
537
|
description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies."
|
|
525
538
|
})
|
|
526
|
-
}),
|
|
539
|
+
}), nn = e.object({
|
|
527
540
|
created_at: e.string(),
|
|
528
541
|
updated_at: e.string(),
|
|
529
|
-
...
|
|
542
|
+
...Ae.shape,
|
|
530
543
|
// Insert allows omitting (server-generated to match Auth0). The read schema
|
|
531
544
|
// always has it — the row in storage is non-null.
|
|
532
545
|
client_id: e.string()
|
|
533
|
-
}),
|
|
546
|
+
}), Ie = e.object({
|
|
534
547
|
client_id: e.string().min(1).openapi({
|
|
535
548
|
description: "ID of the client."
|
|
536
549
|
}),
|
|
@@ -555,37 +568,37 @@ const ye = e.object({
|
|
|
555
568
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
556
569
|
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."
|
|
557
570
|
})
|
|
558
|
-
}),
|
|
571
|
+
}), Ce = e.object({
|
|
559
572
|
id: e.string().openapi({
|
|
560
573
|
description: "ID of the client grant."
|
|
561
574
|
}),
|
|
562
|
-
...
|
|
575
|
+
...Ie.shape,
|
|
563
576
|
created_at: e.string().optional(),
|
|
564
577
|
updated_at: e.string().optional()
|
|
565
|
-
}),
|
|
578
|
+
}), an = e.array(Ce), Te = e.enum(["iat", "rat"]), Oe = e.object({
|
|
566
579
|
id: e.string(),
|
|
567
580
|
token_hash: e.string(),
|
|
568
|
-
type:
|
|
581
|
+
type: Te,
|
|
569
582
|
client_id: e.string().optional(),
|
|
570
583
|
sub: e.string().optional(),
|
|
571
584
|
constraints: e.record(e.unknown()).optional(),
|
|
572
585
|
single_use: e.boolean().default(!1),
|
|
573
586
|
expires_at: e.string().optional()
|
|
574
|
-
}),
|
|
587
|
+
}), rn = e.object({
|
|
575
588
|
created_at: e.string(),
|
|
576
589
|
used_at: e.string().optional(),
|
|
577
590
|
revoked_at: e.string().optional(),
|
|
578
|
-
...
|
|
591
|
+
...Oe.shape
|
|
579
592
|
}), m = e.object({
|
|
580
593
|
x: e.number(),
|
|
581
594
|
y: e.number()
|
|
582
595
|
});
|
|
583
|
-
var
|
|
596
|
+
var D = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(D || {}), L = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(L || {});
|
|
584
597
|
const C = e.object({
|
|
585
598
|
id: e.string(),
|
|
586
|
-
category: e.nativeEnum(
|
|
587
|
-
type: e.nativeEnum(
|
|
588
|
-
}),
|
|
599
|
+
category: e.nativeEnum(L),
|
|
600
|
+
type: e.nativeEnum(D)
|
|
601
|
+
}), Ne = C.extend({
|
|
589
602
|
category: e.literal(
|
|
590
603
|
"BLOCK"
|
|
591
604
|
/* BLOCK */
|
|
@@ -597,7 +610,7 @@ const C = e.object({
|
|
|
597
610
|
config: e.object({
|
|
598
611
|
content: e.string()
|
|
599
612
|
}).passthrough()
|
|
600
|
-
}),
|
|
613
|
+
}), we = C.extend({
|
|
601
614
|
category: e.literal(
|
|
602
615
|
"BLOCK"
|
|
603
616
|
/* BLOCK */
|
|
@@ -619,7 +632,7 @@ const C = e.object({
|
|
|
619
632
|
config: e.object({
|
|
620
633
|
text: e.string()
|
|
621
634
|
}).passthrough()
|
|
622
|
-
}),
|
|
635
|
+
}), je = C.extend({
|
|
623
636
|
category: e.literal(
|
|
624
637
|
"FIELD"
|
|
625
638
|
/* FIELD */
|
|
@@ -633,7 +646,7 @@ const C = e.object({
|
|
|
633
646
|
config: e.object({
|
|
634
647
|
text: e.string()
|
|
635
648
|
}).passthrough()
|
|
636
|
-
}),
|
|
649
|
+
}), Re = C.extend({
|
|
637
650
|
category: e.literal(
|
|
638
651
|
"FIELD"
|
|
639
652
|
/* FIELD */
|
|
@@ -686,19 +699,19 @@ const C = e.object({
|
|
|
686
699
|
label: e.string().optional(),
|
|
687
700
|
placeholder: e.string().optional()
|
|
688
701
|
}).passthrough()
|
|
689
|
-
}),
|
|
702
|
+
}), ke = e.object({
|
|
690
703
|
id: e.string(),
|
|
691
704
|
category: e.string(),
|
|
692
705
|
type: e.string()
|
|
693
|
-
}).passthrough(),
|
|
694
|
-
Oe,
|
|
706
|
+
}).passthrough(), ve = e.union([
|
|
695
707
|
Ne,
|
|
696
708
|
we,
|
|
697
709
|
je,
|
|
698
|
-
Re
|
|
710
|
+
Re,
|
|
711
|
+
ke
|
|
699
712
|
]);
|
|
700
|
-
var
|
|
701
|
-
const
|
|
713
|
+
var De = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(De || {});
|
|
714
|
+
const Le = e.object({
|
|
702
715
|
id: e.string(),
|
|
703
716
|
type: e.literal(
|
|
704
717
|
"STEP"
|
|
@@ -707,10 +720,10 @@ const De = e.object({
|
|
|
707
720
|
coordinates: m,
|
|
708
721
|
alias: e.string().optional(),
|
|
709
722
|
config: e.object({
|
|
710
|
-
components: e.array(
|
|
723
|
+
components: e.array(ve),
|
|
711
724
|
next_node: e.string()
|
|
712
725
|
}).passthrough()
|
|
713
|
-
}),
|
|
726
|
+
}), Ue = e.object({
|
|
714
727
|
id: e.string(),
|
|
715
728
|
type: e.literal(
|
|
716
729
|
"FLOW"
|
|
@@ -722,7 +735,7 @@ const De = e.object({
|
|
|
722
735
|
flow_id: e.string(),
|
|
723
736
|
next_node: e.string()
|
|
724
737
|
})
|
|
725
|
-
}),
|
|
738
|
+
}), xe = e.object({
|
|
726
739
|
id: e.string(),
|
|
727
740
|
type: e.literal(
|
|
728
741
|
"ACTION"
|
|
@@ -744,47 +757,47 @@ const De = e.object({
|
|
|
744
757
|
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
745
758
|
})
|
|
746
759
|
}).passthrough()
|
|
747
|
-
}),
|
|
760
|
+
}), Fe = e.object({
|
|
748
761
|
id: e.string(),
|
|
749
762
|
type: e.string(),
|
|
750
763
|
coordinates: m
|
|
751
|
-
}).passthrough(),
|
|
752
|
-
De,
|
|
764
|
+
}).passthrough(), Pe = e.union([
|
|
753
765
|
Le,
|
|
754
766
|
Ue,
|
|
755
|
-
xe
|
|
756
|
-
|
|
767
|
+
xe,
|
|
768
|
+
Fe
|
|
769
|
+
]), Me = e.object({
|
|
757
770
|
next_node: e.string(),
|
|
758
771
|
coordinates: m
|
|
759
|
-
}).passthrough(),
|
|
772
|
+
}).passthrough(), He = e.object({
|
|
760
773
|
resume_flow: e.boolean().optional(),
|
|
761
774
|
coordinates: m
|
|
762
|
-
}).passthrough(),
|
|
775
|
+
}).passthrough(), Ge = e.object({
|
|
763
776
|
id: e.string(),
|
|
764
777
|
name: e.string(),
|
|
765
778
|
languages: e.object({
|
|
766
779
|
primary: e.string()
|
|
767
780
|
}).passthrough(),
|
|
768
|
-
nodes: e.array(
|
|
769
|
-
start:
|
|
770
|
-
ending:
|
|
781
|
+
nodes: e.array(Pe),
|
|
782
|
+
start: Me,
|
|
783
|
+
ending: He,
|
|
771
784
|
created_at: e.string(),
|
|
772
785
|
updated_at: e.string(),
|
|
773
786
|
links: e.object({
|
|
774
787
|
sdkSrc: e.string().optional(),
|
|
775
788
|
sdk_src: e.string().optional()
|
|
776
789
|
}).passthrough()
|
|
777
|
-
}).passthrough(),
|
|
790
|
+
}).passthrough(), sn = Ge.omit({
|
|
778
791
|
id: !0,
|
|
779
792
|
created_at: !0,
|
|
780
793
|
updated_at: !0
|
|
781
794
|
});
|
|
782
|
-
var
|
|
783
|
-
const
|
|
795
|
+
var U = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "id_token token", t.CODE = "code", t))(U || {}), x = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(x || {}), F = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(F || {});
|
|
796
|
+
const Be = e.object({
|
|
784
797
|
client_id: e.string(),
|
|
785
798
|
act_as: e.string().optional(),
|
|
786
|
-
response_type: e.nativeEnum(
|
|
787
|
-
response_mode: e.nativeEnum(
|
|
799
|
+
response_type: e.nativeEnum(U).optional(),
|
|
800
|
+
response_mode: e.nativeEnum(x).optional(),
|
|
788
801
|
redirect_uri: e.string().optional(),
|
|
789
802
|
audience: e.string().optional(),
|
|
790
803
|
organization: e.string().optional(),
|
|
@@ -792,7 +805,7 @@ const Ge = e.object({
|
|
|
792
805
|
nonce: e.string().optional(),
|
|
793
806
|
scope: e.string().optional(),
|
|
794
807
|
prompt: e.string().optional(),
|
|
795
|
-
code_challenge_method: e.nativeEnum(
|
|
808
|
+
code_challenge_method: e.nativeEnum(F).optional(),
|
|
796
809
|
code_challenge: e.string().optional(),
|
|
797
810
|
username: e.string().optional(),
|
|
798
811
|
ui_locales: e.string().optional(),
|
|
@@ -804,7 +817,7 @@ const Ge = e.object({
|
|
|
804
817
|
acr_values: e.string().optional(),
|
|
805
818
|
// The following fields are not available in Auth0
|
|
806
819
|
vendor_id: e.string().optional()
|
|
807
|
-
}),
|
|
820
|
+
}), ln = e.object({
|
|
808
821
|
colors: e.object({
|
|
809
822
|
primary: e.string(),
|
|
810
823
|
// Auth0 supports either a hex color string ("#ffffff") or a gradient
|
|
@@ -825,7 +838,7 @@ const Ge = e.object({
|
|
|
825
838
|
font: e.object({
|
|
826
839
|
url: e.string()
|
|
827
840
|
}).optional()
|
|
828
|
-
}),
|
|
841
|
+
}), We = e.enum([
|
|
829
842
|
"password_reset",
|
|
830
843
|
"email_verification",
|
|
831
844
|
"otp",
|
|
@@ -833,7 +846,7 @@ const Ge = e.object({
|
|
|
833
846
|
"authorization_code",
|
|
834
847
|
"oauth2_state",
|
|
835
848
|
"ticket"
|
|
836
|
-
]),
|
|
849
|
+
]), Ke = e.object({
|
|
837
850
|
code_id: e.string().openapi({
|
|
838
851
|
description: "The code that will be used in for instance an email verification flow"
|
|
839
852
|
}),
|
|
@@ -843,7 +856,7 @@ const Ge = e.object({
|
|
|
843
856
|
connection_id: e.string().optional().openapi({
|
|
844
857
|
description: "The connection that the code is connected to"
|
|
845
858
|
}),
|
|
846
|
-
code_type:
|
|
859
|
+
code_type: We,
|
|
847
860
|
code_verifier: e.string().optional().openapi({
|
|
848
861
|
description: "The code verifier used in PKCE in outbound flows"
|
|
849
862
|
}),
|
|
@@ -868,10 +881,10 @@ const Ge = e.object({
|
|
|
868
881
|
expires_at: e.string(),
|
|
869
882
|
used_at: e.string().optional(),
|
|
870
883
|
user_id: e.string().optional()
|
|
871
|
-
}),
|
|
872
|
-
...
|
|
884
|
+
}), pn = e.object({
|
|
885
|
+
...Ke.shape,
|
|
873
886
|
created_at: e.string()
|
|
874
|
-
}),
|
|
887
|
+
}), ze = e.object({
|
|
875
888
|
kid: e.string().optional(),
|
|
876
889
|
team_id: e.string().optional(),
|
|
877
890
|
realms: e.string().optional(),
|
|
@@ -1005,14 +1018,14 @@ function T(t) {
|
|
|
1005
1018
|
return t;
|
|
1006
1019
|
}
|
|
1007
1020
|
}
|
|
1008
|
-
const
|
|
1021
|
+
const qe = e.object({
|
|
1009
1022
|
id: e.string().optional(),
|
|
1010
1023
|
name: e.string(),
|
|
1011
1024
|
display_name: e.string().optional(),
|
|
1012
1025
|
strategy: e.string(),
|
|
1013
1026
|
options: e.preprocess(
|
|
1014
1027
|
(t) => t === null ? {} : T(t),
|
|
1015
|
-
|
|
1028
|
+
ze
|
|
1016
1029
|
).default({}),
|
|
1017
1030
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
1018
1031
|
response_type: e.custom().optional(),
|
|
@@ -1021,11 +1034,11 @@ const ze = e.object({
|
|
|
1021
1034
|
show_as_button: e.boolean().optional(),
|
|
1022
1035
|
metadata: e.record(e.any()).optional(),
|
|
1023
1036
|
is_system: e.boolean().optional()
|
|
1024
|
-
}),
|
|
1037
|
+
}), cn = e.object({
|
|
1025
1038
|
id: e.string(),
|
|
1026
1039
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
1027
1040
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
1028
|
-
}).extend(
|
|
1041
|
+
}).extend(qe.shape), Ve = e.object({
|
|
1029
1042
|
domain: e.string(),
|
|
1030
1043
|
custom_domain_id: e.string().optional(),
|
|
1031
1044
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -1050,8 +1063,8 @@ const ze = e.object({
|
|
|
1050
1063
|
http_body: e.string(),
|
|
1051
1064
|
http_url: e.string()
|
|
1052
1065
|
})
|
|
1053
|
-
]),
|
|
1054
|
-
...
|
|
1066
|
+
]), Ye = e.object({
|
|
1067
|
+
...Ve.shape,
|
|
1055
1068
|
custom_domain_id: e.string(),
|
|
1056
1069
|
primary: e.boolean(),
|
|
1057
1070
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
@@ -1060,7 +1073,7 @@ const ze = e.object({
|
|
|
1060
1073
|
methods: e.array(Xe)
|
|
1061
1074
|
}).optional(),
|
|
1062
1075
|
tls_policy: e.string().optional()
|
|
1063
|
-
}),
|
|
1076
|
+
}), dn = Ye.extend({
|
|
1064
1077
|
tenant_id: e.string()
|
|
1065
1078
|
}), O = e.object({
|
|
1066
1079
|
id: e.string(),
|
|
@@ -1068,17 +1081,17 @@ const ze = e.object({
|
|
|
1068
1081
|
visible: e.boolean().optional().default(!0)
|
|
1069
1082
|
}), l = O.extend({
|
|
1070
1083
|
category: e.literal("BLOCK").optional()
|
|
1071
|
-
}),
|
|
1084
|
+
}), Ze = l.extend({
|
|
1072
1085
|
type: e.literal("DIVIDER"),
|
|
1073
1086
|
config: e.object({
|
|
1074
1087
|
text: e.string().optional()
|
|
1075
1088
|
}).optional()
|
|
1076
|
-
}),
|
|
1089
|
+
}), Qe = l.extend({
|
|
1077
1090
|
type: e.literal("HTML"),
|
|
1078
1091
|
config: e.object({
|
|
1079
1092
|
content: e.string().optional()
|
|
1080
1093
|
}).optional()
|
|
1081
|
-
}),
|
|
1094
|
+
}), $e = l.extend({
|
|
1082
1095
|
type: e.literal("IMAGE"),
|
|
1083
1096
|
config: e.object({
|
|
1084
1097
|
src: e.string().optional(),
|
|
@@ -1086,29 +1099,29 @@ const ze = e.object({
|
|
|
1086
1099
|
width: e.number().optional(),
|
|
1087
1100
|
height: e.number().optional()
|
|
1088
1101
|
}).optional()
|
|
1089
|
-
}),
|
|
1102
|
+
}), Je = l.extend({
|
|
1090
1103
|
type: e.literal("JUMP_BUTTON"),
|
|
1091
1104
|
config: e.object({
|
|
1092
1105
|
text: e.string().optional(),
|
|
1093
1106
|
target_step: e.string().optional()
|
|
1094
1107
|
})
|
|
1095
|
-
}),
|
|
1108
|
+
}), et = l.extend({
|
|
1096
1109
|
type: e.literal("RESEND_BUTTON"),
|
|
1097
1110
|
config: e.object({
|
|
1098
1111
|
text: e.string().optional(),
|
|
1099
1112
|
resend_action: e.string().optional()
|
|
1100
1113
|
})
|
|
1101
|
-
}),
|
|
1114
|
+
}), tt = l.extend({
|
|
1102
1115
|
type: e.literal("NEXT_BUTTON"),
|
|
1103
1116
|
config: e.object({
|
|
1104
1117
|
text: e.string().optional()
|
|
1105
1118
|
})
|
|
1106
|
-
}),
|
|
1119
|
+
}), ot = l.extend({
|
|
1107
1120
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
1108
1121
|
config: e.object({
|
|
1109
1122
|
text: e.string().optional()
|
|
1110
1123
|
})
|
|
1111
|
-
}),
|
|
1124
|
+
}), nt = l.extend({
|
|
1112
1125
|
type: e.literal("RICH_TEXT"),
|
|
1113
1126
|
config: e.object({
|
|
1114
1127
|
content: e.string().optional()
|
|
@@ -1119,17 +1132,17 @@ const ze = e.object({
|
|
|
1119
1132
|
hint: e.string().min(1).max(500).optional(),
|
|
1120
1133
|
required: e.boolean().optional(),
|
|
1121
1134
|
sensitive: e.boolean().optional()
|
|
1122
|
-
}),
|
|
1135
|
+
}), it = N.extend({
|
|
1123
1136
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
1124
1137
|
config: e.object({
|
|
1125
1138
|
credential_type: e.string().optional()
|
|
1126
1139
|
})
|
|
1127
|
-
}),
|
|
1140
|
+
}), at = N.extend({
|
|
1128
1141
|
type: e.literal("GMAPS_ADDRESS"),
|
|
1129
1142
|
config: e.object({
|
|
1130
1143
|
api_key: e.string().optional()
|
|
1131
1144
|
})
|
|
1132
|
-
}),
|
|
1145
|
+
}), rt = N.extend({
|
|
1133
1146
|
type: e.literal("RECAPTCHA"),
|
|
1134
1147
|
config: e.object({
|
|
1135
1148
|
site_key: e.string().optional()
|
|
@@ -1147,12 +1160,12 @@ const ze = e.object({
|
|
|
1147
1160
|
).optional(),
|
|
1148
1161
|
required: e.boolean().optional(),
|
|
1149
1162
|
sensitive: e.boolean().optional()
|
|
1150
|
-
}),
|
|
1163
|
+
}), st = i.extend({
|
|
1151
1164
|
type: e.literal("BOOLEAN"),
|
|
1152
1165
|
config: e.object({
|
|
1153
1166
|
default_value: e.boolean().optional()
|
|
1154
1167
|
}).optional()
|
|
1155
|
-
}),
|
|
1168
|
+
}), lt = i.extend({
|
|
1156
1169
|
type: e.literal("CARDS"),
|
|
1157
1170
|
config: e.object({
|
|
1158
1171
|
options: e.array(
|
|
@@ -1165,7 +1178,7 @@ const ze = e.object({
|
|
|
1165
1178
|
).optional(),
|
|
1166
1179
|
multi_select: e.boolean().optional()
|
|
1167
1180
|
}).optional()
|
|
1168
|
-
}),
|
|
1181
|
+
}), pt = i.extend({
|
|
1169
1182
|
type: e.literal("CHOICE"),
|
|
1170
1183
|
config: e.object({
|
|
1171
1184
|
options: e.array(
|
|
@@ -1178,7 +1191,7 @@ const ze = e.object({
|
|
|
1178
1191
|
multiple: e.boolean().optional(),
|
|
1179
1192
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1180
1193
|
}).optional()
|
|
1181
|
-
}),
|
|
1194
|
+
}), ct = i.extend({
|
|
1182
1195
|
type: e.literal("CUSTOM"),
|
|
1183
1196
|
config: e.object({
|
|
1184
1197
|
component: e.string().optional(),
|
|
@@ -1186,7 +1199,7 @@ const ze = e.object({
|
|
|
1186
1199
|
schema: e.record(e.any()).optional(),
|
|
1187
1200
|
code: e.string().optional()
|
|
1188
1201
|
})
|
|
1189
|
-
}),
|
|
1202
|
+
}), dt = i.extend({
|
|
1190
1203
|
type: e.literal("DATE"),
|
|
1191
1204
|
config: e.object({
|
|
1192
1205
|
format: e.string().optional(),
|
|
@@ -1194,7 +1207,7 @@ const ze = e.object({
|
|
|
1194
1207
|
max: e.string().optional(),
|
|
1195
1208
|
default_value: e.string().optional()
|
|
1196
1209
|
}).optional()
|
|
1197
|
-
}),
|
|
1210
|
+
}), _t = i.extend({
|
|
1198
1211
|
type: e.literal("DROPDOWN"),
|
|
1199
1212
|
config: e.object({
|
|
1200
1213
|
options: e.array(
|
|
@@ -1208,26 +1221,26 @@ const ze = e.object({
|
|
|
1208
1221
|
multiple: e.boolean().optional(),
|
|
1209
1222
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1210
1223
|
}).optional()
|
|
1211
|
-
}),
|
|
1224
|
+
}), gt = i.extend({
|
|
1212
1225
|
type: e.literal("EMAIL"),
|
|
1213
1226
|
config: e.object({
|
|
1214
1227
|
placeholder: e.string().optional(),
|
|
1215
1228
|
default_value: e.string().optional()
|
|
1216
1229
|
}).optional()
|
|
1217
|
-
}),
|
|
1230
|
+
}), ut = i.extend({
|
|
1218
1231
|
type: e.literal("FILE"),
|
|
1219
1232
|
config: e.object({
|
|
1220
1233
|
accept: e.string().optional(),
|
|
1221
1234
|
max_size: e.number().optional(),
|
|
1222
1235
|
multiple: e.boolean().optional()
|
|
1223
1236
|
}).optional()
|
|
1224
|
-
}),
|
|
1237
|
+
}), mt = i.extend({
|
|
1225
1238
|
type: e.literal("LEGAL"),
|
|
1226
1239
|
config: e.object({
|
|
1227
1240
|
text: e.string(),
|
|
1228
1241
|
html: e.boolean().optional()
|
|
1229
1242
|
}).optional()
|
|
1230
|
-
}),
|
|
1243
|
+
}), ht = i.extend({
|
|
1231
1244
|
type: e.literal("NUMBER"),
|
|
1232
1245
|
config: e.object({
|
|
1233
1246
|
placeholder: e.string().optional(),
|
|
@@ -1236,7 +1249,7 @@ const ze = e.object({
|
|
|
1236
1249
|
step: e.number().optional(),
|
|
1237
1250
|
default_value: e.string().optional()
|
|
1238
1251
|
}).optional()
|
|
1239
|
-
}),
|
|
1252
|
+
}), bt = i.extend({
|
|
1240
1253
|
type: e.literal("PASSWORD"),
|
|
1241
1254
|
config: e.object({
|
|
1242
1255
|
placeholder: e.string().optional(),
|
|
@@ -1245,13 +1258,13 @@ const ze = e.object({
|
|
|
1245
1258
|
forgot_password_link: e.string().optional(),
|
|
1246
1259
|
default_value: e.string().optional()
|
|
1247
1260
|
}).optional()
|
|
1248
|
-
}),
|
|
1261
|
+
}), ft = i.extend({
|
|
1249
1262
|
type: e.literal("PAYMENT"),
|
|
1250
1263
|
config: e.object({
|
|
1251
1264
|
provider: e.string().optional(),
|
|
1252
1265
|
currency: e.string().optional()
|
|
1253
1266
|
}).optional()
|
|
1254
|
-
}),
|
|
1267
|
+
}), Et = i.extend({
|
|
1255
1268
|
type: e.literal("SOCIAL"),
|
|
1256
1269
|
config: e.object({
|
|
1257
1270
|
providers: e.array(e.string()).optional(),
|
|
@@ -1266,7 +1279,7 @@ const ze = e.object({
|
|
|
1266
1279
|
})
|
|
1267
1280
|
).optional()
|
|
1268
1281
|
}).optional()
|
|
1269
|
-
}),
|
|
1282
|
+
}), St = i.extend({
|
|
1270
1283
|
type: e.literal("TEL"),
|
|
1271
1284
|
config: e.object({
|
|
1272
1285
|
placeholder: e.string().optional(),
|
|
@@ -1274,7 +1287,7 @@ const ze = e.object({
|
|
|
1274
1287
|
default_value: e.string().optional(),
|
|
1275
1288
|
allow_email: e.boolean().optional()
|
|
1276
1289
|
}).optional()
|
|
1277
|
-
}),
|
|
1290
|
+
}), yt = i.extend({
|
|
1278
1291
|
type: e.literal("TEXT"),
|
|
1279
1292
|
config: e.object({
|
|
1280
1293
|
placeholder: e.string().optional(),
|
|
@@ -1282,37 +1295,36 @@ const ze = e.object({
|
|
|
1282
1295
|
max_length: e.number().optional(),
|
|
1283
1296
|
default_value: e.string().optional()
|
|
1284
1297
|
}).optional()
|
|
1285
|
-
}),
|
|
1298
|
+
}), At = i.extend({
|
|
1286
1299
|
type: e.literal("COUNTRY"),
|
|
1287
1300
|
config: e.object({
|
|
1288
1301
|
placeholder: e.string().optional(),
|
|
1289
1302
|
default_value: e.string().optional()
|
|
1290
1303
|
}).optional()
|
|
1291
|
-
}),
|
|
1304
|
+
}), It = i.extend({
|
|
1292
1305
|
type: e.literal("URL"),
|
|
1293
1306
|
config: e.object({
|
|
1294
1307
|
placeholder: e.string().optional(),
|
|
1295
1308
|
default_value: e.string().optional()
|
|
1296
1309
|
}).optional()
|
|
1297
|
-
}),
|
|
1298
|
-
Ye,
|
|
1310
|
+
}), Ct = e.discriminatedUnion("type", [
|
|
1299
1311
|
Ze,
|
|
1300
1312
|
Qe,
|
|
1301
1313
|
$e,
|
|
1302
1314
|
Je,
|
|
1303
1315
|
et,
|
|
1304
1316
|
tt,
|
|
1305
|
-
ot
|
|
1306
|
-
|
|
1307
|
-
nt,
|
|
1308
|
-
it,
|
|
1309
|
-
at
|
|
1317
|
+
ot,
|
|
1318
|
+
nt
|
|
1310
1319
|
]), Tt = e.discriminatedUnion("type", [
|
|
1311
|
-
|
|
1320
|
+
it,
|
|
1321
|
+
at,
|
|
1322
|
+
rt
|
|
1323
|
+
]), Ot = e.discriminatedUnion("type", [
|
|
1312
1324
|
st,
|
|
1313
1325
|
lt,
|
|
1314
|
-
yt,
|
|
1315
1326
|
pt,
|
|
1327
|
+
At,
|
|
1316
1328
|
ct,
|
|
1317
1329
|
dt,
|
|
1318
1330
|
_t,
|
|
@@ -1324,12 +1336,13 @@ const ze = e.object({
|
|
|
1324
1336
|
ft,
|
|
1325
1337
|
Et,
|
|
1326
1338
|
St,
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1339
|
+
yt,
|
|
1340
|
+
It
|
|
1341
|
+
]), P = e.union([
|
|
1330
1342
|
Ct,
|
|
1331
|
-
Tt
|
|
1332
|
-
|
|
1343
|
+
Tt,
|
|
1344
|
+
Ot
|
|
1345
|
+
]), _n = /* @__PURE__ */ new Set([
|
|
1333
1346
|
"BOOLEAN",
|
|
1334
1347
|
"CARDS",
|
|
1335
1348
|
"CHOICE",
|
|
@@ -1343,7 +1356,7 @@ const ze = e.object({
|
|
|
1343
1356
|
"TEL",
|
|
1344
1357
|
"TEXT",
|
|
1345
1358
|
"URL"
|
|
1346
|
-
]),
|
|
1359
|
+
]), gn = e.object({
|
|
1347
1360
|
id: e.string(),
|
|
1348
1361
|
type: e.literal("submit"),
|
|
1349
1362
|
label: e.string(),
|
|
@@ -1355,7 +1368,7 @@ const ze = e.object({
|
|
|
1355
1368
|
}), E = e.object({
|
|
1356
1369
|
x: e.number(),
|
|
1357
1370
|
y: e.number()
|
|
1358
|
-
}),
|
|
1371
|
+
}), Nt = e.object({
|
|
1359
1372
|
id: e.string(),
|
|
1360
1373
|
type: e.literal("FLOW"),
|
|
1361
1374
|
coordinates: E,
|
|
@@ -1364,7 +1377,7 @@ const ze = e.object({
|
|
|
1364
1377
|
flow_id: e.string().max(30),
|
|
1365
1378
|
next_node: e.string().optional()
|
|
1366
1379
|
})
|
|
1367
|
-
}),
|
|
1380
|
+
}), wt = e.object({
|
|
1368
1381
|
id: e.string(),
|
|
1369
1382
|
type: e.literal("ROUTER"),
|
|
1370
1383
|
coordinates: E,
|
|
@@ -1380,20 +1393,20 @@ const ze = e.object({
|
|
|
1380
1393
|
),
|
|
1381
1394
|
fallback: e.string()
|
|
1382
1395
|
})
|
|
1383
|
-
}),
|
|
1396
|
+
}), jt = e.object({
|
|
1384
1397
|
id: e.string(),
|
|
1385
1398
|
type: e.literal("STEP"),
|
|
1386
1399
|
coordinates: E,
|
|
1387
1400
|
alias: e.string().min(1).max(150).optional(),
|
|
1388
1401
|
config: e.object({
|
|
1389
|
-
components: e.array(
|
|
1402
|
+
components: e.array(P),
|
|
1390
1403
|
next_node: e.string().optional()
|
|
1391
1404
|
})
|
|
1392
|
-
}),
|
|
1393
|
-
Ot,
|
|
1405
|
+
}), Rt = e.discriminatedUnion("type", [
|
|
1394
1406
|
Nt,
|
|
1395
|
-
wt
|
|
1396
|
-
|
|
1407
|
+
wt,
|
|
1408
|
+
jt
|
|
1409
|
+
]), kt = e.object({
|
|
1397
1410
|
name: e.string().openapi({
|
|
1398
1411
|
description: "The name of the form"
|
|
1399
1412
|
}),
|
|
@@ -1406,7 +1419,7 @@ const ze = e.object({
|
|
|
1406
1419
|
default: e.string().optional()
|
|
1407
1420
|
}).optional(),
|
|
1408
1421
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1409
|
-
nodes: e.array(
|
|
1422
|
+
nodes: e.array(Rt).optional(),
|
|
1410
1423
|
start: e.object({
|
|
1411
1424
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
1412
1425
|
next_node: e.string().optional(),
|
|
@@ -1428,42 +1441,42 @@ const ze = e.object({
|
|
|
1428
1441
|
}).optional()
|
|
1429
1442
|
}).openapi({
|
|
1430
1443
|
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1431
|
-
}),
|
|
1432
|
-
...
|
|
1433
|
-
...
|
|
1444
|
+
}), un = e.object({
|
|
1445
|
+
...a.shape,
|
|
1446
|
+
...kt.shape,
|
|
1434
1447
|
id: e.string()
|
|
1435
|
-
}),
|
|
1448
|
+
}), vt = e.object({
|
|
1436
1449
|
id: e.number().optional(),
|
|
1437
1450
|
text: e.string(),
|
|
1438
1451
|
type: e.enum(["info", "error", "success", "warning"])
|
|
1439
|
-
}),
|
|
1452
|
+
}), Dt = e.object({
|
|
1440
1453
|
id: e.string().optional(),
|
|
1441
1454
|
text: e.string(),
|
|
1442
1455
|
href: e.string(),
|
|
1443
1456
|
linkText: e.string().optional()
|
|
1444
|
-
}),
|
|
1457
|
+
}), mn = e.object({
|
|
1445
1458
|
/** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
|
|
1446
1459
|
name: e.string().optional(),
|
|
1447
1460
|
action: e.string(),
|
|
1448
1461
|
method: e.enum(["POST", "GET"]),
|
|
1449
1462
|
title: e.string().optional(),
|
|
1450
1463
|
description: e.string().optional(),
|
|
1451
|
-
components: e.array(
|
|
1452
|
-
messages: e.array(
|
|
1453
|
-
links: e.array(
|
|
1464
|
+
components: e.array(P),
|
|
1465
|
+
messages: e.array(vt).optional(),
|
|
1466
|
+
links: e.array(Dt).optional(),
|
|
1454
1467
|
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
1455
1468
|
footer: e.string().optional()
|
|
1456
1469
|
});
|
|
1457
|
-
function
|
|
1470
|
+
function hn(t) {
|
|
1458
1471
|
return t.category === "BLOCK";
|
|
1459
1472
|
}
|
|
1460
|
-
function
|
|
1473
|
+
function bn(t) {
|
|
1461
1474
|
return t.category === "WIDGET";
|
|
1462
1475
|
}
|
|
1463
|
-
function
|
|
1476
|
+
function fn(t) {
|
|
1464
1477
|
return t.category === "FIELD";
|
|
1465
1478
|
}
|
|
1466
|
-
const
|
|
1479
|
+
const M = e.enum([
|
|
1467
1480
|
"pre-user-registration",
|
|
1468
1481
|
"post-user-registration",
|
|
1469
1482
|
"post-user-login",
|
|
@@ -1472,28 +1485,28 @@ const x = e.enum([
|
|
|
1472
1485
|
"pre-user-deletion",
|
|
1473
1486
|
"post-user-deletion"
|
|
1474
1487
|
// Potentially other triggers specific to webhooks in the future
|
|
1475
|
-
]),
|
|
1488
|
+
]), H = e.enum([
|
|
1476
1489
|
"pre-user-registration",
|
|
1477
1490
|
"post-user-registration",
|
|
1478
1491
|
"post-user-login",
|
|
1479
1492
|
"validate-registration-username",
|
|
1480
1493
|
"pre-user-deletion",
|
|
1481
1494
|
"post-user-deletion"
|
|
1482
|
-
]),
|
|
1495
|
+
]), G = e.enum([
|
|
1483
1496
|
"post-user-login",
|
|
1484
1497
|
"post-user-registration",
|
|
1485
1498
|
"post-user-update",
|
|
1486
1499
|
"credentials-exchange"
|
|
1487
|
-
]),
|
|
1500
|
+
]), B = e.enum([
|
|
1488
1501
|
"post-user-login",
|
|
1489
1502
|
"credentials-exchange",
|
|
1490
1503
|
"pre-user-registration",
|
|
1491
1504
|
"post-user-registration"
|
|
1492
|
-
]),
|
|
1505
|
+
]), W = e.enum([
|
|
1493
1506
|
"ensure-username",
|
|
1494
1507
|
"set-preferred-username",
|
|
1495
1508
|
"account-linking"
|
|
1496
|
-
]),
|
|
1509
|
+
]), En = {
|
|
1497
1510
|
"ensure-username": {
|
|
1498
1511
|
name: "Ensure Username",
|
|
1499
1512
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1530,71 +1543,71 @@ const x = e.enum([
|
|
|
1530
1543
|
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
1531
1544
|
*/
|
|
1532
1545
|
metadata: e.record(e.unknown()).optional()
|
|
1533
|
-
},
|
|
1546
|
+
}, Lt = e.object({
|
|
1534
1547
|
...p,
|
|
1535
|
-
trigger_id:
|
|
1548
|
+
trigger_id: M,
|
|
1536
1549
|
url: e.string()
|
|
1537
|
-
}), Lt = e.object({
|
|
1538
|
-
...p,
|
|
1539
|
-
trigger_id: F,
|
|
1540
|
-
form_id: e.string()
|
|
1541
1550
|
}), Ut = e.object({
|
|
1542
1551
|
...p,
|
|
1543
|
-
trigger_id:
|
|
1544
|
-
|
|
1552
|
+
trigger_id: H,
|
|
1553
|
+
form_id: e.string()
|
|
1545
1554
|
}), xt = e.object({
|
|
1546
1555
|
...p,
|
|
1547
|
-
trigger_id:
|
|
1556
|
+
trigger_id: G,
|
|
1557
|
+
template_id: W
|
|
1558
|
+
}), Ft = e.object({
|
|
1559
|
+
...p,
|
|
1560
|
+
trigger_id: B,
|
|
1548
1561
|
code_id: e.string()
|
|
1549
|
-
}),
|
|
1550
|
-
Dt,
|
|
1562
|
+
}), Sn = e.union([
|
|
1551
1563
|
Lt,
|
|
1552
1564
|
Ut,
|
|
1553
|
-
xt
|
|
1554
|
-
|
|
1565
|
+
xt,
|
|
1566
|
+
Ft
|
|
1567
|
+
]), Pt = e.object({
|
|
1555
1568
|
...p,
|
|
1556
|
-
trigger_id:
|
|
1557
|
-
...
|
|
1569
|
+
trigger_id: M,
|
|
1570
|
+
...a.shape,
|
|
1558
1571
|
hook_id: e.string(),
|
|
1559
1572
|
url: e.string()
|
|
1560
|
-
}),
|
|
1573
|
+
}), Mt = e.object({
|
|
1561
1574
|
...p,
|
|
1562
|
-
trigger_id:
|
|
1563
|
-
...
|
|
1575
|
+
trigger_id: H,
|
|
1576
|
+
...a.shape,
|
|
1564
1577
|
hook_id: e.string(),
|
|
1565
1578
|
form_id: e.string()
|
|
1566
|
-
}),
|
|
1579
|
+
}), Ht = e.object({
|
|
1567
1580
|
...p,
|
|
1568
|
-
trigger_id:
|
|
1569
|
-
...
|
|
1581
|
+
trigger_id: G,
|
|
1582
|
+
...a.shape,
|
|
1570
1583
|
hook_id: e.string(),
|
|
1571
|
-
template_id:
|
|
1572
|
-
}),
|
|
1584
|
+
template_id: W
|
|
1585
|
+
}), Gt = e.object({
|
|
1573
1586
|
...p,
|
|
1574
|
-
trigger_id:
|
|
1575
|
-
...
|
|
1587
|
+
trigger_id: B,
|
|
1588
|
+
...a.shape,
|
|
1576
1589
|
hook_id: e.string(),
|
|
1577
1590
|
code_id: e.string()
|
|
1578
|
-
}),
|
|
1579
|
-
Ft,
|
|
1591
|
+
}), yn = e.union([
|
|
1580
1592
|
Pt,
|
|
1581
1593
|
Mt,
|
|
1582
|
-
Ht
|
|
1583
|
-
|
|
1594
|
+
Ht,
|
|
1595
|
+
Gt
|
|
1596
|
+
]), Bt = e.object({
|
|
1584
1597
|
code: e.string().max(1e5),
|
|
1585
1598
|
secrets: e.record(e.string()).optional()
|
|
1586
|
-
}),
|
|
1599
|
+
}), An = Bt.extend({
|
|
1587
1600
|
id: e.string(),
|
|
1588
1601
|
tenant_id: e.string(),
|
|
1589
|
-
...
|
|
1590
|
-
}), Bt = e.object({
|
|
1591
|
-
name: e.string().optional()
|
|
1602
|
+
...a.shape
|
|
1592
1603
|
}), Wt = e.object({
|
|
1593
|
-
|
|
1604
|
+
name: e.string().optional()
|
|
1594
1605
|
}), Kt = e.object({
|
|
1606
|
+
email: e.string().optional()
|
|
1607
|
+
}), zt = e.object({
|
|
1595
1608
|
organization_id: e.string().max(50),
|
|
1596
|
-
inviter:
|
|
1597
|
-
invitee:
|
|
1609
|
+
inviter: Wt,
|
|
1610
|
+
invitee: Kt,
|
|
1598
1611
|
invitation_url: e.string().url(),
|
|
1599
1612
|
client_id: e.string(),
|
|
1600
1613
|
connection_id: e.string().optional(),
|
|
@@ -1603,13 +1616,13 @@ const x = e.enum([
|
|
|
1603
1616
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1604
1617
|
roles: e.array(e.string()).default([]).optional(),
|
|
1605
1618
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1606
|
-
}),
|
|
1619
|
+
}), In = e.object({
|
|
1607
1620
|
id: e.string(),
|
|
1608
1621
|
organization_id: e.string().max(50),
|
|
1609
1622
|
created_at: e.string().datetime(),
|
|
1610
1623
|
expires_at: e.string().datetime(),
|
|
1611
1624
|
ticket_id: e.string().optional()
|
|
1612
|
-
}).extend(
|
|
1625
|
+
}).extend(zt.shape), qt = e.object({
|
|
1613
1626
|
alg: e.enum([
|
|
1614
1627
|
"RS256",
|
|
1615
1628
|
"RS384",
|
|
@@ -1648,9 +1661,9 @@ const x = e.enum([
|
|
|
1648
1661
|
path: [n],
|
|
1649
1662
|
message: `EC JWK is missing required member '${n}'`
|
|
1650
1663
|
});
|
|
1651
|
-
}),
|
|
1652
|
-
keys: e.array(
|
|
1653
|
-
}),
|
|
1664
|
+
}), Cn = e.object({
|
|
1665
|
+
keys: e.array(qt)
|
|
1666
|
+
}), Tn = e.object({
|
|
1654
1667
|
issuer: e.string(),
|
|
1655
1668
|
authorization_endpoint: e.string(),
|
|
1656
1669
|
token_endpoint: e.string(),
|
|
@@ -1673,21 +1686,21 @@ const x = e.enum([
|
|
|
1673
1686
|
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
1674
1687
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1675
1688
|
});
|
|
1676
|
-
var
|
|
1677
|
-
const
|
|
1689
|
+
var K = /* @__PURE__ */ ((t) => (t.PENDING = "pending", t.AUTHENTICATED = "authenticated", t.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", t.AWAITING_MFA = "awaiting_mfa", t.AWAITING_HOOK = "awaiting_hook", t.AWAITING_CONTINUATION = "awaiting_continuation", t.COMPLETED = "completed", t.FAILED = "failed", t.EXPIRED = "expired", t))(K || {});
|
|
1690
|
+
const Vt = e.nativeEnum(K), Xt = e.object({
|
|
1678
1691
|
strategy: e.string(),
|
|
1679
1692
|
strategy_type: e.string()
|
|
1680
|
-
}),
|
|
1693
|
+
}), Yt = e.object({
|
|
1681
1694
|
csrf_token: e.string(),
|
|
1682
1695
|
auth0Client: e.string().optional(),
|
|
1683
|
-
authParams:
|
|
1696
|
+
authParams: Be,
|
|
1684
1697
|
expires_at: e.string(),
|
|
1685
1698
|
deleted_at: e.string().optional(),
|
|
1686
1699
|
ip: e.string().optional(),
|
|
1687
1700
|
useragent: e.string().optional(),
|
|
1688
1701
|
session_id: e.string().optional(),
|
|
1689
1702
|
authorization_url: e.string().optional(),
|
|
1690
|
-
state:
|
|
1703
|
+
state: Vt.optional().default(
|
|
1691
1704
|
"pending"
|
|
1692
1705
|
/* PENDING */
|
|
1693
1706
|
),
|
|
@@ -1703,14 +1716,14 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1703
1716
|
// ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
|
|
1704
1717
|
}).openapi({
|
|
1705
1718
|
description: "This represents a login sesion"
|
|
1706
|
-
}),
|
|
1707
|
-
...
|
|
1719
|
+
}), On = e.object({
|
|
1720
|
+
...Yt.shape,
|
|
1708
1721
|
id: e.string().openapi({
|
|
1709
1722
|
description: "This is is used as the state in the universal login"
|
|
1710
1723
|
}),
|
|
1711
1724
|
created_at: e.string(),
|
|
1712
1725
|
updated_at: e.string()
|
|
1713
|
-
}),
|
|
1726
|
+
}), Zt = {
|
|
1714
1727
|
// Network & System
|
|
1715
1728
|
ACLS_SUMMARY: "acls_summary",
|
|
1716
1729
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1884,24 +1897,24 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1884
1897
|
WARNING_DURING_LOGIN: "w",
|
|
1885
1898
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1886
1899
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1887
|
-
},
|
|
1888
|
-
(t) => Object.values(
|
|
1900
|
+
}, Qt = e.string().refine(
|
|
1901
|
+
(t) => Object.values(Zt).includes(t),
|
|
1889
1902
|
{ message: "Invalid log type" }
|
|
1890
|
-
),
|
|
1903
|
+
), $t = e.object({
|
|
1891
1904
|
name: e.string(),
|
|
1892
1905
|
version: e.string(),
|
|
1893
1906
|
env: e.object({
|
|
1894
1907
|
node: e.string().optional()
|
|
1895
1908
|
}).optional()
|
|
1896
|
-
}),
|
|
1909
|
+
}), Jt = e.object({
|
|
1897
1910
|
country_code: e.string().length(2),
|
|
1898
1911
|
city_name: e.string(),
|
|
1899
1912
|
latitude: e.string(),
|
|
1900
1913
|
longitude: e.string(),
|
|
1901
1914
|
time_zone: e.string(),
|
|
1902
1915
|
continent_code: e.string()
|
|
1903
|
-
}),
|
|
1904
|
-
type:
|
|
1916
|
+
}), eo = e.object({
|
|
1917
|
+
type: Qt,
|
|
1905
1918
|
date: e.string(),
|
|
1906
1919
|
description: e.string().optional(),
|
|
1907
1920
|
ip: e.string().optional(),
|
|
@@ -1920,39 +1933,39 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1920
1933
|
strategy: e.string().optional(),
|
|
1921
1934
|
strategy_type: e.string().optional(),
|
|
1922
1935
|
hostname: e.string().optional(),
|
|
1923
|
-
auth0_client:
|
|
1936
|
+
auth0_client: $t.optional(),
|
|
1924
1937
|
log_id: e.string().optional(),
|
|
1925
|
-
location_info:
|
|
1926
|
-
}),
|
|
1927
|
-
...
|
|
1938
|
+
location_info: Jt.optional()
|
|
1939
|
+
}), Nn = e.object({
|
|
1940
|
+
...eo.shape,
|
|
1928
1941
|
log_id: e.string()
|
|
1929
|
-
}),
|
|
1942
|
+
}), to = e.enum([
|
|
1930
1943
|
"http",
|
|
1931
1944
|
"eventbridge",
|
|
1932
1945
|
"eventgrid",
|
|
1933
1946
|
"splunk",
|
|
1934
1947
|
"datadog",
|
|
1935
1948
|
"sumo"
|
|
1936
|
-
]),
|
|
1949
|
+
]), z = e.enum([
|
|
1937
1950
|
"active",
|
|
1938
1951
|
"paused",
|
|
1939
1952
|
"suspended"
|
|
1940
|
-
]),
|
|
1953
|
+
]), oo = e.object({
|
|
1941
1954
|
type: e.string(),
|
|
1942
1955
|
name: e.string()
|
|
1943
|
-
}),
|
|
1956
|
+
}), no = e.object({
|
|
1944
1957
|
name: e.string(),
|
|
1945
|
-
type:
|
|
1946
|
-
status:
|
|
1958
|
+
type: to,
|
|
1959
|
+
status: z.optional(),
|
|
1947
1960
|
sink: e.record(e.string(), e.unknown()),
|
|
1948
|
-
filters: e.array(
|
|
1961
|
+
filters: e.array(oo).optional(),
|
|
1949
1962
|
isPriority: e.boolean().optional()
|
|
1950
|
-
}),
|
|
1963
|
+
}), wn = no.extend({
|
|
1951
1964
|
id: e.string(),
|
|
1952
|
-
status:
|
|
1965
|
+
status: z,
|
|
1953
1966
|
created_at: e.string().optional(),
|
|
1954
1967
|
updated_at: e.string().optional()
|
|
1955
|
-
}),
|
|
1968
|
+
}), io = e.object({
|
|
1956
1969
|
enabled: e.boolean().optional(),
|
|
1957
1970
|
shields: e.array(e.string()).optional(),
|
|
1958
1971
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1965,13 +1978,13 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1965
1978
|
shields: e.array(e.string()).optional()
|
|
1966
1979
|
}).optional()
|
|
1967
1980
|
}).optional()
|
|
1968
|
-
}),
|
|
1981
|
+
}), ao = e.object({
|
|
1969
1982
|
enabled: e.boolean().optional(),
|
|
1970
1983
|
shields: e.array(e.string()).optional(),
|
|
1971
1984
|
allowlist: e.array(e.string()).optional(),
|
|
1972
1985
|
mode: e.string().optional(),
|
|
1973
1986
|
max_attempts: e.number().optional()
|
|
1974
|
-
}),
|
|
1987
|
+
}), ro = e.object({
|
|
1975
1988
|
enabled: e.boolean().optional(),
|
|
1976
1989
|
shields: e.array(e.string()).optional(),
|
|
1977
1990
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1985,28 +1998,28 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1985
1998
|
rate: e.number().optional()
|
|
1986
1999
|
}).optional()
|
|
1987
2000
|
}).optional()
|
|
1988
|
-
}), ro = e.object({
|
|
1989
|
-
breached_password_detection: no.optional(),
|
|
1990
|
-
brute_force_protection: io.optional(),
|
|
1991
|
-
suspicious_ip_throttling: ao.optional()
|
|
1992
2001
|
}), so = e.object({
|
|
2002
|
+
breached_password_detection: io.optional(),
|
|
2003
|
+
brute_force_protection: ao.optional(),
|
|
2004
|
+
suspicious_ip_throttling: ro.optional()
|
|
2005
|
+
}), lo = e.object({
|
|
1993
2006
|
id: e.string().optional(),
|
|
1994
2007
|
user_id: e.string(),
|
|
1995
2008
|
password: e.string(),
|
|
1996
2009
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1997
2010
|
is_current: e.boolean().default(!0)
|
|
1998
|
-
}),
|
|
2011
|
+
}), jn = lo.extend({
|
|
1999
2012
|
id: e.string(),
|
|
2000
2013
|
created_at: e.string(),
|
|
2001
2014
|
updated_at: e.string()
|
|
2002
|
-
}),
|
|
2015
|
+
}), q = e.object({
|
|
2003
2016
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
2004
2017
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
2005
2018
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
2006
2019
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
2007
2020
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
2008
2021
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
2009
|
-
}),
|
|
2022
|
+
}), po = e.object({
|
|
2010
2023
|
id: e.string(),
|
|
2011
2024
|
revoked_at: e.string().optional(),
|
|
2012
2025
|
used_at: e.string().optional(),
|
|
@@ -2014,17 +2027,17 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2014
2027
|
expires_at: e.string().optional(),
|
|
2015
2028
|
login_session_id: e.string(),
|
|
2016
2029
|
idle_expires_at: e.string().optional(),
|
|
2017
|
-
device:
|
|
2030
|
+
device: q.describe(
|
|
2018
2031
|
"Metadata related to the device used in the session"
|
|
2019
2032
|
),
|
|
2020
2033
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
2021
|
-
}),
|
|
2034
|
+
}), Rn = e.object({
|
|
2022
2035
|
created_at: e.string(),
|
|
2023
2036
|
updated_at: e.string(),
|
|
2024
2037
|
authenticated_at: e.string(),
|
|
2025
2038
|
last_interaction_at: e.string(),
|
|
2026
|
-
...
|
|
2027
|
-
}),
|
|
2039
|
+
...po.shape
|
|
2040
|
+
}), kn = e.object({
|
|
2028
2041
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
2029
2042
|
tenant_id: e.string().optional().openapi({
|
|
2030
2043
|
description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped."
|
|
@@ -2052,7 +2065,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2052
2065
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
|
|
2053
2066
|
description: "The type of the signing key"
|
|
2054
2067
|
})
|
|
2055
|
-
}),
|
|
2068
|
+
}), co = e.object({
|
|
2056
2069
|
id: e.string().optional(),
|
|
2057
2070
|
// Basic settings
|
|
2058
2071
|
audience: e.string(),
|
|
@@ -2205,7 +2218,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2205
2218
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
2206
2219
|
authorization_response_iss_parameter_supported: e.boolean().optional(),
|
|
2207
2220
|
// Attack-protection config (singleton, exposed via /api/v2/attack-protection)
|
|
2208
|
-
attack_protection:
|
|
2221
|
+
attack_protection: so.optional(),
|
|
2209
2222
|
// Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
|
|
2210
2223
|
mfa: e.object({
|
|
2211
2224
|
// MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
|
|
@@ -2237,14 +2250,14 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2237
2250
|
message: e.string().optional()
|
|
2238
2251
|
}).optional()
|
|
2239
2252
|
}).optional()
|
|
2240
|
-
}),
|
|
2253
|
+
}), vn = e.object({
|
|
2241
2254
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
2242
2255
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
2243
|
-
...
|
|
2256
|
+
...co.shape,
|
|
2244
2257
|
id: e.string()
|
|
2245
2258
|
});
|
|
2246
|
-
var
|
|
2247
|
-
const
|
|
2259
|
+
var _o = /* @__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))(_o || {});
|
|
2260
|
+
const Dn = e.object({
|
|
2248
2261
|
access_token: e.string(),
|
|
2249
2262
|
id_token: e.string().optional(),
|
|
2250
2263
|
scope: e.string().optional(),
|
|
@@ -2257,7 +2270,7 @@ e.object({
|
|
|
2257
2270
|
code: e.string(),
|
|
2258
2271
|
state: e.string().optional()
|
|
2259
2272
|
});
|
|
2260
|
-
const
|
|
2273
|
+
const go = e.object({
|
|
2261
2274
|
button_border_radius: e.number(),
|
|
2262
2275
|
button_border_weight: e.number(),
|
|
2263
2276
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -2267,7 +2280,7 @@ const _o = e.object({
|
|
|
2267
2280
|
show_widget_shadow: e.boolean(),
|
|
2268
2281
|
widget_border_weight: e.number(),
|
|
2269
2282
|
widget_corner_radius: e.number()
|
|
2270
|
-
}),
|
|
2283
|
+
}), uo = e.object({
|
|
2271
2284
|
base_focus_color: e.string(),
|
|
2272
2285
|
base_hover_color: e.string(),
|
|
2273
2286
|
body_text: e.string(),
|
|
@@ -2290,7 +2303,7 @@ const _o = e.object({
|
|
|
2290
2303
|
}), u = e.object({
|
|
2291
2304
|
bold: e.boolean(),
|
|
2292
2305
|
size: e.number()
|
|
2293
|
-
}),
|
|
2306
|
+
}), mo = e.object({
|
|
2294
2307
|
body_text: u,
|
|
2295
2308
|
buttons_text: u,
|
|
2296
2309
|
font_url: e.string(),
|
|
@@ -2300,7 +2313,7 @@ const _o = e.object({
|
|
|
2300
2313
|
reference_text_size: e.number(),
|
|
2301
2314
|
subtitle: u,
|
|
2302
2315
|
title: u
|
|
2303
|
-
}),
|
|
2316
|
+
}), ho = e.object({
|
|
2304
2317
|
background_color: e.string(),
|
|
2305
2318
|
background_image_url: e.string(),
|
|
2306
2319
|
page_layout: e.enum(["center", "left", "right"]),
|
|
@@ -2313,33 +2326,33 @@ const _o = e.object({
|
|
|
2313
2326
|
* Optional for backwards compatibility; absent values mean "widget".
|
|
2314
2327
|
*/
|
|
2315
2328
|
logo_placement: e.enum(["widget", "chip", "none"]).optional()
|
|
2316
|
-
}),
|
|
2329
|
+
}), bo = e.object({
|
|
2317
2330
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
2318
2331
|
logo_height: e.number(),
|
|
2319
2332
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
2320
2333
|
logo_url: e.string(),
|
|
2321
2334
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2322
|
-
}),
|
|
2323
|
-
borders:
|
|
2324
|
-
colors:
|
|
2335
|
+
}), fo = e.object({
|
|
2336
|
+
borders: go,
|
|
2337
|
+
colors: uo,
|
|
2325
2338
|
displayName: e.string(),
|
|
2326
|
-
fonts:
|
|
2327
|
-
page_background:
|
|
2328
|
-
widget:
|
|
2329
|
-
}),
|
|
2339
|
+
fonts: mo,
|
|
2340
|
+
page_background: ho,
|
|
2341
|
+
widget: bo
|
|
2342
|
+
}), Ln = fo.extend({
|
|
2330
2343
|
themeId: e.string()
|
|
2331
|
-
}),
|
|
2344
|
+
}), Un = e.object({
|
|
2332
2345
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2333
2346
|
identifier_first: e.boolean().default(!0),
|
|
2334
2347
|
password_first: e.boolean().default(!1),
|
|
2335
2348
|
webauthn_platform_first_factor: e.boolean()
|
|
2336
|
-
}),
|
|
2349
|
+
}), xn = e.object({
|
|
2337
2350
|
name: e.string(),
|
|
2338
2351
|
enabled: e.boolean().optional().default(!0),
|
|
2339
2352
|
default_from_address: e.string().optional(),
|
|
2340
2353
|
credentials: e.record(e.string(), e.unknown()),
|
|
2341
2354
|
settings: e.object({}).optional()
|
|
2342
|
-
}),
|
|
2355
|
+
}), Eo = e.enum([
|
|
2343
2356
|
"verify_email",
|
|
2344
2357
|
"verify_email_by_code",
|
|
2345
2358
|
"reset_email",
|
|
@@ -2352,8 +2365,8 @@ const _o = e.object({
|
|
|
2352
2365
|
"change_password",
|
|
2353
2366
|
"password_reset",
|
|
2354
2367
|
"user_invitation"
|
|
2355
|
-
]),
|
|
2356
|
-
template:
|
|
2368
|
+
]), Fn = e.object({
|
|
2369
|
+
template: Eo,
|
|
2357
2370
|
body: e.string(),
|
|
2358
2371
|
from: e.string(),
|
|
2359
2372
|
subject: e.string(),
|
|
@@ -2362,7 +2375,7 @@ const _o = e.object({
|
|
|
2362
2375
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2363
2376
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2364
2377
|
enabled: e.boolean().default(!0)
|
|
2365
|
-
}),
|
|
2378
|
+
}), So = e.object({
|
|
2366
2379
|
// Internal primary key (ULID). Never sent to clients in the new wire format.
|
|
2367
2380
|
id: e.string(),
|
|
2368
2381
|
// Link to the login session
|
|
@@ -2375,7 +2388,7 @@ const _o = e.object({
|
|
|
2375
2388
|
idle_expires_at: e.string().optional(),
|
|
2376
2389
|
// When the token was last used.
|
|
2377
2390
|
last_exchanged_at: e.string().optional(),
|
|
2378
|
-
device:
|
|
2391
|
+
device: q,
|
|
2379
2392
|
resource_servers: e.array(
|
|
2380
2393
|
e.object({
|
|
2381
2394
|
audience: e.string(),
|
|
@@ -2396,23 +2409,23 @@ const _o = e.object({
|
|
|
2396
2409
|
// ISO of the *first* rotation. Anchors the leeway window so siblings minted
|
|
2397
2410
|
// within the window don't extend the parent's exposure.
|
|
2398
2411
|
rotated_at: e.string().optional()
|
|
2399
|
-
}),
|
|
2412
|
+
}), Pn = e.object({
|
|
2400
2413
|
// When the refresh token record was created.
|
|
2401
2414
|
created_at: e.string(),
|
|
2402
2415
|
// When the token was explicitly revoked (null = still active).
|
|
2403
2416
|
revoked_at: e.string().optional(),
|
|
2404
2417
|
// Spread in the rest of the refresh token properties.
|
|
2405
|
-
...
|
|
2406
|
-
}),
|
|
2418
|
+
...So.shape
|
|
2419
|
+
}), Mn = e.object({
|
|
2407
2420
|
to: e.string(),
|
|
2408
2421
|
message: e.string()
|
|
2409
|
-
}),
|
|
2422
|
+
}), Hn = e.object({
|
|
2410
2423
|
name: e.string(),
|
|
2411
2424
|
options: e.object({})
|
|
2412
|
-
}),
|
|
2425
|
+
}), yo = e.object({
|
|
2413
2426
|
value: e.string(),
|
|
2414
2427
|
description: e.string().optional()
|
|
2415
|
-
}),
|
|
2428
|
+
}), Ao = e.object({
|
|
2416
2429
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2417
2430
|
enforce_policies: e.boolean().optional(),
|
|
2418
2431
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2422,11 +2435,11 @@ const _o = e.object({
|
|
|
2422
2435
|
mtls: e.object({
|
|
2423
2436
|
bound_access_tokens: e.boolean().optional()
|
|
2424
2437
|
}).optional()
|
|
2425
|
-
}),
|
|
2438
|
+
}), Io = e.object({
|
|
2426
2439
|
id: e.string().optional(),
|
|
2427
2440
|
name: e.string(),
|
|
2428
2441
|
identifier: e.string(),
|
|
2429
|
-
scopes: e.array(
|
|
2442
|
+
scopes: e.array(yo).optional(),
|
|
2430
2443
|
signing_alg: e.string().optional(),
|
|
2431
2444
|
signing_secret: e.string().optional(),
|
|
2432
2445
|
token_lifetime: e.number().default(86400),
|
|
@@ -2434,30 +2447,30 @@ const _o = e.object({
|
|
|
2434
2447
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2435
2448
|
allow_offline_access: e.boolean().optional(),
|
|
2436
2449
|
verificationKey: e.string().optional(),
|
|
2437
|
-
options:
|
|
2450
|
+
options: Ao.optional(),
|
|
2438
2451
|
is_system: e.boolean().optional(),
|
|
2439
2452
|
metadata: e.record(e.any()).optional()
|
|
2440
|
-
}),
|
|
2441
|
-
...
|
|
2453
|
+
}), Co = e.object({
|
|
2454
|
+
...Io.shape,
|
|
2442
2455
|
created_at: e.string().optional(),
|
|
2443
2456
|
updated_at: e.string().optional()
|
|
2444
|
-
}),
|
|
2457
|
+
}), Gn = e.array(Co), To = e.object({
|
|
2445
2458
|
role_id: e.string(),
|
|
2446
2459
|
resource_server_identifier: e.string(),
|
|
2447
2460
|
permission_name: e.string()
|
|
2448
|
-
}),
|
|
2449
|
-
...
|
|
2461
|
+
}), Oo = e.object({
|
|
2462
|
+
...To.shape,
|
|
2450
2463
|
created_at: e.string()
|
|
2451
|
-
}),
|
|
2464
|
+
}), Bn = e.array(Oo), No = e.object({
|
|
2452
2465
|
user_id: e.string(),
|
|
2453
2466
|
resource_server_identifier: e.string(),
|
|
2454
2467
|
permission_name: e.string(),
|
|
2455
2468
|
organization_id: e.string().optional()
|
|
2456
|
-
}),
|
|
2457
|
-
...
|
|
2469
|
+
}), wo = e.object({
|
|
2470
|
+
...No.shape,
|
|
2458
2471
|
tenant_id: e.string(),
|
|
2459
2472
|
created_at: e.string().optional()
|
|
2460
|
-
}),
|
|
2473
|
+
}), Wn = e.array(wo), jo = e.object({
|
|
2461
2474
|
user_id: e.string(),
|
|
2462
2475
|
resource_server_identifier: e.string(),
|
|
2463
2476
|
resource_server_name: e.string(),
|
|
@@ -2465,17 +2478,17 @@ const _o = e.object({
|
|
|
2465
2478
|
description: e.string().nullable().optional(),
|
|
2466
2479
|
created_at: e.string().optional(),
|
|
2467
2480
|
organization_id: e.string().optional()
|
|
2468
|
-
}),
|
|
2469
|
-
|
|
2470
|
-
),
|
|
2481
|
+
}), Kn = e.array(
|
|
2482
|
+
jo
|
|
2483
|
+
), Ro = e.object({
|
|
2471
2484
|
user_id: e.string(),
|
|
2472
2485
|
role_id: e.string(),
|
|
2473
2486
|
organization_id: e.string().optional()
|
|
2474
|
-
}),
|
|
2475
|
-
...
|
|
2487
|
+
}), ko = e.object({
|
|
2488
|
+
...Ro.shape,
|
|
2476
2489
|
tenant_id: e.string(),
|
|
2477
2490
|
created_at: e.string().optional()
|
|
2478
|
-
}),
|
|
2491
|
+
}), zn = e.array(ko), vo = e.object({
|
|
2479
2492
|
id: e.string().optional().openapi({
|
|
2480
2493
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
2481
2494
|
}),
|
|
@@ -2489,13 +2502,13 @@ const _o = e.object({
|
|
|
2489
2502
|
metadata: e.record(e.any()).optional().openapi({
|
|
2490
2503
|
description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
|
|
2491
2504
|
})
|
|
2492
|
-
}),
|
|
2505
|
+
}), Do = vo.extend({
|
|
2493
2506
|
id: e.string().openapi({
|
|
2494
2507
|
description: "The unique identifier of the role"
|
|
2495
2508
|
}),
|
|
2496
2509
|
created_at: e.string().optional(),
|
|
2497
2510
|
updated_at: e.string().optional()
|
|
2498
|
-
}),
|
|
2511
|
+
}), qn = e.array(Do), Lo = e.object({
|
|
2499
2512
|
logo_url: e.string().optional().openapi({
|
|
2500
2513
|
description: "URL of the organization's logo"
|
|
2501
2514
|
}),
|
|
@@ -2507,7 +2520,7 @@ const _o = e.object({
|
|
|
2507
2520
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
2508
2521
|
})
|
|
2509
2522
|
}).optional()
|
|
2510
|
-
}).optional(),
|
|
2523
|
+
}).optional(), Uo = e.object({
|
|
2511
2524
|
connection_id: e.string().openapi({
|
|
2512
2525
|
description: "ID of the connection"
|
|
2513
2526
|
}),
|
|
@@ -2520,7 +2533,7 @@ const _o = e.object({
|
|
|
2520
2533
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
2521
2534
|
description: "Whether signup is enabled for this connection"
|
|
2522
2535
|
})
|
|
2523
|
-
}),
|
|
2536
|
+
}), xo = e.object({
|
|
2524
2537
|
client_credentials: e.object({
|
|
2525
2538
|
enforce: e.boolean().default(!1).openapi({
|
|
2526
2539
|
description: "Whether to enforce token quota limits"
|
|
@@ -2532,7 +2545,7 @@ const _o = e.object({
|
|
|
2532
2545
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
2533
2546
|
})
|
|
2534
2547
|
}).optional()
|
|
2535
|
-
}).optional(),
|
|
2548
|
+
}).optional(), Fo = e.object({
|
|
2536
2549
|
id: e.string().optional(),
|
|
2537
2550
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
|
|
2538
2551
|
message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
|
|
@@ -2542,31 +2555,31 @@ const _o = e.object({
|
|
|
2542
2555
|
display_name: e.string().optional().openapi({
|
|
2543
2556
|
description: "The display name of the organization"
|
|
2544
2557
|
}),
|
|
2545
|
-
branding:
|
|
2558
|
+
branding: Lo,
|
|
2546
2559
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
2547
2560
|
description: "Custom metadata for the organization"
|
|
2548
2561
|
}),
|
|
2549
|
-
enabled_connections: e.array(
|
|
2562
|
+
enabled_connections: e.array(Uo).default([]).optional().openapi({
|
|
2550
2563
|
description: "List of enabled connections for the organization"
|
|
2551
2564
|
}),
|
|
2552
|
-
token_quota:
|
|
2553
|
-
}),
|
|
2554
|
-
...
|
|
2555
|
-
...
|
|
2565
|
+
token_quota: xo
|
|
2566
|
+
}), Vn = e.object({
|
|
2567
|
+
...Fo.shape,
|
|
2568
|
+
...a.shape,
|
|
2556
2569
|
id: e.string(),
|
|
2557
2570
|
// Override name to be lenient when reading from database (to support existing uppercase names)
|
|
2558
2571
|
name: e.string().min(1).openapi({
|
|
2559
2572
|
description: "The name of the organization"
|
|
2560
2573
|
})
|
|
2561
|
-
}),
|
|
2574
|
+
}), Po = e.object({
|
|
2562
2575
|
connection_id: e.string().openapi({
|
|
2563
2576
|
description: "ID of the tenant-level connection to enable for the org."
|
|
2564
2577
|
}),
|
|
2565
2578
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2566
2579
|
show_as_button: e.boolean().optional().default(!0),
|
|
2567
2580
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2568
|
-
}),
|
|
2569
|
-
...
|
|
2581
|
+
}), Mo = e.object({
|
|
2582
|
+
...Po.shape,
|
|
2570
2583
|
// Auth0 includes the embedded connection in GET responses.
|
|
2571
2584
|
connection: e.object({
|
|
2572
2585
|
name: e.string().optional(),
|
|
@@ -2574,20 +2587,20 @@ const _o = e.object({
|
|
|
2574
2587
|
}).optional(),
|
|
2575
2588
|
created_at: e.string().optional(),
|
|
2576
2589
|
updated_at: e.string().optional()
|
|
2577
|
-
}),
|
|
2578
|
-
|
|
2579
|
-
),
|
|
2590
|
+
}), Xn = e.array(
|
|
2591
|
+
Mo
|
|
2592
|
+
), Ho = e.object({
|
|
2580
2593
|
user_id: e.string().openapi({
|
|
2581
2594
|
description: "ID of the user"
|
|
2582
2595
|
}),
|
|
2583
2596
|
organization_id: e.string().openapi({
|
|
2584
2597
|
description: "ID of the organization"
|
|
2585
2598
|
})
|
|
2586
|
-
}),
|
|
2587
|
-
...
|
|
2588
|
-
...
|
|
2599
|
+
}), Yn = e.object({
|
|
2600
|
+
...Ho.shape,
|
|
2601
|
+
...a.shape,
|
|
2589
2602
|
id: e.string()
|
|
2590
|
-
}),
|
|
2603
|
+
}), Zn = e.object({
|
|
2591
2604
|
// Session settings
|
|
2592
2605
|
idle_session_lifetime: e.number().default(72),
|
|
2593
2606
|
session_lifetime: e.number().default(168),
|
|
@@ -2687,7 +2700,7 @@ const _o = e.object({
|
|
|
2687
2700
|
message: e.string().optional()
|
|
2688
2701
|
}).optional()
|
|
2689
2702
|
}).optional()
|
|
2690
|
-
}),
|
|
2703
|
+
}), Qn = e.object({
|
|
2691
2704
|
date: e.string().openapi({
|
|
2692
2705
|
description: "Date these events occurred in ISO 8601 format",
|
|
2693
2706
|
example: "2025-12-19"
|
|
@@ -2712,10 +2725,10 @@ const _o = e.object({
|
|
|
2712
2725
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2713
2726
|
example: "2025-12-19T00:00:00.000Z"
|
|
2714
2727
|
})
|
|
2715
|
-
}),
|
|
2728
|
+
}), $n = e.number().openapi({
|
|
2716
2729
|
description: "Number of active users in the last 30 days",
|
|
2717
2730
|
example: 1234
|
|
2718
|
-
}),
|
|
2731
|
+
}), Go = e.enum([
|
|
2719
2732
|
"login",
|
|
2720
2733
|
"login-id",
|
|
2721
2734
|
"login-password",
|
|
@@ -2744,17 +2757,17 @@ const _o = e.object({
|
|
|
2744
2757
|
"custom-form",
|
|
2745
2758
|
"login-passwordless",
|
|
2746
2759
|
"mfa-login-options"
|
|
2747
|
-
]),
|
|
2760
|
+
]), Bo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2748
2761
|
type: "object",
|
|
2749
2762
|
additionalProperties: {
|
|
2750
2763
|
type: "object",
|
|
2751
2764
|
additionalProperties: { type: "string" }
|
|
2752
2765
|
}
|
|
2753
|
-
}),
|
|
2754
|
-
prompt:
|
|
2766
|
+
}), Jn = e.object({
|
|
2767
|
+
prompt: Go,
|
|
2755
2768
|
language: e.string(),
|
|
2756
|
-
custom_text:
|
|
2757
|
-
}),
|
|
2769
|
+
custom_text: Bo
|
|
2770
|
+
}), ei = {
|
|
2758
2771
|
EMAIL: "email",
|
|
2759
2772
|
SMS: "sms",
|
|
2760
2773
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2770,11 +2783,11 @@ const _o = e.object({
|
|
|
2770
2783
|
WAAD: "waad",
|
|
2771
2784
|
ADFS: "adfs",
|
|
2772
2785
|
AUTH0: "auth0"
|
|
2773
|
-
},
|
|
2786
|
+
}, ti = {
|
|
2774
2787
|
DATABASE: "database",
|
|
2775
2788
|
SOCIAL: "social",
|
|
2776
2789
|
PASSWORDLESS: "passwordless"
|
|
2777
|
-
},
|
|
2790
|
+
}, Wo = e.enum([
|
|
2778
2791
|
"phone",
|
|
2779
2792
|
"totp",
|
|
2780
2793
|
"email",
|
|
@@ -2782,9 +2795,9 @@ const _o = e.object({
|
|
|
2782
2795
|
"webauthn-roaming",
|
|
2783
2796
|
"webauthn-platform",
|
|
2784
2797
|
"passkey"
|
|
2785
|
-
]),
|
|
2798
|
+
]), V = e.object({
|
|
2786
2799
|
user_id: e.string(),
|
|
2787
|
-
type:
|
|
2800
|
+
type: Wo,
|
|
2788
2801
|
// Phone-specific
|
|
2789
2802
|
phone_number: e.string().optional(),
|
|
2790
2803
|
// TOTP-specific
|
|
@@ -2799,7 +2812,7 @@ const _o = e.object({
|
|
|
2799
2812
|
// Common
|
|
2800
2813
|
confirmed: e.boolean().default(!1)
|
|
2801
2814
|
});
|
|
2802
|
-
function
|
|
2815
|
+
function X(t, o) {
|
|
2803
2816
|
t.type === "phone" && !t.phone_number && o.addIssue({
|
|
2804
2817
|
code: e.ZodIssueCode.custom,
|
|
2805
2818
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2818,32 +2831,32 @@ function z(t, o) {
|
|
|
2818
2831
|
path: ["public_key"]
|
|
2819
2832
|
}));
|
|
2820
2833
|
}
|
|
2821
|
-
const
|
|
2822
|
-
...
|
|
2834
|
+
const oi = V.superRefine(X), ni = e.object({
|
|
2835
|
+
...V.shape,
|
|
2823
2836
|
id: e.string(),
|
|
2824
2837
|
created_at: e.string(),
|
|
2825
2838
|
updated_at: e.string()
|
|
2826
|
-
}).superRefine(
|
|
2827
|
-
function
|
|
2839
|
+
}).superRefine(X);
|
|
2840
|
+
function ii(t) {
|
|
2828
2841
|
const [o, n] = t.split("|");
|
|
2829
2842
|
if (!o || !n)
|
|
2830
2843
|
throw new Error(`Invalid user_id: ${t}`);
|
|
2831
2844
|
return { connection: o, id: n };
|
|
2832
2845
|
}
|
|
2833
|
-
function
|
|
2846
|
+
function ai(t) {
|
|
2834
2847
|
const {
|
|
2835
2848
|
primary: o,
|
|
2836
2849
|
secondaries: n,
|
|
2837
2850
|
syncMethods: h = ["create", "rawCreate", "update", "remove", "delete", "set"]
|
|
2838
2851
|
} = t, S = {
|
|
2839
|
-
get(c,
|
|
2840
|
-
if (typeof
|
|
2841
|
-
return c[
|
|
2842
|
-
const d = c[
|
|
2843
|
-
return typeof d != "function" ? d : h.includes(
|
|
2852
|
+
get(c, r) {
|
|
2853
|
+
if (typeof r == "symbol")
|
|
2854
|
+
return c[r];
|
|
2855
|
+
const d = c[r];
|
|
2856
|
+
return typeof d != "function" ? d : h.includes(r) ? async (..._) => {
|
|
2844
2857
|
const y = await d.apply(c, _), g = [];
|
|
2845
2858
|
for (const s of n) {
|
|
2846
|
-
const b = s.adapter[
|
|
2859
|
+
const b = s.adapter[r];
|
|
2847
2860
|
if (typeof b != "function")
|
|
2848
2861
|
continue;
|
|
2849
2862
|
const A = (async () => {
|
|
@@ -2851,13 +2864,13 @@ function ni(t) {
|
|
|
2851
2864
|
await b.apply(s.adapter, _);
|
|
2852
2865
|
} catch (f) {
|
|
2853
2866
|
try {
|
|
2854
|
-
s.onError ? s.onError(f,
|
|
2855
|
-
`Passthrough adapter: secondary write failed for ${
|
|
2867
|
+
s.onError ? s.onError(f, r, _) : console.error(
|
|
2868
|
+
`Passthrough adapter: secondary write failed for ${r}:`,
|
|
2856
2869
|
f
|
|
2857
2870
|
);
|
|
2858
2871
|
} catch (I) {
|
|
2859
2872
|
console.error(
|
|
2860
|
-
`Passthrough adapter: onError handler threw for ${
|
|
2873
|
+
`Passthrough adapter: onError handler threw for ${r}:`,
|
|
2861
2874
|
I
|
|
2862
2875
|
);
|
|
2863
2876
|
}
|
|
@@ -2871,11 +2884,11 @@ function ni(t) {
|
|
|
2871
2884
|
};
|
|
2872
2885
|
return new Proxy(o, S);
|
|
2873
2886
|
}
|
|
2874
|
-
function
|
|
2887
|
+
function ri(t) {
|
|
2875
2888
|
return t;
|
|
2876
2889
|
}
|
|
2877
|
-
function
|
|
2878
|
-
var S, c,
|
|
2890
|
+
function si(t) {
|
|
2891
|
+
var S, c, r, d, _, y, g, s, b, A, f, I;
|
|
2879
2892
|
const o = t == null ? void 0 : t.options;
|
|
2880
2893
|
if (!o)
|
|
2881
2894
|
return {
|
|
@@ -2886,12 +2899,12 @@ function ai(t) {
|
|
|
2886
2899
|
};
|
|
2887
2900
|
const n = o.attributes;
|
|
2888
2901
|
if (n) {
|
|
2889
|
-
const
|
|
2902
|
+
const Y = ((c = (S = n.username) == null ? void 0 : S.identifier) == null ? void 0 : c.active) === !0, Z = ((d = (r = n.email) == null ? void 0 : r.identifier) == null ? void 0 : d.active) !== !1, Q = ((y = (_ = n.username) == null ? void 0 : _.validation) == null ? void 0 : y.min_length) ?? 1, $ = ((s = (g = n.username) == null ? void 0 : g.validation) == null ? void 0 : s.max_length) ?? 15;
|
|
2890
2903
|
return {
|
|
2891
|
-
usernameIdentifierActive:
|
|
2892
|
-
emailIdentifierActive:
|
|
2893
|
-
usernameMinLength:
|
|
2894
|
-
usernameMaxLength:
|
|
2904
|
+
usernameIdentifierActive: Y,
|
|
2905
|
+
emailIdentifierActive: Z,
|
|
2906
|
+
usernameMinLength: Q,
|
|
2907
|
+
usernameMaxLength: $
|
|
2895
2908
|
};
|
|
2896
2909
|
}
|
|
2897
2910
|
return {
|
|
@@ -2901,203 +2914,205 @@ function ai(t) {
|
|
|
2901
2914
|
usernameMaxLength: ((I = (f = o.validation) == null ? void 0 : f.username) == null ? void 0 : I.max) ?? 15
|
|
2902
2915
|
};
|
|
2903
2916
|
}
|
|
2904
|
-
function
|
|
2917
|
+
function li(t) {
|
|
2905
2918
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2906
2919
|
}
|
|
2907
2920
|
export {
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
Jo as
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
Ie as
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2921
|
+
Zo as Auth0ActionEnum,
|
|
2922
|
+
$t as Auth0Client,
|
|
2923
|
+
x as AuthorizationResponseMode,
|
|
2924
|
+
U as AuthorizationResponseType,
|
|
2925
|
+
F as CodeChallengeMethod,
|
|
2926
|
+
L as ComponentCategory,
|
|
2927
|
+
D as ComponentType,
|
|
2928
|
+
Qo as EmailActionEnum,
|
|
2929
|
+
_n as FORM_FIELD_TYPES,
|
|
2930
|
+
Yo as FlowActionTypeEnum,
|
|
2931
|
+
_o as GrantType,
|
|
2932
|
+
Jt as LocationInfo,
|
|
2933
|
+
Zt as LogTypes,
|
|
2934
|
+
K as LoginSessionState,
|
|
2935
|
+
De as NodeType,
|
|
2936
|
+
de as RedirectTargetEnum,
|
|
2937
|
+
ei as Strategy,
|
|
2938
|
+
ti as StrategyType,
|
|
2939
|
+
j as actionDependencySchema,
|
|
2940
|
+
k as actionInsertSchema,
|
|
2941
|
+
xe as actionNodeSchema,
|
|
2942
|
+
qo as actionSchema,
|
|
2943
|
+
R as actionSecretSchema,
|
|
2944
|
+
w as actionTriggerSchema,
|
|
2945
|
+
zo as actionUpdateSchema,
|
|
2946
|
+
J as actionVersionInsertSchema,
|
|
2947
|
+
Vo as actionVersionSchema,
|
|
2948
|
+
$n as activeUsersResponseSchema,
|
|
2949
|
+
te as actorSchema,
|
|
2950
|
+
be as addressSchema,
|
|
2951
|
+
so as attackProtectionSchema,
|
|
2952
|
+
ee as auditCategorySchema,
|
|
2953
|
+
se as auditEventInsertSchema,
|
|
2954
|
+
Xo as auditEventSchema,
|
|
2955
|
+
re as auth0ClientSchema,
|
|
2956
|
+
sn as auth0FlowInsertSchema,
|
|
2957
|
+
Ge as auth0FlowSchema,
|
|
2958
|
+
Jo as auth0QuerySchema,
|
|
2959
|
+
pe as auth0UpdateUserActionSchema,
|
|
2960
|
+
tn as auth0UserResponseSchema,
|
|
2961
|
+
Be as authParamsSchema,
|
|
2962
|
+
oi as authenticationMethodInsertSchema,
|
|
2963
|
+
ni as authenticationMethodSchema,
|
|
2964
|
+
Wo as authenticationMethodTypeSchema,
|
|
2965
|
+
v as baseUserSchema,
|
|
2966
|
+
Ct as blockComponentSchema,
|
|
2967
|
+
go as bordersSchema,
|
|
2968
|
+
ln as brandingSchema,
|
|
2969
|
+
io as breachedPasswordDetectionSchema,
|
|
2970
|
+
ao as bruteForceProtectionSchema,
|
|
2971
|
+
we as buttonComponentSchema,
|
|
2972
|
+
Ie as clientGrantInsertSchema,
|
|
2973
|
+
an as clientGrantListSchema,
|
|
2974
|
+
Ce as clientGrantSchema,
|
|
2975
|
+
Ae as clientInsertSchema,
|
|
2976
|
+
Oe as clientRegistrationTokenInsertSchema,
|
|
2977
|
+
rn as clientRegistrationTokenSchema,
|
|
2978
|
+
Te as clientRegistrationTokenTypeSchema,
|
|
2979
|
+
nn as clientSchema,
|
|
2980
|
+
Ke as codeInsertSchema,
|
|
2981
|
+
pn as codeSchema,
|
|
2982
|
+
We as codeTypeSchema,
|
|
2983
|
+
uo as colorsSchema,
|
|
2984
|
+
vt as componentMessageSchema,
|
|
2985
|
+
ve as componentSchema,
|
|
2986
|
+
qe as connectionInsertSchema,
|
|
2987
|
+
ze as connectionOptionsSchema,
|
|
2988
|
+
cn as connectionSchema,
|
|
2974
2989
|
m as coordinatesSchema,
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2990
|
+
ai as createPassthroughAdapter,
|
|
2991
|
+
ri as createWriteOnlyAdapter,
|
|
2992
|
+
Ve as customDomainInsertSchema,
|
|
2993
|
+
Ye as customDomainSchema,
|
|
2994
|
+
dn as customDomainWithTenantIdSchema,
|
|
2995
|
+
Jn as customTextEntrySchema,
|
|
2996
|
+
Bo as customTextSchema,
|
|
2997
|
+
Qn as dailyStatsSchema,
|
|
2998
|
+
xn as emailProviderSchema,
|
|
2999
|
+
Eo as emailTemplateNameSchema,
|
|
3000
|
+
Fn as emailTemplateSchema,
|
|
3001
|
+
le as emailVerificationRulesSchema,
|
|
3002
|
+
ce as emailVerifyActionSchema,
|
|
3003
|
+
He as endingSchema,
|
|
3004
|
+
Ot as fieldComponentSchema,
|
|
3005
|
+
ge as flowActionStepSchema,
|
|
3006
|
+
ue as flowInsertSchema,
|
|
3007
|
+
$o as flowSchema,
|
|
3008
|
+
Re as flowsFieldComponentSchema,
|
|
3009
|
+
Ue as flowsFlowNodeSchema,
|
|
3010
|
+
Le as flowsStepNodeSchema,
|
|
2996
3011
|
u as fontDetailsSchema,
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3012
|
+
mo as fontsSchema,
|
|
3013
|
+
gn as formControlSchema,
|
|
3014
|
+
kt as formInsertSchema,
|
|
3015
|
+
P as formNodeComponentDefinition,
|
|
3016
|
+
Rt as formNodeSchema,
|
|
3017
|
+
un as formSchema,
|
|
3018
|
+
ke as genericComponentSchema,
|
|
3019
|
+
Fe as genericNodeSchema,
|
|
3020
|
+
si as getConnectionIdentifierConfig,
|
|
3021
|
+
Bt as hookCodeInsertSchema,
|
|
3022
|
+
An as hookCodeSchema,
|
|
3023
|
+
Sn as hookInsertSchema,
|
|
3024
|
+
yn as hookSchema,
|
|
3025
|
+
W as hookTemplateId,
|
|
3026
|
+
En as hookTemplates,
|
|
3027
|
+
he as identitySchema,
|
|
3028
|
+
zt as inviteInsertSchema,
|
|
3029
|
+
In as inviteSchema,
|
|
3030
|
+
Kt as inviteeSchema,
|
|
3031
|
+
Wt as inviterSchema,
|
|
3032
|
+
hn as isBlockComponent,
|
|
3033
|
+
fn as isFieldComponent,
|
|
3034
|
+
li as isPlainObject,
|
|
3035
|
+
bn as isWidgetComponent,
|
|
3036
|
+
Cn as jwksKeySchema,
|
|
3037
|
+
qt as jwksSchema,
|
|
3038
|
+
je as legalComponentSchema,
|
|
3039
|
+
ae as locationInfoSchema,
|
|
3040
|
+
eo as logInsertSchema,
|
|
3041
|
+
Nn as logSchema,
|
|
3042
|
+
oo as logStreamFilterSchema,
|
|
3043
|
+
no as logStreamInsertSchema,
|
|
3044
|
+
wn as logStreamSchema,
|
|
3045
|
+
z as logStreamStatusSchema,
|
|
3046
|
+
to as logStreamTypeSchema,
|
|
3032
3047
|
Xt as loginSessionAuthStrategySchema,
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3048
|
+
Yt as loginSessionInsertSchema,
|
|
3049
|
+
On as loginSessionSchema,
|
|
3050
|
+
Vt as loginSessionStateSchema,
|
|
3051
|
+
Pe as nodeSchema,
|
|
3052
|
+
Tn as openIDConfigurationSchema,
|
|
3053
|
+
Lo as organizationBrandingSchema,
|
|
3054
|
+
Po as organizationConnectionInsertSchema,
|
|
3055
|
+
Xn as organizationConnectionListSchema,
|
|
3056
|
+
Mo as organizationConnectionSchema,
|
|
3057
|
+
Uo as organizationEnabledConnectionSchema,
|
|
3058
|
+
Fo as organizationInsertSchema,
|
|
3059
|
+
Vn as organizationSchema,
|
|
3060
|
+
xo as organizationTokenQuotaSchema,
|
|
3061
|
+
ho as pageBackgroundSchema,
|
|
3062
|
+
ii as parseUserId,
|
|
3063
|
+
lo as passwordInsertSchema,
|
|
3064
|
+
jn as passwordSchema,
|
|
3065
|
+
me as profileDataSchema,
|
|
3066
|
+
Go as promptScreenSchema,
|
|
3067
|
+
Un as promptSettingSchema,
|
|
3068
|
+
_e as redirectActionSchema,
|
|
3069
|
+
So as refreshTokenInsertSchema,
|
|
3070
|
+
Pn as refreshTokenSchema,
|
|
3071
|
+
ne as requestContextSchema,
|
|
3072
|
+
Io as resourceServerInsertSchema,
|
|
3073
|
+
Gn as resourceServerListSchema,
|
|
3074
|
+
Ao as resourceServerOptionsSchema,
|
|
3075
|
+
Co as resourceServerSchema,
|
|
3076
|
+
yo as resourceServerScopeSchema,
|
|
3077
|
+
ie as responseContextSchema,
|
|
3078
|
+
Ne as richTextComponentSchema,
|
|
3079
|
+
vo as roleInsertSchema,
|
|
3080
|
+
qn as roleListSchema,
|
|
3081
|
+
To as rolePermissionInsertSchema,
|
|
3082
|
+
Bn as rolePermissionListSchema,
|
|
3083
|
+
Oo as rolePermissionSchema,
|
|
3084
|
+
Do as roleSchema,
|
|
3085
|
+
Dt as screenLinkSchema,
|
|
3086
|
+
po as sessionInsertSchema,
|
|
3087
|
+
Rn as sessionSchema,
|
|
3088
|
+
kn as signingKeySchema,
|
|
3089
|
+
Hn as smsProviderSchema,
|
|
3090
|
+
Mn as smsSendParamsSchema,
|
|
3091
|
+
Me as startSchema,
|
|
3092
|
+
ro as suspiciousIpThrottlingSchema,
|
|
3093
|
+
oe as targetSchema,
|
|
3094
|
+
co as tenantInsertSchema,
|
|
3095
|
+
vn as tenantSchema,
|
|
3096
|
+
Zn as tenantSettingsSchema,
|
|
3097
|
+
fo as themeInsertSchema,
|
|
3098
|
+
Ln as themeSchema,
|
|
3099
|
+
Dn as tokenResponseSchema,
|
|
3100
|
+
en as totalsSchema,
|
|
3101
|
+
mn as uiScreenSchema,
|
|
3102
|
+
fe as userInsertSchema,
|
|
3103
|
+
Ho as userOrganizationInsertSchema,
|
|
3104
|
+
Yn as userOrganizationSchema,
|
|
3105
|
+
No as userPermissionInsertSchema,
|
|
3106
|
+
Wn as userPermissionListSchema,
|
|
3107
|
+
wo as userPermissionSchema,
|
|
3108
|
+
Kn as userPermissionWithDetailsListSchema,
|
|
3109
|
+
jo as userPermissionWithDetailsSchema,
|
|
3110
|
+
on as userResponseSchema,
|
|
3111
|
+
Ro as userRoleInsertSchema,
|
|
3112
|
+
zn as userRoleListSchema,
|
|
3113
|
+
ko as userRoleSchema,
|
|
3114
|
+
Ee as userSchema,
|
|
3100
3115
|
Xe as verificationMethodsSchema,
|
|
3101
|
-
|
|
3102
|
-
|
|
3116
|
+
Tt as widgetComponentSchema,
|
|
3117
|
+
bo as widgetSchema
|
|
3103
3118
|
};
|