@authhero/saml 0.5.16 → 0.5.18

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/saml.mjs CHANGED
@@ -5181,7 +5181,14 @@ var bi = e.object({
5181
5181
  text: e.string(),
5182
5182
  href: e.string(),
5183
5183
  linkText: e.string().optional()
5184
- });
5184
+ }), Si = e.object({
5185
+ "form-content-start": e.string().optional(),
5186
+ "form-content-end": e.string().optional(),
5187
+ "form-footer-start": e.string().optional(),
5188
+ "form-footer-end": e.string().optional(),
5189
+ "secondary-actions-start": e.string().optional(),
5190
+ "secondary-actions-end": e.string().optional()
5191
+ }).strict();
5185
5192
  e.object({
5186
5193
  name: e.string().optional(),
5187
5194
  action: e.string(),
@@ -5191,9 +5198,10 @@ e.object({
5191
5198
  components: e.array(mi),
5192
5199
  messages: e.array(bi).optional(),
5193
5200
  links: e.array(xi).optional(),
5201
+ partials: Si.optional(),
5194
5202
  footer: e.string().optional()
5195
5203
  });
5196
- var Si = e.enum([
5204
+ var Ci = e.enum([
5197
5205
  "pre-user-registration",
5198
5206
  "post-user-registration",
5199
5207
  "post-user-login",
@@ -5201,19 +5209,19 @@ var Si = e.enum([
5201
5209
  "validate-registration-username",
5202
5210
  "pre-user-deletion",
5203
5211
  "post-user-deletion"
5204
- ]), Ci = e.enum(["post-user-login"]), wi = e.enum([
5212
+ ]), wi = e.enum(["post-user-login"]), Ti = e.enum([
5205
5213
  "post-user-login",
5206
5214
  "post-user-registration",
5207
5215
  "post-user-update",
5208
5216
  "credentials-exchange"
5209
- ]), Ti = e.enum([
5217
+ ]), Ei = e.enum([
5210
5218
  "post-user-login",
5211
5219
  "credentials-exchange",
5212
5220
  "pre-user-registration",
5213
5221
  "post-user-registration"
5214
- ]), Ei = e.enum(["post-user-login"]);
5215
- Si.options, Ci.options, wi.options, Ti.options, Ei.options;
5216
- var Di = e.enum(["impersonate"]), Oi = e.enum([
5222
+ ]), Di = e.enum(["post-user-login"]);
5223
+ Ci.options, wi.options, Ti.options, Ei.options, Di.options;
5224
+ var Oi = e.enum(["impersonate"]), ki = e.enum([
5217
5225
  "ensure-username",
5218
5226
  "set-preferred-username",
5219
5227
  "account-linking"
@@ -5223,73 +5231,73 @@ var Di = e.enum(["impersonate"]), Oi = e.enum([
5223
5231
  priority: e.number().optional(),
5224
5232
  hook_id: e.string().optional(),
5225
5233
  metadata: e.record(e.string(), e.unknown()).optional()
5226
- }, ki = e.object({
5227
- ...Z,
5228
- trigger_id: Si,
5229
- url: e.string()
5230
- }), Ai = e.object({
5234
+ }, Ai = e.object({
5231
5235
  ...Z,
5232
5236
  trigger_id: Ci,
5233
- form_id: e.string()
5237
+ url: e.string()
5234
5238
  }), ji = e.object({
5235
5239
  ...Z,
5236
5240
  trigger_id: wi,
5237
- template_id: Oi
5241
+ form_id: e.string()
5238
5242
  }), Mi = e.object({
5239
5243
  ...Z,
5240
5244
  trigger_id: Ti,
5241
- code_id: e.string()
5245
+ template_id: ki
5242
5246
  }), Ni = e.object({
5243
5247
  ...Z,
5244
5248
  trigger_id: Ei,
5245
- page_id: Di,
5249
+ code_id: e.string()
5250
+ }), Pi = e.object({
5251
+ ...Z,
5252
+ trigger_id: Di,
5253
+ page_id: Oi,
5246
5254
  permission_required: e.string().optional()
5247
5255
  });
5248
5256
  e.union([
5249
- ki,
5250
5257
  Ai,
5251
5258
  ji,
5252
5259
  Mi,
5253
- Ni
5260
+ Ni,
5261
+ Pi
5254
5262
  ]);
5255
- var Pi = e.object({
5256
- ...Z,
5257
- trigger_id: Si
5258
- }).extend(G.shape).extend({
5259
- hook_id: e.string(),
5260
- url: e.string()
5261
- }), Fi = e.object({
5263
+ var Fi = e.object({
5262
5264
  ...Z,
5263
5265
  trigger_id: Ci
5264
5266
  }).extend(G.shape).extend({
5265
5267
  hook_id: e.string(),
5266
- form_id: e.string()
5268
+ url: e.string()
5267
5269
  }), Ii = e.object({
5268
5270
  ...Z,
5269
5271
  trigger_id: wi
5270
5272
  }).extend(G.shape).extend({
5271
5273
  hook_id: e.string(),
5272
- template_id: Oi
5274
+ form_id: e.string()
5273
5275
  }), Li = e.object({
5274
5276
  ...Z,
5275
5277
  trigger_id: Ti
5276
5278
  }).extend(G.shape).extend({
5277
5279
  hook_id: e.string(),
5278
- code_id: e.string()
5280
+ template_id: ki
5279
5281
  }), Ri = e.object({
5280
5282
  ...Z,
5281
5283
  trigger_id: Ei
5282
5284
  }).extend(G.shape).extend({
5283
5285
  hook_id: e.string(),
5284
- page_id: Di,
5286
+ code_id: e.string()
5287
+ }), zi = e.object({
5288
+ ...Z,
5289
+ trigger_id: Di
5290
+ }).extend(G.shape).extend({
5291
+ hook_id: e.string(),
5292
+ page_id: Oi,
5285
5293
  permission_required: e.string().optional()
5286
5294
  });
5287
5295
  e.union([
5288
- Pi,
5289
5296
  Fi,
5290
5297
  Ii,
5291
5298
  Li,
5292
- Ri
5299
+ Ri,
5300
+ zi
5293
5301
  ]), e.object({
5294
5302
  code: e.string().max(1e5),
5295
5303
  secrets: e.record(e.string(), e.string()).optional()
@@ -5297,11 +5305,11 @@ e.union([
5297
5305
  id: e.string(),
5298
5306
  tenant_id: e.string()
5299
5307
  }).extend(G.shape);
5300
- var zi = e.object({ name: e.string().optional() }), Bi = e.object({ email: e.string().optional() }), Vi = e.object({
5308
+ var Bi = e.object({ name: e.string().optional() }), Vi = e.object({ email: e.string().optional() }), Hi = e.object({
5301
5309
  id: e.string().optional(),
5302
5310
  organization_id: e.string().max(50),
5303
- inviter: zi,
5304
- invitee: Bi,
5311
+ inviter: Bi,
5312
+ invitee: Vi,
5305
5313
  invitation_url: e.string().url(),
5306
5314
  client_id: e.string(),
5307
5315
  connection_id: e.string().optional(),
@@ -5317,8 +5325,8 @@ e.object({
5317
5325
  created_at: e.string().datetime(),
5318
5326
  expires_at: e.string().datetime(),
5319
5327
  ticket_id: e.string().optional()
5320
- }).extend(Vi.omit({ id: !0 }).shape);
5321
- var Hi = e.object({
5328
+ }).extend(Hi.omit({ id: !0 }).shape);
5329
+ var Ui = e.object({
5322
5330
  alg: e.enum([
5323
5331
  "RS256",
5324
5332
  "RS384",
@@ -5360,7 +5368,7 @@ var Hi = e.object({
5360
5368
  path: [r],
5361
5369
  message: `EC JWK is missing required member '${r}'`
5362
5370
  });
5363
- }), Ui = e.object({ keys: e.array(Hi) });
5371
+ }), Wi = e.object({ keys: e.array(Ui) });
5364
5372
  e.object({
5365
5373
  issuer: e.string(),
5366
5374
  authorization_endpoint: e.string(),
@@ -5388,9 +5396,9 @@ e.object({
5388
5396
  backchannel_logout_supported: e.boolean().optional(),
5389
5397
  backchannel_logout_session_supported: e.boolean().optional()
5390
5398
  });
5391
- var Wi = /* @__PURE__ */ function(e) {
5399
+ var Gi = /* @__PURE__ */ function(e) {
5392
5400
  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;
5393
- }({}), Gi = e.nativeEnum(Wi), Ki = e.object({
5401
+ }({}), Ki = e.nativeEnum(Gi), qi = e.object({
5394
5402
  strategy: e.string(),
5395
5403
  strategy_type: e.string()
5396
5404
  });
@@ -5404,12 +5412,12 @@ e.object({
5404
5412
  useragent: e.string().optional(),
5405
5413
  session_id: e.string().optional(),
5406
5414
  authorization_url: e.string().optional(),
5407
- state: Gi.optional().default("pending"),
5415
+ state: Ki.optional().default("pending"),
5408
5416
  state_data: e.string().optional(),
5409
5417
  failure_reason: e.string().optional(),
5410
5418
  user_id: e.string().optional(),
5411
5419
  auth_connection: e.string().optional(),
5412
- auth_strategy: Ki.optional(),
5420
+ auth_strategy: qi.optional(),
5413
5421
  authenticated_at: e.string().optional()
5414
5422
  }).openapi({ description: "This represents a login sesion" }).extend({
5415
5423
  id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
@@ -5576,17 +5584,17 @@ var Q = {
5576
5584
  WARNING_DURING_LOGIN: "w",
5577
5585
  WARNING_SENDING_NOTIFICATION: "wn",
5578
5586
  WARNING_USER_MANAGEMENT: "wum"
5579
- }, qi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5587
+ }, Ji = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
5580
5588
  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, (() => {
5581
5589
  let e = {};
5582
5590
  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";
5583
5591
  return e;
5584
5592
  })();
5585
- var Ji = e.object({
5593
+ var Yi = e.object({
5586
5594
  name: e.string(),
5587
5595
  version: e.string(),
5588
5596
  env: e.object({ node: e.string().optional() }).optional()
5589
- }), Yi = e.object({
5597
+ }), Xi = e.object({
5590
5598
  country_code: e.string().length(2),
5591
5599
  city_name: e.string(),
5592
5600
  latitude: e.string(),
@@ -5595,7 +5603,7 @@ var Ji = e.object({
5595
5603
  continent_code: e.string()
5596
5604
  });
5597
5605
  e.object({
5598
- type: qi,
5606
+ type: Ji,
5599
5607
  date: e.string(),
5600
5608
  description: e.string().optional(),
5601
5609
  ip: e.string().optional(),
@@ -5613,63 +5621,63 @@ e.object({
5613
5621
  strategy: e.string().optional(),
5614
5622
  strategy_type: e.string().optional(),
5615
5623
  hostname: e.string().optional(),
5616
- auth0_client: Ji.optional(),
5624
+ auth0_client: Yi.optional(),
5617
5625
  log_id: e.string().optional(),
5618
- location_info: Yi.optional()
5626
+ location_info: Xi.optional()
5619
5627
  }).extend({ log_id: e.string() });
5620
- var Xi = e.enum([
5628
+ var Zi = e.enum([
5621
5629
  "http",
5622
5630
  "eventbridge",
5623
5631
  "eventgrid",
5624
5632
  "splunk",
5625
5633
  "datadog",
5626
5634
  "sumo"
5627
- ]), Zi = e.enum([
5635
+ ]), Qi = e.enum([
5628
5636
  "active",
5629
5637
  "paused",
5630
5638
  "suspended"
5631
- ]), Qi = e.object({
5639
+ ]), $i = e.object({
5632
5640
  type: e.string(),
5633
5641
  name: e.string()
5634
5642
  });
5635
5643
  e.object({
5636
5644
  name: e.string(),
5637
- type: Xi,
5638
- status: Zi.optional(),
5645
+ type: Zi,
5646
+ status: Qi.optional(),
5639
5647
  sink: e.record(e.string(), e.unknown()),
5640
- filters: e.array(Qi).optional(),
5648
+ filters: e.array($i).optional(),
5641
5649
  isPriority: e.boolean().optional()
5642
5650
  }).extend({
5643
5651
  id: e.string(),
5644
- status: Zi,
5652
+ status: Qi,
5645
5653
  created_at: e.string().optional(),
5646
5654
  updated_at: e.string().optional()
5647
5655
  });
5648
- var $i = e.enum([
5656
+ var ea = e.enum([
5649
5657
  "auth0",
5650
5658
  "cognito",
5651
5659
  "okta",
5652
5660
  "oidc"
5653
- ]), ea = e.object({
5661
+ ]), ta = e.object({
5654
5662
  domain: e.string(),
5655
5663
  client_id: e.string(),
5656
5664
  client_secret: e.string(),
5657
5665
  audience: e.string().optional(),
5658
5666
  scope: e.string().optional()
5659
- }), ta = e.object({
5667
+ }), na = e.object({
5660
5668
  id: e.string().optional(),
5661
5669
  name: e.string(),
5662
- provider: $i,
5670
+ provider: ea,
5663
5671
  connection: e.string(),
5664
5672
  enabled: e.boolean().default(!0),
5665
- credentials: ea
5673
+ credentials: ta
5666
5674
  });
5667
5675
  e.object({
5668
5676
  id: e.string(),
5669
5677
  created_at: e.string(),
5670
5678
  updated_at: e.string()
5671
- }).extend(ta.shape);
5672
- var na = e.object({
5679
+ }).extend(na.shape);
5680
+ var ra = e.object({
5673
5681
  enabled: e.boolean().optional(),
5674
5682
  shields: e.array(e.string()).optional(),
5675
5683
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -5678,13 +5686,13 @@ var na = e.object({
5678
5686
  "pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
5679
5687
  "pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
5680
5688
  }).optional()
5681
- }), ra = e.object({
5689
+ }), ia = e.object({
5682
5690
  enabled: e.boolean().optional(),
5683
5691
  shields: e.array(e.string()).optional(),
5684
5692
  allowlist: e.array(e.string()).optional(),
5685
5693
  mode: e.string().optional(),
5686
5694
  max_attempts: e.number().optional()
5687
- }), ia = e.object({
5695
+ }), aa = e.object({
5688
5696
  enabled: e.boolean().optional(),
5689
5697
  shields: e.array(e.string()).optional(),
5690
5698
  allowlist: e.array(e.string()).optional(),
@@ -5698,10 +5706,10 @@ var na = e.object({
5698
5706
  rate: e.number().optional()
5699
5707
  }).optional()
5700
5708
  }).optional()
5701
- }), aa = e.object({
5702
- breached_password_detection: na.optional(),
5703
- brute_force_protection: ra.optional(),
5704
- suspicious_ip_throttling: ia.optional()
5709
+ }), oa = e.object({
5710
+ breached_password_detection: ra.optional(),
5711
+ brute_force_protection: ia.optional(),
5712
+ suspicious_ip_throttling: aa.optional()
5705
5713
  });
5706
5714
  e.object({
5707
5715
  id: e.string().optional(),
@@ -5714,14 +5722,14 @@ e.object({
5714
5722
  created_at: e.string(),
5715
5723
  updated_at: e.string()
5716
5724
  });
5717
- var oa = e.object({
5725
+ var sa = e.object({
5718
5726
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
5719
5727
  initial_ip: e.string().describe("First IP address associated with this session"),
5720
5728
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
5721
5729
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
5722
5730
  last_ip: e.string().describe("Last IP address from which this user logged in"),
5723
5731
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
5724
- }), sa = e.object({
5732
+ }), ca = e.object({
5725
5733
  id: e.string(),
5726
5734
  revoked_at: e.string().optional(),
5727
5735
  used_at: e.string().optional(),
@@ -5729,7 +5737,7 @@ var oa = e.object({
5729
5737
  expires_at: e.string().optional(),
5730
5738
  login_session_id: e.string(),
5731
5739
  idle_expires_at: e.string().optional(),
5732
- device: oa.describe("Metadata related to the device used in the session"),
5740
+ device: sa.describe("Metadata related to the device used in the session"),
5733
5741
  clients: e.array(e.string()).describe("List of client details for the session")
5734
5742
  });
5735
5743
  e.object({
@@ -5737,7 +5745,7 @@ e.object({
5737
5745
  updated_at: e.string(),
5738
5746
  authenticated_at: e.string(),
5739
5747
  last_interaction_at: e.string()
5740
- }).extend(sa.shape), e.object({
5748
+ }).extend(ca.shape), e.object({
5741
5749
  kid: e.string().openapi({ description: "The key id of the signing key" }),
5742
5750
  tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
5743
5751
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
@@ -5754,7 +5762,7 @@ e.object({
5754
5762
  connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
5755
5763
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
5756
5764
  });
5757
- var ca = e.object({
5765
+ var la = e.object({
5758
5766
  id: e.string().optional(),
5759
5767
  audience: e.string().optional(),
5760
5768
  friendly_name: e.string(),
@@ -5872,7 +5880,7 @@ var ca = e.object({
5872
5880
  "shared_planetscale"
5873
5881
  ]).optional(),
5874
5882
  d1_database_id: e.string().max(64).optional(),
5875
- attack_protection: aa.optional(),
5883
+ attack_protection: oa.optional(),
5876
5884
  mfa: e.object({
5877
5885
  policy: e.enum(["never", "always"]).default("never").optional(),
5878
5886
  factors: e.object({
@@ -5903,29 +5911,29 @@ var ca = e.object({
5903
5911
  e.object({
5904
5912
  created_at: e.string().nullable().transform((e) => e ?? ""),
5905
5913
  updated_at: e.string().nullable().transform((e) => e ?? "")
5906
- }).extend(ca.shape).extend({
5914
+ }).extend(la.shape).extend({
5907
5915
  id: e.string(),
5908
5916
  is_control_plane: e.boolean().optional()
5909
5917
  });
5910
- var la = e.enum([
5918
+ var ua = e.enum([
5911
5919
  "provision",
5912
5920
  "seed",
5913
5921
  "upgrade",
5914
5922
  "backup",
5915
5923
  "deprovision",
5916
5924
  "users_import"
5917
- ]), ua = e.enum([
5925
+ ]), da = e.enum([
5918
5926
  "pending",
5919
5927
  "running",
5920
5928
  "succeeded",
5921
5929
  "failed",
5922
5930
  "cancelled"
5923
- ]), da = e.string().max(64);
5931
+ ]), fa = e.string().max(64);
5924
5932
  e.object({
5925
5933
  tenant_id: e.string().max(255).nullable().default(null),
5926
5934
  rollout_id: e.string().max(255).nullable().optional(),
5927
- kind: la,
5928
- engine: da,
5935
+ kind: ua,
5936
+ engine: fa,
5929
5937
  engine_instance_id: e.string().max(100).nullable().optional(),
5930
5938
  target_worker_version: e.string().max(255).nullable().optional(),
5931
5939
  target_database_version: e.string().max(255).nullable().optional(),
@@ -5933,7 +5941,7 @@ e.object({
5933
5941
  input: e.record(e.string(), e.unknown()).nullable().optional()
5934
5942
  }).extend({
5935
5943
  id: e.string(),
5936
- status: ua,
5944
+ status: da,
5937
5945
  current_step: e.string().max(255).nullable().optional(),
5938
5946
  error: e.string().nullable().optional(),
5939
5947
  result: e.record(e.string(), e.unknown()).nullable().optional(),
@@ -5954,7 +5962,7 @@ e.object({
5954
5962
  claim_expires_at: !0,
5955
5963
  finished_at: !0
5956
5964
  }).partial();
5957
- var fa = e.enum([
5965
+ var pa = e.enum([
5958
5966
  "started",
5959
5967
  "succeeded",
5960
5968
  "failed",
@@ -5965,14 +5973,14 @@ var fa = e.enum([
5965
5973
  e.object({
5966
5974
  operation_id: e.string().max(255),
5967
5975
  step: e.string().max(255),
5968
- outcome: fa,
5976
+ outcome: pa,
5969
5977
  detail: e.record(e.string(), e.unknown()).nullable().optional(),
5970
5978
  attempt: e.number().int().min(1).default(1)
5971
5979
  }).extend({
5972
5980
  id: e.string(),
5973
5981
  created_at: e.string()
5974
5982
  });
5975
- var pa = e.enum([
5983
+ var ma = e.enum([
5976
5984
  "pending",
5977
5985
  "inserted",
5978
5986
  "updated",
@@ -5983,28 +5991,28 @@ e.object({
5983
5991
  operation_id: e.string().max(255),
5984
5992
  seq: e.number().int().min(0),
5985
5993
  payload: e.record(e.string(), e.unknown()),
5986
- status: pa.default("pending"),
5994
+ status: ma.default("pending"),
5987
5995
  error_code: e.string().max(64).nullable().optional(),
5988
5996
  error_message: e.string().nullable().optional(),
5989
5997
  error_path: e.string().max(255).nullable().optional(),
5990
5998
  entity_id: e.string().max(255).nullable().optional()
5991
5999
  }).extend({
5992
- status: pa,
6000
+ status: ma,
5993
6001
  created_at: e.string(),
5994
6002
  updated_at: e.string()
5995
6003
  }), e.object({
5996
6004
  seq: e.number().int().min(0),
5997
- status: pa,
6005
+ status: ma,
5998
6006
  error_code: e.string().max(64).nullable().optional(),
5999
6007
  error_message: e.string().nullable().optional(),
6000
6008
  error_path: e.string().max(255).nullable().optional(),
6001
6009
  entity_id: e.string().max(255).nullable().optional()
6002
6010
  });
6003
- var ma = e.enum([
6011
+ var ha = e.enum([
6004
6012
  "upgrade",
6005
6013
  "reseed",
6006
6014
  "backup"
6007
- ]), ha = e.enum([
6015
+ ]), ga = e.enum([
6008
6016
  "pending",
6009
6017
  "canary",
6010
6018
  "rolling",
@@ -6013,7 +6021,7 @@ var ma = e.enum([
6013
6021
  "failed"
6014
6022
  ]);
6015
6023
  e.object({
6016
- kind: ma,
6024
+ kind: ha,
6017
6025
  target_worker_version: e.string().max(255).nullable().optional(),
6018
6026
  target_database_version: e.string().max(255).nullable().optional(),
6019
6027
  wave_size: e.number().int().min(1).default(10),
@@ -6022,7 +6030,7 @@ e.object({
6022
6030
  initiated_by: e.string().max(255).nullable().optional()
6023
6031
  }).extend({
6024
6032
  id: e.string(),
6025
- status: ha,
6033
+ status: ga,
6026
6034
  created_at: e.string(),
6027
6035
  updated_at: e.string(),
6028
6036
  finished_at: e.string().nullable().optional()
@@ -6044,7 +6052,7 @@ e.object({
6044
6052
  code: e.string(),
6045
6053
  state: e.string().optional()
6046
6054
  });
6047
- var ga = e.object({
6055
+ var _a = e.object({
6048
6056
  button_border_radius: e.number(),
6049
6057
  button_border_weight: e.number(),
6050
6058
  buttons_style: e.enum([
@@ -6062,7 +6070,7 @@ var ga = e.object({
6062
6070
  show_widget_shadow: e.boolean(),
6063
6071
  widget_border_weight: e.number(),
6064
6072
  widget_corner_radius: e.number()
6065
- }), _a = e.object({
6073
+ }), va = e.object({
6066
6074
  base_focus_color: e.string(),
6067
6075
  base_hover_color: e.string(),
6068
6076
  body_text: e.string(),
@@ -6089,7 +6097,7 @@ var ga = e.object({
6089
6097
  }), $ = e.object({
6090
6098
  bold: e.boolean(),
6091
6099
  size: e.number()
6092
- }), va = e.object({
6100
+ }), ya = e.object({
6093
6101
  body_text: $,
6094
6102
  buttons_text: $,
6095
6103
  font_url: e.string(),
@@ -6099,7 +6107,7 @@ var ga = e.object({
6099
6107
  reference_text_size: e.number(),
6100
6108
  subtitle: $,
6101
6109
  title: $
6102
- }), ya = e.object({
6110
+ }), ba = e.object({
6103
6111
  background_color: e.string(),
6104
6112
  background_image_url: e.string(),
6105
6113
  page_layout: e.enum([
@@ -6112,7 +6120,7 @@ var ga = e.object({
6112
6120
  "chip",
6113
6121
  "none"
6114
6122
  ]).optional()
6115
- }), ba = e.object({
6123
+ }), xa = e.object({
6116
6124
  header_text_alignment: e.enum([
6117
6125
  "center",
6118
6126
  "left",
@@ -6129,12 +6137,12 @@ var ga = e.object({
6129
6137
  social_buttons_layout: e.enum(["bottom", "top"])
6130
6138
  });
6131
6139
  e.object({
6132
- borders: ga,
6133
- colors: _a,
6140
+ borders: _a,
6141
+ colors: va,
6134
6142
  displayName: e.string(),
6135
- fonts: va,
6136
- page_background: ya,
6137
- widget: ba
6143
+ fonts: ya,
6144
+ page_background: ba,
6145
+ widget: xa
6138
6146
  }).extend({ themeId: e.string() }), e.object({
6139
6147
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
6140
6148
  identifier_first: e.boolean().default(!0),
@@ -6142,32 +6150,32 @@ e.object({
6142
6150
  show_last_used_connection: e.boolean().default(!1),
6143
6151
  webauthn_platform_first_factor: e.boolean()
6144
6152
  });
6145
- var xa = e.object({
6153
+ var Sa = e.object({
6146
6154
  hosts: e.array(e.string()).optional(),
6147
6155
  methods: e.array(e.string()).optional(),
6148
6156
  path: e.string().default("/*"),
6149
6157
  headers: e.record(e.string(), e.string()).optional(),
6150
6158
  query: e.record(e.string(), e.string()).optional()
6151
- }), Sa = e.object({
6159
+ }), Ca = e.object({
6152
6160
  type: e.string(),
6153
6161
  options: e.record(e.string(), e.unknown()).default({})
6154
- }), Ca = e.object({
6162
+ }), wa = e.object({
6155
6163
  id: e.string().optional(),
6156
6164
  custom_domain_id: e.string(),
6157
6165
  priority: e.number().int().default(100),
6158
- match: xa,
6159
- handlers: e.array(Sa).min(1)
6166
+ match: Sa,
6167
+ handlers: e.array(Ca).min(1)
6160
6168
  });
6161
- Ca.extend({
6169
+ wa.extend({
6162
6170
  id: e.string(),
6163
6171
  tenant_id: e.string(),
6164
6172
  created_at: e.string(),
6165
6173
  updated_at: e.string()
6166
- }), Ca.partial().omit({
6174
+ }), wa.partial().omit({
6167
6175
  id: !0,
6168
6176
  custom_domain_id: !0
6169
6177
  });
6170
- var wa = "custom_authentication", Ta = [
6178
+ var Ta = "custom_authentication", Ea = [
6171
6179
  "urn:ietf:params:oauth:",
6172
6180
  "urn:auth0",
6173
6181
  "urn:okta",
@@ -6175,56 +6183,56 @@ var wa = "custom_authentication", Ta = [
6175
6183
  "https://auth0.com",
6176
6184
  "http://okta.com",
6177
6185
  "https://okta.com"
6178
- ], Ea = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Ta.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Da = e.enum([
6186
+ ], Da = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Ea.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Oa = e.enum([
6179
6187
  "RS256",
6180
6188
  "RS384",
6181
6189
  "RS512",
6182
6190
  "ES256",
6183
6191
  "ES384",
6184
6192
  "ES512"
6185
- ]), Oa = e.discriminatedUnion("type", [e.object({
6193
+ ]), ka = e.discriminatedUnion("type", [e.object({
6186
6194
  type: e.literal("connection"),
6187
6195
  connection: e.string().min(1),
6188
6196
  create_if_not_exists: e.boolean().default(!0),
6189
6197
  trust_email_verified: e.boolean().default(!1)
6190
- }), e.object({ type: e.literal("user_id") })]), ka = e.object({
6198
+ }), e.object({ type: e.literal("user_id") })]), Aa = e.object({
6191
6199
  issuer: e.string().min(1).max(2048),
6192
- jwks: Ui.optional(),
6200
+ jwks: Wi.optional(),
6193
6201
  jwks_uri: e.string().url().optional(),
6194
6202
  audience: e.array(e.string().min(1)).min(1).optional(),
6195
- algorithms: e.array(Da).min(1).optional(),
6203
+ algorithms: e.array(Oa).min(1).optional(),
6196
6204
  max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
6197
6205
  require_jti: e.boolean().default(!0),
6198
- user_mapping: Oa
6206
+ user_mapping: ka
6199
6207
  });
6200
6208
  e.object({
6201
6209
  name: e.string().min(1).max(255),
6202
- subject_token_type: Ea,
6210
+ subject_token_type: Da,
6203
6211
  action_id: e.string().min(1).optional(),
6204
- type: e.literal(wa),
6205
- jwt_verification: ka.optional()
6212
+ type: e.literal(Ta),
6213
+ jwt_verification: Aa.optional()
6206
6214
  }).extend({
6207
6215
  id: e.string(),
6208
6216
  created_at: e.string(),
6209
6217
  updated_at: e.string()
6210
6218
  }), e.object({
6211
6219
  name: e.string().min(1).max(255).optional(),
6212
- subject_token_type: Ea.optional(),
6213
- jwt_verification: ka.optional()
6220
+ subject_token_type: Da.optional(),
6221
+ jwt_verification: Aa.optional()
6214
6222
  });
6215
- var Aa = e.object({
6223
+ var ja = e.object({
6216
6224
  scim: e.string(),
6217
6225
  auth0: e.string()
6218
- }), ja = e.object({
6226
+ }), Ma = e.object({
6219
6227
  connection_id: e.string(),
6220
6228
  user_id_attribute: e.string().default("externalId"),
6221
- mapping: e.array(Aa).default([])
6229
+ mapping: e.array(ja).default([])
6222
6230
  });
6223
6231
  e.object({
6224
6232
  created_at: e.string(),
6225
6233
  updated_at: e.string()
6226
- }).extend(ja.shape);
6227
- var Ma = e.object({
6234
+ }).extend(Ma.shape);
6235
+ var Na = e.object({
6228
6236
  token_id: e.string(),
6229
6237
  connection_id: e.string(),
6230
6238
  token_hash: e.string(),
@@ -6234,20 +6242,20 @@ var Ma = e.object({
6234
6242
  e.object({
6235
6243
  created_at: e.string(),
6236
6244
  last_used_at: e.string().optional()
6237
- }).extend(Ma.shape);
6238
- var Na = e.object({
6245
+ }).extend(Na.shape);
6246
+ var Pa = e.object({
6239
6247
  connection_id: e.string(),
6240
6248
  external_id: e.string(),
6241
6249
  user_id: e.string()
6242
6250
  });
6243
- e.object({ created_at: e.string() }).extend(Na.shape), e.object({
6251
+ e.object({ created_at: e.string() }).extend(Pa.shape), e.object({
6244
6252
  name: e.string(),
6245
6253
  enabled: e.boolean().optional().default(!0),
6246
6254
  default_from_address: e.string().optional(),
6247
6255
  credentials: e.record(e.string(), e.unknown()),
6248
6256
  settings: e.object({}).optional()
6249
6257
  });
6250
- var Pa = e.enum([
6258
+ var Fa = e.enum([
6251
6259
  "verify_email",
6252
6260
  "verify_email_by_code",
6253
6261
  "reset_email",
@@ -6262,7 +6270,7 @@ var Pa = e.enum([
6262
6270
  "user_invitation"
6263
6271
  ]);
6264
6272
  e.object({
6265
- template: Pa,
6273
+ template: Fa,
6266
6274
  body: e.string(),
6267
6275
  from: e.string(),
6268
6276
  subject: e.string(),
@@ -6277,13 +6285,13 @@ e.object({
6277
6285
  session_id: e.string().optional(),
6278
6286
  organization: e.string().optional(),
6279
6287
  auth_connection: e.string().optional(),
6280
- auth_strategy: Ki.optional(),
6288
+ auth_strategy: qi.optional(),
6281
6289
  user_id: e.string(),
6282
6290
  client_id: e.string(),
6283
6291
  expires_at: e.string().optional(),
6284
6292
  idle_expires_at: e.string().optional(),
6285
6293
  last_exchanged_at: e.string().optional(),
6286
- device: oa,
6294
+ device: sa,
6287
6295
  resource_servers: e.array(e.object({
6288
6296
  audience: e.string(),
6289
6297
  scopes: e.string()
@@ -6304,10 +6312,10 @@ e.object({
6304
6312
  name: e.string(),
6305
6313
  options: e.object({})
6306
6314
  });
6307
- var Fa = e.object({
6315
+ var Ia = e.object({
6308
6316
  value: e.string(),
6309
6317
  description: e.string().optional()
6310
- }), Ia = e.object({
6318
+ }), La = e.object({
6311
6319
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
6312
6320
  enforce_policies: e.boolean().optional(),
6313
6321
  allow_skipping_userinfo: e.boolean().optional(),
@@ -6315,11 +6323,11 @@ var Fa = e.object({
6315
6323
  persist_client_authorization: e.boolean().optional(),
6316
6324
  enable_introspection_endpoint: e.boolean().optional(),
6317
6325
  mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
6318
- }), La = e.object({
6326
+ }), Ra = e.object({
6319
6327
  id: e.string().optional(),
6320
6328
  name: e.string(),
6321
6329
  identifier: e.string(),
6322
- scopes: e.array(Fa).optional(),
6330
+ scopes: e.array(Ia).optional(),
6323
6331
  signing_alg: e.string().optional(),
6324
6332
  signing_secret: e.string().optional(),
6325
6333
  token_lifetime: e.number().default(86400),
@@ -6327,20 +6335,20 @@ var Fa = e.object({
6327
6335
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
6328
6336
  allow_offline_access: e.boolean().optional(),
6329
6337
  verificationKey: e.string().optional(),
6330
- options: Ia.optional(),
6338
+ options: La.optional(),
6331
6339
  is_system: e.boolean().optional(),
6332
6340
  metadata: e.record(e.string(), e.any()).optional()
6333
6341
  }).extend({
6334
6342
  created_at: e.string().optional(),
6335
6343
  updated_at: e.string().optional()
6336
6344
  });
6337
- e.array(La);
6338
- var Ra = e.object({
6345
+ e.array(Ra);
6346
+ var za = e.object({
6339
6347
  role_id: e.string(),
6340
6348
  resource_server_identifier: e.string(),
6341
6349
  permission_name: e.string()
6342
6350
  }).extend({ created_at: e.string() });
6343
- e.array(Ra), e.object({
6351
+ e.array(za), e.object({
6344
6352
  user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
6345
6353
  clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
6346
6354
  audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
@@ -6353,7 +6361,7 @@ e.array(Ra), e.object({
6353
6361
  failed_logins: e.array(e.string()).optional(),
6354
6362
  last_password_reset: e.string().optional()
6355
6363
  });
6356
- var za = e.object({
6364
+ var Ba = e.object({
6357
6365
  user_id: e.string(),
6358
6366
  resource_server_identifier: e.string(),
6359
6367
  permission_name: e.string(),
@@ -6362,8 +6370,8 @@ var za = e.object({
6362
6370
  tenant_id: e.string(),
6363
6371
  created_at: e.string().optional()
6364
6372
  });
6365
- e.array(za);
6366
- var Ba = e.object({
6373
+ e.array(Ba);
6374
+ var Va = e.object({
6367
6375
  user_id: e.string(),
6368
6376
  resource_server_identifier: e.string(),
6369
6377
  resource_server_name: e.string(),
@@ -6372,8 +6380,8 @@ var Ba = e.object({
6372
6380
  created_at: e.string().optional(),
6373
6381
  organization_id: e.string().optional()
6374
6382
  });
6375
- e.array(Ba);
6376
- var Va = e.object({
6383
+ e.array(Va);
6384
+ var Ha = e.object({
6377
6385
  user_id: e.string(),
6378
6386
  role_id: e.string(),
6379
6387
  organization_id: e.string().optional()
@@ -6381,8 +6389,8 @@ var Va = e.object({
6381
6389
  tenant_id: e.string(),
6382
6390
  created_at: e.string().optional()
6383
6391
  });
6384
- e.array(Va);
6385
- var Ha = e.object({
6392
+ e.array(Ha);
6393
+ var Ua = e.object({
6386
6394
  id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
6387
6395
  name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
6388
6396
  description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
@@ -6393,19 +6401,19 @@ var Ha = e.object({
6393
6401
  created_at: e.string().optional(),
6394
6402
  updated_at: e.string().optional()
6395
6403
  });
6396
- e.array(Ha);
6397
- var Ua = e.object({
6404
+ e.array(Ua);
6405
+ var Wa = e.object({
6398
6406
  logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
6399
6407
  colors: e.object({
6400
6408
  primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
6401
6409
  page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
6402
6410
  }).optional()
6403
- }).optional(), Wa = e.object({
6411
+ }).optional(), Ga = e.object({
6404
6412
  connection_id: e.string().openapi({ description: "ID of the connection" }),
6405
6413
  assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
6406
6414
  show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
6407
6415
  is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
6408
- }), Ga = e.object({ client_credentials: e.object({
6416
+ }), Ka = e.object({ client_credentials: e.object({
6409
6417
  enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
6410
6418
  per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
6411
6419
  per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
@@ -6414,15 +6422,15 @@ e.object({
6414
6422
  id: e.string().optional(),
6415
6423
  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." }),
6416
6424
  display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
6417
- branding: Ua,
6425
+ branding: Wa,
6418
6426
  metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
6419
- enabled_connections: e.array(Wa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6420
- token_quota: Ga
6427
+ enabled_connections: e.array(Ga).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
6428
+ token_quota: Ka
6421
6429
  }).extend(G.shape).extend({
6422
6430
  id: e.string(),
6423
6431
  name: e.string().min(1).openapi({ description: "The name of the organization" })
6424
6432
  });
6425
- var Ka = e.object({
6433
+ var qa = e.object({
6426
6434
  connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
6427
6435
  assign_membership_on_login: e.boolean().optional().default(!1),
6428
6436
  show_as_button: e.boolean().optional().default(!0),
@@ -6435,7 +6443,7 @@ var Ka = e.object({
6435
6443
  created_at: e.string().optional(),
6436
6444
  updated_at: e.string().optional()
6437
6445
  });
6438
- e.array(Ka), e.object({
6446
+ e.array(qa), e.object({
6439
6447
  user_id: e.string().openapi({ description: "ID of the user" }),
6440
6448
  organization_id: e.string().openapi({ description: "ID of the organization" })
6441
6449
  }).extend(G.shape).extend({ id: e.string() }), e.object({
@@ -6574,7 +6582,7 @@ e.array(Ka), e.object({
6574
6582
  "passwordless",
6575
6583
  "enterprise"
6576
6584
  ]);
6577
- var qa = e.object({
6585
+ var Ja = e.object({
6578
6586
  cohort: e.string(),
6579
6587
  sessions: e.number(),
6580
6588
  active: e.array(e.number())
@@ -6583,9 +6591,9 @@ e.object({
6583
6591
  interval: e.literal("week"),
6584
6592
  from: e.string(),
6585
6593
  to: e.string(),
6586
- cohorts: e.array(qa)
6594
+ cohorts: e.array(Ja)
6587
6595
  });
6588
- var Ja = e.object({
6596
+ var Ya = e.object({
6589
6597
  cohort: e.string(),
6590
6598
  tokens: e.number(),
6591
6599
  active: e.array(e.number())
@@ -6594,24 +6602,24 @@ e.object({
6594
6602
  interval: e.literal("week"),
6595
6603
  from: e.string(),
6596
6604
  to: e.string(),
6597
- cohorts: e.array(Ja)
6605
+ cohorts: e.array(Ya)
6598
6606
  });
6599
- var Ya = e.object({
6607
+ var Xa = e.object({
6600
6608
  name: e.string(),
6601
6609
  type: e.string()
6602
- }), Xa = e.object({
6610
+ }), Za = e.object({
6603
6611
  elapsed: e.number(),
6604
6612
  rows_read: e.number().optional(),
6605
6613
  bytes_read: e.number().optional()
6606
6614
  });
6607
6615
  e.object({
6608
- meta: e.array(Ya),
6616
+ meta: e.array(Xa),
6609
6617
  data: e.array(e.record(e.string(), e.any())),
6610
6618
  rows: e.number(),
6611
6619
  rows_before_limit_at_least: e.number().optional(),
6612
- statistics: Xa.optional()
6620
+ statistics: Za.optional()
6613
6621
  });
6614
- var Za = 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(".")), Qa = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6622
+ var Qa = 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(".")), $a = e.record(e.string(), e.record(e.string(), e.string())).openapi({
6615
6623
  type: "object",
6616
6624
  additionalProperties: {
6617
6625
  type: "object",
@@ -6619,11 +6627,23 @@ var Za = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
6619
6627
  }
6620
6628
  });
6621
6629
  e.object({
6622
- prompt: Za,
6630
+ prompt: Qa,
6623
6631
  language: e.string(),
6624
- custom_text: Qa
6632
+ custom_text: $a
6633
+ });
6634
+ var eo = e.object({
6635
+ "form-content-start": e.string().optional(),
6636
+ "form-content-end": e.string().optional(),
6637
+ "form-footer-start": e.string().optional(),
6638
+ "form-footer-end": e.string().optional(),
6639
+ "secondary-actions-start": e.string().optional(),
6640
+ "secondary-actions-end": e.string().optional()
6641
+ }).strict(), to = e.record(e.string(), eo);
6642
+ e.object({
6643
+ prompt: e.string(),
6644
+ partials: to
6625
6645
  });
6626
- var $a = e.enum([
6646
+ var no = e.enum([
6627
6647
  "phone",
6628
6648
  "totp",
6629
6649
  "email",
@@ -6631,9 +6651,9 @@ var $a = e.enum([
6631
6651
  "webauthn-roaming",
6632
6652
  "webauthn-platform",
6633
6653
  "passkey"
6634
- ]), eo = e.object({
6654
+ ]), ro = e.object({
6635
6655
  user_id: e.string(),
6636
- type: $a,
6656
+ type: no,
6637
6657
  phone_number: e.string().optional(),
6638
6658
  totp_secret: e.string().optional(),
6639
6659
  credential_id: e.string().optional(),
@@ -6644,7 +6664,7 @@ var $a = e.enum([
6644
6664
  friendly_name: e.string().optional(),
6645
6665
  confirmed: e.boolean().default(!1)
6646
6666
  });
6647
- function to(t, n) {
6667
+ function io(t, n) {
6648
6668
  t.type === "phone" && !t.phone_number && n.addIssue({
6649
6669
  code: e.ZodIssueCode.custom,
6650
6670
  message: "phone_number is required when type is 'phone'",
@@ -6667,51 +6687,51 @@ function to(t, n) {
6667
6687
  path: ["public_key"]
6668
6688
  }));
6669
6689
  }
6670
- eo.superRefine(to), eo.extend({
6690
+ ro.superRefine(io), ro.extend({
6671
6691
  id: e.string(),
6672
6692
  created_at: e.string(),
6673
6693
  updated_at: e.string()
6674
- }).superRefine(to), e.object({
6694
+ }).superRefine(io), e.object({
6675
6695
  id: e.string().optional(),
6676
6696
  created_at: e.string().datetime({ offset: !0 }).optional(),
6677
6697
  updated_at: e.string().datetime({ offset: !0 }).optional()
6678
6698
  });
6679
- function no(e) {
6699
+ function ao(e) {
6680
6700
  let t = atob(e), n = new Uint8Array(t.length);
6681
6701
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
6682
6702
  return n;
6683
6703
  }
6684
6704
  //#endregion
6685
6705
  //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
6686
- var ro = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", io = (e = 21) => {
6706
+ var oo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", so = (e = 21) => {
6687
6707
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
6688
- for (; e--;) t += ro[n[e] & 63];
6708
+ for (; e--;) t += oo[n[e] & 63];
6689
6709
  return t;
6690
6710
  };
6691
6711
  //#endregion
6692
6712
  //#region src/helpers.ts
6693
- async function ao(e) {
6713
+ async function co(e) {
6694
6714
  let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
6695
6715
  return new Uint8Array(await new Response(r).arrayBuffer());
6696
6716
  }
6697
- async function oo(e) {
6698
- let t = no(e.replace(/ /g, "+"));
6717
+ async function lo(e) {
6718
+ let t = ao(e.replace(/ /g, "+"));
6699
6719
  try {
6700
- let e = await ao(t);
6720
+ let e = await co(t);
6701
6721
  return new TextDecoder().decode(e);
6702
6722
  } catch (e) {
6703
6723
  return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
6704
6724
  }
6705
6725
  }
6706
- async function so(e) {
6707
- let t = await oo(e), n = new tn({
6726
+ async function uo(e) {
6727
+ let t = await lo(e), n = new tn({
6708
6728
  attributeNamePrefix: "@_",
6709
6729
  alwaysCreateTextNode: !0,
6710
6730
  ignoreAttributes: !1
6711
6731
  }).parse(t);
6712
6732
  return r.parse(n);
6713
6733
  }
6714
- function co(e) {
6734
+ function fo(e) {
6715
6735
  let t = e.certificates.map((e) => ({
6716
6736
  "@_use": "signing",
6717
6737
  KeyInfo: {
@@ -6785,8 +6805,8 @@ function co(e) {
6785
6805
  attributeNamePrefix: "@_"
6786
6806
  }).build(n);
6787
6807
  }
6788
- async function lo(e, t) {
6789
- 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 || `_${io()}`, s = e.assertionId || `_${io()}`, c = [{
6808
+ async function po(e, t) {
6809
+ 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 || `_${so()}`, s = e.assertionId || `_${so()}`, c = [{
6790
6810
  "samlp:Response": [
6791
6811
  { "saml:Issuer": [{ "#text": e.issuer }] },
6792
6812
  { "samlp:Status": [{
@@ -6967,7 +6987,7 @@ async function lo(e, t) {
6967
6987
  }
6968
6988
  //#endregion
6969
6989
  //#region src/signers/local.ts
6970
- var uo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", fo = "http://www.w3.org/2001/04/xmlenc#sha256", po = "http://www.w3.org/2001/10/xml-exc-c14n#", mo = class {
6990
+ var mo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", ho = "http://www.w3.org/2001/04/xmlenc#sha256", go = "http://www.w3.org/2001/10/xml-exc-c14n#", _o = class {
6971
6991
  async signSAML(e, t, n) {
6972
6992
  try {
6973
6993
  let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
@@ -6976,11 +6996,11 @@ var uo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", fo = "http://www.w
6976
6996
  privateKey: t,
6977
6997
  publicCert: n
6978
6998
  });
6979
- a.canonicalizationAlgorithm = po, a.addReference({
6999
+ a.canonicalizationAlgorithm = go, a.addReference({
6980
7000
  xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
6981
- digestAlgorithm: fo,
6982
- transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", po]
6983
- }), a.signatureAlgorithm = uo;
7001
+ digestAlgorithm: ho,
7002
+ transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", go]
7003
+ }), a.signatureAlgorithm = mo;
6984
7004
  let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
6985
7005
  return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
6986
7006
  reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
@@ -6990,7 +7010,7 @@ var uo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", fo = "http://www.w
6990
7010
  throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
6991
7011
  }
6992
7012
  }
6993
- }, ho = class {
7013
+ }, vo = class {
6994
7014
  signUrl;
6995
7015
  constructor(e) {
6996
7016
  this.signUrl = e;
@@ -7010,4 +7030,4 @@ var uo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", fo = "http://www.w
7010
7030
  }
7011
7031
  };
7012
7032
  //#endregion
7013
- export { ho as HttpSamlSigner, mo as LocalSamlSigner, co as createSamlMetadata, lo as createSamlResponse, s as dsSignatureSchema, oo as inflateDecompress, ao as inflateRaw, so as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
7033
+ export { vo as HttpSamlSigner, _o as LocalSamlSigner, fo as createSamlMetadata, po as createSamlResponse, s as dsSignatureSchema, lo as inflateDecompress, co as inflateRaw, uo as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };