@authhero/adapter-interfaces 4.8.0 → 4.8.1
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 +24 -2
- package/dist/adapter-interfaces.mjs +310 -291
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/username-validation.d.ts +21 -0
- package/package.json +1 -1
|
@@ -44,12 +44,12 @@ var t = e.object({
|
|
|
44
44
|
id: e.string(),
|
|
45
45
|
msg: e.string(),
|
|
46
46
|
url: e.string().optional()
|
|
47
|
-
}),
|
|
47
|
+
}), u = e.object({
|
|
48
48
|
action_name: e.string(),
|
|
49
49
|
error: l.nullable(),
|
|
50
50
|
started_at: e.string(),
|
|
51
51
|
ended_at: e.string()
|
|
52
|
-
}),
|
|
52
|
+
}), te = 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
|
+
}), ne = e.array(e.object({
|
|
62
62
|
action_name: e.string(),
|
|
63
|
-
lines: e.array(
|
|
64
|
-
})),
|
|
63
|
+
lines: e.array(te)
|
|
64
|
+
})), re = e.object({
|
|
65
65
|
id: e.string(),
|
|
66
66
|
tenant_id: e.string(),
|
|
67
67
|
trigger_id: ee,
|
|
68
68
|
status: c,
|
|
69
|
-
results: e.array(
|
|
70
|
-
logs:
|
|
69
|
+
results: e.array(u),
|
|
70
|
+
logs: ne.optional(),
|
|
71
71
|
created_at: e.string(),
|
|
72
72
|
updated_at: e.string()
|
|
73
|
-
}),
|
|
73
|
+
}), ie = re.omit({
|
|
74
74
|
tenant_id: !0,
|
|
75
75
|
created_at: !0,
|
|
76
76
|
updated_at: !0
|
|
77
|
-
}),
|
|
77
|
+
}), ae = 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
|
+
}), oe = ae.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), se = e.enum([
|
|
90
90
|
"user_action",
|
|
91
91
|
"admin_action",
|
|
92
92
|
"system",
|
|
93
93
|
"api"
|
|
94
|
-
]),
|
|
94
|
+
]), ce = 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
|
+
}), le = 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
|
+
}), ue = 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
|
+
}), de = e.object({
|
|
127
127
|
status_code: e.number(),
|
|
128
128
|
body: e.unknown().optional()
|
|
129
|
-
}),
|
|
129
|
+
}), fe = 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
|
+
}), pe = e.object({
|
|
137
137
|
name: e.string(),
|
|
138
138
|
version: e.string(),
|
|
139
139
|
env: e.record(e.string(), e.string()).optional()
|
|
140
|
-
}),
|
|
140
|
+
}), me = 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: se,
|
|
146
|
+
actor: ce,
|
|
147
|
+
target: le,
|
|
148
|
+
request: ue,
|
|
149
|
+
response: de.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: fe.optional(),
|
|
158
|
+
auth0_client: pe.optional(),
|
|
159
159
|
hostname: e.string(),
|
|
160
160
|
is_mobile: e.boolean().optional(),
|
|
161
161
|
timestamp: e.string()
|
|
162
|
-
}),
|
|
162
|
+
}), he = me.extend({ id: e.string() }), ge = e.enum([
|
|
163
163
|
"AUTH0",
|
|
164
164
|
"EMAIL",
|
|
165
165
|
"REDIRECT"
|
|
166
|
-
]),
|
|
166
|
+
]), _e = e.enum([
|
|
167
167
|
"CREATE_USER",
|
|
168
168
|
"GET_USER",
|
|
169
169
|
"UPDATE_USER",
|
|
170
170
|
"SEND_REQUEST",
|
|
171
171
|
"SEND_EMAIL"
|
|
172
|
-
]),
|
|
172
|
+
]), ve = e.enum(["VERIFY_EMAIL"]), ye = 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
|
+
}), be = 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
|
+
}), xe = 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: ye.optional()
|
|
201
201
|
})
|
|
202
|
-
}),
|
|
202
|
+
}), Se = e.enum([
|
|
203
203
|
"change-email",
|
|
204
204
|
"account",
|
|
205
205
|
"custom"
|
|
206
|
-
]),
|
|
206
|
+
]), Ce = 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: Se.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
|
-
}),
|
|
217
|
+
}), d = e.union([
|
|
218
|
+
be,
|
|
218
219
|
xe,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
]), Ee = e.object({
|
|
220
|
+
Ce
|
|
221
|
+
]), we = 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(d).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
224
|
+
}), Te = we.extend(t.shape).extend({ id: e.string().openapi({
|
|
225
225
|
description: "Unique identifier for the flow",
|
|
226
226
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
227
|
-
}) }),
|
|
227
|
+
}) }), Ee = 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
|
+
}), De = 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
|
+
}), f = 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()), p = 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: f.optional()
|
|
262
|
+
}), m = 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(), h = 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: m
|
|
293
|
+
}), g = h.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
|
+
}), _ = g.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(p).optional()
|
|
315
|
+
}), Oe = _.omit({ registration_completed_at: !0 }), ke = h.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()), Ae = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", je = (e = 21) => {
|
|
322
322
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
323
|
-
for (; e--;) t +=
|
|
323
|
+
for (; e--;) t += Ae[n[e] & 63];
|
|
324
324
|
return t;
|
|
325
|
-
},
|
|
325
|
+
}, v = 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(() => je()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
331
331
|
app_type: e.enum([
|
|
332
332
|
"native",
|
|
333
333
|
"spa",
|
|
@@ -440,10 +440,10 @@ var t = e.object({
|
|
|
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
442
|
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
|
-
}),
|
|
443
|
+
}), Me = e.object({
|
|
444
444
|
created_at: e.string(),
|
|
445
445
|
updated_at: e.string()
|
|
446
|
-
}).extend(
|
|
446
|
+
}).extend(v.shape).extend({ client_id: e.string() }), y = e.object({
|
|
447
447
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
448
448
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
449
449
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -456,38 +456,38 @@ var t = e.object({
|
|
|
456
456
|
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
457
|
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
458
|
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
|
-
}),
|
|
459
|
+
}), b = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(y.shape).extend({
|
|
460
460
|
created_at: e.string().optional(),
|
|
461
461
|
updated_at: e.string().optional()
|
|
462
|
-
}),
|
|
462
|
+
}), Ne = e.array(b), x = e.enum(["iat", "rat"]), S = e.object({
|
|
463
463
|
id: e.string(),
|
|
464
464
|
token_hash: e.string(),
|
|
465
|
-
type:
|
|
465
|
+
type: x,
|
|
466
466
|
client_id: e.string().optional(),
|
|
467
467
|
sub: e.string().optional(),
|
|
468
468
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
469
469
|
single_use: e.boolean().default(!1),
|
|
470
470
|
expires_at: e.string().optional()
|
|
471
|
-
}),
|
|
471
|
+
}), Pe = e.object({
|
|
472
472
|
created_at: e.string(),
|
|
473
473
|
used_at: e.string().optional(),
|
|
474
474
|
revoked_at: e.string().optional()
|
|
475
|
-
}).extend(
|
|
475
|
+
}).extend(S.shape), C = e.object({
|
|
476
476
|
x: e.number(),
|
|
477
477
|
y: e.number()
|
|
478
|
-
}),
|
|
478
|
+
}), w = /* @__PURE__ */ function(e) {
|
|
479
479
|
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
|
-
}({}),
|
|
480
|
+
}({}), T = /* @__PURE__ */ function(e) {
|
|
481
481
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
482
|
-
}({}),
|
|
482
|
+
}({}), E = e.object({
|
|
483
483
|
id: e.string(),
|
|
484
|
-
category: e.nativeEnum(
|
|
485
|
-
type: e.nativeEnum(
|
|
486
|
-
}),
|
|
484
|
+
category: e.nativeEnum(T),
|
|
485
|
+
type: e.nativeEnum(w)
|
|
486
|
+
}), Fe = E.extend({
|
|
487
487
|
category: e.literal("BLOCK"),
|
|
488
488
|
type: e.literal("RICH_TEXT"),
|
|
489
489
|
config: e.object({ content: e.string() }).passthrough()
|
|
490
|
-
}),
|
|
490
|
+
}), Ie = E.extend({
|
|
491
491
|
category: e.literal("BLOCK"),
|
|
492
492
|
type: e.union([
|
|
493
493
|
e.literal("NEXT_BUTTON"),
|
|
@@ -495,13 +495,13 @@ var t = e.object({
|
|
|
495
495
|
e.literal("SUBMIT_BUTTON")
|
|
496
496
|
]),
|
|
497
497
|
config: e.object({ text: e.string() }).passthrough()
|
|
498
|
-
}),
|
|
498
|
+
}), Le = E.extend({
|
|
499
499
|
category: e.literal("FIELD"),
|
|
500
500
|
type: e.literal("LEGAL"),
|
|
501
501
|
required: e.boolean().optional(),
|
|
502
502
|
sensitive: e.boolean().optional(),
|
|
503
503
|
config: e.object({ text: e.string() }).passthrough()
|
|
504
|
-
}),
|
|
504
|
+
}), Re = E.extend({
|
|
505
505
|
category: e.literal("FIELD"),
|
|
506
506
|
type: e.union([
|
|
507
507
|
e.literal("TEXT"),
|
|
@@ -521,40 +521,40 @@ var t = e.object({
|
|
|
521
521
|
label: e.string().optional(),
|
|
522
522
|
placeholder: e.string().optional()
|
|
523
523
|
}).passthrough()
|
|
524
|
-
}),
|
|
524
|
+
}), ze = e.object({
|
|
525
525
|
id: e.string(),
|
|
526
526
|
category: e.string(),
|
|
527
527
|
type: e.string()
|
|
528
|
-
}).passthrough(),
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
]),
|
|
528
|
+
}).passthrough(), Be = e.union([
|
|
529
|
+
Fe,
|
|
530
|
+
Ie,
|
|
531
|
+
Le,
|
|
532
|
+
Re,
|
|
533
|
+
ze
|
|
534
|
+
]), Ve = /* @__PURE__ */ function(e) {
|
|
535
535
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
536
|
-
}({}),
|
|
536
|
+
}({}), He = e.object({
|
|
537
537
|
id: e.string(),
|
|
538
538
|
type: e.literal("STEP"),
|
|
539
|
-
coordinates:
|
|
539
|
+
coordinates: C,
|
|
540
540
|
alias: e.string().optional(),
|
|
541
541
|
config: e.object({
|
|
542
|
-
components: e.array(
|
|
542
|
+
components: e.array(Be),
|
|
543
543
|
next_node: e.string()
|
|
544
544
|
}).passthrough()
|
|
545
|
-
}),
|
|
545
|
+
}), Ue = e.object({
|
|
546
546
|
id: e.string(),
|
|
547
547
|
type: e.literal("FLOW"),
|
|
548
|
-
coordinates:
|
|
548
|
+
coordinates: C,
|
|
549
549
|
alias: e.string().optional(),
|
|
550
550
|
config: e.object({
|
|
551
551
|
flow_id: e.string(),
|
|
552
552
|
next_node: e.string()
|
|
553
553
|
})
|
|
554
|
-
}),
|
|
554
|
+
}), We = e.object({
|
|
555
555
|
id: e.string(),
|
|
556
556
|
type: e.literal("ACTION"),
|
|
557
|
-
coordinates:
|
|
557
|
+
coordinates: C,
|
|
558
558
|
alias: e.string().optional(),
|
|
559
559
|
config: e.object({
|
|
560
560
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -566,21 +566,21 @@ var t = e.object({
|
|
|
566
566
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
567
567
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
568
568
|
}).passthrough()
|
|
569
|
-
}),
|
|
569
|
+
}), Ge = e.object({
|
|
570
570
|
id: e.string(),
|
|
571
571
|
type: e.string(),
|
|
572
|
-
coordinates:
|
|
572
|
+
coordinates: C
|
|
573
573
|
}).passthrough(), Ke = e.union([
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
574
|
+
He,
|
|
575
|
+
Ue,
|
|
576
|
+
We,
|
|
577
|
+
Ge
|
|
578
578
|
]), qe = e.object({
|
|
579
579
|
next_node: e.string(),
|
|
580
|
-
coordinates:
|
|
580
|
+
coordinates: C
|
|
581
581
|
}).passthrough(), Je = e.object({
|
|
582
582
|
resume_flow: e.boolean().optional(),
|
|
583
|
-
coordinates:
|
|
583
|
+
coordinates: C
|
|
584
584
|
}).passthrough(), Ye = e.object({
|
|
585
585
|
id: e.string(),
|
|
586
586
|
name: e.string(),
|
|
@@ -1859,7 +1859,7 @@ var Bn = e.object({
|
|
|
1859
1859
|
longitude: e.string(),
|
|
1860
1860
|
time_zone: e.string(),
|
|
1861
1861
|
continent_code: e.string()
|
|
1862
|
-
}),
|
|
1862
|
+
}), Hn = e.object({
|
|
1863
1863
|
type: Fn,
|
|
1864
1864
|
date: e.string(),
|
|
1865
1865
|
description: e.string().optional(),
|
|
@@ -1881,55 +1881,55 @@ var Bn = e.object({
|
|
|
1881
1881
|
auth0_client: Bn.optional(),
|
|
1882
1882
|
log_id: e.string().optional(),
|
|
1883
1883
|
location_info: Vn.optional()
|
|
1884
|
-
}),
|
|
1884
|
+
}), Un = Hn.extend({ log_id: e.string() }), Wn = e.enum([
|
|
1885
1885
|
"http",
|
|
1886
1886
|
"eventbridge",
|
|
1887
1887
|
"eventgrid",
|
|
1888
1888
|
"splunk",
|
|
1889
1889
|
"datadog",
|
|
1890
1890
|
"sumo"
|
|
1891
|
-
]),
|
|
1891
|
+
]), K = e.enum([
|
|
1892
1892
|
"active",
|
|
1893
1893
|
"paused",
|
|
1894
1894
|
"suspended"
|
|
1895
|
-
]),
|
|
1895
|
+
]), Gn = e.object({
|
|
1896
1896
|
type: e.string(),
|
|
1897
1897
|
name: e.string()
|
|
1898
|
-
}),
|
|
1898
|
+
}), Kn = e.object({
|
|
1899
1899
|
name: e.string(),
|
|
1900
|
-
type:
|
|
1901
|
-
status:
|
|
1900
|
+
type: Wn,
|
|
1901
|
+
status: K.optional(),
|
|
1902
1902
|
sink: e.record(e.string(), e.unknown()),
|
|
1903
|
-
filters: e.array(
|
|
1903
|
+
filters: e.array(Gn).optional(),
|
|
1904
1904
|
isPriority: e.boolean().optional()
|
|
1905
|
-
}),
|
|
1905
|
+
}), qn = Kn.extend({
|
|
1906
1906
|
id: e.string(),
|
|
1907
|
-
status:
|
|
1907
|
+
status: K,
|
|
1908
1908
|
created_at: e.string().optional(),
|
|
1909
1909
|
updated_at: e.string().optional()
|
|
1910
|
-
}),
|
|
1910
|
+
}), Jn = e.enum([
|
|
1911
1911
|
"auth0",
|
|
1912
1912
|
"cognito",
|
|
1913
1913
|
"okta",
|
|
1914
1914
|
"oidc"
|
|
1915
|
-
]),
|
|
1915
|
+
]), Yn = e.object({
|
|
1916
1916
|
domain: e.string(),
|
|
1917
1917
|
client_id: e.string(),
|
|
1918
1918
|
client_secret: e.string(),
|
|
1919
1919
|
audience: e.string().optional(),
|
|
1920
1920
|
scope: e.string().optional()
|
|
1921
|
-
}),
|
|
1921
|
+
}), Xn = e.object({
|
|
1922
1922
|
id: e.string().optional(),
|
|
1923
1923
|
name: e.string(),
|
|
1924
|
-
provider:
|
|
1924
|
+
provider: Jn,
|
|
1925
1925
|
connection: e.string(),
|
|
1926
1926
|
enabled: e.boolean().default(!0),
|
|
1927
|
-
credentials:
|
|
1928
|
-
}),
|
|
1927
|
+
credentials: Yn
|
|
1928
|
+
}), Zn = e.object({
|
|
1929
1929
|
id: e.string(),
|
|
1930
1930
|
created_at: e.string(),
|
|
1931
1931
|
updated_at: e.string()
|
|
1932
|
-
}).extend(
|
|
1932
|
+
}).extend(Xn.shape), Qn = e.object({
|
|
1933
1933
|
enabled: e.boolean().optional(),
|
|
1934
1934
|
shields: e.array(e.string()).optional(),
|
|
1935
1935
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1938,13 +1938,13 @@ var Bn = e.object({
|
|
|
1938
1938
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1939
1939
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1940
1940
|
}).optional()
|
|
1941
|
-
}),
|
|
1941
|
+
}), $n = e.object({
|
|
1942
1942
|
enabled: e.boolean().optional(),
|
|
1943
1943
|
shields: e.array(e.string()).optional(),
|
|
1944
1944
|
allowlist: e.array(e.string()).optional(),
|
|
1945
1945
|
mode: e.string().optional(),
|
|
1946
1946
|
max_attempts: e.number().optional()
|
|
1947
|
-
}),
|
|
1947
|
+
}), er = e.object({
|
|
1948
1948
|
enabled: e.boolean().optional(),
|
|
1949
1949
|
shields: e.array(e.string()).optional(),
|
|
1950
1950
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1958,28 +1958,28 @@ var Bn = e.object({
|
|
|
1958
1958
|
rate: e.number().optional()
|
|
1959
1959
|
}).optional()
|
|
1960
1960
|
}).optional()
|
|
1961
|
-
}), er = e.object({
|
|
1962
|
-
breached_password_detection: Zn.optional(),
|
|
1963
|
-
brute_force_protection: Qn.optional(),
|
|
1964
|
-
suspicious_ip_throttling: $n.optional()
|
|
1965
1961
|
}), tr = e.object({
|
|
1962
|
+
breached_password_detection: Qn.optional(),
|
|
1963
|
+
brute_force_protection: $n.optional(),
|
|
1964
|
+
suspicious_ip_throttling: er.optional()
|
|
1965
|
+
}), nr = e.object({
|
|
1966
1966
|
id: e.string().optional(),
|
|
1967
1967
|
user_id: e.string(),
|
|
1968
1968
|
password: e.string(),
|
|
1969
1969
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1970
1970
|
is_current: e.boolean().default(!0)
|
|
1971
|
-
}),
|
|
1971
|
+
}), rr = nr.extend({
|
|
1972
1972
|
id: e.string(),
|
|
1973
1973
|
created_at: e.string(),
|
|
1974
1974
|
updated_at: e.string()
|
|
1975
|
-
}),
|
|
1975
|
+
}), ir = e.object({
|
|
1976
1976
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1977
1977
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1978
1978
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1979
1979
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1980
1980
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1981
1981
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1982
|
-
}),
|
|
1982
|
+
}), ar = e.object({
|
|
1983
1983
|
id: e.string(),
|
|
1984
1984
|
revoked_at: e.string().optional(),
|
|
1985
1985
|
used_at: e.string().optional(),
|
|
@@ -1987,14 +1987,14 @@ var Bn = e.object({
|
|
|
1987
1987
|
expires_at: e.string().optional(),
|
|
1988
1988
|
login_session_id: e.string(),
|
|
1989
1989
|
idle_expires_at: e.string().optional(),
|
|
1990
|
-
device:
|
|
1990
|
+
device: ir.describe("Metadata related to the device used in the session"),
|
|
1991
1991
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1992
|
-
}),
|
|
1992
|
+
}), or = e.object({
|
|
1993
1993
|
created_at: e.string(),
|
|
1994
1994
|
updated_at: e.string(),
|
|
1995
1995
|
authenticated_at: e.string(),
|
|
1996
1996
|
last_interaction_at: e.string()
|
|
1997
|
-
}).extend(
|
|
1997
|
+
}).extend(ar.shape), sr = e.object({
|
|
1998
1998
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1999
1999
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
2000
2000
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -2010,7 +2010,7 @@ var Bn = e.object({
|
|
|
2010
2010
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
2011
2011
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
2012
2012
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
2013
|
-
}),
|
|
2013
|
+
}), cr = e.object({
|
|
2014
2014
|
id: e.string().optional(),
|
|
2015
2015
|
audience: e.string().optional(),
|
|
2016
2016
|
friendly_name: e.string(),
|
|
@@ -2128,7 +2128,7 @@ var Bn = e.object({
|
|
|
2128
2128
|
"shared_planetscale"
|
|
2129
2129
|
]).optional(),
|
|
2130
2130
|
d1_database_id: e.string().max(64).optional(),
|
|
2131
|
-
attack_protection:
|
|
2131
|
+
attack_protection: tr.optional(),
|
|
2132
2132
|
mfa: e.object({
|
|
2133
2133
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2134
2134
|
factors: e.object({
|
|
@@ -2155,42 +2155,42 @@ var Bn = e.object({
|
|
|
2155
2155
|
}).optional(),
|
|
2156
2156
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2157
2157
|
}).optional()
|
|
2158
|
-
}),
|
|
2158
|
+
}), lr = e.object({
|
|
2159
2159
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2160
2160
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2161
|
-
}).extend(
|
|
2161
|
+
}).extend(cr.shape).extend({
|
|
2162
2162
|
id: e.string(),
|
|
2163
2163
|
is_control_plane: e.boolean().optional()
|
|
2164
|
-
}),
|
|
2164
|
+
}), ur = e.enum([
|
|
2165
2165
|
"provision",
|
|
2166
2166
|
"seed",
|
|
2167
2167
|
"upgrade",
|
|
2168
2168
|
"backup",
|
|
2169
2169
|
"deprovision"
|
|
2170
|
-
]),
|
|
2170
|
+
]), dr = e.enum([
|
|
2171
2171
|
"pending",
|
|
2172
2172
|
"running",
|
|
2173
2173
|
"succeeded",
|
|
2174
2174
|
"failed",
|
|
2175
2175
|
"cancelled"
|
|
2176
|
-
]),
|
|
2176
|
+
]), fr = e.enum(["inline", "cloudflare-workflows"]), pr = e.object({
|
|
2177
2177
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2178
2178
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2179
|
-
kind:
|
|
2180
|
-
engine:
|
|
2179
|
+
kind: ur,
|
|
2180
|
+
engine: fr,
|
|
2181
2181
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2182
2182
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2183
2183
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2184
2184
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2185
|
-
}),
|
|
2185
|
+
}), mr = pr.extend({
|
|
2186
2186
|
id: e.string(),
|
|
2187
|
-
status:
|
|
2187
|
+
status: dr,
|
|
2188
2188
|
current_step: e.string().max(255).nullable().optional(),
|
|
2189
2189
|
error: e.string().nullable().optional(),
|
|
2190
2190
|
created_at: e.string(),
|
|
2191
2191
|
updated_at: e.string(),
|
|
2192
2192
|
finished_at: e.string().nullable().optional()
|
|
2193
|
-
}),
|
|
2193
|
+
}), hr = mr.pick({
|
|
2194
2194
|
status: !0,
|
|
2195
2195
|
current_step: !0,
|
|
2196
2196
|
engine_instance_id: !0,
|
|
@@ -2198,56 +2198,56 @@ var Bn = e.object({
|
|
|
2198
2198
|
target_database_version: !0,
|
|
2199
2199
|
error: !0,
|
|
2200
2200
|
finished_at: !0
|
|
2201
|
-
}).partial(),
|
|
2201
|
+
}).partial(), gr = e.enum([
|
|
2202
2202
|
"started",
|
|
2203
2203
|
"succeeded",
|
|
2204
2204
|
"failed",
|
|
2205
2205
|
"retried",
|
|
2206
2206
|
"skipped",
|
|
2207
2207
|
"reconciled"
|
|
2208
|
-
]),
|
|
2208
|
+
]), _r = e.object({
|
|
2209
2209
|
operation_id: e.string().max(255),
|
|
2210
2210
|
step: e.string().max(255),
|
|
2211
|
-
outcome:
|
|
2211
|
+
outcome: gr,
|
|
2212
2212
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2213
2213
|
attempt: e.number().int().min(1).default(1)
|
|
2214
|
-
}),
|
|
2214
|
+
}), vr = _r.extend({
|
|
2215
2215
|
id: e.string(),
|
|
2216
2216
|
created_at: e.string()
|
|
2217
|
-
}),
|
|
2217
|
+
}), yr = e.enum([
|
|
2218
2218
|
"upgrade",
|
|
2219
2219
|
"reseed",
|
|
2220
2220
|
"backup"
|
|
2221
|
-
]),
|
|
2221
|
+
]), br = e.enum([
|
|
2222
2222
|
"pending",
|
|
2223
2223
|
"canary",
|
|
2224
2224
|
"rolling",
|
|
2225
2225
|
"paused",
|
|
2226
2226
|
"done",
|
|
2227
2227
|
"failed"
|
|
2228
|
-
]),
|
|
2229
|
-
kind:
|
|
2228
|
+
]), xr = e.object({
|
|
2229
|
+
kind: yr,
|
|
2230
2230
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2231
2231
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2232
2232
|
wave_size: e.number().int().min(1).default(10),
|
|
2233
2233
|
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2234
2234
|
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2235
2235
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2236
|
-
}),
|
|
2236
|
+
}), Sr = xr.extend({
|
|
2237
2237
|
id: e.string(),
|
|
2238
|
-
status:
|
|
2238
|
+
status: br,
|
|
2239
2239
|
created_at: e.string(),
|
|
2240
2240
|
updated_at: e.string(),
|
|
2241
2241
|
finished_at: e.string().nullable().optional()
|
|
2242
|
-
}),
|
|
2242
|
+
}), Cr = Sr.pick({
|
|
2243
2243
|
status: !0,
|
|
2244
2244
|
wave_size: !0,
|
|
2245
2245
|
canary_tenant_ids: !0,
|
|
2246
2246
|
filter: !0,
|
|
2247
2247
|
finished_at: !0
|
|
2248
|
-
}).partial(),
|
|
2248
|
+
}).partial(), wr = /* @__PURE__ */ function(e) {
|
|
2249
2249
|
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;
|
|
2250
|
-
}({}),
|
|
2250
|
+
}({}), Tr = e.object({
|
|
2251
2251
|
access_token: e.string(),
|
|
2252
2252
|
id_token: e.string().optional(),
|
|
2253
2253
|
scope: e.string().optional(),
|
|
@@ -2262,7 +2262,7 @@ e.object({
|
|
|
2262
2262
|
});
|
|
2263
2263
|
//#endregion
|
|
2264
2264
|
//#region src/types/Theme.ts
|
|
2265
|
-
var
|
|
2265
|
+
var Er = e.object({
|
|
2266
2266
|
button_border_radius: e.number(),
|
|
2267
2267
|
button_border_weight: e.number(),
|
|
2268
2268
|
buttons_style: e.enum([
|
|
@@ -2280,7 +2280,7 @@ var Tr = e.object({
|
|
|
2280
2280
|
show_widget_shadow: e.boolean(),
|
|
2281
2281
|
widget_border_weight: e.number(),
|
|
2282
2282
|
widget_corner_radius: e.number()
|
|
2283
|
-
}),
|
|
2283
|
+
}), Dr = e.object({
|
|
2284
2284
|
base_focus_color: e.string(),
|
|
2285
2285
|
base_hover_color: e.string(),
|
|
2286
2286
|
body_text: e.string(),
|
|
@@ -2304,20 +2304,20 @@ var Tr = e.object({
|
|
|
2304
2304
|
success: e.string(),
|
|
2305
2305
|
widget_background: e.string(),
|
|
2306
2306
|
widget_border: e.string()
|
|
2307
|
-
}),
|
|
2307
|
+
}), q = e.object({
|
|
2308
2308
|
bold: e.boolean(),
|
|
2309
2309
|
size: e.number()
|
|
2310
|
-
}),
|
|
2311
|
-
body_text:
|
|
2312
|
-
buttons_text:
|
|
2310
|
+
}), Or = e.object({
|
|
2311
|
+
body_text: q,
|
|
2312
|
+
buttons_text: q,
|
|
2313
2313
|
font_url: e.string(),
|
|
2314
|
-
input_labels:
|
|
2315
|
-
links:
|
|
2314
|
+
input_labels: q,
|
|
2315
|
+
links: q,
|
|
2316
2316
|
links_style: e.enum(["normal", "underlined"]),
|
|
2317
2317
|
reference_text_size: e.number(),
|
|
2318
|
-
subtitle:
|
|
2319
|
-
title:
|
|
2320
|
-
}),
|
|
2318
|
+
subtitle: q,
|
|
2319
|
+
title: q
|
|
2320
|
+
}), kr = e.object({
|
|
2321
2321
|
background_color: e.string(),
|
|
2322
2322
|
background_image_url: e.string(),
|
|
2323
2323
|
page_layout: e.enum([
|
|
@@ -2330,7 +2330,7 @@ var Tr = e.object({
|
|
|
2330
2330
|
"chip",
|
|
2331
2331
|
"none"
|
|
2332
2332
|
]).optional()
|
|
2333
|
-
}),
|
|
2333
|
+
}), Ar = e.object({
|
|
2334
2334
|
header_text_alignment: e.enum([
|
|
2335
2335
|
"center",
|
|
2336
2336
|
"left",
|
|
@@ -2345,72 +2345,72 @@ var Tr = e.object({
|
|
|
2345
2345
|
]),
|
|
2346
2346
|
logo_url: e.string(),
|
|
2347
2347
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2348
|
-
}),
|
|
2349
|
-
borders:
|
|
2350
|
-
colors:
|
|
2348
|
+
}), jr = e.object({
|
|
2349
|
+
borders: Er,
|
|
2350
|
+
colors: Dr,
|
|
2351
2351
|
displayName: e.string(),
|
|
2352
|
-
fonts:
|
|
2353
|
-
page_background:
|
|
2354
|
-
widget:
|
|
2355
|
-
}),
|
|
2352
|
+
fonts: Or,
|
|
2353
|
+
page_background: kr,
|
|
2354
|
+
widget: Ar
|
|
2355
|
+
}), Mr = jr.extend({ themeId: e.string() }), Nr = e.object({
|
|
2356
2356
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2357
2357
|
identifier_first: e.boolean().default(!0),
|
|
2358
2358
|
password_first: e.boolean().default(!1),
|
|
2359
2359
|
show_last_used_connection: e.boolean().default(!1),
|
|
2360
2360
|
webauthn_platform_first_factor: e.boolean()
|
|
2361
|
-
}),
|
|
2361
|
+
}), Pr = e.object({
|
|
2362
2362
|
hosts: e.array(e.string()).optional(),
|
|
2363
2363
|
methods: e.array(e.string()).optional(),
|
|
2364
2364
|
path: e.string().default("/*"),
|
|
2365
2365
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2366
2366
|
query: e.record(e.string(), e.string()).optional()
|
|
2367
|
-
}),
|
|
2367
|
+
}), Fr = e.object({
|
|
2368
2368
|
type: e.string(),
|
|
2369
2369
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2370
|
-
}),
|
|
2370
|
+
}), J = e.object({
|
|
2371
2371
|
id: e.string().optional(),
|
|
2372
2372
|
custom_domain_id: e.string(),
|
|
2373
2373
|
priority: e.number().int().default(100),
|
|
2374
|
-
match:
|
|
2375
|
-
handlers: e.array(
|
|
2376
|
-
}),
|
|
2374
|
+
match: Pr,
|
|
2375
|
+
handlers: e.array(Fr).min(1)
|
|
2376
|
+
}), Ir = J.extend({
|
|
2377
2377
|
id: e.string(),
|
|
2378
2378
|
tenant_id: e.string(),
|
|
2379
2379
|
created_at: e.string(),
|
|
2380
2380
|
updated_at: e.string()
|
|
2381
|
-
}),
|
|
2381
|
+
}), Lr = J.partial().omit({
|
|
2382
2382
|
id: !0,
|
|
2383
2383
|
custom_domain_id: !0
|
|
2384
|
-
}),
|
|
2384
|
+
}), Rr = e.object({
|
|
2385
2385
|
scim: e.string(),
|
|
2386
2386
|
auth0: e.string()
|
|
2387
|
-
}),
|
|
2387
|
+
}), zr = e.object({
|
|
2388
2388
|
connection_id: e.string(),
|
|
2389
2389
|
user_id_attribute: e.string().default("externalId"),
|
|
2390
|
-
mapping: e.array(
|
|
2391
|
-
}),
|
|
2390
|
+
mapping: e.array(Rr).default([])
|
|
2391
|
+
}), Br = e.object({
|
|
2392
2392
|
created_at: e.string(),
|
|
2393
2393
|
updated_at: e.string()
|
|
2394
|
-
}).extend(
|
|
2394
|
+
}).extend(zr.shape), Vr = e.object({
|
|
2395
2395
|
token_id: e.string(),
|
|
2396
2396
|
connection_id: e.string(),
|
|
2397
2397
|
token_hash: e.string(),
|
|
2398
2398
|
scopes: e.array(e.string()).default([]),
|
|
2399
2399
|
valid_until: e.string().optional()
|
|
2400
|
-
}),
|
|
2400
|
+
}), Hr = e.object({
|
|
2401
2401
|
created_at: e.string(),
|
|
2402
2402
|
last_used_at: e.string().optional()
|
|
2403
|
-
}).extend(
|
|
2403
|
+
}).extend(Vr.shape), Ur = e.object({
|
|
2404
2404
|
connection_id: e.string(),
|
|
2405
2405
|
external_id: e.string(),
|
|
2406
2406
|
user_id: e.string()
|
|
2407
|
-
}),
|
|
2407
|
+
}), Wr = e.object({ created_at: e.string() }).extend(Ur.shape), Gr = e.object({
|
|
2408
2408
|
name: e.string(),
|
|
2409
2409
|
enabled: e.boolean().optional().default(!0),
|
|
2410
2410
|
default_from_address: e.string().optional(),
|
|
2411
2411
|
credentials: e.record(e.string(), e.unknown()),
|
|
2412
2412
|
settings: e.object({}).optional()
|
|
2413
|
-
}),
|
|
2413
|
+
}), Kr = e.enum([
|
|
2414
2414
|
"verify_email",
|
|
2415
2415
|
"verify_email_by_code",
|
|
2416
2416
|
"reset_email",
|
|
@@ -2423,8 +2423,8 @@ var Tr = e.object({
|
|
|
2423
2423
|
"change_password",
|
|
2424
2424
|
"password_reset",
|
|
2425
2425
|
"user_invitation"
|
|
2426
|
-
]),
|
|
2427
|
-
template:
|
|
2426
|
+
]), qr = e.object({
|
|
2427
|
+
template: Kr,
|
|
2428
2428
|
body: e.string(),
|
|
2429
2429
|
from: e.string(),
|
|
2430
2430
|
subject: e.string(),
|
|
@@ -2433,7 +2433,7 @@ var Tr = e.object({
|
|
|
2433
2433
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2434
2434
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2435
2435
|
enabled: e.boolean().default(!0)
|
|
2436
|
-
}),
|
|
2436
|
+
}), Jr = e.object({
|
|
2437
2437
|
id: e.string(),
|
|
2438
2438
|
login_id: e.string(),
|
|
2439
2439
|
user_id: e.string(),
|
|
@@ -2441,7 +2441,7 @@ var Tr = e.object({
|
|
|
2441
2441
|
expires_at: e.string().optional(),
|
|
2442
2442
|
idle_expires_at: e.string().optional(),
|
|
2443
2443
|
last_exchanged_at: e.string().optional(),
|
|
2444
|
-
device:
|
|
2444
|
+
device: ir,
|
|
2445
2445
|
resource_servers: e.array(e.object({
|
|
2446
2446
|
audience: e.string(),
|
|
2447
2447
|
scopes: e.string()
|
|
@@ -2452,19 +2452,19 @@ var Tr = e.object({
|
|
|
2452
2452
|
family_id: e.string().optional(),
|
|
2453
2453
|
rotated_to: e.string().optional(),
|
|
2454
2454
|
rotated_at: e.string().optional()
|
|
2455
|
-
}),
|
|
2455
|
+
}), Yr = Jr.extend({
|
|
2456
2456
|
created_at: e.string(),
|
|
2457
2457
|
revoked_at: e.string().optional()
|
|
2458
|
-
}),
|
|
2458
|
+
}), Xr = e.object({
|
|
2459
2459
|
to: e.string(),
|
|
2460
2460
|
message: e.string()
|
|
2461
|
-
}),
|
|
2461
|
+
}), Zr = e.object({
|
|
2462
2462
|
name: e.string(),
|
|
2463
2463
|
options: e.object({})
|
|
2464
|
-
}),
|
|
2464
|
+
}), Qr = e.object({
|
|
2465
2465
|
value: e.string(),
|
|
2466
2466
|
description: e.string().optional()
|
|
2467
|
-
}),
|
|
2467
|
+
}), $r = e.object({
|
|
2468
2468
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2469
2469
|
enforce_policies: e.boolean().optional(),
|
|
2470
2470
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2472,11 +2472,11 @@ var Tr = e.object({
|
|
|
2472
2472
|
persist_client_authorization: e.boolean().optional(),
|
|
2473
2473
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2474
2474
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2475
|
-
}),
|
|
2475
|
+
}), ei = e.object({
|
|
2476
2476
|
id: e.string().optional(),
|
|
2477
2477
|
name: e.string(),
|
|
2478
2478
|
identifier: e.string(),
|
|
2479
|
-
scopes: e.array(
|
|
2479
|
+
scopes: e.array(Qr).optional(),
|
|
2480
2480
|
signing_alg: e.string().optional(),
|
|
2481
2481
|
signing_secret: e.string().optional(),
|
|
2482
2482
|
token_lifetime: e.number().default(86400),
|
|
@@ -2484,37 +2484,37 @@ var Tr = e.object({
|
|
|
2484
2484
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2485
2485
|
allow_offline_access: e.boolean().optional(),
|
|
2486
2486
|
verificationKey: e.string().optional(),
|
|
2487
|
-
options:
|
|
2487
|
+
options: $r.optional(),
|
|
2488
2488
|
is_system: e.boolean().optional(),
|
|
2489
2489
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2490
|
-
}),
|
|
2490
|
+
}), ti = ei.extend({
|
|
2491
2491
|
created_at: e.string().optional(),
|
|
2492
2492
|
updated_at: e.string().optional()
|
|
2493
|
-
}),
|
|
2493
|
+
}), ni = e.array(ti), ri = e.object({
|
|
2494
2494
|
role_id: e.string(),
|
|
2495
2495
|
resource_server_identifier: e.string(),
|
|
2496
2496
|
permission_name: e.string()
|
|
2497
|
-
}),
|
|
2497
|
+
}), ii = ri.extend({ created_at: e.string() }), ai = e.array(ii), oi = e.object({
|
|
2498
2498
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2499
2499
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2500
2500
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2501
2501
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2502
|
-
}),
|
|
2502
|
+
}), si = oi.extend({ id: e.string() }), ci = e.object({
|
|
2503
2503
|
user_id: e.string(),
|
|
2504
2504
|
last_login: e.string().optional(),
|
|
2505
2505
|
last_ip: e.string().optional(),
|
|
2506
2506
|
login_count: e.number().default(0),
|
|
2507
2507
|
failed_logins: e.array(e.string()).optional(),
|
|
2508
2508
|
last_password_reset: e.string().optional()
|
|
2509
|
-
}),
|
|
2509
|
+
}), li = e.object({
|
|
2510
2510
|
user_id: e.string(),
|
|
2511
2511
|
resource_server_identifier: e.string(),
|
|
2512
2512
|
permission_name: e.string(),
|
|
2513
2513
|
organization_id: e.string().optional()
|
|
2514
|
-
}),
|
|
2514
|
+
}), ui = li.extend({
|
|
2515
2515
|
tenant_id: e.string(),
|
|
2516
2516
|
created_at: e.string().optional()
|
|
2517
|
-
}),
|
|
2517
|
+
}), di = e.array(ui), fi = e.object({
|
|
2518
2518
|
user_id: e.string(),
|
|
2519
2519
|
resource_server_identifier: e.string(),
|
|
2520
2520
|
resource_server_name: e.string(),
|
|
@@ -2522,65 +2522,65 @@ var Tr = e.object({
|
|
|
2522
2522
|
description: e.string().nullable().optional(),
|
|
2523
2523
|
created_at: e.string().optional(),
|
|
2524
2524
|
organization_id: e.string().optional()
|
|
2525
|
-
}),
|
|
2525
|
+
}), pi = e.array(fi), mi = e.object({
|
|
2526
2526
|
user_id: e.string(),
|
|
2527
2527
|
role_id: e.string(),
|
|
2528
2528
|
organization_id: e.string().optional()
|
|
2529
|
-
}),
|
|
2529
|
+
}), hi = mi.extend({
|
|
2530
2530
|
tenant_id: e.string(),
|
|
2531
2531
|
created_at: e.string().optional()
|
|
2532
|
-
}),
|
|
2532
|
+
}), gi = e.array(hi), _i = e.object({
|
|
2533
2533
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2534
2534
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2535
2535
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2536
2536
|
is_system: e.boolean().optional(),
|
|
2537
2537
|
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." })
|
|
2538
|
-
}),
|
|
2538
|
+
}), vi = _i.extend({
|
|
2539
2539
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2540
2540
|
created_at: e.string().optional(),
|
|
2541
2541
|
updated_at: e.string().optional()
|
|
2542
|
-
}),
|
|
2542
|
+
}), yi = e.array(vi), bi = e.object({
|
|
2543
2543
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2544
2544
|
colors: e.object({
|
|
2545
2545
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2546
2546
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2547
2547
|
}).optional()
|
|
2548
|
-
}).optional(),
|
|
2548
|
+
}).optional(), xi = e.object({
|
|
2549
2549
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2550
2550
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2551
2551
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2552
2552
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2553
|
-
}),
|
|
2553
|
+
}), Si = e.object({ client_credentials: e.object({
|
|
2554
2554
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2555
2555
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2556
2556
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2557
|
-
}).optional() }).optional(),
|
|
2557
|
+
}).optional() }).optional(), Ci = e.object({
|
|
2558
2558
|
id: e.string().optional(),
|
|
2559
2559
|
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." }),
|
|
2560
2560
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2561
|
-
branding:
|
|
2561
|
+
branding: bi,
|
|
2562
2562
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2563
|
-
enabled_connections: e.array(
|
|
2564
|
-
token_quota:
|
|
2565
|
-
}),
|
|
2563
|
+
enabled_connections: e.array(xi).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2564
|
+
token_quota: Si
|
|
2565
|
+
}), wi = Ci.extend(t.shape).extend({
|
|
2566
2566
|
id: e.string(),
|
|
2567
2567
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2568
|
-
}),
|
|
2568
|
+
}), Ti = e.object({
|
|
2569
2569
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2570
2570
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2571
2571
|
show_as_button: e.boolean().optional().default(!0),
|
|
2572
2572
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2573
|
-
}),
|
|
2573
|
+
}), Ei = Ti.extend({
|
|
2574
2574
|
connection: e.object({
|
|
2575
2575
|
name: e.string().optional(),
|
|
2576
2576
|
strategy: e.string().optional()
|
|
2577
2577
|
}).optional(),
|
|
2578
2578
|
created_at: e.string().optional(),
|
|
2579
2579
|
updated_at: e.string().optional()
|
|
2580
|
-
}),
|
|
2580
|
+
}), Di = e.array(Ei), Oi = e.object({
|
|
2581
2581
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2582
2582
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2583
|
-
}),
|
|
2583
|
+
}), ki = Oi.extend(t.shape).extend({ id: e.string() }), Ai = e.object({
|
|
2584
2584
|
idle_session_lifetime: e.number().default(72),
|
|
2585
2585
|
session_lifetime: e.number().default(168),
|
|
2586
2586
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2659,7 +2659,7 @@ var Tr = e.object({
|
|
|
2659
2659
|
}).optional(),
|
|
2660
2660
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2661
2661
|
}).optional()
|
|
2662
|
-
}),
|
|
2662
|
+
}), ji = e.object({
|
|
2663
2663
|
date: e.string().openapi({
|
|
2664
2664
|
description: "Date these events occurred in ISO 8601 format",
|
|
2665
2665
|
example: "2025-12-19"
|
|
@@ -2684,10 +2684,10 @@ var Tr = e.object({
|
|
|
2684
2684
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2685
2685
|
example: "2025-12-19T00:00:00.000Z"
|
|
2686
2686
|
})
|
|
2687
|
-
}),
|
|
2687
|
+
}), Mi = e.number().openapi({
|
|
2688
2688
|
description: "Number of active users in the last 30 days",
|
|
2689
2689
|
example: 1234
|
|
2690
|
-
}),
|
|
2690
|
+
}), Ni = e.enum([
|
|
2691
2691
|
"active-users",
|
|
2692
2692
|
"logins",
|
|
2693
2693
|
"signups",
|
|
@@ -2699,64 +2699,64 @@ var Tr = e.object({
|
|
|
2699
2699
|
"mfa",
|
|
2700
2700
|
"email-verifications",
|
|
2701
2701
|
"codes-sent"
|
|
2702
|
-
]),
|
|
2702
|
+
]), Pi = e.enum([
|
|
2703
2703
|
"hour",
|
|
2704
2704
|
"day",
|
|
2705
2705
|
"week",
|
|
2706
2706
|
"month"
|
|
2707
|
-
]),
|
|
2707
|
+
]), Fi = e.enum([
|
|
2708
2708
|
"time",
|
|
2709
2709
|
"connection",
|
|
2710
2710
|
"client_id",
|
|
2711
2711
|
"user_type",
|
|
2712
2712
|
"event"
|
|
2713
|
-
]),
|
|
2713
|
+
]), Ii = e.enum([
|
|
2714
2714
|
"password",
|
|
2715
2715
|
"social",
|
|
2716
2716
|
"passwordless",
|
|
2717
2717
|
"enterprise"
|
|
2718
|
-
]),
|
|
2718
|
+
]), Li = e.object({
|
|
2719
2719
|
cohort: e.string(),
|
|
2720
2720
|
sessions: e.number(),
|
|
2721
2721
|
active: e.array(e.number())
|
|
2722
|
-
}),
|
|
2722
|
+
}), Ri = e.object({
|
|
2723
2723
|
interval: e.literal("week"),
|
|
2724
2724
|
from: e.string(),
|
|
2725
2725
|
to: e.string(),
|
|
2726
|
-
cohorts: e.array(
|
|
2727
|
-
}),
|
|
2726
|
+
cohorts: e.array(Li)
|
|
2727
|
+
}), zi = e.object({
|
|
2728
2728
|
cohort: e.string(),
|
|
2729
2729
|
tokens: e.number(),
|
|
2730
2730
|
active: e.array(e.number())
|
|
2731
|
-
}),
|
|
2731
|
+
}), Bi = e.object({
|
|
2732
2732
|
interval: e.literal("week"),
|
|
2733
2733
|
from: e.string(),
|
|
2734
2734
|
to: e.string(),
|
|
2735
|
-
cohorts: e.array(
|
|
2736
|
-
}),
|
|
2735
|
+
cohorts: e.array(zi)
|
|
2736
|
+
}), Vi = e.object({
|
|
2737
2737
|
name: e.string(),
|
|
2738
2738
|
type: e.string()
|
|
2739
|
-
}),
|
|
2739
|
+
}), Hi = e.object({
|
|
2740
2740
|
elapsed: e.number(),
|
|
2741
2741
|
rows_read: e.number().optional(),
|
|
2742
2742
|
bytes_read: e.number().optional()
|
|
2743
|
-
}),
|
|
2744
|
-
meta: e.array(
|
|
2743
|
+
}), Ui = e.object({
|
|
2744
|
+
meta: e.array(Vi),
|
|
2745
2745
|
data: e.array(e.record(e.string(), e.any())),
|
|
2746
2746
|
rows: e.number(),
|
|
2747
2747
|
rows_before_limit_at_least: e.number().optional(),
|
|
2748
|
-
statistics:
|
|
2749
|
-
}),
|
|
2748
|
+
statistics: Hi.optional()
|
|
2749
|
+
}), Wi = 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(".")), Gi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2750
2750
|
type: "object",
|
|
2751
2751
|
additionalProperties: {
|
|
2752
2752
|
type: "object",
|
|
2753
2753
|
additionalProperties: { type: "string" }
|
|
2754
2754
|
}
|
|
2755
|
-
}),
|
|
2756
|
-
prompt:
|
|
2755
|
+
}), Ki = e.object({
|
|
2756
|
+
prompt: Wi,
|
|
2757
2757
|
language: e.string(),
|
|
2758
|
-
custom_text:
|
|
2759
|
-
}),
|
|
2758
|
+
custom_text: Gi
|
|
2759
|
+
}), qi = {
|
|
2760
2760
|
EMAIL: "email",
|
|
2761
2761
|
SMS: "sms",
|
|
2762
2762
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2772,17 +2772,17 @@ var Tr = e.object({
|
|
|
2772
2772
|
WAAD: "waad",
|
|
2773
2773
|
ADFS: "adfs",
|
|
2774
2774
|
OKTA: "okta"
|
|
2775
|
-
},
|
|
2775
|
+
}, Ji = {
|
|
2776
2776
|
DATABASE: "database",
|
|
2777
2777
|
SOCIAL: "social",
|
|
2778
2778
|
PASSWORDLESS: "passwordless"
|
|
2779
|
-
},
|
|
2780
|
-
function
|
|
2781
|
-
return e === "auth0" || e ===
|
|
2779
|
+
}, Yi = "auth0";
|
|
2780
|
+
function Xi(e) {
|
|
2781
|
+
return e === "auth0" || e === qi.USERNAME_PASSWORD || e === "auth2";
|
|
2782
2782
|
}
|
|
2783
2783
|
//#endregion
|
|
2784
2784
|
//#region src/types/AuthenticationMethod.ts
|
|
2785
|
-
var
|
|
2785
|
+
var Zi = e.enum([
|
|
2786
2786
|
"phone",
|
|
2787
2787
|
"totp",
|
|
2788
2788
|
"email",
|
|
@@ -2790,9 +2790,9 @@ var Xi = e.enum([
|
|
|
2790
2790
|
"webauthn-roaming",
|
|
2791
2791
|
"webauthn-platform",
|
|
2792
2792
|
"passkey"
|
|
2793
|
-
]),
|
|
2793
|
+
]), Qi = e.object({
|
|
2794
2794
|
user_id: e.string(),
|
|
2795
|
-
type:
|
|
2795
|
+
type: Zi,
|
|
2796
2796
|
phone_number: e.string().optional(),
|
|
2797
2797
|
totp_secret: e.string().optional(),
|
|
2798
2798
|
credential_id: e.string().optional(),
|
|
@@ -2803,7 +2803,7 @@ var Xi = e.enum([
|
|
|
2803
2803
|
friendly_name: e.string().optional(),
|
|
2804
2804
|
confirmed: e.boolean().default(!1)
|
|
2805
2805
|
});
|
|
2806
|
-
function
|
|
2806
|
+
function $i(t, n) {
|
|
2807
2807
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2808
2808
|
code: e.ZodIssueCode.custom,
|
|
2809
2809
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2826,15 +2826,15 @@ function Qi(t, n) {
|
|
|
2826
2826
|
path: ["public_key"]
|
|
2827
2827
|
}));
|
|
2828
2828
|
}
|
|
2829
|
-
var
|
|
2829
|
+
var ea = Qi.superRefine($i), ta = Qi.extend({
|
|
2830
2830
|
id: e.string(),
|
|
2831
2831
|
created_at: e.string(),
|
|
2832
2832
|
updated_at: e.string()
|
|
2833
|
-
}).superRefine(
|
|
2833
|
+
}).superRefine($i), na = e.object({
|
|
2834
2834
|
id: e.string().optional(),
|
|
2835
2835
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2836
2836
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2837
|
-
}),
|
|
2837
|
+
}), ra = {
|
|
2838
2838
|
"post-user-login": {
|
|
2839
2839
|
accessToken: ["setCustomClaim"],
|
|
2840
2840
|
idToken: ["setCustomClaim"],
|
|
@@ -2856,7 +2856,7 @@ var $i = Zi.superRefine(Qi), ea = Zi.extend({
|
|
|
2856
2856
|
};
|
|
2857
2857
|
//#endregion
|
|
2858
2858
|
//#region src/utils/user-id.ts
|
|
2859
|
-
function
|
|
2859
|
+
function ia(e) {
|
|
2860
2860
|
let [t, n] = e.split("|");
|
|
2861
2861
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2862
2862
|
return {
|
|
@@ -2866,7 +2866,7 @@ function ra(e) {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
//#endregion
|
|
2868
2868
|
//#region src/utils/passthrough.ts
|
|
2869
|
-
function
|
|
2869
|
+
function aa(e) {
|
|
2870
2870
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2871
2871
|
"create",
|
|
2872
2872
|
"rawCreate",
|
|
@@ -2900,12 +2900,12 @@ function ia(e) {
|
|
|
2900
2900
|
} : i.bind(e) : i;
|
|
2901
2901
|
} });
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function oa(e) {
|
|
2904
2904
|
return e;
|
|
2905
2905
|
}
|
|
2906
2906
|
//#endregion
|
|
2907
2907
|
//#region src/utils/connection-attributes.ts
|
|
2908
|
-
function
|
|
2908
|
+
function sa(e) {
|
|
2909
2909
|
let t = e?.options;
|
|
2910
2910
|
if (!t) return {
|
|
2911
2911
|
usernameIdentifierActive: !1,
|
|
@@ -2928,53 +2928,53 @@ function oa(e) {
|
|
|
2928
2928
|
}
|
|
2929
2929
|
//#endregion
|
|
2930
2930
|
//#region src/utils/guards.ts
|
|
2931
|
-
function
|
|
2931
|
+
function ca(e) {
|
|
2932
2932
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2933
2933
|
}
|
|
2934
2934
|
//#endregion
|
|
2935
2935
|
//#region src/utils/base64url.ts
|
|
2936
|
-
function
|
|
2936
|
+
function la(e) {
|
|
2937
2937
|
let t = "";
|
|
2938
2938
|
for (let n of e) t += String.fromCharCode(n);
|
|
2939
2939
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function ua(e) {
|
|
2942
2942
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2943
2943
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2944
2944
|
return r;
|
|
2945
2945
|
}
|
|
2946
|
-
function ua(e) {
|
|
2947
|
-
return ca(new TextEncoder().encode(e));
|
|
2948
|
-
}
|
|
2949
2946
|
function da(e) {
|
|
2950
|
-
return new
|
|
2947
|
+
return la(new TextEncoder().encode(e));
|
|
2948
|
+
}
|
|
2949
|
+
function fa(e) {
|
|
2950
|
+
return new TextDecoder().decode(ua(e));
|
|
2951
2951
|
}
|
|
2952
2952
|
//#endregion
|
|
2953
2953
|
//#region src/utils/base64.ts
|
|
2954
|
-
function
|
|
2954
|
+
function pa(e) {
|
|
2955
2955
|
let t = "";
|
|
2956
2956
|
for (let n of e) t += String.fromCharCode(n);
|
|
2957
2957
|
return btoa(t);
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2959
|
+
function ma(e) {
|
|
2960
2960
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2961
2961
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2962
2962
|
return n;
|
|
2963
2963
|
}
|
|
2964
2964
|
//#endregion
|
|
2965
2965
|
//#region src/utils/base32.ts
|
|
2966
|
-
var
|
|
2967
|
-
function
|
|
2966
|
+
var Y = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2967
|
+
function ha(e) {
|
|
2968
2968
|
let t = "", n = 0, r = 0;
|
|
2969
|
-
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t +=
|
|
2970
|
-
return r > 0 && (t +=
|
|
2969
|
+
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += Y[n >> r & 31];
|
|
2970
|
+
return r > 0 && (t += Y[n << 5 - r & 31]), t;
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function ga(e) {
|
|
2973
2973
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2974
2974
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2975
2975
|
let r = [], i = 0, a = 0;
|
|
2976
2976
|
for (let e of t) {
|
|
2977
|
-
let t =
|
|
2977
|
+
let t = Y.indexOf(e);
|
|
2978
2978
|
if (t === -1) throw Error(`Invalid base32 character: ${e}`);
|
|
2979
2979
|
i = i << 5 | t, a += 5, a >= 8 && (a -= 8, r.push(i >> a & 255));
|
|
2980
2980
|
}
|
|
@@ -2983,19 +2983,19 @@ function ha(e) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
//#endregion
|
|
2985
2985
|
//#region src/utils/hex.ts
|
|
2986
|
-
function
|
|
2986
|
+
function _a(e) {
|
|
2987
2987
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2988
2988
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2989
2989
|
return n;
|
|
2990
2990
|
}
|
|
2991
2991
|
//#endregion
|
|
2992
2992
|
//#region src/utils/cursor.ts
|
|
2993
|
-
function _a(e) {
|
|
2994
|
-
return ua(JSON.stringify(e));
|
|
2995
|
-
}
|
|
2996
2993
|
function va(e) {
|
|
2994
|
+
return da(JSON.stringify(e));
|
|
2995
|
+
}
|
|
2996
|
+
function ya(e) {
|
|
2997
2997
|
try {
|
|
2998
|
-
let t = JSON.parse(
|
|
2998
|
+
let t = JSON.parse(fa(e));
|
|
2999
2999
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
3000
3000
|
} catch {
|
|
3001
3001
|
return null;
|
|
@@ -3003,7 +3003,7 @@ function va(e) {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
//#endregion
|
|
3005
3005
|
//#region src/utils/lucene.ts
|
|
3006
|
-
function
|
|
3006
|
+
function ba(e, t) {
|
|
3007
3007
|
let n = new Set(t), r = (e) => {
|
|
3008
3008
|
let t = [], r = "", i = !1;
|
|
3009
3009
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -3021,23 +3021,23 @@ function ya(e, t) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
//#endregion
|
|
3023
3023
|
//#region src/utils/session-retention.ts
|
|
3024
|
-
var
|
|
3025
|
-
function
|
|
3026
|
-
return Math.floor((e +
|
|
3024
|
+
var X = 10080 * 60 * 1e3, Z = 4320 * 60 * 1e3;
|
|
3025
|
+
function xa(e) {
|
|
3026
|
+
return Math.floor((e + Z) / X);
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3029
|
-
return e *
|
|
3028
|
+
function Q(e) {
|
|
3029
|
+
return e * X - Z;
|
|
3030
3030
|
}
|
|
3031
|
-
function
|
|
3032
|
-
let n =
|
|
3031
|
+
function Sa(e, t = Date.now()) {
|
|
3032
|
+
let n = xa(t), r = n - e + 1;
|
|
3033
3033
|
return {
|
|
3034
3034
|
currentWeek: n,
|
|
3035
3035
|
firstWeek: r,
|
|
3036
|
-
sinceMs:
|
|
3036
|
+
sinceMs: Q(r)
|
|
3037
3037
|
};
|
|
3038
3038
|
}
|
|
3039
|
-
function
|
|
3040
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3039
|
+
function Ca(e, t, n = Date.now()) {
|
|
3040
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = Sa(t, n), o = /* @__PURE__ */ new Map();
|
|
3041
3041
|
for (let t of e) {
|
|
3042
3042
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3043
3043
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3048,7 +3048,7 @@ function Sa(e, t, n = Date.now()) {
|
|
|
3048
3048
|
let t = o.get(e), n = r - e, i = [], a = 0;
|
|
3049
3049
|
for (let e = n; e >= 0; e--) a += t?.get(e) ?? 0, i[e] = a;
|
|
3050
3050
|
s.push({
|
|
3051
|
-
cohort: new Date(
|
|
3051
|
+
cohort: new Date(Q(e)).toISOString().slice(0, 10),
|
|
3052
3052
|
sessions: i[0] ?? 0,
|
|
3053
3053
|
active: i
|
|
3054
3054
|
});
|
|
@@ -3060,8 +3060,8 @@ function Sa(e, t, n = Date.now()) {
|
|
|
3060
3060
|
cohorts: s
|
|
3061
3061
|
};
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3064
|
-
let r =
|
|
3063
|
+
function wa(e, t, n = Date.now()) {
|
|
3064
|
+
let r = Ca(e, t, n);
|
|
3065
3065
|
return {
|
|
3066
3066
|
interval: r.interval,
|
|
3067
3067
|
from: r.from,
|
|
@@ -3074,4 +3074,23 @@ function Ca(e, t, n = Date.now()) {
|
|
|
3074
3074
|
};
|
|
3075
3075
|
}
|
|
3076
3076
|
//#endregion
|
|
3077
|
-
|
|
3077
|
+
//#region src/utils/username-validation.ts
|
|
3078
|
+
var Ta = /^[A-Za-z0-9_+\-.!#$'^`~]+$/, Ea = "Username can only contain alphanumeric characters and the following characters: '_', '+', '-', '.', '!', '#', '$', \"'\", '^', '`', '~'", Da = "Usernames must not contain \"@\". Use the email field for email addresses.";
|
|
3079
|
+
function $(e) {
|
|
3080
|
+
return Ta.test(e);
|
|
3081
|
+
}
|
|
3082
|
+
function Oa(e) {
|
|
3083
|
+
return e.toLowerCase();
|
|
3084
|
+
}
|
|
3085
|
+
function ka(e, t) {
|
|
3086
|
+
if (e.includes("@")) return Da;
|
|
3087
|
+
if (!$(e)) return Ea;
|
|
3088
|
+
if (t) {
|
|
3089
|
+
let n = [...e].length;
|
|
3090
|
+
if (n < t.min) return `Username must be at least ${t.min} characters`;
|
|
3091
|
+
if (n > t.max) return `Username must be at most ${t.max} characters`;
|
|
3092
|
+
}
|
|
3093
|
+
return null;
|
|
3094
|
+
}
|
|
3095
|
+
//#endregion
|
|
3096
|
+
export { _e as Auth0ActionEnum, Bn as Auth0Client, O as AuthorizationResponseMode, D as AuthorizationResponseType, Ze as CodeChallengeMethod, T as ComponentCategory, w as ComponentType, Yi as DATABASE_CONNECTION_STRATEGY, ve as EmailActionEnum, Gt as FORM_FIELD_TYPES, ge as FlowActionTypeEnum, wr as GrantType, Vn as LocationInfo, G as LogTypes, An as LoginSessionState, Z as MONDAY_EPOCH_SHIFT_MS, Ve as NodeType, Se as RedirectTargetEnum, qi as Strategy, Ji as StrategyType, ra as TRIGGER_API_SHAPES, Da as USERNAME_CONTAINS_AT_MESSAGE, Ea as USERNAME_INVALID_CHARACTERS_MESSAGE, X as WEEK_MS, r as actionDependencySchema, l as actionExecutionErrorSchema, ie as actionExecutionInsertSchema, te as actionExecutionLogEntrySchema, ne as actionExecutionLogsSchema, u as actionExecutionResultSchema, re as actionExecutionSchema, c as actionExecutionStatusSchema, ee as actionExecutionTriggerIdSchema, a as actionInsertSchema, We as actionNodeSchema, s as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, ae as actionVersionInsertSchema, oe as actionVersionSchema, Mi as activeUsersResponseSchema, ce as actorSchema, m as addressSchema, sn as allowedTriggersForHook, Vi as analyticsColumnMetaSchema, Fi as analyticsGroupBySchema, Pi as analyticsIntervalSchema, Ui as analyticsQueryResponseSchema, Ni as analyticsResourceSchema, Hi as analyticsStatisticsSchema, Ii as analyticsUserTypeSchema, tr as attackProtectionSchema, se as auditCategorySchema, me as auditEventInsertSchema, he as auditEventSchema, pe as auth0ClientSchema, Xe as auth0FlowInsertSchema, Ye as auth0FlowSchema, Ee as auth0QuerySchema, be as auth0UpdateUserActionSchema, Oe as auth0UserResponseSchema, et as authParamsSchema, ea as authenticationMethodInsertSchema, ta as authenticationMethodSchema, Zi as authenticationMethodTypeSchema, h as baseUserSchema, Ht as blockComponentSchema, Er as bordersSchema, tt as brandingSchema, Qn as breachedPasswordDetectionSchema, $n as bruteForceProtectionSchema, wa as buildRefreshTokenRetention, Ca as buildSessionRetention, Ie as buttonComponentSchema, $e as claimsRequestSchema, y as clientGrantInsertSchema, Ne as clientGrantListSchema, b as clientGrantSchema, v as clientInsertSchema, S as clientRegistrationTokenInsertSchema, Pe as clientRegistrationTokenSchema, x as clientRegistrationTokenTypeSchema, Me as clientSchema, rt as codeInsertSchema, it as codeSchema, nt as codeTypeSchema, Dr as colorsSchema, $t as componentMessageSchema, Be as componentSchema, ot as connectionInsertSchema, at as connectionOptionsSchema, st as connectionSchema, C as coordinatesSchema, aa as createPassthroughAdapter, oa as createWriteOnlyAdapter, ft as customDomainCertificateUploadSchema, A as customDomainInsertSchema, lt as customDomainSchema, ut as customDomainUpdateSchema, dt as customDomainWithTenantIdSchema, Ki as customTextEntrySchema, Gi as customTextSchema, ji as dailyStatsSchema, ga as decodeBase32, ma as decodeBase64, ua as decodeBase64Url, fa as decodeBase64UrlString, ya as decodeCursor, Gr as emailProviderSchema, Kr as emailTemplateNameSchema, qr as emailTemplateSchema, ye as emailVerificationRulesSchema, xe as emailVerifyActionSchema, ha as encodeBase32, pa as encodeBase64, la as encodeBase64Url, da as encodeBase64UrlString, va as encodeCursor, _a as encodeHex, Je as endingSchema, Wt as fieldComponentSchema, d as flowActionStepSchema, we as flowInsertSchema, Te as flowSchema, Re as flowsFieldComponentSchema, Ue as flowsFlowNodeSchema, He as flowsStepNodeSchema, q as fontDetailsSchema, Or as fontsSchema, Kt as formControlSchema, Zt as formInsertSchema, F as formNodeComponentDefinition, Xt as formNodeSchema, Qt as formSchema, ze as genericComponentSchema, Ge as genericNodeSchema, sa as getConnectionIdentifierConfig, zn as getLogTypeCategory, Rn as getLogTypeDescription, oi as grantInsertSchema, si as grantSchema, Fr as handlerConfigSchema, xn as hookCodeInsertSchema, Sn as hookCodeSchema, mn as hookInsertSchema, H as hookPageId, bn as hookSchema, U as hookTemplateId, cn as hookTemplates, p as identitySchema, na as importMetadataSchema, Tn as inviteInsertSchema, En as inviteSchema, wn as inviteeSchema, Cn as inviterSchema, nn as isBlockComponent, Xi as isDatabaseConnectionStrategy, an as isFieldComponent, ca as isPlainObject, rn as isWidgetComponent, On as jwksKeySchema, Dn as jwksSchema, Le as legalComponentSchema, fe as locationInfoSchema, Hn as logInsertSchema, Un as logSchema, Gn as logStreamFilterSchema, Kn as logStreamInsertSchema, qn as logStreamSchema, K as logStreamStatusSchema, Wn as logStreamTypeSchema, Ln as logTypeCategories, In as logTypeDescriptions, Mn as loginSessionAuthStrategySchema, Nn as loginSessionInsertSchema, Pn as loginSessionSchema, jn as loginSessionStateSchema, Pr as matchSchema, Jn as migrationProviderTypeSchema, Yn as migrationSourceCredentialsSchema, Xn as migrationSourceInsertSchema, Zn as migrationSourceSchema, Ke as nodeSchema, Oa as normalizeUsername, kn as openIDConfigurationSchema, bi as organizationBrandingSchema, Ti as organizationConnectionInsertSchema, Di as organizationConnectionListSchema, Ei as organizationConnectionSchema, xi as organizationEnabledConnectionSchema, Ci as organizationInsertSchema, wi as organizationSchema, Si as organizationTokenQuotaSchema, kr as pageBackgroundSchema, ia as parseUserId, nr as passwordInsertSchema, rr as passwordSchema, f as profileDataSchema, Wi as promptScreenSchema, Nr as promptSettingSchema, J as proxyRouteInsertSchema, Ir as proxyRouteSchema, Lr as proxyRouteUpdateSchema, Ce as redirectActionSchema, Jr as refreshTokenInsertSchema, zi as refreshTokenRetentionCohortSchema, Bi as refreshTokenRetentionResponseSchema, Yr as refreshTokenSchema, ue as requestContextSchema, ei as resourceServerInsertSchema, ni as resourceServerListSchema, $r as resourceServerOptionsSchema, ti as resourceServerSchema, Qr as resourceServerScopeSchema, de as responseContextSchema, Fe as richTextComponentSchema, _i as roleInsertSchema, yi as roleListSchema, ri as rolePermissionInsertSchema, ai as rolePermissionListSchema, ii as rolePermissionSchema, vi as roleSchema, xr as rolloutInsertSchema, yr as rolloutKindSchema, Sr as rolloutSchema, br as rolloutStatusSchema, Cr as rolloutUpdateSchema, ba as sanitizeLuceneQuery, zr as scimConfigurationInsertSchema, Br as scimConfigurationSchema, Ur as scimExternalIdInsertSchema, Wr as scimExternalIdSchema, Rr as scimMappingEntrySchema, Vr as scimTokenInsertSchema, Hr as scimTokenSchema, en as screenLinkSchema, ar as sessionInsertSchema, Li as sessionRetentionCohortSchema, Ri as sessionRetentionResponseSchema, Sa as sessionRetentionWindow, or as sessionSchema, sr as signingKeySchema, Zr as smsProviderSchema, Xr as smsSendParamsSchema, qe as startSchema, er as suspiciousIpThrottlingSchema, le as targetSchema, cr as tenantInsertSchema, fr as tenantOperationEngineSchema, _r as tenantOperationEventInsertSchema, gr as tenantOperationEventOutcomeSchema, vr as tenantOperationEventSchema, pr as tenantOperationInsertSchema, ur as tenantOperationKindSchema, mr as tenantOperationSchema, dr as tenantOperationStatusSchema, hr as tenantOperationUpdateSchema, lr as tenantSchema, Ai as tenantSettingsSchema, jr as themeInsertSchema, Mr as themeSchema, Tr as tokenResponseSchema, De as totalsSchema, tn as uiScreenSchema, ci as userActivitySchema, g as userInsertSchema, Oi as userOrganizationInsertSchema, ki as userOrganizationSchema, li as userPermissionInsertSchema, di as userPermissionListSchema, ui as userPermissionSchema, pi as userPermissionWithDetailsListSchema, fi as userPermissionWithDetailsSchema, ke as userResponseSchema, mi as userRoleInsertSchema, gi as userRoleListSchema, hi as userRoleSchema, _ as userSchema, $ as usernameHasOnlyAllowedCharacters, ka as validateUsername, ct as verificationMethodsSchema, xa as weekIndex, Q as weekStartMs, Ut as widgetComponentSchema, Ar as widgetSchema };
|