@authhero/saml 0.5.8 → 0.5.10

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/core.mjs CHANGED
@@ -3926,7 +3926,10 @@ var wn = U, W = e.object({
3926
3926
  On.partial().extend({
3927
3927
  status: e.enum(["draft", "built"]).optional(),
3928
3928
  deployed_at: e.string().optional()
3929
- }), On.extend({
3929
+ });
3930
+ //#endregion
3931
+ //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3932
+ var kn = On.extend({
3930
3933
  id: e.string(),
3931
3934
  tenant_id: e.string(),
3932
3935
  status: e.enum(["draft", "built"]).default("built"),
@@ -3935,26 +3938,25 @@ On.partial().extend({
3935
3938
  name: e.string(),
3936
3939
  value: e.string().optional()
3937
3940
  })).optional()
3938
- }).extend(W.shape);
3939
- //#endregion
3940
- //#region ../adapter-interfaces/dist/adapter-interfaces.mjs
3941
- var kn = e.string(), An = e.enum([
3941
+ }).extend(W.shape), An = e.object({ name: e.string() });
3942
+ kn.extend({ secrets: e.array(An).optional() });
3943
+ var jn = e.string(), Mn = e.enum([
3942
3944
  "unspecified",
3943
3945
  "pending",
3944
3946
  "final",
3945
3947
  "partial",
3946
3948
  "canceled",
3947
3949
  "suspended"
3948
- ]), jn = e.object({
3950
+ ]), Nn = e.object({
3949
3951
  id: e.string(),
3950
3952
  msg: e.string(),
3951
3953
  url: e.string().optional()
3952
- }), Mn = e.object({
3954
+ }), Pn = e.object({
3953
3955
  action_name: e.string(),
3954
- error: jn.nullable(),
3956
+ error: Nn.nullable(),
3955
3957
  started_at: e.string(),
3956
3958
  ended_at: e.string()
3957
- }), Nn = e.object({
3959
+ }), Fn = e.object({
3958
3960
  level: e.enum([
3959
3961
  "log",
3960
3962
  "info",
@@ -3963,17 +3965,17 @@ var kn = e.string(), An = e.enum([
3963
3965
  "debug"
3964
3966
  ]),
3965
3967
  message: e.string()
3966
- }), Pn = e.array(e.object({
3968
+ }), In = e.array(e.object({
3967
3969
  action_name: e.string(),
3968
- lines: e.array(Nn)
3970
+ lines: e.array(Fn)
3969
3971
  }));
3970
3972
  e.object({
3971
3973
  id: e.string(),
3972
3974
  tenant_id: e.string(),
3973
- trigger_id: kn,
3974
- status: An,
3975
- results: e.array(Mn),
3976
- logs: Pn.optional(),
3975
+ trigger_id: jn,
3976
+ status: Mn,
3977
+ results: e.array(Pn),
3978
+ logs: In.optional(),
3977
3979
  created_at: e.string(),
3978
3980
  updated_at: e.string()
3979
3981
  }).omit({
@@ -3993,12 +3995,12 @@ e.object({
3993
3995
  tenant_id: e.string(),
3994
3996
  number: e.number().int()
3995
3997
  }).extend(W.shape);
3996
- var Fn = e.enum([
3998
+ var Ln = e.enum([
3997
3999
  "user_action",
3998
4000
  "admin_action",
3999
4001
  "system",
4000
4002
  "api"
4001
- ]), In = e.object({
4003
+ ]), Rn = e.object({
4002
4004
  type: e.enum([
4003
4005
  "user",
4004
4006
  "admin",
@@ -4012,7 +4014,7 @@ var Fn = e.enum([
4012
4014
  org_name: e.string().optional(),
4013
4015
  scopes: e.array(e.string()).optional(),
4014
4016
  client_id: e.string().optional()
4015
- }), Ln = e.object({
4017
+ }), zn = e.object({
4016
4018
  type: e.string(),
4017
4019
  id: e.string(),
4018
4020
  before: e.record(e.string(), e.unknown()).optional(),
@@ -4021,7 +4023,7 @@ var Fn = e.enum([
4021
4023
  old: e.unknown(),
4022
4024
  new: e.unknown()
4023
4025
  })).optional()
4024
- }), Rn = e.object({
4026
+ }), Bn = e.object({
4025
4027
  method: e.string(),
4026
4028
  path: e.string(),
4027
4029
  query: e.record(e.string(), e.string()).optional(),
@@ -4030,17 +4032,17 @@ var Fn = e.enum([
4030
4032
  user_agent: e.string().optional(),
4031
4033
  correlation_id: e.string().optional(),
4032
4034
  redirect_uri: e.string().optional()
4033
- }), zn = e.object({
4035
+ }), Vn = e.object({
4034
4036
  status_code: e.number(),
4035
4037
  body: e.unknown().optional()
4036
- }), Bn = e.object({
4038
+ }), Hn = e.object({
4037
4039
  country_code: e.string(),
4038
4040
  city_name: e.string(),
4039
4041
  latitude: e.string(),
4040
4042
  longitude: e.string(),
4041
4043
  time_zone: e.string(),
4042
4044
  continent_code: e.string()
4043
- }), Vn = e.object({
4045
+ }), Un = e.object({
4044
4046
  name: e.string(),
4045
4047
  version: e.string(),
4046
4048
  env: e.record(e.string(), e.string()).optional()
@@ -4050,11 +4052,11 @@ e.object({
4050
4052
  event_type: e.string(),
4051
4053
  log_type: e.string(),
4052
4054
  description: e.string().optional(),
4053
- category: Fn,
4054
- actor: In,
4055
- target: Ln,
4056
- request: Rn,
4057
- response: zn.optional(),
4055
+ category: Ln,
4056
+ actor: Rn,
4057
+ target: zn,
4058
+ request: Bn,
4059
+ response: Vn.optional(),
4058
4060
  connection: e.string().optional(),
4059
4061
  connection_id: e.string().optional(),
4060
4062
  client_name: e.string().optional(),
@@ -4062,8 +4064,8 @@ e.object({
4062
4064
  strategy_type: e.string().optional(),
4063
4065
  audience: e.string().optional(),
4064
4066
  scope: e.string().optional(),
4065
- location: Bn.optional(),
4066
- auth0_client: Vn.optional(),
4067
+ location: Hn.optional(),
4068
+ auth0_client: Un.optional(),
4067
4069
  hostname: e.string(),
4068
4070
  is_mobile: e.boolean().optional(),
4069
4071
  timestamp: e.string()
@@ -4078,14 +4080,14 @@ e.object({
4078
4080
  "SEND_REQUEST",
4079
4081
  "SEND_EMAIL"
4080
4082
  ]), e.enum(["VERIFY_EMAIL"]);
4081
- var Hn = e.object({
4083
+ var Wn = e.object({
4082
4084
  require_mx_record: e.boolean().optional(),
4083
4085
  block_aliases: e.boolean().optional(),
4084
4086
  block_free_emails: e.boolean().optional(),
4085
4087
  block_disposable_emails: e.boolean().optional(),
4086
4088
  blocklist: e.array(e.string()).optional(),
4087
4089
  allowlist: e.array(e.string()).optional()
4088
- }), Un = e.object({
4090
+ }), Gn = e.object({
4089
4091
  id: e.string(),
4090
4092
  alias: e.string().max(100).optional(),
4091
4093
  type: e.literal("AUTH0"),
@@ -4097,7 +4099,7 @@ var Hn = e.object({
4097
4099
  user_id: e.string(),
4098
4100
  changes: e.record(e.string(), e.any())
4099
4101
  })
4100
- }), Wn = e.object({
4102
+ }), Kn = e.object({
4101
4103
  id: e.string(),
4102
4104
  alias: e.string().max(100).optional(),
4103
4105
  type: e.literal("EMAIL"),
@@ -4106,13 +4108,13 @@ var Hn = e.object({
4106
4108
  mask_output: e.boolean().optional(),
4107
4109
  params: e.object({
4108
4110
  email: e.string(),
4109
- rules: Hn.optional()
4111
+ rules: Wn.optional()
4110
4112
  })
4111
- }), Gn = e.enum([
4113
+ }), qn = e.enum([
4112
4114
  "change-email",
4113
4115
  "account",
4114
4116
  "custom"
4115
- ]), Kn = e.object({
4117
+ ]), Jn = e.object({
4116
4118
  id: e.string(),
4117
4119
  alias: e.string().max(100).optional(),
4118
4120
  type: e.literal("REDIRECT"),
@@ -4120,17 +4122,17 @@ var Hn = e.object({
4120
4122
  allow_failure: e.boolean().optional(),
4121
4123
  mask_output: e.boolean().optional(),
4122
4124
  params: e.object({
4123
- target: Gn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4125
+ target: qn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
4124
4126
  custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
4125
4127
  })
4126
- }), qn = e.union([
4127
- Un,
4128
- Wn,
4129
- Kn
4128
+ }), Yn = e.union([
4129
+ Gn,
4130
+ Kn,
4131
+ Jn
4130
4132
  ]);
4131
4133
  e.object({
4132
4134
  name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
4133
- actions: e.array(qn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4135
+ actions: e.array(Yn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
4134
4136
  }).extend(W.shape).extend({ id: e.string().openapi({
4135
4137
  description: "Unique identifier for the flow",
4136
4138
  example: "af_12tMpdJ3iek7svMyZkSh5M"
@@ -4147,7 +4149,7 @@ e.object({
4147
4149
  total: e.number().optional(),
4148
4150
  next: e.string().optional()
4149
4151
  });
4150
- var Jn = e.object({
4152
+ var Xn = e.object({
4151
4153
  email: e.string().optional(),
4152
4154
  email_verified: e.boolean().optional(),
4153
4155
  name: e.string().optional(),
@@ -4156,7 +4158,7 @@ var Jn = e.object({
4156
4158
  phone_number: e.string().optional(),
4157
4159
  phone_verified: e.boolean().optional(),
4158
4160
  family_name: e.string().optional()
4159
- }).catchall(e.any()), Yn = e.object({
4161
+ }).catchall(e.any()), Zn = e.object({
4160
4162
  connection: e.string(),
4161
4163
  user_id: e.string(),
4162
4164
  provider: e.string(),
@@ -4169,15 +4171,15 @@ var Jn = e.object({
4169
4171
  access_token: e.string().optional(),
4170
4172
  access_token_secret: e.string().optional(),
4171
4173
  refresh_token: e.string().optional(),
4172
- profileData: Jn.optional()
4173
- }), Xn = e.object({
4174
+ profileData: Xn.optional()
4175
+ }), Qn = e.object({
4174
4176
  formatted: e.string().optional(),
4175
4177
  street_address: e.string().optional(),
4176
4178
  locality: e.string().optional(),
4177
4179
  region: e.string().optional(),
4178
4180
  postal_code: e.string().optional(),
4179
4181
  country: e.string().optional()
4180
- }).optional(), Zn = e.object({
4182
+ }).optional(), $n = e.object({
4181
4183
  email: e.string().transform((e) => e.toLowerCase()).optional(),
4182
4184
  username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
4183
4185
  phone_number: e.string().optional(),
@@ -4200,9 +4202,9 @@ var Jn = e.object({
4200
4202
  gender: e.string().optional(),
4201
4203
  birthdate: e.string().optional(),
4202
4204
  zoneinfo: e.string().optional(),
4203
- address: Xn
4205
+ address: Qn
4204
4206
  });
4205
- Zn.extend({
4207
+ $n.extend({
4206
4208
  email_verified: e.boolean().default(!1),
4207
4209
  verify_email: e.boolean().optional(),
4208
4210
  last_ip: e.string().optional(),
@@ -4223,24 +4225,24 @@ Zn.extend({
4223
4225
  is_social: e.boolean(),
4224
4226
  email: e.string().optional(),
4225
4227
  login_count: e.number().default(0),
4226
- identities: e.array(Yn).optional()
4227
- }).omit({ registration_completed_at: !0 }), Zn.extend({
4228
+ identities: e.array(Zn).optional()
4229
+ }).omit({ registration_completed_at: !0 }), $n.extend({
4228
4230
  login_count: e.number(),
4229
4231
  multifactor: e.array(e.string()).optional(),
4230
4232
  last_ip: e.string().optional(),
4231
4233
  last_login: e.string().optional(),
4232
4234
  user_id: e.string()
4233
4235
  }).catchall(e.any());
4234
- var Qn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $n = (e = 21) => {
4236
+ var er = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", tr = (e = 21) => {
4235
4237
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
4236
- for (; e--;) t += Qn[n[e] & 63];
4238
+ for (; e--;) t += er[n[e] & 63];
4237
4239
  return t;
4238
- }, er = e.object({
4240
+ }, nr = e.object({
4239
4241
  client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
4240
4242
  name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
4241
4243
  description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
4242
4244
  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)." }),
4243
- client_secret: e.string().default(() => $n()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4245
+ client_secret: e.string().default(() => tr()).optional().openapi({ description: "Client secret (which you must not make public)." }),
4244
4246
  app_type: e.enum([
4245
4247
  "native",
4246
4248
  "spa",
@@ -4315,11 +4317,11 @@ var Qn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $n
4315
4317
  refresh_token: e.object({
4316
4318
  rotation_type: e.enum(["rotating", "non-rotating"]).optional().openapi({ description: "Whether refresh tokens for this client are rotated on every exchange (Auth0 'rotating' behavior) or kept stable (legacy non-rotating). Defaults to 'non-rotating' when unset." }),
4317
4319
  leeway: e.number().int().min(0).max(600).optional().openapi({ description: "Seconds after a parent token's first rotation during which presenting it again still mints a fresh sibling child instead of triggering reuse-detection. Defaults to 30s when unset." }),
4318
- expiration_type: e.enum(["expiring", "non-expiring"]).optional().openapi({ description: "Auth0-compatible: whether refresh tokens expire." }),
4319
- token_lifetime: e.number().int().min(0).optional().openapi({ description: "Auth0-compatible: refresh-token absolute lifetime in seconds." }),
4320
- infinite_token_lifetime: e.boolean().optional().openapi({ description: "Auth0-compatible: when true, refresh tokens have no absolute expiry." }),
4321
- idle_token_lifetime: e.number().int().min(0).optional().openapi({ description: "Auth0-compatible: refresh-token idle (sliding) lifetime in seconds." }),
4322
- infinite_idle_token_lifetime: e.boolean().optional().openapi({ description: "Auth0-compatible: when true, refresh tokens have no idle expiry." })
4320
+ expiration_type: e.enum(["expiring", "non-expiring"]).optional().openapi({ description: "Whether refresh tokens for this client expire at all. 'non-expiring' overrides both the absolute and the idle lifetime." }),
4321
+ token_lifetime: e.number().int().min(0).optional().openapi({ description: "Refresh-token absolute lifetime in seconds. Falls back to the tenant's `session_lifetime` when unset." }),
4322
+ infinite_token_lifetime: e.boolean().optional().openapi({ description: "When true, refresh tokens have no absolute expiry (overrides `token_lifetime`)." }),
4323
+ idle_token_lifetime: e.number().int().min(0).optional().openapi({ description: "Refresh-token idle (sliding) lifetime in seconds, refreshed on every exchange. Falls back to the tenant's `idle_session_lifetime` when unset." }),
4324
+ infinite_idle_token_lifetime: e.boolean().optional().openapi({ description: "When true, refresh tokens have no idle expiry (overrides `idle_token_lifetime`)." })
4323
4325
  }).default({}).optional().openapi({ description: "Refresh token configuration" }),
4324
4326
  default_organization: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Defines the default Organization ID and flows" }),
4325
4327
  organization_usage: e.enum([
@@ -4357,8 +4359,8 @@ var Qn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $n
4357
4359
  e.object({
4358
4360
  created_at: e.string(),
4359
4361
  updated_at: e.string()
4360
- }).extend(er.shape).extend({ client_id: e.string() });
4361
- var tr = e.object({
4362
+ }).extend(nr.shape).extend({ client_id: e.string() });
4363
+ var rr = e.object({
4362
4364
  client_id: e.string().min(1).openapi({ description: "ID of the client." }),
4363
4365
  audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
4364
4366
  scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
@@ -4371,15 +4373,15 @@ var tr = e.object({
4371
4373
  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." }),
4372
4374
  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." }),
4373
4375
  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." })
4374
- }), nr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(tr.shape).extend({
4376
+ }), ir = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(rr.shape).extend({
4375
4377
  created_at: e.string().optional(),
4376
4378
  updated_at: e.string().optional()
4377
4379
  });
4378
- e.array(nr);
4379
- var rr = e.enum(["iat", "rat"]), ir = e.object({
4380
+ e.array(ir);
4381
+ var ar = e.enum(["iat", "rat"]), or = e.object({
4380
4382
  id: e.string(),
4381
4383
  token_hash: e.string(),
4382
- type: rr,
4384
+ type: ar,
4383
4385
  client_id: e.string().optional(),
4384
4386
  sub: e.string().optional(),
4385
4387
  constraints: e.record(e.string(), e.unknown()).optional(),
@@ -4390,23 +4392,23 @@ e.object({
4390
4392
  created_at: e.string(),
4391
4393
  used_at: e.string().optional(),
4392
4394
  revoked_at: e.string().optional()
4393
- }).extend(ir.shape);
4395
+ }).extend(or.shape);
4394
4396
  var G = e.object({
4395
4397
  x: e.number(),
4396
4398
  y: e.number()
4397
- }), ar = /* @__PURE__ */ function(e) {
4399
+ }), sr = /* @__PURE__ */ function(e) {
4398
4400
  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;
4399
- }({}), or = /* @__PURE__ */ function(e) {
4401
+ }({}), cr = /* @__PURE__ */ function(e) {
4400
4402
  return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
4401
4403
  }({}), K = e.object({
4402
4404
  id: e.string(),
4403
- category: e.nativeEnum(or),
4404
- type: e.nativeEnum(ar)
4405
- }), sr = K.extend({
4405
+ category: e.nativeEnum(cr),
4406
+ type: e.nativeEnum(sr)
4407
+ }), lr = K.extend({
4406
4408
  category: e.literal("BLOCK"),
4407
4409
  type: e.literal("RICH_TEXT"),
4408
4410
  config: e.object({ content: e.string() }).passthrough()
4409
- }), cr = K.extend({
4411
+ }), ur = K.extend({
4410
4412
  category: e.literal("BLOCK"),
4411
4413
  type: e.union([
4412
4414
  e.literal("NEXT_BUTTON"),
@@ -4414,13 +4416,13 @@ var G = e.object({
4414
4416
  e.literal("SUBMIT_BUTTON")
4415
4417
  ]),
4416
4418
  config: e.object({ text: e.string() }).passthrough()
4417
- }), lr = K.extend({
4419
+ }), dr = K.extend({
4418
4420
  category: e.literal("FIELD"),
4419
4421
  type: e.literal("LEGAL"),
4420
4422
  required: e.boolean().optional(),
4421
4423
  sensitive: e.boolean().optional(),
4422
4424
  config: e.object({ text: e.string() }).passthrough()
4423
- }), ur = K.extend({
4425
+ }), fr = K.extend({
4424
4426
  category: e.literal("FIELD"),
4425
4427
  type: e.union([
4426
4428
  e.literal("TEXT"),
@@ -4440,26 +4442,26 @@ var G = e.object({
4440
4442
  label: e.string().optional(),
4441
4443
  placeholder: e.string().optional()
4442
4444
  }).passthrough()
4443
- }), dr = e.object({
4445
+ }), pr = e.object({
4444
4446
  id: e.string(),
4445
4447
  category: e.string(),
4446
4448
  type: e.string()
4447
- }).passthrough(), fr = e.union([
4448
- sr,
4449
- cr,
4449
+ }).passthrough(), mr = e.union([
4450
4450
  lr,
4451
4451
  ur,
4452
- dr
4453
- ]), pr = e.object({
4452
+ dr,
4453
+ fr,
4454
+ pr
4455
+ ]), hr = e.object({
4454
4456
  id: e.string(),
4455
4457
  type: e.literal("STEP"),
4456
4458
  coordinates: G,
4457
4459
  alias: e.string().optional(),
4458
4460
  config: e.object({
4459
- components: e.array(fr),
4461
+ components: e.array(mr),
4460
4462
  next_node: e.string()
4461
4463
  }).passthrough()
4462
- }), mr = e.object({
4464
+ }), gr = e.object({
4463
4465
  id: e.string(),
4464
4466
  type: e.literal("FLOW"),
4465
4467
  coordinates: G,
@@ -4468,7 +4470,7 @@ var G = e.object({
4468
4470
  flow_id: e.string(),
4469
4471
  next_node: e.string()
4470
4472
  })
4471
- }), hr = e.object({
4473
+ }), _r = e.object({
4472
4474
  id: e.string(),
4473
4475
  type: e.literal("ACTION"),
4474
4476
  coordinates: G,
@@ -4483,19 +4485,19 @@ var G = e.object({
4483
4485
  custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
4484
4486
  next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
4485
4487
  }).passthrough()
4486
- }), gr = e.object({
4488
+ }), vr = e.object({
4487
4489
  id: e.string(),
4488
4490
  type: e.string(),
4489
4491
  coordinates: G
4490
- }).passthrough(), _r = e.union([
4491
- pr,
4492
- mr,
4492
+ }).passthrough(), yr = e.union([
4493
4493
  hr,
4494
- gr
4495
- ]), vr = e.object({
4494
+ gr,
4495
+ _r,
4496
+ vr
4497
+ ]), br = e.object({
4496
4498
  next_node: e.string(),
4497
4499
  coordinates: G
4498
- }).passthrough(), yr = e.object({
4500
+ }).passthrough(), xr = e.object({
4499
4501
  resume_flow: e.boolean().optional(),
4500
4502
  coordinates: G
4501
4503
  }).passthrough();
@@ -4503,9 +4505,9 @@ e.object({
4503
4505
  id: e.string(),
4504
4506
  name: e.string(),
4505
4507
  languages: e.object({ primary: e.string() }).passthrough(),
4506
- nodes: e.array(_r),
4507
- start: vr,
4508
- ending: yr,
4508
+ nodes: e.array(yr),
4509
+ start: br,
4510
+ ending: xr,
4509
4511
  created_at: e.string(),
4510
4512
  updated_at: e.string(),
4511
4513
  links: e.object({
@@ -4517,24 +4519,24 @@ e.object({
4517
4519
  created_at: !0,
4518
4520
  updated_at: !0
4519
4521
  });
4520
- var br = /* @__PURE__ */ function(e) {
4522
+ var Sr = /* @__PURE__ */ function(e) {
4521
4523
  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;
4522
- }({}), xr = /* @__PURE__ */ function(e) {
4524
+ }({}), Cr = /* @__PURE__ */ function(e) {
4523
4525
  return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
4524
- }({}), Sr = /* @__PURE__ */ function(e) {
4526
+ }({}), wr = /* @__PURE__ */ function(e) {
4525
4527
  return e.S256 = "S256", e.Plain = "plain", e;
4526
- }({}), Cr = e.union([e.null(), e.object({
4528
+ }({}), Tr = e.union([e.null(), e.object({
4527
4529
  essential: e.boolean().optional(),
4528
4530
  value: e.unknown().optional(),
4529
4531
  values: e.array(e.unknown()).optional()
4530
- })]).nullable(), wr = e.object({
4531
- userinfo: e.record(e.string(), Cr).optional(),
4532
- id_token: e.record(e.string(), Cr).optional()
4533
- }), Tr = e.object({
4532
+ })]).nullable(), Er = e.object({
4533
+ userinfo: e.record(e.string(), Tr).optional(),
4534
+ id_token: e.record(e.string(), Tr).optional()
4535
+ }), Dr = e.object({
4534
4536
  client_id: e.string(),
4535
4537
  act_as: e.string().optional(),
4536
- response_type: e.nativeEnum(br).optional(),
4537
- response_mode: e.nativeEnum(xr).optional(),
4538
+ response_type: e.nativeEnum(Sr).optional(),
4539
+ response_mode: e.nativeEnum(Cr).optional(),
4538
4540
  redirect_uri: e.string().optional(),
4539
4541
  audience: e.string().optional(),
4540
4542
  organization: e.string().optional(),
@@ -4542,13 +4544,13 @@ var br = /* @__PURE__ */ function(e) {
4542
4544
  nonce: e.string().optional(),
4543
4545
  scope: e.string().optional(),
4544
4546
  prompt: e.string().optional(),
4545
- code_challenge_method: e.nativeEnum(Sr).optional(),
4547
+ code_challenge_method: e.nativeEnum(wr).optional(),
4546
4548
  code_challenge: e.string().optional(),
4547
4549
  username: e.string().optional(),
4548
4550
  ui_locales: e.string().optional(),
4549
4551
  max_age: e.number().optional(),
4550
4552
  acr_values: e.string().optional(),
4551
- claims: wr.optional(),
4553
+ claims: Er.optional(),
4552
4554
  vendor_id: e.string().optional()
4553
4555
  });
4554
4556
  e.object({
@@ -4571,20 +4573,21 @@ e.object({
4571
4573
  "auto"
4572
4574
  ]).optional()
4573
4575
  });
4574
- var Er = e.enum([
4576
+ var Or = e.enum([
4575
4577
  "password_reset",
4576
4578
  "email_verification",
4577
4579
  "otp",
4578
4580
  "mfa_otp",
4579
4581
  "authorization_code",
4580
4582
  "oauth2_state",
4581
- "ticket"
4583
+ "ticket",
4584
+ "client_assertion_jti"
4582
4585
  ]);
4583
4586
  e.object({
4584
4587
  code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
4585
- login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
4588
+ login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
4586
4589
  connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
4587
- code_type: Er,
4590
+ code_type: Or,
4588
4591
  code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
4589
4592
  code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
4590
4593
  code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
@@ -4596,7 +4599,7 @@ e.object({
4596
4599
  used_at: e.string().optional(),
4597
4600
  user_id: e.string().optional()
4598
4601
  }).extend({ created_at: e.string() });
4599
- var Dr = e.object({
4602
+ var kr = e.object({
4600
4603
  kid: e.string().optional(),
4601
4604
  team_id: e.string().optional(),
4602
4605
  realms: e.string().optional(),
@@ -4716,26 +4719,26 @@ var Dr = e.object({
4716
4719
  "never_on_login"
4717
4720
  ]).optional()
4718
4721
  });
4719
- function Or(e) {
4722
+ function Ar(e) {
4720
4723
  if (e !== null) {
4721
- if (Array.isArray(e)) return e.filter((e) => e !== null).map(Or);
4724
+ if (Array.isArray(e)) return e.filter((e) => e !== null).map(Ar);
4722
4725
  if (e && typeof e == "object") {
4723
4726
  let t = {};
4724
- for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Or(r));
4727
+ for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Ar(r));
4725
4728
  return t;
4726
4729
  }
4727
4730
  return e;
4728
4731
  }
4729
4732
  }
4730
- var kr = e.object({
4733
+ var jr = e.object({
4731
4734
  id: e.string().optional(),
4732
4735
  name: e.string(),
4733
4736
  display_name: e.string().optional(),
4734
4737
  strategy: e.string(),
4735
- options: e.preprocess((e) => e === null ? {} : Or(e), Dr).default({}),
4738
+ options: e.preprocess((e) => e === null ? {} : Ar(e), kr).default({}),
4736
4739
  enabled_clients: e.array(e.string()).default([]).optional(),
4737
- response_type: e.nativeEnum(br).optional(),
4738
- response_mode: e.nativeEnum(xr).optional(),
4740
+ response_type: e.nativeEnum(Sr).optional(),
4741
+ response_mode: e.nativeEnum(Cr).optional(),
4739
4742
  is_domain_connection: e.boolean().optional(),
4740
4743
  show_as_button: e.boolean().optional(),
4741
4744
  metadata: e.record(e.string(), e.any()).optional(),
@@ -4745,8 +4748,8 @@ e.object({
4745
4748
  id: e.string(),
4746
4749
  created_at: e.string().transform((e) => e === null ? "" : e),
4747
4750
  updated_at: e.string().transform((e) => e === null ? "" : e)
4748
- }).extend(kr.shape);
4749
- var Ar = e.object({
4751
+ }).extend(jr.shape);
4752
+ var Mr = e.object({
4750
4753
  domain: e.string(),
4751
4754
  custom_domain_id: e.string().optional(),
4752
4755
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -4760,7 +4763,7 @@ var Ar = e.object({
4760
4763
  "null"
4761
4764
  ]).optional(),
4762
4765
  domain_metadata: e.record(e.string(), e.string().max(255)).optional()
4763
- }), jr = e.discriminatedUnion("name", [e.object({
4766
+ }), Nr = e.discriminatedUnion("name", [e.object({
4764
4767
  name: e.literal("txt"),
4765
4768
  record: e.string(),
4766
4769
  domain: e.string()
@@ -4768,7 +4771,7 @@ var Ar = e.object({
4768
4771
  name: e.literal("http"),
4769
4772
  http_body: e.string(),
4770
4773
  http_url: e.string()
4771
- })]), Mr = Ar.extend({
4774
+ })]), Pr = Mr.extend({
4772
4775
  custom_domain_id: e.string(),
4773
4776
  primary: e.boolean(),
4774
4777
  status: e.enum([
@@ -4778,28 +4781,28 @@ var Ar = e.object({
4778
4781
  "ready"
4779
4782
  ]),
4780
4783
  origin_domain_name: e.string().optional(),
4781
- verification: e.object({ methods: e.array(jr) }).optional(),
4784
+ verification: e.object({ methods: e.array(Nr) }).optional(),
4782
4785
  tls_policy: e.string().optional()
4783
4786
  });
4784
- Ar.pick({
4787
+ Mr.pick({
4785
4788
  tls_policy: !0,
4786
4789
  custom_client_ip_header: !0,
4787
4790
  domain_metadata: !0
4788
- }).strict(), Mr.extend({ tenant_id: e.string() }), e.object({
4791
+ }).strict(), Pr.extend({ tenant_id: e.string() }), e.object({
4789
4792
  certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
4790
4793
  private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
4791
4794
  });
4792
- var Nr = e.object({
4795
+ var Fr = e.object({
4793
4796
  id: e.string(),
4794
4797
  order: e.number().optional(),
4795
4798
  visible: e.boolean().optional().default(!0)
4796
- }), q = Nr.extend({ category: e.literal("BLOCK").optional() }), Pr = q.extend({
4799
+ }), q = Fr.extend({ category: e.literal("BLOCK").optional() }), Ir = q.extend({
4797
4800
  type: e.literal("DIVIDER"),
4798
4801
  config: e.object({ text: e.string().optional() }).optional()
4799
- }), Fr = q.extend({
4802
+ }), Lr = q.extend({
4800
4803
  type: e.literal("HTML"),
4801
4804
  config: e.object({ content: e.string().optional() }).optional()
4802
- }), Ir = q.extend({
4805
+ }), Rr = q.extend({
4803
4806
  type: e.literal("IMAGE"),
4804
4807
  config: e.object({
4805
4808
  src: e.string().optional(),
@@ -4807,43 +4810,43 @@ var Nr = e.object({
4807
4810
  width: e.number().optional(),
4808
4811
  height: e.number().optional()
4809
4812
  }).optional()
4810
- }), Lr = q.extend({
4813
+ }), zr = q.extend({
4811
4814
  type: e.literal("JUMP_BUTTON"),
4812
4815
  config: e.object({
4813
4816
  text: e.string().optional(),
4814
4817
  target_step: e.string().optional()
4815
4818
  })
4816
- }), Rr = q.extend({
4819
+ }), Br = q.extend({
4817
4820
  type: e.literal("RESEND_BUTTON"),
4818
4821
  config: e.object({
4819
4822
  text: e.string().optional(),
4820
4823
  resend_action: e.string().optional()
4821
4824
  })
4822
- }), zr = q.extend({
4825
+ }), Vr = q.extend({
4823
4826
  type: e.literal("NEXT_BUTTON"),
4824
4827
  config: e.object({ text: e.string().optional() })
4825
- }), Br = q.extend({
4828
+ }), Hr = q.extend({
4826
4829
  type: e.literal("PREVIOUS_BUTTON"),
4827
4830
  config: e.object({ text: e.string().optional() })
4828
- }), Vr = q.extend({
4831
+ }), Ur = q.extend({
4829
4832
  type: e.literal("RICH_TEXT"),
4830
4833
  config: e.object({ content: e.string().optional() }).optional()
4831
- }), J = Nr.extend({
4834
+ }), J = Fr.extend({
4832
4835
  category: e.literal("WIDGET").optional(),
4833
4836
  label: e.string().min(1).optional(),
4834
4837
  hint: e.string().min(1).max(500).optional(),
4835
4838
  required: e.boolean().optional(),
4836
4839
  sensitive: e.boolean().optional()
4837
- }), Hr = J.extend({
4840
+ }), Wr = J.extend({
4838
4841
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
4839
4842
  config: e.object({ credential_type: e.string().optional() })
4840
- }), Ur = J.extend({
4843
+ }), Gr = J.extend({
4841
4844
  type: e.literal("GMAPS_ADDRESS"),
4842
4845
  config: e.object({ api_key: e.string().optional() })
4843
- }), Wr = J.extend({
4846
+ }), Kr = J.extend({
4844
4847
  type: e.literal("RECAPTCHA"),
4845
4848
  config: e.object({ site_key: e.string().optional() })
4846
- }), Y = Nr.extend({
4849
+ }), Y = Fr.extend({
4847
4850
  category: e.literal("FIELD").optional(),
4848
4851
  label: e.string().min(1).optional(),
4849
4852
  hint: e.string().min(1).max(500).optional(),
@@ -4859,10 +4862,10 @@ var Nr = e.object({
4859
4862
  })).optional(),
4860
4863
  required: e.boolean().optional(),
4861
4864
  sensitive: e.boolean().optional()
4862
- }), Gr = Y.extend({
4865
+ }), qr = Y.extend({
4863
4866
  type: e.literal("BOOLEAN"),
4864
4867
  config: e.object({ default_value: e.boolean().optional() }).optional()
4865
- }), Kr = Y.extend({
4868
+ }), Jr = Y.extend({
4866
4869
  type: e.literal("CARDS"),
4867
4870
  config: e.object({
4868
4871
  options: e.array(e.object({
@@ -4873,7 +4876,7 @@ var Nr = e.object({
4873
4876
  })).optional(),
4874
4877
  multi_select: e.boolean().optional()
4875
4878
  }).optional()
4876
- }), qr = Y.extend({
4879
+ }), Yr = Y.extend({
4877
4880
  type: e.literal("CHOICE"),
4878
4881
  config: e.object({
4879
4882
  options: e.array(e.object({
@@ -4884,7 +4887,7 @@ var Nr = e.object({
4884
4887
  multiple: e.boolean().optional(),
4885
4888
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4886
4889
  }).optional()
4887
- }), Jr = Y.extend({
4890
+ }), Xr = Y.extend({
4888
4891
  type: e.literal("CODE"),
4889
4892
  config: e.object({
4890
4893
  length: e.number().int().positive().max(100).optional(),
@@ -4901,7 +4904,7 @@ var Nr = e.object({
4901
4904
  message: "default_value is longer than the configured length",
4902
4905
  path: ["default_value"]
4903
4906
  }).optional()
4904
- }), Yr = Y.extend({
4907
+ }), Zr = Y.extend({
4905
4908
  type: e.literal("CUSTOM"),
4906
4909
  config: e.object({
4907
4910
  component: e.string().optional(),
@@ -4909,7 +4912,7 @@ var Nr = e.object({
4909
4912
  schema: e.record(e.string(), e.any()).optional(),
4910
4913
  code: e.string().optional()
4911
4914
  })
4912
- }), Xr = Y.extend({
4915
+ }), Qr = Y.extend({
4913
4916
  type: e.literal("DATE"),
4914
4917
  config: e.object({
4915
4918
  format: e.string().optional(),
@@ -4917,7 +4920,7 @@ var Nr = e.object({
4917
4920
  max: e.string().optional(),
4918
4921
  default_value: e.string().optional()
4919
4922
  }).optional()
4920
- }), Zr = Y.extend({
4923
+ }), $r = Y.extend({
4921
4924
  type: e.literal("DROPDOWN"),
4922
4925
  config: e.object({
4923
4926
  options: e.array(e.object({
@@ -4929,7 +4932,7 @@ var Nr = e.object({
4929
4932
  multiple: e.boolean().optional(),
4930
4933
  default_value: e.union([e.string(), e.array(e.string())]).optional()
4931
4934
  }).optional()
4932
- }), Qr = Y.extend({
4935
+ }), ei = Y.extend({
4933
4936
  type: e.literal("EMAIL"),
4934
4937
  config: e.object({
4935
4938
  placeholder: e.string().optional(),
@@ -4937,20 +4940,20 @@ var Nr = e.object({
4937
4940
  last_used: e.boolean().optional(),
4938
4941
  last_used_label: e.string().optional()
4939
4942
  }).optional()
4940
- }), $r = Y.extend({
4943
+ }), ti = Y.extend({
4941
4944
  type: e.literal("FILE"),
4942
4945
  config: e.object({
4943
4946
  accept: e.string().optional(),
4944
4947
  max_size: e.number().optional(),
4945
4948
  multiple: e.boolean().optional()
4946
4949
  }).optional()
4947
- }), ei = Y.extend({
4950
+ }), ni = Y.extend({
4948
4951
  type: e.literal("LEGAL"),
4949
4952
  config: e.object({
4950
4953
  text: e.string(),
4951
4954
  html: e.boolean().optional()
4952
4955
  }).optional()
4953
- }), ti = Y.extend({
4956
+ }), ri = Y.extend({
4954
4957
  type: e.literal("NUMBER"),
4955
4958
  config: e.object({
4956
4959
  placeholder: e.string().optional(),
@@ -4959,7 +4962,7 @@ var Nr = e.object({
4959
4962
  step: e.number().optional(),
4960
4963
  default_value: e.string().optional()
4961
4964
  }).optional()
4962
- }), ni = Y.extend({
4965
+ }), ii = Y.extend({
4963
4966
  type: e.literal("PASSWORD"),
4964
4967
  config: e.object({
4965
4968
  placeholder: e.string().optional(),
@@ -4968,13 +4971,13 @@ var Nr = e.object({
4968
4971
  forgot_password_link: e.string().optional(),
4969
4972
  default_value: e.string().optional()
4970
4973
  }).optional()
4971
- }), ri = Y.extend({
4974
+ }), ai = Y.extend({
4972
4975
  type: e.literal("PAYMENT"),
4973
4976
  config: e.object({
4974
4977
  provider: e.string().optional(),
4975
4978
  currency: e.string().optional()
4976
4979
  }).optional()
4977
- }), ii = Y.extend({
4980
+ }), oi = Y.extend({
4978
4981
  type: e.literal("SOCIAL"),
4979
4982
  config: e.object({
4980
4983
  providers: e.array(e.string()).optional(),
@@ -4988,7 +4991,7 @@ var Nr = e.object({
4988
4991
  last_used_label: e.string().optional()
4989
4992
  })).optional()
4990
4993
  }).optional()
4991
- }), ai = Y.extend({
4994
+ }), si = Y.extend({
4992
4995
  type: e.literal("TEL"),
4993
4996
  config: e.object({
4994
4997
  placeholder: e.string().optional(),
@@ -4996,7 +4999,7 @@ var Nr = e.object({
4996
4999
  default_value: e.string().optional(),
4997
5000
  allow_email: e.boolean().optional()
4998
5001
  }).optional()
4999
- }), oi = Y.extend({
5002
+ }), ci = Y.extend({
5000
5003
  type: e.literal("TEXT"),
5001
5004
  config: e.object({
5002
5005
  placeholder: e.string().optional(),
@@ -5006,39 +5009,37 @@ var Nr = e.object({
5006
5009
  last_used: e.boolean().optional(),
5007
5010
  last_used_label: e.string().optional()
5008
5011
  }).optional()
5009
- }), si = Y.extend({
5012
+ }), li = Y.extend({
5010
5013
  type: e.literal("COUNTRY"),
5011
5014
  config: e.object({
5012
5015
  placeholder: e.string().optional(),
5013
5016
  default_value: e.string().optional()
5014
5017
  }).optional()
5015
- }), ci = Y.extend({
5018
+ }), ui = Y.extend({
5016
5019
  type: e.literal("URL"),
5017
5020
  config: e.object({
5018
5021
  placeholder: e.string().optional(),
5019
5022
  default_value: e.string().optional()
5020
5023
  }).optional()
5021
- }), li = e.discriminatedUnion("type", [
5022
- Pr,
5023
- Fr,
5024
+ }), di = e.discriminatedUnion("type", [
5024
5025
  Ir,
5025
5026
  Lr,
5026
5027
  Rr,
5027
5028
  zr,
5028
5029
  Br,
5029
- Vr
5030
- ]), ui = e.discriminatedUnion("type", [
5030
+ Vr,
5031
5031
  Hr,
5032
- Ur,
5033
- Wr
5034
- ]), di = e.discriminatedUnion("type", [
5032
+ Ur
5033
+ ]), fi = e.discriminatedUnion("type", [
5034
+ Wr,
5035
5035
  Gr,
5036
- Kr,
5036
+ Kr
5037
+ ]), pi = e.discriminatedUnion("type", [
5037
5038
  qr,
5038
5039
  Jr,
5039
- si,
5040
5040
  Yr,
5041
5041
  Xr,
5042
+ li,
5042
5043
  Zr,
5043
5044
  Qr,
5044
5045
  $r,
@@ -5049,11 +5050,13 @@ var Nr = e.object({
5049
5050
  ii,
5050
5051
  ai,
5051
5052
  oi,
5052
- ci
5053
- ]), fi = e.union([
5054
- li,
5055
- ui,
5056
- di
5053
+ si,
5054
+ ci,
5055
+ ui
5056
+ ]), mi = e.union([
5057
+ di,
5058
+ fi,
5059
+ pi
5057
5060
  ]);
5058
5061
  new Set([
5059
5062
  "BOOLEAN",
@@ -5083,7 +5086,7 @@ new Set([
5083
5086
  var X = e.object({
5084
5087
  x: e.number(),
5085
5088
  y: e.number()
5086
- }), pi = e.object({
5089
+ }), hi = e.object({
5087
5090
  id: e.string(),
5088
5091
  type: e.literal("FLOW"),
5089
5092
  coordinates: X,
@@ -5092,7 +5095,7 @@ var X = e.object({
5092
5095
  flow_id: e.string().max(30),
5093
5096
  next_node: e.string().optional()
5094
5097
  })
5095
- }), mi = e.object({
5098
+ }), gi = e.object({
5096
5099
  id: e.string(),
5097
5100
  type: e.literal("ROUTER"),
5098
5101
  coordinates: X,
@@ -5106,20 +5109,20 @@ var X = e.object({
5106
5109
  })),
5107
5110
  fallback: e.string()
5108
5111
  })
5109
- }), hi = e.object({
5112
+ }), _i = e.object({
5110
5113
  id: e.string(),
5111
5114
  type: e.literal("STEP"),
5112
5115
  coordinates: X,
5113
5116
  alias: e.string().min(1).max(150).optional(),
5114
5117
  config: e.object({
5115
- components: e.array(fi),
5118
+ components: e.array(mi),
5116
5119
  next_node: e.string().optional()
5117
5120
  })
5118
- }), gi = e.discriminatedUnion("type", [
5119
- pi,
5120
- mi,
5121
- hi
5122
- ]), _i = e.object({
5121
+ }), vi = e.discriminatedUnion("type", [
5122
+ hi,
5123
+ gi,
5124
+ _i
5125
+ ]), yi = e.object({
5123
5126
  name: e.string().openapi({ description: "The name of the form" }),
5124
5127
  messages: e.object({
5125
5128
  errors: e.record(e.string(), e.any()).optional(),
@@ -5130,7 +5133,7 @@ var X = e.object({
5130
5133
  default: e.string().optional()
5131
5134
  }).optional(),
5132
5135
  translations: e.record(e.string(), e.any()).optional(),
5133
- nodes: e.array(gi).optional(),
5136
+ nodes: e.array(vi).optional(),
5134
5137
  start: e.object({
5135
5138
  hidden_fields: e.array(e.object({
5136
5139
  key: e.string(),
@@ -5154,8 +5157,8 @@ var X = e.object({
5154
5157
  sdk_src: e.string().optional()
5155
5158
  }).optional()
5156
5159
  }).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
5157
- W.extend(_i.shape).extend({ id: e.string() });
5158
- var vi = e.object({
5160
+ W.extend(yi.shape).extend({ id: e.string() });
5161
+ var bi = e.object({
5159
5162
  id: e.number().optional(),
5160
5163
  text: e.string(),
5161
5164
  type: e.enum([
@@ -5164,7 +5167,7 @@ var vi = e.object({
5164
5167
  "success",
5165
5168
  "warning"
5166
5169
  ])
5167
- }), yi = e.object({
5170
+ }), xi = e.object({
5168
5171
  id: e.string().optional(),
5169
5172
  text: e.string(),
5170
5173
  href: e.string(),
@@ -5176,12 +5179,12 @@ e.object({
5176
5179
  method: e.enum(["POST", "GET"]),
5177
5180
  title: e.string().optional(),
5178
5181
  description: e.string().optional(),
5179
- components: e.array(fi),
5180
- messages: e.array(vi).optional(),
5181
- links: e.array(yi).optional(),
5182
+ components: e.array(mi),
5183
+ messages: e.array(bi).optional(),
5184
+ links: e.array(xi).optional(),
5182
5185
  footer: e.string().optional()
5183
5186
  });
5184
- var bi = e.enum([
5187
+ var Si = e.enum([
5185
5188
  "pre-user-registration",
5186
5189
  "post-user-registration",
5187
5190
  "post-user-login",
@@ -5189,19 +5192,19 @@ var bi = e.enum([
5189
5192
  "validate-registration-username",
5190
5193
  "pre-user-deletion",
5191
5194
  "post-user-deletion"
5192
- ]), xi = e.enum(["post-user-login"]), Si = e.enum([
5195
+ ]), Ci = e.enum(["post-user-login"]), wi = e.enum([
5193
5196
  "post-user-login",
5194
5197
  "post-user-registration",
5195
5198
  "post-user-update",
5196
5199
  "credentials-exchange"
5197
- ]), Ci = e.enum([
5200
+ ]), Ti = e.enum([
5198
5201
  "post-user-login",
5199
5202
  "credentials-exchange",
5200
5203
  "pre-user-registration",
5201
5204
  "post-user-registration"
5202
- ]), wi = e.enum(["post-user-login"]);
5203
- bi.options, xi.options, Si.options, Ci.options, wi.options;
5204
- var Ti = e.enum(["impersonate"]), Ei = e.enum([
5205
+ ]), Ei = e.enum(["post-user-login"]);
5206
+ Si.options, Ci.options, wi.options, Ti.options, Ei.options;
5207
+ var Di = e.enum(["impersonate"]), Oi = e.enum([
5205
5208
  "ensure-username",
5206
5209
  "set-preferred-username",
5207
5210
  "account-linking"
@@ -5211,73 +5214,73 @@ var Ti = e.enum(["impersonate"]), Ei = e.enum([
5211
5214
  priority: e.number().optional(),
5212
5215
  hook_id: e.string().optional(),
5213
5216
  metadata: e.record(e.string(), e.unknown()).optional()
5214
- }, Di = e.object({
5215
- ...Z,
5216
- trigger_id: bi,
5217
- url: e.string()
5218
- }), Oi = e.object({
5219
- ...Z,
5220
- trigger_id: xi,
5221
- form_id: e.string()
5222
- }), ki = e.object({
5217
+ }, ki = e.object({
5223
5218
  ...Z,
5224
5219
  trigger_id: Si,
5225
- template_id: Ei
5220
+ url: e.string()
5226
5221
  }), Ai = e.object({
5227
5222
  ...Z,
5228
5223
  trigger_id: Ci,
5229
- code_id: e.string()
5224
+ form_id: e.string()
5230
5225
  }), ji = e.object({
5231
5226
  ...Z,
5232
5227
  trigger_id: wi,
5233
- page_id: Ti,
5228
+ template_id: Oi
5229
+ }), Mi = e.object({
5230
+ ...Z,
5231
+ trigger_id: Ti,
5232
+ code_id: e.string()
5233
+ }), Ni = e.object({
5234
+ ...Z,
5235
+ trigger_id: Ei,
5236
+ page_id: Di,
5234
5237
  permission_required: e.string().optional()
5235
5238
  });
5236
5239
  e.union([
5237
- Di,
5238
- Oi,
5239
5240
  ki,
5240
5241
  Ai,
5241
- ji
5242
+ ji,
5243
+ Mi,
5244
+ Ni
5242
5245
  ]);
5243
- var Mi = e.object({
5246
+ var Pi = e.object({
5244
5247
  ...Z,
5245
- trigger_id: bi
5248
+ trigger_id: Si
5246
5249
  }).extend(W.shape).extend({
5247
5250
  hook_id: e.string(),
5248
5251
  url: e.string()
5249
- }), Ni = e.object({
5252
+ }), Fi = e.object({
5250
5253
  ...Z,
5251
- trigger_id: xi
5254
+ trigger_id: Ci
5252
5255
  }).extend(W.shape).extend({
5253
5256
  hook_id: e.string(),
5254
5257
  form_id: e.string()
5255
- }), Pi = e.object({
5258
+ }), Ii = e.object({
5256
5259
  ...Z,
5257
- trigger_id: Si
5260
+ trigger_id: wi
5258
5261
  }).extend(W.shape).extend({
5259
5262
  hook_id: e.string(),
5260
- template_id: Ei
5261
- }), Fi = e.object({
5263
+ template_id: Oi
5264
+ }), Li = e.object({
5262
5265
  ...Z,
5263
- trigger_id: Ci
5266
+ trigger_id: Ti
5264
5267
  }).extend(W.shape).extend({
5265
5268
  hook_id: e.string(),
5266
5269
  code_id: e.string()
5267
- }), Ii = e.object({
5270
+ }), Ri = e.object({
5268
5271
  ...Z,
5269
- trigger_id: wi
5272
+ trigger_id: Ei
5270
5273
  }).extend(W.shape).extend({
5271
5274
  hook_id: e.string(),
5272
- page_id: Ti,
5275
+ page_id: Di,
5273
5276
  permission_required: e.string().optional()
5274
5277
  });
5275
5278
  e.union([
5276
- Mi,
5277
- Ni,
5278
5279
  Pi,
5279
5280
  Fi,
5280
- Ii
5281
+ Ii,
5282
+ Li,
5283
+ Ri
5281
5284
  ]), e.object({
5282
5285
  code: e.string().max(1e5),
5283
5286
  secrets: e.record(e.string(), e.string()).optional()
@@ -5285,11 +5288,11 @@ e.union([
5285
5288
  id: e.string(),
5286
5289
  tenant_id: e.string()
5287
5290
  }).extend(W.shape);
5288
- var Li = e.object({ name: e.string().optional() }), Ri = e.object({ email: e.string().optional() }), zi = e.object({
5291
+ var zi = e.object({ name: e.string().optional() }), Bi = e.object({ email: e.string().optional() }), Vi = e.object({
5289
5292
  id: e.string().optional(),
5290
5293
  organization_id: e.string().max(50),
5291
- inviter: Li,
5292
- invitee: Ri,
5294
+ inviter: zi,
5295
+ invitee: Bi,
5293
5296
  invitation_url: e.string().url(),
5294
5297
  client_id: e.string(),
5295
5298
  connection_id: e.string().optional(),
@@ -5305,8 +5308,8 @@ e.object({
5305
5308
  created_at: e.string().datetime(),
5306
5309
  expires_at: e.string().datetime(),
5307
5310
  ticket_id: e.string().optional()
5308
- }).extend(zi.omit({ id: !0 }).shape);
5309
- var Bi = e.object({
5311
+ }).extend(Vi.omit({ id: !0 }).shape);
5312
+ var Hi = e.object({
5310
5313
  alg: e.enum([
5311
5314
  "RS256",
5312
5315
  "RS384",
@@ -5348,7 +5351,7 @@ var Bi = e.object({
5348
5351
  message: `EC JWK is missing required member '${r}'`
5349
5352
  });
5350
5353
  });
5351
- e.object({ keys: e.array(Bi) }), e.object({
5354
+ e.object({ keys: e.array(Hi) }), e.object({
5352
5355
  issuer: e.string(),
5353
5356
  authorization_endpoint: e.string(),
5354
5357
  token_endpoint: e.string(),
@@ -5375,28 +5378,28 @@ e.object({ keys: e.array(Bi) }), e.object({
5375
5378
  backchannel_logout_supported: e.boolean().optional(),
5376
5379
  backchannel_logout_session_supported: e.boolean().optional()
5377
5380
  });
5378
- var Vi = /* @__PURE__ */ function(e) {
5381
+ var Ui = /* @__PURE__ */ function(e) {
5379
5382
  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;
5380
- }({}), Hi = e.nativeEnum(Vi), Ui = e.object({
5383
+ }({}), Wi = e.nativeEnum(Ui), Gi = e.object({
5381
5384
  strategy: e.string(),
5382
5385
  strategy_type: e.string()
5383
5386
  });
5384
5387
  e.object({
5385
5388
  csrf_token: e.string(),
5386
5389
  auth0Client: e.string().optional(),
5387
- authParams: Tr,
5390
+ authParams: Dr,
5388
5391
  expires_at: e.string(),
5389
5392
  deleted_at: e.string().optional(),
5390
5393
  ip: e.string().optional(),
5391
5394
  useragent: e.string().optional(),
5392
5395
  session_id: e.string().optional(),
5393
5396
  authorization_url: e.string().optional(),
5394
- state: Hi.optional().default("pending"),
5397
+ state: Wi.optional().default("pending"),
5395
5398
  state_data: e.string().optional(),
5396
5399
  failure_reason: e.string().optional(),
5397
5400
  user_id: e.string().optional(),
5398
5401
  auth_connection: e.string().optional(),
5399
- auth_strategy: Ui.optional(),
5402
+ auth_strategy: Gi.optional(),
5400
5403
  authenticated_at: e.string().optional()
5401
5404
  }).openapi({ description: "This represents a login sesion" }).extend({
5402
5405
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
@@ -5563,17 +5566,17 @@ var Q = {
5563
5566
  WARNING_DURING_LOGIN: "w",
5564
5567
  WARNING_SENDING_NOTIFICATION: "wn",
5565
5568
  WARNING_USER_MANAGEMENT: "wum"
5566
- }, Wi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5569
+ }, Ki = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5567
5570
  Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
5568
5571
  let e = {};
5569
5572
  for (let [t, n] of Object.entries(Q)) 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";
5570
5573
  return e;
5571
5574
  })();
5572
- var Gi = e.object({
5575
+ var qi = e.object({
5573
5576
  name: e.string(),
5574
5577
  version: e.string(),
5575
5578
  env: e.object({ node: e.string().optional() }).optional()
5576
- }), Ki = e.object({
5579
+ }), Ji = e.object({
5577
5580
  country_code: e.string().length(2),
5578
5581
  city_name: e.string(),
5579
5582
  latitude: e.string(),
@@ -5582,7 +5585,7 @@ var Gi = e.object({
5582
5585
  continent_code: e.string()
5583
5586
  });
5584
5587
  e.object({
5585
- type: Wi,
5588
+ type: Ki,
5586
5589
  date: e.string(),
5587
5590
  description: e.string().optional(),
5588
5591
  ip: e.string().optional(),
@@ -5600,63 +5603,63 @@ e.object({
5600
5603
  strategy: e.string().optional(),
5601
5604
  strategy_type: e.string().optional(),
5602
5605
  hostname: e.string().optional(),
5603
- auth0_client: Gi.optional(),
5606
+ auth0_client: qi.optional(),
5604
5607
  log_id: e.string().optional(),
5605
- location_info: Ki.optional()
5608
+ location_info: Ji.optional()
5606
5609
  }).extend({ log_id: e.string() });
5607
- var qi = e.enum([
5610
+ var Yi = e.enum([
5608
5611
  "http",
5609
5612
  "eventbridge",
5610
5613
  "eventgrid",
5611
5614
  "splunk",
5612
5615
  "datadog",
5613
5616
  "sumo"
5614
- ]), Ji = e.enum([
5617
+ ]), Xi = e.enum([
5615
5618
  "active",
5616
5619
  "paused",
5617
5620
  "suspended"
5618
- ]), Yi = e.object({
5621
+ ]), Zi = e.object({
5619
5622
  type: e.string(),
5620
5623
  name: e.string()
5621
5624
  });
5622
5625
  e.object({
5623
5626
  name: e.string(),
5624
- type: qi,
5625
- status: Ji.optional(),
5627
+ type: Yi,
5628
+ status: Xi.optional(),
5626
5629
  sink: e.record(e.string(), e.unknown()),
5627
- filters: e.array(Yi).optional(),
5630
+ filters: e.array(Zi).optional(),
5628
5631
  isPriority: e.boolean().optional()
5629
5632
  }).extend({
5630
5633
  id: e.string(),
5631
- status: Ji,
5634
+ status: Xi,
5632
5635
  created_at: e.string().optional(),
5633
5636
  updated_at: e.string().optional()
5634
5637
  });
5635
- var Xi = e.enum([
5638
+ var Qi = e.enum([
5636
5639
  "auth0",
5637
5640
  "cognito",
5638
5641
  "okta",
5639
5642
  "oidc"
5640
- ]), Zi = e.object({
5643
+ ]), $i = e.object({
5641
5644
  domain: e.string(),
5642
5645
  client_id: e.string(),
5643
5646
  client_secret: e.string(),
5644
5647
  audience: e.string().optional(),
5645
5648
  scope: e.string().optional()
5646
- }), Qi = e.object({
5649
+ }), ea = e.object({
5647
5650
  id: e.string().optional(),
5648
5651
  name: e.string(),
5649
- provider: Xi,
5652
+ provider: Qi,
5650
5653
  connection: e.string(),
5651
5654
  enabled: e.boolean().default(!0),
5652
- credentials: Zi
5655
+ credentials: $i
5653
5656
  });
5654
5657
  e.object({
5655
5658
  id: e.string(),
5656
5659
  created_at: e.string(),
5657
5660
  updated_at: e.string()
5658
- }).extend(Qi.shape);
5659
- var $i = e.object({
5661
+ }).extend(ea.shape);
5662
+ var ta = e.object({
5660
5663
  enabled: e.boolean().optional(),
5661
5664
  shields: e.array(e.string()).optional(),
5662
5665
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5665,13 +5668,13 @@ var $i = e.object({
5665
5668
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5666
5669
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5667
5670
  }).optional()
5668
- }), ea = e.object({
5671
+ }), na = e.object({
5669
5672
  enabled: e.boolean().optional(),
5670
5673
  shields: e.array(e.string()).optional(),
5671
5674
  allowlist: e.array(e.string()).optional(),
5672
5675
  mode: e.string().optional(),
5673
5676
  max_attempts: e.number().optional()
5674
- }), ta = e.object({
5677
+ }), ra = e.object({
5675
5678
  enabled: e.boolean().optional(),
5676
5679
  shields: e.array(e.string()).optional(),
5677
5680
  allowlist: e.array(e.string()).optional(),
@@ -5685,10 +5688,10 @@ var $i = e.object({
5685
5688
  rate: e.number().optional()
5686
5689
  }).optional()
5687
5690
  }).optional()
5688
- }), na = e.object({
5689
- breached_password_detection: $i.optional(),
5690
- brute_force_protection: ea.optional(),
5691
- suspicious_ip_throttling: ta.optional()
5691
+ }), ia = e.object({
5692
+ breached_password_detection: ta.optional(),
5693
+ brute_force_protection: na.optional(),
5694
+ suspicious_ip_throttling: ra.optional()
5692
5695
  });
5693
5696
  e.object({
5694
5697
  id: e.string().optional(),
@@ -5701,14 +5704,14 @@ e.object({
5701
5704
  created_at: e.string(),
5702
5705
  updated_at: e.string()
5703
5706
  });
5704
- var ra = e.object({
5707
+ var aa = e.object({
5705
5708
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5706
5709
  initial_ip: e.string().describe("First IP address associated with this session"),
5707
5710
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5708
5711
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5709
5712
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5710
5713
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5711
- }), ia = e.object({
5714
+ }), oa = e.object({
5712
5715
  id: e.string(),
5713
5716
  revoked_at: e.string().optional(),
5714
5717
  used_at: e.string().optional(),
@@ -5716,7 +5719,7 @@ var ra = e.object({
5716
5719
  expires_at: e.string().optional(),
5717
5720
  login_session_id: e.string(),
5718
5721
  idle_expires_at: e.string().optional(),
5719
- device: ra.describe("Metadata related to the device used in the session"),
5722
+ device: aa.describe("Metadata related to the device used in the session"),
5720
5723
  clients: e.array(e.string()).describe("List of client details for the session")
5721
5724
  });
5722
5725
  e.object({
@@ -5724,7 +5727,7 @@ e.object({
5724
5727
  updated_at: e.string(),
5725
5728
  authenticated_at: e.string(),
5726
5729
  last_interaction_at: e.string()
5727
- }).extend(ia.shape), e.object({
5730
+ }).extend(oa.shape), e.object({
5728
5731
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5729
5732
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5730
5733
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5741,7 +5744,7 @@ e.object({
5741
5744
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5742
5745
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5743
5746
  });
5744
- var aa = e.object({
5747
+ var sa = e.object({
5745
5748
  id: e.string().optional(),
5746
5749
  audience: e.string().optional(),
5747
5750
  friendly_name: e.string(),
@@ -5859,7 +5862,7 @@ var aa = e.object({
5859
5862
  "shared_planetscale"
5860
5863
  ]).optional(),
5861
5864
  d1_database_id: e.string().max(64).optional(),
5862
- attack_protection: na.optional(),
5865
+ attack_protection: ia.optional(),
5863
5866
  mfa: e.object({
5864
5867
  policy: e.enum(["never", "always"]).default("never").optional(),
5865
5868
  factors: e.object({
@@ -5890,35 +5893,35 @@ var aa = e.object({
5890
5893
  e.object({
5891
5894
  created_at: e.string().nullable().transform((e) => e ?? ""),
5892
5895
  updated_at: e.string().nullable().transform((e) => e ?? "")
5893
- }).extend(aa.shape).extend({
5896
+ }).extend(sa.shape).extend({
5894
5897
  id: e.string(),
5895
5898
  is_control_plane: e.boolean().optional()
5896
5899
  });
5897
- var oa = e.enum([
5900
+ var ca = e.enum([
5898
5901
  "provision",
5899
5902
  "seed",
5900
5903
  "upgrade",
5901
5904
  "backup",
5902
5905
  "deprovision"
5903
- ]), sa = e.enum([
5906
+ ]), la = e.enum([
5904
5907
  "pending",
5905
5908
  "running",
5906
5909
  "succeeded",
5907
5910
  "failed",
5908
5911
  "cancelled"
5909
- ]), ca = e.enum(["inline", "cloudflare-workflows"]);
5912
+ ]), ua = e.enum(["inline", "cloudflare-workflows"]);
5910
5913
  e.object({
5911
5914
  tenant_id: e.string().max(255).nullable().default(null),
5912
5915
  rollout_id: e.string().max(255).nullable().optional(),
5913
- kind: oa,
5914
- engine: ca,
5916
+ kind: ca,
5917
+ engine: ua,
5915
5918
  engine_instance_id: e.string().max(100).nullable().optional(),
5916
5919
  target_worker_version: e.string().max(255).nullable().optional(),
5917
5920
  target_database_version: e.string().max(255).nullable().optional(),
5918
5921
  initiated_by: e.string().max(255).nullable().optional()
5919
5922
  }).extend({
5920
5923
  id: e.string(),
5921
- status: sa,
5924
+ status: la,
5922
5925
  current_step: e.string().max(255).nullable().optional(),
5923
5926
  error: e.string().nullable().optional(),
5924
5927
  created_at: e.string(),
@@ -5933,7 +5936,7 @@ e.object({
5933
5936
  error: !0,
5934
5937
  finished_at: !0
5935
5938
  }).partial();
5936
- var la = e.enum([
5939
+ var da = e.enum([
5937
5940
  "started",
5938
5941
  "succeeded",
5939
5942
  "failed",
@@ -5944,18 +5947,18 @@ var la = e.enum([
5944
5947
  e.object({
5945
5948
  operation_id: e.string().max(255),
5946
5949
  step: e.string().max(255),
5947
- outcome: la,
5950
+ outcome: da,
5948
5951
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
5949
5952
  attempt: e.number().int().min(1).default(1)
5950
5953
  }).extend({
5951
5954
  id: e.string(),
5952
5955
  created_at: e.string()
5953
5956
  });
5954
- var ua = e.enum([
5957
+ var fa = e.enum([
5955
5958
  "upgrade",
5956
5959
  "reseed",
5957
5960
  "backup"
5958
- ]), da = e.enum([
5961
+ ]), pa = e.enum([
5959
5962
  "pending",
5960
5963
  "canary",
5961
5964
  "rolling",
@@ -5964,7 +5967,7 @@ var ua = e.enum([
5964
5967
  "failed"
5965
5968
  ]);
5966
5969
  e.object({
5967
- kind: ua,
5970
+ kind: fa,
5968
5971
  target_worker_version: e.string().max(255).nullable().optional(),
5969
5972
  target_database_version: e.string().max(255).nullable().optional(),
5970
5973
  wave_size: e.number().int().min(1).default(10),
@@ -5973,7 +5976,7 @@ e.object({
5973
5976
  initiated_by: e.string().max(255).nullable().optional()
5974
5977
  }).extend({
5975
5978
  id: e.string(),
5976
- status: da,
5979
+ status: pa,
5977
5980
  created_at: e.string(),
5978
5981
  updated_at: e.string(),
5979
5982
  finished_at: e.string().nullable().optional()
@@ -5995,7 +5998,7 @@ e.object({
5995
5998
  code: e.string(),
5996
5999
  state: e.string().optional()
5997
6000
  });
5998
- var fa = e.object({
6001
+ var ma = e.object({
5999
6002
  button_border_radius: e.number(),
6000
6003
  button_border_weight: e.number(),
6001
6004
  buttons_style: e.enum([
@@ -6013,7 +6016,7 @@ var fa = e.object({
6013
6016
  show_widget_shadow: e.boolean(),
6014
6017
  widget_border_weight: e.number(),
6015
6018
  widget_corner_radius: e.number()
6016
- }), pa = e.object({
6019
+ }), ha = e.object({
6017
6020
  base_focus_color: e.string(),
6018
6021
  base_hover_color: e.string(),
6019
6022
  body_text: e.string(),
@@ -6040,7 +6043,7 @@ var fa = e.object({
6040
6043
  }), $ = e.object({
6041
6044
  bold: e.boolean(),
6042
6045
  size: e.number()
6043
- }), ma = e.object({
6046
+ }), ga = e.object({
6044
6047
  body_text: $,
6045
6048
  buttons_text: $,
6046
6049
  font_url: e.string(),
@@ -6050,7 +6053,7 @@ var fa = e.object({
6050
6053
  reference_text_size: e.number(),
6051
6054
  subtitle: $,
6052
6055
  title: $
6053
- }), ha = e.object({
6056
+ }), _a = e.object({
6054
6057
  background_color: e.string(),
6055
6058
  background_image_url: e.string(),
6056
6059
  page_layout: e.enum([
@@ -6063,7 +6066,7 @@ var fa = e.object({
6063
6066
  "chip",
6064
6067
  "none"
6065
6068
  ]).optional()
6066
- }), ga = e.object({
6069
+ }), va = e.object({
6067
6070
  header_text_alignment: e.enum([
6068
6071
  "center",
6069
6072
  "left",
@@ -6080,12 +6083,12 @@ var fa = e.object({
6080
6083
  social_buttons_layout: e.enum(["bottom", "top"])
6081
6084
  });
6082
6085
  e.object({
6083
- borders: fa,
6084
- colors: pa,
6086
+ borders: ma,
6087
+ colors: ha,
6085
6088
  displayName: e.string(),
6086
- fonts: ma,
6087
- page_background: ha,
6088
- widget: ga
6089
+ fonts: ga,
6090
+ page_background: _a,
6091
+ widget: va
6089
6092
  }).extend({ themeId: e.string() }), e.object({
6090
6093
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6091
6094
  identifier_first: e.boolean().default(!0),
@@ -6093,44 +6096,44 @@ e.object({
6093
6096
  show_last_used_connection: e.boolean().default(!1),
6094
6097
  webauthn_platform_first_factor: e.boolean()
6095
6098
  });
6096
- var _a = e.object({
6099
+ var ya = e.object({
6097
6100
  hosts: e.array(e.string()).optional(),
6098
6101
  methods: e.array(e.string()).optional(),
6099
6102
  path: e.string().default("/*"),
6100
6103
  headers: e.record(e.string(), e.string()).optional(),
6101
6104
  query: e.record(e.string(), e.string()).optional()
6102
- }), va = e.object({
6105
+ }), ba = e.object({
6103
6106
  type: e.string(),
6104
6107
  options: e.record(e.string(), e.unknown()).default({})
6105
- }), ya = e.object({
6108
+ }), xa = e.object({
6106
6109
  id: e.string().optional(),
6107
6110
  custom_domain_id: e.string(),
6108
6111
  priority: e.number().int().default(100),
6109
- match: _a,
6110
- handlers: e.array(va).min(1)
6112
+ match: ya,
6113
+ handlers: e.array(ba).min(1)
6111
6114
  });
6112
- ya.extend({
6115
+ xa.extend({
6113
6116
  id: e.string(),
6114
6117
  tenant_id: e.string(),
6115
6118
  created_at: e.string(),
6116
6119
  updated_at: e.string()
6117
- }), ya.partial().omit({
6120
+ }), xa.partial().omit({
6118
6121
  id: !0,
6119
6122
  custom_domain_id: !0
6120
6123
  });
6121
- var ba = e.object({
6124
+ var Sa = e.object({
6122
6125
  scim: e.string(),
6123
6126
  auth0: e.string()
6124
- }), xa = e.object({
6127
+ }), Ca = e.object({
6125
6128
  connection_id: e.string(),
6126
6129
  user_id_attribute: e.string().default("externalId"),
6127
- mapping: e.array(ba).default([])
6130
+ mapping: e.array(Sa).default([])
6128
6131
  });
6129
6132
  e.object({
6130
6133
  created_at: e.string(),
6131
6134
  updated_at: e.string()
6132
- }).extend(xa.shape);
6133
- var Sa = e.object({
6135
+ }).extend(Ca.shape);
6136
+ var wa = e.object({
6134
6137
  token_id: e.string(),
6135
6138
  connection_id: e.string(),
6136
6139
  token_hash: e.string(),
@@ -6140,20 +6143,20 @@ var Sa = e.object({
6140
6143
  e.object({
6141
6144
  created_at: e.string(),
6142
6145
  last_used_at: e.string().optional()
6143
- }).extend(Sa.shape);
6144
- var Ca = e.object({
6146
+ }).extend(wa.shape);
6147
+ var Ta = e.object({
6145
6148
  connection_id: e.string(),
6146
6149
  external_id: e.string(),
6147
6150
  user_id: e.string()
6148
6151
  });
6149
- e.object({ created_at: e.string() }).extend(Ca.shape), e.object({
6152
+ e.object({ created_at: e.string() }).extend(Ta.shape), e.object({
6150
6153
  name: e.string(),
6151
6154
  enabled: e.boolean().optional().default(!0),
6152
6155
  default_from_address: e.string().optional(),
6153
6156
  credentials: e.record(e.string(), e.unknown()),
6154
6157
  settings: e.object({}).optional()
6155
6158
  });
6156
- var wa = e.enum([
6159
+ var Ea = e.enum([
6157
6160
  "verify_email",
6158
6161
  "verify_email_by_code",
6159
6162
  "reset_email",
@@ -6168,7 +6171,7 @@ var wa = e.enum([
6168
6171
  "user_invitation"
6169
6172
  ]);
6170
6173
  e.object({
6171
- template: wa,
6174
+ template: Ea,
6172
6175
  body: e.string(),
6173
6176
  from: e.string(),
6174
6177
  subject: e.string(),
@@ -6183,13 +6186,13 @@ e.object({
6183
6186
  session_id: e.string().optional(),
6184
6187
  organization: e.string().optional(),
6185
6188
  auth_connection: e.string().optional(),
6186
- auth_strategy: Ui.optional(),
6189
+ auth_strategy: Gi.optional(),
6187
6190
  user_id: e.string(),
6188
6191
  client_id: e.string(),
6189
6192
  expires_at: e.string().optional(),
6190
6193
  idle_expires_at: e.string().optional(),
6191
6194
  last_exchanged_at: e.string().optional(),
6192
- device: ra,
6195
+ device: aa,
6193
6196
  resource_servers: e.array(e.object({
6194
6197
  audience: e.string(),
6195
6198
  scopes: e.string()
@@ -6210,10 +6213,10 @@ e.object({
6210
6213
  name: e.string(),
6211
6214
  options: e.object({})
6212
6215
  });
6213
- var Ta = e.object({
6216
+ var Da = e.object({
6214
6217
  value: e.string(),
6215
6218
  description: e.string().optional()
6216
- }), Ea = e.object({
6219
+ }), Oa = e.object({
6217
6220
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
6218
6221
  enforce_policies: e.boolean().optional(),
6219
6222
  allow_skipping_userinfo: e.boolean().optional(),
@@ -6221,11 +6224,11 @@ var Ta = e.object({
6221
6224
  persist_client_authorization: e.boolean().optional(),
6222
6225
  enable_introspection_endpoint: e.boolean().optional(),
6223
6226
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
6224
- }), Da = e.object({
6227
+ }), ka = e.object({
6225
6228
  id: e.string().optional(),
6226
6229
  name: e.string(),
6227
6230
  identifier: e.string(),
6228
- scopes: e.array(Ta).optional(),
6231
+ scopes: e.array(Da).optional(),
6229
6232
  signing_alg: e.string().optional(),
6230
6233
  signing_secret: e.string().optional(),
6231
6234
  token_lifetime: e.number().default(86400),
@@ -6233,20 +6236,20 @@ var Ta = e.object({
6233
6236
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
6234
6237
  allow_offline_access: e.boolean().optional(),
6235
6238
  verificationKey: e.string().optional(),
6236
- options: Ea.optional(),
6239
+ options: Oa.optional(),
6237
6240
  is_system: e.boolean().optional(),
6238
6241
  metadata: e.record(e.string(), e.any()).optional()
6239
6242
  }).extend({
6240
6243
  created_at: e.string().optional(),
6241
6244
  updated_at: e.string().optional()
6242
6245
  });
6243
- e.array(Da);
6244
- var Oa = e.object({
6246
+ e.array(ka);
6247
+ var Aa = e.object({
6245
6248
  role_id: e.string(),
6246
6249
  resource_server_identifier: e.string(),
6247
6250
  permission_name: e.string()
6248
6251
  }).extend({ created_at: e.string() });
6249
- e.array(Oa), e.object({
6252
+ e.array(Aa), e.object({
6250
6253
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
6251
6254
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
6252
6255
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -6259,7 +6262,7 @@ e.array(Oa), e.object({
6259
6262
  failed_logins: e.array(e.string()).optional(),
6260
6263
  last_password_reset: e.string().optional()
6261
6264
  });
6262
- var ka = e.object({
6265
+ var ja = e.object({
6263
6266
  user_id: e.string(),
6264
6267
  resource_server_identifier: e.string(),
6265
6268
  permission_name: e.string(),
@@ -6268,8 +6271,8 @@ var ka = e.object({
6268
6271
  tenant_id: e.string(),
6269
6272
  created_at: e.string().optional()
6270
6273
  });
6271
- e.array(ka);
6272
- var Aa = e.object({
6274
+ e.array(ja);
6275
+ var Ma = e.object({
6273
6276
  user_id: e.string(),
6274
6277
  resource_server_identifier: e.string(),
6275
6278
  resource_server_name: e.string(),
@@ -6278,8 +6281,8 @@ var Aa = e.object({
6278
6281
  created_at: e.string().optional(),
6279
6282
  organization_id: e.string().optional()
6280
6283
  });
6281
- e.array(Aa);
6282
- var ja = e.object({
6284
+ e.array(Ma);
6285
+ var Na = e.object({
6283
6286
  user_id: e.string(),
6284
6287
  role_id: e.string(),
6285
6288
  organization_id: e.string().optional()
@@ -6287,8 +6290,8 @@ var ja = e.object({
6287
6290
  tenant_id: e.string(),
6288
6291
  created_at: e.string().optional()
6289
6292
  });
6290
- e.array(ja);
6291
- var Ma = e.object({
6293
+ e.array(Na);
6294
+ var Pa = e.object({
6292
6295
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
6293
6296
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
6294
6297
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -6299,19 +6302,19 @@ var Ma = e.object({
6299
6302
  created_at: e.string().optional(),
6300
6303
  updated_at: e.string().optional()
6301
6304
  });
6302
- e.array(Ma);
6303
- var Na = e.object({
6305
+ e.array(Pa);
6306
+ var Fa = e.object({
6304
6307
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
6305
6308
  colors: e.object({
6306
6309
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
6307
6310
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
6308
6311
  }).optional()
6309
- }).optional(), Pa = e.object({
6312
+ }).optional(), Ia = e.object({
6310
6313
  connection_id: e.string().openapi({ description: "ID of the connection" }),
6311
6314
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
6312
6315
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
6313
6316
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
6314
- }), Fa = e.object({ client_credentials: e.object({
6317
+ }), La = e.object({ client_credentials: e.object({
6315
6318
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
6316
6319
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
6317
6320
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -6320,15 +6323,15 @@ e.object({
6320
6323
  id: e.string().optional(),
6321
6324
  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." }),
6322
6325
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
6323
- branding: Na,
6326
+ branding: Fa,
6324
6327
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6325
- enabled_connections: e.array(Pa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6326
- token_quota: Fa
6328
+ enabled_connections: e.array(Ia).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6329
+ token_quota: La
6327
6330
  }).extend(W.shape).extend({
6328
6331
  id: e.string(),
6329
6332
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6330
6333
  });
6331
- var Ia = e.object({
6334
+ var Ra = e.object({
6332
6335
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
6333
6336
  assign_membership_on_login: e.boolean().optional().default(!1),
6334
6337
  show_as_button: e.boolean().optional().default(!0),
@@ -6341,7 +6344,7 @@ var Ia = e.object({
6341
6344
  created_at: e.string().optional(),
6342
6345
  updated_at: e.string().optional()
6343
6346
  });
6344
- e.array(Ia), e.object({
6347
+ e.array(Ra), e.object({
6345
6348
  user_id: e.string().openapi({ description: "ID of the user" }),
6346
6349
  organization_id: e.string().openapi({ description: "ID of the organization" })
6347
6350
  }).extend(W.shape).extend({ id: e.string() }), e.object({
@@ -6480,7 +6483,7 @@ e.array(Ia), e.object({
6480
6483
  "passwordless",
6481
6484
  "enterprise"
6482
6485
  ]);
6483
- var La = e.object({
6486
+ var za = e.object({
6484
6487
  cohort: e.string(),
6485
6488
  sessions: e.number(),
6486
6489
  active: e.array(e.number())
@@ -6489,9 +6492,9 @@ e.object({
6489
6492
  interval: e.literal("week"),
6490
6493
  from: e.string(),
6491
6494
  to: e.string(),
6492
- cohorts: e.array(La)
6495
+ cohorts: e.array(za)
6493
6496
  });
6494
- var Ra = e.object({
6497
+ var Ba = e.object({
6495
6498
  cohort: e.string(),
6496
6499
  tokens: e.number(),
6497
6500
  active: e.array(e.number())
@@ -6500,24 +6503,24 @@ e.object({
6500
6503
  interval: e.literal("week"),
6501
6504
  from: e.string(),
6502
6505
  to: e.string(),
6503
- cohorts: e.array(Ra)
6506
+ cohorts: e.array(Ba)
6504
6507
  });
6505
- var za = e.object({
6508
+ var Va = e.object({
6506
6509
  name: e.string(),
6507
6510
  type: e.string()
6508
- }), Ba = e.object({
6511
+ }), Ha = e.object({
6509
6512
  elapsed: e.number(),
6510
6513
  rows_read: e.number().optional(),
6511
6514
  bytes_read: e.number().optional()
6512
6515
  });
6513
6516
  e.object({
6514
- meta: e.array(za),
6517
+ meta: e.array(Va),
6515
6518
  data: e.array(e.record(e.string(), e.any())),
6516
6519
  rows: e.number(),
6517
6520
  rows_before_limit_at_least: e.number().optional(),
6518
- statistics: Ba.optional()
6521
+ statistics: Ha.optional()
6519
6522
  });
6520
- var Va = 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(".")), Ha = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6523
+ var Ua = 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(".")), Wa = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6521
6524
  type: "object",
6522
6525
  additionalProperties: {
6523
6526
  type: "object",
@@ -6525,11 +6528,11 @@ var Va = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
6525
6528
  }
6526
6529
  });
6527
6530
  e.object({
6528
- prompt: Va,
6531
+ prompt: Ua,
6529
6532
  language: e.string(),
6530
- custom_text: Ha
6533
+ custom_text: Wa
6531
6534
  });
6532
- var Ua = e.enum([
6535
+ var Ga = e.enum([
6533
6536
  "phone",
6534
6537
  "totp",
6535
6538
  "email",
@@ -6537,9 +6540,9 @@ var Ua = e.enum([
6537
6540
  "webauthn-roaming",
6538
6541
  "webauthn-platform",
6539
6542
  "passkey"
6540
- ]), Wa = e.object({
6543
+ ]), Ka = e.object({
6541
6544
  user_id: e.string(),
6542
- type: Ua,
6545
+ type: Ga,
6543
6546
  phone_number: e.string().optional(),
6544
6547
  totp_secret: e.string().optional(),
6545
6548
  credential_id: e.string().optional(),
@@ -6550,7 +6553,7 @@ var Ua = e.enum([
6550
6553
  friendly_name: e.string().optional(),
6551
6554
  confirmed: e.boolean().default(!1)
6552
6555
  });
6553
- function Ga(t, n) {
6556
+ function qa(t, n) {
6554
6557
  t.type === "phone" && !t.phone_number && n.addIssue({
6555
6558
  code: e.ZodIssueCode.custom,
6556
6559
  message: "phone_number is required when type is 'phone'",
@@ -6573,51 +6576,51 @@ function Ga(t, n) {
6573
6576
  path: ["public_key"]
6574
6577
  }));
6575
6578
  }
6576
- Wa.superRefine(Ga), Wa.extend({
6579
+ Ka.superRefine(qa), Ka.extend({
6577
6580
  id: e.string(),
6578
6581
  created_at: e.string(),
6579
6582
  updated_at: e.string()
6580
- }).superRefine(Ga), e.object({
6583
+ }).superRefine(qa), e.object({
6581
6584
  id: e.string().optional(),
6582
6585
  created_at: e.string().datetime({ offset: !0 }).optional(),
6583
6586
  updated_at: e.string().datetime({ offset: !0 }).optional()
6584
6587
  });
6585
- function Ka(e) {
6588
+ function Ja(e) {
6586
6589
  let t = atob(e), n = new Uint8Array(t.length);
6587
6590
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
6588
6591
  return n;
6589
6592
  }
6590
6593
  //#endregion
6591
6594
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6592
- var qa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ja = (e = 21) => {
6595
+ var Ya = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Xa = (e = 21) => {
6593
6596
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6594
- for (; e--;) t += qa[n[e] & 63];
6597
+ for (; e--;) t += Ya[n[e] & 63];
6595
6598
  return t;
6596
6599
  };
6597
6600
  //#endregion
6598
6601
  //#region src/helpers.ts
6599
- async function Ya(e) {
6602
+ async function Za(e) {
6600
6603
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6601
6604
  return new Uint8Array(await new Response(r).arrayBuffer());
6602
6605
  }
6603
- async function Xa(e) {
6604
- let t = Ka(e.replace(/ /g, "+"));
6606
+ async function Qa(e) {
6607
+ let t = Ja(e.replace(/ /g, "+"));
6605
6608
  try {
6606
- let e = await Ya(t);
6609
+ let e = await Za(t);
6607
6610
  return new TextDecoder().decode(e);
6608
6611
  } catch (e) {
6609
6612
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6610
6613
  }
6611
6614
  }
6612
- async function Za(e) {
6613
- let t = await Xa(e), n = new an({
6615
+ async function $a(e) {
6616
+ let t = await Qa(e), n = new an({
6614
6617
  attributeNamePrefix: "@_",
6615
6618
  alwaysCreateTextNode: !0,
6616
6619
  ignoreAttributes: !1
6617
6620
  }).parse(t);
6618
6621
  return r.parse(n);
6619
6622
  }
6620
- function Qa(e) {
6623
+ function eo(e) {
6621
6624
  let t = e.certificates.map((e) => ({
6622
6625
  "@_use": "signing",
6623
6626
  KeyInfo: {
@@ -6691,8 +6694,8 @@ function Qa(e) {
6691
6694
  attributeNamePrefix: "@_"
6692
6695
  }).build(n);
6693
6696
  }
6694
- async function $a(e, t) {
6695
- let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${Ja()}`, s = e.assertionId || `_${Ja()}`, c = [{
6697
+ async function to(e, t) {
6698
+ let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${Xa()}`, s = e.assertionId || `_${Xa()}`, c = [{
6696
6699
  "samlp:Response": [
6697
6700
  { "saml:Issuer": [{ "#text": e.issuer }] },
6698
6701
  { "samlp:Status": [{
@@ -6873,7 +6876,7 @@ async function $a(e, t) {
6873
6876
  }
6874
6877
  //#endregion
6875
6878
  //#region src/signers/http.ts
6876
- var eo = class {
6879
+ var no = class {
6877
6880
  signUrl;
6878
6881
  constructor(e) {
6879
6882
  this.signUrl = e;
@@ -6893,4 +6896,4 @@ var eo = class {
6893
6896
  }
6894
6897
  };
6895
6898
  //#endregion
6896
- export { eo as HttpSamlSigner, Qa as createSamlMetadata, $a as createSamlResponse, s as dsSignatureSchema, Xa as inflateDecompress, Ya as inflateRaw, Za as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
6899
+ export { no as HttpSamlSigner, eo as createSamlMetadata, to as createSamlResponse, s as dsSignatureSchema, Qa as inflateDecompress, Za as inflateRaw, $a as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };