@authhero/adapter-interfaces 4.20.0 → 4.22.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 +404 -25
- package/dist/adapter-interfaces.mjs +514 -478
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/OrganizationConnections.d.ts +15 -0
- package/dist/types/adapters/Outbox.d.ts +5 -0
- package/dist/types/adapters/RefreshTokens.d.ts +1 -13
- package/dist/types/adapters/Tenants.d.ts +1 -0
- package/dist/types/adapters/UserPermissions.d.ts +14 -0
- package/dist/types/adapters/UserRoles.d.ts +14 -0
- package/dist/types/types/Action.d.ts +48 -4
- package/dist/types/types/AuditEvent.d.ts +59 -0
- package/dist/types/types/Branding.d.ts +11 -0
- package/dist/types/types/ConfigInheritance.d.ts +39 -0
- package/dist/types/types/Connection.d.ts +22 -0
- package/dist/types/types/EmailProvider.d.ts +11 -0
- package/dist/types/types/Hook.d.ts +110 -0
- package/dist/types/types/Logs.d.ts +3 -2
- package/dist/types/types/PromptSetting.d.ts +11 -0
- package/dist/types/types/ResourceServer.d.ts +36 -3
- package/dist/types/types/Tenant.d.ts +2 -0
- package/dist/types/types/User.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3,28 +3,41 @@ import { z as e } from "@hono/zod-openapi";
|
|
|
3
3
|
var t = e.object({
|
|
4
4
|
created_at: e.string(),
|
|
5
5
|
updated_at: e.string()
|
|
6
|
-
}), n = e.
|
|
6
|
+
}), n = e.enum([
|
|
7
|
+
"local",
|
|
8
|
+
"shared",
|
|
9
|
+
"platform"
|
|
10
|
+
]), r = e.enum([
|
|
11
|
+
"none",
|
|
12
|
+
"secrets",
|
|
13
|
+
"fields"
|
|
14
|
+
]), i = {
|
|
15
|
+
scope: n.optional(),
|
|
16
|
+
override: r.optional(),
|
|
17
|
+
enforce: e.boolean().optional()
|
|
18
|
+
}, a = e.object({
|
|
7
19
|
id: e.string(),
|
|
8
20
|
version: e.string().optional()
|
|
9
|
-
}),
|
|
21
|
+
}), o = e.object({
|
|
10
22
|
name: e.string(),
|
|
11
23
|
version: e.string()
|
|
12
|
-
}),
|
|
24
|
+
}), s = e.object({
|
|
13
25
|
name: e.string(),
|
|
14
26
|
value: e.string().optional()
|
|
15
|
-
}),
|
|
27
|
+
}), c = e.object({
|
|
16
28
|
name: e.string().max(255),
|
|
17
29
|
code: e.string().max(1e5),
|
|
18
|
-
supported_triggers: e.array(
|
|
30
|
+
supported_triggers: e.array(a).optional(),
|
|
19
31
|
runtime: e.string().max(50).optional(),
|
|
20
|
-
dependencies: e.array(
|
|
21
|
-
secrets: e.array(
|
|
32
|
+
dependencies: e.array(o).optional(),
|
|
33
|
+
secrets: e.array(s).optional(),
|
|
22
34
|
is_system: e.boolean().optional(),
|
|
35
|
+
...i,
|
|
23
36
|
inherit: e.boolean().optional()
|
|
24
|
-
}),
|
|
37
|
+
}), ee = c.partial().extend({
|
|
25
38
|
status: e.enum(["draft", "built"]).optional(),
|
|
26
39
|
deployed_at: e.string().optional()
|
|
27
|
-
}),
|
|
40
|
+
}), l = c.extend({
|
|
28
41
|
id: e.string(),
|
|
29
42
|
tenant_id: e.string(),
|
|
30
43
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -33,23 +46,23 @@ var t = e.object({
|
|
|
33
46
|
name: e.string(),
|
|
34
47
|
value: e.string().optional()
|
|
35
48
|
})).optional()
|
|
36
|
-
}).extend(t.shape),
|
|
49
|
+
}).extend(t.shape), te = e.object({ name: e.string() }), ne = l.extend({ secrets: e.array(te).optional() }), re = e.string(), ie = e.enum([
|
|
37
50
|
"unspecified",
|
|
38
51
|
"pending",
|
|
39
52
|
"final",
|
|
40
53
|
"partial",
|
|
41
54
|
"canceled",
|
|
42
55
|
"suspended"
|
|
43
|
-
]),
|
|
56
|
+
]), ae = e.object({
|
|
44
57
|
id: e.string(),
|
|
45
58
|
msg: e.string(),
|
|
46
59
|
url: e.string().optional()
|
|
47
|
-
}),
|
|
60
|
+
}), oe = e.object({
|
|
48
61
|
action_name: e.string(),
|
|
49
|
-
error:
|
|
62
|
+
error: ae.nullable(),
|
|
50
63
|
started_at: e.string(),
|
|
51
64
|
ended_at: e.string()
|
|
52
|
-
}),
|
|
65
|
+
}), se = e.object({
|
|
53
66
|
level: e.enum([
|
|
54
67
|
"log",
|
|
55
68
|
"info",
|
|
@@ -58,40 +71,40 @@ var t = e.object({
|
|
|
58
71
|
"debug"
|
|
59
72
|
]),
|
|
60
73
|
message: e.string()
|
|
61
|
-
}),
|
|
74
|
+
}), ce = e.array(e.object({
|
|
62
75
|
action_name: e.string(),
|
|
63
|
-
lines: e.array(
|
|
64
|
-
})),
|
|
76
|
+
lines: e.array(se)
|
|
77
|
+
})), le = e.object({
|
|
65
78
|
id: e.string(),
|
|
66
79
|
tenant_id: e.string(),
|
|
67
|
-
trigger_id:
|
|
68
|
-
status:
|
|
69
|
-
results: e.array(
|
|
70
|
-
logs:
|
|
80
|
+
trigger_id: re,
|
|
81
|
+
status: ie,
|
|
82
|
+
results: e.array(oe),
|
|
83
|
+
logs: ce.optional(),
|
|
71
84
|
created_at: e.string(),
|
|
72
85
|
updated_at: e.string()
|
|
73
|
-
}),
|
|
86
|
+
}), ue = le.omit({
|
|
74
87
|
tenant_id: !0,
|
|
75
88
|
created_at: !0,
|
|
76
89
|
updated_at: !0
|
|
77
|
-
}),
|
|
90
|
+
}), de = e.object({
|
|
78
91
|
action_id: e.string(),
|
|
79
92
|
code: e.string().max(1e5),
|
|
80
93
|
runtime: e.string().max(50).optional(),
|
|
81
|
-
dependencies: e.array(
|
|
82
|
-
secrets: e.array(
|
|
83
|
-
supported_triggers: e.array(
|
|
94
|
+
dependencies: e.array(o).optional(),
|
|
95
|
+
secrets: e.array(s).optional(),
|
|
96
|
+
supported_triggers: e.array(a).optional(),
|
|
84
97
|
deployed: e.boolean().default(!0)
|
|
85
|
-
}),
|
|
98
|
+
}), fe = de.extend({
|
|
86
99
|
id: e.string(),
|
|
87
100
|
tenant_id: e.string(),
|
|
88
101
|
number: e.number().int()
|
|
89
|
-
}).extend(t.shape),
|
|
102
|
+
}).extend(t.shape), pe = e.enum([
|
|
90
103
|
"user_action",
|
|
91
104
|
"admin_action",
|
|
92
105
|
"system",
|
|
93
106
|
"api"
|
|
94
|
-
]),
|
|
107
|
+
]), me = e.object({
|
|
95
108
|
type: e.enum([
|
|
96
109
|
"user",
|
|
97
110
|
"admin",
|
|
@@ -105,7 +118,7 @@ var t = e.object({
|
|
|
105
118
|
org_name: e.string().optional(),
|
|
106
119
|
scopes: e.array(e.string()).optional(),
|
|
107
120
|
client_id: e.string().optional()
|
|
108
|
-
}),
|
|
121
|
+
}), he = e.object({
|
|
109
122
|
type: e.string(),
|
|
110
123
|
id: e.string(),
|
|
111
124
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -114,7 +127,18 @@ var t = e.object({
|
|
|
114
127
|
old: e.unknown(),
|
|
115
128
|
new: e.unknown()
|
|
116
129
|
})).optional()
|
|
117
|
-
}),
|
|
130
|
+
}), ge = e.object({
|
|
131
|
+
user: e.object({
|
|
132
|
+
user_id: e.string(),
|
|
133
|
+
name: e.string().optional(),
|
|
134
|
+
email: e.string().optional()
|
|
135
|
+
}).optional(),
|
|
136
|
+
strategy: e.string(),
|
|
137
|
+
credentials: e.object({
|
|
138
|
+
jti: e.string().optional(),
|
|
139
|
+
scopes: e.array(e.string()).optional()
|
|
140
|
+
}).optional()
|
|
141
|
+
}), _e = e.object({
|
|
118
142
|
method: e.string(),
|
|
119
143
|
path: e.string(),
|
|
120
144
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -123,31 +147,32 @@ var t = e.object({
|
|
|
123
147
|
user_agent: e.string().optional(),
|
|
124
148
|
correlation_id: e.string().optional(),
|
|
125
149
|
redirect_uri: e.string().optional(),
|
|
126
|
-
authorization_url: e.string().optional()
|
|
127
|
-
|
|
150
|
+
authorization_url: e.string().optional(),
|
|
151
|
+
auth: ge.optional()
|
|
152
|
+
}), ve = e.object({
|
|
128
153
|
status_code: e.number(),
|
|
129
154
|
body: e.unknown().optional()
|
|
130
|
-
}),
|
|
155
|
+
}), ye = e.object({
|
|
131
156
|
country_code: e.string(),
|
|
132
157
|
city_name: e.string(),
|
|
133
158
|
latitude: e.string(),
|
|
134
159
|
longitude: e.string(),
|
|
135
160
|
time_zone: e.string(),
|
|
136
161
|
continent_code: e.string()
|
|
137
|
-
}),
|
|
162
|
+
}), be = e.object({
|
|
138
163
|
name: e.string(),
|
|
139
164
|
version: e.string(),
|
|
140
165
|
env: e.record(e.string(), e.string()).optional()
|
|
141
|
-
}),
|
|
166
|
+
}), xe = e.object({
|
|
142
167
|
tenant_id: e.string(),
|
|
143
168
|
event_type: e.string(),
|
|
144
169
|
log_type: e.string(),
|
|
145
170
|
description: e.string().optional(),
|
|
146
|
-
category:
|
|
147
|
-
actor:
|
|
148
|
-
target:
|
|
149
|
-
request:
|
|
150
|
-
response:
|
|
171
|
+
category: pe,
|
|
172
|
+
actor: me,
|
|
173
|
+
target: he,
|
|
174
|
+
request: _e,
|
|
175
|
+
response: ve.optional(),
|
|
151
176
|
connection: e.string().optional(),
|
|
152
177
|
connection_id: e.string().optional(),
|
|
153
178
|
client_name: e.string().optional(),
|
|
@@ -155,30 +180,32 @@ var t = e.object({
|
|
|
155
180
|
strategy_type: e.string().optional(),
|
|
156
181
|
audience: e.string().optional(),
|
|
157
182
|
scope: e.string().optional(),
|
|
158
|
-
location:
|
|
159
|
-
auth0_client:
|
|
183
|
+
location: ye.optional(),
|
|
184
|
+
auth0_client: be.optional(),
|
|
160
185
|
hostname: e.string(),
|
|
161
186
|
is_mobile: e.boolean().optional(),
|
|
162
187
|
execution_id: e.string().optional(),
|
|
188
|
+
details: e.record(e.string(), e.unknown()).optional(),
|
|
189
|
+
login_session_id: e.string().optional(),
|
|
163
190
|
timestamp: e.string()
|
|
164
|
-
}),
|
|
191
|
+
}), Se = xe.extend({ id: e.string() }), Ce = e.enum([
|
|
165
192
|
"AUTH0",
|
|
166
193
|
"EMAIL",
|
|
167
194
|
"REDIRECT"
|
|
168
|
-
]),
|
|
195
|
+
]), we = e.enum([
|
|
169
196
|
"CREATE_USER",
|
|
170
197
|
"GET_USER",
|
|
171
198
|
"UPDATE_USER",
|
|
172
199
|
"SEND_REQUEST",
|
|
173
200
|
"SEND_EMAIL"
|
|
174
|
-
]),
|
|
201
|
+
]), Te = e.enum(["VERIFY_EMAIL"]), Ee = e.object({
|
|
175
202
|
require_mx_record: e.boolean().optional(),
|
|
176
203
|
block_aliases: e.boolean().optional(),
|
|
177
204
|
block_free_emails: e.boolean().optional(),
|
|
178
205
|
block_disposable_emails: e.boolean().optional(),
|
|
179
206
|
blocklist: e.array(e.string()).optional(),
|
|
180
207
|
allowlist: e.array(e.string()).optional()
|
|
181
|
-
}),
|
|
208
|
+
}), De = e.object({
|
|
182
209
|
id: e.string(),
|
|
183
210
|
alias: e.string().max(100).optional(),
|
|
184
211
|
type: e.literal("AUTH0"),
|
|
@@ -190,7 +217,7 @@ var t = e.object({
|
|
|
190
217
|
user_id: e.string(),
|
|
191
218
|
changes: e.record(e.string(), e.any())
|
|
192
219
|
})
|
|
193
|
-
}),
|
|
220
|
+
}), Oe = e.object({
|
|
194
221
|
id: e.string(),
|
|
195
222
|
alias: e.string().max(100).optional(),
|
|
196
223
|
type: e.literal("EMAIL"),
|
|
@@ -199,13 +226,13 @@ var t = e.object({
|
|
|
199
226
|
mask_output: e.boolean().optional(),
|
|
200
227
|
params: e.object({
|
|
201
228
|
email: e.string(),
|
|
202
|
-
rules:
|
|
229
|
+
rules: Ee.optional()
|
|
203
230
|
})
|
|
204
|
-
}),
|
|
231
|
+
}), ke = e.enum([
|
|
205
232
|
"change-email",
|
|
206
233
|
"account",
|
|
207
234
|
"custom"
|
|
208
|
-
]),
|
|
235
|
+
]), Ae = e.object({
|
|
209
236
|
id: e.string(),
|
|
210
237
|
alias: e.string().max(100).optional(),
|
|
211
238
|
type: e.literal("REDIRECT"),
|
|
@@ -213,32 +240,32 @@ var t = e.object({
|
|
|
213
240
|
allow_failure: e.boolean().optional(),
|
|
214
241
|
mask_output: e.boolean().optional(),
|
|
215
242
|
params: e.object({
|
|
216
|
-
target:
|
|
243
|
+
target: ke.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
217
244
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
218
245
|
})
|
|
219
|
-
}),
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
]),
|
|
246
|
+
}), je = e.union([
|
|
247
|
+
De,
|
|
248
|
+
Oe,
|
|
249
|
+
Ae
|
|
250
|
+
]), u = e.object({
|
|
224
251
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
225
|
-
actions: e.array(
|
|
226
|
-
}),
|
|
252
|
+
actions: e.array(je).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
253
|
+
}), Me = u.extend(t.shape).extend({ id: e.string().openapi({
|
|
227
254
|
description: "Unique identifier for the flow",
|
|
228
255
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
229
|
-
}) }),
|
|
256
|
+
}) }), Ne = e.object({
|
|
230
257
|
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
231
258
|
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." }),
|
|
232
259
|
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" }),
|
|
233
260
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
234
261
|
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
235
|
-
}),
|
|
262
|
+
}), Pe = e.object({
|
|
236
263
|
start: e.number(),
|
|
237
264
|
limit: e.number(),
|
|
238
265
|
length: e.number(),
|
|
239
266
|
total: e.number().optional(),
|
|
240
267
|
next: e.string().optional()
|
|
241
|
-
}),
|
|
268
|
+
}), d = e.object({
|
|
242
269
|
email: e.string().optional(),
|
|
243
270
|
email_verified: e.boolean().optional(),
|
|
244
271
|
name: e.string().optional(),
|
|
@@ -247,7 +274,7 @@ var t = e.object({
|
|
|
247
274
|
phone_number: e.string().optional(),
|
|
248
275
|
phone_verified: e.boolean().optional(),
|
|
249
276
|
family_name: e.string().optional()
|
|
250
|
-
}).catchall(e.any()),
|
|
277
|
+
}).catchall(e.any()), f = e.object({
|
|
251
278
|
connection: e.string(),
|
|
252
279
|
user_id: e.string(),
|
|
253
280
|
provider: e.string(),
|
|
@@ -260,15 +287,15 @@ var t = e.object({
|
|
|
260
287
|
access_token: e.string().optional(),
|
|
261
288
|
access_token_secret: e.string().optional(),
|
|
262
289
|
refresh_token: e.string().optional(),
|
|
263
|
-
profileData:
|
|
264
|
-
}),
|
|
290
|
+
profileData: d.optional()
|
|
291
|
+
}), p = e.object({
|
|
265
292
|
formatted: e.string().optional(),
|
|
266
293
|
street_address: e.string().optional(),
|
|
267
294
|
locality: e.string().optional(),
|
|
268
295
|
region: e.string().optional(),
|
|
269
296
|
postal_code: e.string().optional(),
|
|
270
297
|
country: e.string().optional()
|
|
271
|
-
}).optional(),
|
|
298
|
+
}).optional(), m = e.object({
|
|
272
299
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
273
300
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
274
301
|
phone_number: e.string().optional(),
|
|
@@ -291,8 +318,8 @@ var t = e.object({
|
|
|
291
318
|
gender: e.string().optional(),
|
|
292
319
|
birthdate: e.string().optional(),
|
|
293
320
|
zoneinfo: e.string().optional(),
|
|
294
|
-
address:
|
|
295
|
-
}),
|
|
321
|
+
address: p
|
|
322
|
+
}), h = m.extend({
|
|
296
323
|
email_verified: e.boolean().default(!1),
|
|
297
324
|
verify_email: e.boolean().optional(),
|
|
298
325
|
last_ip: e.string().optional(),
|
|
@@ -307,29 +334,29 @@ var t = e.object({
|
|
|
307
334
|
hash: e.string(),
|
|
308
335
|
algorithm: e.string()
|
|
309
336
|
}).optional()
|
|
310
|
-
}),
|
|
337
|
+
}), g = h.omit({ password: !0 }).extend(t.shape).extend({
|
|
311
338
|
user_id: e.string(),
|
|
312
339
|
provider: e.string(),
|
|
313
340
|
is_social: e.boolean(),
|
|
314
341
|
email: e.string().optional(),
|
|
315
342
|
login_count: e.number().default(0),
|
|
316
|
-
identities: e.array(
|
|
317
|
-
}),
|
|
343
|
+
identities: e.array(f).optional()
|
|
344
|
+
}), Fe = g.omit({ registration_completed_at: !0 }), Ie = m.extend({
|
|
318
345
|
login_count: e.number(),
|
|
319
346
|
multifactor: e.array(e.string()).optional(),
|
|
320
347
|
last_ip: e.string().optional(),
|
|
321
348
|
last_login: e.string().optional(),
|
|
322
349
|
user_id: e.string()
|
|
323
|
-
}).catchall(e.any()),
|
|
350
|
+
}).catchall(e.any()), Le = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Re = (e = 21) => {
|
|
324
351
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
325
|
-
for (; e--;) t +=
|
|
352
|
+
for (; e--;) t += Le[n[e] & 63];
|
|
326
353
|
return t;
|
|
327
|
-
},
|
|
354
|
+
}, _ = e.object({
|
|
328
355
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
329
356
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
330
357
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
331
358
|
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)." }),
|
|
332
|
-
client_secret: e.string().default(() =>
|
|
359
|
+
client_secret: e.string().default(() => Re()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
333
360
|
app_type: e.enum([
|
|
334
361
|
"native",
|
|
335
362
|
"spa",
|
|
@@ -443,10 +470,10 @@ var t = e.object({
|
|
|
443
470
|
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." }),
|
|
444
471
|
token_exchange: e.object({ allow_any_profile_of_type: e.array(e.literal("custom_authentication")).optional() }).optional().openapi({ description: "Custom Token Exchange settings. Set `allow_any_profile_of_type` to `[\"custom_authentication\"]` to let this client exchange subject tokens through the tenant's token exchange profiles." }),
|
|
445
472
|
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." })
|
|
446
|
-
}),
|
|
473
|
+
}), ze = e.object({
|
|
447
474
|
created_at: e.string(),
|
|
448
475
|
updated_at: e.string()
|
|
449
|
-
}).extend(
|
|
476
|
+
}).extend(_.shape).extend({ client_id: e.string() }), v = e.object({
|
|
450
477
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
451
478
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
452
479
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -459,38 +486,38 @@ var t = e.object({
|
|
|
459
486
|
is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
|
|
460
487
|
subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
|
|
461
488
|
authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
|
|
462
|
-
}),
|
|
489
|
+
}), y = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(v.shape).extend({
|
|
463
490
|
created_at: e.string().optional(),
|
|
464
491
|
updated_at: e.string().optional()
|
|
465
|
-
}),
|
|
492
|
+
}), Be = e.array(y), b = e.enum(["iat", "rat"]), x = e.object({
|
|
466
493
|
id: e.string(),
|
|
467
494
|
token_hash: e.string(),
|
|
468
|
-
type:
|
|
495
|
+
type: b,
|
|
469
496
|
client_id: e.string().optional(),
|
|
470
497
|
sub: e.string().optional(),
|
|
471
498
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
472
499
|
single_use: e.boolean().default(!1),
|
|
473
500
|
expires_at: e.string().optional()
|
|
474
|
-
}),
|
|
501
|
+
}), Ve = e.object({
|
|
475
502
|
created_at: e.string(),
|
|
476
503
|
used_at: e.string().optional(),
|
|
477
504
|
revoked_at: e.string().optional()
|
|
478
|
-
}).extend(
|
|
505
|
+
}).extend(x.shape), S = e.object({
|
|
479
506
|
x: e.number(),
|
|
480
507
|
y: e.number()
|
|
481
|
-
}),
|
|
508
|
+
}), He = /* @__PURE__ */ function(e) {
|
|
482
509
|
return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
|
|
483
|
-
}({}),
|
|
510
|
+
}({}), Ue = /* @__PURE__ */ function(e) {
|
|
484
511
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
485
512
|
}({}), C = e.object({
|
|
486
513
|
id: e.string(),
|
|
487
|
-
category: e.nativeEnum(
|
|
488
|
-
type: e.nativeEnum(
|
|
489
|
-
}),
|
|
514
|
+
category: e.nativeEnum(Ue),
|
|
515
|
+
type: e.nativeEnum(He)
|
|
516
|
+
}), We = C.extend({
|
|
490
517
|
category: e.literal("BLOCK"),
|
|
491
518
|
type: e.literal("RICH_TEXT"),
|
|
492
519
|
config: e.object({ content: e.string() }).passthrough()
|
|
493
|
-
}),
|
|
520
|
+
}), Ge = C.extend({
|
|
494
521
|
category: e.literal("BLOCK"),
|
|
495
522
|
type: e.union([
|
|
496
523
|
e.literal("NEXT_BUTTON"),
|
|
@@ -498,13 +525,13 @@ var t = e.object({
|
|
|
498
525
|
e.literal("SUBMIT_BUTTON")
|
|
499
526
|
]),
|
|
500
527
|
config: e.object({ text: e.string() }).passthrough()
|
|
501
|
-
}),
|
|
528
|
+
}), Ke = C.extend({
|
|
502
529
|
category: e.literal("FIELD"),
|
|
503
530
|
type: e.literal("LEGAL"),
|
|
504
531
|
required: e.boolean().optional(),
|
|
505
532
|
sensitive: e.boolean().optional(),
|
|
506
533
|
config: e.object({ text: e.string() }).passthrough()
|
|
507
|
-
}),
|
|
534
|
+
}), qe = C.extend({
|
|
508
535
|
category: e.literal("FIELD"),
|
|
509
536
|
type: e.union([
|
|
510
537
|
e.literal("TEXT"),
|
|
@@ -524,40 +551,40 @@ var t = e.object({
|
|
|
524
551
|
label: e.string().optional(),
|
|
525
552
|
placeholder: e.string().optional()
|
|
526
553
|
}).passthrough()
|
|
527
|
-
}),
|
|
554
|
+
}), Je = e.object({
|
|
528
555
|
id: e.string(),
|
|
529
556
|
category: e.string(),
|
|
530
557
|
type: e.string()
|
|
531
|
-
}).passthrough(),
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
]),
|
|
558
|
+
}).passthrough(), Ye = e.union([
|
|
559
|
+
We,
|
|
560
|
+
Ge,
|
|
561
|
+
Ke,
|
|
562
|
+
qe,
|
|
563
|
+
Je
|
|
564
|
+
]), Xe = /* @__PURE__ */ function(e) {
|
|
538
565
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
539
|
-
}({}),
|
|
566
|
+
}({}), Ze = e.object({
|
|
540
567
|
id: e.string(),
|
|
541
568
|
type: e.literal("STEP"),
|
|
542
|
-
coordinates:
|
|
569
|
+
coordinates: S,
|
|
543
570
|
alias: e.string().optional(),
|
|
544
571
|
config: e.object({
|
|
545
|
-
components: e.array(
|
|
572
|
+
components: e.array(Ye),
|
|
546
573
|
next_node: e.string()
|
|
547
574
|
}).passthrough()
|
|
548
|
-
}),
|
|
575
|
+
}), Qe = e.object({
|
|
549
576
|
id: e.string(),
|
|
550
577
|
type: e.literal("FLOW"),
|
|
551
|
-
coordinates:
|
|
578
|
+
coordinates: S,
|
|
552
579
|
alias: e.string().optional(),
|
|
553
580
|
config: e.object({
|
|
554
581
|
flow_id: e.string(),
|
|
555
582
|
next_node: e.string()
|
|
556
583
|
})
|
|
557
|
-
}),
|
|
584
|
+
}), $e = e.object({
|
|
558
585
|
id: e.string(),
|
|
559
586
|
type: e.literal("ACTION"),
|
|
560
|
-
coordinates:
|
|
587
|
+
coordinates: S,
|
|
561
588
|
alias: e.string().optional(),
|
|
562
589
|
config: e.object({
|
|
563
590
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -569,35 +596,35 @@ var t = e.object({
|
|
|
569
596
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
570
597
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
571
598
|
}).passthrough()
|
|
572
|
-
}),
|
|
599
|
+
}), et = e.object({
|
|
573
600
|
id: e.string(),
|
|
574
601
|
type: e.string(),
|
|
575
|
-
coordinates:
|
|
576
|
-
}).passthrough(),
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
]),
|
|
602
|
+
coordinates: S
|
|
603
|
+
}).passthrough(), tt = e.union([
|
|
604
|
+
Ze,
|
|
605
|
+
Qe,
|
|
606
|
+
$e,
|
|
607
|
+
et
|
|
608
|
+
]), nt = e.object({
|
|
582
609
|
next_node: e.string(),
|
|
583
|
-
coordinates:
|
|
584
|
-
}).passthrough(),
|
|
610
|
+
coordinates: S
|
|
611
|
+
}).passthrough(), rt = e.object({
|
|
585
612
|
resume_flow: e.boolean().optional(),
|
|
586
|
-
coordinates:
|
|
587
|
-
}).passthrough(),
|
|
613
|
+
coordinates: S
|
|
614
|
+
}).passthrough(), it = e.object({
|
|
588
615
|
id: e.string(),
|
|
589
616
|
name: e.string(),
|
|
590
617
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
591
|
-
nodes: e.array(
|
|
592
|
-
start:
|
|
593
|
-
ending:
|
|
618
|
+
nodes: e.array(tt),
|
|
619
|
+
start: nt,
|
|
620
|
+
ending: rt,
|
|
594
621
|
created_at: e.string(),
|
|
595
622
|
updated_at: e.string(),
|
|
596
623
|
links: e.object({
|
|
597
624
|
sdkSrc: e.string().optional(),
|
|
598
625
|
sdk_src: e.string().optional()
|
|
599
626
|
}).passthrough()
|
|
600
|
-
}).passthrough(),
|
|
627
|
+
}).passthrough(), at = it.omit({
|
|
601
628
|
id: !0,
|
|
602
629
|
created_at: !0,
|
|
603
630
|
updated_at: !0
|
|
@@ -605,16 +632,16 @@ var t = e.object({
|
|
|
605
632
|
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;
|
|
606
633
|
}({}), T = /* @__PURE__ */ function(e) {
|
|
607
634
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
608
|
-
}({}),
|
|
635
|
+
}({}), ot = /* @__PURE__ */ function(e) {
|
|
609
636
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
610
|
-
}({}),
|
|
637
|
+
}({}), st = e.union([e.null(), e.object({
|
|
611
638
|
essential: e.boolean().optional(),
|
|
612
639
|
value: e.unknown().optional(),
|
|
613
640
|
values: e.array(e.unknown()).optional()
|
|
614
|
-
})]).nullable(),
|
|
615
|
-
userinfo: e.record(e.string(),
|
|
616
|
-
id_token: e.record(e.string(),
|
|
617
|
-
}),
|
|
641
|
+
})]).nullable(), ct = e.object({
|
|
642
|
+
userinfo: e.record(e.string(), st).optional(),
|
|
643
|
+
id_token: e.record(e.string(), st).optional()
|
|
644
|
+
}), lt = e.object({
|
|
618
645
|
client_id: e.string(),
|
|
619
646
|
act_as: e.string().optional(),
|
|
620
647
|
response_type: e.nativeEnum(w).optional(),
|
|
@@ -626,15 +653,16 @@ var t = e.object({
|
|
|
626
653
|
nonce: e.string().optional(),
|
|
627
654
|
scope: e.string().optional(),
|
|
628
655
|
prompt: e.string().optional(),
|
|
629
|
-
code_challenge_method: e.nativeEnum(
|
|
656
|
+
code_challenge_method: e.nativeEnum(ot).optional(),
|
|
630
657
|
code_challenge: e.string().optional(),
|
|
631
658
|
username: e.string().optional(),
|
|
632
659
|
ui_locales: e.string().optional(),
|
|
633
660
|
max_age: e.number().optional(),
|
|
634
661
|
acr_values: e.string().optional(),
|
|
635
|
-
claims:
|
|
662
|
+
claims: ct.optional(),
|
|
636
663
|
vendor_id: e.string().optional()
|
|
637
|
-
}),
|
|
664
|
+
}), ut = e.object({
|
|
665
|
+
...i,
|
|
638
666
|
colors: e.object({
|
|
639
667
|
primary: e.string(),
|
|
640
668
|
page_background: e.union([e.string(), e.object({
|
|
@@ -653,7 +681,7 @@ var t = e.object({
|
|
|
653
681
|
"light",
|
|
654
682
|
"auto"
|
|
655
683
|
]).optional()
|
|
656
|
-
}),
|
|
684
|
+
}), dt = e.enum([
|
|
657
685
|
"password_reset",
|
|
658
686
|
"email_verification",
|
|
659
687
|
"otp",
|
|
@@ -663,11 +691,11 @@ var t = e.object({
|
|
|
663
691
|
"ticket",
|
|
664
692
|
"client_assertion_jti",
|
|
665
693
|
"subject_token_jti"
|
|
666
|
-
]),
|
|
694
|
+
]), ft = e.object({
|
|
667
695
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
668
696
|
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
669
697
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
670
|
-
code_type:
|
|
698
|
+
code_type: dt,
|
|
671
699
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
672
700
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
673
701
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -678,7 +706,7 @@ var t = e.object({
|
|
|
678
706
|
expires_at: e.string(),
|
|
679
707
|
used_at: e.string().optional(),
|
|
680
708
|
user_id: e.string().optional()
|
|
681
|
-
}),
|
|
709
|
+
}), pt = ft.extend({ created_at: e.string() }), mt = e.object({
|
|
682
710
|
kid: e.string().optional(),
|
|
683
711
|
team_id: e.string().optional(),
|
|
684
712
|
realms: e.string().optional(),
|
|
@@ -809,24 +837,25 @@ function E(e) {
|
|
|
809
837
|
return e;
|
|
810
838
|
}
|
|
811
839
|
}
|
|
812
|
-
var
|
|
840
|
+
var ht = e.object({
|
|
813
841
|
id: e.string().optional(),
|
|
814
842
|
name: e.string(),
|
|
815
843
|
display_name: e.string().optional(),
|
|
816
844
|
strategy: e.string(),
|
|
817
|
-
options: e.preprocess((e) => e === null ? {} : E(e),
|
|
845
|
+
options: e.preprocess((e) => e === null ? {} : E(e), mt).default({}),
|
|
818
846
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
819
847
|
response_type: e.nativeEnum(w).optional(),
|
|
820
848
|
response_mode: e.nativeEnum(T).optional(),
|
|
821
849
|
is_domain_connection: e.boolean().optional(),
|
|
822
850
|
show_as_button: e.boolean().optional(),
|
|
823
851
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
824
|
-
is_system: e.boolean().optional()
|
|
825
|
-
|
|
852
|
+
is_system: e.boolean().optional(),
|
|
853
|
+
...i
|
|
854
|
+
}), gt = e.object({
|
|
826
855
|
id: e.string(),
|
|
827
856
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
828
857
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
829
|
-
}).extend(
|
|
858
|
+
}).extend(ht.shape), D = e.object({
|
|
830
859
|
domain: e.string(),
|
|
831
860
|
custom_domain_id: e.string().optional(),
|
|
832
861
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -840,7 +869,7 @@ var dt = e.object({
|
|
|
840
869
|
"null"
|
|
841
870
|
]).optional(),
|
|
842
871
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
843
|
-
}),
|
|
872
|
+
}), _t = e.discriminatedUnion("name", [e.object({
|
|
844
873
|
name: e.literal("txt"),
|
|
845
874
|
record: e.string(),
|
|
846
875
|
domain: e.string()
|
|
@@ -848,7 +877,7 @@ var dt = e.object({
|
|
|
848
877
|
name: e.literal("http"),
|
|
849
878
|
http_body: e.string(),
|
|
850
879
|
http_url: e.string()
|
|
851
|
-
})]),
|
|
880
|
+
})]), vt = D.extend({
|
|
852
881
|
custom_domain_id: e.string(),
|
|
853
882
|
primary: e.boolean(),
|
|
854
883
|
status: e.enum([
|
|
@@ -858,26 +887,26 @@ var dt = e.object({
|
|
|
858
887
|
"ready"
|
|
859
888
|
]),
|
|
860
889
|
origin_domain_name: e.string().optional(),
|
|
861
|
-
verification: e.object({ methods: e.array(
|
|
890
|
+
verification: e.object({ methods: e.array(_t) }).optional(),
|
|
862
891
|
tls_policy: e.string().optional()
|
|
863
|
-
}),
|
|
892
|
+
}), yt = D.pick({
|
|
864
893
|
tls_policy: !0,
|
|
865
894
|
custom_client_ip_header: !0,
|
|
866
895
|
domain_metadata: !0
|
|
867
|
-
}).strict(),
|
|
896
|
+
}).strict(), bt = vt.extend({ tenant_id: e.string() }), xt = e.object({
|
|
868
897
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
869
898
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
870
899
|
}), O = e.object({
|
|
871
900
|
id: e.string(),
|
|
872
901
|
order: e.number().optional(),
|
|
873
902
|
visible: e.boolean().optional().default(!0)
|
|
874
|
-
}), k = O.extend({ category: e.literal("BLOCK").optional() }),
|
|
903
|
+
}), k = O.extend({ category: e.literal("BLOCK").optional() }), St = k.extend({
|
|
875
904
|
type: e.literal("DIVIDER"),
|
|
876
905
|
config: e.object({ text: e.string().optional() }).optional()
|
|
877
|
-
}),
|
|
906
|
+
}), Ct = k.extend({
|
|
878
907
|
type: e.literal("HTML"),
|
|
879
908
|
config: e.object({ content: e.string().optional() }).optional()
|
|
880
|
-
}),
|
|
909
|
+
}), wt = k.extend({
|
|
881
910
|
type: e.literal("IMAGE"),
|
|
882
911
|
config: e.object({
|
|
883
912
|
src: e.string().optional(),
|
|
@@ -885,29 +914,29 @@ var dt = e.object({
|
|
|
885
914
|
width: e.number().optional(),
|
|
886
915
|
height: e.number().optional()
|
|
887
916
|
}).optional()
|
|
888
|
-
}),
|
|
917
|
+
}), Tt = k.extend({
|
|
889
918
|
type: e.literal("JUMP_BUTTON"),
|
|
890
919
|
config: e.object({
|
|
891
920
|
text: e.string().optional(),
|
|
892
921
|
target_step: e.string().optional()
|
|
893
922
|
})
|
|
894
|
-
}),
|
|
923
|
+
}), Et = k.extend({
|
|
895
924
|
type: e.literal("RESEND_BUTTON"),
|
|
896
925
|
config: e.object({
|
|
897
926
|
text: e.string().optional(),
|
|
898
927
|
resend_action: e.string().optional()
|
|
899
928
|
})
|
|
900
|
-
}),
|
|
929
|
+
}), Dt = k.extend({
|
|
901
930
|
type: e.literal("NEXT_BUTTON"),
|
|
902
931
|
config: e.object({
|
|
903
932
|
text: e.string().optional(),
|
|
904
933
|
variant: e.enum(["primary", "secondary"]).optional(),
|
|
905
934
|
skip_validation: e.boolean().optional()
|
|
906
935
|
})
|
|
907
|
-
}),
|
|
936
|
+
}), Ot = k.extend({
|
|
908
937
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
909
938
|
config: e.object({ text: e.string().optional() })
|
|
910
|
-
}),
|
|
939
|
+
}), kt = k.extend({
|
|
911
940
|
type: e.literal("RICH_TEXT"),
|
|
912
941
|
config: e.object({ content: e.string().optional() }).optional()
|
|
913
942
|
}), A = O.extend({
|
|
@@ -916,13 +945,13 @@ var dt = e.object({
|
|
|
916
945
|
hint: e.string().min(1).max(500).optional(),
|
|
917
946
|
required: e.boolean().optional(),
|
|
918
947
|
sensitive: e.boolean().optional()
|
|
919
|
-
}),
|
|
948
|
+
}), At = A.extend({
|
|
920
949
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
921
950
|
config: e.object({ credential_type: e.string().optional() })
|
|
922
|
-
}),
|
|
951
|
+
}), jt = A.extend({
|
|
923
952
|
type: e.literal("GMAPS_ADDRESS"),
|
|
924
953
|
config: e.object({ api_key: e.string().optional() })
|
|
925
|
-
}),
|
|
954
|
+
}), Mt = A.extend({
|
|
926
955
|
type: e.literal("RECAPTCHA"),
|
|
927
956
|
config: e.object({ site_key: e.string().optional() })
|
|
928
957
|
}), j = O.extend({
|
|
@@ -941,10 +970,10 @@ var dt = e.object({
|
|
|
941
970
|
})).optional(),
|
|
942
971
|
required: e.boolean().optional(),
|
|
943
972
|
sensitive: e.boolean().optional()
|
|
944
|
-
}),
|
|
973
|
+
}), Nt = j.extend({
|
|
945
974
|
type: e.literal("BOOLEAN"),
|
|
946
975
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
947
|
-
}),
|
|
976
|
+
}), Pt = j.extend({
|
|
948
977
|
type: e.literal("CARDS"),
|
|
949
978
|
config: e.object({
|
|
950
979
|
options: e.array(e.object({
|
|
@@ -955,7 +984,7 @@ var dt = e.object({
|
|
|
955
984
|
})).optional(),
|
|
956
985
|
multi_select: e.boolean().optional()
|
|
957
986
|
}).optional()
|
|
958
|
-
}),
|
|
987
|
+
}), Ft = j.extend({
|
|
959
988
|
type: e.literal("CHOICE"),
|
|
960
989
|
config: e.object({
|
|
961
990
|
options: e.array(e.object({
|
|
@@ -966,7 +995,7 @@ var dt = e.object({
|
|
|
966
995
|
multiple: e.boolean().optional(),
|
|
967
996
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
968
997
|
}).optional()
|
|
969
|
-
}),
|
|
998
|
+
}), It = j.extend({
|
|
970
999
|
type: e.literal("CODE"),
|
|
971
1000
|
config: e.object({
|
|
972
1001
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -983,7 +1012,7 @@ var dt = e.object({
|
|
|
983
1012
|
message: "default_value is longer than the configured length",
|
|
984
1013
|
path: ["default_value"]
|
|
985
1014
|
}).optional()
|
|
986
|
-
}),
|
|
1015
|
+
}), Lt = j.extend({
|
|
987
1016
|
type: e.literal("CUSTOM"),
|
|
988
1017
|
config: e.object({
|
|
989
1018
|
component: e.string().optional(),
|
|
@@ -991,7 +1020,7 @@ var dt = e.object({
|
|
|
991
1020
|
schema: e.record(e.string(), e.any()).optional(),
|
|
992
1021
|
code: e.string().optional()
|
|
993
1022
|
})
|
|
994
|
-
}),
|
|
1023
|
+
}), Rt = j.extend({
|
|
995
1024
|
type: e.literal("DATE"),
|
|
996
1025
|
config: e.object({
|
|
997
1026
|
format: e.string().optional(),
|
|
@@ -999,7 +1028,7 @@ var dt = e.object({
|
|
|
999
1028
|
max: e.string().optional(),
|
|
1000
1029
|
default_value: e.string().optional()
|
|
1001
1030
|
}).optional()
|
|
1002
|
-
}),
|
|
1031
|
+
}), zt = j.extend({
|
|
1003
1032
|
type: e.literal("DROPDOWN"),
|
|
1004
1033
|
config: e.object({
|
|
1005
1034
|
options: e.array(e.object({
|
|
@@ -1011,7 +1040,7 @@ var dt = e.object({
|
|
|
1011
1040
|
multiple: e.boolean().optional(),
|
|
1012
1041
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1013
1042
|
}).optional()
|
|
1014
|
-
}),
|
|
1043
|
+
}), Bt = j.extend({
|
|
1015
1044
|
type: e.literal("EMAIL"),
|
|
1016
1045
|
config: e.object({
|
|
1017
1046
|
placeholder: e.string().optional(),
|
|
@@ -1019,20 +1048,20 @@ var dt = e.object({
|
|
|
1019
1048
|
last_used: e.boolean().optional(),
|
|
1020
1049
|
last_used_label: e.string().optional()
|
|
1021
1050
|
}).optional()
|
|
1022
|
-
}),
|
|
1051
|
+
}), Vt = j.extend({
|
|
1023
1052
|
type: e.literal("FILE"),
|
|
1024
1053
|
config: e.object({
|
|
1025
1054
|
accept: e.string().optional(),
|
|
1026
1055
|
max_size: e.number().optional(),
|
|
1027
1056
|
multiple: e.boolean().optional()
|
|
1028
1057
|
}).optional()
|
|
1029
|
-
}),
|
|
1058
|
+
}), Ht = j.extend({
|
|
1030
1059
|
type: e.literal("LEGAL"),
|
|
1031
1060
|
config: e.object({
|
|
1032
1061
|
text: e.string(),
|
|
1033
1062
|
html: e.boolean().optional()
|
|
1034
1063
|
}).optional()
|
|
1035
|
-
}),
|
|
1064
|
+
}), Ut = j.extend({
|
|
1036
1065
|
type: e.literal("NUMBER"),
|
|
1037
1066
|
config: e.object({
|
|
1038
1067
|
placeholder: e.string().optional(),
|
|
@@ -1041,7 +1070,7 @@ var dt = e.object({
|
|
|
1041
1070
|
step: e.number().optional(),
|
|
1042
1071
|
default_value: e.string().optional()
|
|
1043
1072
|
}).optional()
|
|
1044
|
-
}),
|
|
1073
|
+
}), Wt = j.extend({
|
|
1045
1074
|
type: e.literal("PASSWORD"),
|
|
1046
1075
|
config: e.object({
|
|
1047
1076
|
placeholder: e.string().optional(),
|
|
@@ -1050,13 +1079,13 @@ var dt = e.object({
|
|
|
1050
1079
|
forgot_password_link: e.string().optional(),
|
|
1051
1080
|
default_value: e.string().optional()
|
|
1052
1081
|
}).optional()
|
|
1053
|
-
}),
|
|
1082
|
+
}), Gt = j.extend({
|
|
1054
1083
|
type: e.literal("PAYMENT"),
|
|
1055
1084
|
config: e.object({
|
|
1056
1085
|
provider: e.string().optional(),
|
|
1057
1086
|
currency: e.string().optional()
|
|
1058
1087
|
}).optional()
|
|
1059
|
-
}),
|
|
1088
|
+
}), Kt = j.extend({
|
|
1060
1089
|
type: e.literal("SOCIAL"),
|
|
1061
1090
|
config: e.object({
|
|
1062
1091
|
providers: e.array(e.string()).optional(),
|
|
@@ -1071,7 +1100,7 @@ var dt = e.object({
|
|
|
1071
1100
|
last_used_label: e.string().optional()
|
|
1072
1101
|
})).optional()
|
|
1073
1102
|
}).optional()
|
|
1074
|
-
}),
|
|
1103
|
+
}), qt = j.extend({
|
|
1075
1104
|
type: e.literal("TEL"),
|
|
1076
1105
|
config: e.object({
|
|
1077
1106
|
placeholder: e.string().optional(),
|
|
@@ -1079,7 +1108,7 @@ var dt = e.object({
|
|
|
1079
1108
|
default_value: e.string().optional(),
|
|
1080
1109
|
allow_email: e.boolean().optional()
|
|
1081
1110
|
}).optional()
|
|
1082
|
-
}),
|
|
1111
|
+
}), Jt = j.extend({
|
|
1083
1112
|
type: e.literal("TEXT"),
|
|
1084
1113
|
config: e.object({
|
|
1085
1114
|
placeholder: e.string().optional(),
|
|
@@ -1089,41 +1118,37 @@ var dt = e.object({
|
|
|
1089
1118
|
last_used: e.boolean().optional(),
|
|
1090
1119
|
last_used_label: e.string().optional()
|
|
1091
1120
|
}).optional()
|
|
1092
|
-
}),
|
|
1121
|
+
}), Yt = j.extend({
|
|
1093
1122
|
type: e.literal("COUNTRY"),
|
|
1094
1123
|
config: e.object({
|
|
1095
1124
|
placeholder: e.string().optional(),
|
|
1096
1125
|
default_value: e.string().optional()
|
|
1097
1126
|
}).optional()
|
|
1098
|
-
}),
|
|
1127
|
+
}), Xt = j.extend({
|
|
1099
1128
|
type: e.literal("URL"),
|
|
1100
1129
|
config: e.object({
|
|
1101
1130
|
placeholder: e.string().optional(),
|
|
1102
1131
|
default_value: e.string().optional()
|
|
1103
1132
|
}).optional()
|
|
1104
|
-
}),
|
|
1105
|
-
vt,
|
|
1106
|
-
yt,
|
|
1107
|
-
bt,
|
|
1108
|
-
xt,
|
|
1133
|
+
}), Zt = e.discriminatedUnion("type", [
|
|
1109
1134
|
St,
|
|
1110
1135
|
Ct,
|
|
1111
1136
|
wt,
|
|
1112
|
-
Tt
|
|
1113
|
-
]), Jt = e.discriminatedUnion("type", [
|
|
1137
|
+
Tt,
|
|
1114
1138
|
Et,
|
|
1115
1139
|
Dt,
|
|
1116
|
-
Ot
|
|
1117
|
-
|
|
1118
|
-
|
|
1140
|
+
Ot,
|
|
1141
|
+
kt
|
|
1142
|
+
]), Qt = e.discriminatedUnion("type", [
|
|
1119
1143
|
At,
|
|
1120
1144
|
jt,
|
|
1121
|
-
Mt
|
|
1122
|
-
|
|
1145
|
+
Mt
|
|
1146
|
+
]), $t = e.discriminatedUnion("type", [
|
|
1123
1147
|
Nt,
|
|
1124
1148
|
Pt,
|
|
1125
1149
|
Ft,
|
|
1126
1150
|
It,
|
|
1151
|
+
Yt,
|
|
1127
1152
|
Lt,
|
|
1128
1153
|
Rt,
|
|
1129
1154
|
zt,
|
|
@@ -1132,12 +1157,16 @@ var dt = e.object({
|
|
|
1132
1157
|
Ht,
|
|
1133
1158
|
Ut,
|
|
1134
1159
|
Wt,
|
|
1135
|
-
|
|
1136
|
-
|
|
1160
|
+
Gt,
|
|
1161
|
+
Kt,
|
|
1137
1162
|
qt,
|
|
1138
1163
|
Jt,
|
|
1139
|
-
|
|
1140
|
-
]),
|
|
1164
|
+
Xt
|
|
1165
|
+
]), M = e.union([
|
|
1166
|
+
Zt,
|
|
1167
|
+
Qt,
|
|
1168
|
+
$t
|
|
1169
|
+
]), en = new Set([
|
|
1141
1170
|
"BOOLEAN",
|
|
1142
1171
|
"CARDS",
|
|
1143
1172
|
"CHOICE",
|
|
@@ -1152,7 +1181,7 @@ var dt = e.object({
|
|
|
1152
1181
|
"TEL",
|
|
1153
1182
|
"TEXT",
|
|
1154
1183
|
"URL"
|
|
1155
|
-
]),
|
|
1184
|
+
]), tn = e.object({
|
|
1156
1185
|
id: e.string(),
|
|
1157
1186
|
type: e.literal("submit"),
|
|
1158
1187
|
label: e.string(),
|
|
@@ -1164,7 +1193,7 @@ var dt = e.object({
|
|
|
1164
1193
|
}), N = e.object({
|
|
1165
1194
|
x: e.number(),
|
|
1166
1195
|
y: e.number()
|
|
1167
|
-
}),
|
|
1196
|
+
}), nn = e.object({
|
|
1168
1197
|
id: e.string(),
|
|
1169
1198
|
type: e.literal("FLOW"),
|
|
1170
1199
|
coordinates: N,
|
|
@@ -1173,7 +1202,7 @@ var dt = e.object({
|
|
|
1173
1202
|
flow_id: e.string().max(30),
|
|
1174
1203
|
next_node: e.string().optional()
|
|
1175
1204
|
})
|
|
1176
|
-
}),
|
|
1205
|
+
}), rn = e.object({
|
|
1177
1206
|
id: e.string(),
|
|
1178
1207
|
type: e.literal("ROUTER"),
|
|
1179
1208
|
coordinates: N,
|
|
@@ -1187,7 +1216,7 @@ var dt = e.object({
|
|
|
1187
1216
|
})),
|
|
1188
1217
|
fallback: e.string()
|
|
1189
1218
|
})
|
|
1190
|
-
}),
|
|
1219
|
+
}), an = e.object({
|
|
1191
1220
|
id: e.string(),
|
|
1192
1221
|
type: e.literal("STEP"),
|
|
1193
1222
|
coordinates: N,
|
|
@@ -1196,11 +1225,11 @@ var dt = e.object({
|
|
|
1196
1225
|
components: e.array(M),
|
|
1197
1226
|
next_node: e.string().optional()
|
|
1198
1227
|
})
|
|
1199
|
-
}),
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
]),
|
|
1228
|
+
}), on = e.discriminatedUnion("type", [
|
|
1229
|
+
nn,
|
|
1230
|
+
rn,
|
|
1231
|
+
an
|
|
1232
|
+
]), sn = e.object({
|
|
1204
1233
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1205
1234
|
messages: e.object({
|
|
1206
1235
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1211,7 +1240,7 @@ var dt = e.object({
|
|
|
1211
1240
|
default: e.string().optional()
|
|
1212
1241
|
}).optional(),
|
|
1213
1242
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1214
|
-
nodes: e.array(
|
|
1243
|
+
nodes: e.array(on).optional(),
|
|
1215
1244
|
start: e.object({
|
|
1216
1245
|
hidden_fields: e.array(e.object({
|
|
1217
1246
|
key: e.string(),
|
|
@@ -1234,7 +1263,7 @@ var dt = e.object({
|
|
|
1234
1263
|
sdkSrc: e.string().optional(),
|
|
1235
1264
|
sdk_src: e.string().optional()
|
|
1236
1265
|
}).optional()
|
|
1237
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1266
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), cn = t.extend(sn.shape).extend({ id: e.string() }), ln = e.object({
|
|
1238
1267
|
id: e.number().optional(),
|
|
1239
1268
|
text: e.string(),
|
|
1240
1269
|
type: e.enum([
|
|
@@ -1243,37 +1272,37 @@ var dt = e.object({
|
|
|
1243
1272
|
"success",
|
|
1244
1273
|
"warning"
|
|
1245
1274
|
])
|
|
1246
|
-
}),
|
|
1275
|
+
}), un = e.object({
|
|
1247
1276
|
id: e.string().optional(),
|
|
1248
1277
|
text: e.string(),
|
|
1249
1278
|
href: e.string(),
|
|
1250
1279
|
linkText: e.string().optional()
|
|
1251
|
-
}),
|
|
1280
|
+
}), dn = e.object({
|
|
1252
1281
|
"form-content-start": e.string().optional(),
|
|
1253
1282
|
"form-content-end": e.string().optional(),
|
|
1254
1283
|
"form-footer-start": e.string().optional(),
|
|
1255
1284
|
"form-footer-end": e.string().optional(),
|
|
1256
1285
|
"secondary-actions-start": e.string().optional(),
|
|
1257
1286
|
"secondary-actions-end": e.string().optional()
|
|
1258
|
-
}).strict(),
|
|
1287
|
+
}).strict(), fn = e.object({
|
|
1259
1288
|
name: e.string().optional(),
|
|
1260
1289
|
action: e.string(),
|
|
1261
1290
|
method: e.enum(["POST", "GET"]),
|
|
1262
1291
|
title: e.string().optional(),
|
|
1263
1292
|
description: e.string().optional(),
|
|
1264
1293
|
components: e.array(M),
|
|
1265
|
-
messages: e.array(
|
|
1266
|
-
links: e.array(
|
|
1267
|
-
partials:
|
|
1294
|
+
messages: e.array(ln).optional(),
|
|
1295
|
+
links: e.array(un).optional(),
|
|
1296
|
+
partials: dn.optional(),
|
|
1268
1297
|
footer: e.string().optional()
|
|
1269
1298
|
});
|
|
1270
|
-
function
|
|
1299
|
+
function pn(e) {
|
|
1271
1300
|
return e.category === "BLOCK";
|
|
1272
1301
|
}
|
|
1273
|
-
function
|
|
1302
|
+
function mn(e) {
|
|
1274
1303
|
return e.category === "WIDGET";
|
|
1275
1304
|
}
|
|
1276
|
-
function
|
|
1305
|
+
function hn(e) {
|
|
1277
1306
|
return e.category === "FIELD";
|
|
1278
1307
|
}
|
|
1279
1308
|
//#endregion
|
|
@@ -1296,7 +1325,7 @@ var P = e.enum([
|
|
|
1296
1325
|
"credentials-exchange",
|
|
1297
1326
|
"pre-user-registration",
|
|
1298
1327
|
"post-user-registration"
|
|
1299
|
-
]), R = e.enum(["post-user-login"]),
|
|
1328
|
+
]), R = e.enum(["post-user-login"]), gn = [
|
|
1300
1329
|
{
|
|
1301
1330
|
field: "url",
|
|
1302
1331
|
triggers: P.options
|
|
@@ -1318,16 +1347,16 @@ var P = e.enum([
|
|
|
1318
1347
|
triggers: R.options
|
|
1319
1348
|
}
|
|
1320
1349
|
];
|
|
1321
|
-
function
|
|
1350
|
+
function _n(e) {
|
|
1322
1351
|
if (!(!e || typeof e != "object")) {
|
|
1323
|
-
for (let t of
|
|
1352
|
+
for (let t of gn) if (typeof Reflect.get(e, t.field) == "string") return t.triggers;
|
|
1324
1353
|
}
|
|
1325
1354
|
}
|
|
1326
1355
|
var z = e.enum(["impersonate"]), B = e.enum([
|
|
1327
1356
|
"ensure-username",
|
|
1328
1357
|
"set-preferred-username",
|
|
1329
1358
|
"account-linking"
|
|
1330
|
-
]),
|
|
1359
|
+
]), vn = {
|
|
1331
1360
|
"ensure-username": {
|
|
1332
1361
|
name: "Ensure Username",
|
|
1333
1362
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1352,82 +1381,83 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1352
1381
|
synchronous: e.boolean().default(!1),
|
|
1353
1382
|
priority: e.number().optional(),
|
|
1354
1383
|
hook_id: e.string().optional(),
|
|
1355
|
-
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1356
|
-
|
|
1384
|
+
metadata: e.record(e.string(), e.unknown()).optional(),
|
|
1385
|
+
...i
|
|
1386
|
+
}, yn = e.object({
|
|
1357
1387
|
...V,
|
|
1358
1388
|
trigger_id: P,
|
|
1359
1389
|
url: e.string()
|
|
1360
|
-
}),
|
|
1390
|
+
}), bn = e.object({
|
|
1361
1391
|
...V,
|
|
1362
1392
|
trigger_id: F,
|
|
1363
1393
|
form_id: e.string()
|
|
1364
|
-
}),
|
|
1394
|
+
}), xn = e.object({
|
|
1365
1395
|
...V,
|
|
1366
1396
|
trigger_id: I,
|
|
1367
1397
|
template_id: B
|
|
1368
|
-
}),
|
|
1398
|
+
}), Sn = e.object({
|
|
1369
1399
|
...V,
|
|
1370
1400
|
trigger_id: L,
|
|
1371
1401
|
code_id: e.string()
|
|
1372
|
-
}),
|
|
1402
|
+
}), Cn = e.object({
|
|
1373
1403
|
...V,
|
|
1374
1404
|
trigger_id: R,
|
|
1375
1405
|
page_id: z,
|
|
1376
1406
|
permission_required: e.string().optional()
|
|
1377
|
-
}),
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
]),
|
|
1407
|
+
}), wn = e.union([
|
|
1408
|
+
yn,
|
|
1409
|
+
bn,
|
|
1410
|
+
xn,
|
|
1411
|
+
Sn,
|
|
1412
|
+
Cn
|
|
1413
|
+
]), Tn = e.object({
|
|
1384
1414
|
...V,
|
|
1385
1415
|
trigger_id: P
|
|
1386
1416
|
}).extend(t.shape).extend({
|
|
1387
1417
|
hook_id: e.string(),
|
|
1388
1418
|
url: e.string()
|
|
1389
|
-
}),
|
|
1419
|
+
}), En = e.object({
|
|
1390
1420
|
...V,
|
|
1391
1421
|
trigger_id: F
|
|
1392
1422
|
}).extend(t.shape).extend({
|
|
1393
1423
|
hook_id: e.string(),
|
|
1394
1424
|
form_id: e.string()
|
|
1395
|
-
}),
|
|
1425
|
+
}), Dn = e.object({
|
|
1396
1426
|
...V,
|
|
1397
1427
|
trigger_id: I
|
|
1398
1428
|
}).extend(t.shape).extend({
|
|
1399
1429
|
hook_id: e.string(),
|
|
1400
1430
|
template_id: B
|
|
1401
|
-
}),
|
|
1431
|
+
}), On = e.object({
|
|
1402
1432
|
...V,
|
|
1403
1433
|
trigger_id: L
|
|
1404
1434
|
}).extend(t.shape).extend({
|
|
1405
1435
|
hook_id: e.string(),
|
|
1406
1436
|
code_id: e.string()
|
|
1407
|
-
}),
|
|
1437
|
+
}), kn = e.object({
|
|
1408
1438
|
...V,
|
|
1409
1439
|
trigger_id: R
|
|
1410
1440
|
}).extend(t.shape).extend({
|
|
1411
1441
|
hook_id: e.string(),
|
|
1412
1442
|
page_id: z,
|
|
1413
1443
|
permission_required: e.string().optional()
|
|
1414
|
-
}),
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
]),
|
|
1444
|
+
}), An = e.union([
|
|
1445
|
+
Tn,
|
|
1446
|
+
En,
|
|
1447
|
+
Dn,
|
|
1448
|
+
On,
|
|
1449
|
+
kn
|
|
1450
|
+
]), jn = e.object({
|
|
1421
1451
|
code: e.string().max(1e5),
|
|
1422
1452
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1423
|
-
}),
|
|
1453
|
+
}), Mn = jn.extend({
|
|
1424
1454
|
id: e.string(),
|
|
1425
1455
|
tenant_id: e.string()
|
|
1426
|
-
}).extend(t.shape),
|
|
1456
|
+
}).extend(t.shape), Nn = e.object({ name: e.string().optional() }), Pn = e.object({ email: e.string().optional() }), Fn = e.object({
|
|
1427
1457
|
id: e.string().optional(),
|
|
1428
1458
|
organization_id: e.string().max(50),
|
|
1429
|
-
inviter:
|
|
1430
|
-
invitee:
|
|
1459
|
+
inviter: Nn,
|
|
1460
|
+
invitee: Pn,
|
|
1431
1461
|
invitation_url: e.string().url(),
|
|
1432
1462
|
client_id: e.string(),
|
|
1433
1463
|
connection_id: e.string().optional(),
|
|
@@ -1436,13 +1466,13 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1436
1466
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1437
1467
|
roles: e.array(e.string()).default([]).optional(),
|
|
1438
1468
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1439
|
-
}),
|
|
1469
|
+
}), In = e.object({
|
|
1440
1470
|
id: e.string(),
|
|
1441
1471
|
organization_id: e.string().max(50),
|
|
1442
1472
|
created_at: e.string().datetime(),
|
|
1443
1473
|
expires_at: e.string().datetime(),
|
|
1444
1474
|
ticket_id: e.string().optional()
|
|
1445
|
-
}).extend(
|
|
1475
|
+
}).extend(Fn.omit({ id: !0 }).shape), Ln = e.object({
|
|
1446
1476
|
alg: e.enum([
|
|
1447
1477
|
"RS256",
|
|
1448
1478
|
"RS384",
|
|
@@ -1484,7 +1514,7 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1484
1514
|
path: [r],
|
|
1485
1515
|
message: `EC JWK is missing required member '${r}'`
|
|
1486
1516
|
});
|
|
1487
|
-
}),
|
|
1517
|
+
}), Rn = e.object({ keys: e.array(Ln) }), zn = e.object({
|
|
1488
1518
|
issuer: e.string(),
|
|
1489
1519
|
authorization_endpoint: e.string(),
|
|
1490
1520
|
token_endpoint: e.string(),
|
|
@@ -1510,29 +1540,29 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1510
1540
|
client_id_metadata_document_supported: e.boolean().optional(),
|
|
1511
1541
|
backchannel_logout_supported: e.boolean().optional(),
|
|
1512
1542
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
1513
|
-
}),
|
|
1543
|
+
}), Bn = /* @__PURE__ */ function(e) {
|
|
1514
1544
|
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;
|
|
1515
|
-
}({}),
|
|
1545
|
+
}({}), Vn = e.nativeEnum(Bn), H = e.object({
|
|
1516
1546
|
strategy: e.string(),
|
|
1517
1547
|
strategy_type: e.string()
|
|
1518
|
-
}),
|
|
1548
|
+
}), Hn = e.object({
|
|
1519
1549
|
csrf_token: e.string(),
|
|
1520
1550
|
auth0Client: e.string().optional(),
|
|
1521
|
-
authParams:
|
|
1551
|
+
authParams: lt,
|
|
1522
1552
|
expires_at: e.string(),
|
|
1523
1553
|
deleted_at: e.string().optional(),
|
|
1524
1554
|
ip: e.string().optional(),
|
|
1525
1555
|
useragent: e.string().optional(),
|
|
1526
1556
|
session_id: e.string().optional(),
|
|
1527
1557
|
authorization_url: e.string().optional(),
|
|
1528
|
-
state:
|
|
1558
|
+
state: Vn.optional().default("pending"),
|
|
1529
1559
|
state_data: e.string().optional(),
|
|
1530
1560
|
failure_reason: e.string().optional(),
|
|
1531
1561
|
user_id: e.string().optional(),
|
|
1532
1562
|
auth_connection: e.string().optional(),
|
|
1533
1563
|
auth_strategy: H.optional(),
|
|
1534
1564
|
authenticated_at: e.string().optional()
|
|
1535
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1565
|
+
}).openapi({ description: "This represents a login sesion" }), Un = Hn.extend({
|
|
1536
1566
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1537
1567
|
created_at: e.string(),
|
|
1538
1568
|
updated_at: e.string()
|
|
@@ -1549,6 +1579,7 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1549
1579
|
CODE_LINK_SENT: "cls",
|
|
1550
1580
|
CODE_SENT: "cs",
|
|
1551
1581
|
DEPRECATION_NOTICE: "depnote",
|
|
1582
|
+
CONFIG_INHERITANCE_DIFF: "cfgdiff",
|
|
1552
1583
|
FAILED_LOGIN: "f",
|
|
1553
1584
|
FAILED_BY_CONNECTOR: "fc",
|
|
1554
1585
|
FAILED_CHANGE_EMAIL: "fce",
|
|
@@ -1696,7 +1727,7 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1696
1727
|
WARNING_DURING_LOGIN: "w",
|
|
1697
1728
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1698
1729
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1699
|
-
},
|
|
1730
|
+
}, Wn = e.string().refine((e) => Object.values(U).includes(e), { message: "Invalid log type" }), Gn = {
|
|
1700
1731
|
[U.ACLS_SUMMARY]: "ACLs Summary",
|
|
1701
1732
|
[U.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1702
1733
|
[U.API_LIMIT]: "API Rate Limit Reached",
|
|
@@ -1709,6 +1740,7 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1709
1740
|
[U.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1710
1741
|
[U.CODE_SENT]: "Code Sent",
|
|
1711
1742
|
[U.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1743
|
+
[U.CONFIG_INHERITANCE_DIFF]: "Config Inheritance Shadow Difference",
|
|
1712
1744
|
[U.FAILED_LOGIN]: "Failed Login",
|
|
1713
1745
|
[U.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1714
1746
|
[U.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
@@ -1856,30 +1888,30 @@ var z = e.enum(["impersonate"]), B = e.enum([
|
|
|
1856
1888
|
[U.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1857
1889
|
[U.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1858
1890
|
[U.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1859
|
-
},
|
|
1891
|
+
}, Kn = (() => {
|
|
1860
1892
|
let e = {};
|
|
1861
|
-
for (let [t, n] of Object.entries(U)) 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";
|
|
1893
|
+
for (let [t, n] of Object.entries(U)) 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 === "CONFIG_INHERITANCE_DIFF" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
1862
1894
|
return e;
|
|
1863
1895
|
})();
|
|
1864
|
-
function
|
|
1865
|
-
return
|
|
1896
|
+
function qn(e) {
|
|
1897
|
+
return Gn[e] ?? e;
|
|
1866
1898
|
}
|
|
1867
|
-
function
|
|
1868
|
-
return
|
|
1899
|
+
function Jn(e) {
|
|
1900
|
+
return Kn[e] ?? "other";
|
|
1869
1901
|
}
|
|
1870
|
-
var
|
|
1902
|
+
var Yn = e.object({
|
|
1871
1903
|
name: e.string(),
|
|
1872
1904
|
version: e.string(),
|
|
1873
1905
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1874
|
-
}),
|
|
1906
|
+
}), Xn = e.object({
|
|
1875
1907
|
country_code: e.string().length(2),
|
|
1876
1908
|
city_name: e.string(),
|
|
1877
1909
|
latitude: e.string(),
|
|
1878
1910
|
longitude: e.string(),
|
|
1879
1911
|
time_zone: e.string(),
|
|
1880
1912
|
continent_code: e.string()
|
|
1881
|
-
}),
|
|
1882
|
-
type:
|
|
1913
|
+
}), Zn = e.object({
|
|
1914
|
+
type: Wn,
|
|
1883
1915
|
date: e.string(),
|
|
1884
1916
|
description: e.string().optional(),
|
|
1885
1917
|
ip: e.string().optional(),
|
|
@@ -1897,10 +1929,10 @@ var Gn = e.object({
|
|
|
1897
1929
|
strategy: e.string().optional(),
|
|
1898
1930
|
strategy_type: e.string().optional(),
|
|
1899
1931
|
hostname: e.string().optional(),
|
|
1900
|
-
auth0_client:
|
|
1932
|
+
auth0_client: Yn.optional(),
|
|
1901
1933
|
log_id: e.string().optional(),
|
|
1902
|
-
location_info:
|
|
1903
|
-
}),
|
|
1934
|
+
location_info: Xn.optional()
|
|
1935
|
+
}), Qn = Zn.extend({ log_id: e.string() }), $n = e.enum([
|
|
1904
1936
|
"http",
|
|
1905
1937
|
"eventbridge",
|
|
1906
1938
|
"eventgrid",
|
|
@@ -1911,44 +1943,44 @@ var Gn = e.object({
|
|
|
1911
1943
|
"active",
|
|
1912
1944
|
"paused",
|
|
1913
1945
|
"suspended"
|
|
1914
|
-
]),
|
|
1946
|
+
]), er = e.object({
|
|
1915
1947
|
type: e.string(),
|
|
1916
1948
|
name: e.string()
|
|
1917
|
-
}),
|
|
1949
|
+
}), tr = e.object({
|
|
1918
1950
|
name: e.string(),
|
|
1919
|
-
type:
|
|
1951
|
+
type: $n,
|
|
1920
1952
|
status: W.optional(),
|
|
1921
1953
|
sink: e.record(e.string(), e.unknown()),
|
|
1922
|
-
filters: e.array(
|
|
1954
|
+
filters: e.array(er).optional(),
|
|
1923
1955
|
isPriority: e.boolean().optional()
|
|
1924
|
-
}),
|
|
1956
|
+
}), nr = tr.extend({
|
|
1925
1957
|
id: e.string(),
|
|
1926
1958
|
status: W,
|
|
1927
1959
|
created_at: e.string().optional(),
|
|
1928
1960
|
updated_at: e.string().optional()
|
|
1929
|
-
}),
|
|
1961
|
+
}), rr = e.enum([
|
|
1930
1962
|
"auth0",
|
|
1931
1963
|
"cognito",
|
|
1932
1964
|
"okta",
|
|
1933
1965
|
"oidc"
|
|
1934
|
-
]),
|
|
1966
|
+
]), ir = e.object({
|
|
1935
1967
|
domain: e.string(),
|
|
1936
1968
|
client_id: e.string(),
|
|
1937
1969
|
client_secret: e.string(),
|
|
1938
1970
|
audience: e.string().optional(),
|
|
1939
1971
|
scope: e.string().optional()
|
|
1940
|
-
}),
|
|
1972
|
+
}), ar = e.object({
|
|
1941
1973
|
id: e.string().optional(),
|
|
1942
1974
|
name: e.string(),
|
|
1943
|
-
provider:
|
|
1975
|
+
provider: rr,
|
|
1944
1976
|
connection: e.string(),
|
|
1945
1977
|
enabled: e.boolean().default(!0),
|
|
1946
|
-
credentials:
|
|
1947
|
-
}),
|
|
1978
|
+
credentials: ir
|
|
1979
|
+
}), or = e.object({
|
|
1948
1980
|
id: e.string(),
|
|
1949
1981
|
created_at: e.string(),
|
|
1950
1982
|
updated_at: e.string()
|
|
1951
|
-
}).extend(
|
|
1983
|
+
}).extend(ar.shape), sr = e.object({
|
|
1952
1984
|
enabled: e.boolean().optional(),
|
|
1953
1985
|
shields: e.array(e.string()).optional(),
|
|
1954
1986
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1957,13 +1989,13 @@ var Gn = e.object({
|
|
|
1957
1989
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1958
1990
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1959
1991
|
}).optional()
|
|
1960
|
-
}),
|
|
1992
|
+
}), cr = e.object({
|
|
1961
1993
|
enabled: e.boolean().optional(),
|
|
1962
1994
|
shields: e.array(e.string()).optional(),
|
|
1963
1995
|
allowlist: e.array(e.string()).optional(),
|
|
1964
1996
|
mode: e.string().optional(),
|
|
1965
1997
|
max_attempts: e.number().optional()
|
|
1966
|
-
}),
|
|
1998
|
+
}), lr = e.object({
|
|
1967
1999
|
enabled: e.boolean().optional(),
|
|
1968
2000
|
shields: e.array(e.string()).optional(),
|
|
1969
2001
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1977,28 +2009,28 @@ var Gn = e.object({
|
|
|
1977
2009
|
rate: e.number().optional()
|
|
1978
2010
|
}).optional()
|
|
1979
2011
|
}).optional()
|
|
1980
|
-
}),
|
|
1981
|
-
breached_password_detection:
|
|
1982
|
-
brute_force_protection:
|
|
1983
|
-
suspicious_ip_throttling:
|
|
1984
|
-
}),
|
|
2012
|
+
}), ur = e.object({
|
|
2013
|
+
breached_password_detection: sr.optional(),
|
|
2014
|
+
brute_force_protection: cr.optional(),
|
|
2015
|
+
suspicious_ip_throttling: lr.optional()
|
|
2016
|
+
}), dr = e.object({
|
|
1985
2017
|
id: e.string().optional(),
|
|
1986
2018
|
user_id: e.string(),
|
|
1987
2019
|
password: e.string(),
|
|
1988
2020
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1989
2021
|
is_current: e.boolean().default(!0)
|
|
1990
|
-
}),
|
|
2022
|
+
}), fr = dr.extend({
|
|
1991
2023
|
id: e.string(),
|
|
1992
2024
|
created_at: e.string(),
|
|
1993
2025
|
updated_at: e.string()
|
|
1994
|
-
}),
|
|
2026
|
+
}), pr = e.object({
|
|
1995
2027
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1996
2028
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1997
2029
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1998
2030
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1999
2031
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
2000
2032
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
2001
|
-
}),
|
|
2033
|
+
}), mr = e.object({
|
|
2002
2034
|
id: e.string(),
|
|
2003
2035
|
revoked_at: e.string().optional(),
|
|
2004
2036
|
used_at: e.string().optional(),
|
|
@@ -2006,14 +2038,14 @@ var Gn = e.object({
|
|
|
2006
2038
|
expires_at: e.string().optional(),
|
|
2007
2039
|
login_session_id: e.string(),
|
|
2008
2040
|
idle_expires_at: e.string().optional(),
|
|
2009
|
-
device:
|
|
2041
|
+
device: pr.describe("Metadata related to the device used in the session"),
|
|
2010
2042
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
2011
|
-
}),
|
|
2043
|
+
}), hr = e.object({
|
|
2012
2044
|
created_at: e.string(),
|
|
2013
2045
|
updated_at: e.string(),
|
|
2014
2046
|
authenticated_at: e.string(),
|
|
2015
2047
|
last_interaction_at: e.string()
|
|
2016
|
-
}).extend(
|
|
2048
|
+
}).extend(mr.shape), gr = e.object({
|
|
2017
2049
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
2018
2050
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
2019
2051
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -2029,8 +2061,9 @@ var Gn = e.object({
|
|
|
2029
2061
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
2030
2062
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
2031
2063
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
2032
|
-
}),
|
|
2064
|
+
}), _r = e.object({
|
|
2033
2065
|
id: e.string().optional(),
|
|
2066
|
+
parent_tenant_id: e.string().nullish(),
|
|
2034
2067
|
audience: e.string().optional(),
|
|
2035
2068
|
friendly_name: e.string(),
|
|
2036
2069
|
picture_url: e.string().optional(),
|
|
@@ -2147,7 +2180,7 @@ var Gn = e.object({
|
|
|
2147
2180
|
"shared_planetscale"
|
|
2148
2181
|
]).optional(),
|
|
2149
2182
|
d1_database_id: e.string().max(64).optional(),
|
|
2150
|
-
attack_protection:
|
|
2183
|
+
attack_protection: ur.optional(),
|
|
2151
2184
|
mfa: e.object({
|
|
2152
2185
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2153
2186
|
factors: e.object({
|
|
@@ -2174,38 +2207,38 @@ var Gn = e.object({
|
|
|
2174
2207
|
}).optional(),
|
|
2175
2208
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2176
2209
|
}).optional()
|
|
2177
|
-
}),
|
|
2210
|
+
}), vr = e.object({
|
|
2178
2211
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2179
2212
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2180
|
-
}).extend(
|
|
2213
|
+
}).extend(_r.shape).extend({
|
|
2181
2214
|
id: e.string(),
|
|
2182
2215
|
is_control_plane: e.boolean().optional()
|
|
2183
|
-
}),
|
|
2216
|
+
}), yr = e.enum([
|
|
2184
2217
|
"provision",
|
|
2185
2218
|
"seed",
|
|
2186
2219
|
"upgrade",
|
|
2187
2220
|
"backup",
|
|
2188
2221
|
"deprovision",
|
|
2189
2222
|
"users_import"
|
|
2190
|
-
]),
|
|
2223
|
+
]), br = e.enum([
|
|
2191
2224
|
"pending",
|
|
2192
2225
|
"running",
|
|
2193
2226
|
"succeeded",
|
|
2194
2227
|
"failed",
|
|
2195
2228
|
"cancelled"
|
|
2196
|
-
]),
|
|
2229
|
+
]), xr = e.string().max(64), Sr = ["inline", "cloudflare-workflows"], Cr = e.object({
|
|
2197
2230
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
2198
2231
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
2199
|
-
kind:
|
|
2200
|
-
engine:
|
|
2232
|
+
kind: yr,
|
|
2233
|
+
engine: xr,
|
|
2201
2234
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2202
2235
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2203
2236
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2204
2237
|
initiated_by: e.string().max(255).nullable().optional(),
|
|
2205
2238
|
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
2206
|
-
}),
|
|
2239
|
+
}), wr = Cr.extend({
|
|
2207
2240
|
id: e.string(),
|
|
2208
|
-
status:
|
|
2241
|
+
status: br,
|
|
2209
2242
|
current_step: e.string().max(255).nullable().optional(),
|
|
2210
2243
|
error: e.string().nullable().optional(),
|
|
2211
2244
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
@@ -2214,7 +2247,7 @@ var Gn = e.object({
|
|
|
2214
2247
|
created_at: e.string(),
|
|
2215
2248
|
updated_at: e.string(),
|
|
2216
2249
|
finished_at: e.string().nullable().optional()
|
|
2217
|
-
}),
|
|
2250
|
+
}), Tr = wr.pick({
|
|
2218
2251
|
status: !0,
|
|
2219
2252
|
current_step: !0,
|
|
2220
2253
|
engine_instance_id: !0,
|
|
@@ -2225,20 +2258,20 @@ var Gn = e.object({
|
|
|
2225
2258
|
claimed_by: !0,
|
|
2226
2259
|
claim_expires_at: !0,
|
|
2227
2260
|
finished_at: !0
|
|
2228
|
-
}).partial(),
|
|
2261
|
+
}).partial(), Er = e.enum([
|
|
2229
2262
|
"started",
|
|
2230
2263
|
"succeeded",
|
|
2231
2264
|
"failed",
|
|
2232
2265
|
"retried",
|
|
2233
2266
|
"skipped",
|
|
2234
2267
|
"reconciled"
|
|
2235
|
-
]),
|
|
2268
|
+
]), Dr = e.object({
|
|
2236
2269
|
operation_id: e.string().max(255),
|
|
2237
2270
|
step: e.string().max(255),
|
|
2238
|
-
outcome:
|
|
2271
|
+
outcome: Er,
|
|
2239
2272
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2240
2273
|
attempt: e.number().int().min(1).default(1)
|
|
2241
|
-
}),
|
|
2274
|
+
}), Or = Dr.extend({
|
|
2242
2275
|
id: e.string(),
|
|
2243
2276
|
created_at: e.string()
|
|
2244
2277
|
}), G = e.enum([
|
|
@@ -2247,12 +2280,12 @@ var Gn = e.object({
|
|
|
2247
2280
|
"updated",
|
|
2248
2281
|
"failed",
|
|
2249
2282
|
"skipped"
|
|
2250
|
-
]),
|
|
2283
|
+
]), kr = [
|
|
2251
2284
|
"inserted",
|
|
2252
2285
|
"updated",
|
|
2253
2286
|
"failed",
|
|
2254
2287
|
"skipped"
|
|
2255
|
-
],
|
|
2288
|
+
], Ar = e.object({
|
|
2256
2289
|
operation_id: e.string().max(255),
|
|
2257
2290
|
seq: e.number().int().min(0),
|
|
2258
2291
|
payload: e.record(e.string(), e.unknown()),
|
|
@@ -2261,51 +2294,51 @@ var Gn = e.object({
|
|
|
2261
2294
|
error_message: e.string().nullable().optional(),
|
|
2262
2295
|
error_path: e.string().max(255).nullable().optional(),
|
|
2263
2296
|
entity_id: e.string().max(255).nullable().optional()
|
|
2264
|
-
}),
|
|
2297
|
+
}), jr = Ar.extend({
|
|
2265
2298
|
status: G,
|
|
2266
2299
|
created_at: e.string(),
|
|
2267
2300
|
updated_at: e.string()
|
|
2268
|
-
}),
|
|
2301
|
+
}), Mr = e.object({
|
|
2269
2302
|
seq: e.number().int().min(0),
|
|
2270
2303
|
status: G,
|
|
2271
2304
|
error_code: e.string().max(64).nullable().optional(),
|
|
2272
2305
|
error_message: e.string().nullable().optional(),
|
|
2273
2306
|
error_path: e.string().max(255).nullable().optional(),
|
|
2274
2307
|
entity_id: e.string().max(255).nullable().optional()
|
|
2275
|
-
}),
|
|
2308
|
+
}), Nr = e.enum([
|
|
2276
2309
|
"upgrade",
|
|
2277
2310
|
"reseed",
|
|
2278
2311
|
"backup"
|
|
2279
|
-
]),
|
|
2312
|
+
]), Pr = e.enum([
|
|
2280
2313
|
"pending",
|
|
2281
2314
|
"canary",
|
|
2282
2315
|
"rolling",
|
|
2283
2316
|
"paused",
|
|
2284
2317
|
"done",
|
|
2285
2318
|
"failed"
|
|
2286
|
-
]),
|
|
2287
|
-
kind:
|
|
2319
|
+
]), Fr = e.object({
|
|
2320
|
+
kind: Nr,
|
|
2288
2321
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2289
2322
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
2290
2323
|
wave_size: e.number().int().min(1).default(10),
|
|
2291
2324
|
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2292
2325
|
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2293
2326
|
initiated_by: e.string().max(255).nullable().optional()
|
|
2294
|
-
}),
|
|
2327
|
+
}), Ir = Fr.extend({
|
|
2295
2328
|
id: e.string(),
|
|
2296
|
-
status:
|
|
2329
|
+
status: Pr,
|
|
2297
2330
|
created_at: e.string(),
|
|
2298
2331
|
updated_at: e.string(),
|
|
2299
2332
|
finished_at: e.string().nullable().optional()
|
|
2300
|
-
}),
|
|
2333
|
+
}), Lr = Ir.pick({
|
|
2301
2334
|
status: !0,
|
|
2302
2335
|
wave_size: !0,
|
|
2303
2336
|
canary_tenant_ids: !0,
|
|
2304
2337
|
filter: !0,
|
|
2305
2338
|
finished_at: !0
|
|
2306
|
-
}).partial(),
|
|
2339
|
+
}).partial(), Rr = /* @__PURE__ */ function(e) {
|
|
2307
2340
|
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;
|
|
2308
|
-
}({}),
|
|
2341
|
+
}({}), zr = e.object({
|
|
2309
2342
|
access_token: e.string(),
|
|
2310
2343
|
id_token: e.string().optional(),
|
|
2311
2344
|
scope: e.string().optional(),
|
|
@@ -2320,7 +2353,7 @@ e.object({
|
|
|
2320
2353
|
});
|
|
2321
2354
|
//#endregion
|
|
2322
2355
|
//#region src/types/Theme.ts
|
|
2323
|
-
var
|
|
2356
|
+
var Br = e.object({
|
|
2324
2357
|
button_border_radius: e.number(),
|
|
2325
2358
|
button_border_weight: e.number(),
|
|
2326
2359
|
buttons_style: e.enum([
|
|
@@ -2338,7 +2371,7 @@ var Ir = e.object({
|
|
|
2338
2371
|
show_widget_shadow: e.boolean(),
|
|
2339
2372
|
widget_border_weight: e.number(),
|
|
2340
2373
|
widget_corner_radius: e.number()
|
|
2341
|
-
}),
|
|
2374
|
+
}), Vr = e.object({
|
|
2342
2375
|
base_focus_color: e.string(),
|
|
2343
2376
|
base_hover_color: e.string(),
|
|
2344
2377
|
body_text: e.string(),
|
|
@@ -2365,7 +2398,7 @@ var Ir = e.object({
|
|
|
2365
2398
|
}), K = e.object({
|
|
2366
2399
|
bold: e.boolean(),
|
|
2367
2400
|
size: e.number()
|
|
2368
|
-
}),
|
|
2401
|
+
}), Hr = e.object({
|
|
2369
2402
|
body_text: K,
|
|
2370
2403
|
buttons_text: K,
|
|
2371
2404
|
font_url: e.string(),
|
|
@@ -2375,7 +2408,7 @@ var Ir = e.object({
|
|
|
2375
2408
|
reference_text_size: e.number(),
|
|
2376
2409
|
subtitle: K,
|
|
2377
2410
|
title: K
|
|
2378
|
-
}),
|
|
2411
|
+
}), Ur = e.object({
|
|
2379
2412
|
background_color: e.string(),
|
|
2380
2413
|
background_image_url: e.string(),
|
|
2381
2414
|
page_layout: e.enum([
|
|
@@ -2388,7 +2421,7 @@ var Ir = e.object({
|
|
|
2388
2421
|
"chip",
|
|
2389
2422
|
"none"
|
|
2390
2423
|
]).optional()
|
|
2391
|
-
}),
|
|
2424
|
+
}), Wr = e.object({
|
|
2392
2425
|
header_text_alignment: e.enum([
|
|
2393
2426
|
"center",
|
|
2394
2427
|
"left",
|
|
@@ -2403,43 +2436,44 @@ var Ir = e.object({
|
|
|
2403
2436
|
]),
|
|
2404
2437
|
logo_url: e.string(),
|
|
2405
2438
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2406
|
-
}),
|
|
2407
|
-
borders:
|
|
2408
|
-
colors:
|
|
2439
|
+
}), Gr = e.object({
|
|
2440
|
+
borders: Br,
|
|
2441
|
+
colors: Vr,
|
|
2409
2442
|
displayName: e.string(),
|
|
2410
|
-
fonts:
|
|
2411
|
-
page_background:
|
|
2412
|
-
widget:
|
|
2413
|
-
}),
|
|
2443
|
+
fonts: Hr,
|
|
2444
|
+
page_background: Ur,
|
|
2445
|
+
widget: Wr
|
|
2446
|
+
}), Kr = Gr.extend({ themeId: e.string() }), qr = e.object({
|
|
2447
|
+
...i,
|
|
2414
2448
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2415
2449
|
identifier_first: e.boolean().default(!0),
|
|
2416
2450
|
password_first: e.boolean().default(!1),
|
|
2417
2451
|
show_last_used_connection: e.boolean().default(!1),
|
|
2418
2452
|
webauthn_platform_first_factor: e.boolean()
|
|
2419
|
-
}),
|
|
2453
|
+
}), Jr = e.object({
|
|
2420
2454
|
hosts: e.array(e.string()).optional(),
|
|
2421
2455
|
methods: e.array(e.string()).optional(),
|
|
2422
2456
|
path: e.string().default("/*"),
|
|
2423
2457
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2424
2458
|
query: e.record(e.string(), e.string()).optional()
|
|
2425
|
-
}),
|
|
2459
|
+
}), Yr = e.object({
|
|
2426
2460
|
type: e.string(),
|
|
2427
2461
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2428
2462
|
}), q = e.object({
|
|
2429
2463
|
id: e.string().optional(),
|
|
2430
2464
|
custom_domain_id: e.string(),
|
|
2431
2465
|
priority: e.number().int().default(100),
|
|
2432
|
-
match:
|
|
2433
|
-
handlers: e.array(
|
|
2434
|
-
}),
|
|
2466
|
+
match: Jr,
|
|
2467
|
+
handlers: e.array(Yr).min(1)
|
|
2468
|
+
}), Xr = q.extend({
|
|
2435
2469
|
id: e.string(),
|
|
2436
2470
|
tenant_id: e.string(),
|
|
2437
2471
|
created_at: e.string(),
|
|
2438
2472
|
updated_at: e.string()
|
|
2439
|
-
}),
|
|
2473
|
+
}), Zr = q.partial().omit({
|
|
2440
2474
|
id: !0,
|
|
2441
2475
|
custom_domain_id: !0
|
|
2442
|
-
}),
|
|
2476
|
+
}), Qr = "custom_authentication", $r = [
|
|
2443
2477
|
"urn:ietf:params:oauth:",
|
|
2444
2478
|
"urn:auth0",
|
|
2445
2479
|
"urn:okta",
|
|
@@ -2447,71 +2481,72 @@ var Ir = e.object({
|
|
|
2447
2481
|
"https://auth0.com",
|
|
2448
2482
|
"http://okta.com",
|
|
2449
2483
|
"https://okta.com"
|
|
2450
|
-
], J = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) =>
|
|
2484
|
+
], J = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !$r.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), ei = e.enum([
|
|
2451
2485
|
"RS256",
|
|
2452
2486
|
"RS384",
|
|
2453
2487
|
"RS512",
|
|
2454
2488
|
"ES256",
|
|
2455
2489
|
"ES384",
|
|
2456
2490
|
"ES512"
|
|
2457
|
-
]),
|
|
2491
|
+
]), ti = e.discriminatedUnion("type", [e.object({
|
|
2458
2492
|
type: e.literal("connection"),
|
|
2459
2493
|
connection: e.string().min(1),
|
|
2460
2494
|
create_if_not_exists: e.boolean().default(!0),
|
|
2461
2495
|
trust_email_verified: e.boolean().default(!1)
|
|
2462
2496
|
}), e.object({ type: e.literal("user_id") })]), Y = e.object({
|
|
2463
2497
|
issuer: e.string().min(1).max(2048),
|
|
2464
|
-
jwks:
|
|
2498
|
+
jwks: Rn.optional(),
|
|
2465
2499
|
jwks_uri: e.string().url().optional(),
|
|
2466
2500
|
audience: e.array(e.string().min(1)).min(1).optional(),
|
|
2467
|
-
algorithms: e.array(
|
|
2501
|
+
algorithms: e.array(ei).min(1).optional(),
|
|
2468
2502
|
max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
|
|
2469
2503
|
require_jti: e.boolean().default(!0),
|
|
2470
|
-
user_mapping:
|
|
2471
|
-
}),
|
|
2504
|
+
user_mapping: ti
|
|
2505
|
+
}), ni = e.object({
|
|
2472
2506
|
name: e.string().min(1).max(255),
|
|
2473
2507
|
subject_token_type: J,
|
|
2474
2508
|
action_id: e.string().min(1).optional(),
|
|
2475
|
-
type: e.literal(
|
|
2509
|
+
type: e.literal(Qr),
|
|
2476
2510
|
jwt_verification: Y.optional()
|
|
2477
|
-
}),
|
|
2511
|
+
}), ri = ni.extend({
|
|
2478
2512
|
id: e.string(),
|
|
2479
2513
|
created_at: e.string(),
|
|
2480
2514
|
updated_at: e.string()
|
|
2481
|
-
}),
|
|
2515
|
+
}), ii = e.object({
|
|
2482
2516
|
name: e.string().min(1).max(255).optional(),
|
|
2483
2517
|
subject_token_type: J.optional(),
|
|
2484
2518
|
jwt_verification: Y.optional()
|
|
2485
|
-
}),
|
|
2519
|
+
}), ai = e.object({
|
|
2486
2520
|
scim: e.string(),
|
|
2487
2521
|
auth0: e.string()
|
|
2488
|
-
}),
|
|
2522
|
+
}), oi = e.object({
|
|
2489
2523
|
connection_id: e.string(),
|
|
2490
2524
|
user_id_attribute: e.string().default("externalId"),
|
|
2491
|
-
mapping: e.array(
|
|
2492
|
-
}),
|
|
2525
|
+
mapping: e.array(ai).default([])
|
|
2526
|
+
}), si = e.object({
|
|
2493
2527
|
created_at: e.string(),
|
|
2494
2528
|
updated_at: e.string()
|
|
2495
|
-
}).extend(
|
|
2529
|
+
}).extend(oi.shape), ci = e.object({
|
|
2496
2530
|
token_id: e.string(),
|
|
2497
2531
|
connection_id: e.string(),
|
|
2498
2532
|
token_hash: e.string(),
|
|
2499
2533
|
scopes: e.array(e.string()).default([]),
|
|
2500
2534
|
valid_until: e.string().optional()
|
|
2501
|
-
}),
|
|
2535
|
+
}), li = e.object({
|
|
2502
2536
|
created_at: e.string(),
|
|
2503
2537
|
last_used_at: e.string().optional()
|
|
2504
|
-
}).extend(
|
|
2538
|
+
}).extend(ci.shape), ui = e.object({
|
|
2505
2539
|
connection_id: e.string(),
|
|
2506
2540
|
external_id: e.string(),
|
|
2507
2541
|
user_id: e.string()
|
|
2508
|
-
}),
|
|
2542
|
+
}), di = e.object({ created_at: e.string() }).extend(ui.shape), fi = e.object({
|
|
2543
|
+
...i,
|
|
2509
2544
|
name: e.string(),
|
|
2510
2545
|
enabled: e.boolean().optional().default(!0),
|
|
2511
2546
|
default_from_address: e.string().optional(),
|
|
2512
2547
|
credentials: e.record(e.string(), e.unknown()),
|
|
2513
2548
|
settings: e.object({}).optional()
|
|
2514
|
-
}),
|
|
2549
|
+
}), pi = e.enum([
|
|
2515
2550
|
"verify_email",
|
|
2516
2551
|
"verify_email_by_code",
|
|
2517
2552
|
"reset_email",
|
|
@@ -2524,8 +2559,8 @@ var Ir = e.object({
|
|
|
2524
2559
|
"change_password",
|
|
2525
2560
|
"password_reset",
|
|
2526
2561
|
"user_invitation"
|
|
2527
|
-
]),
|
|
2528
|
-
template:
|
|
2562
|
+
]), mi = e.object({
|
|
2563
|
+
template: pi,
|
|
2529
2564
|
body: e.string(),
|
|
2530
2565
|
from: e.string(),
|
|
2531
2566
|
subject: e.string(),
|
|
@@ -2534,7 +2569,7 @@ var Ir = e.object({
|
|
|
2534
2569
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2535
2570
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2536
2571
|
enabled: e.boolean().default(!0)
|
|
2537
|
-
}),
|
|
2572
|
+
}), hi = e.object({
|
|
2538
2573
|
id: e.string(),
|
|
2539
2574
|
login_id: e.string(),
|
|
2540
2575
|
session_id: e.string().optional(),
|
|
@@ -2546,7 +2581,7 @@ var Ir = e.object({
|
|
|
2546
2581
|
expires_at: e.string().optional(),
|
|
2547
2582
|
idle_expires_at: e.string().optional(),
|
|
2548
2583
|
last_exchanged_at: e.string().optional(),
|
|
2549
|
-
device:
|
|
2584
|
+
device: pr,
|
|
2550
2585
|
resource_servers: e.array(e.object({
|
|
2551
2586
|
audience: e.string(),
|
|
2552
2587
|
scopes: e.string()
|
|
@@ -2557,19 +2592,19 @@ var Ir = e.object({
|
|
|
2557
2592
|
family_id: e.string().optional(),
|
|
2558
2593
|
rotated_to: e.string().optional(),
|
|
2559
2594
|
rotated_at: e.string().optional()
|
|
2560
|
-
}),
|
|
2595
|
+
}), gi = hi.extend({
|
|
2561
2596
|
created_at: e.string(),
|
|
2562
2597
|
revoked_at: e.string().optional()
|
|
2563
|
-
}),
|
|
2598
|
+
}), _i = e.object({
|
|
2564
2599
|
to: e.string(),
|
|
2565
2600
|
message: e.string()
|
|
2566
|
-
}),
|
|
2601
|
+
}), vi = e.object({
|
|
2567
2602
|
name: e.string(),
|
|
2568
2603
|
options: e.object({})
|
|
2569
|
-
}),
|
|
2604
|
+
}), yi = e.object({
|
|
2570
2605
|
value: e.string(),
|
|
2571
2606
|
description: e.string().optional()
|
|
2572
|
-
}),
|
|
2607
|
+
}), bi = e.object({
|
|
2573
2608
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2574
2609
|
enforce_policies: e.boolean().optional(),
|
|
2575
2610
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2577,11 +2612,11 @@ var Ir = e.object({
|
|
|
2577
2612
|
persist_client_authorization: e.boolean().optional(),
|
|
2578
2613
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2579
2614
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2580
|
-
}),
|
|
2615
|
+
}), xi = e.object({
|
|
2581
2616
|
id: e.string().optional(),
|
|
2582
2617
|
name: e.string(),
|
|
2583
2618
|
identifier: e.string(),
|
|
2584
|
-
scopes: e.array(
|
|
2619
|
+
scopes: e.array(yi).optional(),
|
|
2585
2620
|
signing_alg: e.string().optional(),
|
|
2586
2621
|
signing_secret: e.string().optional(),
|
|
2587
2622
|
token_lifetime: e.number().default(86400),
|
|
@@ -2589,37 +2624,38 @@ var Ir = e.object({
|
|
|
2589
2624
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2590
2625
|
allow_offline_access: e.boolean().optional(),
|
|
2591
2626
|
verificationKey: e.string().optional(),
|
|
2592
|
-
options:
|
|
2627
|
+
options: bi.optional(),
|
|
2593
2628
|
is_system: e.boolean().optional(),
|
|
2629
|
+
...i,
|
|
2594
2630
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2595
|
-
}),
|
|
2631
|
+
}), Si = xi.extend({
|
|
2596
2632
|
created_at: e.string().optional(),
|
|
2597
2633
|
updated_at: e.string().optional()
|
|
2598
|
-
}),
|
|
2634
|
+
}), Ci = e.array(Si), wi = e.object({
|
|
2599
2635
|
role_id: e.string(),
|
|
2600
2636
|
resource_server_identifier: e.string(),
|
|
2601
2637
|
permission_name: e.string()
|
|
2602
|
-
}),
|
|
2638
|
+
}), Ti = wi.extend({ created_at: e.string() }), Ei = e.array(Ti), Di = e.object({
|
|
2603
2639
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2604
2640
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2605
2641
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2606
2642
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2607
|
-
}),
|
|
2643
|
+
}), Oi = Di.extend({ id: e.string() }), ki = e.object({
|
|
2608
2644
|
user_id: e.string(),
|
|
2609
2645
|
last_login: e.string().optional(),
|
|
2610
2646
|
last_ip: e.string().optional(),
|
|
2611
2647
|
login_count: e.number().default(0),
|
|
2612
2648
|
failed_logins: e.array(e.string()).optional(),
|
|
2613
2649
|
last_password_reset: e.string().optional()
|
|
2614
|
-
}),
|
|
2650
|
+
}), Ai = e.object({
|
|
2615
2651
|
user_id: e.string(),
|
|
2616
2652
|
resource_server_identifier: e.string(),
|
|
2617
2653
|
permission_name: e.string(),
|
|
2618
2654
|
organization_id: e.string().optional()
|
|
2619
|
-
}),
|
|
2655
|
+
}), ji = Ai.extend({
|
|
2620
2656
|
tenant_id: e.string(),
|
|
2621
2657
|
created_at: e.string().optional()
|
|
2622
|
-
}),
|
|
2658
|
+
}), Mi = e.array(ji), Ni = e.object({
|
|
2623
2659
|
user_id: e.string(),
|
|
2624
2660
|
resource_server_identifier: e.string(),
|
|
2625
2661
|
resource_server_name: e.string(),
|
|
@@ -2627,65 +2663,65 @@ var Ir = e.object({
|
|
|
2627
2663
|
description: e.string().nullable().optional(),
|
|
2628
2664
|
created_at: e.string().optional(),
|
|
2629
2665
|
organization_id: e.string().optional()
|
|
2630
|
-
}),
|
|
2666
|
+
}), Pi = e.array(Ni), Fi = e.object({
|
|
2631
2667
|
user_id: e.string(),
|
|
2632
2668
|
role_id: e.string(),
|
|
2633
2669
|
organization_id: e.string().optional()
|
|
2634
|
-
}),
|
|
2670
|
+
}), Ii = Fi.extend({
|
|
2635
2671
|
tenant_id: e.string(),
|
|
2636
2672
|
created_at: e.string().optional()
|
|
2637
|
-
}),
|
|
2673
|
+
}), Li = e.array(Ii), Ri = e.object({
|
|
2638
2674
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2639
2675
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2640
2676
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2641
2677
|
is_system: e.boolean().optional(),
|
|
2642
2678
|
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." })
|
|
2643
|
-
}),
|
|
2679
|
+
}), zi = Ri.extend({
|
|
2644
2680
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2645
2681
|
created_at: e.string().optional(),
|
|
2646
2682
|
updated_at: e.string().optional()
|
|
2647
|
-
}),
|
|
2683
|
+
}), Bi = e.array(zi), Vi = e.object({
|
|
2648
2684
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2649
2685
|
colors: e.object({
|
|
2650
2686
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2651
2687
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2652
2688
|
}).optional()
|
|
2653
|
-
}).optional(),
|
|
2689
|
+
}).optional(), Hi = e.object({
|
|
2654
2690
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2655
2691
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2656
2692
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2657
2693
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2658
|
-
}),
|
|
2694
|
+
}), Ui = e.object({ client_credentials: e.object({
|
|
2659
2695
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2660
2696
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2661
2697
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2662
|
-
}).optional() }).optional(),
|
|
2698
|
+
}).optional() }).optional(), Wi = e.object({
|
|
2663
2699
|
id: e.string().optional(),
|
|
2664
2700
|
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." }),
|
|
2665
2701
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2666
|
-
branding:
|
|
2702
|
+
branding: Vi,
|
|
2667
2703
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2668
|
-
enabled_connections: e.array(
|
|
2669
|
-
token_quota:
|
|
2670
|
-
}),
|
|
2704
|
+
enabled_connections: e.array(Hi).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2705
|
+
token_quota: Ui
|
|
2706
|
+
}), Gi = Wi.extend(t.shape).extend({
|
|
2671
2707
|
id: e.string(),
|
|
2672
2708
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2673
|
-
}),
|
|
2709
|
+
}), Ki = e.object({
|
|
2674
2710
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2675
2711
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2676
2712
|
show_as_button: e.boolean().optional().default(!0),
|
|
2677
2713
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2678
|
-
}),
|
|
2714
|
+
}), qi = Ki.extend({
|
|
2679
2715
|
connection: e.object({
|
|
2680
2716
|
name: e.string().optional(),
|
|
2681
2717
|
strategy: e.string().optional()
|
|
2682
2718
|
}).optional(),
|
|
2683
2719
|
created_at: e.string().optional(),
|
|
2684
2720
|
updated_at: e.string().optional()
|
|
2685
|
-
}),
|
|
2721
|
+
}), Ji = e.array(qi), Yi = e.object({
|
|
2686
2722
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2687
2723
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2688
|
-
}),
|
|
2724
|
+
}), Xi = Yi.extend(t.shape).extend({ id: e.string() }), Zi = e.object({
|
|
2689
2725
|
idle_session_lifetime: e.number().default(72),
|
|
2690
2726
|
session_lifetime: e.number().default(168),
|
|
2691
2727
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2764,7 +2800,7 @@ var Ir = e.object({
|
|
|
2764
2800
|
}).optional(),
|
|
2765
2801
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2766
2802
|
}).optional()
|
|
2767
|
-
}),
|
|
2803
|
+
}), Qi = e.object({
|
|
2768
2804
|
date: e.string().openapi({
|
|
2769
2805
|
description: "Date these events occurred in ISO 8601 format",
|
|
2770
2806
|
example: "2025-12-19"
|
|
@@ -2789,10 +2825,10 @@ var Ir = e.object({
|
|
|
2789
2825
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2790
2826
|
example: "2025-12-19T00:00:00.000Z"
|
|
2791
2827
|
})
|
|
2792
|
-
}),
|
|
2828
|
+
}), $i = e.number().openapi({
|
|
2793
2829
|
description: "Number of active users in the last 30 days",
|
|
2794
2830
|
example: 1234
|
|
2795
|
-
}),
|
|
2831
|
+
}), ea = e.enum([
|
|
2796
2832
|
"active-users",
|
|
2797
2833
|
"logins",
|
|
2798
2834
|
"signups",
|
|
@@ -2804,81 +2840,81 @@ var Ir = e.object({
|
|
|
2804
2840
|
"mfa",
|
|
2805
2841
|
"email-verifications",
|
|
2806
2842
|
"codes-sent"
|
|
2807
|
-
]),
|
|
2843
|
+
]), ta = e.enum([
|
|
2808
2844
|
"hour",
|
|
2809
2845
|
"day",
|
|
2810
2846
|
"week",
|
|
2811
2847
|
"month"
|
|
2812
|
-
]),
|
|
2848
|
+
]), na = e.enum([
|
|
2813
2849
|
"time",
|
|
2814
2850
|
"connection",
|
|
2815
2851
|
"client_id",
|
|
2816
2852
|
"user_type",
|
|
2817
2853
|
"event"
|
|
2818
|
-
]),
|
|
2854
|
+
]), ra = e.enum([
|
|
2819
2855
|
"password",
|
|
2820
2856
|
"social",
|
|
2821
2857
|
"passwordless",
|
|
2822
2858
|
"enterprise"
|
|
2823
|
-
]),
|
|
2859
|
+
]), ia = e.object({
|
|
2824
2860
|
cohort: e.string(),
|
|
2825
2861
|
sessions: e.number(),
|
|
2826
2862
|
active: e.array(e.number())
|
|
2827
|
-
}),
|
|
2863
|
+
}), aa = e.object({
|
|
2828
2864
|
interval: e.literal("week"),
|
|
2829
2865
|
from: e.string(),
|
|
2830
2866
|
to: e.string(),
|
|
2831
|
-
cohorts: e.array(
|
|
2832
|
-
}),
|
|
2867
|
+
cohorts: e.array(ia)
|
|
2868
|
+
}), oa = e.object({
|
|
2833
2869
|
cohort: e.string(),
|
|
2834
2870
|
tokens: e.number(),
|
|
2835
2871
|
active: e.array(e.number())
|
|
2836
|
-
}),
|
|
2872
|
+
}), sa = e.object({
|
|
2837
2873
|
interval: e.literal("week"),
|
|
2838
2874
|
from: e.string(),
|
|
2839
2875
|
to: e.string(),
|
|
2840
|
-
cohorts: e.array(
|
|
2841
|
-
}),
|
|
2876
|
+
cohorts: e.array(oa)
|
|
2877
|
+
}), ca = e.object({
|
|
2842
2878
|
name: e.string(),
|
|
2843
2879
|
type: e.string()
|
|
2844
|
-
}),
|
|
2880
|
+
}), la = e.object({
|
|
2845
2881
|
elapsed: e.number(),
|
|
2846
2882
|
rows_read: e.number().optional(),
|
|
2847
2883
|
bytes_read: e.number().optional()
|
|
2848
|
-
}),
|
|
2849
|
-
meta: e.array(
|
|
2884
|
+
}), ua = e.object({
|
|
2885
|
+
meta: e.array(ca),
|
|
2850
2886
|
data: e.array(e.record(e.string(), e.any())),
|
|
2851
2887
|
rows: e.number(),
|
|
2852
2888
|
rows_before_limit_at_least: e.number().optional(),
|
|
2853
|
-
statistics:
|
|
2854
|
-
}),
|
|
2889
|
+
statistics: la.optional()
|
|
2890
|
+
}), da = 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(".")), fa = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2855
2891
|
type: "object",
|
|
2856
2892
|
additionalProperties: {
|
|
2857
2893
|
type: "object",
|
|
2858
2894
|
additionalProperties: { type: "string" }
|
|
2859
2895
|
}
|
|
2860
|
-
}),
|
|
2861
|
-
prompt:
|
|
2896
|
+
}), pa = e.object({
|
|
2897
|
+
prompt: da,
|
|
2862
2898
|
language: e.string(),
|
|
2863
|
-
custom_text:
|
|
2864
|
-
}),
|
|
2899
|
+
custom_text: fa
|
|
2900
|
+
}), ma = [
|
|
2865
2901
|
"form-content-start",
|
|
2866
2902
|
"form-content-end",
|
|
2867
2903
|
"form-footer-start",
|
|
2868
2904
|
"form-footer-end",
|
|
2869
2905
|
"secondary-actions-start",
|
|
2870
2906
|
"secondary-actions-end"
|
|
2871
|
-
],
|
|
2907
|
+
], ha = e.object({
|
|
2872
2908
|
"form-content-start": e.string().optional(),
|
|
2873
2909
|
"form-content-end": e.string().optional(),
|
|
2874
2910
|
"form-footer-start": e.string().optional(),
|
|
2875
2911
|
"form-footer-end": e.string().optional(),
|
|
2876
2912
|
"secondary-actions-start": e.string().optional(),
|
|
2877
2913
|
"secondary-actions-end": e.string().optional()
|
|
2878
|
-
}).strict(),
|
|
2914
|
+
}).strict(), ga = e.record(e.string(), ha), _a = e.object({
|
|
2879
2915
|
prompt: e.string(),
|
|
2880
|
-
partials:
|
|
2881
|
-
}),
|
|
2916
|
+
partials: ga
|
|
2917
|
+
}), va = {
|
|
2882
2918
|
EMAIL: "email",
|
|
2883
2919
|
SMS: "sms",
|
|
2884
2920
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2894,17 +2930,17 @@ var Ir = e.object({
|
|
|
2894
2930
|
WAAD: "waad",
|
|
2895
2931
|
ADFS: "adfs",
|
|
2896
2932
|
OKTA: "okta"
|
|
2897
|
-
},
|
|
2933
|
+
}, ya = {
|
|
2898
2934
|
DATABASE: "database",
|
|
2899
2935
|
SOCIAL: "social",
|
|
2900
2936
|
PASSWORDLESS: "passwordless"
|
|
2901
|
-
},
|
|
2902
|
-
function
|
|
2903
|
-
return e === "auth0" || e ===
|
|
2937
|
+
}, ba = "auth0";
|
|
2938
|
+
function xa(e) {
|
|
2939
|
+
return e === "auth0" || e === va.USERNAME_PASSWORD || e === "auth2";
|
|
2904
2940
|
}
|
|
2905
2941
|
//#endregion
|
|
2906
2942
|
//#region src/types/AuthenticationMethod.ts
|
|
2907
|
-
var
|
|
2943
|
+
var Sa = e.enum([
|
|
2908
2944
|
"phone",
|
|
2909
2945
|
"totp",
|
|
2910
2946
|
"email",
|
|
@@ -2912,9 +2948,9 @@ var va = e.enum([
|
|
|
2912
2948
|
"webauthn-roaming",
|
|
2913
2949
|
"webauthn-platform",
|
|
2914
2950
|
"passkey"
|
|
2915
|
-
]),
|
|
2951
|
+
]), Ca = e.object({
|
|
2916
2952
|
user_id: e.string(),
|
|
2917
|
-
type:
|
|
2953
|
+
type: Sa,
|
|
2918
2954
|
phone_number: e.string().optional(),
|
|
2919
2955
|
totp_secret: e.string().optional(),
|
|
2920
2956
|
credential_id: e.string().optional(),
|
|
@@ -2925,7 +2961,7 @@ var va = e.enum([
|
|
|
2925
2961
|
friendly_name: e.string().optional(),
|
|
2926
2962
|
confirmed: e.boolean().default(!1)
|
|
2927
2963
|
});
|
|
2928
|
-
function
|
|
2964
|
+
function wa(t, n) {
|
|
2929
2965
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2930
2966
|
code: e.ZodIssueCode.custom,
|
|
2931
2967
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2948,15 +2984,15 @@ function ba(t, n) {
|
|
|
2948
2984
|
path: ["public_key"]
|
|
2949
2985
|
}));
|
|
2950
2986
|
}
|
|
2951
|
-
var
|
|
2987
|
+
var Ta = Ca.superRefine(wa), Ea = Ca.extend({
|
|
2952
2988
|
id: e.string(),
|
|
2953
2989
|
created_at: e.string(),
|
|
2954
2990
|
updated_at: e.string()
|
|
2955
|
-
}).superRefine(
|
|
2991
|
+
}).superRefine(wa), Da = e.object({
|
|
2956
2992
|
id: e.string().optional(),
|
|
2957
2993
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2958
2994
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2959
|
-
}),
|
|
2995
|
+
}), Oa = {
|
|
2960
2996
|
"post-user-login": {
|
|
2961
2997
|
accessToken: ["setCustomClaim"],
|
|
2962
2998
|
idToken: ["setCustomClaim"],
|
|
@@ -2984,7 +3020,7 @@ var xa = ya.superRefine(ba), Sa = ya.extend({
|
|
|
2984
3020
|
authentication: ["setUserById", "setUserByConnection"],
|
|
2985
3021
|
access: ["deny", "rejectInvalidSubjectToken"]
|
|
2986
3022
|
}
|
|
2987
|
-
},
|
|
3023
|
+
}, ka = {
|
|
2988
3024
|
"post-user-login": "onExecutePostLogin",
|
|
2989
3025
|
"credentials-exchange": "onExecuteCredentialsExchange",
|
|
2990
3026
|
"pre-user-registration": "onExecutePreUserRegistration",
|
|
@@ -2993,7 +3029,7 @@ var xa = ya.superRefine(ba), Sa = ya.extend({
|
|
|
2993
3029
|
};
|
|
2994
3030
|
//#endregion
|
|
2995
3031
|
//#region src/utils/user-id.ts
|
|
2996
|
-
function
|
|
3032
|
+
function Aa(e) {
|
|
2997
3033
|
let t = e.indexOf("|"), n = e.slice(0, t), r = e.slice(t + 1);
|
|
2998
3034
|
if (t === -1 || !n || !r) throw Error(`Invalid user_id: ${e}`);
|
|
2999
3035
|
return {
|
|
@@ -3003,10 +3039,10 @@ function Ea(e) {
|
|
|
3003
3039
|
}
|
|
3004
3040
|
//#endregion
|
|
3005
3041
|
//#region src/utils/http.ts
|
|
3006
|
-
var
|
|
3042
|
+
var ja = "x-authhero-preserve-location";
|
|
3007
3043
|
//#endregion
|
|
3008
3044
|
//#region src/utils/passthrough.ts
|
|
3009
|
-
function
|
|
3045
|
+
function Ma(e) {
|
|
3010
3046
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
3011
3047
|
"create",
|
|
3012
3048
|
"rawCreate",
|
|
@@ -3040,12 +3076,12 @@ function Oa(e) {
|
|
|
3040
3076
|
} : i.bind(e) : i;
|
|
3041
3077
|
} });
|
|
3042
3078
|
}
|
|
3043
|
-
function
|
|
3079
|
+
function Na(e) {
|
|
3044
3080
|
return e;
|
|
3045
3081
|
}
|
|
3046
3082
|
//#endregion
|
|
3047
3083
|
//#region src/utils/connection-attributes.ts
|
|
3048
|
-
function
|
|
3084
|
+
function Pa(e) {
|
|
3049
3085
|
let t = e?.options;
|
|
3050
3086
|
if (!t) return {
|
|
3051
3087
|
usernameIdentifierActive: !1,
|
|
@@ -3068,35 +3104,35 @@ function Aa(e) {
|
|
|
3068
3104
|
}
|
|
3069
3105
|
//#endregion
|
|
3070
3106
|
//#region src/utils/guards.ts
|
|
3071
|
-
function
|
|
3107
|
+
function Fa(e) {
|
|
3072
3108
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
3073
3109
|
}
|
|
3074
3110
|
//#endregion
|
|
3075
3111
|
//#region src/utils/base64url.ts
|
|
3076
|
-
function
|
|
3112
|
+
function Ia(e) {
|
|
3077
3113
|
let t = "";
|
|
3078
3114
|
for (let n of e) t += String.fromCharCode(n);
|
|
3079
3115
|
return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
3080
3116
|
}
|
|
3081
|
-
function
|
|
3117
|
+
function La(e) {
|
|
3082
3118
|
let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = atob(t), r = new Uint8Array(n.length);
|
|
3083
3119
|
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
3084
3120
|
return r;
|
|
3085
3121
|
}
|
|
3086
|
-
function
|
|
3087
|
-
return
|
|
3122
|
+
function Ra(e) {
|
|
3123
|
+
return Ia(new TextEncoder().encode(e));
|
|
3088
3124
|
}
|
|
3089
|
-
function
|
|
3090
|
-
return new TextDecoder().decode(
|
|
3125
|
+
function za(e) {
|
|
3126
|
+
return new TextDecoder().decode(La(e));
|
|
3091
3127
|
}
|
|
3092
3128
|
//#endregion
|
|
3093
3129
|
//#region src/utils/base64.ts
|
|
3094
|
-
function
|
|
3130
|
+
function Ba(e) {
|
|
3095
3131
|
let t = "";
|
|
3096
3132
|
for (let n of e) t += String.fromCharCode(n);
|
|
3097
3133
|
return btoa(t);
|
|
3098
3134
|
}
|
|
3099
|
-
function
|
|
3135
|
+
function Va(e) {
|
|
3100
3136
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
3101
3137
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
3102
3138
|
return n;
|
|
@@ -3104,12 +3140,12 @@ function La(e) {
|
|
|
3104
3140
|
//#endregion
|
|
3105
3141
|
//#region src/utils/base32.ts
|
|
3106
3142
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
3107
|
-
function
|
|
3143
|
+
function Ha(e) {
|
|
3108
3144
|
let t = "", n = 0, r = 0;
|
|
3109
3145
|
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += X[n >> r & 31];
|
|
3110
3146
|
return r > 0 && (t += X[n << 5 - r & 31]), t;
|
|
3111
3147
|
}
|
|
3112
|
-
function
|
|
3148
|
+
function Ua(e) {
|
|
3113
3149
|
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
3114
3150
|
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
3115
3151
|
let r = [], i = 0, a = 0;
|
|
@@ -3123,19 +3159,19 @@ function za(e) {
|
|
|
3123
3159
|
}
|
|
3124
3160
|
//#endregion
|
|
3125
3161
|
//#region src/utils/hex.ts
|
|
3126
|
-
function
|
|
3162
|
+
function Wa(e) {
|
|
3127
3163
|
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
3128
3164
|
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
3129
3165
|
return n;
|
|
3130
3166
|
}
|
|
3131
3167
|
//#endregion
|
|
3132
3168
|
//#region src/utils/cursor.ts
|
|
3133
|
-
function
|
|
3134
|
-
return
|
|
3169
|
+
function Ga(e) {
|
|
3170
|
+
return Ra(JSON.stringify(e));
|
|
3135
3171
|
}
|
|
3136
|
-
function
|
|
3172
|
+
function Ka(e) {
|
|
3137
3173
|
try {
|
|
3138
|
-
let t = JSON.parse(
|
|
3174
|
+
let t = JSON.parse(za(e));
|
|
3139
3175
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
3140
3176
|
} catch {
|
|
3141
3177
|
return null;
|
|
@@ -3143,7 +3179,7 @@ function Ha(e) {
|
|
|
3143
3179
|
}
|
|
3144
3180
|
//#endregion
|
|
3145
3181
|
//#region src/utils/lucene.ts
|
|
3146
|
-
function
|
|
3182
|
+
function qa(e) {
|
|
3147
3183
|
let t = [], n = "", r = !1;
|
|
3148
3184
|
for (let i = 0; i < e.length; i++) {
|
|
3149
3185
|
let a = e[i];
|
|
@@ -3151,53 +3187,53 @@ function Ua(e) {
|
|
|
3151
3187
|
}
|
|
3152
3188
|
return n.trim() && t.push(n.trim()), t;
|
|
3153
3189
|
}
|
|
3154
|
-
function
|
|
3190
|
+
function Ja(e) {
|
|
3155
3191
|
return e.replace(/\\([\\"+\-!(){}[\]^~*?:/&|])/g, "$1");
|
|
3156
3192
|
}
|
|
3157
|
-
function
|
|
3193
|
+
function Ya(e) {
|
|
3158
3194
|
return `"${e.replace(/([\\"])/g, "\\$1")}"`;
|
|
3159
3195
|
}
|
|
3160
|
-
function
|
|
3196
|
+
function Xa(e) {
|
|
3161
3197
|
let t = e.trim();
|
|
3162
|
-
return
|
|
3198
|
+
return Ja(t.length > 1 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t);
|
|
3163
3199
|
}
|
|
3164
|
-
function
|
|
3200
|
+
function Za(e) {
|
|
3165
3201
|
let t = [], n = [];
|
|
3166
|
-
for (let r of
|
|
3202
|
+
for (let r of qa(e)) /^or$/i.test(r) ? (t.push(n), n = []) : n.push(r);
|
|
3167
3203
|
return t.push(n), t.filter((e) => e.length > 0);
|
|
3168
3204
|
}
|
|
3169
|
-
function
|
|
3205
|
+
function Qa(e, t) {
|
|
3170
3206
|
let n = new Set(t), r = (e) => {
|
|
3171
3207
|
let t = e.replace(/^([^:]+)=/, "$1:"), r = t.startsWith("-") ? t.slice(1) : t;
|
|
3172
3208
|
if (r.startsWith("_exists_:")) return n.has(r.slice(9));
|
|
3173
3209
|
let i = r.indexOf(":");
|
|
3174
3210
|
return i > 0 ? n.has(r.slice(0, i)) : !0;
|
|
3175
3211
|
};
|
|
3176
|
-
return
|
|
3212
|
+
return Za(e).map((e) => e.filter(r).join(" ")).filter((e) => e.length > 0).join(" OR ");
|
|
3177
3213
|
}
|
|
3178
|
-
var
|
|
3179
|
-
function
|
|
3180
|
-
return
|
|
3214
|
+
var $a = /^[^\s@%_*?"'()[\]{}^~:\\/]+@[^\s@%_*?"'()[\]{}^~:\\/]+\.[^\s@%_*?"'()[\]{}^~:\\/]+$/;
|
|
3215
|
+
function eo(e) {
|
|
3216
|
+
return $a.test(e);
|
|
3181
3217
|
}
|
|
3182
3218
|
//#endregion
|
|
3183
3219
|
//#region src/utils/session-retention.ts
|
|
3184
3220
|
var Z = 10080 * 60 * 1e3, Q = 4320 * 60 * 1e3;
|
|
3185
|
-
function
|
|
3221
|
+
function to(e) {
|
|
3186
3222
|
return Math.floor((e + Q) / Z);
|
|
3187
3223
|
}
|
|
3188
3224
|
function $(e) {
|
|
3189
3225
|
return e * Z - Q;
|
|
3190
3226
|
}
|
|
3191
|
-
function
|
|
3192
|
-
let n =
|
|
3227
|
+
function no(e, t = Date.now()) {
|
|
3228
|
+
let n = to(t), r = n - e + 1;
|
|
3193
3229
|
return {
|
|
3194
3230
|
currentWeek: n,
|
|
3195
3231
|
firstWeek: r,
|
|
3196
3232
|
sinceMs: $(r)
|
|
3197
3233
|
};
|
|
3198
3234
|
}
|
|
3199
|
-
function
|
|
3200
|
-
let { currentWeek: r, firstWeek: i, sinceMs: a } =
|
|
3235
|
+
function ro(e, t, n = Date.now()) {
|
|
3236
|
+
let { currentWeek: r, firstWeek: i, sinceMs: a } = no(t, n), o = /* @__PURE__ */ new Map();
|
|
3201
3237
|
for (let t of e) {
|
|
3202
3238
|
if (t.created_week < i || t.created_week > r) continue;
|
|
3203
3239
|
let e = Math.min(Math.max(0, t.used_week - t.created_week), r - t.created_week), n = o.get(t.created_week);
|
|
@@ -3220,8 +3256,8 @@ function $a(e, t, n = Date.now()) {
|
|
|
3220
3256
|
cohorts: s
|
|
3221
3257
|
};
|
|
3222
3258
|
}
|
|
3223
|
-
function
|
|
3224
|
-
let r =
|
|
3259
|
+
function io(e, t, n = Date.now()) {
|
|
3260
|
+
let r = ro(e, t, n);
|
|
3225
3261
|
return {
|
|
3226
3262
|
interval: r.interval,
|
|
3227
3263
|
from: r.from,
|
|
@@ -3235,16 +3271,16 @@ function eo(e, t, n = Date.now()) {
|
|
|
3235
3271
|
}
|
|
3236
3272
|
//#endregion
|
|
3237
3273
|
//#region src/utils/username-validation.ts
|
|
3238
|
-
var
|
|
3239
|
-
function
|
|
3240
|
-
return
|
|
3274
|
+
var ao = /^[A-Za-z0-9_+\-.!#$'^`~]+$/, oo = "Username can only contain alphanumeric characters and the following characters: '_', '+', '-', '.', '!', '#', '$', \"'\", '^', '`', '~'", so = "Usernames must not contain \"@\". Use the email field for email addresses.";
|
|
3275
|
+
function co(e) {
|
|
3276
|
+
return ao.test(e);
|
|
3241
3277
|
}
|
|
3242
|
-
function
|
|
3278
|
+
function lo(e) {
|
|
3243
3279
|
return e.toLowerCase();
|
|
3244
3280
|
}
|
|
3245
|
-
function
|
|
3246
|
-
if (e.includes("@")) return
|
|
3247
|
-
if (!
|
|
3281
|
+
function uo(e, t) {
|
|
3282
|
+
if (e.includes("@")) return so;
|
|
3283
|
+
if (!co(e)) return oo;
|
|
3248
3284
|
if (t) {
|
|
3249
3285
|
let n = [...e].length;
|
|
3250
3286
|
if (n < t.min) return `Username must be at least ${t.min} characters`;
|
|
@@ -3254,15 +3290,15 @@ function oo(e, t) {
|
|
|
3254
3290
|
}
|
|
3255
3291
|
//#endregion
|
|
3256
3292
|
//#region src/utils/feature-not-supported.ts
|
|
3257
|
-
var
|
|
3293
|
+
var fo = class extends Error {
|
|
3258
3294
|
feature;
|
|
3259
3295
|
adapter;
|
|
3260
3296
|
constructor(e, t, n) {
|
|
3261
3297
|
super(`${e} is not supported by the ${t} adapter.` + (n ? ` ${n}` : "")), this.name = "FeatureNotSupportedError", this.feature = e, this.adapter = t;
|
|
3262
3298
|
}
|
|
3263
3299
|
};
|
|
3264
|
-
function
|
|
3300
|
+
function po(e) {
|
|
3265
3301
|
return e instanceof Error && e.name === "FeatureNotSupportedError";
|
|
3266
3302
|
}
|
|
3267
3303
|
//#endregion
|
|
3268
|
-
export {
|
|
3304
|
+
export { we as Auth0ActionEnum, Yn as Auth0Client, T as AuthorizationResponseMode, w as AuthorizationResponseType, ot as CodeChallengeMethod, Ue as ComponentCategory, He as ComponentType, ba as DATABASE_CONNECTION_STRATEGY, Te as EmailActionEnum, en as FORM_FIELD_TYPES, fo as FeatureNotSupportedError, Ce as FlowActionTypeEnum, Rr as GrantType, Sr as KNOWN_TENANT_OPERATION_ENGINES, Xn as LocationInfo, U as LogTypes, Bn as LoginSessionState, Q as MONDAY_EPOCH_SHIFT_MS, Xe as NodeType, ja as PRESERVE_LOCATION_HEADER, $r as RESERVED_SUBJECT_TOKEN_TYPE_PREFIXES, ke as RedirectTargetEnum, va as Strategy, ya as StrategyType, kr as TERMINAL_TENANT_OPERATION_ROW_STATUSES, Qr as TOKEN_EXCHANGE_PROFILE_TYPE, Oa as TRIGGER_API_SHAPES, ka as TRIGGER_FUNCTION_NAMES, so as USERNAME_CONTAINS_AT_MESSAGE, oo as USERNAME_INVALID_CHARACTERS_MESSAGE, Z as WEEK_MS, o as actionDependencySchema, ae as actionExecutionErrorSchema, ue as actionExecutionInsertSchema, se as actionExecutionLogEntrySchema, ce as actionExecutionLogsSchema, oe as actionExecutionResultSchema, le as actionExecutionSchema, ie as actionExecutionStatusSchema, re as actionExecutionTriggerIdSchema, c as actionInsertSchema, $e as actionNodeSchema, ne as actionResponseSchema, l as actionSchema, te as actionSecretNameSchema, s as actionSecretSchema, a as actionTriggerSchema, ee as actionUpdateSchema, de as actionVersionInsertSchema, fe as actionVersionSchema, $i as activeUsersResponseSchema, me as actorSchema, p as addressSchema, _n as allowedTriggersForHook, ca as analyticsColumnMetaSchema, na as analyticsGroupBySchema, ta as analyticsIntervalSchema, ua as analyticsQueryResponseSchema, ea as analyticsResourceSchema, la as analyticsStatisticsSchema, ra as analyticsUserTypeSchema, ur as attackProtectionSchema, pe as auditCategorySchema, xe as auditEventInsertSchema, Se as auditEventSchema, be as auth0ClientSchema, at as auth0FlowInsertSchema, it as auth0FlowSchema, Ne as auth0QuerySchema, De as auth0UpdateUserActionSchema, Fe as auth0UserResponseSchema, lt as authParamsSchema, Ta as authenticationMethodInsertSchema, Ea as authenticationMethodSchema, Sa as authenticationMethodTypeSchema, m as baseUserSchema, Zt as blockComponentSchema, Br as bordersSchema, ut as brandingSchema, sr as breachedPasswordDetectionSchema, cr as bruteForceProtectionSchema, io as buildRefreshTokenRetention, ro as buildSessionRetention, Ge as buttonComponentSchema, ct as claimsRequestSchema, v as clientGrantInsertSchema, Be as clientGrantListSchema, y as clientGrantSchema, _ as clientInsertSchema, x as clientRegistrationTokenInsertSchema, Ve as clientRegistrationTokenSchema, b as clientRegistrationTokenTypeSchema, ze as clientSchema, ft as codeInsertSchema, pt as codeSchema, dt as codeTypeSchema, Vr as colorsSchema, ln as componentMessageSchema, Ye as componentSchema, i as configInheritanceShape, r as configOverrideSchema, n as configScopeSchema, ht as connectionInsertSchema, mt as connectionOptionsSchema, gt as connectionSchema, S as coordinatesSchema, Ma as createPassthroughAdapter, Na as createWriteOnlyAdapter, xt as customDomainCertificateUploadSchema, D as customDomainInsertSchema, vt as customDomainSchema, yt as customDomainUpdateSchema, bt as customDomainWithTenantIdSchema, pa as customTextEntrySchema, fa as customTextSchema, Qi as dailyStatsSchema, Ua as decodeBase32, Va as decodeBase64, La as decodeBase64Url, za as decodeBase64UrlString, Ka as decodeCursor, fi as emailProviderSchema, pi as emailTemplateNameSchema, mi as emailTemplateSchema, Ee as emailVerificationRulesSchema, Oe as emailVerifyActionSchema, Ha as encodeBase32, Ba as encodeBase64, Ia as encodeBase64Url, Ra as encodeBase64UrlString, Ga as encodeCursor, Wa as encodeHex, rt as endingSchema, Ya as escapeLuceneValue, $t as fieldComponentSchema, je as flowActionStepSchema, u as flowInsertSchema, Me as flowSchema, qe as flowsFieldComponentSchema, Qe as flowsFlowNodeSchema, Ze as flowsStepNodeSchema, K as fontDetailsSchema, Hr as fontsSchema, tn as formControlSchema, sn as formInsertSchema, M as formNodeComponentDefinition, on as formNodeSchema, cn as formSchema, Je as genericComponentSchema, et as genericNodeSchema, Pa as getConnectionIdentifierConfig, Jn as getLogTypeCategory, qn as getLogTypeDescription, Di as grantInsertSchema, Oi as grantSchema, Yr as handlerConfigSchema, jn as hookCodeInsertSchema, Mn as hookCodeSchema, wn as hookInsertSchema, z as hookPageId, An as hookSchema, B as hookTemplateId, vn as hookTemplates, f as identitySchema, Da as importMetadataSchema, Fn as inviteInsertSchema, In as inviteSchema, Pn as inviteeSchema, Nn as inviterSchema, pn as isBlockComponent, xa as isDatabaseConnectionStrategy, eo as isEmailSearchTerm, po as isFeatureNotSupportedError, hn as isFieldComponent, Fa as isPlainObject, mn as isWidgetComponent, Rn as jwksKeySchema, Ln as jwksSchema, Ke as legalComponentSchema, ye as locationInfoSchema, Zn as logInsertSchema, Qn as logSchema, er as logStreamFilterSchema, tr as logStreamInsertSchema, nr as logStreamSchema, W as logStreamStatusSchema, $n as logStreamTypeSchema, Kn as logTypeCategories, Gn as logTypeDescriptions, H as loginSessionAuthStrategySchema, Hn as loginSessionInsertSchema, Un as loginSessionSchema, Vn as loginSessionStateSchema, Jr as matchSchema, rr as migrationProviderTypeSchema, ir as migrationSourceCredentialsSchema, ar as migrationSourceInsertSchema, or as migrationSourceSchema, tt as nodeSchema, lo as normalizeUsername, zn as openIDConfigurationSchema, Vi as organizationBrandingSchema, Ki as organizationConnectionInsertSchema, Ji as organizationConnectionListSchema, qi as organizationConnectionSchema, Hi as organizationEnabledConnectionSchema, Wi as organizationInsertSchema, Gi as organizationSchema, Ui as organizationTokenQuotaSchema, Ur as pageBackgroundSchema, Aa as parseUserId, dr as passwordInsertSchema, fr as passwordSchema, d as profileDataSchema, ma as promptPartialInsertionPoints, _a as promptPartialsEntrySchema, ga as promptPartialsSchema, da as promptScreenSchema, qr as promptSettingSchema, q as proxyRouteInsertSchema, Xr as proxyRouteSchema, Zr as proxyRouteUpdateSchema, Ae as redirectActionSchema, hi as refreshTokenInsertSchema, oa as refreshTokenRetentionCohortSchema, sa as refreshTokenRetentionResponseSchema, gi as refreshTokenSchema, ge as requestAuthSchema, _e as requestContextSchema, xi as resourceServerInsertSchema, Ci as resourceServerListSchema, bi as resourceServerOptionsSchema, Si as resourceServerSchema, yi as resourceServerScopeSchema, ve as responseContextSchema, We as richTextComponentSchema, Ri as roleInsertSchema, Bi as roleListSchema, wi as rolePermissionInsertSchema, Ei as rolePermissionListSchema, Ti as rolePermissionSchema, zi as roleSchema, Fr as rolloutInsertSchema, Nr as rolloutKindSchema, Ir as rolloutSchema, Pr as rolloutStatusSchema, Lr as rolloutUpdateSchema, Qa as sanitizeLuceneQuery, oi as scimConfigurationInsertSchema, si as scimConfigurationSchema, ui as scimExternalIdInsertSchema, di as scimExternalIdSchema, ai as scimMappingEntrySchema, ci as scimTokenInsertSchema, li as scimTokenSchema, un as screenLinkSchema, mr as sessionInsertSchema, ia as sessionRetentionCohortSchema, aa as sessionRetentionResponseSchema, no as sessionRetentionWindow, hr as sessionSchema, gr as signingKeySchema, vi as smsProviderSchema, _i as smsSendParamsSchema, Za as splitLuceneOrGroups, nt as startSchema, J as subjectTokenTypeSchema, lr as suspiciousIpThrottlingSchema, he as targetSchema, _r as tenantInsertSchema, xr as tenantOperationEngineSchema, Dr as tenantOperationEventInsertSchema, Er as tenantOperationEventOutcomeSchema, Or as tenantOperationEventSchema, Cr as tenantOperationInsertSchema, yr as tenantOperationKindSchema, Ar as tenantOperationRowInsertSchema, Mr as tenantOperationRowOutcomeSchema, jr as tenantOperationRowSchema, G as tenantOperationRowStatusSchema, wr as tenantOperationSchema, br as tenantOperationStatusSchema, Tr as tenantOperationUpdateSchema, vr as tenantSchema, Zi as tenantSettingsSchema, Gr as themeInsertSchema, Kr as themeSchema, ei as tokenExchangeJwtAlgorithmSchema, Y as tokenExchangeJwtVerificationSchema, ni as tokenExchangeProfileInsertSchema, ri as tokenExchangeProfileSchema, ii as tokenExchangeProfileUpdateSchema, ti as tokenExchangeUserMappingSchema, zr as tokenResponseSchema, qa as tokenizeLuceneQuery, Pe as totalsSchema, dn as uiScreenPartialsSchema, fn as uiScreenSchema, Ja as unescapeLuceneValue, Xa as unquoteLuceneValue, ki as userActivitySchema, h as userInsertSchema, Yi as userOrganizationInsertSchema, Xi as userOrganizationSchema, Ai as userPermissionInsertSchema, Mi as userPermissionListSchema, ji as userPermissionSchema, Pi as userPermissionWithDetailsListSchema, Ni as userPermissionWithDetailsSchema, Ie as userResponseSchema, Fi as userRoleInsertSchema, Li as userRoleListSchema, Ii as userRoleSchema, g as userSchema, co as usernameHasOnlyAllowedCharacters, uo as validateUsername, _t as verificationMethodsSchema, to as weekIndex, $ as weekStartMs, Qt as widgetComponentSchema, Wr as widgetSchema };
|