@authhero/adapter-interfaces 2.9.1 → 2.11.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 +56 -2
- package/dist/adapter-interfaces.mjs +324 -312
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/CustomDomains.d.ts +2 -1
- package/dist/types/adapters/Grants.d.ts +18 -0
- package/dist/types/adapters/index.d.ts +15 -0
- package/dist/types/types/CustomDomain.d.ts +5 -0
- package/dist/types/types/Grant.d.ts +16 -0
- package/dist/types/types/LoginSession.d.ts +2 -0
- package/dist/types/types/ProxyRoute.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -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",
|
|
@@ -351,7 +351,7 @@ var t = e.object({
|
|
|
351
351
|
"oag"
|
|
352
352
|
]).default("regular_web").optional().openapi({ description: "The type of application this client represents" }),
|
|
353
353
|
logo_uri: e.string().url().optional().openapi({ description: "URL of the logo to display for this client. Recommended size is 150x150 pixels." }),
|
|
354
|
-
is_first_party: e.boolean().default(!
|
|
354
|
+
is_first_party: e.boolean().default(!0).openapi({ description: "Whether this client is a first party client (true) or not (false). First-party clients skip the consent screen; third-party clients require explicit user consent for non-basic scopes." }),
|
|
355
355
|
oidc_conformant: e.boolean().default(!0).openapi({ description: "Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)." }),
|
|
356
356
|
auth0_conformant: e.boolean().default(!0).openapi({ description: "Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)." }),
|
|
357
357
|
callbacks: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication." }),
|
|
@@ -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
|
-
}),
|
|
1412
|
-
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
|
-
}({}),
|
|
1414
|
+
}), _n = /* @__PURE__ */ function(e) {
|
|
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.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
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,48 @@ 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({
|
|
2184
|
+
id: e.string().optional(),
|
|
2181
2185
|
custom_domain_id: e.string(),
|
|
2182
2186
|
priority: e.number().int().default(100),
|
|
2183
|
-
match:
|
|
2184
|
-
handlers: e.array(
|
|
2185
|
-
}),
|
|
2187
|
+
match: sr,
|
|
2188
|
+
handlers: e.array(cr).min(1)
|
|
2189
|
+
}), lr = $.extend({
|
|
2186
2190
|
id: e.string(),
|
|
2187
2191
|
tenant_id: e.string(),
|
|
2188
2192
|
created_at: e.string(),
|
|
2189
2193
|
updated_at: e.string()
|
|
2190
|
-
}),
|
|
2194
|
+
}), ur = $.partial().omit({
|
|
2195
|
+
id: !0,
|
|
2196
|
+
custom_domain_id: !0
|
|
2197
|
+
}), dr = e.object({
|
|
2191
2198
|
name: e.string(),
|
|
2192
2199
|
enabled: e.boolean().optional().default(!0),
|
|
2193
2200
|
default_from_address: e.string().optional(),
|
|
2194
2201
|
credentials: e.record(e.string(), e.unknown()),
|
|
2195
2202
|
settings: e.object({}).optional()
|
|
2196
|
-
}),
|
|
2203
|
+
}), fr = e.enum([
|
|
2197
2204
|
"verify_email",
|
|
2198
2205
|
"verify_email_by_code",
|
|
2199
2206
|
"reset_email",
|
|
@@ -2206,8 +2213,8 @@ var Qn = e.object({
|
|
|
2206
2213
|
"change_password",
|
|
2207
2214
|
"password_reset",
|
|
2208
2215
|
"user_invitation"
|
|
2209
|
-
]),
|
|
2210
|
-
template:
|
|
2216
|
+
]), pr = e.object({
|
|
2217
|
+
template: fr,
|
|
2211
2218
|
body: e.string(),
|
|
2212
2219
|
from: e.string(),
|
|
2213
2220
|
subject: e.string(),
|
|
@@ -2216,7 +2223,7 @@ var Qn = e.object({
|
|
|
2216
2223
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2217
2224
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2218
2225
|
enabled: e.boolean().default(!0)
|
|
2219
|
-
}),
|
|
2226
|
+
}), mr = e.object({
|
|
2220
2227
|
id: e.string(),
|
|
2221
2228
|
login_id: e.string(),
|
|
2222
2229
|
user_id: e.string(),
|
|
@@ -2224,7 +2231,7 @@ var Qn = e.object({
|
|
|
2224
2231
|
expires_at: e.string().optional(),
|
|
2225
2232
|
idle_expires_at: e.string().optional(),
|
|
2226
2233
|
last_exchanged_at: e.string().optional(),
|
|
2227
|
-
device:
|
|
2234
|
+
device: Gn,
|
|
2228
2235
|
resource_servers: e.array(e.object({
|
|
2229
2236
|
audience: e.string(),
|
|
2230
2237
|
scopes: e.string()
|
|
@@ -2235,19 +2242,19 @@ var Qn = e.object({
|
|
|
2235
2242
|
family_id: e.string().optional(),
|
|
2236
2243
|
rotated_to: e.string().optional(),
|
|
2237
2244
|
rotated_at: e.string().optional()
|
|
2238
|
-
}),
|
|
2245
|
+
}), hr = mr.extend({
|
|
2239
2246
|
created_at: e.string(),
|
|
2240
2247
|
revoked_at: e.string().optional()
|
|
2241
|
-
}),
|
|
2248
|
+
}), gr = e.object({
|
|
2242
2249
|
to: e.string(),
|
|
2243
2250
|
message: e.string()
|
|
2244
|
-
}),
|
|
2251
|
+
}), _r = e.object({
|
|
2245
2252
|
name: e.string(),
|
|
2246
2253
|
options: e.object({})
|
|
2247
|
-
}),
|
|
2254
|
+
}), vr = e.object({
|
|
2248
2255
|
value: e.string(),
|
|
2249
2256
|
description: e.string().optional()
|
|
2250
|
-
}),
|
|
2257
|
+
}), yr = e.object({
|
|
2251
2258
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2252
2259
|
enforce_policies: e.boolean().optional(),
|
|
2253
2260
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2255,11 +2262,11 @@ var Qn = e.object({
|
|
|
2255
2262
|
persist_client_authorization: e.boolean().optional(),
|
|
2256
2263
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2257
2264
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2258
|
-
}),
|
|
2265
|
+
}), br = e.object({
|
|
2259
2266
|
id: e.string().optional(),
|
|
2260
2267
|
name: e.string(),
|
|
2261
2268
|
identifier: e.string(),
|
|
2262
|
-
scopes: e.array(
|
|
2269
|
+
scopes: e.array(vr).optional(),
|
|
2263
2270
|
signing_alg: e.string().optional(),
|
|
2264
2271
|
signing_secret: e.string().optional(),
|
|
2265
2272
|
token_lifetime: e.number().default(86400),
|
|
@@ -2267,25 +2274,30 @@ var Qn = e.object({
|
|
|
2267
2274
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2268
2275
|
allow_offline_access: e.boolean().optional(),
|
|
2269
2276
|
verificationKey: e.string().optional(),
|
|
2270
|
-
options:
|
|
2277
|
+
options: yr.optional(),
|
|
2271
2278
|
is_system: e.boolean().optional(),
|
|
2272
2279
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2273
|
-
}),
|
|
2280
|
+
}), xr = br.extend({
|
|
2274
2281
|
created_at: e.string().optional(),
|
|
2275
2282
|
updated_at: e.string().optional()
|
|
2276
|
-
}),
|
|
2283
|
+
}), Sr = e.array(xr), Cr = e.object({
|
|
2277
2284
|
role_id: e.string(),
|
|
2278
2285
|
resource_server_identifier: e.string(),
|
|
2279
2286
|
permission_name: e.string()
|
|
2280
|
-
}),
|
|
2287
|
+
}), wr = Cr.extend({ created_at: e.string() }), Tr = e.array(wr), Er = e.object({
|
|
2288
|
+
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2289
|
+
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2290
|
+
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2291
|
+
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2292
|
+
}), Dr = Er.extend({ id: e.string() }), Or = e.object({
|
|
2281
2293
|
user_id: e.string(),
|
|
2282
2294
|
resource_server_identifier: e.string(),
|
|
2283
2295
|
permission_name: e.string(),
|
|
2284
2296
|
organization_id: e.string().optional()
|
|
2285
|
-
}),
|
|
2297
|
+
}), kr = Or.extend({
|
|
2286
2298
|
tenant_id: e.string(),
|
|
2287
2299
|
created_at: e.string().optional()
|
|
2288
|
-
}),
|
|
2300
|
+
}), Ar = e.array(kr), jr = e.object({
|
|
2289
2301
|
user_id: e.string(),
|
|
2290
2302
|
resource_server_identifier: e.string(),
|
|
2291
2303
|
resource_server_name: e.string(),
|
|
@@ -2293,65 +2305,65 @@ var Qn = e.object({
|
|
|
2293
2305
|
description: e.string().nullable().optional(),
|
|
2294
2306
|
created_at: e.string().optional(),
|
|
2295
2307
|
organization_id: e.string().optional()
|
|
2296
|
-
}),
|
|
2308
|
+
}), Mr = e.array(jr), Nr = e.object({
|
|
2297
2309
|
user_id: e.string(),
|
|
2298
2310
|
role_id: e.string(),
|
|
2299
2311
|
organization_id: e.string().optional()
|
|
2300
|
-
}),
|
|
2312
|
+
}), Pr = Nr.extend({
|
|
2301
2313
|
tenant_id: e.string(),
|
|
2302
2314
|
created_at: e.string().optional()
|
|
2303
|
-
}),
|
|
2315
|
+
}), Fr = e.array(Pr), Ir = e.object({
|
|
2304
2316
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2305
2317
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2306
2318
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2307
2319
|
is_system: e.boolean().optional(),
|
|
2308
2320
|
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
|
-
}),
|
|
2321
|
+
}), Lr = Ir.extend({
|
|
2310
2322
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2311
2323
|
created_at: e.string().optional(),
|
|
2312
2324
|
updated_at: e.string().optional()
|
|
2313
|
-
}),
|
|
2325
|
+
}), Rr = e.array(Lr), zr = e.object({
|
|
2314
2326
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2315
2327
|
colors: e.object({
|
|
2316
2328
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2317
2329
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2318
2330
|
}).optional()
|
|
2319
|
-
}).optional(),
|
|
2331
|
+
}).optional(), Br = e.object({
|
|
2320
2332
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2321
2333
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2322
2334
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2323
2335
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2324
|
-
}),
|
|
2336
|
+
}), Vr = e.object({ client_credentials: e.object({
|
|
2325
2337
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2326
2338
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2327
2339
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2328
|
-
}).optional() }).optional(),
|
|
2340
|
+
}).optional() }).optional(), Hr = e.object({
|
|
2329
2341
|
id: e.string().optional(),
|
|
2330
2342
|
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
2343
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2332
|
-
branding:
|
|
2344
|
+
branding: zr,
|
|
2333
2345
|
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
|
-
}),
|
|
2346
|
+
enabled_connections: e.array(Br).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2347
|
+
token_quota: Vr
|
|
2348
|
+
}), Ur = Hr.extend(t.shape).extend({
|
|
2337
2349
|
id: e.string(),
|
|
2338
2350
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2339
|
-
}),
|
|
2351
|
+
}), Wr = e.object({
|
|
2340
2352
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2341
2353
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2342
2354
|
show_as_button: e.boolean().optional().default(!0),
|
|
2343
2355
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2344
|
-
}),
|
|
2356
|
+
}), Gr = Wr.extend({
|
|
2345
2357
|
connection: e.object({
|
|
2346
2358
|
name: e.string().optional(),
|
|
2347
2359
|
strategy: e.string().optional()
|
|
2348
2360
|
}).optional(),
|
|
2349
2361
|
created_at: e.string().optional(),
|
|
2350
2362
|
updated_at: e.string().optional()
|
|
2351
|
-
}),
|
|
2363
|
+
}), Kr = e.array(Gr), qr = e.object({
|
|
2352
2364
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2353
2365
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2354
|
-
}),
|
|
2366
|
+
}), Jr = qr.extend(t.shape).extend({ id: e.string() }), Yr = e.object({
|
|
2355
2367
|
idle_session_lifetime: e.number().default(72),
|
|
2356
2368
|
session_lifetime: e.number().default(168),
|
|
2357
2369
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2430,7 +2442,7 @@ var Qn = e.object({
|
|
|
2430
2442
|
}).optional(),
|
|
2431
2443
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2432
2444
|
}).optional()
|
|
2433
|
-
}),
|
|
2445
|
+
}), Xr = e.object({
|
|
2434
2446
|
date: e.string().openapi({
|
|
2435
2447
|
description: "Date these events occurred in ISO 8601 format",
|
|
2436
2448
|
example: "2025-12-19"
|
|
@@ -2455,55 +2467,55 @@ var Qn = e.object({
|
|
|
2455
2467
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2456
2468
|
example: "2025-12-19T00:00:00.000Z"
|
|
2457
2469
|
})
|
|
2458
|
-
}),
|
|
2470
|
+
}), Zr = e.number().openapi({
|
|
2459
2471
|
description: "Number of active users in the last 30 days",
|
|
2460
2472
|
example: 1234
|
|
2461
|
-
}),
|
|
2473
|
+
}), Qr = e.enum([
|
|
2462
2474
|
"active-users",
|
|
2463
2475
|
"logins",
|
|
2464
2476
|
"signups",
|
|
2465
2477
|
"refresh-tokens",
|
|
2466
2478
|
"sessions"
|
|
2467
|
-
]),
|
|
2479
|
+
]), $r = e.enum([
|
|
2468
2480
|
"hour",
|
|
2469
2481
|
"day",
|
|
2470
2482
|
"week",
|
|
2471
2483
|
"month"
|
|
2472
|
-
]),
|
|
2484
|
+
]), ei = e.enum([
|
|
2473
2485
|
"time",
|
|
2474
2486
|
"connection",
|
|
2475
2487
|
"client_id",
|
|
2476
2488
|
"user_type",
|
|
2477
2489
|
"event"
|
|
2478
|
-
]),
|
|
2490
|
+
]), ti = e.enum([
|
|
2479
2491
|
"password",
|
|
2480
2492
|
"social",
|
|
2481
2493
|
"passwordless",
|
|
2482
2494
|
"enterprise"
|
|
2483
|
-
]),
|
|
2495
|
+
]), ni = e.object({
|
|
2484
2496
|
name: e.string(),
|
|
2485
2497
|
type: e.string()
|
|
2486
|
-
}),
|
|
2498
|
+
}), ri = e.object({
|
|
2487
2499
|
elapsed: e.number(),
|
|
2488
2500
|
rows_read: e.number().optional(),
|
|
2489
2501
|
bytes_read: e.number().optional()
|
|
2490
|
-
}),
|
|
2491
|
-
meta: e.array(
|
|
2502
|
+
}), ii = e.object({
|
|
2503
|
+
meta: e.array(ni),
|
|
2492
2504
|
data: e.array(e.record(e.string(), e.any())),
|
|
2493
2505
|
rows: e.number(),
|
|
2494
2506
|
rows_before_limit_at_least: e.number().optional(),
|
|
2495
|
-
statistics:
|
|
2496
|
-
}),
|
|
2507
|
+
statistics: ri.optional()
|
|
2508
|
+
}), ai = 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(".")), oi = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2497
2509
|
type: "object",
|
|
2498
2510
|
additionalProperties: {
|
|
2499
2511
|
type: "object",
|
|
2500
2512
|
additionalProperties: { type: "string" }
|
|
2501
2513
|
}
|
|
2502
|
-
}),
|
|
2503
|
-
prompt:
|
|
2514
|
+
}), si = e.object({
|
|
2515
|
+
prompt: ai,
|
|
2504
2516
|
language: e.string(),
|
|
2505
|
-
custom_text:
|
|
2506
|
-
}),
|
|
2517
|
+
custom_text: oi
|
|
2518
|
+
}), ci = {
|
|
2507
2519
|
EMAIL: "email",
|
|
2508
2520
|
SMS: "sms",
|
|
2509
2521
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2518,11 +2530,11 @@ var Qn = e.object({
|
|
|
2518
2530
|
SAMLP: "samlp",
|
|
2519
2531
|
WAAD: "waad",
|
|
2520
2532
|
ADFS: "adfs"
|
|
2521
|
-
},
|
|
2533
|
+
}, li = {
|
|
2522
2534
|
DATABASE: "database",
|
|
2523
2535
|
SOCIAL: "social",
|
|
2524
2536
|
PASSWORDLESS: "passwordless"
|
|
2525
|
-
},
|
|
2537
|
+
}, ui = e.enum([
|
|
2526
2538
|
"phone",
|
|
2527
2539
|
"totp",
|
|
2528
2540
|
"email",
|
|
@@ -2530,9 +2542,9 @@ var Qn = e.object({
|
|
|
2530
2542
|
"webauthn-roaming",
|
|
2531
2543
|
"webauthn-platform",
|
|
2532
2544
|
"passkey"
|
|
2533
|
-
]),
|
|
2545
|
+
]), di = e.object({
|
|
2534
2546
|
user_id: e.string(),
|
|
2535
|
-
type:
|
|
2547
|
+
type: ui,
|
|
2536
2548
|
phone_number: e.string().optional(),
|
|
2537
2549
|
totp_secret: e.string().optional(),
|
|
2538
2550
|
credential_id: e.string().optional(),
|
|
@@ -2543,7 +2555,7 @@ var Qn = e.object({
|
|
|
2543
2555
|
friendly_name: e.string().optional(),
|
|
2544
2556
|
confirmed: e.boolean().default(!1)
|
|
2545
2557
|
});
|
|
2546
|
-
function
|
|
2558
|
+
function fi(t, n) {
|
|
2547
2559
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2548
2560
|
code: e.ZodIssueCode.custom,
|
|
2549
2561
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2566,14 +2578,14 @@ function li(t, n) {
|
|
|
2566
2578
|
path: ["public_key"]
|
|
2567
2579
|
}));
|
|
2568
2580
|
}
|
|
2569
|
-
var
|
|
2581
|
+
var pi = di.superRefine(fi), mi = di.extend({
|
|
2570
2582
|
id: e.string(),
|
|
2571
2583
|
created_at: e.string(),
|
|
2572
2584
|
updated_at: e.string()
|
|
2573
|
-
}).superRefine(
|
|
2585
|
+
}).superRefine(fi);
|
|
2574
2586
|
//#endregion
|
|
2575
2587
|
//#region src/utils/user-id.ts
|
|
2576
|
-
function
|
|
2588
|
+
function hi(e) {
|
|
2577
2589
|
let [t, n] = e.split("|");
|
|
2578
2590
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2579
2591
|
return {
|
|
@@ -2583,7 +2595,7 @@ function fi(e) {
|
|
|
2583
2595
|
}
|
|
2584
2596
|
//#endregion
|
|
2585
2597
|
//#region src/utils/passthrough.ts
|
|
2586
|
-
function
|
|
2598
|
+
function gi(e) {
|
|
2587
2599
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2588
2600
|
"create",
|
|
2589
2601
|
"rawCreate",
|
|
@@ -2617,12 +2629,12 @@ function pi(e) {
|
|
|
2617
2629
|
} : i.bind(e) : i;
|
|
2618
2630
|
} });
|
|
2619
2631
|
}
|
|
2620
|
-
function
|
|
2632
|
+
function _i(e) {
|
|
2621
2633
|
return e;
|
|
2622
2634
|
}
|
|
2623
2635
|
//#endregion
|
|
2624
2636
|
//#region src/utils/connection-attributes.ts
|
|
2625
|
-
function
|
|
2637
|
+
function vi(e) {
|
|
2626
2638
|
let t = e?.options;
|
|
2627
2639
|
if (!t) return {
|
|
2628
2640
|
usernameIdentifierActive: !1,
|
|
@@ -2645,8 +2657,8 @@ function hi(e) {
|
|
|
2645
2657
|
}
|
|
2646
2658
|
//#endregion
|
|
2647
2659
|
//#region src/utils/guards.ts
|
|
2648
|
-
function
|
|
2660
|
+
function yi(e) {
|
|
2649
2661
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2650
2662
|
}
|
|
2651
2663
|
//#endregion
|
|
2652
|
-
export {
|
|
2664
|
+
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, ci as Strategy, li 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, Zr as activeUsersResponseSchema, ce as actorSchema, x as addressSchema, ni as analyticsColumnMetaSchema, ei as analyticsGroupBySchema, $r as analyticsIntervalSchema, ii as analyticsQueryResponseSchema, Qr as analyticsResourceSchema, ri as analyticsStatisticsSchema, ti 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, pi as authenticationMethodInsertSchema, mi as authenticationMethodSchema, ui 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, gi as createPassthroughAdapter, _i as createWriteOnlyAdapter, et as customDomainCertificateUploadSchema, Xe as customDomainInsertSchema, Qe as customDomainSchema, $e as customDomainWithTenantIdSchema, si as customTextEntrySchema, oi as customTextSchema, Xr 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, vi as getConnectionIdentifierConfig, En as getLogTypeCategory, Tn as getLogTypeDescription, Er as grantInsertSchema, Dr as grantSchema, 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, yi 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, zr as organizationBrandingSchema, Wr as organizationConnectionInsertSchema, Kr as organizationConnectionListSchema, Gr as organizationConnectionSchema, Br as organizationEnabledConnectionSchema, Hr as organizationInsertSchema, Ur as organizationSchema, Vr as organizationTokenQuotaSchema, nr as pageBackgroundSchema, hi as parseUserId, Un as passwordInsertSchema, Wn as passwordSchema, be as profileDataSchema, ai 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, Ir as roleInsertSchema, Rr as roleListSchema, Cr as rolePermissionInsertSchema, Tr as rolePermissionListSchema, wr as rolePermissionSchema, Lr 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, Yr as tenantSettingsSchema, ir as themeInsertSchema, ar as themeSchema, Qn as tokenResponseSchema, ye as totalsSchema, Ht as uiScreenSchema, C as userInsertSchema, qr as userOrganizationInsertSchema, Jr as userOrganizationSchema, Or as userPermissionInsertSchema, Ar as userPermissionListSchema, kr as userPermissionSchema, Mr as userPermissionWithDetailsListSchema, jr as userPermissionWithDetailsSchema, Se as userResponseSchema, Nr as userRoleInsertSchema, Fr as userRoleListSchema, Pr as userRoleSchema, w as userSchema, Ze as verificationMethodsSchema, At as widgetComponentSchema, rr as widgetSchema };
|