@authhero/adapter-interfaces 4.10.0 → 4.12.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 +112 -6
- package/dist/adapter-interfaces.mjs +451 -419
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/RefreshTokens.d.ts +18 -1
- package/dist/types/types/Action.d.ts +40 -0
- package/dist/types/types/Code.d.ts +5 -2
- package/dist/types/utils/feature-not-supported.d.ts +26 -0
- package/dist/types/utils/http.d.ts +12 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/lucene.d.ts +7 -1
- 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), ee = e.string(), c = e.enum([
|
|
36
|
+
}).extend(t.shape), ee = e.object({ name: e.string() }), te = s.extend({ secrets: e.array(ee).optional() }), c = e.string(), l = e.enum([
|
|
37
37
|
"unspecified",
|
|
38
38
|
"pending",
|
|
39
39
|
"final",
|
|
40
40
|
"partial",
|
|
41
41
|
"canceled",
|
|
42
42
|
"suspended"
|
|
43
|
-
]),
|
|
43
|
+
]), ne = e.object({
|
|
44
44
|
id: e.string(),
|
|
45
45
|
msg: e.string(),
|
|
46
46
|
url: e.string().optional()
|
|
47
|
-
}),
|
|
47
|
+
}), re = e.object({
|
|
48
48
|
action_name: e.string(),
|
|
49
|
-
error:
|
|
49
|
+
error: ne.nullable(),
|
|
50
50
|
started_at: e.string(),
|
|
51
51
|
ended_at: e.string()
|
|
52
|
-
}),
|
|
52
|
+
}), ie = 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
|
+
}), ae = e.array(e.object({
|
|
62
62
|
action_name: e.string(),
|
|
63
|
-
lines: e.array(
|
|
64
|
-
})),
|
|
63
|
+
lines: e.array(ie)
|
|
64
|
+
})), oe = 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: c,
|
|
68
|
+
status: l,
|
|
69
|
+
results: e.array(re),
|
|
70
|
+
logs: ae.optional(),
|
|
71
71
|
created_at: e.string(),
|
|
72
72
|
updated_at: e.string()
|
|
73
|
-
}),
|
|
73
|
+
}), se = oe.omit({
|
|
74
74
|
tenant_id: !0,
|
|
75
75
|
created_at: !0,
|
|
76
76
|
updated_at: !0
|
|
77
|
-
}),
|
|
77
|
+
}), ce = 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
|
+
}), le = ce.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), ue = e.enum([
|
|
90
90
|
"user_action",
|
|
91
91
|
"admin_action",
|
|
92
92
|
"system",
|
|
93
93
|
"api"
|
|
94
|
-
]),
|
|
94
|
+
]), de = 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
|
+
}), fe = 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
|
+
}), pe = 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
|
+
}), me = e.object({
|
|
127
127
|
status_code: e.number(),
|
|
128
128
|
body: e.unknown().optional()
|
|
129
|
-
}),
|
|
129
|
+
}), he = 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
|
+
}), ge = e.object({
|
|
137
137
|
name: e.string(),
|
|
138
138
|
version: e.string(),
|
|
139
139
|
env: e.record(e.string(), e.string()).optional()
|
|
140
|
-
}),
|
|
140
|
+
}), _e = 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: ue,
|
|
146
|
+
actor: de,
|
|
147
|
+
target: fe,
|
|
148
|
+
request: pe,
|
|
149
|
+
response: me.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: he.optional(),
|
|
158
|
+
auth0_client: ge.optional(),
|
|
159
159
|
hostname: e.string(),
|
|
160
160
|
is_mobile: e.boolean().optional(),
|
|
161
161
|
timestamp: e.string()
|
|
162
|
-
}),
|
|
162
|
+
}), ve = _e.extend({ id: e.string() }), ye = e.enum([
|
|
163
163
|
"AUTH0",
|
|
164
164
|
"EMAIL",
|
|
165
165
|
"REDIRECT"
|
|
166
|
-
]),
|
|
166
|
+
]), be = e.enum([
|
|
167
167
|
"CREATE_USER",
|
|
168
168
|
"GET_USER",
|
|
169
169
|
"UPDATE_USER",
|
|
170
170
|
"SEND_REQUEST",
|
|
171
171
|
"SEND_EMAIL"
|
|
172
|
-
]),
|
|
172
|
+
]), xe = e.enum(["VERIFY_EMAIL"]), Se = 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
|
+
}), Ce = 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
|
+
}), we = 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: Se.optional()
|
|
201
201
|
})
|
|
202
|
-
}),
|
|
202
|
+
}), u = e.enum([
|
|
203
203
|
"change-email",
|
|
204
204
|
"account",
|
|
205
205
|
"custom"
|
|
206
|
-
]),
|
|
206
|
+
]), Te = 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: u.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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
]),
|
|
217
|
+
}), Ee = e.union([
|
|
218
|
+
Ce,
|
|
219
|
+
we,
|
|
220
|
+
Te
|
|
221
|
+
]), De = 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(Ee).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
224
|
+
}), Oe = De.extend(t.shape).extend({ id: e.string().openapi({
|
|
225
225
|
description: "Unique identifier for the flow",
|
|
226
226
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
227
|
-
}) }),
|
|
227
|
+
}) }), ke = 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
|
+
}), Ae = 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
|
+
}), d = e.object({
|
|
240
240
|
email: e.string().optional(),
|
|
241
241
|
email_verified: e.boolean().optional(),
|
|
242
242
|
name: e.string().optional(),
|
|
@@ -258,7 +258,7 @@ 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:
|
|
261
|
+
profileData: d.optional()
|
|
262
262
|
}), p = e.object({
|
|
263
263
|
formatted: e.string().optional(),
|
|
264
264
|
street_address: e.string().optional(),
|
|
@@ -312,22 +312,22 @@ var t = e.object({
|
|
|
312
312
|
email: e.string().optional(),
|
|
313
313
|
login_count: e.number().default(0),
|
|
314
314
|
identities: e.array(f).optional()
|
|
315
|
-
}),
|
|
315
|
+
}), je = g.omit({ registration_completed_at: !0 }), Me = m.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()), Ne = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Pe = (e = 21) => {
|
|
322
322
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
323
|
-
for (; e--;) t +=
|
|
323
|
+
for (; e--;) t += Ne[n[e] & 63];
|
|
324
324
|
return t;
|
|
325
325
|
}, _ = 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(() => Pe()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
331
331
|
app_type: e.enum([
|
|
332
332
|
"native",
|
|
333
333
|
"spa",
|
|
@@ -402,11 +402,11 @@ var t = e.object({
|
|
|
402
402
|
refresh_token: e.object({
|
|
403
403
|
rotation_type: e.enum(["rotating", "non-rotating"]).optional().openapi({ description: "Whether refresh tokens for this client are rotated on every exchange (Auth0 'rotating' behavior) or kept stable (legacy non-rotating). Defaults to 'non-rotating' when unset." }),
|
|
404
404
|
leeway: e.number().int().min(0).max(600).optional().openapi({ description: "Seconds after a parent token's first rotation during which presenting it again still mints a fresh sibling child instead of triggering reuse-detection. Defaults to 30s when unset." }),
|
|
405
|
-
expiration_type: e.enum(["expiring", "non-expiring"]).optional().openapi({ description: "
|
|
406
|
-
token_lifetime: e.number().int().min(0).optional().openapi({ description: "
|
|
407
|
-
infinite_token_lifetime: e.boolean().optional().openapi({ description: "
|
|
408
|
-
idle_token_lifetime: e.number().int().min(0).optional().openapi({ description: "
|
|
409
|
-
infinite_idle_token_lifetime: e.boolean().optional().openapi({ description: "
|
|
405
|
+
expiration_type: e.enum(["expiring", "non-expiring"]).optional().openapi({ description: "Whether refresh tokens for this client expire at all. 'non-expiring' overrides both the absolute and the idle lifetime." }),
|
|
406
|
+
token_lifetime: e.number().int().min(0).optional().openapi({ description: "Refresh-token absolute lifetime in seconds. Falls back to the tenant's `session_lifetime` when unset." }),
|
|
407
|
+
infinite_token_lifetime: e.boolean().optional().openapi({ description: "When true, refresh tokens have no absolute expiry (overrides `token_lifetime`)." }),
|
|
408
|
+
idle_token_lifetime: e.number().int().min(0).optional().openapi({ description: "Refresh-token idle (sliding) lifetime in seconds, refreshed on every exchange. Falls back to the tenant's `idle_session_lifetime` when unset." }),
|
|
409
|
+
infinite_idle_token_lifetime: e.boolean().optional().openapi({ description: "When true, refresh tokens have no idle expiry (overrides `idle_token_lifetime`)." })
|
|
410
410
|
}).default({}).optional().openapi({ description: "Refresh token configuration" }),
|
|
411
411
|
default_organization: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Defines the default Organization ID and flows" }),
|
|
412
412
|
organization_usage: e.enum([
|
|
@@ -440,7 +440,7 @@ 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
|
+
}), Fe = e.object({
|
|
444
444
|
created_at: e.string(),
|
|
445
445
|
updated_at: e.string()
|
|
446
446
|
}).extend(_.shape).extend({ client_id: e.string() }), v = e.object({
|
|
@@ -459,7 +459,7 @@ var t = e.object({
|
|
|
459
459
|
}), y = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(v.shape).extend({
|
|
460
460
|
created_at: e.string().optional(),
|
|
461
461
|
updated_at: e.string().optional()
|
|
462
|
-
}),
|
|
462
|
+
}), Ie = e.array(y), b = e.enum(["iat", "rat"]), x = e.object({
|
|
463
463
|
id: e.string(),
|
|
464
464
|
token_hash: e.string(),
|
|
465
465
|
type: b,
|
|
@@ -468,7 +468,7 @@ var t = e.object({
|
|
|
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
|
+
}), Le = e.object({
|
|
472
472
|
created_at: e.string(),
|
|
473
473
|
used_at: e.string().optional(),
|
|
474
474
|
revoked_at: e.string().optional()
|
|
@@ -487,7 +487,7 @@ var t = e.object({
|
|
|
487
487
|
category: e.literal("BLOCK"),
|
|
488
488
|
type: e.literal("RICH_TEXT"),
|
|
489
489
|
config: e.object({ content: e.string() }).passthrough()
|
|
490
|
-
}),
|
|
490
|
+
}), Re = T.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
|
+
}), ze = T.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
|
+
}), Be = T.extend({
|
|
505
505
|
category: e.literal("FIELD"),
|
|
506
506
|
type: e.union([
|
|
507
507
|
e.literal("TEXT"),
|
|
@@ -521,28 +521,28 @@ var t = e.object({
|
|
|
521
521
|
label: e.string().optional(),
|
|
522
522
|
placeholder: e.string().optional()
|
|
523
523
|
}).passthrough()
|
|
524
|
-
}),
|
|
524
|
+
}), Ve = e.object({
|
|
525
525
|
id: e.string(),
|
|
526
526
|
category: e.string(),
|
|
527
527
|
type: e.string()
|
|
528
|
-
}).passthrough(),
|
|
528
|
+
}).passthrough(), He = e.union([
|
|
529
529
|
E,
|
|
530
|
-
Ie,
|
|
531
|
-
Le,
|
|
532
530
|
Re,
|
|
533
|
-
ze
|
|
534
|
-
|
|
531
|
+
ze,
|
|
532
|
+
Be,
|
|
533
|
+
Ve
|
|
534
|
+
]), Ue = /* @__PURE__ */ function(e) {
|
|
535
535
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
536
|
-
}({}),
|
|
536
|
+
}({}), We = e.object({
|
|
537
537
|
id: e.string(),
|
|
538
538
|
type: e.literal("STEP"),
|
|
539
539
|
coordinates: S,
|
|
540
540
|
alias: e.string().optional(),
|
|
541
541
|
config: e.object({
|
|
542
|
-
components: e.array(
|
|
542
|
+
components: e.array(He),
|
|
543
543
|
next_node: e.string()
|
|
544
544
|
}).passthrough()
|
|
545
|
-
}),
|
|
545
|
+
}), Ge = e.object({
|
|
546
546
|
id: e.string(),
|
|
547
547
|
type: e.literal("FLOW"),
|
|
548
548
|
coordinates: S,
|
|
@@ -551,7 +551,7 @@ var t = e.object({
|
|
|
551
551
|
flow_id: e.string(),
|
|
552
552
|
next_node: e.string()
|
|
553
553
|
})
|
|
554
|
-
}),
|
|
554
|
+
}), Ke = e.object({
|
|
555
555
|
id: e.string(),
|
|
556
556
|
type: e.literal("ACTION"),
|
|
557
557
|
coordinates: S,
|
|
@@ -566,35 +566,35 @@ 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
|
+
}), qe = e.object({
|
|
570
570
|
id: e.string(),
|
|
571
571
|
type: e.string(),
|
|
572
572
|
coordinates: S
|
|
573
|
-
}).passthrough(),
|
|
574
|
-
He,
|
|
575
|
-
Ue,
|
|
573
|
+
}).passthrough(), Je = e.union([
|
|
576
574
|
We,
|
|
577
|
-
Ge
|
|
578
|
-
|
|
575
|
+
Ge,
|
|
576
|
+
Ke,
|
|
577
|
+
qe
|
|
578
|
+
]), Ye = e.object({
|
|
579
579
|
next_node: e.string(),
|
|
580
580
|
coordinates: S
|
|
581
|
-
}).passthrough(),
|
|
581
|
+
}).passthrough(), Xe = e.object({
|
|
582
582
|
resume_flow: e.boolean().optional(),
|
|
583
583
|
coordinates: S
|
|
584
|
-
}).passthrough(),
|
|
584
|
+
}).passthrough(), Ze = e.object({
|
|
585
585
|
id: e.string(),
|
|
586
586
|
name: e.string(),
|
|
587
587
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
588
|
-
nodes: e.array(
|
|
589
|
-
start:
|
|
590
|
-
ending:
|
|
588
|
+
nodes: e.array(Je),
|
|
589
|
+
start: Ye,
|
|
590
|
+
ending: Xe,
|
|
591
591
|
created_at: e.string(),
|
|
592
592
|
updated_at: e.string(),
|
|
593
593
|
links: e.object({
|
|
594
594
|
sdkSrc: e.string().optional(),
|
|
595
595
|
sdk_src: e.string().optional()
|
|
596
596
|
}).passthrough()
|
|
597
|
-
}).passthrough(),
|
|
597
|
+
}).passthrough(), Qe = Ze.omit({
|
|
598
598
|
id: !0,
|
|
599
599
|
created_at: !0,
|
|
600
600
|
updated_at: !0
|
|
@@ -602,16 +602,16 @@ var t = e.object({
|
|
|
602
602
|
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
603
|
}({}), O = /* @__PURE__ */ function(e) {
|
|
604
604
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
605
|
-
}({}),
|
|
605
|
+
}({}), $e = /* @__PURE__ */ function(e) {
|
|
606
606
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
607
|
-
}({}),
|
|
607
|
+
}({}), et = e.union([e.null(), e.object({
|
|
608
608
|
essential: e.boolean().optional(),
|
|
609
609
|
value: e.unknown().optional(),
|
|
610
610
|
values: e.array(e.unknown()).optional()
|
|
611
|
-
})]).nullable(),
|
|
612
|
-
userinfo: e.record(e.string(),
|
|
613
|
-
id_token: e.record(e.string(),
|
|
614
|
-
}),
|
|
611
|
+
})]).nullable(), tt = e.object({
|
|
612
|
+
userinfo: e.record(e.string(), et).optional(),
|
|
613
|
+
id_token: e.record(e.string(), et).optional()
|
|
614
|
+
}), nt = e.object({
|
|
615
615
|
client_id: e.string(),
|
|
616
616
|
act_as: e.string().optional(),
|
|
617
617
|
response_type: e.nativeEnum(D).optional(),
|
|
@@ -623,15 +623,15 @@ var t = e.object({
|
|
|
623
623
|
nonce: e.string().optional(),
|
|
624
624
|
scope: e.string().optional(),
|
|
625
625
|
prompt: e.string().optional(),
|
|
626
|
-
code_challenge_method: e.nativeEnum(
|
|
626
|
+
code_challenge_method: e.nativeEnum($e).optional(),
|
|
627
627
|
code_challenge: e.string().optional(),
|
|
628
628
|
username: e.string().optional(),
|
|
629
629
|
ui_locales: e.string().optional(),
|
|
630
630
|
max_age: e.number().optional(),
|
|
631
631
|
acr_values: e.string().optional(),
|
|
632
|
-
claims:
|
|
632
|
+
claims: tt.optional(),
|
|
633
633
|
vendor_id: e.string().optional()
|
|
634
|
-
}),
|
|
634
|
+
}), rt = e.object({
|
|
635
635
|
colors: e.object({
|
|
636
636
|
primary: e.string(),
|
|
637
637
|
page_background: e.union([e.string(), e.object({
|
|
@@ -650,19 +650,20 @@ var t = e.object({
|
|
|
650
650
|
"light",
|
|
651
651
|
"auto"
|
|
652
652
|
]).optional()
|
|
653
|
-
}),
|
|
653
|
+
}), it = e.enum([
|
|
654
654
|
"password_reset",
|
|
655
655
|
"email_verification",
|
|
656
656
|
"otp",
|
|
657
657
|
"mfa_otp",
|
|
658
658
|
"authorization_code",
|
|
659
659
|
"oauth2_state",
|
|
660
|
-
"ticket"
|
|
661
|
-
|
|
660
|
+
"ticket",
|
|
661
|
+
"client_assertion_jti"
|
|
662
|
+
]), at = e.object({
|
|
662
663
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
663
|
-
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
664
|
+
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
664
665
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
665
|
-
code_type:
|
|
666
|
+
code_type: it,
|
|
666
667
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
667
668
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
668
669
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -673,7 +674,7 @@ var t = e.object({
|
|
|
673
674
|
expires_at: e.string(),
|
|
674
675
|
used_at: e.string().optional(),
|
|
675
676
|
user_id: e.string().optional()
|
|
676
|
-
}),
|
|
677
|
+
}), ot = at.extend({ created_at: e.string() }), st = e.object({
|
|
677
678
|
kid: e.string().optional(),
|
|
678
679
|
team_id: e.string().optional(),
|
|
679
680
|
realms: e.string().optional(),
|
|
@@ -804,12 +805,12 @@ function k(e) {
|
|
|
804
805
|
return e;
|
|
805
806
|
}
|
|
806
807
|
}
|
|
807
|
-
var
|
|
808
|
+
var ct = e.object({
|
|
808
809
|
id: e.string().optional(),
|
|
809
810
|
name: e.string(),
|
|
810
811
|
display_name: e.string().optional(),
|
|
811
812
|
strategy: e.string(),
|
|
812
|
-
options: e.preprocess((e) => e === null ? {} : k(e),
|
|
813
|
+
options: e.preprocess((e) => e === null ? {} : k(e), st).default({}),
|
|
813
814
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
814
815
|
response_type: e.nativeEnum(D).optional(),
|
|
815
816
|
response_mode: e.nativeEnum(O).optional(),
|
|
@@ -817,11 +818,11 @@ var ot = e.object({
|
|
|
817
818
|
show_as_button: e.boolean().optional(),
|
|
818
819
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
819
820
|
is_system: e.boolean().optional()
|
|
820
|
-
}),
|
|
821
|
+
}), lt = e.object({
|
|
821
822
|
id: e.string(),
|
|
822
823
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
823
824
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
824
|
-
}).extend(
|
|
825
|
+
}).extend(ct.shape), A = e.object({
|
|
825
826
|
domain: e.string(),
|
|
826
827
|
custom_domain_id: e.string().optional(),
|
|
827
828
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -835,7 +836,7 @@ var ot = e.object({
|
|
|
835
836
|
"null"
|
|
836
837
|
]).optional(),
|
|
837
838
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
838
|
-
}),
|
|
839
|
+
}), ut = e.discriminatedUnion("name", [e.object({
|
|
839
840
|
name: e.literal("txt"),
|
|
840
841
|
record: e.string(),
|
|
841
842
|
domain: e.string()
|
|
@@ -843,7 +844,7 @@ var ot = e.object({
|
|
|
843
844
|
name: e.literal("http"),
|
|
844
845
|
http_body: e.string(),
|
|
845
846
|
http_url: e.string()
|
|
846
|
-
})]),
|
|
847
|
+
})]), dt = A.extend({
|
|
847
848
|
custom_domain_id: e.string(),
|
|
848
849
|
primary: e.boolean(),
|
|
849
850
|
status: e.enum([
|
|
@@ -853,26 +854,26 @@ var ot = e.object({
|
|
|
853
854
|
"ready"
|
|
854
855
|
]),
|
|
855
856
|
origin_domain_name: e.string().optional(),
|
|
856
|
-
verification: e.object({ methods: e.array(
|
|
857
|
+
verification: e.object({ methods: e.array(ut) }).optional(),
|
|
857
858
|
tls_policy: e.string().optional()
|
|
858
|
-
}),
|
|
859
|
+
}), ft = A.pick({
|
|
859
860
|
tls_policy: !0,
|
|
860
861
|
custom_client_ip_header: !0,
|
|
861
862
|
domain_metadata: !0
|
|
862
|
-
}).strict(),
|
|
863
|
+
}).strict(), pt = dt.extend({ tenant_id: e.string() }), mt = e.object({
|
|
863
864
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
864
865
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
865
866
|
}), j = e.object({
|
|
866
867
|
id: e.string(),
|
|
867
868
|
order: e.number().optional(),
|
|
868
869
|
visible: e.boolean().optional().default(!0)
|
|
869
|
-
}), M = j.extend({ category: e.literal("BLOCK").optional() }),
|
|
870
|
+
}), M = j.extend({ category: e.literal("BLOCK").optional() }), ht = M.extend({
|
|
870
871
|
type: e.literal("DIVIDER"),
|
|
871
872
|
config: e.object({ text: e.string().optional() }).optional()
|
|
872
|
-
}),
|
|
873
|
+
}), gt = M.extend({
|
|
873
874
|
type: e.literal("HTML"),
|
|
874
875
|
config: e.object({ content: e.string().optional() }).optional()
|
|
875
|
-
}),
|
|
876
|
+
}), _t = M.extend({
|
|
876
877
|
type: e.literal("IMAGE"),
|
|
877
878
|
config: e.object({
|
|
878
879
|
src: e.string().optional(),
|
|
@@ -880,25 +881,25 @@ var ot = e.object({
|
|
|
880
881
|
width: e.number().optional(),
|
|
881
882
|
height: e.number().optional()
|
|
882
883
|
}).optional()
|
|
883
|
-
}),
|
|
884
|
+
}), vt = M.extend({
|
|
884
885
|
type: e.literal("JUMP_BUTTON"),
|
|
885
886
|
config: e.object({
|
|
886
887
|
text: e.string().optional(),
|
|
887
888
|
target_step: e.string().optional()
|
|
888
889
|
})
|
|
889
|
-
}),
|
|
890
|
+
}), yt = M.extend({
|
|
890
891
|
type: e.literal("RESEND_BUTTON"),
|
|
891
892
|
config: e.object({
|
|
892
893
|
text: e.string().optional(),
|
|
893
894
|
resend_action: e.string().optional()
|
|
894
895
|
})
|
|
895
|
-
}),
|
|
896
|
+
}), bt = M.extend({
|
|
896
897
|
type: e.literal("NEXT_BUTTON"),
|
|
897
898
|
config: e.object({ text: e.string().optional() })
|
|
898
|
-
}),
|
|
899
|
+
}), xt = M.extend({
|
|
899
900
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
900
901
|
config: e.object({ text: e.string().optional() })
|
|
901
|
-
}),
|
|
902
|
+
}), St = M.extend({
|
|
902
903
|
type: e.literal("RICH_TEXT"),
|
|
903
904
|
config: e.object({ content: e.string().optional() }).optional()
|
|
904
905
|
}), N = j.extend({
|
|
@@ -907,13 +908,13 @@ var ot = e.object({
|
|
|
907
908
|
hint: e.string().min(1).max(500).optional(),
|
|
908
909
|
required: e.boolean().optional(),
|
|
909
910
|
sensitive: e.boolean().optional()
|
|
910
|
-
}),
|
|
911
|
+
}), Ct = N.extend({
|
|
911
912
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
912
913
|
config: e.object({ credential_type: e.string().optional() })
|
|
913
|
-
}),
|
|
914
|
+
}), wt = N.extend({
|
|
914
915
|
type: e.literal("GMAPS_ADDRESS"),
|
|
915
916
|
config: e.object({ api_key: e.string().optional() })
|
|
916
|
-
}),
|
|
917
|
+
}), Tt = N.extend({
|
|
917
918
|
type: e.literal("RECAPTCHA"),
|
|
918
919
|
config: e.object({ site_key: e.string().optional() })
|
|
919
920
|
}), P = j.extend({
|
|
@@ -932,10 +933,10 @@ var ot = e.object({
|
|
|
932
933
|
})).optional(),
|
|
933
934
|
required: e.boolean().optional(),
|
|
934
935
|
sensitive: e.boolean().optional()
|
|
935
|
-
}),
|
|
936
|
+
}), Et = P.extend({
|
|
936
937
|
type: e.literal("BOOLEAN"),
|
|
937
938
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
938
|
-
}),
|
|
939
|
+
}), Dt = P.extend({
|
|
939
940
|
type: e.literal("CARDS"),
|
|
940
941
|
config: e.object({
|
|
941
942
|
options: e.array(e.object({
|
|
@@ -946,7 +947,7 @@ var ot = e.object({
|
|
|
946
947
|
})).optional(),
|
|
947
948
|
multi_select: e.boolean().optional()
|
|
948
949
|
}).optional()
|
|
949
|
-
}),
|
|
950
|
+
}), Ot = P.extend({
|
|
950
951
|
type: e.literal("CHOICE"),
|
|
951
952
|
config: e.object({
|
|
952
953
|
options: e.array(e.object({
|
|
@@ -957,7 +958,7 @@ var ot = e.object({
|
|
|
957
958
|
multiple: e.boolean().optional(),
|
|
958
959
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
959
960
|
}).optional()
|
|
960
|
-
}),
|
|
961
|
+
}), kt = P.extend({
|
|
961
962
|
type: e.literal("CODE"),
|
|
962
963
|
config: e.object({
|
|
963
964
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -974,7 +975,7 @@ var ot = e.object({
|
|
|
974
975
|
message: "default_value is longer than the configured length",
|
|
975
976
|
path: ["default_value"]
|
|
976
977
|
}).optional()
|
|
977
|
-
}),
|
|
978
|
+
}), At = P.extend({
|
|
978
979
|
type: e.literal("CUSTOM"),
|
|
979
980
|
config: e.object({
|
|
980
981
|
component: e.string().optional(),
|
|
@@ -982,7 +983,7 @@ var ot = e.object({
|
|
|
982
983
|
schema: e.record(e.string(), e.any()).optional(),
|
|
983
984
|
code: e.string().optional()
|
|
984
985
|
})
|
|
985
|
-
}),
|
|
986
|
+
}), jt = P.extend({
|
|
986
987
|
type: e.literal("DATE"),
|
|
987
988
|
config: e.object({
|
|
988
989
|
format: e.string().optional(),
|
|
@@ -990,7 +991,7 @@ var ot = e.object({
|
|
|
990
991
|
max: e.string().optional(),
|
|
991
992
|
default_value: e.string().optional()
|
|
992
993
|
}).optional()
|
|
993
|
-
}),
|
|
994
|
+
}), Mt = P.extend({
|
|
994
995
|
type: e.literal("DROPDOWN"),
|
|
995
996
|
config: e.object({
|
|
996
997
|
options: e.array(e.object({
|
|
@@ -1002,7 +1003,7 @@ var ot = e.object({
|
|
|
1002
1003
|
multiple: e.boolean().optional(),
|
|
1003
1004
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1004
1005
|
}).optional()
|
|
1005
|
-
}),
|
|
1006
|
+
}), Nt = P.extend({
|
|
1006
1007
|
type: e.literal("EMAIL"),
|
|
1007
1008
|
config: e.object({
|
|
1008
1009
|
placeholder: e.string().optional(),
|
|
@@ -1010,20 +1011,20 @@ var ot = e.object({
|
|
|
1010
1011
|
last_used: e.boolean().optional(),
|
|
1011
1012
|
last_used_label: e.string().optional()
|
|
1012
1013
|
}).optional()
|
|
1013
|
-
}),
|
|
1014
|
+
}), Pt = P.extend({
|
|
1014
1015
|
type: e.literal("FILE"),
|
|
1015
1016
|
config: e.object({
|
|
1016
1017
|
accept: e.string().optional(),
|
|
1017
1018
|
max_size: e.number().optional(),
|
|
1018
1019
|
multiple: e.boolean().optional()
|
|
1019
1020
|
}).optional()
|
|
1020
|
-
}),
|
|
1021
|
+
}), Ft = P.extend({
|
|
1021
1022
|
type: e.literal("LEGAL"),
|
|
1022
1023
|
config: e.object({
|
|
1023
1024
|
text: e.string(),
|
|
1024
1025
|
html: e.boolean().optional()
|
|
1025
1026
|
}).optional()
|
|
1026
|
-
}),
|
|
1027
|
+
}), It = P.extend({
|
|
1027
1028
|
type: e.literal("NUMBER"),
|
|
1028
1029
|
config: e.object({
|
|
1029
1030
|
placeholder: e.string().optional(),
|
|
@@ -1032,7 +1033,7 @@ var ot = e.object({
|
|
|
1032
1033
|
step: e.number().optional(),
|
|
1033
1034
|
default_value: e.string().optional()
|
|
1034
1035
|
}).optional()
|
|
1035
|
-
}),
|
|
1036
|
+
}), Lt = P.extend({
|
|
1036
1037
|
type: e.literal("PASSWORD"),
|
|
1037
1038
|
config: e.object({
|
|
1038
1039
|
placeholder: e.string().optional(),
|
|
@@ -1041,13 +1042,13 @@ var ot = e.object({
|
|
|
1041
1042
|
forgot_password_link: e.string().optional(),
|
|
1042
1043
|
default_value: e.string().optional()
|
|
1043
1044
|
}).optional()
|
|
1044
|
-
}),
|
|
1045
|
+
}), Rt = P.extend({
|
|
1045
1046
|
type: e.literal("PAYMENT"),
|
|
1046
1047
|
config: e.object({
|
|
1047
1048
|
provider: e.string().optional(),
|
|
1048
1049
|
currency: e.string().optional()
|
|
1049
1050
|
}).optional()
|
|
1050
|
-
}),
|
|
1051
|
+
}), zt = P.extend({
|
|
1051
1052
|
type: e.literal("SOCIAL"),
|
|
1052
1053
|
config: e.object({
|
|
1053
1054
|
providers: e.array(e.string()).optional(),
|
|
@@ -1061,7 +1062,7 @@ var ot = e.object({
|
|
|
1061
1062
|
last_used_label: e.string().optional()
|
|
1062
1063
|
})).optional()
|
|
1063
1064
|
}).optional()
|
|
1064
|
-
}),
|
|
1065
|
+
}), Bt = P.extend({
|
|
1065
1066
|
type: e.literal("TEL"),
|
|
1066
1067
|
config: e.object({
|
|
1067
1068
|
placeholder: e.string().optional(),
|
|
@@ -1069,7 +1070,7 @@ var ot = e.object({
|
|
|
1069
1070
|
default_value: e.string().optional(),
|
|
1070
1071
|
allow_email: e.boolean().optional()
|
|
1071
1072
|
}).optional()
|
|
1072
|
-
}),
|
|
1073
|
+
}), Vt = P.extend({
|
|
1073
1074
|
type: e.literal("TEXT"),
|
|
1074
1075
|
config: e.object({
|
|
1075
1076
|
placeholder: e.string().optional(),
|
|
@@ -1079,39 +1080,37 @@ var ot = e.object({
|
|
|
1079
1080
|
last_used: e.boolean().optional(),
|
|
1080
1081
|
last_used_label: e.string().optional()
|
|
1081
1082
|
}).optional()
|
|
1082
|
-
}),
|
|
1083
|
+
}), Ht = P.extend({
|
|
1083
1084
|
type: e.literal("COUNTRY"),
|
|
1084
1085
|
config: e.object({
|
|
1085
1086
|
placeholder: e.string().optional(),
|
|
1086
1087
|
default_value: e.string().optional()
|
|
1087
1088
|
}).optional()
|
|
1088
|
-
}),
|
|
1089
|
+
}), Ut = P.extend({
|
|
1089
1090
|
type: e.literal("URL"),
|
|
1090
1091
|
config: e.object({
|
|
1091
1092
|
placeholder: e.string().optional(),
|
|
1092
1093
|
default_value: e.string().optional()
|
|
1093
1094
|
}).optional()
|
|
1094
|
-
}),
|
|
1095
|
-
pt,
|
|
1096
|
-
mt,
|
|
1095
|
+
}), Wt = e.discriminatedUnion("type", [
|
|
1097
1096
|
ht,
|
|
1098
1097
|
gt,
|
|
1099
1098
|
_t,
|
|
1100
1099
|
vt,
|
|
1101
1100
|
yt,
|
|
1102
|
-
bt
|
|
1103
|
-
]), Ut = e.discriminatedUnion("type", [
|
|
1101
|
+
bt,
|
|
1104
1102
|
xt,
|
|
1105
|
-
St
|
|
1106
|
-
|
|
1107
|
-
|
|
1103
|
+
St
|
|
1104
|
+
]), Gt = e.discriminatedUnion("type", [
|
|
1105
|
+
Ct,
|
|
1108
1106
|
wt,
|
|
1109
|
-
Tt
|
|
1107
|
+
Tt
|
|
1108
|
+
]), Kt = e.discriminatedUnion("type", [
|
|
1110
1109
|
Et,
|
|
1111
1110
|
Dt,
|
|
1112
|
-
Bt,
|
|
1113
1111
|
Ot,
|
|
1114
1112
|
kt,
|
|
1113
|
+
Ht,
|
|
1115
1114
|
At,
|
|
1116
1115
|
jt,
|
|
1117
1116
|
Mt,
|
|
@@ -1122,12 +1121,14 @@ var ot = e.object({
|
|
|
1122
1121
|
Lt,
|
|
1123
1122
|
Rt,
|
|
1124
1123
|
zt,
|
|
1125
|
-
|
|
1124
|
+
Bt,
|
|
1125
|
+
Vt,
|
|
1126
|
+
Ut
|
|
1126
1127
|
]), F = e.union([
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
]),
|
|
1128
|
+
Wt,
|
|
1129
|
+
Gt,
|
|
1130
|
+
Kt
|
|
1131
|
+
]), qt = new Set([
|
|
1131
1132
|
"BOOLEAN",
|
|
1132
1133
|
"CARDS",
|
|
1133
1134
|
"CHOICE",
|
|
@@ -1142,7 +1143,7 @@ var ot = e.object({
|
|
|
1142
1143
|
"TEL",
|
|
1143
1144
|
"TEXT",
|
|
1144
1145
|
"URL"
|
|
1145
|
-
]),
|
|
1146
|
+
]), Jt = e.object({
|
|
1146
1147
|
id: e.string(),
|
|
1147
1148
|
type: e.literal("submit"),
|
|
1148
1149
|
label: e.string(),
|
|
@@ -1154,7 +1155,7 @@ var ot = e.object({
|
|
|
1154
1155
|
}), I = e.object({
|
|
1155
1156
|
x: e.number(),
|
|
1156
1157
|
y: e.number()
|
|
1157
|
-
}),
|
|
1158
|
+
}), Yt = e.object({
|
|
1158
1159
|
id: e.string(),
|
|
1159
1160
|
type: e.literal("FLOW"),
|
|
1160
1161
|
coordinates: I,
|
|
@@ -1163,7 +1164,7 @@ var ot = e.object({
|
|
|
1163
1164
|
flow_id: e.string().max(30),
|
|
1164
1165
|
next_node: e.string().optional()
|
|
1165
1166
|
})
|
|
1166
|
-
}),
|
|
1167
|
+
}), Xt = e.object({
|
|
1167
1168
|
id: e.string(),
|
|
1168
1169
|
type: e.literal("ROUTER"),
|
|
1169
1170
|
coordinates: I,
|
|
@@ -1177,7 +1178,7 @@ var ot = e.object({
|
|
|
1177
1178
|
})),
|
|
1178
1179
|
fallback: e.string()
|
|
1179
1180
|
})
|
|
1180
|
-
}),
|
|
1181
|
+
}), Zt = e.object({
|
|
1181
1182
|
id: e.string(),
|
|
1182
1183
|
type: e.literal("STEP"),
|
|
1183
1184
|
coordinates: I,
|
|
@@ -1186,11 +1187,11 @@ var ot = e.object({
|
|
|
1186
1187
|
components: e.array(F),
|
|
1187
1188
|
next_node: e.string().optional()
|
|
1188
1189
|
})
|
|
1189
|
-
}),
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
]),
|
|
1190
|
+
}), Qt = e.discriminatedUnion("type", [
|
|
1191
|
+
Yt,
|
|
1192
|
+
Xt,
|
|
1193
|
+
Zt
|
|
1194
|
+
]), $t = e.object({
|
|
1194
1195
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1195
1196
|
messages: e.object({
|
|
1196
1197
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1201,7 +1202,7 @@ var ot = e.object({
|
|
|
1201
1202
|
default: e.string().optional()
|
|
1202
1203
|
}).optional(),
|
|
1203
1204
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1204
|
-
nodes: e.array(
|
|
1205
|
+
nodes: e.array(Qt).optional(),
|
|
1205
1206
|
start: e.object({
|
|
1206
1207
|
hidden_fields: e.array(e.object({
|
|
1207
1208
|
key: e.string(),
|
|
@@ -1224,7 +1225,7 @@ var ot = e.object({
|
|
|
1224
1225
|
sdkSrc: e.string().optional(),
|
|
1225
1226
|
sdk_src: e.string().optional()
|
|
1226
1227
|
}).optional()
|
|
1227
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1228
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), en = t.extend($t.shape).extend({ id: e.string() }), tn = e.object({
|
|
1228
1229
|
id: e.number().optional(),
|
|
1229
1230
|
text: e.string(),
|
|
1230
1231
|
type: e.enum([
|
|
@@ -1233,29 +1234,29 @@ var ot = e.object({
|
|
|
1233
1234
|
"success",
|
|
1234
1235
|
"warning"
|
|
1235
1236
|
])
|
|
1236
|
-
}),
|
|
1237
|
+
}), nn = e.object({
|
|
1237
1238
|
id: e.string().optional(),
|
|
1238
1239
|
text: e.string(),
|
|
1239
1240
|
href: e.string(),
|
|
1240
1241
|
linkText: e.string().optional()
|
|
1241
|
-
}),
|
|
1242
|
+
}), rn = e.object({
|
|
1242
1243
|
name: e.string().optional(),
|
|
1243
1244
|
action: e.string(),
|
|
1244
1245
|
method: e.enum(["POST", "GET"]),
|
|
1245
1246
|
title: e.string().optional(),
|
|
1246
1247
|
description: e.string().optional(),
|
|
1247
1248
|
components: e.array(F),
|
|
1248
|
-
messages: e.array(
|
|
1249
|
-
links: e.array(
|
|
1249
|
+
messages: e.array(tn).optional(),
|
|
1250
|
+
links: e.array(nn).optional(),
|
|
1250
1251
|
footer: e.string().optional()
|
|
1251
1252
|
});
|
|
1252
|
-
function
|
|
1253
|
+
function an(e) {
|
|
1253
1254
|
return e.category === "BLOCK";
|
|
1254
1255
|
}
|
|
1255
|
-
function
|
|
1256
|
+
function on(e) {
|
|
1256
1257
|
return e.category === "WIDGET";
|
|
1257
1258
|
}
|
|
1258
|
-
function
|
|
1259
|
+
function sn(e) {
|
|
1259
1260
|
return e.category === "FIELD";
|
|
1260
1261
|
}
|
|
1261
1262
|
//#endregion
|
|
@@ -1278,7 +1279,7 @@ var L = e.enum([
|
|
|
1278
1279
|
"credentials-exchange",
|
|
1279
1280
|
"pre-user-registration",
|
|
1280
1281
|
"post-user-registration"
|
|
1281
|
-
]), V = e.enum(["post-user-login"]),
|
|
1282
|
+
]), V = e.enum(["post-user-login"]), cn = [
|
|
1282
1283
|
{
|
|
1283
1284
|
field: "url",
|
|
1284
1285
|
triggers: L.options
|
|
@@ -1300,16 +1301,16 @@ var L = e.enum([
|
|
|
1300
1301
|
triggers: V.options
|
|
1301
1302
|
}
|
|
1302
1303
|
];
|
|
1303
|
-
function
|
|
1304
|
+
function ln(e) {
|
|
1304
1305
|
if (!(!e || typeof e != "object")) {
|
|
1305
|
-
for (let t of
|
|
1306
|
+
for (let t of cn) if (typeof Reflect.get(e, t.field) == "string") return t.triggers;
|
|
1306
1307
|
}
|
|
1307
1308
|
}
|
|
1308
1309
|
var H = e.enum(["impersonate"]), U = e.enum([
|
|
1309
1310
|
"ensure-username",
|
|
1310
1311
|
"set-preferred-username",
|
|
1311
1312
|
"account-linking"
|
|
1312
|
-
]),
|
|
1313
|
+
]), un = {
|
|
1313
1314
|
"ensure-username": {
|
|
1314
1315
|
name: "Ensure Username",
|
|
1315
1316
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1335,81 +1336,81 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1335
1336
|
priority: e.number().optional(),
|
|
1336
1337
|
hook_id: e.string().optional(),
|
|
1337
1338
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1338
|
-
},
|
|
1339
|
+
}, dn = e.object({
|
|
1339
1340
|
...W,
|
|
1340
1341
|
trigger_id: L,
|
|
1341
1342
|
url: e.string()
|
|
1342
|
-
}),
|
|
1343
|
+
}), fn = e.object({
|
|
1343
1344
|
...W,
|
|
1344
1345
|
trigger_id: R,
|
|
1345
1346
|
form_id: e.string()
|
|
1346
|
-
}),
|
|
1347
|
+
}), pn = e.object({
|
|
1347
1348
|
...W,
|
|
1348
1349
|
trigger_id: z,
|
|
1349
1350
|
template_id: U
|
|
1350
|
-
}),
|
|
1351
|
+
}), mn = e.object({
|
|
1351
1352
|
...W,
|
|
1352
1353
|
trigger_id: B,
|
|
1353
1354
|
code_id: e.string()
|
|
1354
|
-
}),
|
|
1355
|
+
}), hn = e.object({
|
|
1355
1356
|
...W,
|
|
1356
1357
|
trigger_id: V,
|
|
1357
1358
|
page_id: H,
|
|
1358
1359
|
permission_required: e.string().optional()
|
|
1359
|
-
}),
|
|
1360
|
-
ln,
|
|
1361
|
-
un,
|
|
1360
|
+
}), gn = e.union([
|
|
1362
1361
|
dn,
|
|
1363
1362
|
fn,
|
|
1364
|
-
pn
|
|
1365
|
-
|
|
1363
|
+
pn,
|
|
1364
|
+
mn,
|
|
1365
|
+
hn
|
|
1366
|
+
]), _n = e.object({
|
|
1366
1367
|
...W,
|
|
1367
1368
|
trigger_id: L
|
|
1368
1369
|
}).extend(t.shape).extend({
|
|
1369
1370
|
hook_id: e.string(),
|
|
1370
1371
|
url: e.string()
|
|
1371
|
-
}),
|
|
1372
|
+
}), vn = e.object({
|
|
1372
1373
|
...W,
|
|
1373
1374
|
trigger_id: R
|
|
1374
1375
|
}).extend(t.shape).extend({
|
|
1375
1376
|
hook_id: e.string(),
|
|
1376
1377
|
form_id: e.string()
|
|
1377
|
-
}),
|
|
1378
|
+
}), yn = e.object({
|
|
1378
1379
|
...W,
|
|
1379
1380
|
trigger_id: z
|
|
1380
1381
|
}).extend(t.shape).extend({
|
|
1381
1382
|
hook_id: e.string(),
|
|
1382
1383
|
template_id: U
|
|
1383
|
-
}),
|
|
1384
|
+
}), bn = e.object({
|
|
1384
1385
|
...W,
|
|
1385
1386
|
trigger_id: B
|
|
1386
1387
|
}).extend(t.shape).extend({
|
|
1387
1388
|
hook_id: e.string(),
|
|
1388
1389
|
code_id: e.string()
|
|
1389
|
-
}),
|
|
1390
|
+
}), xn = e.object({
|
|
1390
1391
|
...W,
|
|
1391
1392
|
trigger_id: V
|
|
1392
1393
|
}).extend(t.shape).extend({
|
|
1393
1394
|
hook_id: e.string(),
|
|
1394
1395
|
page_id: H,
|
|
1395
1396
|
permission_required: e.string().optional()
|
|
1396
|
-
}),
|
|
1397
|
-
hn,
|
|
1398
|
-
gn,
|
|
1397
|
+
}), Sn = e.union([
|
|
1399
1398
|
_n,
|
|
1400
1399
|
vn,
|
|
1401
|
-
yn
|
|
1402
|
-
|
|
1400
|
+
yn,
|
|
1401
|
+
bn,
|
|
1402
|
+
xn
|
|
1403
|
+
]), Cn = e.object({
|
|
1403
1404
|
code: e.string().max(1e5),
|
|
1404
1405
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1405
|
-
}),
|
|
1406
|
+
}), wn = Cn.extend({
|
|
1406
1407
|
id: e.string(),
|
|
1407
1408
|
tenant_id: e.string()
|
|
1408
|
-
}).extend(t.shape),
|
|
1409
|
+
}).extend(t.shape), Tn = e.object({ name: e.string().optional() }), En = e.object({ email: e.string().optional() }), Dn = e.object({
|
|
1409
1410
|
id: e.string().optional(),
|
|
1410
1411
|
organization_id: e.string().max(50),
|
|
1411
|
-
inviter:
|
|
1412
|
-
invitee:
|
|
1412
|
+
inviter: Tn,
|
|
1413
|
+
invitee: En,
|
|
1413
1414
|
invitation_url: e.string().url(),
|
|
1414
1415
|
client_id: e.string(),
|
|
1415
1416
|
connection_id: e.string().optional(),
|
|
@@ -1418,13 +1419,13 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1418
1419
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1419
1420
|
roles: e.array(e.string()).default([]).optional(),
|
|
1420
1421
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1421
|
-
}),
|
|
1422
|
+
}), On = e.object({
|
|
1422
1423
|
id: e.string(),
|
|
1423
1424
|
organization_id: e.string().max(50),
|
|
1424
1425
|
created_at: e.string().datetime(),
|
|
1425
1426
|
expires_at: e.string().datetime(),
|
|
1426
1427
|
ticket_id: e.string().optional()
|
|
1427
|
-
}).extend(
|
|
1428
|
+
}).extend(Dn.omit({ id: !0 }).shape), kn = e.object({
|
|
1428
1429
|
alg: e.enum([
|
|
1429
1430
|
"RS256",
|
|
1430
1431
|
"RS384",
|
|
@@ -1465,7 +1466,7 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1465
1466
|
path: [r],
|
|
1466
1467
|
message: `EC JWK is missing required member '${r}'`
|
|
1467
1468
|
});
|
|
1468
|
-
}),
|
|
1469
|
+
}), An = e.object({ keys: e.array(kn) }), jn = e.object({
|
|
1469
1470
|
issuer: e.string(),
|
|
1470
1471
|
authorization_endpoint: e.string(),
|
|
1471
1472
|
token_endpoint: e.string(),
|
|
@@ -1491,29 +1492,29 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1491
1492
|
client_id_metadata_document_supported: e.boolean().optional(),
|
|
1492
1493
|
backchannel_logout_supported: e.boolean().optional(),
|
|
1493
1494
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
1494
|
-
}),
|
|
1495
|
+
}), Mn = /* @__PURE__ */ function(e) {
|
|
1495
1496
|
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;
|
|
1496
|
-
}({}),
|
|
1497
|
+
}({}), Nn = e.nativeEnum(Mn), G = e.object({
|
|
1497
1498
|
strategy: e.string(),
|
|
1498
1499
|
strategy_type: e.string()
|
|
1499
|
-
}),
|
|
1500
|
+
}), Pn = e.object({
|
|
1500
1501
|
csrf_token: e.string(),
|
|
1501
1502
|
auth0Client: e.string().optional(),
|
|
1502
|
-
authParams:
|
|
1503
|
+
authParams: nt,
|
|
1503
1504
|
expires_at: e.string(),
|
|
1504
1505
|
deleted_at: e.string().optional(),
|
|
1505
1506
|
ip: e.string().optional(),
|
|
1506
1507
|
useragent: e.string().optional(),
|
|
1507
1508
|
session_id: e.string().optional(),
|
|
1508
1509
|
authorization_url: e.string().optional(),
|
|
1509
|
-
state:
|
|
1510
|
+
state: Nn.optional().default("pending"),
|
|
1510
1511
|
state_data: e.string().optional(),
|
|
1511
1512
|
failure_reason: e.string().optional(),
|
|
1512
1513
|
user_id: e.string().optional(),
|
|
1513
1514
|
auth_connection: e.string().optional(),
|
|
1514
1515
|
auth_strategy: G.optional(),
|
|
1515
1516
|
authenticated_at: e.string().optional()
|
|
1516
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1517
|
+
}).openapi({ description: "This represents a login sesion" }), Fn = Pn.extend({
|
|
1517
1518
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1518
1519
|
created_at: e.string(),
|
|
1519
1520
|
updated_at: e.string()
|
|
@@ -1677,7 +1678,7 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1677
1678
|
WARNING_DURING_LOGIN: "w",
|
|
1678
1679
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1679
1680
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1680
|
-
},
|
|
1681
|
+
}, In = e.string().refine((e) => Object.values(K).includes(e), { message: "Invalid log type" }), Ln = {
|
|
1681
1682
|
[K.ACLS_SUMMARY]: "ACLs Summary",
|
|
1682
1683
|
[K.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1683
1684
|
[K.API_LIMIT]: "API Rate Limit Reached",
|
|
@@ -1837,30 +1838,30 @@ var H = e.enum(["impersonate"]), U = e.enum([
|
|
|
1837
1838
|
[K.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1838
1839
|
[K.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1839
1840
|
[K.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1840
|
-
},
|
|
1841
|
+
}, Rn = (() => {
|
|
1841
1842
|
let e = {};
|
|
1842
1843
|
for (let [t, n] of Object.entries(K)) 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";
|
|
1843
1844
|
return e;
|
|
1844
1845
|
})();
|
|
1845
|
-
function
|
|
1846
|
-
return
|
|
1846
|
+
function zn(e) {
|
|
1847
|
+
return Ln[e] ?? e;
|
|
1847
1848
|
}
|
|
1848
|
-
function
|
|
1849
|
-
return
|
|
1849
|
+
function Bn(e) {
|
|
1850
|
+
return Rn[e] ?? "other";
|
|
1850
1851
|
}
|
|
1851
|
-
var
|
|
1852
|
+
var Vn = e.object({
|
|
1852
1853
|
name: e.string(),
|
|
1853
1854
|
version: e.string(),
|
|
1854
1855
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1855
|
-
}),
|
|
1856
|
+
}), Hn = e.object({
|
|
1856
1857
|
country_code: e.string().length(2),
|
|
1857
1858
|
city_name: e.string(),
|
|
1858
1859
|
latitude: e.string(),
|
|
1859
1860
|
longitude: e.string(),
|
|
1860
1861
|
time_zone: e.string(),
|
|
1861
1862
|
continent_code: e.string()
|
|
1862
|
-
}),
|
|
1863
|
-
type:
|
|
1863
|
+
}), Un = e.object({
|
|
1864
|
+
type: In,
|
|
1864
1865
|
date: e.string(),
|
|
1865
1866
|
description: e.string().optional(),
|
|
1866
1867
|
ip: e.string().optional(),
|
|
@@ -1878,10 +1879,10 @@ var zn = e.object({
|
|
|
1878
1879
|
strategy: e.string().optional(),
|
|
1879
1880
|
strategy_type: e.string().optional(),
|
|
1880
1881
|
hostname: e.string().optional(),
|
|
1881
|
-
auth0_client:
|
|
1882
|
+
auth0_client: Vn.optional(),
|
|
1882
1883
|
log_id: e.string().optional(),
|
|
1883
|
-
location_info:
|
|
1884
|
-
}),
|
|
1884
|
+
location_info: Hn.optional()
|
|
1885
|
+
}), Wn = Un.extend({ log_id: e.string() }), Gn = e.enum([
|
|
1885
1886
|
"http",
|
|
1886
1887
|
"eventbridge",
|
|
1887
1888
|
"eventgrid",
|
|
@@ -1892,44 +1893,44 @@ var zn = e.object({
|
|
|
1892
1893
|
"active",
|
|
1893
1894
|
"paused",
|
|
1894
1895
|
"suspended"
|
|
1895
|
-
]),
|
|
1896
|
+
]), Kn = e.object({
|
|
1896
1897
|
type: e.string(),
|
|
1897
1898
|
name: e.string()
|
|
1898
|
-
}),
|
|
1899
|
+
}), qn = e.object({
|
|
1899
1900
|
name: e.string(),
|
|
1900
|
-
type:
|
|
1901
|
+
type: Gn,
|
|
1901
1902
|
status: q.optional(),
|
|
1902
1903
|
sink: e.record(e.string(), e.unknown()),
|
|
1903
|
-
filters: e.array(
|
|
1904
|
+
filters: e.array(Kn).optional(),
|
|
1904
1905
|
isPriority: e.boolean().optional()
|
|
1905
|
-
}),
|
|
1906
|
+
}), Jn = qn.extend({
|
|
1906
1907
|
id: e.string(),
|
|
1907
1908
|
status: q,
|
|
1908
1909
|
created_at: e.string().optional(),
|
|
1909
1910
|
updated_at: e.string().optional()
|
|
1910
|
-
}),
|
|
1911
|
+
}), Yn = e.enum([
|
|
1911
1912
|
"auth0",
|
|
1912
1913
|
"cognito",
|
|
1913
1914
|
"okta",
|
|
1914
1915
|
"oidc"
|
|
1915
|
-
]),
|
|
1916
|
+
]), Xn = e.object({
|
|
1916
1917
|
domain: e.string(),
|
|
1917
1918
|
client_id: e.string(),
|
|
1918
1919
|
client_secret: e.string(),
|
|
1919
1920
|
audience: e.string().optional(),
|
|
1920
1921
|
scope: e.string().optional()
|
|
1921
|
-
}),
|
|
1922
|
+
}), Zn = e.object({
|
|
1922
1923
|
id: e.string().optional(),
|
|
1923
1924
|
name: e.string(),
|
|
1924
|
-
provider:
|
|
1925
|
+
provider: Yn,
|
|
1925
1926
|
connection: e.string(),
|
|
1926
1927
|
enabled: e.boolean().default(!0),
|
|
1927
|
-
credentials:
|
|
1928
|
-
}),
|
|
1928
|
+
credentials: Xn
|
|
1929
|
+
}), Qn = e.object({
|
|
1929
1930
|
id: e.string(),
|
|
1930
1931
|
created_at: e.string(),
|
|
1931
1932
|
updated_at: e.string()
|
|
1932
|
-
}).extend(
|
|
1933
|
+
}).extend(Zn.shape), $n = e.object({
|
|
1933
1934
|
enabled: e.boolean().optional(),
|
|
1934
1935
|
shields: e.array(e.string()).optional(),
|
|
1935
1936
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1938,13 +1939,13 @@ var zn = e.object({
|
|
|
1938
1939
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1939
1940
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1940
1941
|
}).optional()
|
|
1941
|
-
}),
|
|
1942
|
+
}), er = e.object({
|
|
1942
1943
|
enabled: e.boolean().optional(),
|
|
1943
1944
|
shields: e.array(e.string()).optional(),
|
|
1944
1945
|
allowlist: e.array(e.string()).optional(),
|
|
1945
1946
|
mode: e.string().optional(),
|
|
1946
1947
|
max_attempts: e.number().optional()
|
|
1947
|
-
}),
|
|
1948
|
+
}), tr = e.object({
|
|
1948
1949
|
enabled: e.boolean().optional(),
|
|
1949
1950
|
shields: e.array(e.string()).optional(),
|
|
1950
1951
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1958,28 +1959,28 @@ var zn = e.object({
|
|
|
1958
1959
|
rate: e.number().optional()
|
|
1959
1960
|
}).optional()
|
|
1960
1961
|
}).optional()
|
|
1961
|
-
}),
|
|
1962
|
-
breached_password_detection:
|
|
1963
|
-
brute_force_protection:
|
|
1964
|
-
suspicious_ip_throttling:
|
|
1965
|
-
}),
|
|
1962
|
+
}), nr = e.object({
|
|
1963
|
+
breached_password_detection: $n.optional(),
|
|
1964
|
+
brute_force_protection: er.optional(),
|
|
1965
|
+
suspicious_ip_throttling: tr.optional()
|
|
1966
|
+
}), rr = e.object({
|
|
1966
1967
|
id: e.string().optional(),
|
|
1967
1968
|
user_id: e.string(),
|
|
1968
1969
|
password: e.string(),
|
|
1969
1970
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1970
1971
|
is_current: e.boolean().default(!0)
|
|
1971
|
-
}),
|
|
1972
|
+
}), ir = rr.extend({
|
|
1972
1973
|
id: e.string(),
|
|
1973
1974
|
created_at: e.string(),
|
|
1974
1975
|
updated_at: e.string()
|
|
1975
|
-
}),
|
|
1976
|
+
}), ar = e.object({
|
|
1976
1977
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1977
1978
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1978
1979
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1979
1980
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1980
1981
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1981
1982
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1982
|
-
}),
|
|
1983
|
+
}), or = e.object({
|
|
1983
1984
|
id: e.string(),
|
|
1984
1985
|
revoked_at: e.string().optional(),
|
|
1985
1986
|
used_at: e.string().optional(),
|
|
@@ -1987,14 +1988,14 @@ var zn = e.object({
|
|
|
1987
1988
|
expires_at: e.string().optional(),
|
|
1988
1989
|
login_session_id: e.string(),
|
|
1989
1990
|
idle_expires_at: e.string().optional(),
|
|
1990
|
-
device:
|
|
1991
|
+
device: ar.describe("Metadata related to the device used in the session"),
|
|
1991
1992
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1992
|
-
}),
|
|
1993
|
+
}), sr = e.object({
|
|
1993
1994
|
created_at: e.string(),
|
|
1994
1995
|
updated_at: e.string(),
|
|
1995
1996
|
authenticated_at: e.string(),
|
|
1996
1997
|
last_interaction_at: e.string()
|
|
1997
|
-
}).extend(
|
|
1998
|
+
}).extend(or.shape), cr = e.object({
|
|
1998
1999
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1999
2000
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
2000
2001
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -2010,7 +2011,7 @@ var zn = e.object({
|
|
|
2010
2011
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
2011
2012
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
2012
2013
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
2013
|
-
}),
|
|
2014
|
+
}), lr = e.object({
|
|
2014
2015
|
id: e.string().optional(),
|
|
2015
2016
|
audience: e.string().optional(),
|
|
2016
2017
|
friendly_name: e.string(),
|
|
@@ -2128,7 +2129,7 @@ var zn = e.object({
|
|
|
2128
2129
|
"shared_planetscale"
|
|
2129
2130
|
]).optional(),
|
|
2130
2131
|
d1_database_id: e.string().max(64).optional(),
|
|
2131
|
-
attack_protection:
|
|
2132
|
+
attack_protection: nr.optional(),
|
|
2132
2133
|
mfa: e.object({
|
|
2133
2134
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2134
2135
|
factors: e.object({
|
|
@@ -2155,42 +2156,42 @@ var zn = e.object({
|
|
|
2155
2156
|
}).optional(),
|
|
2156
2157
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2157
2158
|
}).optional()
|
|
2158
|
-
}),
|
|
2159
|
+
}), ur = e.object({
|
|
2159
2160
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2160
2161
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2161
|
-
}).extend(
|
|
2162
|
+
}).extend(lr.shape).extend({
|
|
2162
2163
|
id: e.string(),
|
|
2163
2164
|
is_control_plane: e.boolean().optional()
|
|
2164
|
-
}),
|
|
2165
|
+
}), dr = e.enum([
|
|
2165
2166
|
"provision",
|
|
2166
2167
|
"seed",
|
|
2167
2168
|
"upgrade",
|
|
2168
2169
|
"backup",
|
|
2169
2170
|
"deprovision"
|
|
2170
|
-
]),
|
|
2171
|
+
]), fr = e.enum([
|
|
2171
2172
|
"pending",
|
|
2172
2173
|
"running",
|
|
2173
2174
|
"succeeded",
|
|
2174
2175
|
"failed",
|
|
2175
2176
|
"cancelled"
|
|
2176
|
-
]),
|
|
2177
|
+
]), pr = e.enum(["inline", "cloudflare-workflows"]), mr = e.object({
|
|
2177
2178
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2178
2179
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2179
|
-
kind:
|
|
2180
|
-
engine:
|
|
2180
|
+
kind: dr,
|
|
2181
|
+
engine: pr,
|
|
2181
2182
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2182
2183
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2183
2184
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2184
2185
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2185
|
-
}),
|
|
2186
|
+
}), hr = mr.extend({
|
|
2186
2187
|
id: e.string(),
|
|
2187
|
-
status:
|
|
2188
|
+
status: fr,
|
|
2188
2189
|
current_step: e.string().max(255).nullable().optional(),
|
|
2189
2190
|
error: e.string().nullable().optional(),
|
|
2190
2191
|
created_at: e.string(),
|
|
2191
2192
|
updated_at: e.string(),
|
|
2192
2193
|
finished_at: e.string().nullable().optional()
|
|
2193
|
-
}),
|
|
2194
|
+
}), gr = hr.pick({
|
|
2194
2195
|
status: !0,
|
|
2195
2196
|
current_step: !0,
|
|
2196
2197
|
engine_instance_id: !0,
|
|
@@ -2198,56 +2199,56 @@ var zn = e.object({
|
|
|
2198
2199
|
target_database_version: !0,
|
|
2199
2200
|
error: !0,
|
|
2200
2201
|
finished_at: !0
|
|
2201
|
-
}).partial(),
|
|
2202
|
+
}).partial(), _r = e.enum([
|
|
2202
2203
|
"started",
|
|
2203
2204
|
"succeeded",
|
|
2204
2205
|
"failed",
|
|
2205
2206
|
"retried",
|
|
2206
2207
|
"skipped",
|
|
2207
2208
|
"reconciled"
|
|
2208
|
-
]),
|
|
2209
|
+
]), vr = e.object({
|
|
2209
2210
|
operation_id: e.string().max(255),
|
|
2210
2211
|
step: e.string().max(255),
|
|
2211
|
-
outcome:
|
|
2212
|
+
outcome: _r,
|
|
2212
2213
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2213
2214
|
attempt: e.number().int().min(1).default(1)
|
|
2214
|
-
}),
|
|
2215
|
+
}), yr = vr.extend({
|
|
2215
2216
|
id: e.string(),
|
|
2216
2217
|
created_at: e.string()
|
|
2217
|
-
}),
|
|
2218
|
+
}), br = e.enum([
|
|
2218
2219
|
"upgrade",
|
|
2219
2220
|
"reseed",
|
|
2220
2221
|
"backup"
|
|
2221
|
-
]),
|
|
2222
|
+
]), xr = e.enum([
|
|
2222
2223
|
"pending",
|
|
2223
2224
|
"canary",
|
|
2224
2225
|
"rolling",
|
|
2225
2226
|
"paused",
|
|
2226
2227
|
"done",
|
|
2227
2228
|
"failed"
|
|
2228
|
-
]),
|
|
2229
|
-
kind:
|
|
2229
|
+
]), Sr = e.object({
|
|
2230
|
+
kind: br,
|
|
2230
2231
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2231
2232
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2232
2233
|
wave_size: e.number().int().min(1).default(10),
|
|
2233
2234
|
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2234
2235
|
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2235
2236
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2236
|
-
}),
|
|
2237
|
+
}), Cr = Sr.extend({
|
|
2237
2238
|
id: e.string(),
|
|
2238
|
-
status:
|
|
2239
|
+
status: xr,
|
|
2239
2240
|
created_at: e.string(),
|
|
2240
2241
|
updated_at: e.string(),
|
|
2241
2242
|
finished_at: e.string().nullable().optional()
|
|
2242
|
-
}),
|
|
2243
|
+
}), wr = Cr.pick({
|
|
2243
2244
|
status: !0,
|
|
2244
2245
|
wave_size: !0,
|
|
2245
2246
|
canary_tenant_ids: !0,
|
|
2246
2247
|
filter: !0,
|
|
2247
2248
|
finished_at: !0
|
|
2248
|
-
}).partial(),
|
|
2249
|
+
}).partial(), Tr = /* @__PURE__ */ function(e) {
|
|
2249
2250
|
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
|
-
}({}),
|
|
2251
|
+
}({}), Er = e.object({
|
|
2251
2252
|
access_token: e.string(),
|
|
2252
2253
|
id_token: e.string().optional(),
|
|
2253
2254
|
scope: e.string().optional(),
|
|
@@ -2262,7 +2263,7 @@ e.object({
|
|
|
2262
2263
|
});
|
|
2263
2264
|
//#endregion
|
|
2264
2265
|
//#region src/types/Theme.ts
|
|
2265
|
-
var
|
|
2266
|
+
var Dr = e.object({
|
|
2266
2267
|
button_border_radius: e.number(),
|
|
2267
2268
|
button_border_weight: e.number(),
|
|
2268
2269
|
buttons_style: e.enum([
|
|
@@ -2280,7 +2281,7 @@ var Tr = e.object({
|
|
|
2280
2281
|
show_widget_shadow: e.boolean(),
|
|
2281
2282
|
widget_border_weight: e.number(),
|
|
2282
2283
|
widget_corner_radius: e.number()
|
|
2283
|
-
}),
|
|
2284
|
+
}), Or = e.object({
|
|
2284
2285
|
base_focus_color: e.string(),
|
|
2285
2286
|
base_hover_color: e.string(),
|
|
2286
2287
|
body_text: e.string(),
|
|
@@ -2307,7 +2308,7 @@ var Tr = e.object({
|
|
|
2307
2308
|
}), J = e.object({
|
|
2308
2309
|
bold: e.boolean(),
|
|
2309
2310
|
size: e.number()
|
|
2310
|
-
}),
|
|
2311
|
+
}), kr = e.object({
|
|
2311
2312
|
body_text: J,
|
|
2312
2313
|
buttons_text: J,
|
|
2313
2314
|
font_url: e.string(),
|
|
@@ -2317,7 +2318,7 @@ var Tr = e.object({
|
|
|
2317
2318
|
reference_text_size: e.number(),
|
|
2318
2319
|
subtitle: J,
|
|
2319
2320
|
title: J
|
|
2320
|
-
}),
|
|
2321
|
+
}), Ar = e.object({
|
|
2321
2322
|
background_color: e.string(),
|
|
2322
2323
|
background_image_url: e.string(),
|
|
2323
2324
|
page_layout: e.enum([
|
|
@@ -2330,7 +2331,7 @@ var Tr = e.object({
|
|
|
2330
2331
|
"chip",
|
|
2331
2332
|
"none"
|
|
2332
2333
|
]).optional()
|
|
2333
|
-
}),
|
|
2334
|
+
}), jr = e.object({
|
|
2334
2335
|
header_text_alignment: e.enum([
|
|
2335
2336
|
"center",
|
|
2336
2337
|
"left",
|
|
@@ -2345,72 +2346,72 @@ var Tr = e.object({
|
|
|
2345
2346
|
]),
|
|
2346
2347
|
logo_url: e.string(),
|
|
2347
2348
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2348
|
-
}),
|
|
2349
|
-
borders:
|
|
2350
|
-
colors:
|
|
2349
|
+
}), Mr = e.object({
|
|
2350
|
+
borders: Dr,
|
|
2351
|
+
colors: Or,
|
|
2351
2352
|
displayName: e.string(),
|
|
2352
|
-
fonts:
|
|
2353
|
-
page_background:
|
|
2354
|
-
widget:
|
|
2355
|
-
}),
|
|
2353
|
+
fonts: kr,
|
|
2354
|
+
page_background: Ar,
|
|
2355
|
+
widget: jr
|
|
2356
|
+
}), Nr = Mr.extend({ themeId: e.string() }), Pr = e.object({
|
|
2356
2357
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2357
2358
|
identifier_first: e.boolean().default(!0),
|
|
2358
2359
|
password_first: e.boolean().default(!1),
|
|
2359
2360
|
show_last_used_connection: e.boolean().default(!1),
|
|
2360
2361
|
webauthn_platform_first_factor: e.boolean()
|
|
2361
|
-
}),
|
|
2362
|
+
}), Fr = e.object({
|
|
2362
2363
|
hosts: e.array(e.string()).optional(),
|
|
2363
2364
|
methods: e.array(e.string()).optional(),
|
|
2364
2365
|
path: e.string().default("/*"),
|
|
2365
2366
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2366
2367
|
query: e.record(e.string(), e.string()).optional()
|
|
2367
|
-
}),
|
|
2368
|
+
}), Ir = e.object({
|
|
2368
2369
|
type: e.string(),
|
|
2369
2370
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2370
2371
|
}), Y = e.object({
|
|
2371
2372
|
id: e.string().optional(),
|
|
2372
2373
|
custom_domain_id: e.string(),
|
|
2373
2374
|
priority: e.number().int().default(100),
|
|
2374
|
-
match:
|
|
2375
|
-
handlers: e.array(
|
|
2376
|
-
}),
|
|
2375
|
+
match: Fr,
|
|
2376
|
+
handlers: e.array(Ir).min(1)
|
|
2377
|
+
}), Lr = Y.extend({
|
|
2377
2378
|
id: e.string(),
|
|
2378
2379
|
tenant_id: e.string(),
|
|
2379
2380
|
created_at: e.string(),
|
|
2380
2381
|
updated_at: e.string()
|
|
2381
|
-
}),
|
|
2382
|
+
}), Rr = Y.partial().omit({
|
|
2382
2383
|
id: !0,
|
|
2383
2384
|
custom_domain_id: !0
|
|
2384
|
-
}),
|
|
2385
|
+
}), zr = e.object({
|
|
2385
2386
|
scim: e.string(),
|
|
2386
2387
|
auth0: e.string()
|
|
2387
|
-
}),
|
|
2388
|
+
}), Br = e.object({
|
|
2388
2389
|
connection_id: e.string(),
|
|
2389
2390
|
user_id_attribute: e.string().default("externalId"),
|
|
2390
|
-
mapping: e.array(
|
|
2391
|
-
}),
|
|
2391
|
+
mapping: e.array(zr).default([])
|
|
2392
|
+
}), Vr = e.object({
|
|
2392
2393
|
created_at: e.string(),
|
|
2393
2394
|
updated_at: e.string()
|
|
2394
|
-
}).extend(
|
|
2395
|
+
}).extend(Br.shape), Hr = e.object({
|
|
2395
2396
|
token_id: e.string(),
|
|
2396
2397
|
connection_id: e.string(),
|
|
2397
2398
|
token_hash: e.string(),
|
|
2398
2399
|
scopes: e.array(e.string()).default([]),
|
|
2399
2400
|
valid_until: e.string().optional()
|
|
2400
|
-
}),
|
|
2401
|
+
}), Ur = e.object({
|
|
2401
2402
|
created_at: e.string(),
|
|
2402
2403
|
last_used_at: e.string().optional()
|
|
2403
|
-
}).extend(
|
|
2404
|
+
}).extend(Hr.shape), Wr = e.object({
|
|
2404
2405
|
connection_id: e.string(),
|
|
2405
2406
|
external_id: e.string(),
|
|
2406
2407
|
user_id: e.string()
|
|
2407
|
-
}),
|
|
2408
|
+
}), Gr = e.object({ created_at: e.string() }).extend(Wr.shape), Kr = e.object({
|
|
2408
2409
|
name: e.string(),
|
|
2409
2410
|
enabled: e.boolean().optional().default(!0),
|
|
2410
2411
|
default_from_address: e.string().optional(),
|
|
2411
2412
|
credentials: e.record(e.string(), e.unknown()),
|
|
2412
2413
|
settings: e.object({}).optional()
|
|
2413
|
-
}),
|
|
2414
|
+
}), qr = e.enum([
|
|
2414
2415
|
"verify_email",
|
|
2415
2416
|
"verify_email_by_code",
|
|
2416
2417
|
"reset_email",
|
|
@@ -2423,8 +2424,8 @@ var Tr = e.object({
|
|
|
2423
2424
|
"change_password",
|
|
2424
2425
|
"password_reset",
|
|
2425
2426
|
"user_invitation"
|
|
2426
|
-
]),
|
|
2427
|
-
template:
|
|
2427
|
+
]), Jr = e.object({
|
|
2428
|
+
template: qr,
|
|
2428
2429
|
body: e.string(),
|
|
2429
2430
|
from: e.string(),
|
|
2430
2431
|
subject: e.string(),
|
|
@@ -2433,7 +2434,7 @@ var Tr = e.object({
|
|
|
2433
2434
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2434
2435
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2435
2436
|
enabled: e.boolean().default(!0)
|
|
2436
|
-
}),
|
|
2437
|
+
}), Yr = e.object({
|
|
2437
2438
|
id: e.string(),
|
|
2438
2439
|
login_id: e.string(),
|
|
2439
2440
|
session_id: e.string().optional(),
|
|
@@ -2445,7 +2446,7 @@ var Tr = e.object({
|
|
|
2445
2446
|
expires_at: e.string().optional(),
|
|
2446
2447
|
idle_expires_at: e.string().optional(),
|
|
2447
2448
|
last_exchanged_at: e.string().optional(),
|
|
2448
|
-
device:
|
|
2449
|
+
device: ar,
|
|
2449
2450
|
resource_servers: e.array(e.object({
|
|
2450
2451
|
audience: e.string(),
|
|
2451
2452
|
scopes: e.string()
|
|
@@ -2456,19 +2457,19 @@ var Tr = e.object({
|
|
|
2456
2457
|
family_id: e.string().optional(),
|
|
2457
2458
|
rotated_to: e.string().optional(),
|
|
2458
2459
|
rotated_at: e.string().optional()
|
|
2459
|
-
}),
|
|
2460
|
+
}), Xr = Yr.extend({
|
|
2460
2461
|
created_at: e.string(),
|
|
2461
2462
|
revoked_at: e.string().optional()
|
|
2462
|
-
}),
|
|
2463
|
+
}), Zr = e.object({
|
|
2463
2464
|
to: e.string(),
|
|
2464
2465
|
message: e.string()
|
|
2465
|
-
}),
|
|
2466
|
+
}), Qr = e.object({
|
|
2466
2467
|
name: e.string(),
|
|
2467
2468
|
options: e.object({})
|
|
2468
|
-
}),
|
|
2469
|
+
}), $r = e.object({
|
|
2469
2470
|
value: e.string(),
|
|
2470
2471
|
description: e.string().optional()
|
|
2471
|
-
}),
|
|
2472
|
+
}), ei = e.object({
|
|
2472
2473
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2473
2474
|
enforce_policies: e.boolean().optional(),
|
|
2474
2475
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2476,11 +2477,11 @@ var Tr = e.object({
|
|
|
2476
2477
|
persist_client_authorization: e.boolean().optional(),
|
|
2477
2478
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2478
2479
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2479
|
-
}),
|
|
2480
|
+
}), ti = e.object({
|
|
2480
2481
|
id: e.string().optional(),
|
|
2481
2482
|
name: e.string(),
|
|
2482
2483
|
identifier: e.string(),
|
|
2483
|
-
scopes: e.array(
|
|
2484
|
+
scopes: e.array($r).optional(),
|
|
2484
2485
|
signing_alg: e.string().optional(),
|
|
2485
2486
|
signing_secret: e.string().optional(),
|
|
2486
2487
|
token_lifetime: e.number().default(86400),
|
|
@@ -2488,37 +2489,37 @@ var Tr = e.object({
|
|
|
2488
2489
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2489
2490
|
allow_offline_access: e.boolean().optional(),
|
|
2490
2491
|
verificationKey: e.string().optional(),
|
|
2491
|
-
options:
|
|
2492
|
+
options: ei.optional(),
|
|
2492
2493
|
is_system: e.boolean().optional(),
|
|
2493
2494
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2494
|
-
}),
|
|
2495
|
+
}), ni = ti.extend({
|
|
2495
2496
|
created_at: e.string().optional(),
|
|
2496
2497
|
updated_at: e.string().optional()
|
|
2497
|
-
}),
|
|
2498
|
+
}), ri = e.array(ni), ii = e.object({
|
|
2498
2499
|
role_id: e.string(),
|
|
2499
2500
|
resource_server_identifier: e.string(),
|
|
2500
2501
|
permission_name: e.string()
|
|
2501
|
-
}),
|
|
2502
|
+
}), ai = ii.extend({ created_at: e.string() }), oi = e.array(ai), si = e.object({
|
|
2502
2503
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2503
2504
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2504
2505
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2505
2506
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2506
|
-
}),
|
|
2507
|
+
}), ci = si.extend({ id: e.string() }), li = e.object({
|
|
2507
2508
|
user_id: e.string(),
|
|
2508
2509
|
last_login: e.string().optional(),
|
|
2509
2510
|
last_ip: e.string().optional(),
|
|
2510
2511
|
login_count: e.number().default(0),
|
|
2511
2512
|
failed_logins: e.array(e.string()).optional(),
|
|
2512
2513
|
last_password_reset: e.string().optional()
|
|
2513
|
-
}),
|
|
2514
|
+
}), ui = e.object({
|
|
2514
2515
|
user_id: e.string(),
|
|
2515
2516
|
resource_server_identifier: e.string(),
|
|
2516
2517
|
permission_name: e.string(),
|
|
2517
2518
|
organization_id: e.string().optional()
|
|
2518
|
-
}),
|
|
2519
|
+
}), di = ui.extend({
|
|
2519
2520
|
tenant_id: e.string(),
|
|
2520
2521
|
created_at: e.string().optional()
|
|
2521
|
-
}),
|
|
2522
|
+
}), fi = e.array(di), pi = e.object({
|
|
2522
2523
|
user_id: e.string(),
|
|
2523
2524
|
resource_server_identifier: e.string(),
|
|
2524
2525
|
resource_server_name: e.string(),
|
|
@@ -2526,65 +2527,65 @@ var Tr = e.object({
|
|
|
2526
2527
|
description: e.string().nullable().optional(),
|
|
2527
2528
|
created_at: e.string().optional(),
|
|
2528
2529
|
organization_id: e.string().optional()
|
|
2529
|
-
}),
|
|
2530
|
+
}), mi = e.array(pi), hi = e.object({
|
|
2530
2531
|
user_id: e.string(),
|
|
2531
2532
|
role_id: e.string(),
|
|
2532
2533
|
organization_id: e.string().optional()
|
|
2533
|
-
}),
|
|
2534
|
+
}), gi = hi.extend({
|
|
2534
2535
|
tenant_id: e.string(),
|
|
2535
2536
|
created_at: e.string().optional()
|
|
2536
|
-
}),
|
|
2537
|
+
}), _i = e.array(gi), vi = e.object({
|
|
2537
2538
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2538
2539
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2539
2540
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2540
2541
|
is_system: e.boolean().optional(),
|
|
2541
2542
|
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." })
|
|
2542
|
-
}),
|
|
2543
|
+
}), yi = vi.extend({
|
|
2543
2544
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2544
2545
|
created_at: e.string().optional(),
|
|
2545
2546
|
updated_at: e.string().optional()
|
|
2546
|
-
}),
|
|
2547
|
+
}), bi = e.array(yi), xi = e.object({
|
|
2547
2548
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2548
2549
|
colors: e.object({
|
|
2549
2550
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2550
2551
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2551
2552
|
}).optional()
|
|
2552
|
-
}).optional(),
|
|
2553
|
+
}).optional(), Si = e.object({
|
|
2553
2554
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2554
2555
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2555
2556
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2556
2557
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2557
|
-
}),
|
|
2558
|
+
}), Ci = e.object({ client_credentials: e.object({
|
|
2558
2559
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2559
2560
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2560
2561
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2561
|
-
}).optional() }).optional(),
|
|
2562
|
+
}).optional() }).optional(), wi = e.object({
|
|
2562
2563
|
id: e.string().optional(),
|
|
2563
2564
|
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." }),
|
|
2564
2565
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2565
|
-
branding:
|
|
2566
|
+
branding: xi,
|
|
2566
2567
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2567
|
-
enabled_connections: e.array(
|
|
2568
|
-
token_quota:
|
|
2569
|
-
}),
|
|
2568
|
+
enabled_connections: e.array(Si).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2569
|
+
token_quota: Ci
|
|
2570
|
+
}), Ti = wi.extend(t.shape).extend({
|
|
2570
2571
|
id: e.string(),
|
|
2571
2572
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2572
|
-
}),
|
|
2573
|
+
}), Ei = e.object({
|
|
2573
2574
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2574
2575
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2575
2576
|
show_as_button: e.boolean().optional().default(!0),
|
|
2576
2577
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2577
|
-
}),
|
|
2578
|
+
}), Di = Ei.extend({
|
|
2578
2579
|
connection: e.object({
|
|
2579
2580
|
name: e.string().optional(),
|
|
2580
2581
|
strategy: e.string().optional()
|
|
2581
2582
|
}).optional(),
|
|
2582
2583
|
created_at: e.string().optional(),
|
|
2583
2584
|
updated_at: e.string().optional()
|
|
2584
|
-
}),
|
|
2585
|
+
}), Oi = e.array(Di), ki = e.object({
|
|
2585
2586
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2586
2587
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2587
|
-
}),
|
|
2588
|
+
}), Ai = ki.extend(t.shape).extend({ id: e.string() }), ji = e.object({
|
|
2588
2589
|
idle_session_lifetime: e.number().default(72),
|
|
2589
2590
|
session_lifetime: e.number().default(168),
|
|
2590
2591
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2663,7 +2664,7 @@ var Tr = e.object({
|
|
|
2663
2664
|
}).optional(),
|
|
2664
2665
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2665
2666
|
}).optional()
|
|
2666
|
-
}),
|
|
2667
|
+
}), Mi = e.object({
|
|
2667
2668
|
date: e.string().openapi({
|
|
2668
2669
|
description: "Date these events occurred in ISO 8601 format",
|
|
2669
2670
|
example: "2025-12-19"
|
|
@@ -2688,10 +2689,10 @@ var Tr = e.object({
|
|
|
2688
2689
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2689
2690
|
example: "2025-12-19T00:00:00.000Z"
|
|
2690
2691
|
})
|
|
2691
|
-
}),
|
|
2692
|
+
}), Ni = e.number().openapi({
|
|
2692
2693
|
description: "Number of active users in the last 30 days",
|
|
2693
2694
|
example: 1234
|
|
2694
|
-
}),
|
|
2695
|
+
}), Pi = e.enum([
|
|
2695
2696
|
"active-users",
|
|
2696
2697
|
"logins",
|
|
2697
2698
|
"signups",
|
|
@@ -2703,64 +2704,64 @@ var Tr = e.object({
|
|
|
2703
2704
|
"mfa",
|
|
2704
2705
|
"email-verifications",
|
|
2705
2706
|
"codes-sent"
|
|
2706
|
-
]),
|
|
2707
|
+
]), Fi = e.enum([
|
|
2707
2708
|
"hour",
|
|
2708
2709
|
"day",
|
|
2709
2710
|
"week",
|
|
2710
2711
|
"month"
|
|
2711
|
-
]),
|
|
2712
|
+
]), Ii = e.enum([
|
|
2712
2713
|
"time",
|
|
2713
2714
|
"connection",
|
|
2714
2715
|
"client_id",
|
|
2715
2716
|
"user_type",
|
|
2716
2717
|
"event"
|
|
2717
|
-
]),
|
|
2718
|
+
]), Li = e.enum([
|
|
2718
2719
|
"password",
|
|
2719
2720
|
"social",
|
|
2720
2721
|
"passwordless",
|
|
2721
2722
|
"enterprise"
|
|
2722
|
-
]),
|
|
2723
|
+
]), Ri = e.object({
|
|
2723
2724
|
cohort: e.string(),
|
|
2724
2725
|
sessions: e.number(),
|
|
2725
2726
|
active: e.array(e.number())
|
|
2726
|
-
}),
|
|
2727
|
+
}), zi = e.object({
|
|
2727
2728
|
interval: e.literal("week"),
|
|
2728
2729
|
from: e.string(),
|
|
2729
2730
|
to: e.string(),
|
|
2730
|
-
cohorts: e.array(
|
|
2731
|
-
}),
|
|
2731
|
+
cohorts: e.array(Ri)
|
|
2732
|
+
}), Bi = e.object({
|
|
2732
2733
|
cohort: e.string(),
|
|
2733
2734
|
tokens: e.number(),
|
|
2734
2735
|
active: e.array(e.number())
|
|
2735
|
-
}),
|
|
2736
|
+
}), Vi = e.object({
|
|
2736
2737
|
interval: e.literal("week"),
|
|
2737
2738
|
from: e.string(),
|
|
2738
2739
|
to: e.string(),
|
|
2739
|
-
cohorts: e.array(
|
|
2740
|
-
}),
|
|
2740
|
+
cohorts: e.array(Bi)
|
|
2741
|
+
}), Hi = e.object({
|
|
2741
2742
|
name: e.string(),
|
|
2742
2743
|
type: e.string()
|
|
2743
|
-
}),
|
|
2744
|
+
}), Ui = e.object({
|
|
2744
2745
|
elapsed: e.number(),
|
|
2745
2746
|
rows_read: e.number().optional(),
|
|
2746
2747
|
bytes_read: e.number().optional()
|
|
2747
|
-
}),
|
|
2748
|
-
meta: e.array(
|
|
2748
|
+
}), Wi = e.object({
|
|
2749
|
+
meta: e.array(Hi),
|
|
2749
2750
|
data: e.array(e.record(e.string(), e.any())),
|
|
2750
2751
|
rows: e.number(),
|
|
2751
2752
|
rows_before_limit_at_least: e.number().optional(),
|
|
2752
|
-
statistics:
|
|
2753
|
-
}),
|
|
2753
|
+
statistics: Ui.optional()
|
|
2754
|
+
}), Gi = 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(".")), Ki = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2754
2755
|
type: "object",
|
|
2755
2756
|
additionalProperties: {
|
|
2756
2757
|
type: "object",
|
|
2757
2758
|
additionalProperties: { type: "string" }
|
|
2758
2759
|
}
|
|
2759
|
-
}),
|
|
2760
|
-
prompt:
|
|
2760
|
+
}), qi = e.object({
|
|
2761
|
+
prompt: Gi,
|
|
2761
2762
|
language: e.string(),
|
|
2762
|
-
custom_text:
|
|
2763
|
-
}),
|
|
2763
|
+
custom_text: Ki
|
|
2764
|
+
}), Ji = {
|
|
2764
2765
|
EMAIL: "email",
|
|
2765
2766
|
SMS: "sms",
|
|
2766
2767
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2776,17 +2777,17 @@ var Tr = e.object({
|
|
|
2776
2777
|
WAAD: "waad",
|
|
2777
2778
|
ADFS: "adfs",
|
|
2778
2779
|
OKTA: "okta"
|
|
2779
|
-
},
|
|
2780
|
+
}, Yi = {
|
|
2780
2781
|
DATABASE: "database",
|
|
2781
2782
|
SOCIAL: "social",
|
|
2782
2783
|
PASSWORDLESS: "passwordless"
|
|
2783
|
-
},
|
|
2784
|
-
function
|
|
2785
|
-
return e === "auth0" || e ===
|
|
2784
|
+
}, Xi = "auth0";
|
|
2785
|
+
function Zi(e) {
|
|
2786
|
+
return e === "auth0" || e === Ji.USERNAME_PASSWORD || e === "auth2";
|
|
2786
2787
|
}
|
|
2787
2788
|
//#endregion
|
|
2788
2789
|
//#region src/types/AuthenticationMethod.ts
|
|
2789
|
-
var
|
|
2790
|
+
var Qi = e.enum([
|
|
2790
2791
|
"phone",
|
|
2791
2792
|
"totp",
|
|
2792
2793
|
"email",
|
|
@@ -2794,9 +2795,9 @@ var Xi = e.enum([
|
|
|
2794
2795
|
"webauthn-roaming",
|
|
2795
2796
|
"webauthn-platform",
|
|
2796
2797
|
"passkey"
|
|
2797
|
-
]),
|
|
2798
|
+
]), $i = e.object({
|
|
2798
2799
|
user_id: e.string(),
|
|
2799
|
-
type:
|
|
2800
|
+
type: Qi,
|
|
2800
2801
|
phone_number: e.string().optional(),
|
|
2801
2802
|
totp_secret: e.string().optional(),
|
|
2802
2803
|
credential_id: e.string().optional(),
|
|
@@ -2807,7 +2808,7 @@ var Xi = e.enum([
|
|
|
2807
2808
|
friendly_name: e.string().optional(),
|
|
2808
2809
|
confirmed: e.boolean().default(!1)
|
|
2809
2810
|
});
|
|
2810
|
-
function
|
|
2811
|
+
function ea(t, n) {
|
|
2811
2812
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2812
2813
|
code: e.ZodIssueCode.custom,
|
|
2813
2814
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2830,15 +2831,15 @@ function Qi(t, n) {
|
|
|
2830
2831
|
path: ["public_key"]
|
|
2831
2832
|
}));
|
|
2832
2833
|
}
|
|
2833
|
-
var
|
|
2834
|
+
var ta = $i.superRefine(ea), na = $i.extend({
|
|
2834
2835
|
id: e.string(),
|
|
2835
2836
|
created_at: e.string(),
|
|
2836
2837
|
updated_at: e.string()
|
|
2837
|
-
}).superRefine(
|
|
2838
|
+
}).superRefine(ea), ra = e.object({
|
|
2838
2839
|
id: e.string().optional(),
|
|
2839
2840
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2840
2841
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2841
|
-
}),
|
|
2842
|
+
}), ia = {
|
|
2842
2843
|
"post-user-login": {
|
|
2843
2844
|
accessToken: ["setCustomClaim"],
|
|
2844
2845
|
idToken: ["setCustomClaim"],
|
|
@@ -2860,7 +2861,7 @@ var $i = Zi.superRefine(Qi), ea = Zi.extend({
|
|
|
2860
2861
|
};
|
|
2861
2862
|
//#endregion
|
|
2862
2863
|
//#region src/utils/user-id.ts
|
|
2863
|
-
function
|
|
2864
|
+
function aa(e) {
|
|
2864
2865
|
let t = e.indexOf("|"), n = e.slice(0, t), r = e.slice(t + 1);
|
|
2865
2866
|
if (t === -1 || !n || !r) throw Error(`Invalid user_id: ${e}`);
|
|
2866
2867
|
return {
|
|
@@ -2869,8 +2870,11 @@ function ra(e) {
|
|
|
2869
2870
|
};
|
|
2870
2871
|
}
|
|
2871
2872
|
//#endregion
|
|
2873
|
+
//#region src/utils/http.ts
|
|
2874
|
+
var oa = "x-authhero-preserve-location";
|
|
2875
|
+
//#endregion
|
|
2872
2876
|
//#region src/utils/passthrough.ts
|
|
2873
|
-
function
|
|
2877
|
+
function sa(e) {
|
|
2874
2878
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2875
2879
|
"create",
|
|
2876
2880
|
"rawCreate",
|
|
@@ -2904,12 +2908,12 @@ function ia(e) {
|
|
|
2904
2908
|
} : i.bind(e) : i;
|
|
2905
2909
|
} });
|
|
2906
2910
|
}
|
|
2907
|
-
function
|
|
2911
|
+
function ca(e) {
|
|
2908
2912
|
return e;
|
|
2909
2913
|
}
|
|
2910
2914
|
//#endregion
|
|
2911
2915
|
//#region src/utils/connection-attributes.ts
|
|
2912
|
-
function
|
|
2916
|
+
function la(e) {
|
|
2913
2917
|
let t = e?.options;
|
|
2914
2918
|
if (!t) return {
|
|
2915
2919
|
usernameIdentifierActive: !1,
|
|
@@ -2932,35 +2936,35 @@ function oa(e) {
|
|
|
2932
2936
|
}
|
|
2933
2937
|
//#endregion
|
|
2934
2938
|
//#region src/utils/guards.ts
|
|
2935
|
-
function
|
|
2939
|
+
function ua(e) {
|
|
2936
2940
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2937
2941
|
}
|
|
2938
2942
|
//#endregion
|
|
2939
2943
|
//#region src/utils/base64url.ts
|
|
2940
|
-
function
|
|
2944
|
+
function da(e) {
|
|
2941
2945
|
let t = "";
|
|
2942
2946
|
for (let n of e) t += String.fromCharCode(n);
|
|
2943
2947
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2944
2948
|
}
|
|
2945
|
-
function
|
|
2949
|
+
function fa(e) {
|
|
2946
2950
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
2947
2951
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
2948
2952
|
return r;
|
|
2949
2953
|
}
|
|
2950
|
-
function
|
|
2951
|
-
return
|
|
2954
|
+
function pa(e) {
|
|
2955
|
+
return da(new TextEncoder().encode(e));
|
|
2952
2956
|
}
|
|
2953
|
-
function
|
|
2954
|
-
return new TextDecoder().decode(
|
|
2957
|
+
function ma(e) {
|
|
2958
|
+
return new TextDecoder().decode(fa(e));
|
|
2955
2959
|
}
|
|
2956
2960
|
//#endregion
|
|
2957
2961
|
//#region src/utils/base64.ts
|
|
2958
|
-
function
|
|
2962
|
+
function ha(e) {
|
|
2959
2963
|
let t = "";
|
|
2960
2964
|
for (let n of e) t += String.fromCharCode(n);
|
|
2961
2965
|
return btoa(t);
|
|
2962
2966
|
}
|
|
2963
|
-
function
|
|
2967
|
+
function ga(e) {
|
|
2964
2968
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
2965
2969
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2966
2970
|
return n;
|
|
@@ -2968,12 +2972,12 @@ function pa(e) {
|
|
|
2968
2972
|
//#endregion
|
|
2969
2973
|
//#region src/utils/base32.ts
|
|
2970
2974
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2971
|
-
function
|
|
2975
|
+
function _a(e) {
|
|
2972
2976
|
let t = "", n = 0, r = 0;
|
|
2973
2977
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
|
|
2974
2978
|
return r > 0 && (t += X[n << 5 - r & 31]), t;
|
|
2975
2979
|
}
|
|
2976
|
-
function
|
|
2980
|
+
function va(e) {
|
|
2977
2981
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2978
2982
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2979
2983
|
let r = [], i = 0, a = 0;
|
|
@@ -2987,19 +2991,19 @@ function ha(e) {
|
|
|
2987
2991
|
}
|
|
2988
2992
|
//#endregion
|
|
2989
2993
|
//#region src/utils/hex.ts
|
|
2990
|
-
function
|
|
2994
|
+
function ya(e) {
|
|
2991
2995
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2992
2996
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2993
2997
|
return n;
|
|
2994
2998
|
}
|
|
2995
2999
|
//#endregion
|
|
2996
3000
|
//#region src/utils/cursor.ts
|
|
2997
|
-
function
|
|
2998
|
-
return
|
|
3001
|
+
function ba(e) {
|
|
3002
|
+
return pa(JSON.stringify(e));
|
|
2999
3003
|
}
|
|
3000
|
-
function
|
|
3004
|
+
function xa(e) {
|
|
3001
3005
|
try {
|
|
3002
|
-
let t = JSON.parse(
|
|
3006
|
+
let t = JSON.parse(ma(e));
|
|
3003
3007
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
3004
3008
|
} catch {
|
|
3005
3009
|
return null;
|
|
@@ -3007,45 +3011,61 @@ function va(e) {
|
|
|
3007
3011
|
}
|
|
3008
3012
|
//#endregion
|
|
3009
3013
|
//#region src/utils/lucene.ts
|
|
3010
|
-
function
|
|
3014
|
+
function Sa(e) {
|
|
3015
|
+
let t = [], n = "", r = !1;
|
|
3016
|
+
for (let i = 0; i < e.length; i++) {
|
|
3017
|
+
let a = e[i];
|
|
3018
|
+
a === "\\" && i + 1 < e.length ? (n += a + e[i + 1], i++) : a === "\"" ? (r = !r, n += a) : a === " " && !r ? (n.trim() && t.push(n.trim()), n = "") : n += a;
|
|
3019
|
+
}
|
|
3020
|
+
return n.trim() && t.push(n.trim()), t;
|
|
3021
|
+
}
|
|
3022
|
+
function Ca(e) {
|
|
3023
|
+
return e.replace(/\\([\\"+\-!(){}[\]^~*?:/&|])/g, "$1");
|
|
3024
|
+
}
|
|
3025
|
+
function wa(e) {
|
|
3026
|
+
return `"${e.replace(/([\\"])/g, "\\$1")}"`;
|
|
3027
|
+
}
|
|
3028
|
+
function Ta(e) {
|
|
3029
|
+
let t = e.trim();
|
|
3030
|
+
return Ca(t.length > 1 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t);
|
|
3031
|
+
}
|
|
3032
|
+
function Ea(e) {
|
|
3033
|
+
let t = [], n = [];
|
|
3034
|
+
for (let r of Sa(e)) /^or$/i.test(r) ? (t.push(n), n = []) : n.push(r);
|
|
3035
|
+
return t.push(n), t.filter((e) => e.length > 0);
|
|
3036
|
+
}
|
|
3037
|
+
function Da(e, t) {
|
|
3011
3038
|
let n = new Set(t), r = (e) => {
|
|
3012
|
-
let t = [], r = ""
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
let t = e.replace(/^([^:]+)=/, "$1:"), r = t.startsWith("-") ? t.slice(1) : t;
|
|
3019
|
-
if (r.startsWith("_exists_:")) return n.has(r.slice(9));
|
|
3020
|
-
let i = r.indexOf(":");
|
|
3021
|
-
return i > 0 ? n.has(r.slice(0, i)) : !0;
|
|
3022
|
-
}).join(" ");
|
|
3023
|
-
}, i = e.split(/ OR /i);
|
|
3024
|
-
return i.length > 1 ? i.map(r).filter((e) => e.length > 0).join(" OR ") : r(e);
|
|
3039
|
+
let t = e.replace(/^([^:]+)=/, "$1:"), r = t.startsWith("-") ? t.slice(1) : t;
|
|
3040
|
+
if (r.startsWith("_exists_:")) return n.has(r.slice(9));
|
|
3041
|
+
let i = r.indexOf(":");
|
|
3042
|
+
return i > 0 ? n.has(r.slice(0, i)) : !0;
|
|
3043
|
+
};
|
|
3044
|
+
return Ea(e).map((e) => e.filter(r).join(" ")).filter((e) => e.length > 0).join(" OR ");
|
|
3025
3045
|
}
|
|
3026
|
-
var
|
|
3027
|
-
function
|
|
3028
|
-
return
|
|
3046
|
+
var Oa = /^[^\s@%_*?"'()[\]{}^~:\\/]+@[^\s@%_*?"'()[\]{}^~:\\/]+\.[^\s@%_*?"'()[\]{}^~:\\/]+$/;
|
|
3047
|
+
function ka(e) {
|
|
3048
|
+
return Oa.test(e);
|
|
3029
3049
|
}
|
|
3030
3050
|
//#endregion
|
|
3031
3051
|
//#region src/utils/session-retention.ts
|
|
3032
3052
|
var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
|
|
3033
|
-
function
|
|
3053
|
+
function Aa(e) {
|
|
3034
3054
|
return Math.floor((e + Q) / Z);
|
|
3035
3055
|
}
|
|
3036
3056
|
function $(e) {
|
|
3037
3057
|
return e * Z - Q;
|
|
3038
3058
|
}
|
|
3039
|
-
function
|
|
3040
|
-
let n =
|
|
3059
|
+
function ja(e, t = Date.now()) {
|
|
3060
|
+
let n = Aa(t), r = n - e + 1;
|
|
3041
3061
|
return {
|
|
3042
3062
|
currentWeek: n,
|
|
3043
3063
|
firstWeek: r,
|
|
3044
3064
|
sinceMs: $(r)
|
|
3045
3065
|
};
|
|
3046
3066
|
}
|
|
3047
|
-
function
|
|
3048
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3067
|
+
function Ma(e, t, n = Date.now()) {
|
|
3068
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = ja(t, n), o = /* @__PURE__ */ new Map();
|
|
3049
3069
|
for (let t of e) {
|
|
3050
3070
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3051
3071
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3068,8 +3088,8 @@ function wa(e, t, n = Date.now()) {
|
|
|
3068
3088
|
cohorts: s
|
|
3069
3089
|
};
|
|
3070
3090
|
}
|
|
3071
|
-
function
|
|
3072
|
-
let r =
|
|
3091
|
+
function Na(e, t, n = Date.now()) {
|
|
3092
|
+
let r = Ma(e, t, n);
|
|
3073
3093
|
return {
|
|
3074
3094
|
interval: r.interval,
|
|
3075
3095
|
from: r.from,
|
|
@@ -3083,16 +3103,16 @@ function Ta(e, t, n = Date.now()) {
|
|
|
3083
3103
|
}
|
|
3084
3104
|
//#endregion
|
|
3085
3105
|
//#region src/utils/username-validation.ts
|
|
3086
|
-
var
|
|
3087
|
-
function
|
|
3088
|
-
return
|
|
3106
|
+
var Pa = /^[A-Za-z0-9_+\-.!#$'^`~]+$/, Fa = "Username can only contain alphanumeric characters and the following characters: '_', '+', '-', '.', '!', '#', '$', \"'\", '^', '`', '~'", Ia = "Usernames must not contain \"@\". Use the email field for email addresses.";
|
|
3107
|
+
function La(e) {
|
|
3108
|
+
return Pa.test(e);
|
|
3089
3109
|
}
|
|
3090
|
-
function
|
|
3110
|
+
function Ra(e) {
|
|
3091
3111
|
return e.toLowerCase();
|
|
3092
3112
|
}
|
|
3093
|
-
function
|
|
3094
|
-
if (e.includes("@")) return
|
|
3095
|
-
if (!
|
|
3113
|
+
function za(e, t) {
|
|
3114
|
+
if (e.includes("@")) return Ia;
|
|
3115
|
+
if (!La(e)) return Fa;
|
|
3096
3116
|
if (t) {
|
|
3097
3117
|
let n = [...e].length;
|
|
3098
3118
|
if (n < t.min) return `Username must be at least ${t.min} characters`;
|
|
@@ -3101,4 +3121,16 @@ function ja(e, t) {
|
|
|
3101
3121
|
return null;
|
|
3102
3122
|
}
|
|
3103
3123
|
//#endregion
|
|
3104
|
-
|
|
3124
|
+
//#region src/utils/feature-not-supported.ts
|
|
3125
|
+
var Ba = class extends Error {
|
|
3126
|
+
feature;
|
|
3127
|
+
adapter;
|
|
3128
|
+
constructor(e, t, n) {
|
|
3129
|
+
super(`${e} is not supported by the ${t} adapter.` + (n ? ` ${n}` : "")), this.name = "FeatureNotSupportedError", this.feature = e, this.adapter = t;
|
|
3130
|
+
}
|
|
3131
|
+
};
|
|
3132
|
+
function Va(e) {
|
|
3133
|
+
return e instanceof Error && e.name === "FeatureNotSupportedError";
|
|
3134
|
+
}
|
|
3135
|
+
//#endregion
|
|
3136
|
+
export { be as Auth0ActionEnum, Vn as Auth0Client, O as AuthorizationResponseMode, D as AuthorizationResponseType, $e as CodeChallengeMethod, w as ComponentCategory, C as ComponentType, Xi as DATABASE_CONNECTION_STRATEGY, xe as EmailActionEnum, qt as FORM_FIELD_TYPES, Ba as FeatureNotSupportedError, ye as FlowActionTypeEnum, Tr as GrantType, Hn as LocationInfo, K as LogTypes, Mn as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Ue as NodeType, oa as PRESERVE_LOCATION_HEADER, u as RedirectTargetEnum, Ji as Strategy, Yi as StrategyType, ia as TRIGGER_API_SHAPES, Ia as USERNAME_CONTAINS_AT_MESSAGE, Fa as USERNAME_INVALID_CHARACTERS_MESSAGE, Z as WEEK_MS, r as actionDependencySchema, ne as actionExecutionErrorSchema, se as actionExecutionInsertSchema, ie as actionExecutionLogEntrySchema, ae as actionExecutionLogsSchema, re as actionExecutionResultSchema, oe as actionExecutionSchema, l as actionExecutionStatusSchema, c as actionExecutionTriggerIdSchema, a as actionInsertSchema, Ke as actionNodeSchema, te as actionResponseSchema, s as actionSchema, ee as actionSecretNameSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, ce as actionVersionInsertSchema, le as actionVersionSchema, Ni as activeUsersResponseSchema, de as actorSchema, p as addressSchema, ln as allowedTriggersForHook, Hi as analyticsColumnMetaSchema, Ii as analyticsGroupBySchema, Fi as analyticsIntervalSchema, Wi as analyticsQueryResponseSchema, Pi as analyticsResourceSchema, Ui as analyticsStatisticsSchema, Li as analyticsUserTypeSchema, nr as attackProtectionSchema, ue as auditCategorySchema, _e as auditEventInsertSchema, ve as auditEventSchema, ge as auth0ClientSchema, Qe as auth0FlowInsertSchema, Ze as auth0FlowSchema, ke as auth0QuerySchema, Ce as auth0UpdateUserActionSchema, je as auth0UserResponseSchema, nt as authParamsSchema, ta as authenticationMethodInsertSchema, na as authenticationMethodSchema, Qi as authenticationMethodTypeSchema, m as baseUserSchema, Wt as blockComponentSchema, Dr as bordersSchema, rt as brandingSchema, $n as breachedPasswordDetectionSchema, er as bruteForceProtectionSchema, Na as buildRefreshTokenRetention, Ma as buildSessionRetention, Re as buttonComponentSchema, tt as claimsRequestSchema, v as clientGrantInsertSchema, Ie as clientGrantListSchema, y as clientGrantSchema, _ as clientInsertSchema, x as clientRegistrationTokenInsertSchema, Le as clientRegistrationTokenSchema, b as clientRegistrationTokenTypeSchema, Fe as clientSchema, at as codeInsertSchema, ot as codeSchema, it as codeTypeSchema, Or as colorsSchema, tn as componentMessageSchema, He as componentSchema, ct as connectionInsertSchema, st as connectionOptionsSchema, lt as connectionSchema, S as coordinatesSchema, sa as createPassthroughAdapter, ca as createWriteOnlyAdapter, mt as customDomainCertificateUploadSchema, A as customDomainInsertSchema, dt as customDomainSchema, ft as customDomainUpdateSchema, pt as customDomainWithTenantIdSchema, qi as customTextEntrySchema, Ki as customTextSchema, Mi as dailyStatsSchema, va as decodeBase32, ga as decodeBase64, fa as decodeBase64Url, ma as decodeBase64UrlString, xa as decodeCursor, Kr as emailProviderSchema, qr as emailTemplateNameSchema, Jr as emailTemplateSchema, Se as emailVerificationRulesSchema, we as emailVerifyActionSchema, _a as encodeBase32, ha as encodeBase64, da as encodeBase64Url, pa as encodeBase64UrlString, ba as encodeCursor, ya as encodeHex, Xe as endingSchema, wa as escapeLuceneValue, Kt as fieldComponentSchema, Ee as flowActionStepSchema, De as flowInsertSchema, Oe as flowSchema, Be as flowsFieldComponentSchema, Ge as flowsFlowNodeSchema, We as flowsStepNodeSchema, J as fontDetailsSchema, kr as fontsSchema, Jt as formControlSchema, $t as formInsertSchema, F as formNodeComponentDefinition, Qt as formNodeSchema, en as formSchema, Ve as genericComponentSchema, qe as genericNodeSchema, la as getConnectionIdentifierConfig, Bn as getLogTypeCategory, zn as getLogTypeDescription, si as grantInsertSchema, ci as grantSchema, Ir as handlerConfigSchema, Cn as hookCodeInsertSchema, wn as hookCodeSchema, gn as hookInsertSchema, H as hookPageId, Sn as hookSchema, U as hookTemplateId, un as hookTemplates, f as identitySchema, ra as importMetadataSchema, Dn as inviteInsertSchema, On as inviteSchema, En as inviteeSchema, Tn as inviterSchema, an as isBlockComponent, Zi as isDatabaseConnectionStrategy, ka as isEmailSearchTerm, Va as isFeatureNotSupportedError, sn as isFieldComponent, ua as isPlainObject, on as isWidgetComponent, An as jwksKeySchema, kn as jwksSchema, ze as legalComponentSchema, he as locationInfoSchema, Un as logInsertSchema, Wn as logSchema, Kn as logStreamFilterSchema, qn as logStreamInsertSchema, Jn as logStreamSchema, q as logStreamStatusSchema, Gn as logStreamTypeSchema, Rn as logTypeCategories, Ln as logTypeDescriptions, G as loginSessionAuthStrategySchema, Pn as loginSessionInsertSchema, Fn as loginSessionSchema, Nn as loginSessionStateSchema, Fr as matchSchema, Yn as migrationProviderTypeSchema, Xn as migrationSourceCredentialsSchema, Zn as migrationSourceInsertSchema, Qn as migrationSourceSchema, Je as nodeSchema, Ra as normalizeUsername, jn as openIDConfigurationSchema, xi as organizationBrandingSchema, Ei as organizationConnectionInsertSchema, Oi as organizationConnectionListSchema, Di as organizationConnectionSchema, Si as organizationEnabledConnectionSchema, wi as organizationInsertSchema, Ti as organizationSchema, Ci as organizationTokenQuotaSchema, Ar as pageBackgroundSchema, aa as parseUserId, rr as passwordInsertSchema, ir as passwordSchema, d as profileDataSchema, Gi as promptScreenSchema, Pr as promptSettingSchema, Y as proxyRouteInsertSchema, Lr as proxyRouteSchema, Rr as proxyRouteUpdateSchema, Te as redirectActionSchema, Yr as refreshTokenInsertSchema, Bi as refreshTokenRetentionCohortSchema, Vi as refreshTokenRetentionResponseSchema, Xr as refreshTokenSchema, pe as requestContextSchema, ti as resourceServerInsertSchema, ri as resourceServerListSchema, ei as resourceServerOptionsSchema, ni as resourceServerSchema, $r as resourceServerScopeSchema, me as responseContextSchema, E as richTextComponentSchema, vi as roleInsertSchema, bi as roleListSchema, ii as rolePermissionInsertSchema, oi as rolePermissionListSchema, ai as rolePermissionSchema, yi as roleSchema, Sr as rolloutInsertSchema, br as rolloutKindSchema, Cr as rolloutSchema, xr as rolloutStatusSchema, wr as rolloutUpdateSchema, Da as sanitizeLuceneQuery, Br as scimConfigurationInsertSchema, Vr as scimConfigurationSchema, Wr as scimExternalIdInsertSchema, Gr as scimExternalIdSchema, zr as scimMappingEntrySchema, Hr as scimTokenInsertSchema, Ur as scimTokenSchema, nn as screenLinkSchema, or as sessionInsertSchema, Ri as sessionRetentionCohortSchema, zi as sessionRetentionResponseSchema, ja as sessionRetentionWindow, sr as sessionSchema, cr as signingKeySchema, Qr as smsProviderSchema, Zr as smsSendParamsSchema, Ea as splitLuceneOrGroups, Ye as startSchema, tr as suspiciousIpThrottlingSchema, fe as targetSchema, lr as tenantInsertSchema, pr as tenantOperationEngineSchema, vr as tenantOperationEventInsertSchema, _r as tenantOperationEventOutcomeSchema, yr as tenantOperationEventSchema, mr as tenantOperationInsertSchema, dr as tenantOperationKindSchema, hr as tenantOperationSchema, fr as tenantOperationStatusSchema, gr as tenantOperationUpdateSchema, ur as tenantSchema, ji as tenantSettingsSchema, Mr as themeInsertSchema, Nr as themeSchema, Er as tokenResponseSchema, Sa as tokenizeLuceneQuery, Ae as totalsSchema, rn as uiScreenSchema, Ca as unescapeLuceneValue, Ta as unquoteLuceneValue, li as userActivitySchema, h as userInsertSchema, ki as userOrganizationInsertSchema, Ai as userOrganizationSchema, ui as userPermissionInsertSchema, fi as userPermissionListSchema, di as userPermissionSchema, mi as userPermissionWithDetailsListSchema, pi as userPermissionWithDetailsSchema, Me as userResponseSchema, hi as userRoleInsertSchema, _i as userRoleListSchema, gi as userRoleSchema, g as userSchema, La as usernameHasOnlyAllowedCharacters, za as validateUsername, ut as verificationMethodsSchema, Aa as weekIndex, $ as weekStartMs, Gt as widgetComponentSchema, jr as widgetSchema };
|