@authhero/adapter-interfaces 3.5.0 → 3.6.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 +310 -2
- package/dist/adapter-interfaces.mjs +173 -89
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/Rollouts.d.ts +18 -0
- package/dist/types/adapters/TenantOperationEvents.d.ts +18 -0
- package/dist/types/adapters/TenantOperations.d.ts +34 -0
- package/dist/types/adapters/index.d.ts +23 -0
- package/dist/types/types/Rollout.d.ts +77 -0
- package/dist/types/types/TenantOperation.d.ts +99 -0
- package/dist/types/types/TenantOperationEvent.d.ts +48 -0
- package/dist/types/types/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1350,11 +1350,11 @@ var Yt = e.enum([
|
|
|
1350
1350
|
}), fn = dn.extend({
|
|
1351
1351
|
id: e.string(),
|
|
1352
1352
|
tenant_id: e.string()
|
|
1353
|
-
}).extend(t.shape),
|
|
1353
|
+
}).extend(t.shape), Y = e.object({ name: e.string().optional() }), pn = e.object({ email: e.string().optional() }), mn = e.object({
|
|
1354
1354
|
id: e.string().optional(),
|
|
1355
1355
|
organization_id: e.string().max(50),
|
|
1356
|
-
inviter:
|
|
1357
|
-
invitee:
|
|
1356
|
+
inviter: Y,
|
|
1357
|
+
invitee: pn,
|
|
1358
1358
|
invitation_url: e.string().url(),
|
|
1359
1359
|
client_id: e.string(),
|
|
1360
1360
|
connection_id: e.string().optional(),
|
|
@@ -1369,7 +1369,7 @@ var Yt = e.enum([
|
|
|
1369
1369
|
created_at: e.string().datetime(),
|
|
1370
1370
|
expires_at: e.string().datetime(),
|
|
1371
1371
|
ticket_id: e.string().optional()
|
|
1372
|
-
}).extend(
|
|
1372
|
+
}).extend(mn.omit({ id: !0 }).shape), gn = e.object({
|
|
1373
1373
|
alg: e.enum([
|
|
1374
1374
|
"RS256",
|
|
1375
1375
|
"RS384",
|
|
@@ -2104,9 +2104,93 @@ var kn = e.object({
|
|
|
2104
2104
|
}).extend(Zn.shape).extend({
|
|
2105
2105
|
id: e.string(),
|
|
2106
2106
|
is_control_plane: e.boolean().optional()
|
|
2107
|
-
}), $n =
|
|
2107
|
+
}), $n = e.enum([
|
|
2108
|
+
"provision",
|
|
2109
|
+
"seed",
|
|
2110
|
+
"upgrade",
|
|
2111
|
+
"backup",
|
|
2112
|
+
"deprovision"
|
|
2113
|
+
]), er = e.enum([
|
|
2114
|
+
"pending",
|
|
2115
|
+
"running",
|
|
2116
|
+
"succeeded",
|
|
2117
|
+
"failed",
|
|
2118
|
+
"cancelled"
|
|
2119
|
+
]), tr = e.enum(["inline", "cloudflare-workflows"]), nr = e.object({
|
|
2120
|
+
tenant_id: e.string().max(255).nullable().default(null),
|
|
2121
|
+
rollout_id: e.string().max(255).nullable().optional(),
|
|
2122
|
+
kind: $n,
|
|
2123
|
+
engine: tr,
|
|
2124
|
+
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
2125
|
+
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2126
|
+
target_database_version: e.string().max(255).nullable().optional(),
|
|
2127
|
+
initiated_by: e.string().max(255).nullable().optional()
|
|
2128
|
+
}), rr = nr.extend({
|
|
2129
|
+
id: e.string(),
|
|
2130
|
+
status: er,
|
|
2131
|
+
current_step: e.string().max(255).nullable().optional(),
|
|
2132
|
+
error: e.string().nullable().optional(),
|
|
2133
|
+
created_at: e.string(),
|
|
2134
|
+
updated_at: e.string(),
|
|
2135
|
+
finished_at: e.string().nullable().optional()
|
|
2136
|
+
}), ir = rr.pick({
|
|
2137
|
+
status: !0,
|
|
2138
|
+
current_step: !0,
|
|
2139
|
+
engine_instance_id: !0,
|
|
2140
|
+
target_worker_version: !0,
|
|
2141
|
+
target_database_version: !0,
|
|
2142
|
+
error: !0,
|
|
2143
|
+
finished_at: !0
|
|
2144
|
+
}).partial(), ar = e.enum([
|
|
2145
|
+
"started",
|
|
2146
|
+
"succeeded",
|
|
2147
|
+
"failed",
|
|
2148
|
+
"retried",
|
|
2149
|
+
"skipped",
|
|
2150
|
+
"reconciled"
|
|
2151
|
+
]), or = e.object({
|
|
2152
|
+
operation_id: e.string().max(255),
|
|
2153
|
+
step: e.string().max(255),
|
|
2154
|
+
outcome: ar,
|
|
2155
|
+
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2156
|
+
attempt: e.number().int().min(1).default(1)
|
|
2157
|
+
}), sr = or.extend({
|
|
2158
|
+
id: e.string(),
|
|
2159
|
+
created_at: e.string()
|
|
2160
|
+
}), cr = e.enum([
|
|
2161
|
+
"upgrade",
|
|
2162
|
+
"reseed",
|
|
2163
|
+
"backup"
|
|
2164
|
+
]), lr = e.enum([
|
|
2165
|
+
"pending",
|
|
2166
|
+
"canary",
|
|
2167
|
+
"rolling",
|
|
2168
|
+
"paused",
|
|
2169
|
+
"done",
|
|
2170
|
+
"failed"
|
|
2171
|
+
]), ur = e.object({
|
|
2172
|
+
kind: cr,
|
|
2173
|
+
target_worker_version: e.string().max(255).nullable().optional(),
|
|
2174
|
+
target_database_version: e.string().max(255).nullable().optional(),
|
|
2175
|
+
wave_size: e.number().int().min(1).default(10),
|
|
2176
|
+
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
2177
|
+
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
2178
|
+
initiated_by: e.string().max(255).nullable().optional()
|
|
2179
|
+
}), dr = ur.extend({
|
|
2180
|
+
id: e.string(),
|
|
2181
|
+
status: lr,
|
|
2182
|
+
created_at: e.string(),
|
|
2183
|
+
updated_at: e.string(),
|
|
2184
|
+
finished_at: e.string().nullable().optional()
|
|
2185
|
+
}), fr = dr.pick({
|
|
2186
|
+
status: !0,
|
|
2187
|
+
wave_size: !0,
|
|
2188
|
+
canary_tenant_ids: !0,
|
|
2189
|
+
filter: !0,
|
|
2190
|
+
finished_at: !0
|
|
2191
|
+
}).partial(), pr = /* @__PURE__ */ function(e) {
|
|
2108
2192
|
return e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e.TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange", e;
|
|
2109
|
-
}({}),
|
|
2193
|
+
}({}), mr = e.object({
|
|
2110
2194
|
access_token: e.string(),
|
|
2111
2195
|
id_token: e.string().optional(),
|
|
2112
2196
|
scope: e.string().optional(),
|
|
@@ -2121,7 +2205,7 @@ e.object({
|
|
|
2121
2205
|
});
|
|
2122
2206
|
//#endregion
|
|
2123
2207
|
//#region src/types/Theme.ts
|
|
2124
|
-
var
|
|
2208
|
+
var hr = e.object({
|
|
2125
2209
|
button_border_radius: e.number(),
|
|
2126
2210
|
button_border_weight: e.number(),
|
|
2127
2211
|
buttons_style: e.enum([
|
|
@@ -2139,7 +2223,7 @@ var tr = e.object({
|
|
|
2139
2223
|
show_widget_shadow: e.boolean(),
|
|
2140
2224
|
widget_border_weight: e.number(),
|
|
2141
2225
|
widget_corner_radius: e.number()
|
|
2142
|
-
}),
|
|
2226
|
+
}), gr = e.object({
|
|
2143
2227
|
base_focus_color: e.string(),
|
|
2144
2228
|
base_hover_color: e.string(),
|
|
2145
2229
|
body_text: e.string(),
|
|
@@ -2166,7 +2250,7 @@ var tr = e.object({
|
|
|
2166
2250
|
}), Q = e.object({
|
|
2167
2251
|
bold: e.boolean(),
|
|
2168
2252
|
size: e.number()
|
|
2169
|
-
}),
|
|
2253
|
+
}), _r = e.object({
|
|
2170
2254
|
body_text: Q,
|
|
2171
2255
|
buttons_text: Q,
|
|
2172
2256
|
font_url: e.string(),
|
|
@@ -2176,7 +2260,7 @@ var tr = e.object({
|
|
|
2176
2260
|
reference_text_size: e.number(),
|
|
2177
2261
|
subtitle: Q,
|
|
2178
2262
|
title: Q
|
|
2179
|
-
}),
|
|
2263
|
+
}), vr = e.object({
|
|
2180
2264
|
background_color: e.string(),
|
|
2181
2265
|
background_image_url: e.string(),
|
|
2182
2266
|
page_layout: e.enum([
|
|
@@ -2189,7 +2273,7 @@ var tr = e.object({
|
|
|
2189
2273
|
"chip",
|
|
2190
2274
|
"none"
|
|
2191
2275
|
]).optional()
|
|
2192
|
-
}),
|
|
2276
|
+
}), yr = e.object({
|
|
2193
2277
|
header_text_alignment: e.enum([
|
|
2194
2278
|
"center",
|
|
2195
2279
|
"left",
|
|
@@ -2204,48 +2288,48 @@ var tr = e.object({
|
|
|
2204
2288
|
]),
|
|
2205
2289
|
logo_url: e.string(),
|
|
2206
2290
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2207
|
-
}),
|
|
2208
|
-
borders:
|
|
2209
|
-
colors:
|
|
2291
|
+
}), br = e.object({
|
|
2292
|
+
borders: hr,
|
|
2293
|
+
colors: gr,
|
|
2210
2294
|
displayName: e.string(),
|
|
2211
|
-
fonts:
|
|
2212
|
-
page_background:
|
|
2213
|
-
widget:
|
|
2214
|
-
}),
|
|
2295
|
+
fonts: _r,
|
|
2296
|
+
page_background: vr,
|
|
2297
|
+
widget: yr
|
|
2298
|
+
}), xr = br.extend({ themeId: e.string() }), Sr = e.object({
|
|
2215
2299
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2216
2300
|
identifier_first: e.boolean().default(!0),
|
|
2217
2301
|
password_first: e.boolean().default(!1),
|
|
2218
2302
|
webauthn_platform_first_factor: e.boolean()
|
|
2219
|
-
}),
|
|
2303
|
+
}), Cr = e.object({
|
|
2220
2304
|
hosts: e.array(e.string()).optional(),
|
|
2221
2305
|
methods: e.array(e.string()).optional(),
|
|
2222
2306
|
path: e.string().default("/*"),
|
|
2223
2307
|
headers: e.record(e.string(), e.string()).optional(),
|
|
2224
2308
|
query: e.record(e.string(), e.string()).optional()
|
|
2225
|
-
}),
|
|
2309
|
+
}), wr = e.object({
|
|
2226
2310
|
type: e.string(),
|
|
2227
2311
|
options: e.record(e.string(), e.unknown()).default({})
|
|
2228
2312
|
}), $ = e.object({
|
|
2229
2313
|
id: e.string().optional(),
|
|
2230
2314
|
custom_domain_id: e.string(),
|
|
2231
2315
|
priority: e.number().int().default(100),
|
|
2232
|
-
match:
|
|
2233
|
-
handlers: e.array(
|
|
2234
|
-
}),
|
|
2316
|
+
match: Cr,
|
|
2317
|
+
handlers: e.array(wr).min(1)
|
|
2318
|
+
}), Tr = $.extend({
|
|
2235
2319
|
id: e.string(),
|
|
2236
2320
|
tenant_id: e.string(),
|
|
2237
2321
|
created_at: e.string(),
|
|
2238
2322
|
updated_at: e.string()
|
|
2239
|
-
}),
|
|
2323
|
+
}), Er = $.partial().omit({
|
|
2240
2324
|
id: !0,
|
|
2241
2325
|
custom_domain_id: !0
|
|
2242
|
-
}),
|
|
2326
|
+
}), Dr = e.object({
|
|
2243
2327
|
name: e.string(),
|
|
2244
2328
|
enabled: e.boolean().optional().default(!0),
|
|
2245
2329
|
default_from_address: e.string().optional(),
|
|
2246
2330
|
credentials: e.record(e.string(), e.unknown()),
|
|
2247
2331
|
settings: e.object({}).optional()
|
|
2248
|
-
}),
|
|
2332
|
+
}), Or = e.enum([
|
|
2249
2333
|
"verify_email",
|
|
2250
2334
|
"verify_email_by_code",
|
|
2251
2335
|
"reset_email",
|
|
@@ -2258,8 +2342,8 @@ var tr = e.object({
|
|
|
2258
2342
|
"change_password",
|
|
2259
2343
|
"password_reset",
|
|
2260
2344
|
"user_invitation"
|
|
2261
|
-
]),
|
|
2262
|
-
template:
|
|
2345
|
+
]), kr = e.object({
|
|
2346
|
+
template: Or,
|
|
2263
2347
|
body: e.string(),
|
|
2264
2348
|
from: e.string(),
|
|
2265
2349
|
subject: e.string(),
|
|
@@ -2268,7 +2352,7 @@ var tr = e.object({
|
|
|
2268
2352
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2269
2353
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2270
2354
|
enabled: e.boolean().default(!0)
|
|
2271
|
-
}),
|
|
2355
|
+
}), Ar = e.object({
|
|
2272
2356
|
id: e.string(),
|
|
2273
2357
|
login_id: e.string(),
|
|
2274
2358
|
user_id: e.string(),
|
|
@@ -2287,19 +2371,19 @@ var tr = e.object({
|
|
|
2287
2371
|
family_id: e.string().optional(),
|
|
2288
2372
|
rotated_to: e.string().optional(),
|
|
2289
2373
|
rotated_at: e.string().optional()
|
|
2290
|
-
}),
|
|
2374
|
+
}), jr = Ar.extend({
|
|
2291
2375
|
created_at: e.string(),
|
|
2292
2376
|
revoked_at: e.string().optional()
|
|
2293
|
-
}),
|
|
2377
|
+
}), Mr = e.object({
|
|
2294
2378
|
to: e.string(),
|
|
2295
2379
|
message: e.string()
|
|
2296
|
-
}),
|
|
2380
|
+
}), Nr = e.object({
|
|
2297
2381
|
name: e.string(),
|
|
2298
2382
|
options: e.object({})
|
|
2299
|
-
}),
|
|
2383
|
+
}), Pr = e.object({
|
|
2300
2384
|
value: e.string(),
|
|
2301
2385
|
description: e.string().optional()
|
|
2302
|
-
}),
|
|
2386
|
+
}), Fr = e.object({
|
|
2303
2387
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2304
2388
|
enforce_policies: e.boolean().optional(),
|
|
2305
2389
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2307,11 +2391,11 @@ var tr = e.object({
|
|
|
2307
2391
|
persist_client_authorization: e.boolean().optional(),
|
|
2308
2392
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
2309
2393
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
2310
|
-
}),
|
|
2394
|
+
}), Ir = e.object({
|
|
2311
2395
|
id: e.string().optional(),
|
|
2312
2396
|
name: e.string(),
|
|
2313
2397
|
identifier: e.string(),
|
|
2314
|
-
scopes: e.array(
|
|
2398
|
+
scopes: e.array(Pr).optional(),
|
|
2315
2399
|
signing_alg: e.string().optional(),
|
|
2316
2400
|
signing_secret: e.string().optional(),
|
|
2317
2401
|
token_lifetime: e.number().default(86400),
|
|
@@ -2319,37 +2403,37 @@ var tr = e.object({
|
|
|
2319
2403
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2320
2404
|
allow_offline_access: e.boolean().optional(),
|
|
2321
2405
|
verificationKey: e.string().optional(),
|
|
2322
|
-
options:
|
|
2406
|
+
options: Fr.optional(),
|
|
2323
2407
|
is_system: e.boolean().optional(),
|
|
2324
2408
|
metadata: e.record(e.string(), e.any()).optional()
|
|
2325
|
-
}),
|
|
2409
|
+
}), Lr = Ir.extend({
|
|
2326
2410
|
created_at: e.string().optional(),
|
|
2327
2411
|
updated_at: e.string().optional()
|
|
2328
|
-
}),
|
|
2412
|
+
}), Rr = e.array(Lr), zr = e.object({
|
|
2329
2413
|
role_id: e.string(),
|
|
2330
2414
|
resource_server_identifier: e.string(),
|
|
2331
2415
|
permission_name: e.string()
|
|
2332
|
-
}),
|
|
2416
|
+
}), Br = zr.extend({ created_at: e.string() }), Vr = e.array(Br), Hr = e.object({
|
|
2333
2417
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
2334
2418
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
2335
2419
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
2336
2420
|
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
2337
|
-
}),
|
|
2421
|
+
}), Ur = Hr.extend({ id: e.string() }), Wr = e.object({
|
|
2338
2422
|
user_id: e.string(),
|
|
2339
2423
|
last_login: e.string().optional(),
|
|
2340
2424
|
last_ip: e.string().optional(),
|
|
2341
2425
|
login_count: e.number().default(0),
|
|
2342
2426
|
failed_logins: e.array(e.string()).optional(),
|
|
2343
2427
|
last_password_reset: e.string().optional()
|
|
2344
|
-
}),
|
|
2428
|
+
}), Gr = e.object({
|
|
2345
2429
|
user_id: e.string(),
|
|
2346
2430
|
resource_server_identifier: e.string(),
|
|
2347
2431
|
permission_name: e.string(),
|
|
2348
2432
|
organization_id: e.string().optional()
|
|
2349
|
-
}),
|
|
2433
|
+
}), Kr = Gr.extend({
|
|
2350
2434
|
tenant_id: e.string(),
|
|
2351
2435
|
created_at: e.string().optional()
|
|
2352
|
-
}),
|
|
2436
|
+
}), qr = e.array(Kr), Jr = e.object({
|
|
2353
2437
|
user_id: e.string(),
|
|
2354
2438
|
resource_server_identifier: e.string(),
|
|
2355
2439
|
resource_server_name: e.string(),
|
|
@@ -2357,65 +2441,65 @@ var tr = e.object({
|
|
|
2357
2441
|
description: e.string().nullable().optional(),
|
|
2358
2442
|
created_at: e.string().optional(),
|
|
2359
2443
|
organization_id: e.string().optional()
|
|
2360
|
-
}),
|
|
2444
|
+
}), Yr = e.array(Jr), Xr = e.object({
|
|
2361
2445
|
user_id: e.string(),
|
|
2362
2446
|
role_id: e.string(),
|
|
2363
2447
|
organization_id: e.string().optional()
|
|
2364
|
-
}),
|
|
2448
|
+
}), Zr = Xr.extend({
|
|
2365
2449
|
tenant_id: e.string(),
|
|
2366
2450
|
created_at: e.string().optional()
|
|
2367
|
-
}),
|
|
2451
|
+
}), Qr = e.array(Zr), $r = e.object({
|
|
2368
2452
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
2369
2453
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
2370
2454
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
2371
2455
|
is_system: e.boolean().optional(),
|
|
2372
2456
|
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." })
|
|
2373
|
-
}),
|
|
2457
|
+
}), ei = $r.extend({
|
|
2374
2458
|
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
2375
2459
|
created_at: e.string().optional(),
|
|
2376
2460
|
updated_at: e.string().optional()
|
|
2377
|
-
}),
|
|
2461
|
+
}), ti = e.array(ei), ni = e.object({
|
|
2378
2462
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
2379
2463
|
colors: e.object({
|
|
2380
2464
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
2381
2465
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
2382
2466
|
}).optional()
|
|
2383
|
-
}).optional(),
|
|
2467
|
+
}).optional(), ri = e.object({
|
|
2384
2468
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
2385
2469
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
2386
2470
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
2387
2471
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
2388
|
-
}),
|
|
2472
|
+
}), ii = e.object({ client_credentials: e.object({
|
|
2389
2473
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
2390
2474
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
2391
2475
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
2392
|
-
}).optional() }).optional(),
|
|
2476
|
+
}).optional() }).optional(), ai = e.object({
|
|
2393
2477
|
id: e.string().optional(),
|
|
2394
2478
|
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." }),
|
|
2395
2479
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
2396
|
-
branding:
|
|
2480
|
+
branding: ni,
|
|
2397
2481
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
2398
|
-
enabled_connections: e.array(
|
|
2399
|
-
token_quota:
|
|
2400
|
-
}),
|
|
2482
|
+
enabled_connections: e.array(ri).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
2483
|
+
token_quota: ii
|
|
2484
|
+
}), oi = ai.extend(t.shape).extend({
|
|
2401
2485
|
id: e.string(),
|
|
2402
2486
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
2403
|
-
}),
|
|
2487
|
+
}), si = e.object({
|
|
2404
2488
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
2405
2489
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2406
2490
|
show_as_button: e.boolean().optional().default(!0),
|
|
2407
2491
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2408
|
-
}),
|
|
2492
|
+
}), ci = si.extend({
|
|
2409
2493
|
connection: e.object({
|
|
2410
2494
|
name: e.string().optional(),
|
|
2411
2495
|
strategy: e.string().optional()
|
|
2412
2496
|
}).optional(),
|
|
2413
2497
|
created_at: e.string().optional(),
|
|
2414
2498
|
updated_at: e.string().optional()
|
|
2415
|
-
}),
|
|
2499
|
+
}), li = e.array(ci), ui = e.object({
|
|
2416
2500
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
2417
2501
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
2418
|
-
}),
|
|
2502
|
+
}), di = ui.extend(t.shape).extend({ id: e.string() }), fi = e.object({
|
|
2419
2503
|
idle_session_lifetime: e.number().default(72),
|
|
2420
2504
|
session_lifetime: e.number().default(168),
|
|
2421
2505
|
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
@@ -2494,7 +2578,7 @@ var tr = e.object({
|
|
|
2494
2578
|
}).optional(),
|
|
2495
2579
|
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
2496
2580
|
}).optional()
|
|
2497
|
-
}),
|
|
2581
|
+
}), pi = e.object({
|
|
2498
2582
|
date: e.string().openapi({
|
|
2499
2583
|
description: "Date these events occurred in ISO 8601 format",
|
|
2500
2584
|
example: "2025-12-19"
|
|
@@ -2519,10 +2603,10 @@ var tr = e.object({
|
|
|
2519
2603
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2520
2604
|
example: "2025-12-19T00:00:00.000Z"
|
|
2521
2605
|
})
|
|
2522
|
-
}),
|
|
2606
|
+
}), mi = e.number().openapi({
|
|
2523
2607
|
description: "Number of active users in the last 30 days",
|
|
2524
2608
|
example: 1234
|
|
2525
|
-
}),
|
|
2609
|
+
}), hi = e.enum([
|
|
2526
2610
|
"active-users",
|
|
2527
2611
|
"logins",
|
|
2528
2612
|
"signups",
|
|
@@ -2533,46 +2617,46 @@ var tr = e.object({
|
|
|
2533
2617
|
"mfa",
|
|
2534
2618
|
"email-verifications",
|
|
2535
2619
|
"codes-sent"
|
|
2536
|
-
]),
|
|
2620
|
+
]), gi = e.enum([
|
|
2537
2621
|
"hour",
|
|
2538
2622
|
"day",
|
|
2539
2623
|
"week",
|
|
2540
2624
|
"month"
|
|
2541
|
-
]),
|
|
2625
|
+
]), _i = e.enum([
|
|
2542
2626
|
"time",
|
|
2543
2627
|
"connection",
|
|
2544
2628
|
"client_id",
|
|
2545
2629
|
"user_type",
|
|
2546
2630
|
"event"
|
|
2547
|
-
]),
|
|
2631
|
+
]), vi = e.enum([
|
|
2548
2632
|
"password",
|
|
2549
2633
|
"social",
|
|
2550
2634
|
"passwordless",
|
|
2551
2635
|
"enterprise"
|
|
2552
|
-
]),
|
|
2636
|
+
]), yi = e.object({
|
|
2553
2637
|
name: e.string(),
|
|
2554
2638
|
type: e.string()
|
|
2555
|
-
}),
|
|
2639
|
+
}), bi = e.object({
|
|
2556
2640
|
elapsed: e.number(),
|
|
2557
2641
|
rows_read: e.number().optional(),
|
|
2558
2642
|
bytes_read: e.number().optional()
|
|
2559
|
-
}),
|
|
2560
|
-
meta: e.array(
|
|
2643
|
+
}), xi = e.object({
|
|
2644
|
+
meta: e.array(yi),
|
|
2561
2645
|
data: e.array(e.record(e.string(), e.any())),
|
|
2562
2646
|
rows: e.number(),
|
|
2563
2647
|
rows_before_limit_at_least: e.number().optional(),
|
|
2564
|
-
statistics:
|
|
2565
|
-
}),
|
|
2648
|
+
statistics: bi.optional()
|
|
2649
|
+
}), Si = 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(".")), Ci = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2566
2650
|
type: "object",
|
|
2567
2651
|
additionalProperties: {
|
|
2568
2652
|
type: "object",
|
|
2569
2653
|
additionalProperties: { type: "string" }
|
|
2570
2654
|
}
|
|
2571
|
-
}),
|
|
2572
|
-
prompt:
|
|
2655
|
+
}), wi = e.object({
|
|
2656
|
+
prompt: Si,
|
|
2573
2657
|
language: e.string(),
|
|
2574
|
-
custom_text:
|
|
2575
|
-
}),
|
|
2658
|
+
custom_text: Ci
|
|
2659
|
+
}), Ti = {
|
|
2576
2660
|
EMAIL: "email",
|
|
2577
2661
|
SMS: "sms",
|
|
2578
2662
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2588,11 +2672,11 @@ var tr = e.object({
|
|
|
2588
2672
|
WAAD: "waad",
|
|
2589
2673
|
ADFS: "adfs",
|
|
2590
2674
|
OKTA: "okta"
|
|
2591
|
-
},
|
|
2675
|
+
}, Ei = {
|
|
2592
2676
|
DATABASE: "database",
|
|
2593
2677
|
SOCIAL: "social",
|
|
2594
2678
|
PASSWORDLESS: "passwordless"
|
|
2595
|
-
},
|
|
2679
|
+
}, Di = e.enum([
|
|
2596
2680
|
"phone",
|
|
2597
2681
|
"totp",
|
|
2598
2682
|
"email",
|
|
@@ -2600,9 +2684,9 @@ var tr = e.object({
|
|
|
2600
2684
|
"webauthn-roaming",
|
|
2601
2685
|
"webauthn-platform",
|
|
2602
2686
|
"passkey"
|
|
2603
|
-
]),
|
|
2687
|
+
]), Oi = e.object({
|
|
2604
2688
|
user_id: e.string(),
|
|
2605
|
-
type:
|
|
2689
|
+
type: Di,
|
|
2606
2690
|
phone_number: e.string().optional(),
|
|
2607
2691
|
totp_secret: e.string().optional(),
|
|
2608
2692
|
credential_id: e.string().optional(),
|
|
@@ -2613,7 +2697,7 @@ var tr = e.object({
|
|
|
2613
2697
|
friendly_name: e.string().optional(),
|
|
2614
2698
|
confirmed: e.boolean().default(!1)
|
|
2615
2699
|
});
|
|
2616
|
-
function
|
|
2700
|
+
function ki(t, n) {
|
|
2617
2701
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
2618
2702
|
code: e.ZodIssueCode.custom,
|
|
2619
2703
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2636,18 +2720,18 @@ function hi(t, n) {
|
|
|
2636
2720
|
path: ["public_key"]
|
|
2637
2721
|
}));
|
|
2638
2722
|
}
|
|
2639
|
-
var
|
|
2723
|
+
var Ai = Oi.superRefine(ki), ji = Oi.extend({
|
|
2640
2724
|
id: e.string(),
|
|
2641
2725
|
created_at: e.string(),
|
|
2642
2726
|
updated_at: e.string()
|
|
2643
|
-
}).superRefine(
|
|
2727
|
+
}).superRefine(ki), Mi = e.object({
|
|
2644
2728
|
id: e.string().optional(),
|
|
2645
2729
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
2646
2730
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
2647
2731
|
});
|
|
2648
2732
|
//#endregion
|
|
2649
2733
|
//#region src/utils/user-id.ts
|
|
2650
|
-
function
|
|
2734
|
+
function Ni(e) {
|
|
2651
2735
|
let [t, n] = e.split("|");
|
|
2652
2736
|
if (!t || !n) throw Error(`Invalid user_id: ${e}`);
|
|
2653
2737
|
return {
|
|
@@ -2657,7 +2741,7 @@ function yi(e) {
|
|
|
2657
2741
|
}
|
|
2658
2742
|
//#endregion
|
|
2659
2743
|
//#region src/utils/passthrough.ts
|
|
2660
|
-
function
|
|
2744
|
+
function Pi(e) {
|
|
2661
2745
|
let { primary: t, secondaries: n, syncMethods: r = [
|
|
2662
2746
|
"create",
|
|
2663
2747
|
"rawCreate",
|
|
@@ -2691,12 +2775,12 @@ function bi(e) {
|
|
|
2691
2775
|
} : i.bind(e) : i;
|
|
2692
2776
|
} });
|
|
2693
2777
|
}
|
|
2694
|
-
function
|
|
2778
|
+
function Fi(e) {
|
|
2695
2779
|
return e;
|
|
2696
2780
|
}
|
|
2697
2781
|
//#endregion
|
|
2698
2782
|
//#region src/utils/connection-attributes.ts
|
|
2699
|
-
function
|
|
2783
|
+
function Ii(e) {
|
|
2700
2784
|
let t = e?.options;
|
|
2701
2785
|
if (!t) return {
|
|
2702
2786
|
usernameIdentifierActive: !1,
|
|
@@ -2719,8 +2803,8 @@ function Si(e) {
|
|
|
2719
2803
|
}
|
|
2720
2804
|
//#endregion
|
|
2721
2805
|
//#region src/utils/guards.ts
|
|
2722
|
-
function
|
|
2806
|
+
function Li(e) {
|
|
2723
2807
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2724
2808
|
}
|
|
2725
2809
|
//#endregion
|
|
2726
|
-
export { ve as Auth0ActionEnum, kn as Auth0Client, Be as AuthorizationResponseMode, ze as AuthorizationResponseType, Ve as CodeChallengeMethod, E as ComponentCategory, T as ComponentType, ye as EmailActionEnum, Ft as FORM_FIELD_TYPES, _e as FlowActionTypeEnum,
|
|
2810
|
+
export { ve as Auth0ActionEnum, kn as Auth0Client, Be as AuthorizationResponseMode, ze as AuthorizationResponseType, Ve as CodeChallengeMethod, E as ComponentCategory, T as ComponentType, ye as EmailActionEnum, Ft as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, pr as GrantType, An as LocationInfo, X as LogTypes, yn as LoginSessionState, Pe as NodeType, Ce as RedirectTargetEnum, Ti as Strategy, Ei 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, I as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, mi as activeUsersResponseSchema, le as actorSchema, h as addressSchema, yi as analyticsColumnMetaSchema, _i as analyticsGroupBySchema, gi as analyticsIntervalSchema, xi as analyticsQueryResponseSchema, hi as analyticsResourceSchema, bi as analyticsStatisticsSchema, vi as analyticsUserTypeSchema, Wn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Re as auth0FlowInsertSchema, Le as auth0FlowSchema, Te as auth0QuerySchema, xe as auth0UpdateUserActionSchema, De as auth0UserResponseSchema, We as authParamsSchema, Ai as authenticationMethodInsertSchema, ji as authenticationMethodSchema, Di as authenticationMethodTypeSchema, g as baseUserSchema, Mt as blockComponentSchema, hr as bordersSchema, Ge as brandingSchema, Vn as breachedPasswordDetectionSchema, Hn as bruteForceProtectionSchema, k as buttonComponentSchema, Ue as claimsRequestSchema, b as clientGrantInsertSchema, Me as clientGrantListSchema, x as clientGrantSchema, y as clientInsertSchema, C as clientRegistrationTokenInsertSchema, Ne as clientRegistrationTokenSchema, S as clientRegistrationTokenTypeSchema, je as clientSchema, qe as codeInsertSchema, Je as codeSchema, Ke as codeTypeSchema, gr as colorsSchema, Ut as componentMessageSchema, N as componentSchema, Xe as connectionInsertSchema, Ye as connectionOptionsSchema, Ze as connectionSchema, w as coordinatesSchema, Pi as createPassthroughAdapter, Fi as createWriteOnlyAdapter, nt as customDomainCertificateUploadSchema, B as customDomainInsertSchema, $e as customDomainSchema, et as customDomainUpdateSchema, tt as customDomainWithTenantIdSchema, wi as customTextEntrySchema, Ci as customTextSchema, pi as dailyStatsSchema, Dr as emailProviderSchema, Or as emailTemplateNameSchema, kr as emailTemplateSchema, be as emailVerificationRulesSchema, Se as emailVerifyActionSchema, Ie as endingSchema, Pt as fieldComponentSchema, d as flowActionStepSchema, f as flowInsertSchema, we as flowSchema, j as flowsFieldComponentSchema, F as flowsFlowNodeSchema, P as flowsStepNodeSchema, Q as fontDetailsSchema, _r as fontsSchema, It as formControlSchema, Vt as formInsertSchema, G as formNodeComponentDefinition, Bt as formNodeSchema, Ht as formSchema, M as genericComponentSchema, L as genericNodeSchema, Ii as getConnectionIdentifierConfig, On as getLogTypeCategory, Dn as getLogTypeDescription, Hr as grantInsertSchema, Ur as grantSchema, wr as handlerConfigSchema, dn as hookCodeInsertSchema, fn as hookCodeSchema, an as hookInsertSchema, un as hookSchema, q as hookTemplateId, $t as hookTemplates, m as identitySchema, Mi as importMetadataSchema, mn as inviteInsertSchema, hn as inviteSchema, pn as inviteeSchema, Y as inviterSchema, Kt as isBlockComponent, Jt as isFieldComponent, Li as isPlainObject, qt as isWidgetComponent, _n as jwksKeySchema, gn as jwksSchema, A as legalComponentSchema, pe as locationInfoSchema, jn as logInsertSchema, Mn as logSchema, Pn as logStreamFilterSchema, Fn as logStreamInsertSchema, In as logStreamSchema, Z as logStreamStatusSchema, Nn as logStreamTypeSchema, En as logTypeCategories, Tn as logTypeDescriptions, xn as loginSessionAuthStrategySchema, Sn as loginSessionInsertSchema, Cn as loginSessionSchema, bn as loginSessionStateSchema, Cr as matchSchema, Ln as migrationProviderTypeSchema, Rn as migrationSourceCredentialsSchema, zn as migrationSourceInsertSchema, Bn as migrationSourceSchema, R as nodeSchema, vn as openIDConfigurationSchema, ni as organizationBrandingSchema, si as organizationConnectionInsertSchema, li as organizationConnectionListSchema, ci as organizationConnectionSchema, ri as organizationEnabledConnectionSchema, ai as organizationInsertSchema, oi as organizationSchema, ii as organizationTokenQuotaSchema, vr as pageBackgroundSchema, Ni as parseUserId, Gn as passwordInsertSchema, Kn as passwordSchema, p as profileDataSchema, Si as promptScreenSchema, Sr as promptSettingSchema, $ as proxyRouteInsertSchema, Tr as proxyRouteSchema, Er as proxyRouteUpdateSchema, u as redirectActionSchema, Ar as refreshTokenInsertSchema, jr as refreshTokenSchema, de as requestContextSchema, Ir as resourceServerInsertSchema, Rr as resourceServerListSchema, Fr as resourceServerOptionsSchema, Lr as resourceServerSchema, Pr as resourceServerScopeSchema, fe as responseContextSchema, O as richTextComponentSchema, $r as roleInsertSchema, ti as roleListSchema, zr as rolePermissionInsertSchema, Vr as rolePermissionListSchema, Br as rolePermissionSchema, ei as roleSchema, ur as rolloutInsertSchema, cr as rolloutKindSchema, dr as rolloutSchema, lr as rolloutStatusSchema, fr as rolloutUpdateSchema, Wt as screenLinkSchema, Jn as sessionInsertSchema, Yn as sessionSchema, Xn as signingKeySchema, Nr as smsProviderSchema, Mr as smsSendParamsSchema, Fe as startSchema, Un as suspiciousIpThrottlingSchema, ue as targetSchema, Zn as tenantInsertSchema, tr as tenantOperationEngineSchema, or as tenantOperationEventInsertSchema, ar as tenantOperationEventOutcomeSchema, sr as tenantOperationEventSchema, nr as tenantOperationInsertSchema, $n as tenantOperationKindSchema, rr as tenantOperationSchema, er as tenantOperationStatusSchema, ir as tenantOperationUpdateSchema, Qn as tenantSchema, fi as tenantSettingsSchema, br as themeInsertSchema, xr as themeSchema, mr as tokenResponseSchema, Ee as totalsSchema, Gt as uiScreenSchema, Wr as userActivitySchema, _ as userInsertSchema, ui as userOrganizationInsertSchema, di as userOrganizationSchema, Gr as userPermissionInsertSchema, qr as userPermissionListSchema, Kr as userPermissionSchema, Yr as userPermissionWithDetailsListSchema, Jr as userPermissionWithDetailsSchema, Oe as userResponseSchema, Xr as userRoleInsertSchema, Qr as userRoleListSchema, Zr as userRoleSchema, v as userSchema, Qe as verificationMethodsSchema, Nt as widgetComponentSchema, yr as widgetSchema };
|