@authhero/adapter-interfaces 2.9.1 → 2.10.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 +8 -2
- package/dist/adapter-interfaces.mjs +313 -310
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/CustomDomains.d.ts +2 -1
- package/dist/types/types/CustomDomain.d.ts +5 -0
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ var t = e.object({
|
|
|
74
74
|
tenant_id: !0,
|
|
75
75
|
created_at: !0,
|
|
76
76
|
updated_at: !0
|
|
77
|
-
}),
|
|
77
|
+
}), u = e.object({
|
|
78
78
|
action_id: e.string(),
|
|
79
79
|
code: e.string().max(1e5),
|
|
80
80
|
runtime: e.string().max(50).optional(),
|
|
@@ -82,16 +82,16 @@ var t = e.object({
|
|
|
82
82
|
secrets: e.array(i).optional(),
|
|
83
83
|
supported_triggers: e.array(n).optional(),
|
|
84
84
|
deployed: e.boolean().default(!0)
|
|
85
|
-
}),
|
|
85
|
+
}), oe = u.extend({
|
|
86
86
|
id: e.string(),
|
|
87
87
|
tenant_id: e.string(),
|
|
88
88
|
number: e.number().int()
|
|
89
|
-
}).extend(t.shape),
|
|
89
|
+
}).extend(t.shape), se = e.enum([
|
|
90
90
|
"user_action",
|
|
91
91
|
"admin_action",
|
|
92
92
|
"system",
|
|
93
93
|
"api"
|
|
94
|
-
]),
|
|
94
|
+
]), ce = e.object({
|
|
95
95
|
type: e.enum([
|
|
96
96
|
"user",
|
|
97
97
|
"admin",
|
|
@@ -105,7 +105,7 @@ var t = e.object({
|
|
|
105
105
|
org_name: e.string().optional(),
|
|
106
106
|
scopes: e.array(e.string()).optional(),
|
|
107
107
|
client_id: e.string().optional()
|
|
108
|
-
}),
|
|
108
|
+
}), le = e.object({
|
|
109
109
|
type: e.string(),
|
|
110
110
|
id: e.string(),
|
|
111
111
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -114,7 +114,7 @@ var t = e.object({
|
|
|
114
114
|
old: e.unknown(),
|
|
115
115
|
new: e.unknown()
|
|
116
116
|
})).optional()
|
|
117
|
-
}),
|
|
117
|
+
}), ue = e.object({
|
|
118
118
|
method: e.string(),
|
|
119
119
|
path: e.string(),
|
|
120
120
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -122,58 +122,58 @@ var t = e.object({
|
|
|
122
122
|
ip: e.string(),
|
|
123
123
|
user_agent: e.string().optional(),
|
|
124
124
|
correlation_id: e.string().optional()
|
|
125
|
-
}),
|
|
125
|
+
}), de = e.object({
|
|
126
126
|
status_code: e.number(),
|
|
127
127
|
body: e.unknown().optional()
|
|
128
|
-
}),
|
|
128
|
+
}), fe = e.object({
|
|
129
129
|
country_code: e.string(),
|
|
130
130
|
city_name: e.string(),
|
|
131
131
|
latitude: e.string(),
|
|
132
132
|
longitude: e.string(),
|
|
133
133
|
time_zone: e.string(),
|
|
134
134
|
continent_code: e.string()
|
|
135
|
-
}),
|
|
135
|
+
}), d = e.object({
|
|
136
136
|
name: e.string(),
|
|
137
137
|
version: e.string(),
|
|
138
138
|
env: e.record(e.string(), e.string()).optional()
|
|
139
|
-
}),
|
|
139
|
+
}), f = e.object({
|
|
140
140
|
tenant_id: e.string(),
|
|
141
141
|
event_type: e.string(),
|
|
142
142
|
log_type: e.string(),
|
|
143
143
|
description: e.string().optional(),
|
|
144
|
-
category:
|
|
145
|
-
actor:
|
|
146
|
-
target:
|
|
147
|
-
request:
|
|
148
|
-
response:
|
|
144
|
+
category: se,
|
|
145
|
+
actor: ce,
|
|
146
|
+
target: le,
|
|
147
|
+
request: ue,
|
|
148
|
+
response: de.optional(),
|
|
149
149
|
connection: e.string().optional(),
|
|
150
150
|
strategy: e.string().optional(),
|
|
151
151
|
strategy_type: e.string().optional(),
|
|
152
152
|
audience: e.string().optional(),
|
|
153
153
|
scope: e.string().optional(),
|
|
154
|
-
location:
|
|
155
|
-
auth0_client:
|
|
154
|
+
location: fe.optional(),
|
|
155
|
+
auth0_client: d.optional(),
|
|
156
156
|
hostname: e.string(),
|
|
157
157
|
is_mobile: e.boolean().optional(),
|
|
158
158
|
timestamp: e.string()
|
|
159
|
-
}),
|
|
159
|
+
}), pe = f.extend({ id: e.string() }), me = e.enum([
|
|
160
160
|
"AUTH0",
|
|
161
161
|
"EMAIL",
|
|
162
162
|
"REDIRECT"
|
|
163
|
-
]),
|
|
163
|
+
]), he = e.enum([
|
|
164
164
|
"CREATE_USER",
|
|
165
165
|
"GET_USER",
|
|
166
166
|
"UPDATE_USER",
|
|
167
167
|
"SEND_REQUEST",
|
|
168
168
|
"SEND_EMAIL"
|
|
169
|
-
]),
|
|
169
|
+
]), ge = e.enum(["VERIFY_EMAIL"]), p = e.object({
|
|
170
170
|
require_mx_record: e.boolean().optional(),
|
|
171
171
|
block_aliases: e.boolean().optional(),
|
|
172
172
|
block_free_emails: e.boolean().optional(),
|
|
173
173
|
block_disposable_emails: e.boolean().optional(),
|
|
174
174
|
blocklist: e.array(e.string()).optional(),
|
|
175
175
|
allowlist: e.array(e.string()).optional()
|
|
176
|
-
}),
|
|
176
|
+
}), m = e.object({
|
|
177
177
|
id: e.string(),
|
|
178
178
|
alias: e.string().max(100).optional(),
|
|
179
179
|
type: e.literal("AUTH0"),
|
|
@@ -185,7 +185,7 @@ var t = e.object({
|
|
|
185
185
|
user_id: e.string(),
|
|
186
186
|
changes: e.record(e.string(), e.any())
|
|
187
187
|
})
|
|
188
|
-
}),
|
|
188
|
+
}), h = e.object({
|
|
189
189
|
id: e.string(),
|
|
190
190
|
alias: e.string().max(100).optional(),
|
|
191
191
|
type: e.literal("EMAIL"),
|
|
@@ -194,13 +194,13 @@ var t = e.object({
|
|
|
194
194
|
mask_output: e.boolean().optional(),
|
|
195
195
|
params: e.object({
|
|
196
196
|
email: e.string(),
|
|
197
|
-
rules:
|
|
197
|
+
rules: p.optional()
|
|
198
198
|
})
|
|
199
|
-
}),
|
|
199
|
+
}), g = e.enum([
|
|
200
200
|
"change-email",
|
|
201
201
|
"account",
|
|
202
202
|
"custom"
|
|
203
|
-
]),
|
|
203
|
+
]), _ = e.object({
|
|
204
204
|
id: e.string(),
|
|
205
205
|
alias: e.string().max(100).optional(),
|
|
206
206
|
type: e.literal("REDIRECT"),
|
|
@@ -208,31 +208,31 @@ var t = e.object({
|
|
|
208
208
|
allow_failure: e.boolean().optional(),
|
|
209
209
|
mask_output: e.boolean().optional(),
|
|
210
210
|
params: e.object({
|
|
211
|
-
target:
|
|
211
|
+
target: g.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
212
212
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
213
213
|
})
|
|
214
|
-
}),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
]),
|
|
214
|
+
}), v = e.union([
|
|
215
|
+
m,
|
|
216
|
+
h,
|
|
217
|
+
_
|
|
218
|
+
]), y = e.object({
|
|
219
219
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
220
|
-
actions: e.array(
|
|
221
|
-
}),
|
|
220
|
+
actions: e.array(v).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
221
|
+
}), _e = y.extend(t.shape).extend({ id: e.string().openapi({
|
|
222
222
|
description: "Unique identifier for the flow",
|
|
223
223
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
224
|
-
}) }),
|
|
224
|
+
}) }), ve = e.object({
|
|
225
225
|
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
226
226
|
per_page: e.string().min(1).optional().default("10").transform((e) => parseInt(e, 10)).openapi({ description: "The number of items per page" }),
|
|
227
227
|
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" }),
|
|
228
228
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
229
229
|
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
230
|
-
}),
|
|
230
|
+
}), ye = e.object({
|
|
231
231
|
start: e.number(),
|
|
232
232
|
limit: e.number(),
|
|
233
233
|
length: e.number(),
|
|
234
234
|
total: e.number().optional()
|
|
235
|
-
}),
|
|
235
|
+
}), be = e.object({
|
|
236
236
|
email: e.string().optional(),
|
|
237
237
|
email_verified: e.boolean().optional(),
|
|
238
238
|
name: e.string().optional(),
|
|
@@ -241,7 +241,7 @@ var t = e.object({
|
|
|
241
241
|
phone_number: e.string().optional(),
|
|
242
242
|
phone_verified: e.boolean().optional(),
|
|
243
243
|
family_name: e.string().optional()
|
|
244
|
-
}).catchall(e.any()),
|
|
244
|
+
}).catchall(e.any()), b = e.object({
|
|
245
245
|
connection: e.string(),
|
|
246
246
|
user_id: e.string(),
|
|
247
247
|
provider: e.string(),
|
|
@@ -254,15 +254,15 @@ var t = e.object({
|
|
|
254
254
|
access_token: e.string().optional(),
|
|
255
255
|
access_token_secret: e.string().optional(),
|
|
256
256
|
refresh_token: e.string().optional(),
|
|
257
|
-
profileData:
|
|
258
|
-
}),
|
|
257
|
+
profileData: be.optional()
|
|
258
|
+
}), x = e.object({
|
|
259
259
|
formatted: e.string().optional(),
|
|
260
260
|
street_address: e.string().optional(),
|
|
261
261
|
locality: e.string().optional(),
|
|
262
262
|
region: e.string().optional(),
|
|
263
263
|
postal_code: e.string().optional(),
|
|
264
264
|
country: e.string().optional()
|
|
265
|
-
}).optional(),
|
|
265
|
+
}).optional(), S = e.object({
|
|
266
266
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
267
267
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
268
268
|
phone_number: e.string().optional(),
|
|
@@ -285,8 +285,8 @@ var t = e.object({
|
|
|
285
285
|
gender: e.string().optional(),
|
|
286
286
|
birthdate: e.string().optional(),
|
|
287
287
|
zoneinfo: e.string().optional(),
|
|
288
|
-
address:
|
|
289
|
-
}),
|
|
288
|
+
address: x
|
|
289
|
+
}), C = S.extend({
|
|
290
290
|
email_verified: e.boolean().default(!1),
|
|
291
291
|
verify_email: e.boolean().optional(),
|
|
292
292
|
last_ip: e.string().optional(),
|
|
@@ -300,29 +300,29 @@ var t = e.object({
|
|
|
300
300
|
hash: e.string(),
|
|
301
301
|
algorithm: e.string()
|
|
302
302
|
}).optional()
|
|
303
|
-
}),
|
|
303
|
+
}), w = C.omit({ password: !0 }).extend(t.shape).extend({
|
|
304
304
|
user_id: e.string(),
|
|
305
305
|
provider: e.string(),
|
|
306
306
|
is_social: e.boolean(),
|
|
307
307
|
email: e.string().optional(),
|
|
308
308
|
login_count: e.number().default(0),
|
|
309
|
-
identities: e.array(
|
|
310
|
-
}),
|
|
309
|
+
identities: e.array(b).optional()
|
|
310
|
+
}), xe = w.omit({ registration_completed_at: !0 }), Se = S.extend({
|
|
311
311
|
login_count: e.number(),
|
|
312
312
|
multifactor: e.array(e.string()).optional(),
|
|
313
313
|
last_ip: e.string().optional(),
|
|
314
314
|
last_login: e.string().optional(),
|
|
315
315
|
user_id: e.string()
|
|
316
|
-
}).catchall(e.any()),
|
|
316
|
+
}).catchall(e.any()), Ce = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", we = (e = 21) => {
|
|
317
317
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
318
|
-
for (; e--;) t +=
|
|
318
|
+
for (; e--;) t += Ce[n[e] & 63];
|
|
319
319
|
return t;
|
|
320
|
-
},
|
|
320
|
+
}, T = e.object({
|
|
321
321
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
322
322
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
323
323
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
324
324
|
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)." }),
|
|
325
|
-
client_secret: e.string().default(() =>
|
|
325
|
+
client_secret: e.string().default(() => we()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
326
326
|
app_type: e.enum([
|
|
327
327
|
"native",
|
|
328
328
|
"spa",
|
|
@@ -429,10 +429,10 @@ var t = e.object({
|
|
|
429
429
|
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
430
430
|
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." }),
|
|
431
431
|
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." })
|
|
432
|
-
}),
|
|
432
|
+
}), Te = e.object({
|
|
433
433
|
created_at: e.string(),
|
|
434
434
|
updated_at: e.string()
|
|
435
|
-
}).extend(
|
|
435
|
+
}).extend(T.shape).extend({ client_id: e.string() }), E = e.object({
|
|
436
436
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
437
437
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
438
438
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -445,38 +445,38 @@ var t = e.object({
|
|
|
445
445
|
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." }),
|
|
446
446
|
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." }),
|
|
447
447
|
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." })
|
|
448
|
-
}),
|
|
448
|
+
}), D = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(E.shape).extend({
|
|
449
449
|
created_at: e.string().optional(),
|
|
450
450
|
updated_at: e.string().optional()
|
|
451
|
-
}),
|
|
451
|
+
}), Ee = e.array(D), O = e.enum(["iat", "rat"]), k = e.object({
|
|
452
452
|
id: e.string(),
|
|
453
453
|
token_hash: e.string(),
|
|
454
|
-
type:
|
|
454
|
+
type: O,
|
|
455
455
|
client_id: e.string().optional(),
|
|
456
456
|
sub: e.string().optional(),
|
|
457
457
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
458
458
|
single_use: e.boolean().default(!1),
|
|
459
459
|
expires_at: e.string().optional()
|
|
460
|
-
}),
|
|
460
|
+
}), De = e.object({
|
|
461
461
|
created_at: e.string(),
|
|
462
462
|
used_at: e.string().optional(),
|
|
463
463
|
revoked_at: e.string().optional()
|
|
464
|
-
}).extend(
|
|
464
|
+
}).extend(k.shape), A = e.object({
|
|
465
465
|
x: e.number(),
|
|
466
466
|
y: e.number()
|
|
467
|
-
}),
|
|
467
|
+
}), j = /* @__PURE__ */ function(e) {
|
|
468
468
|
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;
|
|
469
|
-
}({}),
|
|
469
|
+
}({}), M = /* @__PURE__ */ function(e) {
|
|
470
470
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
471
|
-
}({}),
|
|
471
|
+
}({}), N = e.object({
|
|
472
472
|
id: e.string(),
|
|
473
|
-
category: e.nativeEnum(
|
|
474
|
-
type: e.nativeEnum(
|
|
475
|
-
}),
|
|
473
|
+
category: e.nativeEnum(M),
|
|
474
|
+
type: e.nativeEnum(j)
|
|
475
|
+
}), P = N.extend({
|
|
476
476
|
category: e.literal("BLOCK"),
|
|
477
477
|
type: e.literal("RICH_TEXT"),
|
|
478
478
|
config: e.object({ content: e.string() }).passthrough()
|
|
479
|
-
}),
|
|
479
|
+
}), F = N.extend({
|
|
480
480
|
category: e.literal("BLOCK"),
|
|
481
481
|
type: e.union([
|
|
482
482
|
e.literal("NEXT_BUTTON"),
|
|
@@ -484,13 +484,13 @@ var t = e.object({
|
|
|
484
484
|
e.literal("SUBMIT_BUTTON")
|
|
485
485
|
]),
|
|
486
486
|
config: e.object({ text: e.string() }).passthrough()
|
|
487
|
-
}),
|
|
487
|
+
}), I = N.extend({
|
|
488
488
|
category: e.literal("FIELD"),
|
|
489
489
|
type: e.literal("LEGAL"),
|
|
490
490
|
required: e.boolean().optional(),
|
|
491
491
|
sensitive: e.boolean().optional(),
|
|
492
492
|
config: e.object({ text: e.string() }).passthrough()
|
|
493
|
-
}),
|
|
493
|
+
}), L = N.extend({
|
|
494
494
|
category: e.literal("FIELD"),
|
|
495
495
|
type: e.union([
|
|
496
496
|
e.literal("TEXT"),
|
|
@@ -510,40 +510,40 @@ var t = e.object({
|
|
|
510
510
|
label: e.string().optional(),
|
|
511
511
|
placeholder: e.string().optional()
|
|
512
512
|
}).passthrough()
|
|
513
|
-
}),
|
|
513
|
+
}), R = e.object({
|
|
514
514
|
id: e.string(),
|
|
515
515
|
category: e.string(),
|
|
516
516
|
type: e.string()
|
|
517
|
-
}).passthrough(),
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
]),
|
|
517
|
+
}).passthrough(), z = e.union([
|
|
518
|
+
P,
|
|
519
|
+
F,
|
|
520
|
+
I,
|
|
521
|
+
L,
|
|
522
|
+
R
|
|
523
|
+
]), Oe = /* @__PURE__ */ function(e) {
|
|
524
524
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
525
|
-
}({}),
|
|
525
|
+
}({}), B = e.object({
|
|
526
526
|
id: e.string(),
|
|
527
527
|
type: e.literal("STEP"),
|
|
528
|
-
coordinates:
|
|
528
|
+
coordinates: A,
|
|
529
529
|
alias: e.string().optional(),
|
|
530
530
|
config: e.object({
|
|
531
|
-
components: e.array(
|
|
531
|
+
components: e.array(z),
|
|
532
532
|
next_node: e.string()
|
|
533
533
|
}).passthrough()
|
|
534
|
-
}),
|
|
534
|
+
}), ke = e.object({
|
|
535
535
|
id: e.string(),
|
|
536
536
|
type: e.literal("FLOW"),
|
|
537
|
-
coordinates:
|
|
537
|
+
coordinates: A,
|
|
538
538
|
alias: e.string().optional(),
|
|
539
539
|
config: e.object({
|
|
540
540
|
flow_id: e.string(),
|
|
541
541
|
next_node: e.string()
|
|
542
542
|
})
|
|
543
|
-
}),
|
|
543
|
+
}), Ae = e.object({
|
|
544
544
|
id: e.string(),
|
|
545
545
|
type: e.literal("ACTION"),
|
|
546
|
-
coordinates:
|
|
546
|
+
coordinates: A,
|
|
547
547
|
alias: e.string().optional(),
|
|
548
548
|
config: e.object({
|
|
549
549
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -555,56 +555,56 @@ var t = e.object({
|
|
|
555
555
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
556
556
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
557
557
|
}).passthrough()
|
|
558
|
-
}),
|
|
558
|
+
}), je = e.object({
|
|
559
559
|
id: e.string(),
|
|
560
560
|
type: e.string(),
|
|
561
|
-
coordinates:
|
|
562
|
-
}).passthrough(),
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
]),
|
|
561
|
+
coordinates: A
|
|
562
|
+
}).passthrough(), Me = e.union([
|
|
563
|
+
B,
|
|
564
|
+
ke,
|
|
565
|
+
Ae,
|
|
566
|
+
je
|
|
567
|
+
]), Ne = e.object({
|
|
568
568
|
next_node: e.string(),
|
|
569
|
-
coordinates:
|
|
570
|
-
}).passthrough(),
|
|
569
|
+
coordinates: A
|
|
570
|
+
}).passthrough(), Pe = e.object({
|
|
571
571
|
resume_flow: e.boolean().optional(),
|
|
572
|
-
coordinates:
|
|
573
|
-
}).passthrough(),
|
|
572
|
+
coordinates: A
|
|
573
|
+
}).passthrough(), Fe = e.object({
|
|
574
574
|
id: e.string(),
|
|
575
575
|
name: e.string(),
|
|
576
576
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
577
|
-
nodes: e.array(
|
|
578
|
-
start:
|
|
579
|
-
ending:
|
|
577
|
+
nodes: e.array(Me),
|
|
578
|
+
start: Ne,
|
|
579
|
+
ending: Pe,
|
|
580
580
|
created_at: e.string(),
|
|
581
581
|
updated_at: e.string(),
|
|
582
582
|
links: e.object({
|
|
583
583
|
sdkSrc: e.string().optional(),
|
|
584
584
|
sdk_src: e.string().optional()
|
|
585
585
|
}).passthrough()
|
|
586
|
-
}).passthrough(),
|
|
586
|
+
}).passthrough(), Ie = Fe.omit({
|
|
587
587
|
id: !0,
|
|
588
588
|
created_at: !0,
|
|
589
589
|
updated_at: !0
|
|
590
|
-
}),
|
|
590
|
+
}), Le = /* @__PURE__ */ function(e) {
|
|
591
591
|
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;
|
|
592
|
-
}({}),
|
|
592
|
+
}({}), Re = /* @__PURE__ */ function(e) {
|
|
593
593
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
594
|
-
}({}),
|
|
594
|
+
}({}), ze = /* @__PURE__ */ function(e) {
|
|
595
595
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
596
|
-
}({}),
|
|
596
|
+
}({}), Be = e.union([e.null(), e.object({
|
|
597
597
|
essential: e.boolean().optional(),
|
|
598
598
|
value: e.unknown().optional(),
|
|
599
599
|
values: e.array(e.unknown()).optional()
|
|
600
|
-
})]).nullable(),
|
|
601
|
-
userinfo: e.record(e.string(),
|
|
602
|
-
id_token: e.record(e.string(),
|
|
603
|
-
}),
|
|
600
|
+
})]).nullable(), Ve = e.object({
|
|
601
|
+
userinfo: e.record(e.string(), Be).optional(),
|
|
602
|
+
id_token: e.record(e.string(), Be).optional()
|
|
603
|
+
}), He = e.object({
|
|
604
604
|
client_id: e.string(),
|
|
605
605
|
act_as: e.string().optional(),
|
|
606
|
-
response_type: e.nativeEnum(
|
|
607
|
-
response_mode: e.nativeEnum(
|
|
606
|
+
response_type: e.nativeEnum(Le).optional(),
|
|
607
|
+
response_mode: e.nativeEnum(Re).optional(),
|
|
608
608
|
redirect_uri: e.string().optional(),
|
|
609
609
|
audience: e.string().optional(),
|
|
610
610
|
organization: e.string().optional(),
|
|
@@ -612,15 +612,15 @@ var t = e.object({
|
|
|
612
612
|
nonce: e.string().optional(),
|
|
613
613
|
scope: e.string().optional(),
|
|
614
614
|
prompt: e.string().optional(),
|
|
615
|
-
code_challenge_method: e.nativeEnum(
|
|
615
|
+
code_challenge_method: e.nativeEnum(ze).optional(),
|
|
616
616
|
code_challenge: e.string().optional(),
|
|
617
617
|
username: e.string().optional(),
|
|
618
618
|
ui_locales: e.string().optional(),
|
|
619
619
|
max_age: e.number().optional(),
|
|
620
620
|
acr_values: e.string().optional(),
|
|
621
|
-
claims:
|
|
621
|
+
claims: Ve.optional(),
|
|
622
622
|
vendor_id: e.string().optional()
|
|
623
|
-
}),
|
|
623
|
+
}), Ue = e.object({
|
|
624
624
|
colors: e.object({
|
|
625
625
|
primary: e.string(),
|
|
626
626
|
page_background: e.union([e.string(), e.object({
|
|
@@ -639,7 +639,7 @@ var t = e.object({
|
|
|
639
639
|
"light",
|
|
640
640
|
"auto"
|
|
641
641
|
]).optional()
|
|
642
|
-
}),
|
|
642
|
+
}), We = e.enum([
|
|
643
643
|
"password_reset",
|
|
644
644
|
"email_verification",
|
|
645
645
|
"otp",
|
|
@@ -647,11 +647,11 @@ var t = e.object({
|
|
|
647
647
|
"authorization_code",
|
|
648
648
|
"oauth2_state",
|
|
649
649
|
"ticket"
|
|
650
|
-
]),
|
|
650
|
+
]), Ge = e.object({
|
|
651
651
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
652
652
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
653
653
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
654
|
-
code_type:
|
|
654
|
+
code_type: We,
|
|
655
655
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
656
656
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
657
657
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -662,7 +662,7 @@ var t = e.object({
|
|
|
662
662
|
expires_at: e.string(),
|
|
663
663
|
used_at: e.string().optional(),
|
|
664
664
|
user_id: e.string().optional()
|
|
665
|
-
}),
|
|
665
|
+
}), Ke = Ge.extend({ created_at: e.string() }), qe = e.object({
|
|
666
666
|
kid: e.string().optional(),
|
|
667
667
|
team_id: e.string().optional(),
|
|
668
668
|
realms: e.string().optional(),
|
|
@@ -778,23 +778,23 @@ var t = e.object({
|
|
|
778
778
|
"never_on_login"
|
|
779
779
|
]).optional()
|
|
780
780
|
});
|
|
781
|
-
function
|
|
781
|
+
function V(e) {
|
|
782
782
|
if (e !== null) {
|
|
783
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
783
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(V);
|
|
784
784
|
if (e && typeof e == "object") {
|
|
785
785
|
let t = {};
|
|
786
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
786
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = V(r));
|
|
787
787
|
return t;
|
|
788
788
|
}
|
|
789
789
|
return e;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
var
|
|
792
|
+
var Je = e.object({
|
|
793
793
|
id: e.string().optional(),
|
|
794
794
|
name: e.string(),
|
|
795
795
|
display_name: e.string().optional(),
|
|
796
796
|
strategy: e.string(),
|
|
797
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
797
|
+
options: e.preprocess((e) => e === null ? {} : V(e), qe).default({}),
|
|
798
798
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
799
799
|
response_type: e.custom().optional(),
|
|
800
800
|
response_mode: e.custom().optional(),
|
|
@@ -802,11 +802,11 @@ var Ye = e.object({
|
|
|
802
802
|
show_as_button: e.boolean().optional(),
|
|
803
803
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
804
804
|
is_system: e.boolean().optional()
|
|
805
|
-
}),
|
|
805
|
+
}), Ye = e.object({
|
|
806
806
|
id: e.string(),
|
|
807
807
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
808
808
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
809
|
-
}).extend(
|
|
809
|
+
}).extend(Je.shape), Xe = e.object({
|
|
810
810
|
domain: e.string(),
|
|
811
811
|
custom_domain_id: e.string().optional(),
|
|
812
812
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -820,7 +820,7 @@ var Ye = e.object({
|
|
|
820
820
|
"null"
|
|
821
821
|
]).optional(),
|
|
822
822
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
823
|
-
}),
|
|
823
|
+
}), Ze = e.discriminatedUnion("name", [e.object({
|
|
824
824
|
name: e.literal("txt"),
|
|
825
825
|
record: e.string(),
|
|
826
826
|
domain: e.string()
|
|
@@ -828,7 +828,7 @@ var Ye = e.object({
|
|
|
828
828
|
name: e.literal("http"),
|
|
829
829
|
http_body: e.string(),
|
|
830
830
|
http_url: e.string()
|
|
831
|
-
})]),
|
|
831
|
+
})]), Qe = Xe.extend({
|
|
832
832
|
custom_domain_id: e.string(),
|
|
833
833
|
primary: e.boolean(),
|
|
834
834
|
status: e.enum([
|
|
@@ -838,19 +838,22 @@ var Ye = e.object({
|
|
|
838
838
|
"ready"
|
|
839
839
|
]),
|
|
840
840
|
origin_domain_name: e.string().optional(),
|
|
841
|
-
verification: e.object({ methods: e.array(
|
|
841
|
+
verification: e.object({ methods: e.array(Ze) }).optional(),
|
|
842
842
|
tls_policy: e.string().optional()
|
|
843
|
-
}),
|
|
843
|
+
}), $e = Qe.extend({ tenant_id: e.string() }), et = e.object({
|
|
844
|
+
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
845
|
+
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
846
|
+
}), H = e.object({
|
|
844
847
|
id: e.string(),
|
|
845
848
|
order: e.number().optional(),
|
|
846
849
|
visible: e.boolean().optional().default(!0)
|
|
847
|
-
}),
|
|
850
|
+
}), U = H.extend({ category: e.literal("BLOCK").optional() }), tt = U.extend({
|
|
848
851
|
type: e.literal("DIVIDER"),
|
|
849
852
|
config: e.object({ text: e.string().optional() }).optional()
|
|
850
|
-
}), nt =
|
|
853
|
+
}), nt = U.extend({
|
|
851
854
|
type: e.literal("HTML"),
|
|
852
855
|
config: e.object({ content: e.string().optional() }).optional()
|
|
853
|
-
}), rt =
|
|
856
|
+
}), rt = U.extend({
|
|
854
857
|
type: e.literal("IMAGE"),
|
|
855
858
|
config: e.object({
|
|
856
859
|
src: e.string().optional(),
|
|
@@ -858,43 +861,43 @@ var Ye = e.object({
|
|
|
858
861
|
width: e.number().optional(),
|
|
859
862
|
height: e.number().optional()
|
|
860
863
|
}).optional()
|
|
861
|
-
}), it =
|
|
864
|
+
}), it = U.extend({
|
|
862
865
|
type: e.literal("JUMP_BUTTON"),
|
|
863
866
|
config: e.object({
|
|
864
867
|
text: e.string().optional(),
|
|
865
868
|
target_step: e.string().optional()
|
|
866
869
|
})
|
|
867
|
-
}), at =
|
|
870
|
+
}), at = U.extend({
|
|
868
871
|
type: e.literal("RESEND_BUTTON"),
|
|
869
872
|
config: e.object({
|
|
870
873
|
text: e.string().optional(),
|
|
871
874
|
resend_action: e.string().optional()
|
|
872
875
|
})
|
|
873
|
-
}), ot =
|
|
876
|
+
}), ot = U.extend({
|
|
874
877
|
type: e.literal("NEXT_BUTTON"),
|
|
875
878
|
config: e.object({ text: e.string().optional() })
|
|
876
|
-
}), st =
|
|
879
|
+
}), st = U.extend({
|
|
877
880
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
878
881
|
config: e.object({ text: e.string().optional() })
|
|
879
|
-
}), ct =
|
|
882
|
+
}), ct = U.extend({
|
|
880
883
|
type: e.literal("RICH_TEXT"),
|
|
881
884
|
config: e.object({ content: e.string().optional() }).optional()
|
|
882
|
-
}),
|
|
885
|
+
}), W = H.extend({
|
|
883
886
|
category: e.literal("WIDGET").optional(),
|
|
884
887
|
label: e.string().min(1).optional(),
|
|
885
888
|
hint: e.string().min(1).max(500).optional(),
|
|
886
889
|
required: e.boolean().optional(),
|
|
887
890
|
sensitive: e.boolean().optional()
|
|
888
|
-
}), lt =
|
|
891
|
+
}), lt = W.extend({
|
|
889
892
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
890
893
|
config: e.object({ credential_type: e.string().optional() })
|
|
891
|
-
}), ut =
|
|
894
|
+
}), ut = W.extend({
|
|
892
895
|
type: e.literal("GMAPS_ADDRESS"),
|
|
893
896
|
config: e.object({ api_key: e.string().optional() })
|
|
894
|
-
}), dt =
|
|
897
|
+
}), dt = W.extend({
|
|
895
898
|
type: e.literal("RECAPTCHA"),
|
|
896
899
|
config: e.object({ site_key: e.string().optional() })
|
|
897
|
-
}),
|
|
900
|
+
}), G = H.extend({
|
|
898
901
|
category: e.literal("FIELD").optional(),
|
|
899
902
|
label: e.string().min(1).optional(),
|
|
900
903
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -910,10 +913,10 @@ var Ye = e.object({
|
|
|
910
913
|
})).optional(),
|
|
911
914
|
required: e.boolean().optional(),
|
|
912
915
|
sensitive: e.boolean().optional()
|
|
913
|
-
}), ft =
|
|
916
|
+
}), ft = G.extend({
|
|
914
917
|
type: e.literal("BOOLEAN"),
|
|
915
918
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
916
|
-
}), pt =
|
|
919
|
+
}), pt = G.extend({
|
|
917
920
|
type: e.literal("CARDS"),
|
|
918
921
|
config: e.object({
|
|
919
922
|
options: e.array(e.object({
|
|
@@ -924,7 +927,7 @@ var Ye = e.object({
|
|
|
924
927
|
})).optional(),
|
|
925
928
|
multi_select: e.boolean().optional()
|
|
926
929
|
}).optional()
|
|
927
|
-
}), mt =
|
|
930
|
+
}), mt = G.extend({
|
|
928
931
|
type: e.literal("CHOICE"),
|
|
929
932
|
config: e.object({
|
|
930
933
|
options: e.array(e.object({
|
|
@@ -935,7 +938,7 @@ var Ye = e.object({
|
|
|
935
938
|
multiple: e.boolean().optional(),
|
|
936
939
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
937
940
|
}).optional()
|
|
938
|
-
}), ht =
|
|
941
|
+
}), ht = G.extend({
|
|
939
942
|
type: e.literal("CUSTOM"),
|
|
940
943
|
config: e.object({
|
|
941
944
|
component: e.string().optional(),
|
|
@@ -943,7 +946,7 @@ var Ye = e.object({
|
|
|
943
946
|
schema: e.record(e.string(), e.any()).optional(),
|
|
944
947
|
code: e.string().optional()
|
|
945
948
|
})
|
|
946
|
-
}), gt =
|
|
949
|
+
}), gt = G.extend({
|
|
947
950
|
type: e.literal("DATE"),
|
|
948
951
|
config: e.object({
|
|
949
952
|
format: e.string().optional(),
|
|
@@ -951,7 +954,7 @@ var Ye = e.object({
|
|
|
951
954
|
max: e.string().optional(),
|
|
952
955
|
default_value: e.string().optional()
|
|
953
956
|
}).optional()
|
|
954
|
-
}), _t =
|
|
957
|
+
}), _t = G.extend({
|
|
955
958
|
type: e.literal("DROPDOWN"),
|
|
956
959
|
config: e.object({
|
|
957
960
|
options: e.array(e.object({
|
|
@@ -963,26 +966,26 @@ var Ye = e.object({
|
|
|
963
966
|
multiple: e.boolean().optional(),
|
|
964
967
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
965
968
|
}).optional()
|
|
966
|
-
}), vt =
|
|
969
|
+
}), vt = G.extend({
|
|
967
970
|
type: e.literal("EMAIL"),
|
|
968
971
|
config: e.object({
|
|
969
972
|
placeholder: e.string().optional(),
|
|
970
973
|
default_value: e.string().optional()
|
|
971
974
|
}).optional()
|
|
972
|
-
}), yt =
|
|
975
|
+
}), yt = G.extend({
|
|
973
976
|
type: e.literal("FILE"),
|
|
974
977
|
config: e.object({
|
|
975
978
|
accept: e.string().optional(),
|
|
976
979
|
max_size: e.number().optional(),
|
|
977
980
|
multiple: e.boolean().optional()
|
|
978
981
|
}).optional()
|
|
979
|
-
}), bt =
|
|
982
|
+
}), bt = G.extend({
|
|
980
983
|
type: e.literal("LEGAL"),
|
|
981
984
|
config: e.object({
|
|
982
985
|
text: e.string(),
|
|
983
986
|
html: e.boolean().optional()
|
|
984
987
|
}).optional()
|
|
985
|
-
}), xt =
|
|
988
|
+
}), xt = G.extend({
|
|
986
989
|
type: e.literal("NUMBER"),
|
|
987
990
|
config: e.object({
|
|
988
991
|
placeholder: e.string().optional(),
|
|
@@ -991,7 +994,7 @@ var Ye = e.object({
|
|
|
991
994
|
step: e.number().optional(),
|
|
992
995
|
default_value: e.string().optional()
|
|
993
996
|
}).optional()
|
|
994
|
-
}), St =
|
|
997
|
+
}), St = G.extend({
|
|
995
998
|
type: e.literal("PASSWORD"),
|
|
996
999
|
config: e.object({
|
|
997
1000
|
placeholder: e.string().optional(),
|
|
@@ -1000,13 +1003,13 @@ var Ye = e.object({
|
|
|
1000
1003
|
forgot_password_link: e.string().optional(),
|
|
1001
1004
|
default_value: e.string().optional()
|
|
1002
1005
|
}).optional()
|
|
1003
|
-
}), Ct =
|
|
1006
|
+
}), Ct = G.extend({
|
|
1004
1007
|
type: e.literal("PAYMENT"),
|
|
1005
1008
|
config: e.object({
|
|
1006
1009
|
provider: e.string().optional(),
|
|
1007
1010
|
currency: e.string().optional()
|
|
1008
1011
|
}).optional()
|
|
1009
|
-
}), wt =
|
|
1012
|
+
}), wt = G.extend({
|
|
1010
1013
|
type: e.literal("SOCIAL"),
|
|
1011
1014
|
config: e.object({
|
|
1012
1015
|
providers: e.array(e.string()).optional(),
|
|
@@ -1018,7 +1021,7 @@ var Ye = e.object({
|
|
|
1018
1021
|
href: e.string().optional()
|
|
1019
1022
|
})).optional()
|
|
1020
1023
|
}).optional()
|
|
1021
|
-
}), Tt =
|
|
1024
|
+
}), Tt = G.extend({
|
|
1022
1025
|
type: e.literal("TEL"),
|
|
1023
1026
|
config: e.object({
|
|
1024
1027
|
placeholder: e.string().optional(),
|
|
@@ -1026,7 +1029,7 @@ var Ye = e.object({
|
|
|
1026
1029
|
default_value: e.string().optional(),
|
|
1027
1030
|
allow_email: e.boolean().optional()
|
|
1028
1031
|
}).optional()
|
|
1029
|
-
}), Et =
|
|
1032
|
+
}), Et = G.extend({
|
|
1030
1033
|
type: e.literal("TEXT"),
|
|
1031
1034
|
config: e.object({
|
|
1032
1035
|
placeholder: e.string().optional(),
|
|
@@ -1034,13 +1037,13 @@ var Ye = e.object({
|
|
|
1034
1037
|
max_length: e.number().optional(),
|
|
1035
1038
|
default_value: e.string().optional()
|
|
1036
1039
|
}).optional()
|
|
1037
|
-
}), Dt =
|
|
1040
|
+
}), Dt = G.extend({
|
|
1038
1041
|
type: e.literal("COUNTRY"),
|
|
1039
1042
|
config: e.object({
|
|
1040
1043
|
placeholder: e.string().optional(),
|
|
1041
1044
|
default_value: e.string().optional()
|
|
1042
1045
|
}).optional()
|
|
1043
|
-
}), Ot =
|
|
1046
|
+
}), Ot = G.extend({
|
|
1044
1047
|
type: e.literal("URL"),
|
|
1045
1048
|
config: e.object({
|
|
1046
1049
|
placeholder: e.string().optional(),
|
|
@@ -1077,7 +1080,7 @@ var Ye = e.object({
|
|
|
1077
1080
|
Tt,
|
|
1078
1081
|
Et,
|
|
1079
1082
|
Ot
|
|
1080
|
-
]),
|
|
1083
|
+
]), K = e.union([
|
|
1081
1084
|
kt,
|
|
1082
1085
|
At,
|
|
1083
1086
|
jt
|
|
@@ -1104,13 +1107,13 @@ var Ye = e.object({
|
|
|
1104
1107
|
order: e.number().optional(),
|
|
1105
1108
|
visible: e.boolean().optional().default(!0),
|
|
1106
1109
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1107
|
-
}),
|
|
1110
|
+
}), q = e.object({
|
|
1108
1111
|
x: e.number(),
|
|
1109
1112
|
y: e.number()
|
|
1110
1113
|
}), Pt = e.object({
|
|
1111
1114
|
id: e.string(),
|
|
1112
1115
|
type: e.literal("FLOW"),
|
|
1113
|
-
coordinates:
|
|
1116
|
+
coordinates: q,
|
|
1114
1117
|
alias: e.string().min(1).max(150).optional(),
|
|
1115
1118
|
config: e.object({
|
|
1116
1119
|
flow_id: e.string().max(30),
|
|
@@ -1119,7 +1122,7 @@ var Ye = e.object({
|
|
|
1119
1122
|
}), Ft = e.object({
|
|
1120
1123
|
id: e.string(),
|
|
1121
1124
|
type: e.literal("ROUTER"),
|
|
1122
|
-
coordinates:
|
|
1125
|
+
coordinates: q,
|
|
1123
1126
|
alias: e.string().min(1).max(150),
|
|
1124
1127
|
config: e.object({
|
|
1125
1128
|
rules: e.array(e.object({
|
|
@@ -1133,10 +1136,10 @@ var Ye = e.object({
|
|
|
1133
1136
|
}), It = e.object({
|
|
1134
1137
|
id: e.string(),
|
|
1135
1138
|
type: e.literal("STEP"),
|
|
1136
|
-
coordinates:
|
|
1139
|
+
coordinates: q,
|
|
1137
1140
|
alias: e.string().min(1).max(150).optional(),
|
|
1138
1141
|
config: e.object({
|
|
1139
|
-
components: e.array(
|
|
1142
|
+
components: e.array(K),
|
|
1140
1143
|
next_node: e.string().optional()
|
|
1141
1144
|
})
|
|
1142
1145
|
}), Lt = e.discriminatedUnion("type", [
|
|
@@ -1161,7 +1164,7 @@ var Ye = e.object({
|
|
|
1161
1164
|
value: e.string()
|
|
1162
1165
|
})).optional(),
|
|
1163
1166
|
next_node: e.string().optional(),
|
|
1164
|
-
coordinates:
|
|
1167
|
+
coordinates: q.optional()
|
|
1165
1168
|
}).optional(),
|
|
1166
1169
|
ending: e.object({
|
|
1167
1170
|
redirection: e.object({
|
|
@@ -1169,7 +1172,7 @@ var Ye = e.object({
|
|
|
1169
1172
|
target: e.string().optional()
|
|
1170
1173
|
}).optional(),
|
|
1171
1174
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1172
|
-
coordinates:
|
|
1175
|
+
coordinates: q.optional(),
|
|
1173
1176
|
resume_flow: e.boolean().optional()
|
|
1174
1177
|
}).optional(),
|
|
1175
1178
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1197,7 +1200,7 @@ var Ye = e.object({
|
|
|
1197
1200
|
method: e.enum(["POST", "GET"]),
|
|
1198
1201
|
title: e.string().optional(),
|
|
1199
1202
|
description: e.string().optional(),
|
|
1200
|
-
components: e.array(
|
|
1203
|
+
components: e.array(K),
|
|
1201
1204
|
messages: e.array(Bt).optional(),
|
|
1202
1205
|
links: e.array(Vt).optional(),
|
|
1203
1206
|
footer: e.string().optional()
|
|
@@ -1238,7 +1241,7 @@ var Kt = e.enum([
|
|
|
1238
1241
|
"credentials-exchange",
|
|
1239
1242
|
"pre-user-registration",
|
|
1240
1243
|
"post-user-registration"
|
|
1241
|
-
]),
|
|
1244
|
+
]), J = e.enum([
|
|
1242
1245
|
"ensure-username",
|
|
1243
1246
|
"set-preferred-username",
|
|
1244
1247
|
"account-linking"
|
|
@@ -1262,26 +1265,26 @@ var Kt = e.enum([
|
|
|
1262
1265
|
"post-user-update"
|
|
1263
1266
|
]
|
|
1264
1267
|
}
|
|
1265
|
-
},
|
|
1268
|
+
}, Y = {
|
|
1266
1269
|
enabled: e.boolean().default(!1),
|
|
1267
1270
|
synchronous: e.boolean().default(!1),
|
|
1268
1271
|
priority: e.number().optional(),
|
|
1269
1272
|
hook_id: e.string().optional(),
|
|
1270
1273
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1271
1274
|
}, Zt = e.object({
|
|
1272
|
-
...
|
|
1275
|
+
...Y,
|
|
1273
1276
|
trigger_id: Kt,
|
|
1274
1277
|
url: e.string()
|
|
1275
1278
|
}), Qt = e.object({
|
|
1276
|
-
...
|
|
1279
|
+
...Y,
|
|
1277
1280
|
trigger_id: qt,
|
|
1278
1281
|
form_id: e.string()
|
|
1279
1282
|
}), $t = e.object({
|
|
1280
|
-
...
|
|
1283
|
+
...Y,
|
|
1281
1284
|
trigger_id: Jt,
|
|
1282
|
-
template_id:
|
|
1285
|
+
template_id: J
|
|
1283
1286
|
}), en = e.object({
|
|
1284
|
-
...
|
|
1287
|
+
...Y,
|
|
1285
1288
|
trigger_id: Yt,
|
|
1286
1289
|
code_id: e.string()
|
|
1287
1290
|
}), tn = e.union([
|
|
@@ -1290,25 +1293,25 @@ var Kt = e.enum([
|
|
|
1290
1293
|
$t,
|
|
1291
1294
|
en
|
|
1292
1295
|
]), nn = e.object({
|
|
1293
|
-
...
|
|
1296
|
+
...Y,
|
|
1294
1297
|
trigger_id: Kt
|
|
1295
1298
|
}).extend(t.shape).extend({
|
|
1296
1299
|
hook_id: e.string(),
|
|
1297
1300
|
url: e.string()
|
|
1298
1301
|
}), rn = e.object({
|
|
1299
|
-
...
|
|
1302
|
+
...Y,
|
|
1300
1303
|
trigger_id: qt
|
|
1301
1304
|
}).extend(t.shape).extend({
|
|
1302
1305
|
hook_id: e.string(),
|
|
1303
1306
|
form_id: e.string()
|
|
1304
1307
|
}), an = e.object({
|
|
1305
|
-
...
|
|
1308
|
+
...Y,
|
|
1306
1309
|
trigger_id: Jt
|
|
1307
1310
|
}).extend(t.shape).extend({
|
|
1308
1311
|
hook_id: e.string(),
|
|
1309
|
-
template_id:
|
|
1312
|
+
template_id: J
|
|
1310
1313
|
}), on = e.object({
|
|
1311
|
-
...
|
|
1314
|
+
...Y,
|
|
1312
1315
|
trigger_id: Yt
|
|
1313
1316
|
}).extend(t.shape).extend({
|
|
1314
1317
|
hook_id: e.string(),
|
|
@@ -1324,7 +1327,7 @@ var Kt = e.enum([
|
|
|
1324
1327
|
}), ln = cn.extend({
|
|
1325
1328
|
id: e.string(),
|
|
1326
1329
|
tenant_id: e.string()
|
|
1327
|
-
}).extend(t.shape), un = e.object({ name: e.string().optional() }), dn = e.object({ email: e.string().optional() }),
|
|
1330
|
+
}).extend(t.shape), un = e.object({ name: e.string().optional() }), dn = e.object({ email: e.string().optional() }), fn = e.object({
|
|
1328
1331
|
id: e.string().optional(),
|
|
1329
1332
|
organization_id: e.string().max(50),
|
|
1330
1333
|
inviter: un,
|
|
@@ -1337,13 +1340,13 @@ var Kt = e.enum([
|
|
|
1337
1340
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1338
1341
|
roles: e.array(e.string()).default([]).optional(),
|
|
1339
1342
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1340
|
-
}),
|
|
1343
|
+
}), pn = e.object({
|
|
1341
1344
|
id: e.string(),
|
|
1342
1345
|
organization_id: e.string().max(50),
|
|
1343
1346
|
created_at: e.string().datetime(),
|
|
1344
1347
|
expires_at: e.string().datetime(),
|
|
1345
1348
|
ticket_id: e.string().optional()
|
|
1346
|
-
}).extend(
|
|
1349
|
+
}).extend(fn.omit({ id: !0 }).shape), mn = e.object({
|
|
1347
1350
|
alg: e.enum([
|
|
1348
1351
|
"RS256",
|
|
1349
1352
|
"RS384",
|
|
@@ -1384,7 +1387,7 @@ var Kt = e.enum([
|
|
|
1384
1387
|
path: [r],
|
|
1385
1388
|
message: `EC JWK is missing required member '${r}'`
|
|
1386
1389
|
});
|
|
1387
|
-
}),
|
|
1390
|
+
}), hn = e.object({ keys: e.array(mn) }), gn = e.object({
|
|
1388
1391
|
issuer: e.string(),
|
|
1389
1392
|
authorization_endpoint: e.string(),
|
|
1390
1393
|
token_endpoint: e.string(),
|
|
@@ -1408,29 +1411,29 @@ var Kt = e.enum([
|
|
|
1408
1411
|
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
1409
1412
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string()),
|
|
1410
1413
|
client_id_metadata_document_supported: e.boolean().optional()
|
|
1411
|
-
}),
|
|
1414
|
+
}), _n = /* @__PURE__ */ function(e) {
|
|
1412
1415
|
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.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1413
|
-
}({}),
|
|
1416
|
+
}({}), vn = e.nativeEnum(_n), yn = e.object({
|
|
1414
1417
|
strategy: e.string(),
|
|
1415
1418
|
strategy_type: e.string()
|
|
1416
|
-
}),
|
|
1419
|
+
}), bn = e.object({
|
|
1417
1420
|
csrf_token: e.string(),
|
|
1418
1421
|
auth0Client: e.string().optional(),
|
|
1419
|
-
authParams:
|
|
1422
|
+
authParams: He,
|
|
1420
1423
|
expires_at: e.string(),
|
|
1421
1424
|
deleted_at: e.string().optional(),
|
|
1422
1425
|
ip: e.string().optional(),
|
|
1423
1426
|
useragent: e.string().optional(),
|
|
1424
1427
|
session_id: e.string().optional(),
|
|
1425
1428
|
authorization_url: e.string().optional(),
|
|
1426
|
-
state:
|
|
1429
|
+
state: vn.optional().default("pending"),
|
|
1427
1430
|
state_data: e.string().optional(),
|
|
1428
1431
|
failure_reason: e.string().optional(),
|
|
1429
1432
|
user_id: e.string().optional(),
|
|
1430
1433
|
auth_connection: e.string().optional(),
|
|
1431
|
-
auth_strategy:
|
|
1434
|
+
auth_strategy: yn.optional(),
|
|
1432
1435
|
authenticated_at: e.string().optional()
|
|
1433
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1436
|
+
}).openapi({ description: "This represents a login sesion" }), xn = bn.extend({
|
|
1434
1437
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1435
1438
|
created_at: e.string(),
|
|
1436
1439
|
updated_at: e.string()
|
|
@@ -1592,7 +1595,7 @@ var Kt = e.enum([
|
|
|
1592
1595
|
WARNING_DURING_LOGIN: "w",
|
|
1593
1596
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1594
1597
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1595
|
-
},
|
|
1598
|
+
}, Sn = e.string().refine((e) => Object.values(X).includes(e), { message: "Invalid log type" }), Cn = {
|
|
1596
1599
|
[X.ACLS_SUMMARY]: "ACLs Summary",
|
|
1597
1600
|
[X.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1598
1601
|
[X.API_LIMIT]: "API Rate Limit Reached",
|
|
@@ -1750,30 +1753,30 @@ var Kt = e.enum([
|
|
|
1750
1753
|
[X.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1751
1754
|
[X.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1752
1755
|
[X.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1753
|
-
},
|
|
1756
|
+
}, wn = (() => {
|
|
1754
1757
|
let e = {};
|
|
1755
1758
|
for (let [t, n] of Object.entries(X)) 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";
|
|
1756
1759
|
return e;
|
|
1757
1760
|
})();
|
|
1758
|
-
function wn(e) {
|
|
1759
|
-
return Sn[e] ?? e;
|
|
1760
|
-
}
|
|
1761
1761
|
function Tn(e) {
|
|
1762
|
-
return Cn[e] ??
|
|
1762
|
+
return Cn[e] ?? e;
|
|
1763
|
+
}
|
|
1764
|
+
function En(e) {
|
|
1765
|
+
return wn[e] ?? "other";
|
|
1763
1766
|
}
|
|
1764
|
-
var
|
|
1767
|
+
var Dn = e.object({
|
|
1765
1768
|
name: e.string(),
|
|
1766
1769
|
version: e.string(),
|
|
1767
1770
|
env: e.object({ node: e.string().optional() }).optional()
|
|
1768
|
-
}),
|
|
1771
|
+
}), On = e.object({
|
|
1769
1772
|
country_code: e.string().length(2),
|
|
1770
1773
|
city_name: e.string(),
|
|
1771
1774
|
latitude: e.string(),
|
|
1772
1775
|
longitude: e.string(),
|
|
1773
1776
|
time_zone: e.string(),
|
|
1774
1777
|
continent_code: e.string()
|
|
1775
|
-
}),
|
|
1776
|
-
type:
|
|
1778
|
+
}), kn = e.object({
|
|
1779
|
+
type: Sn,
|
|
1777
1780
|
date: e.string(),
|
|
1778
1781
|
description: e.string().optional(),
|
|
1779
1782
|
ip: e.string().optional(),
|
|
@@ -1791,10 +1794,10 @@ var En = e.object({
|
|
|
1791
1794
|
strategy: e.string().optional(),
|
|
1792
1795
|
strategy_type: e.string().optional(),
|
|
1793
1796
|
hostname: e.string().optional(),
|
|
1794
|
-
auth0_client:
|
|
1797
|
+
auth0_client: Dn.optional(),
|
|
1795
1798
|
log_id: e.string().optional(),
|
|
1796
|
-
location_info:
|
|
1797
|
-
}),
|
|
1799
|
+
location_info: On.optional()
|
|
1800
|
+
}), An = kn.extend({ log_id: e.string() }), jn = e.enum([
|
|
1798
1801
|
"http",
|
|
1799
1802
|
"eventbridge",
|
|
1800
1803
|
"eventgrid",
|
|
@@ -1805,44 +1808,44 @@ var En = e.object({
|
|
|
1805
1808
|
"active",
|
|
1806
1809
|
"paused",
|
|
1807
1810
|
"suspended"
|
|
1808
|
-
]),
|
|
1811
|
+
]), Mn = e.object({
|
|
1809
1812
|
type: e.string(),
|
|
1810
1813
|
name: e.string()
|
|
1811
|
-
}),
|
|
1814
|
+
}), Nn = e.object({
|
|
1812
1815
|
name: e.string(),
|
|
1813
|
-
type:
|
|
1816
|
+
type: jn,
|
|
1814
1817
|
status: Z.optional(),
|
|
1815
1818
|
sink: e.record(e.string(), e.unknown()),
|
|
1816
|
-
filters: e.array(
|
|
1819
|
+
filters: e.array(Mn).optional(),
|
|
1817
1820
|
isPriority: e.boolean().optional()
|
|
1818
|
-
}),
|
|
1821
|
+
}), Pn = Nn.extend({
|
|
1819
1822
|
id: e.string(),
|
|
1820
1823
|
status: Z,
|
|
1821
1824
|
created_at: e.string().optional(),
|
|
1822
1825
|
updated_at: e.string().optional()
|
|
1823
|
-
}),
|
|
1826
|
+
}), Fn = e.enum([
|
|
1824
1827
|
"auth0",
|
|
1825
1828
|
"cognito",
|
|
1826
1829
|
"okta",
|
|
1827
1830
|
"oidc"
|
|
1828
|
-
]),
|
|
1831
|
+
]), In = e.object({
|
|
1829
1832
|
domain: e.string(),
|
|
1830
1833
|
client_id: e.string(),
|
|
1831
1834
|
client_secret: e.string(),
|
|
1832
1835
|
audience: e.string().optional(),
|
|
1833
1836
|
scope: e.string().optional()
|
|
1834
|
-
}),
|
|
1837
|
+
}), Ln = e.object({
|
|
1835
1838
|
id: e.string().optional(),
|
|
1836
1839
|
name: e.string(),
|
|
1837
|
-
provider:
|
|
1840
|
+
provider: Fn,
|
|
1838
1841
|
connection: e.string(),
|
|
1839
1842
|
enabled: e.boolean().default(!0),
|
|
1840
|
-
credentials:
|
|
1841
|
-
}),
|
|
1843
|
+
credentials: In
|
|
1844
|
+
}), Rn = e.object({
|
|
1842
1845
|
id: e.string(),
|
|
1843
1846
|
created_at: e.string(),
|
|
1844
1847
|
updated_at: e.string()
|
|
1845
|
-
}).extend(
|
|
1848
|
+
}).extend(Ln.shape), zn = e.object({
|
|
1846
1849
|
enabled: e.boolean().optional(),
|
|
1847
1850
|
shields: e.array(e.string()).optional(),
|
|
1848
1851
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1851,13 +1854,13 @@ var En = e.object({
|
|
|
1851
1854
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
1852
1855
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
1853
1856
|
}).optional()
|
|
1854
|
-
}),
|
|
1857
|
+
}), Bn = e.object({
|
|
1855
1858
|
enabled: e.boolean().optional(),
|
|
1856
1859
|
shields: e.array(e.string()).optional(),
|
|
1857
1860
|
allowlist: e.array(e.string()).optional(),
|
|
1858
1861
|
mode: e.string().optional(),
|
|
1859
1862
|
max_attempts: e.number().optional()
|
|
1860
|
-
}),
|
|
1863
|
+
}), Vn = e.object({
|
|
1861
1864
|
enabled: e.boolean().optional(),
|
|
1862
1865
|
shields: e.array(e.string()).optional(),
|
|
1863
1866
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1871,28 +1874,28 @@ var En = e.object({
|
|
|
1871
1874
|
rate: e.number().optional()
|
|
1872
1875
|
}).optional()
|
|
1873
1876
|
}).optional()
|
|
1874
|
-
}), Vn = e.object({
|
|
1875
|
-
breached_password_detection: Rn.optional(),
|
|
1876
|
-
brute_force_protection: zn.optional(),
|
|
1877
|
-
suspicious_ip_throttling: Bn.optional()
|
|
1878
1877
|
}), Hn = e.object({
|
|
1878
|
+
breached_password_detection: zn.optional(),
|
|
1879
|
+
brute_force_protection: Bn.optional(),
|
|
1880
|
+
suspicious_ip_throttling: Vn.optional()
|
|
1881
|
+
}), Un = e.object({
|
|
1879
1882
|
id: e.string().optional(),
|
|
1880
1883
|
user_id: e.string(),
|
|
1881
1884
|
password: e.string(),
|
|
1882
1885
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1883
1886
|
is_current: e.boolean().default(!0)
|
|
1884
|
-
}),
|
|
1887
|
+
}), Wn = Un.extend({
|
|
1885
1888
|
id: e.string(),
|
|
1886
1889
|
created_at: e.string(),
|
|
1887
1890
|
updated_at: e.string()
|
|
1888
|
-
}),
|
|
1891
|
+
}), Gn = e.object({
|
|
1889
1892
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1890
1893
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1891
1894
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1892
1895
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1893
1896
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1894
1897
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1895
|
-
}),
|
|
1898
|
+
}), Kn = e.object({
|
|
1896
1899
|
id: e.string(),
|
|
1897
1900
|
revoked_at: e.string().optional(),
|
|
1898
1901
|
used_at: e.string().optional(),
|
|
@@ -1900,14 +1903,14 @@ var En = e.object({
|
|
|
1900
1903
|
expires_at: e.string().optional(),
|
|
1901
1904
|
login_session_id: e.string(),
|
|
1902
1905
|
idle_expires_at: e.string().optional(),
|
|
1903
|
-
device:
|
|
1906
|
+
device: Gn.describe("Metadata related to the device used in the session"),
|
|
1904
1907
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1905
|
-
}),
|
|
1908
|
+
}), qn = e.object({
|
|
1906
1909
|
created_at: e.string(),
|
|
1907
1910
|
updated_at: e.string(),
|
|
1908
1911
|
authenticated_at: e.string(),
|
|
1909
1912
|
last_interaction_at: e.string()
|
|
1910
|
-
}).extend(
|
|
1913
|
+
}).extend(Kn.shape), Jn = e.object({
|
|
1911
1914
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1912
1915
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
1913
1916
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -1923,7 +1926,7 @@ var En = e.object({
|
|
|
1923
1926
|
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
1924
1927
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
1925
1928
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
1926
|
-
}),
|
|
1929
|
+
}), Yn = e.object({
|
|
1927
1930
|
id: e.string().optional(),
|
|
1928
1931
|
audience: e.string(),
|
|
1929
1932
|
friendly_name: e.string(),
|
|
@@ -2023,7 +2026,7 @@ var En = e.object({
|
|
|
2023
2026
|
mtls: e.object({ enable_endpoint_aliases: e.boolean().optional() }).nullish(),
|
|
2024
2027
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
2025
2028
|
authorization_response_iss_parameter_supported: e.boolean().optional(),
|
|
2026
|
-
attack_protection:
|
|
2029
|
+
attack_protection: Hn.optional(),
|
|
2027
2030
|
mfa: e.object({
|
|
2028
2031
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
2029
2032
|
factors: e.object({
|
|
@@ -2050,15 +2053,15 @@ var En = e.object({
|
|
|
2050
2053
|
}).optional(),
|
|
2051
2054
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2052
2055
|
}).optional()
|
|
2053
|
-
}),
|
|
2056
|
+
}), Xn = e.object({
|
|
2054
2057
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
2055
2058
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
2056
|
-
}).extend(
|
|
2059
|
+
}).extend(Yn.shape).extend({
|
|
2057
2060
|
id: e.string(),
|
|
2058
2061
|
is_control_plane: e.boolean().optional()
|
|
2059
|
-
}),
|
|
2062
|
+
}), Zn = /* @__PURE__ */ function(e) {
|
|
2060
2063
|
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;
|
|
2061
|
-
}({}),
|
|
2064
|
+
}({}), Qn = e.object({
|
|
2062
2065
|
access_token: e.string(),
|
|
2063
2066
|
id_token: e.string().optional(),
|
|
2064
2067
|
scope: e.string().optional(),
|
|
@@ -2073,7 +2076,7 @@ e.object({
|
|
|
2073
2076
|
});
|
|
2074
2077
|
//#endregion
|
|
2075
2078
|
//#region src/types/Theme.ts
|
|
2076
|
-
var
|
|
2079
|
+
var $n = e.object({
|
|
2077
2080
|
button_border_radius: e.number(),
|
|
2078
2081
|
button_border_weight: e.number(),
|
|
2079
2082
|
buttons_style: e.enum([
|
|
@@ -2091,7 +2094,7 @@ var Qn = e.object({
|
|
|
2091
2094
|
show_widget_shadow: e.boolean(),
|
|
2092
2095
|
widget_border_weight: e.number(),
|
|
2093
2096
|
widget_corner_radius: e.number()
|
|
2094
|
-
}),
|
|
2097
|
+
}), er = e.object({
|
|
2095
2098
|
base_focus_color: e.string(),
|
|
2096
2099
|
base_hover_color: e.string(),
|
|
2097
2100
|
body_text: e.string(),
|
|
@@ -2118,7 +2121,7 @@ var Qn = e.object({
|
|
|
2118
2121
|
}), Q = e.object({
|
|
2119
2122
|
bold: e.boolean(),
|
|
2120
2123
|
size: e.number()
|
|
2121
|
-
}),
|
|
2124
|
+
}), tr = e.object({
|
|
2122
2125
|
body_text: Q,
|
|
2123
2126
|
buttons_text: Q,
|
|
2124
2127
|
font_url: e.string(),
|
|
@@ -2128,7 +2131,7 @@ var Qn = e.object({
|
|
|
2128
2131
|
reference_text_size: e.number(),
|
|
2129
2132
|
subtitle: Q,
|
|
2130
2133
|
title: Q
|
|
2131
|
-
}),
|
|
2134
|
+
}), nr = e.object({
|
|
2132
2135
|
background_color: e.string(),
|
|
2133
2136
|
background_image_url: e.string(),
|
|
2134
2137
|
page_layout: e.enum([
|
|
@@ -2141,7 +2144,7 @@ var Qn = e.object({
|
|
|
2141
2144
|
"chip",
|
|
2142
2145
|
"none"
|
|
2143
2146
|
]).optional()
|
|
2144
|
-
}),
|
|
2147
|
+
}), rr = e.object({
|
|
2145
2148
|
header_text_alignment: e.enum([
|
|
2146
2149
|
"center",
|
|
2147
2150
|
"left",
|
|
@@ -2156,44 +2159,44 @@ var Qn = e.object({
|
|
|
2156
2159
|
]),
|
|
2157
2160
|
logo_url: e.string(),
|
|
2158
2161
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2159
|
-
}),
|
|
2160
|
-
borders:
|
|
2161
|
-
colors:
|
|
2162
|
+
}), ir = e.object({
|
|
2163
|
+
borders: $n,
|
|
2164
|
+
colors: er,
|
|
2162
2165
|
displayName: e.string(),
|
|
2163
|
-
fonts:
|
|
2164
|
-
page_background:
|
|
2165
|
-
widget:
|
|
2166
|
-
}),
|
|
2166
|
+
fonts: tr,
|
|
2167
|
+
page_background: nr,
|
|
2168
|
+
widget: rr
|
|
2169
|
+
}), ar = ir.extend({ themeId: e.string() }), or = e.object({
|
|
2167
2170
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2168
2171
|
identifier_first: e.boolean().default(!0),
|
|
2169
2172
|
password_first: e.boolean().default(!1),
|
|
2170
2173
|
webauthn_platform_first_factor: e.boolean()
|
|
2171
|
-
}),
|
|
2174
|
+
}), sr = e.object({
|
|
2172
2175
|
hosts: e.array(e.string()).optional(),
|
|
2173
2176
|
methods: e.array(e.string()).optional(),
|
|
2174
2177
|
path: e.string().default("/*"),
|
|
2175
2178
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2176
2179
|
query: e.record(e.string(), e.string()).optional()
|
|
2177
|
-
}),
|
|
2180
|
+
}), cr = e.object({
|
|
2178
2181
|
type: e.string(),
|
|
2179
2182
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2180
2183
|
}), $ = e.object({
|
|
2181
2184
|
custom_domain_id: e.string(),
|
|
2182
2185
|
priority: e.number().int().default(100),
|
|
2183
|
-
match:
|
|
2184
|
-
handlers: e.array(
|
|
2185
|
-
}),
|
|
2186
|
+
match: sr,
|
|
2187
|
+
handlers: e.array(cr).min(1)
|
|
2188
|
+
}), lr = $.extend({
|
|
2186
2189
|
id: e.string(),
|
|
2187
2190
|
tenant_id: e.string(),
|
|
2188
2191
|
created_at: e.string(),
|
|
2189
2192
|
updated_at: e.string()
|
|
2190
|
-
}),
|
|
2193
|
+
}), ur = $.partial().omit({ custom_domain_id: !0 }), dr = e.object({
|
|
2191
2194
|
name: e.string(),
|
|
2192
2195
|
enabled: e.boolean().optional().default(!0),
|
|
2193
2196
|
default_from_address: e.string().optional(),
|
|
2194
2197
|
credentials: e.record(e.string(), e.unknown()),
|
|
2195
2198
|
settings: e.object({}).optional()
|
|
2196
|
-
}),
|
|
2199
|
+
}), fr = e.enum([
|
|
2197
2200
|
"verify_email",
|
|
2198
2201
|
"verify_email_by_code",
|
|
2199
2202
|
"reset_email",
|
|
@@ -2206,8 +2209,8 @@ var Qn = e.object({
|
|
|
2206
2209
|
"change_password",
|
|
2207
2210
|
"password_reset",
|
|
2208
2211
|
"user_invitation"
|
|
2209
|
-
]),
|
|
2210
|
-
template:
|
|
2212
|
+
]), pr = e.object({
|
|
2213
|
+
template: fr,
|
|
2211
2214
|
body: e.string(),
|
|
2212
2215
|
from: e.string(),
|
|
2213
2216
|
subject: e.string(),
|
|
@@ -2216,7 +2219,7 @@ var Qn = e.object({
|
|
|
2216
2219
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2217
2220
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2218
2221
|
enabled: e.boolean().default(!0)
|
|
2219
|
-
}),
|
|
2222
|
+
}), mr = e.object({
|
|
2220
2223
|
id: e.string(),
|
|
2221
2224
|
login_id: e.string(),
|
|
2222
2225
|
user_id: e.string(),
|
|
@@ -2224,7 +2227,7 @@ var Qn = e.object({
|
|
|
2224
2227
|
expires_at: e.string().optional(),
|
|
2225
2228
|
idle_expires_at: e.string().optional(),
|
|
2226
2229
|
last_exchanged_at: e.string().optional(),
|
|
2227
|
-
device:
|
|
2230
|
+
device: Gn,
|
|
2228
2231
|
resource_servers: e.array(e.object({
|
|
2229
2232
|
audience: e.string(),
|
|
2230
2233
|
scopes: e.string()
|
|
@@ -2235,19 +2238,19 @@ var Qn = e.object({
|
|
|
2235
2238
|
family_id: e.string().optional(),
|
|
2236
2239
|
rotated_to: e.string().optional(),
|
|
2237
2240
|
rotated_at: e.string().optional()
|
|
2238
|
-
}),
|
|
2241
|
+
}), hr = mr.extend({
|
|
2239
2242
|
created_at: e.string(),
|
|
2240
2243
|
revoked_at: e.string().optional()
|
|
2241
|
-
}),
|
|
2244
|
+
}), gr = e.object({
|
|
2242
2245
|
to: e.string(),
|
|
2243
2246
|
message: e.string()
|
|
2244
|
-
}),
|
|
2247
|
+
}), _r = e.object({
|
|
2245
2248
|
name: e.string(),
|
|
2246
2249
|
options: e.object({})
|
|
2247
|
-
}),
|
|
2250
|
+
}), vr = e.object({
|
|
2248
2251
|
value: e.string(),
|
|
2249
2252
|
description: e.string().optional()
|
|
2250
|
-
}),
|
|
2253
|
+
}), yr = e.object({
|
|
2251
2254
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2252
2255
|
enforce_policies: e.boolean().optional(),
|
|
2253
2256
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2255,11 +2258,11 @@ var Qn = e.object({
|
|
|
2255
2258
|
persist_client_authorization: e.boolean().optional(),
|
|
2256
2259
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2257
2260
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2258
|
-
}),
|
|
2261
|
+
}), br = e.object({
|
|
2259
2262
|
id: e.string().optional(),
|
|
2260
2263
|
name: e.string(),
|
|
2261
2264
|
identifier: e.string(),
|
|
2262
|
-
scopes: e.array(
|
|
2265
|
+
scopes: e.array(vr).optional(),
|
|
2263
2266
|
signing_alg: e.string().optional(),
|
|
2264
2267
|
signing_secret: e.string().optional(),
|
|
2265
2268
|
token_lifetime: e.number().default(86400),
|
|
@@ -2267,25 +2270,25 @@ var Qn = e.object({
|
|
|
2267
2270
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2268
2271
|
allow_offline_access: e.boolean().optional(),
|
|
2269
2272
|
verificationKey: e.string().optional(),
|
|
2270
|
-
options:
|
|
2273
|
+
options: yr.optional(),
|
|
2271
2274
|
is_system: e.boolean().optional(),
|
|
2272
2275
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2273
|
-
}),
|
|
2276
|
+
}), xr = br.extend({
|
|
2274
2277
|
created_at: e.string().optional(),
|
|
2275
2278
|
updated_at: e.string().optional()
|
|
2276
|
-
}),
|
|
2279
|
+
}), Sr = e.array(xr), Cr = e.object({
|
|
2277
2280
|
role_id: e.string(),
|
|
2278
2281
|
resource_server_identifier: e.string(),
|
|
2279
2282
|
permission_name: e.string()
|
|
2280
|
-
}),
|
|
2283
|
+
}), wr = Cr.extend({ created_at: e.string() }), Tr = e.array(wr), Er = e.object({
|
|
2281
2284
|
user_id: e.string(),
|
|
2282
2285
|
resource_server_identifier: e.string(),
|
|
2283
2286
|
permission_name: e.string(),
|
|
2284
2287
|
organization_id: e.string().optional()
|
|
2285
|
-
}),
|
|
2288
|
+
}), Dr = Er.extend({
|
|
2286
2289
|
tenant_id: e.string(),
|
|
2287
2290
|
created_at: e.string().optional()
|
|
2288
|
-
}),
|
|
2291
|
+
}), Or = e.array(Dr), kr = e.object({
|
|
2289
2292
|
user_id: e.string(),
|
|
2290
2293
|
resource_server_identifier: e.string(),
|
|
2291
2294
|
resource_server_name: e.string(),
|
|
@@ -2293,65 +2296,65 @@ var Qn = e.object({
|
|
|
2293
2296
|
description: e.string().nullable().optional(),
|
|
2294
2297
|
created_at: e.string().optional(),
|
|
2295
2298
|
organization_id: e.string().optional()
|
|
2296
|
-
}),
|
|
2299
|
+
}), Ar = e.array(kr), jr = e.object({
|
|
2297
2300
|
user_id: e.string(),
|
|
2298
2301
|
role_id: e.string(),
|
|
2299
2302
|
organization_id: e.string().optional()
|
|
2300
|
-
}),
|
|
2303
|
+
}), Mr = jr.extend({
|
|
2301
2304
|
tenant_id: e.string(),
|
|
2302
2305
|
created_at: e.string().optional()
|
|
2303
|
-
}),
|
|
2306
|
+
}), Nr = e.array(Mr), Pr = e.object({
|
|
2304
2307
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2305
2308
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2306
2309
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2307
2310
|
is_system: e.boolean().optional(),
|
|
2308
2311
|
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." })
|
|
2309
|
-
}),
|
|
2312
|
+
}), Fr = Pr.extend({
|
|
2310
2313
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2311
2314
|
created_at: e.string().optional(),
|
|
2312
2315
|
updated_at: e.string().optional()
|
|
2313
|
-
}),
|
|
2316
|
+
}), Ir = e.array(Fr), Lr = e.object({
|
|
2314
2317
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2315
2318
|
colors: e.object({
|
|
2316
2319
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2317
2320
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2318
2321
|
}).optional()
|
|
2319
|
-
}).optional(),
|
|
2322
|
+
}).optional(), Rr = e.object({
|
|
2320
2323
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2321
2324
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2322
2325
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2323
2326
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2324
|
-
}),
|
|
2327
|
+
}), zr = e.object({ client_credentials: e.object({
|
|
2325
2328
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2326
2329
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2327
2330
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2328
|
-
}).optional() }).optional(),
|
|
2331
|
+
}).optional() }).optional(), Br = e.object({
|
|
2329
2332
|
id: e.string().optional(),
|
|
2330
2333
|
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." }),
|
|
2331
2334
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2332
|
-
branding:
|
|
2335
|
+
branding: Lr,
|
|
2333
2336
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2334
|
-
enabled_connections: e.array(
|
|
2335
|
-
token_quota:
|
|
2336
|
-
}),
|
|
2337
|
+
enabled_connections: e.array(Rr).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2338
|
+
token_quota: zr
|
|
2339
|
+
}), Vr = Br.extend(t.shape).extend({
|
|
2337
2340
|
id: e.string(),
|
|
2338
2341
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2339
|
-
}),
|
|
2342
|
+
}), Hr = e.object({
|
|
2340
2343
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2341
2344
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2342
2345
|
show_as_button: e.boolean().optional().default(!0),
|
|
2343
2346
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2344
|
-
}),
|
|
2347
|
+
}), Ur = Hr.extend({
|
|
2345
2348
|
connection: e.object({
|
|
2346
2349
|
name: e.string().optional(),
|
|
2347
2350
|
strategy: e.string().optional()
|
|
2348
2351
|
}).optional(),
|
|
2349
2352
|
created_at: e.string().optional(),
|
|
2350
2353
|
updated_at: e.string().optional()
|
|
2351
|
-
}),
|
|
2354
|
+
}), Wr = e.array(Ur), Gr = e.object({
|
|
2352
2355
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2353
2356
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2354
|
-
}),
|
|
2357
|
+
}), Kr = Gr.extend(t.shape).extend({ id: e.string() }), qr = e.object({
|
|
2355
2358
|
idle_session_lifetime: e.number().default(72),
|
|
2356
2359
|
session_lifetime: e.number().default(168),
|
|
2357
2360
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2430,7 +2433,7 @@ var Qn = e.object({
|
|
|
2430
2433
|
}).optional(),
|
|
2431
2434
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2432
2435
|
}).optional()
|
|
2433
|
-
}),
|
|
2436
|
+
}), Jr = e.object({
|
|
2434
2437
|
date: e.string().openapi({
|
|
2435
2438
|
description: "Date these events occurred in ISO 8601 format",
|
|
2436
2439
|
example: "2025-12-19"
|
|
@@ -2455,55 +2458,55 @@ var Qn = e.object({
|
|
|
2455
2458
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2456
2459
|
example: "2025-12-19T00:00:00.000Z"
|
|
2457
2460
|
})
|
|
2458
|
-
}),
|
|
2461
|
+
}), Yr = e.number().openapi({
|
|
2459
2462
|
description: "Number of active users in the last 30 days",
|
|
2460
2463
|
example: 1234
|
|
2461
|
-
}),
|
|
2464
|
+
}), Xr = e.enum([
|
|
2462
2465
|
"active-users",
|
|
2463
2466
|
"logins",
|
|
2464
2467
|
"signups",
|
|
2465
2468
|
"refresh-tokens",
|
|
2466
2469
|
"sessions"
|
|
2467
|
-
]),
|
|
2470
|
+
]), Zr = e.enum([
|
|
2468
2471
|
"hour",
|
|
2469
2472
|
"day",
|
|
2470
2473
|
"week",
|
|
2471
2474
|
"month"
|
|
2472
|
-
]),
|
|
2475
|
+
]), Qr = e.enum([
|
|
2473
2476
|
"time",
|
|
2474
2477
|
"connection",
|
|
2475
2478
|
"client_id",
|
|
2476
2479
|
"user_type",
|
|
2477
2480
|
"event"
|
|
2478
|
-
]),
|
|
2481
|
+
]), $r = e.enum([
|
|
2479
2482
|
"password",
|
|
2480
2483
|
"social",
|
|
2481
2484
|
"passwordless",
|
|
2482
2485
|
"enterprise"
|
|
2483
|
-
]),
|
|
2486
|
+
]), ei = e.object({
|
|
2484
2487
|
name: e.string(),
|
|
2485
2488
|
type: e.string()
|
|
2486
|
-
}),
|
|
2489
|
+
}), ti = e.object({
|
|
2487
2490
|
elapsed: e.number(),
|
|
2488
2491
|
rows_read: e.number().optional(),
|
|
2489
2492
|
bytes_read: e.number().optional()
|
|
2490
|
-
}),
|
|
2491
|
-
meta: e.array(
|
|
2493
|
+
}), ni = e.object({
|
|
2494
|
+
meta: e.array(ei),
|
|
2492
2495
|
data: e.array(e.record(e.string(), e.any())),
|
|
2493
2496
|
rows: e.number(),
|
|
2494
2497
|
rows_before_limit_at_least: e.number().optional(),
|
|
2495
|
-
statistics:
|
|
2496
|
-
}),
|
|
2498
|
+
statistics: ti.optional()
|
|
2499
|
+
}), ri = 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(".")), ii = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2497
2500
|
type: "object",
|
|
2498
2501
|
additionalProperties: {
|
|
2499
2502
|
type: "object",
|
|
2500
2503
|
additionalProperties: { type: "string" }
|
|
2501
2504
|
}
|
|
2502
|
-
}),
|
|
2503
|
-
prompt:
|
|
2505
|
+
}), ai = e.object({
|
|
2506
|
+
prompt: ri,
|
|
2504
2507
|
language: e.string(),
|
|
2505
|
-
custom_text:
|
|
2506
|
-
}),
|
|
2508
|
+
custom_text: ii
|
|
2509
|
+
}), oi = {
|
|
2507
2510
|
EMAIL: "email",
|
|
2508
2511
|
SMS: "sms",
|
|
2509
2512
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2518,11 +2521,11 @@ var Qn = e.object({
|
|
|
2518
2521
|
SAMLP: "samlp",
|
|
2519
2522
|
WAAD: "waad",
|
|
2520
2523
|
ADFS: "adfs"
|
|
2521
|
-
},
|
|
2524
|
+
}, si = {
|
|
2522
2525
|
DATABASE: "database",
|
|
2523
2526
|
SOCIAL: "social",
|
|
2524
2527
|
PASSWORDLESS: "passwordless"
|
|
2525
|
-
},
|
|
2528
|
+
}, ci = e.enum([
|
|
2526
2529
|
"phone",
|
|
2527
2530
|
"totp",
|
|
2528
2531
|
"email",
|
|
@@ -2530,9 +2533,9 @@ var Qn = e.object({
|
|
|
2530
2533
|
"webauthn-roaming",
|
|
2531
2534
|
"webauthn-platform",
|
|
2532
2535
|
"passkey"
|
|
2533
|
-
]),
|
|
2536
|
+
]), li = e.object({
|
|
2534
2537
|
user_id: e.string(),
|
|
2535
|
-
type:
|
|
2538
|
+
type: ci,
|
|
2536
2539
|
phone_number: e.string().optional(),
|
|
2537
2540
|
totp_secret: e.string().optional(),
|
|
2538
2541
|
credential_id: e.string().optional(),
|
|
@@ -2543,7 +2546,7 @@ var Qn = e.object({
|
|
|
2543
2546
|
friendly_name: e.string().optional(),
|
|
2544
2547
|
confirmed: e.boolean().default(!1)
|
|
2545
2548
|
});
|
|
2546
|
-
function
|
|
2549
|
+
function ui(t, n) {
|
|
2547
2550
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2548
2551
|
code: e.ZodIssueCode.custom,
|
|
2549
2552
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2566,14 +2569,14 @@ function li(t, n) {
|
|
|
2566
2569
|
path: ["public_key"]
|
|
2567
2570
|
}));
|
|
2568
2571
|
}
|
|
2569
|
-
var
|
|
2572
|
+
var di = li.superRefine(ui), fi = li.extend({
|
|
2570
2573
|
id: e.string(),
|
|
2571
2574
|
created_at: e.string(),
|
|
2572
2575
|
updated_at: e.string()
|
|
2573
|
-
}).superRefine(
|
|
2576
|
+
}).superRefine(ui);
|
|
2574
2577
|
//#endregion
|
|
2575
2578
|
//#region src/utils/user-id.ts
|
|
2576
|
-
function
|
|
2579
|
+
function pi(e) {
|
|
2577
2580
|
let [t, n] = e.split("|");
|
|
2578
2581
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2579
2582
|
return {
|
|
@@ -2583,7 +2586,7 @@ function fi(e) {
|
|
|
2583
2586
|
}
|
|
2584
2587
|
//#endregion
|
|
2585
2588
|
//#region src/utils/passthrough.ts
|
|
2586
|
-
function
|
|
2589
|
+
function mi(e) {
|
|
2587
2590
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2588
2591
|
"create",
|
|
2589
2592
|
"rawCreate",
|
|
@@ -2617,12 +2620,12 @@ function pi(e) {
|
|
|
2617
2620
|
} : i.bind(e) : i;
|
|
2618
2621
|
} });
|
|
2619
2622
|
}
|
|
2620
|
-
function
|
|
2623
|
+
function hi(e) {
|
|
2621
2624
|
return e;
|
|
2622
2625
|
}
|
|
2623
2626
|
//#endregion
|
|
2624
2627
|
//#region src/utils/connection-attributes.ts
|
|
2625
|
-
function
|
|
2628
|
+
function gi(e) {
|
|
2626
2629
|
let t = e?.options;
|
|
2627
2630
|
if (!t) return {
|
|
2628
2631
|
usernameIdentifierActive: !1,
|
|
@@ -2645,8 +2648,8 @@ function hi(e) {
|
|
|
2645
2648
|
}
|
|
2646
2649
|
//#endregion
|
|
2647
2650
|
//#region src/utils/guards.ts
|
|
2648
|
-
function
|
|
2651
|
+
function _i(e) {
|
|
2649
2652
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2650
2653
|
}
|
|
2651
2654
|
//#endregion
|
|
2652
|
-
export {
|
|
2655
|
+
export { he as Auth0ActionEnum, Dn as Auth0Client, Re as AuthorizationResponseMode, Le as AuthorizationResponseType, ze as CodeChallengeMethod, M as ComponentCategory, j as ComponentType, ge as EmailActionEnum, Mt as FORM_FIELD_TYPES, me as FlowActionTypeEnum, Zn as GrantType, On as LocationInfo, X as LogTypes, _n as LoginSessionState, Oe as NodeType, g as RedirectTargetEnum, oi as Strategy, si as StrategyType, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, Ae as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, u as actionVersionInsertSchema, oe as actionVersionSchema, Yr as activeUsersResponseSchema, ce as actorSchema, x as addressSchema, ei as analyticsColumnMetaSchema, Qr as analyticsGroupBySchema, Zr as analyticsIntervalSchema, ni as analyticsQueryResponseSchema, Xr as analyticsResourceSchema, ti as analyticsStatisticsSchema, $r as analyticsUserTypeSchema, Hn as attackProtectionSchema, se as auditCategorySchema, f as auditEventInsertSchema, pe as auditEventSchema, d as auth0ClientSchema, Ie as auth0FlowInsertSchema, Fe as auth0FlowSchema, ve as auth0QuerySchema, m as auth0UpdateUserActionSchema, xe as auth0UserResponseSchema, He as authParamsSchema, di as authenticationMethodInsertSchema, fi as authenticationMethodSchema, ci as authenticationMethodTypeSchema, S as baseUserSchema, kt as blockComponentSchema, $n as bordersSchema, Ue as brandingSchema, zn as breachedPasswordDetectionSchema, Bn as bruteForceProtectionSchema, F as buttonComponentSchema, Ve as claimsRequestSchema, E as clientGrantInsertSchema, Ee as clientGrantListSchema, D as clientGrantSchema, T as clientInsertSchema, k as clientRegistrationTokenInsertSchema, De as clientRegistrationTokenSchema, O as clientRegistrationTokenTypeSchema, Te as clientSchema, Ge as codeInsertSchema, Ke as codeSchema, We as codeTypeSchema, er as colorsSchema, Bt as componentMessageSchema, z as componentSchema, Je as connectionInsertSchema, qe as connectionOptionsSchema, Ye as connectionSchema, A as coordinatesSchema, mi as createPassthroughAdapter, hi as createWriteOnlyAdapter, et as customDomainCertificateUploadSchema, Xe as customDomainInsertSchema, Qe as customDomainSchema, $e as customDomainWithTenantIdSchema, ai as customTextEntrySchema, ii as customTextSchema, Jr as dailyStatsSchema, dr as emailProviderSchema, fr as emailTemplateNameSchema, pr as emailTemplateSchema, p as emailVerificationRulesSchema, h as emailVerifyActionSchema, Pe as endingSchema, jt as fieldComponentSchema, v as flowActionStepSchema, y as flowInsertSchema, _e as flowSchema, L as flowsFieldComponentSchema, ke as flowsFlowNodeSchema, B as flowsStepNodeSchema, Q as fontDetailsSchema, tr as fontsSchema, Nt as formControlSchema, Rt as formInsertSchema, K as formNodeComponentDefinition, Lt as formNodeSchema, zt as formSchema, R as genericComponentSchema, je as genericNodeSchema, gi as getConnectionIdentifierConfig, En as getLogTypeCategory, Tn as getLogTypeDescription, cr as handlerConfigSchema, cn as hookCodeInsertSchema, ln as hookCodeSchema, tn as hookInsertSchema, sn as hookSchema, J as hookTemplateId, Xt as hookTemplates, b as identitySchema, fn as inviteInsertSchema, pn as inviteSchema, dn as inviteeSchema, un as inviterSchema, Ut as isBlockComponent, Gt as isFieldComponent, _i as isPlainObject, Wt as isWidgetComponent, hn as jwksKeySchema, mn as jwksSchema, I as legalComponentSchema, fe as locationInfoSchema, kn as logInsertSchema, An as logSchema, Mn as logStreamFilterSchema, Nn as logStreamInsertSchema, Pn as logStreamSchema, Z as logStreamStatusSchema, jn as logStreamTypeSchema, wn as logTypeCategories, Cn as logTypeDescriptions, yn as loginSessionAuthStrategySchema, bn as loginSessionInsertSchema, xn as loginSessionSchema, vn as loginSessionStateSchema, sr as matchSchema, Fn as migrationProviderTypeSchema, In as migrationSourceCredentialsSchema, Ln as migrationSourceInsertSchema, Rn as migrationSourceSchema, Me as nodeSchema, gn as openIDConfigurationSchema, Lr as organizationBrandingSchema, Hr as organizationConnectionInsertSchema, Wr as organizationConnectionListSchema, Ur as organizationConnectionSchema, Rr as organizationEnabledConnectionSchema, Br as organizationInsertSchema, Vr as organizationSchema, zr as organizationTokenQuotaSchema, nr as pageBackgroundSchema, pi as parseUserId, Un as passwordInsertSchema, Wn as passwordSchema, be as profileDataSchema, ri as promptScreenSchema, or as promptSettingSchema, $ as proxyRouteInsertSchema, lr as proxyRouteSchema, ur as proxyRouteUpdateSchema, _ as redirectActionSchema, mr as refreshTokenInsertSchema, hr as refreshTokenSchema, ue as requestContextSchema, br as resourceServerInsertSchema, Sr as resourceServerListSchema, yr as resourceServerOptionsSchema, xr as resourceServerSchema, vr as resourceServerScopeSchema, de as responseContextSchema, P as richTextComponentSchema, Pr as roleInsertSchema, Ir as roleListSchema, Cr as rolePermissionInsertSchema, Tr as rolePermissionListSchema, wr as rolePermissionSchema, Fr as roleSchema, Vt as screenLinkSchema, Kn as sessionInsertSchema, qn as sessionSchema, Jn as signingKeySchema, _r as smsProviderSchema, gr as smsSendParamsSchema, Ne as startSchema, Vn as suspiciousIpThrottlingSchema, le as targetSchema, Yn as tenantInsertSchema, Xn as tenantSchema, qr as tenantSettingsSchema, ir as themeInsertSchema, ar as themeSchema, Qn as tokenResponseSchema, ye as totalsSchema, Ht as uiScreenSchema, C as userInsertSchema, Gr as userOrganizationInsertSchema, Kr as userOrganizationSchema, Er as userPermissionInsertSchema, Or as userPermissionListSchema, Dr as userPermissionSchema, Ar as userPermissionWithDetailsListSchema, kr as userPermissionWithDetailsSchema, Se as userResponseSchema, jr as userRoleInsertSchema, Nr as userRoleListSchema, Mr as userRoleSchema, w as userSchema, Ze as verificationMethodsSchema, At as widgetComponentSchema, rr as widgetSchema };
|