@authhero/adapter-interfaces 3.4.1 → 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.
@@ -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), pn = e.object({ name: e.string().optional() }), mn = e.object({ email: e.string().optional() }), Y = e.object({
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: pn,
1357
- invitee: mn,
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(Y.omit({ id: !0 }).shape), gn = e.object({
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 = /* @__PURE__ */ function(e) {
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
- }({}), er = e.object({
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 tr = e.object({
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
- }), nr = e.object({
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
- }), rr = e.object({
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
- }), ir = e.object({
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
- }), ar = e.object({
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
- }), or = e.object({
2208
- borders: tr,
2209
- colors: nr,
2291
+ }), br = e.object({
2292
+ borders: hr,
2293
+ colors: gr,
2210
2294
  displayName: e.string(),
2211
- fonts: rr,
2212
- page_background: ir,
2213
- widget: ar
2214
- }), sr = or.extend({ themeId: e.string() }), cr = e.object({
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
- }), lr = e.object({
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
- }), ur = e.object({
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: lr,
2233
- handlers: e.array(ur).min(1)
2234
- }), dr = $.extend({
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
- }), fr = $.partial().omit({
2323
+ }), Er = $.partial().omit({
2240
2324
  id: !0,
2241
2325
  custom_domain_id: !0
2242
- }), pr = e.object({
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
- }), mr = e.enum([
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
- ]), hr = e.object({
2262
- template: mr,
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
- }), gr = e.object({
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
- }), _r = gr.extend({
2374
+ }), jr = Ar.extend({
2291
2375
  created_at: e.string(),
2292
2376
  revoked_at: e.string().optional()
2293
- }), vr = e.object({
2377
+ }), Mr = e.object({
2294
2378
  to: e.string(),
2295
2379
  message: e.string()
2296
- }), yr = e.object({
2380
+ }), Nr = e.object({
2297
2381
  name: e.string(),
2298
2382
  options: e.object({})
2299
- }), br = e.object({
2383
+ }), Pr = e.object({
2300
2384
  value: e.string(),
2301
2385
  description: e.string().optional()
2302
- }), xr = e.object({
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
- }), Sr = e.object({
2394
+ }), Ir = e.object({
2311
2395
  id: e.string().optional(),
2312
2396
  name: e.string(),
2313
2397
  identifier: e.string(),
2314
- scopes: e.array(br).optional(),
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,30 +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: xr.optional(),
2406
+ options: Fr.optional(),
2323
2407
  is_system: e.boolean().optional(),
2324
2408
  metadata: e.record(e.string(), e.any()).optional()
2325
- }), Cr = Sr.extend({
2409
+ }), Lr = Ir.extend({
2326
2410
  created_at: e.string().optional(),
2327
2411
  updated_at: e.string().optional()
2328
- }), wr = e.array(Cr), Tr = e.object({
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
- }), Er = Tr.extend({ created_at: e.string() }), Dr = e.array(Er), Or = e.object({
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
- }), kr = Or.extend({ id: e.string() }), Ar = e.object({
2421
+ }), Ur = Hr.extend({ id: e.string() }), Wr = e.object({
2422
+ user_id: e.string(),
2423
+ last_login: e.string().optional(),
2424
+ last_ip: e.string().optional(),
2425
+ login_count: e.number().default(0),
2426
+ failed_logins: e.array(e.string()).optional(),
2427
+ last_password_reset: e.string().optional()
2428
+ }), Gr = e.object({
2338
2429
  user_id: e.string(),
2339
2430
  resource_server_identifier: e.string(),
2340
2431
  permission_name: e.string(),
2341
2432
  organization_id: e.string().optional()
2342
- }), jr = Ar.extend({
2433
+ }), Kr = Gr.extend({
2343
2434
  tenant_id: e.string(),
2344
2435
  created_at: e.string().optional()
2345
- }), Mr = e.array(jr), Nr = e.object({
2436
+ }), qr = e.array(Kr), Jr = e.object({
2346
2437
  user_id: e.string(),
2347
2438
  resource_server_identifier: e.string(),
2348
2439
  resource_server_name: e.string(),
@@ -2350,65 +2441,65 @@ var tr = e.object({
2350
2441
  description: e.string().nullable().optional(),
2351
2442
  created_at: e.string().optional(),
2352
2443
  organization_id: e.string().optional()
2353
- }), Pr = e.array(Nr), Fr = e.object({
2444
+ }), Yr = e.array(Jr), Xr = e.object({
2354
2445
  user_id: e.string(),
2355
2446
  role_id: e.string(),
2356
2447
  organization_id: e.string().optional()
2357
- }), Ir = Fr.extend({
2448
+ }), Zr = Xr.extend({
2358
2449
  tenant_id: e.string(),
2359
2450
  created_at: e.string().optional()
2360
- }), Lr = e.array(Ir), Rr = e.object({
2451
+ }), Qr = e.array(Zr), $r = e.object({
2361
2452
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
2362
2453
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
2363
2454
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
2364
2455
  is_system: e.boolean().optional(),
2365
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." })
2366
- }), zr = Rr.extend({
2457
+ }), ei = $r.extend({
2367
2458
  id: e.string().openapi({ description: "The unique identifier of the role" }),
2368
2459
  created_at: e.string().optional(),
2369
2460
  updated_at: e.string().optional()
2370
- }), Br = e.array(zr), Vr = e.object({
2461
+ }), ti = e.array(ei), ni = e.object({
2371
2462
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
2372
2463
  colors: e.object({
2373
2464
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
2374
2465
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
2375
2466
  }).optional()
2376
- }).optional(), Hr = e.object({
2467
+ }).optional(), ri = e.object({
2377
2468
  connection_id: e.string().openapi({ description: "ID of the connection" }),
2378
2469
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
2379
2470
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
2380
2471
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
2381
- }), Ur = e.object({ client_credentials: e.object({
2472
+ }), ii = e.object({ client_credentials: e.object({
2382
2473
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
2383
2474
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
2384
2475
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
2385
- }).optional() }).optional(), Wr = e.object({
2476
+ }).optional() }).optional(), ai = e.object({
2386
2477
  id: e.string().optional(),
2387
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." }),
2388
2479
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
2389
- branding: Vr,
2480
+ branding: ni,
2390
2481
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
2391
- enabled_connections: e.array(Hr).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
2392
- token_quota: Ur
2393
- }), Gr = Wr.extend(t.shape).extend({
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({
2394
2485
  id: e.string(),
2395
2486
  name: e.string().min(1).openapi({ description: "The name of the organization" })
2396
- }), Kr = e.object({
2487
+ }), si = e.object({
2397
2488
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
2398
2489
  assign_membership_on_login: e.boolean().optional().default(!1),
2399
2490
  show_as_button: e.boolean().optional().default(!0),
2400
2491
  is_signup_enabled: e.boolean().optional().default(!0)
2401
- }), qr = Kr.extend({
2492
+ }), ci = si.extend({
2402
2493
  connection: e.object({
2403
2494
  name: e.string().optional(),
2404
2495
  strategy: e.string().optional()
2405
2496
  }).optional(),
2406
2497
  created_at: e.string().optional(),
2407
2498
  updated_at: e.string().optional()
2408
- }), Jr = e.array(qr), Yr = e.object({
2499
+ }), li = e.array(ci), ui = e.object({
2409
2500
  user_id: e.string().openapi({ description: "ID of the user" }),
2410
2501
  organization_id: e.string().openapi({ description: "ID of the organization" })
2411
- }), Xr = Yr.extend(t.shape).extend({ id: e.string() }), Zr = e.object({
2502
+ }), di = ui.extend(t.shape).extend({ id: e.string() }), fi = e.object({
2412
2503
  idle_session_lifetime: e.number().default(72),
2413
2504
  session_lifetime: e.number().default(168),
2414
2505
  session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
@@ -2487,7 +2578,7 @@ var tr = e.object({
2487
2578
  }).optional(),
2488
2579
  phone_message: e.object({ message: e.string().optional() }).optional()
2489
2580
  }).optional()
2490
- }), Qr = e.object({
2581
+ }), pi = e.object({
2491
2582
  date: e.string().openapi({
2492
2583
  description: "Date these events occurred in ISO 8601 format",
2493
2584
  example: "2025-12-19"
@@ -2512,10 +2603,10 @@ var tr = e.object({
2512
2603
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2513
2604
  example: "2025-12-19T00:00:00.000Z"
2514
2605
  })
2515
- }), $r = e.number().openapi({
2606
+ }), mi = e.number().openapi({
2516
2607
  description: "Number of active users in the last 30 days",
2517
2608
  example: 1234
2518
- }), ei = e.enum([
2609
+ }), hi = e.enum([
2519
2610
  "active-users",
2520
2611
  "logins",
2521
2612
  "signups",
@@ -2526,46 +2617,46 @@ var tr = e.object({
2526
2617
  "mfa",
2527
2618
  "email-verifications",
2528
2619
  "codes-sent"
2529
- ]), ti = e.enum([
2620
+ ]), gi = e.enum([
2530
2621
  "hour",
2531
2622
  "day",
2532
2623
  "week",
2533
2624
  "month"
2534
- ]), ni = e.enum([
2625
+ ]), _i = e.enum([
2535
2626
  "time",
2536
2627
  "connection",
2537
2628
  "client_id",
2538
2629
  "user_type",
2539
2630
  "event"
2540
- ]), ri = e.enum([
2631
+ ]), vi = e.enum([
2541
2632
  "password",
2542
2633
  "social",
2543
2634
  "passwordless",
2544
2635
  "enterprise"
2545
- ]), ii = e.object({
2636
+ ]), yi = e.object({
2546
2637
  name: e.string(),
2547
2638
  type: e.string()
2548
- }), ai = e.object({
2639
+ }), bi = e.object({
2549
2640
  elapsed: e.number(),
2550
2641
  rows_read: e.number().optional(),
2551
2642
  bytes_read: e.number().optional()
2552
- }), oi = e.object({
2553
- meta: e.array(ii),
2643
+ }), xi = e.object({
2644
+ meta: e.array(yi),
2554
2645
  data: e.array(e.record(e.string(), e.any())),
2555
2646
  rows: e.number(),
2556
2647
  rows_before_limit_at_least: e.number().optional(),
2557
- statistics: ai.optional()
2558
- }), 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({
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({
2559
2650
  type: "object",
2560
2651
  additionalProperties: {
2561
2652
  type: "object",
2562
2653
  additionalProperties: { type: "string" }
2563
2654
  }
2564
- }), li = e.object({
2565
- prompt: si,
2655
+ }), wi = e.object({
2656
+ prompt: Si,
2566
2657
  language: e.string(),
2567
- custom_text: ci
2568
- }), ui = {
2658
+ custom_text: Ci
2659
+ }), Ti = {
2569
2660
  EMAIL: "email",
2570
2661
  SMS: "sms",
2571
2662
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2581,11 +2672,11 @@ var tr = e.object({
2581
2672
  WAAD: "waad",
2582
2673
  ADFS: "adfs",
2583
2674
  OKTA: "okta"
2584
- }, di = {
2675
+ }, Ei = {
2585
2676
  DATABASE: "database",
2586
2677
  SOCIAL: "social",
2587
2678
  PASSWORDLESS: "passwordless"
2588
- }, fi = e.enum([
2679
+ }, Di = e.enum([
2589
2680
  "phone",
2590
2681
  "totp",
2591
2682
  "email",
@@ -2593,9 +2684,9 @@ var tr = e.object({
2593
2684
  "webauthn-roaming",
2594
2685
  "webauthn-platform",
2595
2686
  "passkey"
2596
- ]), pi = e.object({
2687
+ ]), Oi = e.object({
2597
2688
  user_id: e.string(),
2598
- type: fi,
2689
+ type: Di,
2599
2690
  phone_number: e.string().optional(),
2600
2691
  totp_secret: e.string().optional(),
2601
2692
  credential_id: e.string().optional(),
@@ -2606,7 +2697,7 @@ var tr = e.object({
2606
2697
  friendly_name: e.string().optional(),
2607
2698
  confirmed: e.boolean().default(!1)
2608
2699
  });
2609
- function mi(t, n) {
2700
+ function ki(t, n) {
2610
2701
  t.type === "phone" && !t.phone_number && n.addIssue({
2611
2702
  code: e.ZodIssueCode.custom,
2612
2703
  message: "phone_number is required when type is 'phone'",
@@ -2629,18 +2720,18 @@ function mi(t, n) {
2629
2720
  path: ["public_key"]
2630
2721
  }));
2631
2722
  }
2632
- var hi = pi.superRefine(mi), gi = pi.extend({
2723
+ var Ai = Oi.superRefine(ki), ji = Oi.extend({
2633
2724
  id: e.string(),
2634
2725
  created_at: e.string(),
2635
2726
  updated_at: e.string()
2636
- }).superRefine(mi), _i = e.object({
2727
+ }).superRefine(ki), Mi = e.object({
2637
2728
  id: e.string().optional(),
2638
2729
  created_at: e.string().datetime({ offset: !0 }).optional(),
2639
2730
  updated_at: e.string().datetime({ offset: !0 }).optional()
2640
2731
  });
2641
2732
  //#endregion
2642
2733
  //#region src/utils/user-id.ts
2643
- function vi(e) {
2734
+ function Ni(e) {
2644
2735
  let [t, n] = e.split("|");
2645
2736
  if (!t || !n) throw Error(`Invalid user_id: ${e}`);
2646
2737
  return {
@@ -2650,7 +2741,7 @@ function vi(e) {
2650
2741
  }
2651
2742
  //#endregion
2652
2743
  //#region src/utils/passthrough.ts
2653
- function yi(e) {
2744
+ function Pi(e) {
2654
2745
  let { primary: t, secondaries: n, syncMethods: r = [
2655
2746
  "create",
2656
2747
  "rawCreate",
@@ -2684,12 +2775,12 @@ function yi(e) {
2684
2775
  } : i.bind(e) : i;
2685
2776
  } });
2686
2777
  }
2687
- function bi(e) {
2778
+ function Fi(e) {
2688
2779
  return e;
2689
2780
  }
2690
2781
  //#endregion
2691
2782
  //#region src/utils/connection-attributes.ts
2692
- function xi(e) {
2783
+ function Ii(e) {
2693
2784
  let t = e?.options;
2694
2785
  if (!t) return {
2695
2786
  usernameIdentifierActive: !1,
@@ -2712,8 +2803,8 @@ function xi(e) {
2712
2803
  }
2713
2804
  //#endregion
2714
2805
  //#region src/utils/guards.ts
2715
- function Si(e) {
2806
+ function Li(e) {
2716
2807
  return typeof e == "object" && !!e && !Array.isArray(e);
2717
2808
  }
2718
2809
  //#endregion
2719
- 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, $n as GrantType, An as LocationInfo, X as LogTypes, yn as LoginSessionState, Pe as NodeType, Ce as RedirectTargetEnum, ui as Strategy, di 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, $r as activeUsersResponseSchema, le as actorSchema, h as addressSchema, ii as analyticsColumnMetaSchema, ni as analyticsGroupBySchema, ti as analyticsIntervalSchema, oi as analyticsQueryResponseSchema, ei as analyticsResourceSchema, ai as analyticsStatisticsSchema, ri 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, hi as authenticationMethodInsertSchema, gi as authenticationMethodSchema, fi as authenticationMethodTypeSchema, g as baseUserSchema, Mt as blockComponentSchema, tr 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, nr as colorsSchema, Ut as componentMessageSchema, N as componentSchema, Xe as connectionInsertSchema, Ye as connectionOptionsSchema, Ze as connectionSchema, w as coordinatesSchema, yi as createPassthroughAdapter, bi as createWriteOnlyAdapter, nt as customDomainCertificateUploadSchema, B as customDomainInsertSchema, $e as customDomainSchema, et as customDomainUpdateSchema, tt as customDomainWithTenantIdSchema, li as customTextEntrySchema, ci as customTextSchema, Qr as dailyStatsSchema, pr as emailProviderSchema, mr as emailTemplateNameSchema, hr 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, rr as fontsSchema, It as formControlSchema, Vt as formInsertSchema, G as formNodeComponentDefinition, Bt as formNodeSchema, Ht as formSchema, M as genericComponentSchema, L as genericNodeSchema, xi as getConnectionIdentifierConfig, On as getLogTypeCategory, Dn as getLogTypeDescription, Or as grantInsertSchema, kr as grantSchema, ur as handlerConfigSchema, dn as hookCodeInsertSchema, fn as hookCodeSchema, an as hookInsertSchema, un as hookSchema, q as hookTemplateId, $t as hookTemplates, m as identitySchema, _i as importMetadataSchema, Y as inviteInsertSchema, hn as inviteSchema, mn as inviteeSchema, pn as inviterSchema, Kt as isBlockComponent, Jt as isFieldComponent, Si 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, lr as matchSchema, Ln as migrationProviderTypeSchema, Rn as migrationSourceCredentialsSchema, zn as migrationSourceInsertSchema, Bn as migrationSourceSchema, R as nodeSchema, vn as openIDConfigurationSchema, Vr as organizationBrandingSchema, Kr as organizationConnectionInsertSchema, Jr as organizationConnectionListSchema, qr as organizationConnectionSchema, Hr as organizationEnabledConnectionSchema, Wr as organizationInsertSchema, Gr as organizationSchema, Ur as organizationTokenQuotaSchema, ir as pageBackgroundSchema, vi as parseUserId, Gn as passwordInsertSchema, Kn as passwordSchema, p as profileDataSchema, si as promptScreenSchema, cr as promptSettingSchema, $ as proxyRouteInsertSchema, dr as proxyRouteSchema, fr as proxyRouteUpdateSchema, u as redirectActionSchema, gr as refreshTokenInsertSchema, _r as refreshTokenSchema, de as requestContextSchema, Sr as resourceServerInsertSchema, wr as resourceServerListSchema, xr as resourceServerOptionsSchema, Cr as resourceServerSchema, br as resourceServerScopeSchema, fe as responseContextSchema, O as richTextComponentSchema, Rr as roleInsertSchema, Br as roleListSchema, Tr as rolePermissionInsertSchema, Dr as rolePermissionListSchema, Er as rolePermissionSchema, zr as roleSchema, Wt as screenLinkSchema, Jn as sessionInsertSchema, Yn as sessionSchema, Xn as signingKeySchema, yr as smsProviderSchema, vr as smsSendParamsSchema, Fe as startSchema, Un as suspiciousIpThrottlingSchema, ue as targetSchema, Zn as tenantInsertSchema, Qn as tenantSchema, Zr as tenantSettingsSchema, or as themeInsertSchema, sr as themeSchema, er as tokenResponseSchema, Ee as totalsSchema, Gt as uiScreenSchema, _ as userInsertSchema, Yr as userOrganizationInsertSchema, Xr as userOrganizationSchema, Ar as userPermissionInsertSchema, Mr as userPermissionListSchema, jr as userPermissionSchema, Pr as userPermissionWithDetailsListSchema, Nr as userPermissionWithDetailsSchema, Oe as userResponseSchema, Fr as userRoleInsertSchema, Lr as userRoleListSchema, Ir as userRoleSchema, v as userSchema, Qe as verificationMethodsSchema, Nt as widgetComponentSchema, ar as widgetSchema };
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 };