@authhero/adapter-interfaces 4.13.0 → 4.15.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 +379 -6
- package/dist/adapter-interfaces.mjs +736 -677
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/TokenExchangeProfiles.d.ts +14 -0
- package/dist/types/adapters/Users.d.ts +19 -0
- package/dist/types/adapters/index.d.ts +8 -0
- package/dist/types/types/Client.d.ts +6 -0
- package/dist/types/types/Code.d.ts +3 -0
- package/dist/types/types/Forms.d.ts +40 -0
- package/dist/types/types/JWKS.d.ts +4 -4
- package/dist/types/types/TokenExchangeProfile.d.ts +280 -0
- package/dist/types/types/codeHookApiShapes.d.ts +6 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,23 +33,23 @@ var t = e.object({
|
|
|
33
33
|
name: e.string(),
|
|
34
34
|
value: e.string().optional()
|
|
35
35
|
})).optional()
|
|
36
|
-
}).extend(t.shape),
|
|
36
|
+
}).extend(t.shape), ee = e.object({ name: e.string() }), te = s.extend({ secrets: e.array(ee).optional() }), ne = e.string(), c = e.enum([
|
|
37
37
|
"unspecified",
|
|
38
38
|
"pending",
|
|
39
39
|
"final",
|
|
40
40
|
"partial",
|
|
41
41
|
"canceled",
|
|
42
42
|
"suspended"
|
|
43
|
-
]),
|
|
43
|
+
]), re = e.object({
|
|
44
44
|
id: e.string(),
|
|
45
45
|
msg: e.string(),
|
|
46
46
|
url: e.string().optional()
|
|
47
|
-
}),
|
|
47
|
+
}), ie = e.object({
|
|
48
48
|
action_name: e.string(),
|
|
49
|
-
error:
|
|
49
|
+
error: re.nullable(),
|
|
50
50
|
started_at: e.string(),
|
|
51
51
|
ended_at: e.string()
|
|
52
|
-
}),
|
|
52
|
+
}), ae = e.object({
|
|
53
53
|
level: e.enum([
|
|
54
54
|
"log",
|
|
55
55
|
"info",
|
|
@@ -58,23 +58,23 @@ var t = e.object({
|
|
|
58
58
|
"debug"
|
|
59
59
|
]),
|
|
60
60
|
message: e.string()
|
|
61
|
-
}),
|
|
61
|
+
}), oe = e.array(e.object({
|
|
62
62
|
action_name: e.string(),
|
|
63
|
-
lines: e.array(
|
|
64
|
-
})),
|
|
63
|
+
lines: e.array(ae)
|
|
64
|
+
})), se = e.object({
|
|
65
65
|
id: e.string(),
|
|
66
66
|
tenant_id: e.string(),
|
|
67
|
-
trigger_id:
|
|
68
|
-
status:
|
|
69
|
-
results: e.array(
|
|
70
|
-
logs:
|
|
67
|
+
trigger_id: ne,
|
|
68
|
+
status: c,
|
|
69
|
+
results: e.array(ie),
|
|
70
|
+
logs: oe.optional(),
|
|
71
71
|
created_at: e.string(),
|
|
72
72
|
updated_at: e.string()
|
|
73
|
-
}),
|
|
73
|
+
}), ce = se.omit({
|
|
74
74
|
tenant_id: !0,
|
|
75
75
|
created_at: !0,
|
|
76
76
|
updated_at: !0
|
|
77
|
-
}),
|
|
77
|
+
}), le = e.object({
|
|
78
78
|
action_id: e.string(),
|
|
79
79
|
code: e.string().max(1e5),
|
|
80
80
|
runtime: e.string().max(50).optional(),
|
|
@@ -82,16 +82,16 @@ var t = e.object({
|
|
|
82
82
|
secrets: e.array(i).optional(),
|
|
83
83
|
supported_triggers: e.array(n).optional(),
|
|
84
84
|
deployed: e.boolean().default(!0)
|
|
85
|
-
}),
|
|
85
|
+
}), ue = le.extend({
|
|
86
86
|
id: e.string(),
|
|
87
87
|
tenant_id: e.string(),
|
|
88
88
|
number: e.number().int()
|
|
89
|
-
}).extend(t.shape),
|
|
89
|
+
}).extend(t.shape), de = e.enum([
|
|
90
90
|
"user_action",
|
|
91
91
|
"admin_action",
|
|
92
92
|
"system",
|
|
93
93
|
"api"
|
|
94
|
-
]),
|
|
94
|
+
]), fe = e.object({
|
|
95
95
|
type: e.enum([
|
|
96
96
|
"user",
|
|
97
97
|
"admin",
|
|
@@ -105,7 +105,7 @@ var t = e.object({
|
|
|
105
105
|
org_name: e.string().optional(),
|
|
106
106
|
scopes: e.array(e.string()).optional(),
|
|
107
107
|
client_id: e.string().optional()
|
|
108
|
-
}),
|
|
108
|
+
}), pe = e.object({
|
|
109
109
|
type: e.string(),
|
|
110
110
|
id: e.string(),
|
|
111
111
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -114,7 +114,7 @@ var t = e.object({
|
|
|
114
114
|
old: e.unknown(),
|
|
115
115
|
new: e.unknown()
|
|
116
116
|
})).optional()
|
|
117
|
-
}),
|
|
117
|
+
}), me = e.object({
|
|
118
118
|
method: e.string(),
|
|
119
119
|
path: e.string(),
|
|
120
120
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -123,30 +123,30 @@ var t = e.object({
|
|
|
123
123
|
user_agent: e.string().optional(),
|
|
124
124
|
correlation_id: e.string().optional(),
|
|
125
125
|
redirect_uri: e.string().optional()
|
|
126
|
-
}),
|
|
126
|
+
}), he = e.object({
|
|
127
127
|
status_code: e.number(),
|
|
128
128
|
body: e.unknown().optional()
|
|
129
|
-
}),
|
|
129
|
+
}), ge = e.object({
|
|
130
130
|
country_code: e.string(),
|
|
131
131
|
city_name: e.string(),
|
|
132
132
|
latitude: e.string(),
|
|
133
133
|
longitude: e.string(),
|
|
134
134
|
time_zone: e.string(),
|
|
135
135
|
continent_code: e.string()
|
|
136
|
-
}),
|
|
136
|
+
}), _e = e.object({
|
|
137
137
|
name: e.string(),
|
|
138
138
|
version: e.string(),
|
|
139
139
|
env: e.record(e.string(), e.string()).optional()
|
|
140
|
-
}),
|
|
140
|
+
}), ve = e.object({
|
|
141
141
|
tenant_id: e.string(),
|
|
142
142
|
event_type: e.string(),
|
|
143
143
|
log_type: e.string(),
|
|
144
144
|
description: e.string().optional(),
|
|
145
|
-
category:
|
|
146
|
-
actor:
|
|
147
|
-
target:
|
|
148
|
-
request:
|
|
149
|
-
response:
|
|
145
|
+
category: de,
|
|
146
|
+
actor: fe,
|
|
147
|
+
target: pe,
|
|
148
|
+
request: me,
|
|
149
|
+
response: he.optional(),
|
|
150
150
|
connection: e.string().optional(),
|
|
151
151
|
connection_id: e.string().optional(),
|
|
152
152
|
client_name: e.string().optional(),
|
|
@@ -154,29 +154,29 @@ var t = e.object({
|
|
|
154
154
|
strategy_type: e.string().optional(),
|
|
155
155
|
audience: e.string().optional(),
|
|
156
156
|
scope: e.string().optional(),
|
|
157
|
-
location:
|
|
158
|
-
auth0_client:
|
|
157
|
+
location: ge.optional(),
|
|
158
|
+
auth0_client: _e.optional(),
|
|
159
159
|
hostname: e.string(),
|
|
160
160
|
is_mobile: e.boolean().optional(),
|
|
161
161
|
timestamp: e.string()
|
|
162
|
-
}),
|
|
162
|
+
}), ye = ve.extend({ id: e.string() }), be = e.enum([
|
|
163
163
|
"AUTH0",
|
|
164
164
|
"EMAIL",
|
|
165
165
|
"REDIRECT"
|
|
166
|
-
]),
|
|
166
|
+
]), xe = e.enum([
|
|
167
167
|
"CREATE_USER",
|
|
168
168
|
"GET_USER",
|
|
169
169
|
"UPDATE_USER",
|
|
170
170
|
"SEND_REQUEST",
|
|
171
171
|
"SEND_EMAIL"
|
|
172
|
-
]),
|
|
172
|
+
]), Se = e.enum(["VERIFY_EMAIL"]), Ce = e.object({
|
|
173
173
|
require_mx_record: e.boolean().optional(),
|
|
174
174
|
block_aliases: e.boolean().optional(),
|
|
175
175
|
block_free_emails: e.boolean().optional(),
|
|
176
176
|
block_disposable_emails: e.boolean().optional(),
|
|
177
177
|
blocklist: e.array(e.string()).optional(),
|
|
178
178
|
allowlist: e.array(e.string()).optional()
|
|
179
|
-
}),
|
|
179
|
+
}), we = e.object({
|
|
180
180
|
id: e.string(),
|
|
181
181
|
alias: e.string().max(100).optional(),
|
|
182
182
|
type: e.literal("AUTH0"),
|
|
@@ -188,7 +188,7 @@ var t = e.object({
|
|
|
188
188
|
user_id: e.string(),
|
|
189
189
|
changes: e.record(e.string(), e.any())
|
|
190
190
|
})
|
|
191
|
-
}),
|
|
191
|
+
}), Te = e.object({
|
|
192
192
|
id: e.string(),
|
|
193
193
|
alias: e.string().max(100).optional(),
|
|
194
194
|
type: e.literal("EMAIL"),
|
|
@@ -197,13 +197,13 @@ var t = e.object({
|
|
|
197
197
|
mask_output: e.boolean().optional(),
|
|
198
198
|
params: e.object({
|
|
199
199
|
email: e.string(),
|
|
200
|
-
rules:
|
|
200
|
+
rules: Ce.optional()
|
|
201
201
|
})
|
|
202
|
-
}),
|
|
202
|
+
}), Ee = e.enum([
|
|
203
203
|
"change-email",
|
|
204
204
|
"account",
|
|
205
205
|
"custom"
|
|
206
|
-
]),
|
|
206
|
+
]), De = e.object({
|
|
207
207
|
id: e.string(),
|
|
208
208
|
alias: e.string().max(100).optional(),
|
|
209
209
|
type: e.literal("REDIRECT"),
|
|
@@ -211,32 +211,32 @@ var t = e.object({
|
|
|
211
211
|
allow_failure: e.boolean().optional(),
|
|
212
212
|
mask_output: e.boolean().optional(),
|
|
213
213
|
params: e.object({
|
|
214
|
-
target:
|
|
214
|
+
target: Ee.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
215
215
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
216
216
|
})
|
|
217
|
-
}),
|
|
218
|
-
Ce,
|
|
217
|
+
}), Oe = e.union([
|
|
219
218
|
we,
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
Te,
|
|
220
|
+
De
|
|
221
|
+
]), ke = e.object({
|
|
222
222
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
223
|
-
actions: e.array(
|
|
224
|
-
}),
|
|
223
|
+
actions: e.array(Oe).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
224
|
+
}), Ae = ke.extend(t.shape).extend({ id: e.string().openapi({
|
|
225
225
|
description: "Unique identifier for the flow",
|
|
226
226
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
227
|
-
}) }),
|
|
227
|
+
}) }), je = e.object({
|
|
228
228
|
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
229
229
|
per_page: e.string().min(1).optional().default("50").transform((e) => parseInt(e, 10)).openapi({ description: "The number of items per page. Defaults to 50." }),
|
|
230
230
|
include_totals: e.string().optional().default("false").transform((e) => e === "true").openapi({ description: "If the total number of items should be included in the response" }),
|
|
231
231
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
232
232
|
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
233
|
-
}),
|
|
233
|
+
}), Me = e.object({
|
|
234
234
|
start: e.number(),
|
|
235
235
|
limit: e.number(),
|
|
236
236
|
length: e.number(),
|
|
237
237
|
total: e.number().optional(),
|
|
238
238
|
next: e.string().optional()
|
|
239
|
-
}),
|
|
239
|
+
}), Ne = e.object({
|
|
240
240
|
email: e.string().optional(),
|
|
241
241
|
email_verified: e.boolean().optional(),
|
|
242
242
|
name: e.string().optional(),
|
|
@@ -245,7 +245,7 @@ var t = e.object({
|
|
|
245
245
|
phone_number: e.string().optional(),
|
|
246
246
|
phone_verified: e.boolean().optional(),
|
|
247
247
|
family_name: e.string().optional()
|
|
248
|
-
}).catchall(e.any()),
|
|
248
|
+
}).catchall(e.any()), Pe = e.object({
|
|
249
249
|
connection: e.string(),
|
|
250
250
|
user_id: e.string(),
|
|
251
251
|
provider: e.string(),
|
|
@@ -258,15 +258,15 @@ var t = e.object({
|
|
|
258
258
|
access_token: e.string().optional(),
|
|
259
259
|
access_token_secret: e.string().optional(),
|
|
260
260
|
refresh_token: e.string().optional(),
|
|
261
|
-
profileData:
|
|
262
|
-
}),
|
|
261
|
+
profileData: Ne.optional()
|
|
262
|
+
}), Fe = e.object({
|
|
263
263
|
formatted: e.string().optional(),
|
|
264
264
|
street_address: e.string().optional(),
|
|
265
265
|
locality: e.string().optional(),
|
|
266
266
|
region: e.string().optional(),
|
|
267
267
|
postal_code: e.string().optional(),
|
|
268
268
|
country: e.string().optional()
|
|
269
|
-
}).optional(),
|
|
269
|
+
}).optional(), l = e.object({
|
|
270
270
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
271
271
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
272
272
|
phone_number: e.string().optional(),
|
|
@@ -289,8 +289,8 @@ var t = e.object({
|
|
|
289
289
|
gender: e.string().optional(),
|
|
290
290
|
birthdate: e.string().optional(),
|
|
291
291
|
zoneinfo: e.string().optional(),
|
|
292
|
-
address:
|
|
293
|
-
}),
|
|
292
|
+
address: Fe
|
|
293
|
+
}), Ie = l.extend({
|
|
294
294
|
email_verified: e.boolean().default(!1),
|
|
295
295
|
verify_email: e.boolean().optional(),
|
|
296
296
|
last_ip: e.string().optional(),
|
|
@@ -305,29 +305,29 @@ var t = e.object({
|
|
|
305
305
|
hash: e.string(),
|
|
306
306
|
algorithm: e.string()
|
|
307
307
|
}).optional()
|
|
308
|
-
}),
|
|
308
|
+
}), Le = Ie.omit({ password: !0 }).extend(t.shape).extend({
|
|
309
309
|
user_id: e.string(),
|
|
310
310
|
provider: e.string(),
|
|
311
311
|
is_social: e.boolean(),
|
|
312
312
|
email: e.string().optional(),
|
|
313
313
|
login_count: e.number().default(0),
|
|
314
|
-
identities: e.array(
|
|
315
|
-
}),
|
|
314
|
+
identities: e.array(Pe).optional()
|
|
315
|
+
}), Re = Le.omit({ registration_completed_at: !0 }), ze = l.extend({
|
|
316
316
|
login_count: e.number(),
|
|
317
317
|
multifactor: e.array(e.string()).optional(),
|
|
318
318
|
last_ip: e.string().optional(),
|
|
319
319
|
last_login: e.string().optional(),
|
|
320
320
|
user_id: e.string()
|
|
321
|
-
}).catchall(e.any()),
|
|
321
|
+
}).catchall(e.any()), Be = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ve = (e = 21) => {
|
|
322
322
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
323
|
-
for (; e--;) t +=
|
|
323
|
+
for (; e--;) t += Be[n[e] & 63];
|
|
324
324
|
return t;
|
|
325
|
-
},
|
|
325
|
+
}, He = e.object({
|
|
326
326
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
327
327
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
328
328
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
329
329
|
global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
|
|
330
|
-
client_secret: e.string().default(() =>
|
|
330
|
+
client_secret: e.string().default(() => Ve()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
331
331
|
app_type: e.enum([
|
|
332
332
|
"native",
|
|
333
333
|
"spa",
|
|
@@ -439,11 +439,12 @@ var t = e.object({
|
|
|
439
439
|
"iat_dcr"
|
|
440
440
|
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
441
441
|
registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
|
|
442
|
+
token_exchange: e.object({ allow_any_profile_of_type: e.array(e.literal("custom_authentication")).optional() }).optional().openapi({ description: "Custom Token Exchange settings. Set `allow_any_profile_of_type` to `[\"custom_authentication\"]` to let this client exchange subject tokens through the tenant's token exchange profiles." }),
|
|
442
443
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ 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." })
|
|
443
|
-
}),
|
|
444
|
+
}), Ue = e.object({
|
|
444
445
|
created_at: e.string(),
|
|
445
446
|
updated_at: e.string()
|
|
446
|
-
}).extend(
|
|
447
|
+
}).extend(He.shape).extend({ client_id: e.string() }), We = e.object({
|
|
447
448
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
448
449
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
449
450
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -456,38 +457,38 @@ var t = e.object({
|
|
|
456
457
|
is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
|
|
457
458
|
subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
|
|
458
459
|
authorization_details_types: e.array(e.string()).optional().openapi({ 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." })
|
|
459
|
-
}),
|
|
460
|
+
}), Ge = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(We.shape).extend({
|
|
460
461
|
created_at: e.string().optional(),
|
|
461
462
|
updated_at: e.string().optional()
|
|
462
|
-
}),
|
|
463
|
+
}), Ke = e.array(Ge), qe = e.enum(["iat", "rat"]), Je = e.object({
|
|
463
464
|
id: e.string(),
|
|
464
465
|
token_hash: e.string(),
|
|
465
|
-
type:
|
|
466
|
+
type: qe,
|
|
466
467
|
client_id: e.string().optional(),
|
|
467
468
|
sub: e.string().optional(),
|
|
468
469
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
469
470
|
single_use: e.boolean().default(!1),
|
|
470
471
|
expires_at: e.string().optional()
|
|
471
|
-
}),
|
|
472
|
+
}), Ye = e.object({
|
|
472
473
|
created_at: e.string(),
|
|
473
474
|
used_at: e.string().optional(),
|
|
474
475
|
revoked_at: e.string().optional()
|
|
475
|
-
}).extend(
|
|
476
|
+
}).extend(Je.shape), u = e.object({
|
|
476
477
|
x: e.number(),
|
|
477
478
|
y: e.number()
|
|
478
|
-
}),
|
|
479
|
+
}), d = /* @__PURE__ */ function(e) {
|
|
479
480
|
return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
|
|
480
|
-
}({}),
|
|
481
|
+
}({}), f = /* @__PURE__ */ function(e) {
|
|
481
482
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
482
|
-
}({}),
|
|
483
|
+
}({}), p = e.object({
|
|
483
484
|
id: e.string(),
|
|
484
|
-
category: e.nativeEnum(
|
|
485
|
-
type: e.nativeEnum(
|
|
486
|
-
}),
|
|
485
|
+
category: e.nativeEnum(f),
|
|
486
|
+
type: e.nativeEnum(d)
|
|
487
|
+
}), m = p.extend({
|
|
487
488
|
category: e.literal("BLOCK"),
|
|
488
489
|
type: e.literal("RICH_TEXT"),
|
|
489
490
|
config: e.object({ content: e.string() }).passthrough()
|
|
490
|
-
}),
|
|
491
|
+
}), h = p.extend({
|
|
491
492
|
category: e.literal("BLOCK"),
|
|
492
493
|
type: e.union([
|
|
493
494
|
e.literal("NEXT_BUTTON"),
|
|
@@ -495,13 +496,13 @@ var t = e.object({
|
|
|
495
496
|
e.literal("SUBMIT_BUTTON")
|
|
496
497
|
]),
|
|
497
498
|
config: e.object({ text: e.string() }).passthrough()
|
|
498
|
-
}),
|
|
499
|
+
}), g = p.extend({
|
|
499
500
|
category: e.literal("FIELD"),
|
|
500
501
|
type: e.literal("LEGAL"),
|
|
501
502
|
required: e.boolean().optional(),
|
|
502
503
|
sensitive: e.boolean().optional(),
|
|
503
504
|
config: e.object({ text: e.string() }).passthrough()
|
|
504
|
-
}),
|
|
505
|
+
}), _ = p.extend({
|
|
505
506
|
category: e.literal("FIELD"),
|
|
506
507
|
type: e.union([
|
|
507
508
|
e.literal("TEXT"),
|
|
@@ -521,40 +522,40 @@ var t = e.object({
|
|
|
521
522
|
label: e.string().optional(),
|
|
522
523
|
placeholder: e.string().optional()
|
|
523
524
|
}).passthrough()
|
|
524
|
-
}),
|
|
525
|
+
}), v = e.object({
|
|
525
526
|
id: e.string(),
|
|
526
527
|
category: e.string(),
|
|
527
528
|
type: e.string()
|
|
528
|
-
}).passthrough(),
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
]),
|
|
529
|
+
}).passthrough(), y = e.union([
|
|
530
|
+
m,
|
|
531
|
+
h,
|
|
532
|
+
g,
|
|
533
|
+
_,
|
|
534
|
+
v
|
|
535
|
+
]), Xe = /* @__PURE__ */ function(e) {
|
|
535
536
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
536
|
-
}({}),
|
|
537
|
+
}({}), b = e.object({
|
|
537
538
|
id: e.string(),
|
|
538
539
|
type: e.literal("STEP"),
|
|
539
|
-
coordinates:
|
|
540
|
+
coordinates: u,
|
|
540
541
|
alias: e.string().optional(),
|
|
541
542
|
config: e.object({
|
|
542
|
-
components: e.array(
|
|
543
|
+
components: e.array(y),
|
|
543
544
|
next_node: e.string()
|
|
544
545
|
}).passthrough()
|
|
545
|
-
}),
|
|
546
|
+
}), x = e.object({
|
|
546
547
|
id: e.string(),
|
|
547
548
|
type: e.literal("FLOW"),
|
|
548
|
-
coordinates:
|
|
549
|
+
coordinates: u,
|
|
549
550
|
alias: e.string().optional(),
|
|
550
551
|
config: e.object({
|
|
551
552
|
flow_id: e.string(),
|
|
552
553
|
next_node: e.string()
|
|
553
554
|
})
|
|
554
|
-
}),
|
|
555
|
+
}), S = e.object({
|
|
555
556
|
id: e.string(),
|
|
556
557
|
type: e.literal("ACTION"),
|
|
557
|
-
coordinates:
|
|
558
|
+
coordinates: u,
|
|
558
559
|
alias: e.string().optional(),
|
|
559
560
|
config: e.object({
|
|
560
561
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -566,56 +567,56 @@ var t = e.object({
|
|
|
566
567
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
567
568
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
568
569
|
}).passthrough()
|
|
569
|
-
}),
|
|
570
|
+
}), Ze = e.object({
|
|
570
571
|
id: e.string(),
|
|
571
572
|
type: e.string(),
|
|
572
|
-
coordinates:
|
|
573
|
-
}).passthrough(),
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
]),
|
|
573
|
+
coordinates: u
|
|
574
|
+
}).passthrough(), Qe = e.union([
|
|
575
|
+
b,
|
|
576
|
+
x,
|
|
577
|
+
S,
|
|
578
|
+
Ze
|
|
579
|
+
]), $e = e.object({
|
|
579
580
|
next_node: e.string(),
|
|
580
|
-
coordinates:
|
|
581
|
-
}).passthrough(),
|
|
581
|
+
coordinates: u
|
|
582
|
+
}).passthrough(), et = e.object({
|
|
582
583
|
resume_flow: e.boolean().optional(),
|
|
583
|
-
coordinates:
|
|
584
|
-
}).passthrough(),
|
|
584
|
+
coordinates: u
|
|
585
|
+
}).passthrough(), tt = e.object({
|
|
585
586
|
id: e.string(),
|
|
586
587
|
name: e.string(),
|
|
587
588
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
588
|
-
nodes: e.array(
|
|
589
|
-
start:
|
|
590
|
-
ending:
|
|
589
|
+
nodes: e.array(Qe),
|
|
590
|
+
start: $e,
|
|
591
|
+
ending: et,
|
|
591
592
|
created_at: e.string(),
|
|
592
593
|
updated_at: e.string(),
|
|
593
594
|
links: e.object({
|
|
594
595
|
sdkSrc: e.string().optional(),
|
|
595
596
|
sdk_src: e.string().optional()
|
|
596
597
|
}).passthrough()
|
|
597
|
-
}).passthrough(),
|
|
598
|
+
}).passthrough(), nt = tt.omit({
|
|
598
599
|
id: !0,
|
|
599
600
|
created_at: !0,
|
|
600
601
|
updated_at: !0
|
|
601
|
-
}),
|
|
602
|
+
}), C = /* @__PURE__ */ function(e) {
|
|
602
603
|
return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
|
|
603
|
-
}({}),
|
|
604
|
+
}({}), w = /* @__PURE__ */ function(e) {
|
|
604
605
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
605
|
-
}({}),
|
|
606
|
+
}({}), rt = /* @__PURE__ */ function(e) {
|
|
606
607
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
607
|
-
}({}),
|
|
608
|
+
}({}), it = e.union([e.null(), e.object({
|
|
608
609
|
essential: e.boolean().optional(),
|
|
609
610
|
value: e.unknown().optional(),
|
|
610
611
|
values: e.array(e.unknown()).optional()
|
|
611
|
-
})]).nullable(),
|
|
612
|
-
userinfo: e.record(e.string(),
|
|
613
|
-
id_token: e.record(e.string(),
|
|
614
|
-
}),
|
|
612
|
+
})]).nullable(), at = e.object({
|
|
613
|
+
userinfo: e.record(e.string(), it).optional(),
|
|
614
|
+
id_token: e.record(e.string(), it).optional()
|
|
615
|
+
}), ot = e.object({
|
|
615
616
|
client_id: e.string(),
|
|
616
617
|
act_as: e.string().optional(),
|
|
617
|
-
response_type: e.nativeEnum(
|
|
618
|
-
response_mode: e.nativeEnum(
|
|
618
|
+
response_type: e.nativeEnum(C).optional(),
|
|
619
|
+
response_mode: e.nativeEnum(w).optional(),
|
|
619
620
|
redirect_uri: e.string().optional(),
|
|
620
621
|
audience: e.string().optional(),
|
|
621
622
|
organization: e.string().optional(),
|
|
@@ -623,15 +624,15 @@ var t = e.object({
|
|
|
623
624
|
nonce: e.string().optional(),
|
|
624
625
|
scope: e.string().optional(),
|
|
625
626
|
prompt: e.string().optional(),
|
|
626
|
-
code_challenge_method: e.nativeEnum(
|
|
627
|
+
code_challenge_method: e.nativeEnum(rt).optional(),
|
|
627
628
|
code_challenge: e.string().optional(),
|
|
628
629
|
username: e.string().optional(),
|
|
629
630
|
ui_locales: e.string().optional(),
|
|
630
631
|
max_age: e.number().optional(),
|
|
631
632
|
acr_values: e.string().optional(),
|
|
632
|
-
claims:
|
|
633
|
+
claims: at.optional(),
|
|
633
634
|
vendor_id: e.string().optional()
|
|
634
|
-
}),
|
|
635
|
+
}), st = e.object({
|
|
635
636
|
colors: e.object({
|
|
636
637
|
primary: e.string(),
|
|
637
638
|
page_background: e.union([e.string(), e.object({
|
|
@@ -650,7 +651,7 @@ var t = e.object({
|
|
|
650
651
|
"light",
|
|
651
652
|
"auto"
|
|
652
653
|
]).optional()
|
|
653
|
-
}),
|
|
654
|
+
}), ct = e.enum([
|
|
654
655
|
"password_reset",
|
|
655
656
|
"email_verification",
|
|
656
657
|
"otp",
|
|
@@ -658,12 +659,13 @@ var t = e.object({
|
|
|
658
659
|
"authorization_code",
|
|
659
660
|
"oauth2_state",
|
|
660
661
|
"ticket",
|
|
661
|
-
"client_assertion_jti"
|
|
662
|
-
|
|
662
|
+
"client_assertion_jti",
|
|
663
|
+
"subject_token_jti"
|
|
664
|
+
]), lt = e.object({
|
|
663
665
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
664
666
|
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
665
667
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
666
|
-
code_type:
|
|
668
|
+
code_type: ct,
|
|
667
669
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
668
670
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
669
671
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -674,7 +676,7 @@ var t = e.object({
|
|
|
674
676
|
expires_at: e.string(),
|
|
675
677
|
used_at: e.string().optional(),
|
|
676
678
|
user_id: e.string().optional()
|
|
677
|
-
}),
|
|
679
|
+
}), ut = lt.extend({ created_at: e.string() }), dt = e.object({
|
|
678
680
|
kid: e.string().optional(),
|
|
679
681
|
team_id: e.string().optional(),
|
|
680
682
|
realms: e.string().optional(),
|
|
@@ -794,35 +796,35 @@ var t = e.object({
|
|
|
794
796
|
"never_on_login"
|
|
795
797
|
]).optional()
|
|
796
798
|
});
|
|
797
|
-
function
|
|
799
|
+
function T(e) {
|
|
798
800
|
if (e !== null) {
|
|
799
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
801
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(T);
|
|
800
802
|
if (e && typeof e == "object") {
|
|
801
803
|
let t = {};
|
|
802
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
804
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = T(r));
|
|
803
805
|
return t;
|
|
804
806
|
}
|
|
805
807
|
return e;
|
|
806
808
|
}
|
|
807
809
|
}
|
|
808
|
-
var
|
|
810
|
+
var ft = e.object({
|
|
809
811
|
id: e.string().optional(),
|
|
810
812
|
name: e.string(),
|
|
811
813
|
display_name: e.string().optional(),
|
|
812
814
|
strategy: e.string(),
|
|
813
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
815
|
+
options: e.preprocess((e) => e === null ? {} : T(e), dt).default({}),
|
|
814
816
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
815
|
-
response_type: e.nativeEnum(
|
|
816
|
-
response_mode: e.nativeEnum(
|
|
817
|
+
response_type: e.nativeEnum(C).optional(),
|
|
818
|
+
response_mode: e.nativeEnum(w).optional(),
|
|
817
819
|
is_domain_connection: e.boolean().optional(),
|
|
818
820
|
show_as_button: e.boolean().optional(),
|
|
819
821
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
820
822
|
is_system: e.boolean().optional()
|
|
821
|
-
}),
|
|
823
|
+
}), pt = e.object({
|
|
822
824
|
id: e.string(),
|
|
823
825
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
824
826
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
825
|
-
}).extend(
|
|
827
|
+
}).extend(ft.shape), E = e.object({
|
|
826
828
|
domain: e.string(),
|
|
827
829
|
custom_domain_id: e.string().optional(),
|
|
828
830
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -836,7 +838,7 @@ var ut = e.object({
|
|
|
836
838
|
"null"
|
|
837
839
|
]).optional(),
|
|
838
840
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
839
|
-
}),
|
|
841
|
+
}), mt = e.discriminatedUnion("name", [e.object({
|
|
840
842
|
name: e.literal("txt"),
|
|
841
843
|
record: e.string(),
|
|
842
844
|
domain: e.string()
|
|
@@ -844,7 +846,7 @@ var ut = e.object({
|
|
|
844
846
|
name: e.literal("http"),
|
|
845
847
|
http_body: e.string(),
|
|
846
848
|
http_url: e.string()
|
|
847
|
-
})]),
|
|
849
|
+
})]), ht = E.extend({
|
|
848
850
|
custom_domain_id: e.string(),
|
|
849
851
|
primary: e.boolean(),
|
|
850
852
|
status: e.enum([
|
|
@@ -854,26 +856,26 @@ var ut = e.object({
|
|
|
854
856
|
"ready"
|
|
855
857
|
]),
|
|
856
858
|
origin_domain_name: e.string().optional(),
|
|
857
|
-
verification: e.object({ methods: e.array(
|
|
859
|
+
verification: e.object({ methods: e.array(mt) }).optional(),
|
|
858
860
|
tls_policy: e.string().optional()
|
|
859
|
-
}),
|
|
861
|
+
}), gt = E.pick({
|
|
860
862
|
tls_policy: !0,
|
|
861
863
|
custom_client_ip_header: !0,
|
|
862
864
|
domain_metadata: !0
|
|
863
|
-
}).strict(),
|
|
865
|
+
}).strict(), _t = ht.extend({ tenant_id: e.string() }), vt = e.object({
|
|
864
866
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
865
867
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
866
|
-
}),
|
|
868
|
+
}), D = e.object({
|
|
867
869
|
id: e.string(),
|
|
868
870
|
order: e.number().optional(),
|
|
869
871
|
visible: e.boolean().optional().default(!0)
|
|
870
|
-
}),
|
|
872
|
+
}), O = D.extend({ category: e.literal("BLOCK").optional() }), yt = O.extend({
|
|
871
873
|
type: e.literal("DIVIDER"),
|
|
872
874
|
config: e.object({ text: e.string().optional() }).optional()
|
|
873
|
-
}),
|
|
875
|
+
}), bt = O.extend({
|
|
874
876
|
type: e.literal("HTML"),
|
|
875
877
|
config: e.object({ content: e.string().optional() }).optional()
|
|
876
|
-
}),
|
|
878
|
+
}), xt = O.extend({
|
|
877
879
|
type: e.literal("IMAGE"),
|
|
878
880
|
config: e.object({
|
|
879
881
|
src: e.string().optional(),
|
|
@@ -881,43 +883,47 @@ var ut = e.object({
|
|
|
881
883
|
width: e.number().optional(),
|
|
882
884
|
height: e.number().optional()
|
|
883
885
|
}).optional()
|
|
884
|
-
}),
|
|
886
|
+
}), St = O.extend({
|
|
885
887
|
type: e.literal("JUMP_BUTTON"),
|
|
886
888
|
config: e.object({
|
|
887
889
|
text: e.string().optional(),
|
|
888
890
|
target_step: e.string().optional()
|
|
889
891
|
})
|
|
890
|
-
}),
|
|
892
|
+
}), Ct = O.extend({
|
|
891
893
|
type: e.literal("RESEND_BUTTON"),
|
|
892
894
|
config: e.object({
|
|
893
895
|
text: e.string().optional(),
|
|
894
896
|
resend_action: e.string().optional()
|
|
895
897
|
})
|
|
896
|
-
}),
|
|
898
|
+
}), wt = O.extend({
|
|
897
899
|
type: e.literal("NEXT_BUTTON"),
|
|
898
|
-
config: e.object({
|
|
899
|
-
|
|
900
|
+
config: e.object({
|
|
901
|
+
text: e.string().optional(),
|
|
902
|
+
variant: e.enum(["primary", "secondary"]).optional(),
|
|
903
|
+
skip_validation: e.boolean().optional()
|
|
904
|
+
})
|
|
905
|
+
}), Tt = O.extend({
|
|
900
906
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
901
907
|
config: e.object({ text: e.string().optional() })
|
|
902
|
-
}),
|
|
908
|
+
}), Et = O.extend({
|
|
903
909
|
type: e.literal("RICH_TEXT"),
|
|
904
910
|
config: e.object({ content: e.string().optional() }).optional()
|
|
905
|
-
}),
|
|
911
|
+
}), k = D.extend({
|
|
906
912
|
category: e.literal("WIDGET").optional(),
|
|
907
913
|
label: e.string().min(1).optional(),
|
|
908
914
|
hint: e.string().min(1).max(500).optional(),
|
|
909
915
|
required: e.boolean().optional(),
|
|
910
916
|
sensitive: e.boolean().optional()
|
|
911
|
-
}),
|
|
917
|
+
}), Dt = k.extend({
|
|
912
918
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
913
919
|
config: e.object({ credential_type: e.string().optional() })
|
|
914
|
-
}),
|
|
920
|
+
}), Ot = k.extend({
|
|
915
921
|
type: e.literal("GMAPS_ADDRESS"),
|
|
916
922
|
config: e.object({ api_key: e.string().optional() })
|
|
917
|
-
}),
|
|
923
|
+
}), kt = k.extend({
|
|
918
924
|
type: e.literal("RECAPTCHA"),
|
|
919
925
|
config: e.object({ site_key: e.string().optional() })
|
|
920
|
-
}),
|
|
926
|
+
}), A = D.extend({
|
|
921
927
|
category: e.literal("FIELD").optional(),
|
|
922
928
|
label: e.string().min(1).optional(),
|
|
923
929
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -933,10 +939,10 @@ var ut = e.object({
|
|
|
933
939
|
})).optional(),
|
|
934
940
|
required: e.boolean().optional(),
|
|
935
941
|
sensitive: e.boolean().optional()
|
|
936
|
-
}),
|
|
942
|
+
}), At = A.extend({
|
|
937
943
|
type: e.literal("BOOLEAN"),
|
|
938
944
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
939
|
-
}),
|
|
945
|
+
}), jt = A.extend({
|
|
940
946
|
type: e.literal("CARDS"),
|
|
941
947
|
config: e.object({
|
|
942
948
|
options: e.array(e.object({
|
|
@@ -947,7 +953,7 @@ var ut = e.object({
|
|
|
947
953
|
})).optional(),
|
|
948
954
|
multi_select: e.boolean().optional()
|
|
949
955
|
}).optional()
|
|
950
|
-
}),
|
|
956
|
+
}), Mt = A.extend({
|
|
951
957
|
type: e.literal("CHOICE"),
|
|
952
958
|
config: e.object({
|
|
953
959
|
options: e.array(e.object({
|
|
@@ -958,7 +964,7 @@ var ut = e.object({
|
|
|
958
964
|
multiple: e.boolean().optional(),
|
|
959
965
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
960
966
|
}).optional()
|
|
961
|
-
}),
|
|
967
|
+
}), Nt = A.extend({
|
|
962
968
|
type: e.literal("CODE"),
|
|
963
969
|
config: e.object({
|
|
964
970
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -975,7 +981,7 @@ var ut = e.object({
|
|
|
975
981
|
message: "default_value is longer than the configured length",
|
|
976
982
|
path: ["default_value"]
|
|
977
983
|
}).optional()
|
|
978
|
-
}),
|
|
984
|
+
}), Pt = A.extend({
|
|
979
985
|
type: e.literal("CUSTOM"),
|
|
980
986
|
config: e.object({
|
|
981
987
|
component: e.string().optional(),
|
|
@@ -983,7 +989,7 @@ var ut = e.object({
|
|
|
983
989
|
schema: e.record(e.string(), e.any()).optional(),
|
|
984
990
|
code: e.string().optional()
|
|
985
991
|
})
|
|
986
|
-
}),
|
|
992
|
+
}), Ft = A.extend({
|
|
987
993
|
type: e.literal("DATE"),
|
|
988
994
|
config: e.object({
|
|
989
995
|
format: e.string().optional(),
|
|
@@ -991,7 +997,7 @@ var ut = e.object({
|
|
|
991
997
|
max: e.string().optional(),
|
|
992
998
|
default_value: e.string().optional()
|
|
993
999
|
}).optional()
|
|
994
|
-
}),
|
|
1000
|
+
}), It = A.extend({
|
|
995
1001
|
type: e.literal("DROPDOWN"),
|
|
996
1002
|
config: e.object({
|
|
997
1003
|
options: e.array(e.object({
|
|
@@ -1003,7 +1009,7 @@ var ut = e.object({
|
|
|
1003
1009
|
multiple: e.boolean().optional(),
|
|
1004
1010
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1005
1011
|
}).optional()
|
|
1006
|
-
}),
|
|
1012
|
+
}), Lt = A.extend({
|
|
1007
1013
|
type: e.literal("EMAIL"),
|
|
1008
1014
|
config: e.object({
|
|
1009
1015
|
placeholder: e.string().optional(),
|
|
@@ -1011,20 +1017,20 @@ var ut = e.object({
|
|
|
1011
1017
|
last_used: e.boolean().optional(),
|
|
1012
1018
|
last_used_label: e.string().optional()
|
|
1013
1019
|
}).optional()
|
|
1014
|
-
}),
|
|
1020
|
+
}), Rt = A.extend({
|
|
1015
1021
|
type: e.literal("FILE"),
|
|
1016
1022
|
config: e.object({
|
|
1017
1023
|
accept: e.string().optional(),
|
|
1018
1024
|
max_size: e.number().optional(),
|
|
1019
1025
|
multiple: e.boolean().optional()
|
|
1020
1026
|
}).optional()
|
|
1021
|
-
}),
|
|
1027
|
+
}), zt = A.extend({
|
|
1022
1028
|
type: e.literal("LEGAL"),
|
|
1023
1029
|
config: e.object({
|
|
1024
1030
|
text: e.string(),
|
|
1025
1031
|
html: e.boolean().optional()
|
|
1026
1032
|
}).optional()
|
|
1027
|
-
}),
|
|
1033
|
+
}), Bt = A.extend({
|
|
1028
1034
|
type: e.literal("NUMBER"),
|
|
1029
1035
|
config: e.object({
|
|
1030
1036
|
placeholder: e.string().optional(),
|
|
@@ -1033,7 +1039,7 @@ var ut = e.object({
|
|
|
1033
1039
|
step: e.number().optional(),
|
|
1034
1040
|
default_value: e.string().optional()
|
|
1035
1041
|
}).optional()
|
|
1036
|
-
}),
|
|
1042
|
+
}), Vt = A.extend({
|
|
1037
1043
|
type: e.literal("PASSWORD"),
|
|
1038
1044
|
config: e.object({
|
|
1039
1045
|
placeholder: e.string().optional(),
|
|
@@ -1042,13 +1048,13 @@ var ut = e.object({
|
|
|
1042
1048
|
forgot_password_link: e.string().optional(),
|
|
1043
1049
|
default_value: e.string().optional()
|
|
1044
1050
|
}).optional()
|
|
1045
|
-
}),
|
|
1051
|
+
}), Ht = A.extend({
|
|
1046
1052
|
type: e.literal("PAYMENT"),
|
|
1047
1053
|
config: e.object({
|
|
1048
1054
|
provider: e.string().optional(),
|
|
1049
1055
|
currency: e.string().optional()
|
|
1050
1056
|
}).optional()
|
|
1051
|
-
}),
|
|
1057
|
+
}), Ut = A.extend({
|
|
1052
1058
|
type: e.literal("SOCIAL"),
|
|
1053
1059
|
config: e.object({
|
|
1054
1060
|
providers: e.array(e.string()).optional(),
|
|
@@ -1062,7 +1068,7 @@ var ut = e.object({
|
|
|
1062
1068
|
last_used_label: e.string().optional()
|
|
1063
1069
|
})).optional()
|
|
1064
1070
|
}).optional()
|
|
1065
|
-
}),
|
|
1071
|
+
}), Wt = A.extend({
|
|
1066
1072
|
type: e.literal("TEL"),
|
|
1067
1073
|
config: e.object({
|
|
1068
1074
|
placeholder: e.string().optional(),
|
|
@@ -1070,7 +1076,7 @@ var ut = e.object({
|
|
|
1070
1076
|
default_value: e.string().optional(),
|
|
1071
1077
|
allow_email: e.boolean().optional()
|
|
1072
1078
|
}).optional()
|
|
1073
|
-
}),
|
|
1079
|
+
}), Gt = A.extend({
|
|
1074
1080
|
type: e.literal("TEXT"),
|
|
1075
1081
|
config: e.object({
|
|
1076
1082
|
placeholder: e.string().optional(),
|
|
@@ -1080,39 +1086,37 @@ var ut = e.object({
|
|
|
1080
1086
|
last_used: e.boolean().optional(),
|
|
1081
1087
|
last_used_label: e.string().optional()
|
|
1082
1088
|
}).optional()
|
|
1083
|
-
}),
|
|
1089
|
+
}), Kt = A.extend({
|
|
1084
1090
|
type: e.literal("COUNTRY"),
|
|
1085
1091
|
config: e.object({
|
|
1086
1092
|
placeholder: e.string().optional(),
|
|
1087
1093
|
default_value: e.string().optional()
|
|
1088
1094
|
}).optional()
|
|
1089
|
-
}),
|
|
1095
|
+
}), qt = A.extend({
|
|
1090
1096
|
type: e.literal("URL"),
|
|
1091
1097
|
config: e.object({
|
|
1092
1098
|
placeholder: e.string().optional(),
|
|
1093
1099
|
default_value: e.string().optional()
|
|
1094
1100
|
}).optional()
|
|
1095
|
-
}),
|
|
1096
|
-
_t,
|
|
1097
|
-
vt,
|
|
1101
|
+
}), Jt = e.discriminatedUnion("type", [
|
|
1098
1102
|
yt,
|
|
1099
1103
|
bt,
|
|
1100
1104
|
xt,
|
|
1101
1105
|
St,
|
|
1102
1106
|
Ct,
|
|
1103
|
-
wt
|
|
1104
|
-
]), qt = e.discriminatedUnion("type", [
|
|
1107
|
+
wt,
|
|
1105
1108
|
Tt,
|
|
1106
|
-
Et
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
+
Et
|
|
1110
|
+
]), Yt = e.discriminatedUnion("type", [
|
|
1111
|
+
Dt,
|
|
1109
1112
|
Ot,
|
|
1110
|
-
kt
|
|
1113
|
+
kt
|
|
1114
|
+
]), Xt = e.discriminatedUnion("type", [
|
|
1111
1115
|
At,
|
|
1112
1116
|
jt,
|
|
1113
|
-
Wt,
|
|
1114
1117
|
Mt,
|
|
1115
1118
|
Nt,
|
|
1119
|
+
Kt,
|
|
1116
1120
|
Pt,
|
|
1117
1121
|
Ft,
|
|
1118
1122
|
It,
|
|
@@ -1123,12 +1127,14 @@ var ut = e.object({
|
|
|
1123
1127
|
Vt,
|
|
1124
1128
|
Ht,
|
|
1125
1129
|
Ut,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
Jt
|
|
1131
|
-
|
|
1130
|
+
Wt,
|
|
1131
|
+
Gt,
|
|
1132
|
+
qt
|
|
1133
|
+
]), j = e.union([
|
|
1134
|
+
Jt,
|
|
1135
|
+
Yt,
|
|
1136
|
+
Xt
|
|
1137
|
+
]), Zt = new Set([
|
|
1132
1138
|
"BOOLEAN",
|
|
1133
1139
|
"CARDS",
|
|
1134
1140
|
"CHOICE",
|
|
@@ -1143,7 +1149,7 @@ var ut = e.object({
|
|
|
1143
1149
|
"TEL",
|
|
1144
1150
|
"TEXT",
|
|
1145
1151
|
"URL"
|
|
1146
|
-
]),
|
|
1152
|
+
]), Qt = e.object({
|
|
1147
1153
|
id: e.string(),
|
|
1148
1154
|
type: e.literal("submit"),
|
|
1149
1155
|
label: e.string(),
|
|
@@ -1152,22 +1158,22 @@ var ut = e.object({
|
|
|
1152
1158
|
order: e.number().optional(),
|
|
1153
1159
|
visible: e.boolean().optional().default(!0),
|
|
1154
1160
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1155
|
-
}),
|
|
1161
|
+
}), M = e.object({
|
|
1156
1162
|
x: e.number(),
|
|
1157
1163
|
y: e.number()
|
|
1158
|
-
}),
|
|
1164
|
+
}), $t = e.object({
|
|
1159
1165
|
id: e.string(),
|
|
1160
1166
|
type: e.literal("FLOW"),
|
|
1161
|
-
coordinates:
|
|
1167
|
+
coordinates: M,
|
|
1162
1168
|
alias: e.string().min(1).max(150).optional(),
|
|
1163
1169
|
config: e.object({
|
|
1164
1170
|
flow_id: e.string().max(30),
|
|
1165
1171
|
next_node: e.string().optional()
|
|
1166
1172
|
})
|
|
1167
|
-
}),
|
|
1173
|
+
}), en = e.object({
|
|
1168
1174
|
id: e.string(),
|
|
1169
1175
|
type: e.literal("ROUTER"),
|
|
1170
|
-
coordinates:
|
|
1176
|
+
coordinates: M,
|
|
1171
1177
|
alias: e.string().min(1).max(150),
|
|
1172
1178
|
config: e.object({
|
|
1173
1179
|
rules: e.array(e.object({
|
|
@@ -1178,20 +1184,20 @@ var ut = e.object({
|
|
|
1178
1184
|
})),
|
|
1179
1185
|
fallback: e.string()
|
|
1180
1186
|
})
|
|
1181
|
-
}),
|
|
1187
|
+
}), tn = e.object({
|
|
1182
1188
|
id: e.string(),
|
|
1183
1189
|
type: e.literal("STEP"),
|
|
1184
|
-
coordinates:
|
|
1190
|
+
coordinates: M,
|
|
1185
1191
|
alias: e.string().min(1).max(150).optional(),
|
|
1186
1192
|
config: e.object({
|
|
1187
|
-
components: e.array(
|
|
1193
|
+
components: e.array(j),
|
|
1188
1194
|
next_node: e.string().optional()
|
|
1189
1195
|
})
|
|
1190
|
-
}),
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
]),
|
|
1196
|
+
}), nn = e.discriminatedUnion("type", [
|
|
1197
|
+
$t,
|
|
1198
|
+
en,
|
|
1199
|
+
tn
|
|
1200
|
+
]), rn = e.object({
|
|
1195
1201
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1196
1202
|
messages: e.object({
|
|
1197
1203
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1202,14 +1208,14 @@ var ut = e.object({
|
|
|
1202
1208
|
default: e.string().optional()
|
|
1203
1209
|
}).optional(),
|
|
1204
1210
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1205
|
-
nodes: e.array(
|
|
1211
|
+
nodes: e.array(nn).optional(),
|
|
1206
1212
|
start: e.object({
|
|
1207
1213
|
hidden_fields: e.array(e.object({
|
|
1208
1214
|
key: e.string(),
|
|
1209
1215
|
value: e.string()
|
|
1210
1216
|
})).optional(),
|
|
1211
1217
|
next_node: e.string().optional(),
|
|
1212
|
-
coordinates:
|
|
1218
|
+
coordinates: M.optional()
|
|
1213
1219
|
}).optional(),
|
|
1214
1220
|
ending: e.object({
|
|
1215
1221
|
redirection: e.object({
|
|
@@ -1217,7 +1223,7 @@ var ut = e.object({
|
|
|
1217
1223
|
target: e.string().optional()
|
|
1218
1224
|
}).optional(),
|
|
1219
1225
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1220
|
-
coordinates:
|
|
1226
|
+
coordinates: M.optional(),
|
|
1221
1227
|
resume_flow: e.boolean().optional()
|
|
1222
1228
|
}).optional(),
|
|
1223
1229
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1225,7 +1231,7 @@ var ut = e.object({
|
|
|
1225
1231
|
sdkSrc: e.string().optional(),
|
|
1226
1232
|
sdk_src: e.string().optional()
|
|
1227
1233
|
}).optional()
|
|
1228
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1234
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), an = t.extend(rn.shape).extend({ id: e.string() }), on = e.object({
|
|
1229
1235
|
id: e.number().optional(),
|
|
1230
1236
|
text: e.string(),
|
|
1231
1237
|
type: e.enum([
|
|
@@ -1234,34 +1240,34 @@ var ut = e.object({
|
|
|
1234
1240
|
"success",
|
|
1235
1241
|
"warning"
|
|
1236
1242
|
])
|
|
1237
|
-
}),
|
|
1243
|
+
}), sn = e.object({
|
|
1238
1244
|
id: e.string().optional(),
|
|
1239
1245
|
text: e.string(),
|
|
1240
1246
|
href: e.string(),
|
|
1241
1247
|
linkText: e.string().optional()
|
|
1242
|
-
}),
|
|
1248
|
+
}), cn = e.object({
|
|
1243
1249
|
name: e.string().optional(),
|
|
1244
1250
|
action: e.string(),
|
|
1245
1251
|
method: e.enum(["POST", "GET"]),
|
|
1246
1252
|
title: e.string().optional(),
|
|
1247
1253
|
description: e.string().optional(),
|
|
1248
|
-
components: e.array(
|
|
1249
|
-
messages: e.array(
|
|
1250
|
-
links: e.array(
|
|
1254
|
+
components: e.array(j),
|
|
1255
|
+
messages: e.array(on).optional(),
|
|
1256
|
+
links: e.array(sn).optional(),
|
|
1251
1257
|
footer: e.string().optional()
|
|
1252
1258
|
});
|
|
1253
|
-
function
|
|
1259
|
+
function ln(e) {
|
|
1254
1260
|
return e.category === "BLOCK";
|
|
1255
1261
|
}
|
|
1256
|
-
function
|
|
1262
|
+
function un(e) {
|
|
1257
1263
|
return e.category === "WIDGET";
|
|
1258
1264
|
}
|
|
1259
|
-
function
|
|
1265
|
+
function dn(e) {
|
|
1260
1266
|
return e.category === "FIELD";
|
|
1261
1267
|
}
|
|
1262
1268
|
//#endregion
|
|
1263
1269
|
//#region src/types/Hook.ts
|
|
1264
|
-
var
|
|
1270
|
+
var N = e.enum([
|
|
1265
1271
|
"pre-user-registration",
|
|
1266
1272
|
"post-user-registration",
|
|
1267
1273
|
"post-user-login",
|
|
@@ -1269,48 +1275,48 @@ var F = e.enum([
|
|
|
1269
1275
|
"validate-registration-username",
|
|
1270
1276
|
"pre-user-deletion",
|
|
1271
1277
|
"post-user-deletion"
|
|
1272
|
-
]),
|
|
1278
|
+
]), P = e.enum(["post-user-login"]), F = e.enum([
|
|
1273
1279
|
"post-user-login",
|
|
1274
1280
|
"post-user-registration",
|
|
1275
1281
|
"post-user-update",
|
|
1276
1282
|
"credentials-exchange"
|
|
1277
|
-
]),
|
|
1283
|
+
]), I = e.enum([
|
|
1278
1284
|
"post-user-login",
|
|
1279
1285
|
"credentials-exchange",
|
|
1280
1286
|
"pre-user-registration",
|
|
1281
1287
|
"post-user-registration"
|
|
1282
|
-
]),
|
|
1288
|
+
]), L = e.enum(["post-user-login"]), fn = [
|
|
1283
1289
|
{
|
|
1284
1290
|
field: "url",
|
|
1285
|
-
triggers:
|
|
1291
|
+
triggers: N.options
|
|
1286
1292
|
},
|
|
1287
1293
|
{
|
|
1288
1294
|
field: "form_id",
|
|
1289
|
-
triggers:
|
|
1295
|
+
triggers: P.options
|
|
1290
1296
|
},
|
|
1291
1297
|
{
|
|
1292
1298
|
field: "template_id",
|
|
1293
|
-
triggers:
|
|
1299
|
+
triggers: F.options
|
|
1294
1300
|
},
|
|
1295
1301
|
{
|
|
1296
1302
|
field: "code_id",
|
|
1297
|
-
triggers:
|
|
1303
|
+
triggers: I.options
|
|
1298
1304
|
},
|
|
1299
1305
|
{
|
|
1300
1306
|
field: "page_id",
|
|
1301
|
-
triggers:
|
|
1307
|
+
triggers: L.options
|
|
1302
1308
|
}
|
|
1303
1309
|
];
|
|
1304
|
-
function
|
|
1310
|
+
function pn(e) {
|
|
1305
1311
|
if (!(!e || typeof e != "object")) {
|
|
1306
|
-
for (let t of
|
|
1312
|
+
for (let t of fn) if (typeof Reflect.get(e, t.field) == "string") return t.triggers;
|
|
1307
1313
|
}
|
|
1308
1314
|
}
|
|
1309
|
-
var
|
|
1315
|
+
var R = e.enum(["impersonate"]), z = e.enum([
|
|
1310
1316
|
"ensure-username",
|
|
1311
1317
|
"set-preferred-username",
|
|
1312
1318
|
"account-linking"
|
|
1313
|
-
]),
|
|
1319
|
+
]), mn = {
|
|
1314
1320
|
"ensure-username": {
|
|
1315
1321
|
name: "Ensure Username",
|
|
1316
1322
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1330,87 +1336,87 @@ var B = e.enum(["impersonate"]), V = e.enum([
|
|
|
1330
1336
|
"post-user-update"
|
|
1331
1337
|
]
|
|
1332
1338
|
}
|
|
1333
|
-
},
|
|
1339
|
+
}, B = {
|
|
1334
1340
|
enabled: e.boolean().default(!1),
|
|
1335
1341
|
synchronous: e.boolean().default(!1),
|
|
1336
1342
|
priority: e.number().optional(),
|
|
1337
1343
|
hook_id: e.string().optional(),
|
|
1338
1344
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1339
|
-
},
|
|
1340
|
-
...
|
|
1341
|
-
trigger_id:
|
|
1345
|
+
}, hn = e.object({
|
|
1346
|
+
...B,
|
|
1347
|
+
trigger_id: N,
|
|
1342
1348
|
url: e.string()
|
|
1343
|
-
}), mn = e.object({
|
|
1344
|
-
...H,
|
|
1345
|
-
trigger_id: I,
|
|
1346
|
-
form_id: e.string()
|
|
1347
|
-
}), hn = e.object({
|
|
1348
|
-
...H,
|
|
1349
|
-
trigger_id: L,
|
|
1350
|
-
template_id: V
|
|
1351
1349
|
}), gn = e.object({
|
|
1352
|
-
...
|
|
1353
|
-
trigger_id:
|
|
1354
|
-
|
|
1350
|
+
...B,
|
|
1351
|
+
trigger_id: P,
|
|
1352
|
+
form_id: e.string()
|
|
1355
1353
|
}), _n = e.object({
|
|
1356
|
-
...
|
|
1357
|
-
trigger_id:
|
|
1358
|
-
|
|
1354
|
+
...B,
|
|
1355
|
+
trigger_id: F,
|
|
1356
|
+
template_id: z
|
|
1357
|
+
}), vn = e.object({
|
|
1358
|
+
...B,
|
|
1359
|
+
trigger_id: I,
|
|
1360
|
+
code_id: e.string()
|
|
1361
|
+
}), yn = e.object({
|
|
1362
|
+
...B,
|
|
1363
|
+
trigger_id: L,
|
|
1364
|
+
page_id: R,
|
|
1359
1365
|
permission_required: e.string().optional()
|
|
1360
|
-
}),
|
|
1361
|
-
pn,
|
|
1362
|
-
mn,
|
|
1366
|
+
}), bn = e.union([
|
|
1363
1367
|
hn,
|
|
1364
1368
|
gn,
|
|
1365
|
-
_n
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
+
_n,
|
|
1370
|
+
vn,
|
|
1371
|
+
yn
|
|
1372
|
+
]), xn = e.object({
|
|
1373
|
+
...B,
|
|
1374
|
+
trigger_id: N
|
|
1369
1375
|
}).extend(t.shape).extend({
|
|
1370
1376
|
hook_id: e.string(),
|
|
1371
1377
|
url: e.string()
|
|
1372
|
-
}),
|
|
1373
|
-
...
|
|
1374
|
-
trigger_id:
|
|
1378
|
+
}), Sn = e.object({
|
|
1379
|
+
...B,
|
|
1380
|
+
trigger_id: P
|
|
1375
1381
|
}).extend(t.shape).extend({
|
|
1376
1382
|
hook_id: e.string(),
|
|
1377
1383
|
form_id: e.string()
|
|
1378
|
-
}),
|
|
1379
|
-
...
|
|
1380
|
-
trigger_id:
|
|
1384
|
+
}), Cn = e.object({
|
|
1385
|
+
...B,
|
|
1386
|
+
trigger_id: F
|
|
1381
1387
|
}).extend(t.shape).extend({
|
|
1382
1388
|
hook_id: e.string(),
|
|
1383
|
-
template_id:
|
|
1384
|
-
}),
|
|
1385
|
-
...
|
|
1386
|
-
trigger_id:
|
|
1389
|
+
template_id: z
|
|
1390
|
+
}), wn = e.object({
|
|
1391
|
+
...B,
|
|
1392
|
+
trigger_id: I
|
|
1387
1393
|
}).extend(t.shape).extend({
|
|
1388
1394
|
hook_id: e.string(),
|
|
1389
1395
|
code_id: e.string()
|
|
1390
|
-
}),
|
|
1391
|
-
...
|
|
1392
|
-
trigger_id:
|
|
1396
|
+
}), Tn = e.object({
|
|
1397
|
+
...B,
|
|
1398
|
+
trigger_id: L
|
|
1393
1399
|
}).extend(t.shape).extend({
|
|
1394
1400
|
hook_id: e.string(),
|
|
1395
|
-
page_id:
|
|
1401
|
+
page_id: R,
|
|
1396
1402
|
permission_required: e.string().optional()
|
|
1397
|
-
}),
|
|
1398
|
-
yn,
|
|
1399
|
-
bn,
|
|
1403
|
+
}), En = e.union([
|
|
1400
1404
|
xn,
|
|
1401
1405
|
Sn,
|
|
1402
|
-
Cn
|
|
1403
|
-
|
|
1406
|
+
Cn,
|
|
1407
|
+
wn,
|
|
1408
|
+
Tn
|
|
1409
|
+
]), Dn = e.object({
|
|
1404
1410
|
code: e.string().max(1e5),
|
|
1405
1411
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1406
|
-
}),
|
|
1412
|
+
}), On = Dn.extend({
|
|
1407
1413
|
id: e.string(),
|
|
1408
1414
|
tenant_id: e.string()
|
|
1409
|
-
}).extend(t.shape),
|
|
1415
|
+
}).extend(t.shape), kn = e.object({ name: e.string().optional() }), An = e.object({ email: e.string().optional() }), jn = e.object({
|
|
1410
1416
|
id: e.string().optional(),
|
|
1411
1417
|
organization_id: e.string().max(50),
|
|
1412
|
-
inviter:
|
|
1413
|
-
invitee:
|
|
1418
|
+
inviter: kn,
|
|
1419
|
+
invitee: An,
|
|
1414
1420
|
invitation_url: e.string().url(),
|
|
1415
1421
|
client_id: e.string(),
|
|
1416
1422
|
connection_id: e.string().optional(),
|
|
@@ -1419,13 +1425,13 @@ var B = e.enum(["impersonate"]), V = e.enum([
|
|
|
1419
1425
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1420
1426
|
roles: e.array(e.string()).default([]).optional(),
|
|
1421
1427
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1422
|
-
}),
|
|
1428
|
+
}), Mn = e.object({
|
|
1423
1429
|
id: e.string(),
|
|
1424
1430
|
organization_id: e.string().max(50),
|
|
1425
1431
|
created_at: e.string().datetime(),
|
|
1426
1432
|
expires_at: e.string().datetime(),
|
|
1427
1433
|
ticket_id: e.string().optional()
|
|
1428
|
-
}).extend(
|
|
1434
|
+
}).extend(jn.omit({ id: !0 }).shape), Nn = e.object({
|
|
1429
1435
|
alg: e.enum([
|
|
1430
1436
|
"RS256",
|
|
1431
1437
|
"RS384",
|
|
@@ -1436,7 +1442,7 @@ var B = e.enum(["impersonate"]), V = e.enum([
|
|
|
1436
1442
|
"HS256",
|
|
1437
1443
|
"HS384",
|
|
1438
1444
|
"HS512"
|
|
1439
|
-
]),
|
|
1445
|
+
]).optional(),
|
|
1440
1446
|
kid: e.string().optional(),
|
|
1441
1447
|
kty: e.enum([
|
|
1442
1448
|
"RSA",
|
|
@@ -1466,7 +1472,7 @@ var B = e.enum(["impersonate"]), V = e.enum([
|
|
|
1466
1472
|
path: [r],
|
|
1467
1473
|
message: `EC JWK is missing required member '${r}'`
|
|
1468
1474
|
});
|
|
1469
|
-
}),
|
|
1475
|
+
}), Pn = e.object({ keys: e.array(Nn) }), Fn = e.object({
|
|
1470
1476
|
issuer: e.string(),
|
|
1471
1477
|
authorization_endpoint: e.string(),
|
|
1472
1478
|
token_endpoint: e.string(),
|
|
@@ -1492,33 +1498,33 @@ var B = e.enum(["impersonate"]), V = e.enum([
|
|
|
1492
1498
|
client_id_metadata_document_supported: e.boolean().optional(),
|
|
1493
1499
|
backchannel_logout_supported: e.boolean().optional(),
|
|
1494
1500
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
1495
|
-
}),
|
|
1501
|
+
}), In = /* @__PURE__ */ function(e) {
|
|
1496
1502
|
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1497
|
-
}({}),
|
|
1503
|
+
}({}), Ln = e.nativeEnum(In), V = e.object({
|
|
1498
1504
|
strategy: e.string(),
|
|
1499
1505
|
strategy_type: e.string()
|
|
1500
|
-
}),
|
|
1506
|
+
}), Rn = e.object({
|
|
1501
1507
|
csrf_token: e.string(),
|
|
1502
1508
|
auth0Client: e.string().optional(),
|
|
1503
|
-
authParams:
|
|
1509
|
+
authParams: ot,
|
|
1504
1510
|
expires_at: e.string(),
|
|
1505
1511
|
deleted_at: e.string().optional(),
|
|
1506
1512
|
ip: e.string().optional(),
|
|
1507
1513
|
useragent: e.string().optional(),
|
|
1508
1514
|
session_id: e.string().optional(),
|
|
1509
1515
|
authorization_url: e.string().optional(),
|
|
1510
|
-
state:
|
|
1516
|
+
state: Ln.optional().default("pending"),
|
|
1511
1517
|
state_data: e.string().optional(),
|
|
1512
1518
|
failure_reason: e.string().optional(),
|
|
1513
1519
|
user_id: e.string().optional(),
|
|
1514
1520
|
auth_connection: e.string().optional(),
|
|
1515
|
-
auth_strategy:
|
|
1521
|
+
auth_strategy: V.optional(),
|
|
1516
1522
|
authenticated_at: e.string().optional()
|
|
1517
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1523
|
+
}).openapi({ description: "This represents a login sesion" }), zn = Rn.extend({
|
|
1518
1524
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1519
1525
|
created_at: e.string(),
|
|
1520
1526
|
updated_at: e.string()
|
|
1521
|
-
}),
|
|
1527
|
+
}), H = {
|
|
1522
1528
|
ACLS_SUMMARY: "acls_summary",
|
|
1523
1529
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1524
1530
|
API_LIMIT: "api_limit",
|
|
@@ -1678,190 +1684,190 @@ var B = e.enum(["impersonate"]), V = e.enum([
|
|
|
1678
1684
|
WARNING_DURING_LOGIN: "w",
|
|
1679
1685
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1680
1686
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1681
|
-
},
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
[
|
|
1696
|
-
[
|
|
1697
|
-
[
|
|
1698
|
-
[
|
|
1699
|
-
[
|
|
1700
|
-
[
|
|
1701
|
-
[
|
|
1702
|
-
[
|
|
1703
|
-
[
|
|
1704
|
-
[
|
|
1705
|
-
[
|
|
1706
|
-
[
|
|
1707
|
-
[
|
|
1708
|
-
[
|
|
1709
|
-
[
|
|
1710
|
-
[
|
|
1711
|
-
[
|
|
1712
|
-
[
|
|
1713
|
-
[
|
|
1714
|
-
[
|
|
1715
|
-
[
|
|
1716
|
-
[
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1724
|
-
[
|
|
1725
|
-
[
|
|
1726
|
-
[
|
|
1727
|
-
[
|
|
1728
|
-
[
|
|
1729
|
-
[
|
|
1730
|
-
[
|
|
1731
|
-
[
|
|
1732
|
-
[
|
|
1733
|
-
[
|
|
1734
|
-
[
|
|
1735
|
-
[
|
|
1736
|
-
[
|
|
1737
|
-
[
|
|
1738
|
-
[
|
|
1739
|
-
[
|
|
1740
|
-
[
|
|
1741
|
-
[
|
|
1742
|
-
[
|
|
1743
|
-
[
|
|
1744
|
-
[
|
|
1745
|
-
[
|
|
1746
|
-
[
|
|
1747
|
-
[
|
|
1748
|
-
[
|
|
1749
|
-
[
|
|
1750
|
-
[
|
|
1751
|
-
[
|
|
1752
|
-
[
|
|
1753
|
-
[
|
|
1754
|
-
[
|
|
1755
|
-
[
|
|
1756
|
-
[
|
|
1757
|
-
[
|
|
1758
|
-
[
|
|
1759
|
-
[
|
|
1760
|
-
[
|
|
1761
|
-
[
|
|
1762
|
-
[
|
|
1763
|
-
[
|
|
1764
|
-
[
|
|
1765
|
-
[
|
|
1766
|
-
[
|
|
1767
|
-
[
|
|
1768
|
-
[
|
|
1769
|
-
[
|
|
1770
|
-
[
|
|
1771
|
-
[
|
|
1772
|
-
[
|
|
1773
|
-
[
|
|
1774
|
-
[
|
|
1775
|
-
[
|
|
1776
|
-
[
|
|
1777
|
-
[
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1782
|
-
[
|
|
1783
|
-
[
|
|
1784
|
-
[
|
|
1785
|
-
[
|
|
1786
|
-
[
|
|
1787
|
-
[
|
|
1788
|
-
[
|
|
1789
|
-
[
|
|
1790
|
-
[
|
|
1791
|
-
[
|
|
1792
|
-
[
|
|
1793
|
-
[
|
|
1794
|
-
[
|
|
1795
|
-
[
|
|
1796
|
-
[
|
|
1797
|
-
[
|
|
1798
|
-
[
|
|
1799
|
-
[
|
|
1800
|
-
[
|
|
1801
|
-
[
|
|
1802
|
-
[
|
|
1803
|
-
[
|
|
1804
|
-
[
|
|
1805
|
-
[
|
|
1806
|
-
[
|
|
1807
|
-
[
|
|
1808
|
-
[
|
|
1809
|
-
[
|
|
1810
|
-
[
|
|
1811
|
-
[
|
|
1812
|
-
[
|
|
1813
|
-
[
|
|
1814
|
-
[
|
|
1815
|
-
[
|
|
1816
|
-
[
|
|
1817
|
-
[
|
|
1818
|
-
[
|
|
1819
|
-
[
|
|
1820
|
-
[
|
|
1821
|
-
[
|
|
1822
|
-
[
|
|
1823
|
-
[
|
|
1824
|
-
[
|
|
1825
|
-
[
|
|
1826
|
-
[
|
|
1827
|
-
[
|
|
1828
|
-
[
|
|
1829
|
-
[
|
|
1830
|
-
[
|
|
1831
|
-
[
|
|
1832
|
-
[
|
|
1833
|
-
[
|
|
1834
|
-
[
|
|
1835
|
-
[
|
|
1836
|
-
[
|
|
1837
|
-
[
|
|
1838
|
-
[
|
|
1839
|
-
[
|
|
1840
|
-
[
|
|
1841
|
-
},
|
|
1687
|
+
}, Bn = e.string().refine((e) => Object.values(H).includes(e), { message: "Invalid log type" }), Vn = {
|
|
1688
|
+
[H.ACLS_SUMMARY]: "ACLs Summary",
|
|
1689
|
+
[H.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1690
|
+
[H.API_LIMIT]: "API Rate Limit Reached",
|
|
1691
|
+
[H.API_LIMIT_WARNING]: "API Rate Limit Warning",
|
|
1692
|
+
[H.APPI]: "API Operation",
|
|
1693
|
+
[H.CIBA_EXCHANGE_FAILED]: "CIBA Exchange Failed",
|
|
1694
|
+
[H.CIBA_EXCHANGE_SUCCEEDED]: "CIBA Exchange Succeeded",
|
|
1695
|
+
[H.CIBA_START_FAILED]: "CIBA Start Failed",
|
|
1696
|
+
[H.CIBA_START_SUCCEEDED]: "CIBA Start Succeeded",
|
|
1697
|
+
[H.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1698
|
+
[H.CODE_SENT]: "Code Sent",
|
|
1699
|
+
[H.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1700
|
+
[H.FAILED_LOGIN]: "Failed Login",
|
|
1701
|
+
[H.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1702
|
+
[H.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
1703
|
+
[H.FAILED_BY_CORS]: "Failed by CORS",
|
|
1704
|
+
[H.FAILED_CROSS_ORIGIN_AUTHENTICATION]: "Failed Cross Origin Authentication",
|
|
1705
|
+
[H.FAILED_CHANGE_PASSWORD]: "Failed Change Password",
|
|
1706
|
+
[H.FAILED_POST_CHANGE_PASSWORD_HOOK]: "Failed Post-Change Password Hook",
|
|
1707
|
+
[H.FAILED_CHANGE_PHONE_NUMBER]: "Failed Change Phone Number",
|
|
1708
|
+
[H.FAILED_CHANGE_PASSWORD_REQUEST]: "Failed Change Password Request",
|
|
1709
|
+
[H.FAILED_CONNECTOR_PROVISIONING]: "Failed Connector Provisioning",
|
|
1710
|
+
[H.FAILED_CHANGE_USERNAME]: "Failed Change Username",
|
|
1711
|
+
[H.FAILED_DELEGATION]: "Failed Delegation",
|
|
1712
|
+
[H.FAILED_DEVICE_ACTIVATION]: "Failed Device Activation",
|
|
1713
|
+
[H.FAILED_DEVICE_AUTHORIZATION_REQUEST]: "Failed Device Authorization Request",
|
|
1714
|
+
[H.USER_CANCELED_DEVICE_CONFIRMATION]: "User Canceled Device Confirmation",
|
|
1715
|
+
[H.FAILED_USER_DELETION]: "Failed User Deletion",
|
|
1716
|
+
[H.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Authorization Code for Access Token",
|
|
1717
|
+
[H.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Failed Exchange Access Token for Client Credentials",
|
|
1718
|
+
[H.FAILED_EXCHANGE_CUSTOM_TOKEN]: "Failed Exchange Custom Token",
|
|
1719
|
+
[H.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Device Code for Access Token",
|
|
1720
|
+
[H.FAILED_FEDERATED_LOGOUT]: "Failed Federated Logout",
|
|
1721
|
+
[H.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Failed Exchange Native Social Login",
|
|
1722
|
+
[H.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Failed Exchange Password OOB for Access Token",
|
|
1723
|
+
[H.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Password OTP for Access Token",
|
|
1724
|
+
[H.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Failed Exchange Password for Access Token",
|
|
1725
|
+
[H.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Passwordless OTP for Access Token",
|
|
1726
|
+
[H.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Failed Exchange Password MFA Recovery for Access Token",
|
|
1727
|
+
[H.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN]: "Failed Exchange Rotating Refresh Token",
|
|
1728
|
+
[H.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Refresh Token for Access Token",
|
|
1729
|
+
[H.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Subject Token for Access Token",
|
|
1730
|
+
[H.FAILED_HOOK]: "Failed Hook",
|
|
1731
|
+
[H.FAILED_IMPERSONATION]: "Failed Impersonation",
|
|
1732
|
+
[H.FAILED_INVITE_ACCEPT]: "Failed Invite Accept",
|
|
1733
|
+
[H.FAILED_LOGOUT]: "Failed Logout",
|
|
1734
|
+
[H.FLOWS_EXECUTION_COMPLETED]: "Flows Execution Completed",
|
|
1735
|
+
[H.FLOWS_EXECUTION_FAILED]: "Flows Execution Failed",
|
|
1736
|
+
[H.FAILED_SENDING_NOTIFICATION]: "Failed Sending Notification",
|
|
1737
|
+
[H.FORMS_SUBMISSION_FAILED]: "Forms Submission Failed",
|
|
1738
|
+
[H.FORMS_SUBMISSION_SUCCEEDED]: "Forms Submission Succeeded",
|
|
1739
|
+
[H.FAILED_LOGIN_INCORRECT_PASSWORD]: "Failed Login - Incorrect Password",
|
|
1740
|
+
[H.FAILED_PUSHED_AUTHORIZATION_REQUEST]: "Failed Pushed Authorization Request",
|
|
1741
|
+
[H.FAILED_POST_USER_REGISTRATION_HOOK]: "Failed Post-User Registration Hook",
|
|
1742
|
+
[H.FAILED_SIGNUP]: "Failed Signup",
|
|
1743
|
+
[H.FAILED_SILENT_AUTH]: "Failed Silent Auth",
|
|
1744
|
+
[H.FAILED_LOGIN_INVALID_EMAIL_USERNAME]: "Failed Login - Invalid Email/Username",
|
|
1745
|
+
[H.FAILED_USERS_IMPORT]: "Failed Users Import",
|
|
1746
|
+
[H.FAILED_VERIFICATION_EMAIL]: "Failed Verification Email",
|
|
1747
|
+
[H.FAILED_VERIFICATION_EMAIL_REQUEST]: "Failed Verification Email Request",
|
|
1748
|
+
[H.EMAIL_VERIFICATION_CONFIRMED]: "Email Verification Confirmed",
|
|
1749
|
+
[H.EMAIL_VERIFICATION_FAILED]: "Email Verification Failed",
|
|
1750
|
+
[H.MFA_AUTH_FAILED]: "MFA Auth Failed",
|
|
1751
|
+
[H.MFA_AUTH_REJECTED]: "MFA Auth Rejected",
|
|
1752
|
+
[H.MFA_AUTH_SUCCESS]: "MFA Auth Success",
|
|
1753
|
+
[H.MFA_ENROLLMENT_COMPLETE]: "MFA Enrollment Complete",
|
|
1754
|
+
[H.TOO_MANY_MFA_FAILURES]: "Too Many MFA Failures",
|
|
1755
|
+
[H.MFA_RECOVERY_FAILED]: "MFA Recovery Failed",
|
|
1756
|
+
[H.MFA_RECOVERY_RATE_LIMIT_EXCEED]: "MFA Recovery Rate Limit Exceeded",
|
|
1757
|
+
[H.MFA_RECOVERY_SUCCESS]: "MFA Recovery Success",
|
|
1758
|
+
[H.MFA_EMAIL_SENT]: "MFA Email Sent",
|
|
1759
|
+
[H.EMAIL_VERIFICATION_SENT]: "Email Verification Sent",
|
|
1760
|
+
[H.EMAIL_VERIFICATION_SEND_FAILURE]: "Email Verification Send Failure",
|
|
1761
|
+
[H.PUSH_NOTIFICATION_SENT]: "Push Notification Sent",
|
|
1762
|
+
[H.ERROR_SENDING_MFA_PUSH_NOTIFICATION]: "Error Sending MFA Push Notification",
|
|
1763
|
+
[H.MFA_SMS_SENT]: "MFA SMS Sent",
|
|
1764
|
+
[H.ERROR_SENDING_MFA_SMS]: "Error Sending MFA SMS",
|
|
1765
|
+
[H.MFA_VOICE_CALL_SUCCESS]: "MFA Voice Call Success",
|
|
1766
|
+
[H.MFA_VOICE_CALL_FAILED]: "MFA Voice Call Failed",
|
|
1767
|
+
[H.SECOND_FACTOR_STARTED]: "Second Factor Started",
|
|
1768
|
+
[H.MFA_ENROLL_STARTED]: "MFA Enroll Started",
|
|
1769
|
+
[H.MFA_ENROLLMENT_FAILED]: "MFA Enrollment Failed",
|
|
1770
|
+
[H.GUARDIAN_TENANT_UPDATE]: "Guardian Tenant Update",
|
|
1771
|
+
[H.UNENROLL_DEVICE_ACCOUNT]: "Unenroll Device Account",
|
|
1772
|
+
[H.UPDATE_DEVICE_ACCOUNT]: "Update Device Account",
|
|
1773
|
+
[H.WEBAUTHN_CHALLENGE_FAILED]: "WebAuthn Challenge Failed",
|
|
1774
|
+
[H.WEBAUTHN_ENROLLMENT_FAILED]: "WebAuthn Enrollment Failed",
|
|
1775
|
+
[H.FAILED_KMS_API_OPERATION]: "Failed KMS API Operation",
|
|
1776
|
+
[H.SUCCESS_KMS_API_OPERATION]: "Success KMS API Operation",
|
|
1777
|
+
[H.KMS_KEY_STATE_CHANGED]: "KMS Key State Changed",
|
|
1778
|
+
[H.TOO_MANY_CALLS_TO_DELEGATION]: "Too Many Calls to Delegation",
|
|
1779
|
+
[H.BLOCKED_IP_ADDRESS]: "Blocked IP Address",
|
|
1780
|
+
[H.BLOCKED_ACCOUNT_IP]: "Blocked Account (IP)",
|
|
1781
|
+
[H.BLOCKED_ACCOUNT_EMAIL]: "Blocked Account (Email)",
|
|
1782
|
+
[H.INFORMATION]: "Information",
|
|
1783
|
+
[H.MFA_REQUIRED]: "MFA Required",
|
|
1784
|
+
[H.MANAGEMENT_API_READ_OPERATION]: "Management API Read Operation",
|
|
1785
|
+
[H.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Failed Authentication Method Operation (My Account)",
|
|
1786
|
+
[H.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Successful Authentication Method Operation (My Account)",
|
|
1787
|
+
[H.FAILED_OIDC_BACKCHANNEL_LOGOUT]: "Failed OIDC Backchannel Logout",
|
|
1788
|
+
[H.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT]: "Successful OIDC Backchannel Logout",
|
|
1789
|
+
[H.ORGANIZATION_MEMBER_ADDED]: "Organization Member Added",
|
|
1790
|
+
[H.PASSKEY_CHALLENGE_FAILED]: "Passkey Challenge Failed",
|
|
1791
|
+
[H.PASSKEY_CHALLENGE_STARTED]: "Passkey Challenge Started",
|
|
1792
|
+
[H.PRE_LOGIN_ASSESSMENT]: "Pre-Login Assessment",
|
|
1793
|
+
[H.BREACHED_PASSWORD]: "Breached Password",
|
|
1794
|
+
[H.BREACHED_PASSWORD_ON_RESET]: "Breached Password on Reset",
|
|
1795
|
+
[H.SUCCESS_RESOURCE_CLEANUP]: "Success Resource Cleanup",
|
|
1796
|
+
[H.RICH_CONSENTS_ACCESS_ERROR]: "Rich Consents Access Error",
|
|
1797
|
+
[H.SUCCESS_LOGIN]: "Success Login",
|
|
1798
|
+
[H.SUCCESS_API_OPERATION]: "Success API Operation",
|
|
1799
|
+
[H.FAILED_API_OPERATION]: "Failed API Operation",
|
|
1800
|
+
[H.SUCCESS_CHANGE_EMAIL]: "Success Change Email",
|
|
1801
|
+
[H.SUCCESS_CROSS_ORIGIN_AUTHENTICATION]: "Success Cross Origin Authentication",
|
|
1802
|
+
[H.SUCCESS_CHANGE_PASSWORD]: "Success Change Password",
|
|
1803
|
+
[H.SUCCESS_CHANGE_PHONE_NUMBER]: "Success Change Phone Number",
|
|
1804
|
+
[H.SUCCESS_CHANGE_PASSWORD_REQUEST]: "Success Change Password Request",
|
|
1805
|
+
[H.SUCCESS_CHANGE_USERNAME]: "Success Change Username",
|
|
1806
|
+
[H.SUCCESS_CREDENTIAL_VALIDATION]: "Success Credential Validation",
|
|
1807
|
+
[H.SUCCESS_DELEGATION]: "Success Delegation",
|
|
1808
|
+
[H.SUCCESS_USER_DELETION]: "Success User Deletion",
|
|
1809
|
+
[H.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Authorization Code for Access Token",
|
|
1810
|
+
[H.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Success Exchange Access Token for Client Credentials",
|
|
1811
|
+
[H.SUCCESS_EXCHANGE_CUSTOM_TOKEN]: "Success Exchange Custom Token",
|
|
1812
|
+
[H.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Device Code for Access Token",
|
|
1813
|
+
[H.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
|
|
1814
|
+
[H.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
|
|
1815
|
+
[H.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
|
|
1816
|
+
[H.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
|
|
1817
|
+
[H.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
|
|
1818
|
+
[H.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
|
|
1819
|
+
[H.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
|
|
1820
|
+
[H.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Passkey MFA Recovery for Access Token",
|
|
1821
|
+
[H.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Password MFA Recovery for Access Token",
|
|
1822
|
+
[H.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Refresh Token for Access Token",
|
|
1823
|
+
[H.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Subject Token for Access Token",
|
|
1824
|
+
[H.SUCCESS_IMPERSONATION]: "Success Impersonation",
|
|
1825
|
+
[H.SUCCESSFULLY_ACCEPTED_USER_INVITE]: "Successfully Accepted User Invite",
|
|
1826
|
+
[H.BREACHED_PASSWORD_ON_SIGNUP]: "Breached Password on Signup",
|
|
1827
|
+
[H.SUCCESS_LOGOUT]: "Success Logout",
|
|
1828
|
+
[H.SUCCESS_HOOK]: "Success Hook",
|
|
1829
|
+
[H.SUCCESS_PASSWORD_MIGRATION]: "Success Password Migration",
|
|
1830
|
+
[H.SUCCESS_REVOCATION]: "Success Revocation",
|
|
1831
|
+
[H.SUCCESS_SIGNUP]: "Success Signup",
|
|
1832
|
+
[H.FAILED_SS_SSO_OPERATION]: "Failed SS SSO Operation",
|
|
1833
|
+
[H.INFORMATION_FROM_SS_SSO_OPERATION]: "Information from SS SSO Operation",
|
|
1834
|
+
[H.SUCCESS_SS_SSO_OPERATION]: "Success SS SSO Operation",
|
|
1835
|
+
[H.SUCCESS_SILENT_AUTH]: "Success Silent Auth",
|
|
1836
|
+
[H.SUCCESSFUL_SCIM_OPERATION]: "Successful SCIM Operation",
|
|
1837
|
+
[H.SUCCESSFULLY_IMPORTED_USERS]: "Successfully Imported Users",
|
|
1838
|
+
[H.SUCCESS_VERIFICATION_EMAIL]: "Success Verification Email",
|
|
1839
|
+
[H.SUCCESS_VERIFICATION_EMAIL_REQUEST]: "Success Verification Email Request",
|
|
1840
|
+
[H.MAX_AMOUNT_OF_AUTHENTICATORS]: "Max Amount of Authenticators",
|
|
1841
|
+
[H.USER_LOGIN_BLOCK_RELEASED]: "User Login Block Released",
|
|
1842
|
+
[H.FAILED_UNIVERSAL_LOGOUT]: "Failed Universal Logout",
|
|
1843
|
+
[H.SUCCESSFUL_UNIVERSAL_LOGOUT]: "Successful Universal Logout",
|
|
1844
|
+
[H.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1845
|
+
[H.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1846
|
+
[H.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1847
|
+
}, Hn = (() => {
|
|
1842
1848
|
let e = {};
|
|
1843
|
-
for (let [t, n] of Object.entries(
|
|
1849
|
+
for (let [t, n] of Object.entries(H)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
1844
1850
|
return e;
|
|
1845
1851
|
})();
|
|
1846
|
-
function
|
|
1847
|
-
return
|
|
1852
|
+
function Un(e) {
|
|
1853
|
+
return Vn[e] ?? e;
|
|
1848
1854
|
}
|
|
1849
|
-
function
|
|
1850
|
-
return
|
|
1855
|
+
function Wn(e) {
|
|
1856
|
+
return Hn[e] ?? "other";
|
|
1851
1857
|
}
|
|
1852
|
-
var
|
|
1858
|
+
var Gn = e.object({
|
|
1853
1859
|
name: e.string(),
|
|
1854
1860
|
version: e.string(),
|
|
1855
1861
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1856
|
-
}),
|
|
1862
|
+
}), Kn = e.object({
|
|
1857
1863
|
country_code: e.string().length(2),
|
|
1858
1864
|
city_name: e.string(),
|
|
1859
1865
|
latitude: e.string(),
|
|
1860
1866
|
longitude: e.string(),
|
|
1861
1867
|
time_zone: e.string(),
|
|
1862
1868
|
continent_code: e.string()
|
|
1863
|
-
}),
|
|
1864
|
-
type:
|
|
1869
|
+
}), qn = e.object({
|
|
1870
|
+
type: Bn,
|
|
1865
1871
|
date: e.string(),
|
|
1866
1872
|
description: e.string().optional(),
|
|
1867
1873
|
ip: e.string().optional(),
|
|
@@ -1879,58 +1885,58 @@ var Hn = e.object({
|
|
|
1879
1885
|
strategy: e.string().optional(),
|
|
1880
1886
|
strategy_type: e.string().optional(),
|
|
1881
1887
|
hostname: e.string().optional(),
|
|
1882
|
-
auth0_client:
|
|
1888
|
+
auth0_client: Gn.optional(),
|
|
1883
1889
|
log_id: e.string().optional(),
|
|
1884
|
-
location_info:
|
|
1885
|
-
}),
|
|
1890
|
+
location_info: Kn.optional()
|
|
1891
|
+
}), Jn = qn.extend({ log_id: e.string() }), Yn = e.enum([
|
|
1886
1892
|
"http",
|
|
1887
1893
|
"eventbridge",
|
|
1888
1894
|
"eventgrid",
|
|
1889
1895
|
"splunk",
|
|
1890
1896
|
"datadog",
|
|
1891
1897
|
"sumo"
|
|
1892
|
-
]),
|
|
1898
|
+
]), U = e.enum([
|
|
1893
1899
|
"active",
|
|
1894
1900
|
"paused",
|
|
1895
1901
|
"suspended"
|
|
1896
|
-
]),
|
|
1902
|
+
]), Xn = e.object({
|
|
1897
1903
|
type: e.string(),
|
|
1898
1904
|
name: e.string()
|
|
1899
|
-
}),
|
|
1905
|
+
}), Zn = e.object({
|
|
1900
1906
|
name: e.string(),
|
|
1901
|
-
type:
|
|
1902
|
-
status:
|
|
1907
|
+
type: Yn,
|
|
1908
|
+
status: U.optional(),
|
|
1903
1909
|
sink: e.record(e.string(), e.unknown()),
|
|
1904
|
-
filters: e.array(
|
|
1910
|
+
filters: e.array(Xn).optional(),
|
|
1905
1911
|
isPriority: e.boolean().optional()
|
|
1906
|
-
}),
|
|
1912
|
+
}), Qn = Zn.extend({
|
|
1907
1913
|
id: e.string(),
|
|
1908
|
-
status:
|
|
1914
|
+
status: U,
|
|
1909
1915
|
created_at: e.string().optional(),
|
|
1910
1916
|
updated_at: e.string().optional()
|
|
1911
|
-
}),
|
|
1917
|
+
}), $n = e.enum([
|
|
1912
1918
|
"auth0",
|
|
1913
1919
|
"cognito",
|
|
1914
1920
|
"okta",
|
|
1915
1921
|
"oidc"
|
|
1916
|
-
]),
|
|
1922
|
+
]), W = e.object({
|
|
1917
1923
|
domain: e.string(),
|
|
1918
1924
|
client_id: e.string(),
|
|
1919
1925
|
client_secret: e.string(),
|
|
1920
1926
|
audience: e.string().optional(),
|
|
1921
1927
|
scope: e.string().optional()
|
|
1922
|
-
}),
|
|
1928
|
+
}), er = e.object({
|
|
1923
1929
|
id: e.string().optional(),
|
|
1924
1930
|
name: e.string(),
|
|
1925
|
-
provider:
|
|
1931
|
+
provider: $n,
|
|
1926
1932
|
connection: e.string(),
|
|
1927
1933
|
enabled: e.boolean().default(!0),
|
|
1928
|
-
credentials:
|
|
1929
|
-
}),
|
|
1934
|
+
credentials: W
|
|
1935
|
+
}), tr = e.object({
|
|
1930
1936
|
id: e.string(),
|
|
1931
1937
|
created_at: e.string(),
|
|
1932
1938
|
updated_at: e.string()
|
|
1933
|
-
}).extend(
|
|
1939
|
+
}).extend(er.shape), nr = e.object({
|
|
1934
1940
|
enabled: e.boolean().optional(),
|
|
1935
1941
|
shields: e.array(e.string()).optional(),
|
|
1936
1942
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1939,13 +1945,13 @@ var Hn = e.object({
|
|
|
1939
1945
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1940
1946
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1941
1947
|
}).optional()
|
|
1942
|
-
}),
|
|
1948
|
+
}), rr = e.object({
|
|
1943
1949
|
enabled: e.boolean().optional(),
|
|
1944
1950
|
shields: e.array(e.string()).optional(),
|
|
1945
1951
|
allowlist: e.array(e.string()).optional(),
|
|
1946
1952
|
mode: e.string().optional(),
|
|
1947
1953
|
max_attempts: e.number().optional()
|
|
1948
|
-
}),
|
|
1954
|
+
}), ir = e.object({
|
|
1949
1955
|
enabled: e.boolean().optional(),
|
|
1950
1956
|
shields: e.array(e.string()).optional(),
|
|
1951
1957
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1959,28 +1965,28 @@ var Hn = e.object({
|
|
|
1959
1965
|
rate: e.number().optional()
|
|
1960
1966
|
}).optional()
|
|
1961
1967
|
}).optional()
|
|
1962
|
-
}),
|
|
1963
|
-
breached_password_detection:
|
|
1964
|
-
brute_force_protection:
|
|
1965
|
-
suspicious_ip_throttling:
|
|
1966
|
-
}),
|
|
1968
|
+
}), ar = e.object({
|
|
1969
|
+
breached_password_detection: nr.optional(),
|
|
1970
|
+
brute_force_protection: rr.optional(),
|
|
1971
|
+
suspicious_ip_throttling: ir.optional()
|
|
1972
|
+
}), or = e.object({
|
|
1967
1973
|
id: e.string().optional(),
|
|
1968
1974
|
user_id: e.string(),
|
|
1969
1975
|
password: e.string(),
|
|
1970
1976
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1971
1977
|
is_current: e.boolean().default(!0)
|
|
1972
|
-
}),
|
|
1978
|
+
}), sr = or.extend({
|
|
1973
1979
|
id: e.string(),
|
|
1974
1980
|
created_at: e.string(),
|
|
1975
1981
|
updated_at: e.string()
|
|
1976
|
-
}),
|
|
1982
|
+
}), cr = e.object({
|
|
1977
1983
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1978
1984
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1979
1985
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1980
1986
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1981
1987
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1982
1988
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1983
|
-
}),
|
|
1989
|
+
}), lr = e.object({
|
|
1984
1990
|
id: e.string(),
|
|
1985
1991
|
revoked_at: e.string().optional(),
|
|
1986
1992
|
used_at: e.string().optional(),
|
|
@@ -1988,14 +1994,14 @@ var Hn = e.object({
|
|
|
1988
1994
|
expires_at: e.string().optional(),
|
|
1989
1995
|
login_session_id: e.string(),
|
|
1990
1996
|
idle_expires_at: e.string().optional(),
|
|
1991
|
-
device:
|
|
1997
|
+
device: cr.describe("Metadata related to the device used in the session"),
|
|
1992
1998
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1993
|
-
}),
|
|
1999
|
+
}), ur = e.object({
|
|
1994
2000
|
created_at: e.string(),
|
|
1995
2001
|
updated_at: e.string(),
|
|
1996
2002
|
authenticated_at: e.string(),
|
|
1997
2003
|
last_interaction_at: e.string()
|
|
1998
|
-
}).extend(
|
|
2004
|
+
}).extend(lr.shape), dr = e.object({
|
|
1999
2005
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
2000
2006
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
2001
2007
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -2011,7 +2017,7 @@ var Hn = e.object({
|
|
|
2011
2017
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
2012
2018
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
2013
2019
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
2014
|
-
}),
|
|
2020
|
+
}), fr = e.object({
|
|
2015
2021
|
id: e.string().optional(),
|
|
2016
2022
|
audience: e.string().optional(),
|
|
2017
2023
|
friendly_name: e.string(),
|
|
@@ -2129,7 +2135,7 @@ var Hn = e.object({
|
|
|
2129
2135
|
"shared_planetscale"
|
|
2130
2136
|
]).optional(),
|
|
2131
2137
|
d1_database_id: e.string().max(64).optional(),
|
|
2132
|
-
attack_protection:
|
|
2138
|
+
attack_protection: ar.optional(),
|
|
2133
2139
|
mfa: e.object({
|
|
2134
2140
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2135
2141
|
factors: e.object({
|
|
@@ -2156,38 +2162,38 @@ var Hn = e.object({
|
|
|
2156
2162
|
}).optional(),
|
|
2157
2163
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2158
2164
|
}).optional()
|
|
2159
|
-
}),
|
|
2165
|
+
}), pr = e.object({
|
|
2160
2166
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2161
2167
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2162
|
-
}).extend(
|
|
2168
|
+
}).extend(fr.shape).extend({
|
|
2163
2169
|
id: e.string(),
|
|
2164
2170
|
is_control_plane: e.boolean().optional()
|
|
2165
|
-
}),
|
|
2171
|
+
}), mr = e.enum([
|
|
2166
2172
|
"provision",
|
|
2167
2173
|
"seed",
|
|
2168
2174
|
"upgrade",
|
|
2169
2175
|
"backup",
|
|
2170
2176
|
"deprovision",
|
|
2171
2177
|
"users_import"
|
|
2172
|
-
]),
|
|
2178
|
+
]), hr = e.enum([
|
|
2173
2179
|
"pending",
|
|
2174
2180
|
"running",
|
|
2175
2181
|
"succeeded",
|
|
2176
2182
|
"failed",
|
|
2177
2183
|
"cancelled"
|
|
2178
|
-
]),
|
|
2184
|
+
]), gr = e.string().max(64), _r = ["inline", "cloudflare-workflows"], vr = e.object({
|
|
2179
2185
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2180
2186
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2181
|
-
kind:
|
|
2182
|
-
engine:
|
|
2187
|
+
kind: mr,
|
|
2188
|
+
engine: gr,
|
|
2183
2189
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2184
2190
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2185
2191
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2186
2192
|
initiated_by: e.string().max(255).nullable().optional(),
|
|
2187
2193
|
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
2188
|
-
}),
|
|
2194
|
+
}), yr = vr.extend({
|
|
2189
2195
|
id: e.string(),
|
|
2190
|
-
status:
|
|
2196
|
+
status: hr,
|
|
2191
2197
|
current_step: e.string().max(255).nullable().optional(),
|
|
2192
2198
|
error: e.string().nullable().optional(),
|
|
2193
2199
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
@@ -2196,7 +2202,7 @@ var Hn = e.object({
|
|
|
2196
2202
|
created_at: e.string(),
|
|
2197
2203
|
updated_at: e.string(),
|
|
2198
2204
|
finished_at: e.string().nullable().optional()
|
|
2199
|
-
}),
|
|
2205
|
+
}), br = yr.pick({
|
|
2200
2206
|
status: !0,
|
|
2201
2207
|
current_step: !0,
|
|
2202
2208
|
engine_instance_id: !0,
|
|
@@ -2207,87 +2213,87 @@ var Hn = e.object({
|
|
|
2207
2213
|
claimed_by: !0,
|
|
2208
2214
|
claim_expires_at: !0,
|
|
2209
2215
|
finished_at: !0
|
|
2210
|
-
}).partial(),
|
|
2216
|
+
}).partial(), xr = e.enum([
|
|
2211
2217
|
"started",
|
|
2212
2218
|
"succeeded",
|
|
2213
2219
|
"failed",
|
|
2214
2220
|
"retried",
|
|
2215
2221
|
"skipped",
|
|
2216
2222
|
"reconciled"
|
|
2217
|
-
]),
|
|
2223
|
+
]), Sr = e.object({
|
|
2218
2224
|
operation_id: e.string().max(255),
|
|
2219
2225
|
step: e.string().max(255),
|
|
2220
|
-
outcome:
|
|
2226
|
+
outcome: xr,
|
|
2221
2227
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2222
2228
|
attempt: e.number().int().min(1).default(1)
|
|
2223
|
-
}),
|
|
2229
|
+
}), Cr = Sr.extend({
|
|
2224
2230
|
id: e.string(),
|
|
2225
2231
|
created_at: e.string()
|
|
2226
|
-
}),
|
|
2232
|
+
}), G = e.enum([
|
|
2227
2233
|
"pending",
|
|
2228
2234
|
"inserted",
|
|
2229
2235
|
"updated",
|
|
2230
2236
|
"failed",
|
|
2231
2237
|
"skipped"
|
|
2232
|
-
]),
|
|
2238
|
+
]), wr = [
|
|
2233
2239
|
"inserted",
|
|
2234
2240
|
"updated",
|
|
2235
2241
|
"failed",
|
|
2236
2242
|
"skipped"
|
|
2237
|
-
],
|
|
2243
|
+
], Tr = e.object({
|
|
2238
2244
|
operation_id: e.string().max(255),
|
|
2239
2245
|
seq: e.number().int().min(0),
|
|
2240
2246
|
payload: e.record(e.string(), e.unknown()),
|
|
2241
|
-
status:
|
|
2247
|
+
status: G.default("pending"),
|
|
2242
2248
|
error_code: e.string().max(64).nullable().optional(),
|
|
2243
2249
|
error_message: e.string().nullable().optional(),
|
|
2244
2250
|
error_path: e.string().max(255).nullable().optional(),
|
|
2245
2251
|
entity_id: e.string().max(255).nullable().optional()
|
|
2246
|
-
}),
|
|
2247
|
-
status:
|
|
2252
|
+
}), Er = Tr.extend({
|
|
2253
|
+
status: G,
|
|
2248
2254
|
created_at: e.string(),
|
|
2249
2255
|
updated_at: e.string()
|
|
2250
|
-
}),
|
|
2256
|
+
}), Dr = e.object({
|
|
2251
2257
|
seq: e.number().int().min(0),
|
|
2252
|
-
status:
|
|
2258
|
+
status: G,
|
|
2253
2259
|
error_code: e.string().max(64).nullable().optional(),
|
|
2254
2260
|
error_message: e.string().nullable().optional(),
|
|
2255
2261
|
error_path: e.string().max(255).nullable().optional(),
|
|
2256
2262
|
entity_id: e.string().max(255).nullable().optional()
|
|
2257
|
-
}),
|
|
2263
|
+
}), Or = e.enum([
|
|
2258
2264
|
"upgrade",
|
|
2259
2265
|
"reseed",
|
|
2260
2266
|
"backup"
|
|
2261
|
-
]),
|
|
2267
|
+
]), kr = e.enum([
|
|
2262
2268
|
"pending",
|
|
2263
2269
|
"canary",
|
|
2264
2270
|
"rolling",
|
|
2265
2271
|
"paused",
|
|
2266
2272
|
"done",
|
|
2267
2273
|
"failed"
|
|
2268
|
-
]),
|
|
2269
|
-
kind:
|
|
2274
|
+
]), Ar = e.object({
|
|
2275
|
+
kind: Or,
|
|
2270
2276
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2271
2277
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2272
2278
|
wave_size: e.number().int().min(1).default(10),
|
|
2273
2279
|
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2274
2280
|
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2275
2281
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2276
|
-
}),
|
|
2282
|
+
}), jr = Ar.extend({
|
|
2277
2283
|
id: e.string(),
|
|
2278
|
-
status:
|
|
2284
|
+
status: kr,
|
|
2279
2285
|
created_at: e.string(),
|
|
2280
2286
|
updated_at: e.string(),
|
|
2281
2287
|
finished_at: e.string().nullable().optional()
|
|
2282
|
-
}),
|
|
2288
|
+
}), Mr = jr.pick({
|
|
2283
2289
|
status: !0,
|
|
2284
2290
|
wave_size: !0,
|
|
2285
2291
|
canary_tenant_ids: !0,
|
|
2286
2292
|
filter: !0,
|
|
2287
2293
|
finished_at: !0
|
|
2288
|
-
}).partial(),
|
|
2294
|
+
}).partial(), Nr = /* @__PURE__ */ function(e) {
|
|
2289
2295
|
return e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e.TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange", e;
|
|
2290
|
-
}({}),
|
|
2296
|
+
}({}), Pr = e.object({
|
|
2291
2297
|
access_token: e.string(),
|
|
2292
2298
|
id_token: e.string().optional(),
|
|
2293
2299
|
scope: e.string().optional(),
|
|
@@ -2302,7 +2308,7 @@ e.object({
|
|
|
2302
2308
|
});
|
|
2303
2309
|
//#endregion
|
|
2304
2310
|
//#region src/types/Theme.ts
|
|
2305
|
-
var
|
|
2311
|
+
var Fr = e.object({
|
|
2306
2312
|
button_border_radius: e.number(),
|
|
2307
2313
|
button_border_weight: e.number(),
|
|
2308
2314
|
buttons_style: e.enum([
|
|
@@ -2320,7 +2326,7 @@ var Nr = e.object({
|
|
|
2320
2326
|
show_widget_shadow: e.boolean(),
|
|
2321
2327
|
widget_border_weight: e.number(),
|
|
2322
2328
|
widget_corner_radius: e.number()
|
|
2323
|
-
}),
|
|
2329
|
+
}), Ir = e.object({
|
|
2324
2330
|
base_focus_color: e.string(),
|
|
2325
2331
|
base_hover_color: e.string(),
|
|
2326
2332
|
body_text: e.string(),
|
|
@@ -2344,20 +2350,20 @@ var Nr = e.object({
|
|
|
2344
2350
|
success: e.string(),
|
|
2345
2351
|
widget_background: e.string(),
|
|
2346
2352
|
widget_border: e.string()
|
|
2347
|
-
}),
|
|
2353
|
+
}), K = e.object({
|
|
2348
2354
|
bold: e.boolean(),
|
|
2349
2355
|
size: e.number()
|
|
2350
|
-
}),
|
|
2351
|
-
body_text:
|
|
2352
|
-
buttons_text:
|
|
2356
|
+
}), Lr = e.object({
|
|
2357
|
+
body_text: K,
|
|
2358
|
+
buttons_text: K,
|
|
2353
2359
|
font_url: e.string(),
|
|
2354
|
-
input_labels:
|
|
2355
|
-
links:
|
|
2360
|
+
input_labels: K,
|
|
2361
|
+
links: K,
|
|
2356
2362
|
links_style: e.enum(["normal", "underlined"]),
|
|
2357
2363
|
reference_text_size: e.number(),
|
|
2358
|
-
subtitle:
|
|
2359
|
-
title:
|
|
2360
|
-
}),
|
|
2364
|
+
subtitle: K,
|
|
2365
|
+
title: K
|
|
2366
|
+
}), Rr = e.object({
|
|
2361
2367
|
background_color: e.string(),
|
|
2362
2368
|
background_image_url: e.string(),
|
|
2363
2369
|
page_layout: e.enum([
|
|
@@ -2370,7 +2376,7 @@ var Nr = e.object({
|
|
|
2370
2376
|
"chip",
|
|
2371
2377
|
"none"
|
|
2372
2378
|
]).optional()
|
|
2373
|
-
}),
|
|
2379
|
+
}), zr = e.object({
|
|
2374
2380
|
header_text_alignment: e.enum([
|
|
2375
2381
|
"center",
|
|
2376
2382
|
"left",
|
|
@@ -2385,72 +2391,115 @@ var Nr = e.object({
|
|
|
2385
2391
|
]),
|
|
2386
2392
|
logo_url: e.string(),
|
|
2387
2393
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2388
|
-
}),
|
|
2389
|
-
borders:
|
|
2390
|
-
colors:
|
|
2394
|
+
}), Br = e.object({
|
|
2395
|
+
borders: Fr,
|
|
2396
|
+
colors: Ir,
|
|
2391
2397
|
displayName: e.string(),
|
|
2392
|
-
fonts:
|
|
2393
|
-
page_background:
|
|
2394
|
-
widget:
|
|
2395
|
-
}),
|
|
2398
|
+
fonts: Lr,
|
|
2399
|
+
page_background: Rr,
|
|
2400
|
+
widget: zr
|
|
2401
|
+
}), Vr = Br.extend({ themeId: e.string() }), Hr = e.object({
|
|
2396
2402
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2397
2403
|
identifier_first: e.boolean().default(!0),
|
|
2398
2404
|
password_first: e.boolean().default(!1),
|
|
2399
2405
|
show_last_used_connection: e.boolean().default(!1),
|
|
2400
2406
|
webauthn_platform_first_factor: e.boolean()
|
|
2401
|
-
}),
|
|
2407
|
+
}), Ur = e.object({
|
|
2402
2408
|
hosts: e.array(e.string()).optional(),
|
|
2403
2409
|
methods: e.array(e.string()).optional(),
|
|
2404
2410
|
path: e.string().default("/*"),
|
|
2405
2411
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2406
2412
|
query: e.record(e.string(), e.string()).optional()
|
|
2407
|
-
}),
|
|
2413
|
+
}), Wr = e.object({
|
|
2408
2414
|
type: e.string(),
|
|
2409
2415
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2410
|
-
}),
|
|
2416
|
+
}), q = e.object({
|
|
2411
2417
|
id: e.string().optional(),
|
|
2412
2418
|
custom_domain_id: e.string(),
|
|
2413
2419
|
priority: e.number().int().default(100),
|
|
2414
|
-
match:
|
|
2415
|
-
handlers: e.array(
|
|
2416
|
-
}),
|
|
2420
|
+
match: Ur,
|
|
2421
|
+
handlers: e.array(Wr).min(1)
|
|
2422
|
+
}), Gr = q.extend({
|
|
2417
2423
|
id: e.string(),
|
|
2418
2424
|
tenant_id: e.string(),
|
|
2419
2425
|
created_at: e.string(),
|
|
2420
2426
|
updated_at: e.string()
|
|
2421
|
-
}),
|
|
2427
|
+
}), Kr = q.partial().omit({
|
|
2422
2428
|
id: !0,
|
|
2423
2429
|
custom_domain_id: !0
|
|
2424
|
-
}),
|
|
2430
|
+
}), qr = "custom_authentication", Jr = [
|
|
2431
|
+
"urn:ietf:params:oauth:",
|
|
2432
|
+
"urn:auth0",
|
|
2433
|
+
"urn:okta",
|
|
2434
|
+
"http://auth0.com",
|
|
2435
|
+
"https://auth0.com",
|
|
2436
|
+
"http://okta.com",
|
|
2437
|
+
"https://okta.com"
|
|
2438
|
+
], J = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Jr.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Yr = e.enum([
|
|
2439
|
+
"RS256",
|
|
2440
|
+
"RS384",
|
|
2441
|
+
"RS512",
|
|
2442
|
+
"ES256",
|
|
2443
|
+
"ES384",
|
|
2444
|
+
"ES512"
|
|
2445
|
+
]), Xr = e.discriminatedUnion("type", [e.object({
|
|
2446
|
+
type: e.literal("connection"),
|
|
2447
|
+
connection: e.string().min(1),
|
|
2448
|
+
create_if_not_exists: e.boolean().default(!0),
|
|
2449
|
+
trust_email_verified: e.boolean().default(!1)
|
|
2450
|
+
}), e.object({ type: e.literal("user_id") })]), Y = e.object({
|
|
2451
|
+
issuer: e.string().min(1).max(2048),
|
|
2452
|
+
jwks: Pn.optional(),
|
|
2453
|
+
jwks_uri: e.string().url().optional(),
|
|
2454
|
+
audience: e.array(e.string().min(1)).min(1).optional(),
|
|
2455
|
+
algorithms: e.array(Yr).min(1).optional(),
|
|
2456
|
+
max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
|
|
2457
|
+
require_jti: e.boolean().default(!0),
|
|
2458
|
+
user_mapping: Xr
|
|
2459
|
+
}), Zr = e.object({
|
|
2460
|
+
name: e.string().min(1).max(255),
|
|
2461
|
+
subject_token_type: J,
|
|
2462
|
+
action_id: e.string().min(1).optional(),
|
|
2463
|
+
type: e.literal(qr),
|
|
2464
|
+
jwt_verification: Y.optional()
|
|
2465
|
+
}), Qr = Zr.extend({
|
|
2466
|
+
id: e.string(),
|
|
2467
|
+
created_at: e.string(),
|
|
2468
|
+
updated_at: e.string()
|
|
2469
|
+
}), $r = e.object({
|
|
2470
|
+
name: e.string().min(1).max(255).optional(),
|
|
2471
|
+
subject_token_type: J.optional(),
|
|
2472
|
+
jwt_verification: Y.optional()
|
|
2473
|
+
}), ei = e.object({
|
|
2425
2474
|
scim: e.string(),
|
|
2426
2475
|
auth0: e.string()
|
|
2427
|
-
}),
|
|
2476
|
+
}), ti = e.object({
|
|
2428
2477
|
connection_id: e.string(),
|
|
2429
2478
|
user_id_attribute: e.string().default("externalId"),
|
|
2430
|
-
mapping: e.array(
|
|
2431
|
-
}),
|
|
2479
|
+
mapping: e.array(ei).default([])
|
|
2480
|
+
}), ni = e.object({
|
|
2432
2481
|
created_at: e.string(),
|
|
2433
2482
|
updated_at: e.string()
|
|
2434
|
-
}).extend(
|
|
2483
|
+
}).extend(ti.shape), ri = e.object({
|
|
2435
2484
|
token_id: e.string(),
|
|
2436
2485
|
connection_id: e.string(),
|
|
2437
2486
|
token_hash: e.string(),
|
|
2438
2487
|
scopes: e.array(e.string()).default([]),
|
|
2439
2488
|
valid_until: e.string().optional()
|
|
2440
|
-
}),
|
|
2489
|
+
}), ii = e.object({
|
|
2441
2490
|
created_at: e.string(),
|
|
2442
2491
|
last_used_at: e.string().optional()
|
|
2443
|
-
}).extend(
|
|
2492
|
+
}).extend(ri.shape), ai = e.object({
|
|
2444
2493
|
connection_id: e.string(),
|
|
2445
2494
|
external_id: e.string(),
|
|
2446
2495
|
user_id: e.string()
|
|
2447
|
-
}),
|
|
2496
|
+
}), oi = e.object({ created_at: e.string() }).extend(ai.shape), si = e.object({
|
|
2448
2497
|
name: e.string(),
|
|
2449
2498
|
enabled: e.boolean().optional().default(!0),
|
|
2450
2499
|
default_from_address: e.string().optional(),
|
|
2451
2500
|
credentials: e.record(e.string(), e.unknown()),
|
|
2452
2501
|
settings: e.object({}).optional()
|
|
2453
|
-
}),
|
|
2502
|
+
}), ci = e.enum([
|
|
2454
2503
|
"verify_email",
|
|
2455
2504
|
"verify_email_by_code",
|
|
2456
2505
|
"reset_email",
|
|
@@ -2463,8 +2512,8 @@ var Nr = e.object({
|
|
|
2463
2512
|
"change_password",
|
|
2464
2513
|
"password_reset",
|
|
2465
2514
|
"user_invitation"
|
|
2466
|
-
]),
|
|
2467
|
-
template:
|
|
2515
|
+
]), li = e.object({
|
|
2516
|
+
template: ci,
|
|
2468
2517
|
body: e.string(),
|
|
2469
2518
|
from: e.string(),
|
|
2470
2519
|
subject: e.string(),
|
|
@@ -2473,19 +2522,19 @@ var Nr = e.object({
|
|
|
2473
2522
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2474
2523
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2475
2524
|
enabled: e.boolean().default(!0)
|
|
2476
|
-
}),
|
|
2525
|
+
}), ui = e.object({
|
|
2477
2526
|
id: e.string(),
|
|
2478
2527
|
login_id: e.string(),
|
|
2479
2528
|
session_id: e.string().optional(),
|
|
2480
2529
|
organization: e.string().optional(),
|
|
2481
2530
|
auth_connection: e.string().optional(),
|
|
2482
|
-
auth_strategy:
|
|
2531
|
+
auth_strategy: V.optional(),
|
|
2483
2532
|
user_id: e.string(),
|
|
2484
2533
|
client_id: e.string(),
|
|
2485
2534
|
expires_at: e.string().optional(),
|
|
2486
2535
|
idle_expires_at: e.string().optional(),
|
|
2487
2536
|
last_exchanged_at: e.string().optional(),
|
|
2488
|
-
device:
|
|
2537
|
+
device: cr,
|
|
2489
2538
|
resource_servers: e.array(e.object({
|
|
2490
2539
|
audience: e.string(),
|
|
2491
2540
|
scopes: e.string()
|
|
@@ -2496,19 +2545,19 @@ var Nr = e.object({
|
|
|
2496
2545
|
family_id: e.string().optional(),
|
|
2497
2546
|
rotated_to: e.string().optional(),
|
|
2498
2547
|
rotated_at: e.string().optional()
|
|
2499
|
-
}),
|
|
2548
|
+
}), di = ui.extend({
|
|
2500
2549
|
created_at: e.string(),
|
|
2501
2550
|
revoked_at: e.string().optional()
|
|
2502
|
-
}),
|
|
2551
|
+
}), fi = e.object({
|
|
2503
2552
|
to: e.string(),
|
|
2504
2553
|
message: e.string()
|
|
2505
|
-
}),
|
|
2554
|
+
}), pi = e.object({
|
|
2506
2555
|
name: e.string(),
|
|
2507
2556
|
options: e.object({})
|
|
2508
|
-
}),
|
|
2557
|
+
}), mi = e.object({
|
|
2509
2558
|
value: e.string(),
|
|
2510
2559
|
description: e.string().optional()
|
|
2511
|
-
}),
|
|
2560
|
+
}), hi = e.object({
|
|
2512
2561
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2513
2562
|
enforce_policies: e.boolean().optional(),
|
|
2514
2563
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2516,11 +2565,11 @@ var Nr = e.object({
|
|
|
2516
2565
|
persist_client_authorization: e.boolean().optional(),
|
|
2517
2566
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2518
2567
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2519
|
-
}),
|
|
2568
|
+
}), gi = e.object({
|
|
2520
2569
|
id: e.string().optional(),
|
|
2521
2570
|
name: e.string(),
|
|
2522
2571
|
identifier: e.string(),
|
|
2523
|
-
scopes: e.array(
|
|
2572
|
+
scopes: e.array(mi).optional(),
|
|
2524
2573
|
signing_alg: e.string().optional(),
|
|
2525
2574
|
signing_secret: e.string().optional(),
|
|
2526
2575
|
token_lifetime: e.number().default(86400),
|
|
@@ -2528,37 +2577,37 @@ var Nr = e.object({
|
|
|
2528
2577
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2529
2578
|
allow_offline_access: e.boolean().optional(),
|
|
2530
2579
|
verificationKey: e.string().optional(),
|
|
2531
|
-
options:
|
|
2580
|
+
options: hi.optional(),
|
|
2532
2581
|
is_system: e.boolean().optional(),
|
|
2533
2582
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2534
|
-
}),
|
|
2583
|
+
}), _i = gi.extend({
|
|
2535
2584
|
created_at: e.string().optional(),
|
|
2536
2585
|
updated_at: e.string().optional()
|
|
2537
|
-
}),
|
|
2586
|
+
}), vi = e.array(_i), yi = e.object({
|
|
2538
2587
|
role_id: e.string(),
|
|
2539
2588
|
resource_server_identifier: e.string(),
|
|
2540
2589
|
permission_name: e.string()
|
|
2541
|
-
}),
|
|
2590
|
+
}), bi = yi.extend({ created_at: e.string() }), xi = e.array(bi), Si = e.object({
|
|
2542
2591
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2543
2592
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2544
2593
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2545
2594
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2546
|
-
}),
|
|
2595
|
+
}), Ci = Si.extend({ id: e.string() }), wi = e.object({
|
|
2547
2596
|
user_id: e.string(),
|
|
2548
2597
|
last_login: e.string().optional(),
|
|
2549
2598
|
last_ip: e.string().optional(),
|
|
2550
2599
|
login_count: e.number().default(0),
|
|
2551
2600
|
failed_logins: e.array(e.string()).optional(),
|
|
2552
2601
|
last_password_reset: e.string().optional()
|
|
2553
|
-
}),
|
|
2602
|
+
}), Ti = e.object({
|
|
2554
2603
|
user_id: e.string(),
|
|
2555
2604
|
resource_server_identifier: e.string(),
|
|
2556
2605
|
permission_name: e.string(),
|
|
2557
2606
|
organization_id: e.string().optional()
|
|
2558
|
-
}),
|
|
2607
|
+
}), Ei = Ti.extend({
|
|
2559
2608
|
tenant_id: e.string(),
|
|
2560
2609
|
created_at: e.string().optional()
|
|
2561
|
-
}),
|
|
2610
|
+
}), Di = e.array(Ei), Oi = e.object({
|
|
2562
2611
|
user_id: e.string(),
|
|
2563
2612
|
resource_server_identifier: e.string(),
|
|
2564
2613
|
resource_server_name: e.string(),
|
|
@@ -2566,65 +2615,65 @@ var Nr = e.object({
|
|
|
2566
2615
|
description: e.string().nullable().optional(),
|
|
2567
2616
|
created_at: e.string().optional(),
|
|
2568
2617
|
organization_id: e.string().optional()
|
|
2569
|
-
}),
|
|
2618
|
+
}), ki = e.array(Oi), Ai = e.object({
|
|
2570
2619
|
user_id: e.string(),
|
|
2571
2620
|
role_id: e.string(),
|
|
2572
2621
|
organization_id: e.string().optional()
|
|
2573
|
-
}),
|
|
2622
|
+
}), ji = Ai.extend({
|
|
2574
2623
|
tenant_id: e.string(),
|
|
2575
2624
|
created_at: e.string().optional()
|
|
2576
|
-
}),
|
|
2625
|
+
}), Mi = e.array(ji), Ni = e.object({
|
|
2577
2626
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2578
2627
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2579
2628
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2580
2629
|
is_system: e.boolean().optional(),
|
|
2581
2630
|
metadata: e.record(e.string(), e.any()).optional().openapi({ description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios." })
|
|
2582
|
-
}),
|
|
2631
|
+
}), Pi = Ni.extend({
|
|
2583
2632
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2584
2633
|
created_at: e.string().optional(),
|
|
2585
2634
|
updated_at: e.string().optional()
|
|
2586
|
-
}),
|
|
2635
|
+
}), Fi = e.array(Pi), Ii = e.object({
|
|
2587
2636
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2588
2637
|
colors: e.object({
|
|
2589
2638
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2590
2639
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2591
2640
|
}).optional()
|
|
2592
|
-
}).optional(),
|
|
2641
|
+
}).optional(), Li = e.object({
|
|
2593
2642
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2594
2643
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2595
2644
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2596
2645
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2597
|
-
}),
|
|
2646
|
+
}), Ri = e.object({ client_credentials: e.object({
|
|
2598
2647
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2599
2648
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2600
2649
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2601
|
-
}).optional() }).optional(),
|
|
2650
|
+
}).optional() }).optional(), zi = e.object({
|
|
2602
2651
|
id: e.string().optional(),
|
|
2603
2652
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
|
|
2604
2653
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2605
|
-
branding:
|
|
2654
|
+
branding: Ii,
|
|
2606
2655
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2607
|
-
enabled_connections: e.array(
|
|
2608
|
-
token_quota:
|
|
2609
|
-
}),
|
|
2656
|
+
enabled_connections: e.array(Li).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2657
|
+
token_quota: Ri
|
|
2658
|
+
}), Bi = zi.extend(t.shape).extend({
|
|
2610
2659
|
id: e.string(),
|
|
2611
2660
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2612
|
-
}),
|
|
2661
|
+
}), Vi = e.object({
|
|
2613
2662
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2614
2663
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2615
2664
|
show_as_button: e.boolean().optional().default(!0),
|
|
2616
2665
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2617
|
-
}),
|
|
2666
|
+
}), Hi = Vi.extend({
|
|
2618
2667
|
connection: e.object({
|
|
2619
2668
|
name: e.string().optional(),
|
|
2620
2669
|
strategy: e.string().optional()
|
|
2621
2670
|
}).optional(),
|
|
2622
2671
|
created_at: e.string().optional(),
|
|
2623
2672
|
updated_at: e.string().optional()
|
|
2624
|
-
}),
|
|
2673
|
+
}), Ui = e.array(Hi), Wi = e.object({
|
|
2625
2674
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2626
2675
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2627
|
-
}),
|
|
2676
|
+
}), Gi = Wi.extend(t.shape).extend({ id: e.string() }), Ki = e.object({
|
|
2628
2677
|
idle_session_lifetime: e.number().default(72),
|
|
2629
2678
|
session_lifetime: e.number().default(168),
|
|
2630
2679
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2703,7 +2752,7 @@ var Nr = e.object({
|
|
|
2703
2752
|
}).optional(),
|
|
2704
2753
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2705
2754
|
}).optional()
|
|
2706
|
-
}),
|
|
2755
|
+
}), qi = e.object({
|
|
2707
2756
|
date: e.string().openapi({
|
|
2708
2757
|
description: "Date these events occurred in ISO 8601 format",
|
|
2709
2758
|
example: "2025-12-19"
|
|
@@ -2728,10 +2777,10 @@ var Nr = e.object({
|
|
|
2728
2777
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2729
2778
|
example: "2025-12-19T00:00:00.000Z"
|
|
2730
2779
|
})
|
|
2731
|
-
}),
|
|
2780
|
+
}), Ji = e.number().openapi({
|
|
2732
2781
|
description: "Number of active users in the last 30 days",
|
|
2733
2782
|
example: 1234
|
|
2734
|
-
}),
|
|
2783
|
+
}), Yi = e.enum([
|
|
2735
2784
|
"active-users",
|
|
2736
2785
|
"logins",
|
|
2737
2786
|
"signups",
|
|
@@ -2743,64 +2792,64 @@ var Nr = e.object({
|
|
|
2743
2792
|
"mfa",
|
|
2744
2793
|
"email-verifications",
|
|
2745
2794
|
"codes-sent"
|
|
2746
|
-
]),
|
|
2795
|
+
]), Xi = e.enum([
|
|
2747
2796
|
"hour",
|
|
2748
2797
|
"day",
|
|
2749
2798
|
"week",
|
|
2750
2799
|
"month"
|
|
2751
|
-
]),
|
|
2800
|
+
]), Zi = e.enum([
|
|
2752
2801
|
"time",
|
|
2753
2802
|
"connection",
|
|
2754
2803
|
"client_id",
|
|
2755
2804
|
"user_type",
|
|
2756
2805
|
"event"
|
|
2757
|
-
]),
|
|
2806
|
+
]), Qi = e.enum([
|
|
2758
2807
|
"password",
|
|
2759
2808
|
"social",
|
|
2760
2809
|
"passwordless",
|
|
2761
2810
|
"enterprise"
|
|
2762
|
-
]),
|
|
2811
|
+
]), $i = e.object({
|
|
2763
2812
|
cohort: e.string(),
|
|
2764
2813
|
sessions: e.number(),
|
|
2765
2814
|
active: e.array(e.number())
|
|
2766
|
-
}),
|
|
2815
|
+
}), ea = e.object({
|
|
2767
2816
|
interval: e.literal("week"),
|
|
2768
2817
|
from: e.string(),
|
|
2769
2818
|
to: e.string(),
|
|
2770
|
-
cohorts: e.array(
|
|
2771
|
-
}),
|
|
2819
|
+
cohorts: e.array($i)
|
|
2820
|
+
}), ta = e.object({
|
|
2772
2821
|
cohort: e.string(),
|
|
2773
2822
|
tokens: e.number(),
|
|
2774
2823
|
active: e.array(e.number())
|
|
2775
|
-
}),
|
|
2824
|
+
}), na = e.object({
|
|
2776
2825
|
interval: e.literal("week"),
|
|
2777
2826
|
from: e.string(),
|
|
2778
2827
|
to: e.string(),
|
|
2779
|
-
cohorts: e.array(
|
|
2780
|
-
}),
|
|
2828
|
+
cohorts: e.array(ta)
|
|
2829
|
+
}), ra = e.object({
|
|
2781
2830
|
name: e.string(),
|
|
2782
2831
|
type: e.string()
|
|
2783
|
-
}),
|
|
2832
|
+
}), ia = e.object({
|
|
2784
2833
|
elapsed: e.number(),
|
|
2785
2834
|
rows_read: e.number().optional(),
|
|
2786
2835
|
bytes_read: e.number().optional()
|
|
2787
|
-
}),
|
|
2788
|
-
meta: e.array(
|
|
2836
|
+
}), aa = e.object({
|
|
2837
|
+
meta: e.array(ra),
|
|
2789
2838
|
data: e.array(e.record(e.string(), e.any())),
|
|
2790
2839
|
rows: e.number(),
|
|
2791
2840
|
rows_before_limit_at_least: e.number().optional(),
|
|
2792
|
-
statistics:
|
|
2793
|
-
}),
|
|
2841
|
+
statistics: ia.optional()
|
|
2842
|
+
}), oa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), sa = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2794
2843
|
type: "object",
|
|
2795
2844
|
additionalProperties: {
|
|
2796
2845
|
type: "object",
|
|
2797
2846
|
additionalProperties: { type: "string" }
|
|
2798
2847
|
}
|
|
2799
|
-
}),
|
|
2800
|
-
prompt:
|
|
2848
|
+
}), ca = e.object({
|
|
2849
|
+
prompt: oa,
|
|
2801
2850
|
language: e.string(),
|
|
2802
|
-
custom_text:
|
|
2803
|
-
}),
|
|
2851
|
+
custom_text: sa
|
|
2852
|
+
}), la = {
|
|
2804
2853
|
EMAIL: "email",
|
|
2805
2854
|
SMS: "sms",
|
|
2806
2855
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2816,17 +2865,17 @@ var Nr = e.object({
|
|
|
2816
2865
|
WAAD: "waad",
|
|
2817
2866
|
ADFS: "adfs",
|
|
2818
2867
|
OKTA: "okta"
|
|
2819
|
-
},
|
|
2868
|
+
}, ua = {
|
|
2820
2869
|
DATABASE: "database",
|
|
2821
2870
|
SOCIAL: "social",
|
|
2822
2871
|
PASSWORDLESS: "passwordless"
|
|
2823
|
-
},
|
|
2824
|
-
function
|
|
2825
|
-
return e === "auth0" || e ===
|
|
2872
|
+
}, da = "auth0";
|
|
2873
|
+
function fa(e) {
|
|
2874
|
+
return e === "auth0" || e === la.USERNAME_PASSWORD || e === "auth2";
|
|
2826
2875
|
}
|
|
2827
2876
|
//#endregion
|
|
2828
2877
|
//#region src/types/AuthenticationMethod.ts
|
|
2829
|
-
var
|
|
2878
|
+
var pa = e.enum([
|
|
2830
2879
|
"phone",
|
|
2831
2880
|
"totp",
|
|
2832
2881
|
"email",
|
|
@@ -2834,9 +2883,9 @@ var ia = e.enum([
|
|
|
2834
2883
|
"webauthn-roaming",
|
|
2835
2884
|
"webauthn-platform",
|
|
2836
2885
|
"passkey"
|
|
2837
|
-
]),
|
|
2886
|
+
]), ma = e.object({
|
|
2838
2887
|
user_id: e.string(),
|
|
2839
|
-
type:
|
|
2888
|
+
type: pa,
|
|
2840
2889
|
phone_number: e.string().optional(),
|
|
2841
2890
|
totp_secret: e.string().optional(),
|
|
2842
2891
|
credential_id: e.string().optional(),
|
|
@@ -2847,7 +2896,7 @@ var ia = e.enum([
|
|
|
2847
2896
|
friendly_name: e.string().optional(),
|
|
2848
2897
|
confirmed: e.boolean().default(!1)
|
|
2849
2898
|
});
|
|
2850
|
-
function
|
|
2899
|
+
function ha(t, n) {
|
|
2851
2900
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2852
2901
|
code: e.ZodIssueCode.custom,
|
|
2853
2902
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2870,15 +2919,15 @@ function oa(t, n) {
|
|
|
2870
2919
|
path: ["public_key"]
|
|
2871
2920
|
}));
|
|
2872
2921
|
}
|
|
2873
|
-
var
|
|
2922
|
+
var ga = ma.superRefine(ha), _a = ma.extend({
|
|
2874
2923
|
id: e.string(),
|
|
2875
2924
|
created_at: e.string(),
|
|
2876
2925
|
updated_at: e.string()
|
|
2877
|
-
}).superRefine(
|
|
2926
|
+
}).superRefine(ha), va = e.object({
|
|
2878
2927
|
id: e.string().optional(),
|
|
2879
2928
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2880
2929
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2881
|
-
}),
|
|
2930
|
+
}), ya = {
|
|
2882
2931
|
"post-user-login": {
|
|
2883
2932
|
accessToken: ["setCustomClaim"],
|
|
2884
2933
|
idToken: ["setCustomClaim"],
|
|
@@ -2896,11 +2945,21 @@ var sa = aa.superRefine(oa), ca = aa.extend({
|
|
|
2896
2945
|
user: ["setUserMetadata", "setLinkedTo"],
|
|
2897
2946
|
access: ["deny"]
|
|
2898
2947
|
},
|
|
2899
|
-
"post-user-registration": {}
|
|
2948
|
+
"post-user-registration": {},
|
|
2949
|
+
"custom-token-exchange": {
|
|
2950
|
+
authentication: ["setUserById", "setUserByConnection"],
|
|
2951
|
+
access: ["deny", "rejectInvalidSubjectToken"]
|
|
2952
|
+
}
|
|
2953
|
+
}, ba = {
|
|
2954
|
+
"post-user-login": "onExecutePostLogin",
|
|
2955
|
+
"credentials-exchange": "onExecuteCredentialsExchange",
|
|
2956
|
+
"pre-user-registration": "onExecutePreUserRegistration",
|
|
2957
|
+
"post-user-registration": "onExecutePostUserRegistration",
|
|
2958
|
+
"custom-token-exchange": "onExecuteCustomTokenExchange"
|
|
2900
2959
|
};
|
|
2901
2960
|
//#endregion
|
|
2902
2961
|
//#region src/utils/user-id.ts
|
|
2903
|
-
function
|
|
2962
|
+
function xa(e) {
|
|
2904
2963
|
let t = e.indexOf("|"), n = e.slice(0, t), r = e.slice(t + 1);
|
|
2905
2964
|
if (t === -1 || !n || !r) throw Error(`Invalid user_id: ${e}`);
|
|
2906
2965
|
return {
|
|
@@ -2910,10 +2969,10 @@ function da(e) {
|
|
|
2910
2969
|
}
|
|
2911
2970
|
//#endregion
|
|
2912
2971
|
//#region src/utils/http.ts
|
|
2913
|
-
var
|
|
2972
|
+
var Sa = "x-authhero-preserve-location";
|
|
2914
2973
|
//#endregion
|
|
2915
2974
|
//#region src/utils/passthrough.ts
|
|
2916
|
-
function
|
|
2975
|
+
function Ca(e) {
|
|
2917
2976
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2918
2977
|
"create",
|
|
2919
2978
|
"rawCreate",
|
|
@@ -2947,12 +3006,12 @@ function pa(e) {
|
|
|
2947
3006
|
} : i.bind(e) : i;
|
|
2948
3007
|
} });
|
|
2949
3008
|
}
|
|
2950
|
-
function
|
|
3009
|
+
function wa(e) {
|
|
2951
3010
|
return e;
|
|
2952
3011
|
}
|
|
2953
3012
|
//#endregion
|
|
2954
3013
|
//#region src/utils/connection-attributes.ts
|
|
2955
|
-
function
|
|
3014
|
+
function Ta(e) {
|
|
2956
3015
|
let t = e?.options;
|
|
2957
3016
|
if (!t) return {
|
|
2958
3017
|
usernameIdentifierActive: !1,
|
|
@@ -2975,35 +3034,35 @@ function ha(e) {
|
|
|
2975
3034
|
}
|
|
2976
3035
|
//#endregion
|
|
2977
3036
|
//#region src/utils/guards.ts
|
|
2978
|
-
function
|
|
3037
|
+
function Ea(e) {
|
|
2979
3038
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2980
3039
|
}
|
|
2981
3040
|
//#endregion
|
|
2982
3041
|
//#region src/utils/base64url.ts
|
|
2983
|
-
function
|
|
3042
|
+
function Da(e) {
|
|
2984
3043
|
let t = "";
|
|
2985
3044
|
for (let n of e) t += String.fromCharCode(n);
|
|
2986
3045
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2987
3046
|
}
|
|
2988
|
-
function
|
|
3047
|
+
function Oa(e) {
|
|
2989
3048
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2990
3049
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2991
3050
|
return r;
|
|
2992
3051
|
}
|
|
2993
|
-
function
|
|
2994
|
-
return
|
|
3052
|
+
function ka(e) {
|
|
3053
|
+
return Da(new TextEncoder().encode(e));
|
|
2995
3054
|
}
|
|
2996
|
-
function
|
|
2997
|
-
return new TextDecoder().decode(
|
|
3055
|
+
function Aa(e) {
|
|
3056
|
+
return new TextDecoder().decode(Oa(e));
|
|
2998
3057
|
}
|
|
2999
3058
|
//#endregion
|
|
3000
3059
|
//#region src/utils/base64.ts
|
|
3001
|
-
function
|
|
3060
|
+
function ja(e) {
|
|
3002
3061
|
let t = "";
|
|
3003
3062
|
for (let n of e) t += String.fromCharCode(n);
|
|
3004
3063
|
return btoa(t);
|
|
3005
3064
|
}
|
|
3006
|
-
function
|
|
3065
|
+
function Ma(e) {
|
|
3007
3066
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
3008
3067
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
3009
3068
|
return n;
|
|
@@ -3011,12 +3070,12 @@ function Sa(e) {
|
|
|
3011
3070
|
//#endregion
|
|
3012
3071
|
//#region src/utils/base32.ts
|
|
3013
3072
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
3014
|
-
function
|
|
3073
|
+
function Na(e) {
|
|
3015
3074
|
let t = "", n = 0, r = 0;
|
|
3016
3075
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
|
|
3017
3076
|
return r > 0 && (t += X[n << 5 - r & 31]), t;
|
|
3018
3077
|
}
|
|
3019
|
-
function
|
|
3078
|
+
function Pa(e) {
|
|
3020
3079
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
3021
3080
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
3022
3081
|
let r = [], i = 0, a = 0;
|
|
@@ -3030,19 +3089,19 @@ function wa(e) {
|
|
|
3030
3089
|
}
|
|
3031
3090
|
//#endregion
|
|
3032
3091
|
//#region src/utils/hex.ts
|
|
3033
|
-
function
|
|
3092
|
+
function Fa(e) {
|
|
3034
3093
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
3035
3094
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
3036
3095
|
return n;
|
|
3037
3096
|
}
|
|
3038
3097
|
//#endregion
|
|
3039
3098
|
//#region src/utils/cursor.ts
|
|
3040
|
-
function
|
|
3041
|
-
return
|
|
3099
|
+
function Ia(e) {
|
|
3100
|
+
return ka(JSON.stringify(e));
|
|
3042
3101
|
}
|
|
3043
|
-
function
|
|
3102
|
+
function La(e) {
|
|
3044
3103
|
try {
|
|
3045
|
-
let t = JSON.parse(
|
|
3104
|
+
let t = JSON.parse(Aa(e));
|
|
3046
3105
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
3047
3106
|
} catch {
|
|
3048
3107
|
return null;
|
|
@@ -3050,7 +3109,7 @@ function Da(e) {
|
|
|
3050
3109
|
}
|
|
3051
3110
|
//#endregion
|
|
3052
3111
|
//#region src/utils/lucene.ts
|
|
3053
|
-
function
|
|
3112
|
+
function Ra(e) {
|
|
3054
3113
|
let t = [], n = "", r = !1;
|
|
3055
3114
|
for (let i = 0; i < e.length; i++) {
|
|
3056
3115
|
let a = e[i];
|
|
@@ -3058,53 +3117,53 @@ function Oa(e) {
|
|
|
3058
3117
|
}
|
|
3059
3118
|
return n.trim() && t.push(n.trim()), t;
|
|
3060
3119
|
}
|
|
3061
|
-
function
|
|
3120
|
+
function za(e) {
|
|
3062
3121
|
return e.replace(/\\([\\"+\-!(){}[\]^~*?:/&|])/g, "$1");
|
|
3063
3122
|
}
|
|
3064
|
-
function
|
|
3123
|
+
function Ba(e) {
|
|
3065
3124
|
return `"${e.replace(/([\\"])/g, "\\$1")}"`;
|
|
3066
3125
|
}
|
|
3067
|
-
function
|
|
3126
|
+
function Va(e) {
|
|
3068
3127
|
let t = e.trim();
|
|
3069
|
-
return
|
|
3128
|
+
return za(t.length > 1 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t);
|
|
3070
3129
|
}
|
|
3071
|
-
function
|
|
3130
|
+
function Ha(e) {
|
|
3072
3131
|
let t = [], n = [];
|
|
3073
|
-
for (let r of
|
|
3132
|
+
for (let r of Ra(e)) /^or$/i.test(r) ? (t.push(n), n = []) : n.push(r);
|
|
3074
3133
|
return t.push(n), t.filter((e) => e.length > 0);
|
|
3075
3134
|
}
|
|
3076
|
-
function
|
|
3135
|
+
function Ua(e, t) {
|
|
3077
3136
|
let n = new Set(t), r = (e) => {
|
|
3078
3137
|
let t = e.replace(/^([^:]+)=/, "$1:"), r = t.startsWith("-") ? t.slice(1) : t;
|
|
3079
3138
|
if (r.startsWith("_exists_:")) return n.has(r.slice(9));
|
|
3080
3139
|
let i = r.indexOf(":");
|
|
3081
3140
|
return i > 0 ? n.has(r.slice(0, i)) : !0;
|
|
3082
3141
|
};
|
|
3083
|
-
return
|
|
3142
|
+
return Ha(e).map((e) => e.filter(r).join(" ")).filter((e) => e.length > 0).join(" OR ");
|
|
3084
3143
|
}
|
|
3085
|
-
var
|
|
3086
|
-
function
|
|
3087
|
-
return
|
|
3144
|
+
var Wa = /^[^\s@%_*?"'()[\]{}^~:\\/]+@[^\s@%_*?"'()[\]{}^~:\\/]+\.[^\s@%_*?"'()[\]{}^~:\\/]+$/;
|
|
3145
|
+
function Ga(e) {
|
|
3146
|
+
return Wa.test(e);
|
|
3088
3147
|
}
|
|
3089
3148
|
//#endregion
|
|
3090
3149
|
//#region src/utils/session-retention.ts
|
|
3091
3150
|
var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
|
|
3092
|
-
function
|
|
3151
|
+
function Ka(e) {
|
|
3093
3152
|
return Math.floor((e + Q) / Z);
|
|
3094
3153
|
}
|
|
3095
3154
|
function $(e) {
|
|
3096
3155
|
return e * Z - Q;
|
|
3097
3156
|
}
|
|
3098
|
-
function
|
|
3099
|
-
let n =
|
|
3157
|
+
function qa(e, t = Date.now()) {
|
|
3158
|
+
let n = Ka(t), r = n - e + 1;
|
|
3100
3159
|
return {
|
|
3101
3160
|
currentWeek: n,
|
|
3102
3161
|
firstWeek: r,
|
|
3103
3162
|
sinceMs: $(r)
|
|
3104
3163
|
};
|
|
3105
3164
|
}
|
|
3106
|
-
function
|
|
3107
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3165
|
+
function Ja(e, t, n = Date.now()) {
|
|
3166
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = qa(t, n), o = /* @__PURE__ */ new Map();
|
|
3108
3167
|
for (let t of e) {
|
|
3109
3168
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3110
3169
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3127,8 +3186,8 @@ function Ra(e, t, n = Date.now()) {
|
|
|
3127
3186
|
cohorts: s
|
|
3128
3187
|
};
|
|
3129
3188
|
}
|
|
3130
|
-
function
|
|
3131
|
-
let r =
|
|
3189
|
+
function Ya(e, t, n = Date.now()) {
|
|
3190
|
+
let r = Ja(e, t, n);
|
|
3132
3191
|
return {
|
|
3133
3192
|
interval: r.interval,
|
|
3134
3193
|
from: r.from,
|
|
@@ -3142,16 +3201,16 @@ function za(e, t, n = Date.now()) {
|
|
|
3142
3201
|
}
|
|
3143
3202
|
//#endregion
|
|
3144
3203
|
//#region src/utils/username-validation.ts
|
|
3145
|
-
var
|
|
3146
|
-
function
|
|
3147
|
-
return
|
|
3204
|
+
var Xa = /^[A-Za-z0-9_+\-.!#$'^`~]+$/, Za = "Username can only contain alphanumeric characters and the following characters: '_', '+', '-', '.', '!', '#', '$', \"'\", '^', '`', '~'", Qa = "Usernames must not contain \"@\". Use the email field for email addresses.";
|
|
3205
|
+
function $a(e) {
|
|
3206
|
+
return Xa.test(e);
|
|
3148
3207
|
}
|
|
3149
|
-
function
|
|
3208
|
+
function eo(e) {
|
|
3150
3209
|
return e.toLowerCase();
|
|
3151
3210
|
}
|
|
3152
|
-
function
|
|
3153
|
-
if (e.includes("@")) return
|
|
3154
|
-
if (
|
|
3211
|
+
function to(e, t) {
|
|
3212
|
+
if (e.includes("@")) return Qa;
|
|
3213
|
+
if (!$a(e)) return Za;
|
|
3155
3214
|
if (t) {
|
|
3156
3215
|
let n = [...e].length;
|
|
3157
3216
|
if (n < t.min) return `Username must be at least ${t.min} characters`;
|
|
@@ -3161,15 +3220,15 @@ function Ga(e, t) {
|
|
|
3161
3220
|
}
|
|
3162
3221
|
//#endregion
|
|
3163
3222
|
//#region src/utils/feature-not-supported.ts
|
|
3164
|
-
var
|
|
3223
|
+
var no = class extends Error {
|
|
3165
3224
|
feature;
|
|
3166
3225
|
adapter;
|
|
3167
3226
|
constructor(e, t, n) {
|
|
3168
3227
|
super(`${e} is not supported by the ${t} adapter.` + (n ? ` ${n}` : "")), this.name = "FeatureNotSupportedError", this.feature = e, this.adapter = t;
|
|
3169
3228
|
}
|
|
3170
3229
|
};
|
|
3171
|
-
function
|
|
3230
|
+
function ro(e) {
|
|
3172
3231
|
return e instanceof Error && e.name === "FeatureNotSupportedError";
|
|
3173
3232
|
}
|
|
3174
3233
|
//#endregion
|
|
3175
|
-
export {
|
|
3234
|
+
export { xe as Auth0ActionEnum, Gn as Auth0Client, w as AuthorizationResponseMode, C as AuthorizationResponseType, rt as CodeChallengeMethod, f as ComponentCategory, d as ComponentType, da as DATABASE_CONNECTION_STRATEGY, Se as EmailActionEnum, Zt as FORM_FIELD_TYPES, no as FeatureNotSupportedError, be as FlowActionTypeEnum, Nr as GrantType, _r as KNOWN_TENANT_OPERATION_ENGINES, Kn as LocationInfo, H as LogTypes, In as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Xe as NodeType, Sa as PRESERVE_LOCATION_HEADER, Jr as RESERVED_SUBJECT_TOKEN_TYPE_PREFIXES, Ee as RedirectTargetEnum, la as Strategy, ua as StrategyType, wr as TERMINAL_TENANT_OPERATION_ROW_STATUSES, qr as TOKEN_EXCHANGE_PROFILE_TYPE, ya as TRIGGER_API_SHAPES, ba as TRIGGER_FUNCTION_NAMES, Qa as USERNAME_CONTAINS_AT_MESSAGE, Za as USERNAME_INVALID_CHARACTERS_MESSAGE, Z as WEEK_MS, r as actionDependencySchema, re as actionExecutionErrorSchema, ce as actionExecutionInsertSchema, ae as actionExecutionLogEntrySchema, oe as actionExecutionLogsSchema, ie as actionExecutionResultSchema, se as actionExecutionSchema, c as actionExecutionStatusSchema, ne as actionExecutionTriggerIdSchema, a as actionInsertSchema, S as actionNodeSchema, te as actionResponseSchema, s as actionSchema, ee as actionSecretNameSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, le as actionVersionInsertSchema, ue as actionVersionSchema, Ji as activeUsersResponseSchema, fe as actorSchema, Fe as addressSchema, pn as allowedTriggersForHook, ra as analyticsColumnMetaSchema, Zi as analyticsGroupBySchema, Xi as analyticsIntervalSchema, aa as analyticsQueryResponseSchema, Yi as analyticsResourceSchema, ia as analyticsStatisticsSchema, Qi as analyticsUserTypeSchema, ar as attackProtectionSchema, de as auditCategorySchema, ve as auditEventInsertSchema, ye as auditEventSchema, _e as auth0ClientSchema, nt as auth0FlowInsertSchema, tt as auth0FlowSchema, je as auth0QuerySchema, we as auth0UpdateUserActionSchema, Re as auth0UserResponseSchema, ot as authParamsSchema, ga as authenticationMethodInsertSchema, _a as authenticationMethodSchema, pa as authenticationMethodTypeSchema, l as baseUserSchema, Jt as blockComponentSchema, Fr as bordersSchema, st as brandingSchema, nr as breachedPasswordDetectionSchema, rr as bruteForceProtectionSchema, Ya as buildRefreshTokenRetention, Ja as buildSessionRetention, h as buttonComponentSchema, at as claimsRequestSchema, We as clientGrantInsertSchema, Ke as clientGrantListSchema, Ge as clientGrantSchema, He as clientInsertSchema, Je as clientRegistrationTokenInsertSchema, Ye as clientRegistrationTokenSchema, qe as clientRegistrationTokenTypeSchema, Ue as clientSchema, lt as codeInsertSchema, ut as codeSchema, ct as codeTypeSchema, Ir as colorsSchema, on as componentMessageSchema, y as componentSchema, ft as connectionInsertSchema, dt as connectionOptionsSchema, pt as connectionSchema, u as coordinatesSchema, Ca as createPassthroughAdapter, wa as createWriteOnlyAdapter, vt as customDomainCertificateUploadSchema, E as customDomainInsertSchema, ht as customDomainSchema, gt as customDomainUpdateSchema, _t as customDomainWithTenantIdSchema, ca as customTextEntrySchema, sa as customTextSchema, qi as dailyStatsSchema, Pa as decodeBase32, Ma as decodeBase64, Oa as decodeBase64Url, Aa as decodeBase64UrlString, La as decodeCursor, si as emailProviderSchema, ci as emailTemplateNameSchema, li as emailTemplateSchema, Ce as emailVerificationRulesSchema, Te as emailVerifyActionSchema, Na as encodeBase32, ja as encodeBase64, Da as encodeBase64Url, ka as encodeBase64UrlString, Ia as encodeCursor, Fa as encodeHex, et as endingSchema, Ba as escapeLuceneValue, Xt as fieldComponentSchema, Oe as flowActionStepSchema, ke as flowInsertSchema, Ae as flowSchema, _ as flowsFieldComponentSchema, x as flowsFlowNodeSchema, b as flowsStepNodeSchema, K as fontDetailsSchema, Lr as fontsSchema, Qt as formControlSchema, rn as formInsertSchema, j as formNodeComponentDefinition, nn as formNodeSchema, an as formSchema, v as genericComponentSchema, Ze as genericNodeSchema, Ta as getConnectionIdentifierConfig, Wn as getLogTypeCategory, Un as getLogTypeDescription, Si as grantInsertSchema, Ci as grantSchema, Wr as handlerConfigSchema, Dn as hookCodeInsertSchema, On as hookCodeSchema, bn as hookInsertSchema, R as hookPageId, En as hookSchema, z as hookTemplateId, mn as hookTemplates, Pe as identitySchema, va as importMetadataSchema, jn as inviteInsertSchema, Mn as inviteSchema, An as inviteeSchema, kn as inviterSchema, ln as isBlockComponent, fa as isDatabaseConnectionStrategy, Ga as isEmailSearchTerm, ro as isFeatureNotSupportedError, dn as isFieldComponent, Ea as isPlainObject, un as isWidgetComponent, Pn as jwksKeySchema, Nn as jwksSchema, g as legalComponentSchema, ge as locationInfoSchema, qn as logInsertSchema, Jn as logSchema, Xn as logStreamFilterSchema, Zn as logStreamInsertSchema, Qn as logStreamSchema, U as logStreamStatusSchema, Yn as logStreamTypeSchema, Hn as logTypeCategories, Vn as logTypeDescriptions, V as loginSessionAuthStrategySchema, Rn as loginSessionInsertSchema, zn as loginSessionSchema, Ln as loginSessionStateSchema, Ur as matchSchema, $n as migrationProviderTypeSchema, W as migrationSourceCredentialsSchema, er as migrationSourceInsertSchema, tr as migrationSourceSchema, Qe as nodeSchema, eo as normalizeUsername, Fn as openIDConfigurationSchema, Ii as organizationBrandingSchema, Vi as organizationConnectionInsertSchema, Ui as organizationConnectionListSchema, Hi as organizationConnectionSchema, Li as organizationEnabledConnectionSchema, zi as organizationInsertSchema, Bi as organizationSchema, Ri as organizationTokenQuotaSchema, Rr as pageBackgroundSchema, xa as parseUserId, or as passwordInsertSchema, sr as passwordSchema, Ne as profileDataSchema, oa as promptScreenSchema, Hr as promptSettingSchema, q as proxyRouteInsertSchema, Gr as proxyRouteSchema, Kr as proxyRouteUpdateSchema, De as redirectActionSchema, ui as refreshTokenInsertSchema, ta as refreshTokenRetentionCohortSchema, na as refreshTokenRetentionResponseSchema, di as refreshTokenSchema, me as requestContextSchema, gi as resourceServerInsertSchema, vi as resourceServerListSchema, hi as resourceServerOptionsSchema, _i as resourceServerSchema, mi as resourceServerScopeSchema, he as responseContextSchema, m as richTextComponentSchema, Ni as roleInsertSchema, Fi as roleListSchema, yi as rolePermissionInsertSchema, xi as rolePermissionListSchema, bi as rolePermissionSchema, Pi as roleSchema, Ar as rolloutInsertSchema, Or as rolloutKindSchema, jr as rolloutSchema, kr as rolloutStatusSchema, Mr as rolloutUpdateSchema, Ua as sanitizeLuceneQuery, ti as scimConfigurationInsertSchema, ni as scimConfigurationSchema, ai as scimExternalIdInsertSchema, oi as scimExternalIdSchema, ei as scimMappingEntrySchema, ri as scimTokenInsertSchema, ii as scimTokenSchema, sn as screenLinkSchema, lr as sessionInsertSchema, $i as sessionRetentionCohortSchema, ea as sessionRetentionResponseSchema, qa as sessionRetentionWindow, ur as sessionSchema, dr as signingKeySchema, pi as smsProviderSchema, fi as smsSendParamsSchema, Ha as splitLuceneOrGroups, $e as startSchema, J as subjectTokenTypeSchema, ir as suspiciousIpThrottlingSchema, pe as targetSchema, fr as tenantInsertSchema, gr as tenantOperationEngineSchema, Sr as tenantOperationEventInsertSchema, xr as tenantOperationEventOutcomeSchema, Cr as tenantOperationEventSchema, vr as tenantOperationInsertSchema, mr as tenantOperationKindSchema, Tr as tenantOperationRowInsertSchema, Dr as tenantOperationRowOutcomeSchema, Er as tenantOperationRowSchema, G as tenantOperationRowStatusSchema, yr as tenantOperationSchema, hr as tenantOperationStatusSchema, br as tenantOperationUpdateSchema, pr as tenantSchema, Ki as tenantSettingsSchema, Br as themeInsertSchema, Vr as themeSchema, Yr as tokenExchangeJwtAlgorithmSchema, Y as tokenExchangeJwtVerificationSchema, Zr as tokenExchangeProfileInsertSchema, Qr as tokenExchangeProfileSchema, $r as tokenExchangeProfileUpdateSchema, Xr as tokenExchangeUserMappingSchema, Pr as tokenResponseSchema, Ra as tokenizeLuceneQuery, Me as totalsSchema, cn as uiScreenSchema, za as unescapeLuceneValue, Va as unquoteLuceneValue, wi as userActivitySchema, Ie as userInsertSchema, Wi as userOrganizationInsertSchema, Gi as userOrganizationSchema, Ti as userPermissionInsertSchema, Di as userPermissionListSchema, Ei as userPermissionSchema, ki as userPermissionWithDetailsListSchema, Oi as userPermissionWithDetailsSchema, ze as userResponseSchema, Ai as userRoleInsertSchema, Mi as userRoleListSchema, ji as userRoleSchema, Le as userSchema, $a as usernameHasOnlyAllowedCharacters, to as validateUsername, mt as verificationMethodsSchema, Ka as weekIndex, $ as weekStartMs, Yt as widgetComponentSchema, zr as widgetSchema };
|