@authhero/saml 0.5.12 → 0.5.14
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.cjs +4 -4
- package/dist/core.mjs +571 -518
- package/dist/saml.cjs +1 -1
- package/dist/saml.mjs +200 -147
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/saml.mjs
CHANGED
|
@@ -4354,6 +4354,7 @@ var $n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", er
|
|
|
4354
4354
|
"iat_dcr"
|
|
4355
4355
|
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
4356
4356
|
registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
|
|
4357
|
+
token_exchange: e.object({ allow_any_profile_of_type: e.array(e.literal("custom_authentication")).optional() }).optional().openapi({ description: "Custom Token Exchange settings. Set `allow_any_profile_of_type` to `[\"custom_authentication\"]` to let this client exchange subject tokens through the tenant's token exchange profiles." }),
|
|
4357
4358
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies." })
|
|
4358
4359
|
});
|
|
4359
4360
|
e.object({
|
|
@@ -4581,7 +4582,8 @@ var Dr = e.enum([
|
|
|
4581
4582
|
"authorization_code",
|
|
4582
4583
|
"oauth2_state",
|
|
4583
4584
|
"ticket",
|
|
4584
|
-
"client_assertion_jti"
|
|
4585
|
+
"client_assertion_jti",
|
|
4586
|
+
"subject_token_jti"
|
|
4585
4587
|
]);
|
|
4586
4588
|
e.object({
|
|
4587
4589
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
@@ -4824,7 +4826,11 @@ var Pr = e.object({
|
|
|
4824
4826
|
})
|
|
4825
4827
|
}), Br = J.extend({
|
|
4826
4828
|
type: e.literal("NEXT_BUTTON"),
|
|
4827
|
-
config: e.object({
|
|
4829
|
+
config: e.object({
|
|
4830
|
+
text: e.string().optional(),
|
|
4831
|
+
variant: e.enum(["primary", "secondary"]).optional(),
|
|
4832
|
+
skip_validation: e.boolean().optional()
|
|
4833
|
+
})
|
|
4828
4834
|
}), Vr = J.extend({
|
|
4829
4835
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
4830
4836
|
config: e.object({ text: e.string().optional() })
|
|
@@ -4985,6 +4991,7 @@ var Pr = e.object({
|
|
|
4985
4991
|
name: e.string(),
|
|
4986
4992
|
strategy: e.string().optional(),
|
|
4987
4993
|
display_name: e.string().optional(),
|
|
4994
|
+
short_name: e.string().optional(),
|
|
4988
4995
|
icon_url: e.string().optional(),
|
|
4989
4996
|
href: e.string().optional(),
|
|
4990
4997
|
last_used: e.boolean().optional(),
|
|
@@ -5320,7 +5327,7 @@ var Hi = e.object({
|
|
|
5320
5327
|
"HS256",
|
|
5321
5328
|
"HS384",
|
|
5322
5329
|
"HS512"
|
|
5323
|
-
]),
|
|
5330
|
+
]).optional(),
|
|
5324
5331
|
kid: e.string().optional(),
|
|
5325
5332
|
kty: e.enum([
|
|
5326
5333
|
"RSA",
|
|
@@ -5334,6 +5341,7 @@ var Hi = e.object({
|
|
|
5334
5341
|
x: e.string().optional(),
|
|
5335
5342
|
y: e.string().optional(),
|
|
5336
5343
|
x5t: e.string().optional(),
|
|
5344
|
+
"x5t#S256": e.string().optional(),
|
|
5337
5345
|
x5c: e.array(e.string()).optional()
|
|
5338
5346
|
}).superRefine((t, n) => {
|
|
5339
5347
|
if (t.kty === "RSA") for (let r of ["n", "e"]) t[r] || n.addIssue({
|
|
@@ -5350,8 +5358,8 @@ var Hi = e.object({
|
|
|
5350
5358
|
path: [r],
|
|
5351
5359
|
message: `EC JWK is missing required member '${r}'`
|
|
5352
5360
|
});
|
|
5353
|
-
});
|
|
5354
|
-
e.object({
|
|
5361
|
+
}), Ui = e.object({ keys: e.array(Hi) });
|
|
5362
|
+
e.object({
|
|
5355
5363
|
issuer: e.string(),
|
|
5356
5364
|
authorization_endpoint: e.string(),
|
|
5357
5365
|
token_endpoint: e.string(),
|
|
@@ -5378,9 +5386,9 @@ e.object({ keys: e.array(Hi) }), e.object({
|
|
|
5378
5386
|
backchannel_logout_supported: e.boolean().optional(),
|
|
5379
5387
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
5380
5388
|
});
|
|
5381
|
-
var
|
|
5389
|
+
var Wi = /* @__PURE__ */ function(e) {
|
|
5382
5390
|
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;
|
|
5383
|
-
}({}),
|
|
5391
|
+
}({}), Gi = e.nativeEnum(Wi), Ki = e.object({
|
|
5384
5392
|
strategy: e.string(),
|
|
5385
5393
|
strategy_type: e.string()
|
|
5386
5394
|
});
|
|
@@ -5394,12 +5402,12 @@ e.object({
|
|
|
5394
5402
|
useragent: e.string().optional(),
|
|
5395
5403
|
session_id: e.string().optional(),
|
|
5396
5404
|
authorization_url: e.string().optional(),
|
|
5397
|
-
state:
|
|
5405
|
+
state: Gi.optional().default("pending"),
|
|
5398
5406
|
state_data: e.string().optional(),
|
|
5399
5407
|
failure_reason: e.string().optional(),
|
|
5400
5408
|
user_id: e.string().optional(),
|
|
5401
5409
|
auth_connection: e.string().optional(),
|
|
5402
|
-
auth_strategy:
|
|
5410
|
+
auth_strategy: Ki.optional(),
|
|
5403
5411
|
authenticated_at: e.string().optional()
|
|
5404
5412
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
5405
5413
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -5566,17 +5574,17 @@ var Q = {
|
|
|
5566
5574
|
WARNING_DURING_LOGIN: "w",
|
|
5567
5575
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
5568
5576
|
WARNING_USER_MANAGEMENT: "wum"
|
|
5569
|
-
},
|
|
5577
|
+
}, qi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
5570
5578
|
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, (() => {
|
|
5571
5579
|
let e = {};
|
|
5572
5580
|
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";
|
|
5573
5581
|
return e;
|
|
5574
5582
|
})();
|
|
5575
|
-
var
|
|
5583
|
+
var Ji = e.object({
|
|
5576
5584
|
name: e.string(),
|
|
5577
5585
|
version: e.string(),
|
|
5578
5586
|
env: e.object({ node: e.string().optional() }).optional()
|
|
5579
|
-
}),
|
|
5587
|
+
}), Yi = e.object({
|
|
5580
5588
|
country_code: e.string().length(2),
|
|
5581
5589
|
city_name: e.string(),
|
|
5582
5590
|
latitude: e.string(),
|
|
@@ -5585,7 +5593,7 @@ var qi = e.object({
|
|
|
5585
5593
|
continent_code: e.string()
|
|
5586
5594
|
});
|
|
5587
5595
|
e.object({
|
|
5588
|
-
type:
|
|
5596
|
+
type: qi,
|
|
5589
5597
|
date: e.string(),
|
|
5590
5598
|
description: e.string().optional(),
|
|
5591
5599
|
ip: e.string().optional(),
|
|
@@ -5603,63 +5611,63 @@ e.object({
|
|
|
5603
5611
|
strategy: e.string().optional(),
|
|
5604
5612
|
strategy_type: e.string().optional(),
|
|
5605
5613
|
hostname: e.string().optional(),
|
|
5606
|
-
auth0_client:
|
|
5614
|
+
auth0_client: Ji.optional(),
|
|
5607
5615
|
log_id: e.string().optional(),
|
|
5608
|
-
location_info:
|
|
5616
|
+
location_info: Yi.optional()
|
|
5609
5617
|
}).extend({ log_id: e.string() });
|
|
5610
|
-
var
|
|
5618
|
+
var Xi = e.enum([
|
|
5611
5619
|
"http",
|
|
5612
5620
|
"eventbridge",
|
|
5613
5621
|
"eventgrid",
|
|
5614
5622
|
"splunk",
|
|
5615
5623
|
"datadog",
|
|
5616
5624
|
"sumo"
|
|
5617
|
-
]),
|
|
5625
|
+
]), Zi = e.enum([
|
|
5618
5626
|
"active",
|
|
5619
5627
|
"paused",
|
|
5620
5628
|
"suspended"
|
|
5621
|
-
]),
|
|
5629
|
+
]), Qi = e.object({
|
|
5622
5630
|
type: e.string(),
|
|
5623
5631
|
name: e.string()
|
|
5624
5632
|
});
|
|
5625
5633
|
e.object({
|
|
5626
5634
|
name: e.string(),
|
|
5627
|
-
type:
|
|
5628
|
-
status:
|
|
5635
|
+
type: Xi,
|
|
5636
|
+
status: Zi.optional(),
|
|
5629
5637
|
sink: e.record(e.string(), e.unknown()),
|
|
5630
|
-
filters: e.array(
|
|
5638
|
+
filters: e.array(Qi).optional(),
|
|
5631
5639
|
isPriority: e.boolean().optional()
|
|
5632
5640
|
}).extend({
|
|
5633
5641
|
id: e.string(),
|
|
5634
|
-
status:
|
|
5642
|
+
status: Zi,
|
|
5635
5643
|
created_at: e.string().optional(),
|
|
5636
5644
|
updated_at: e.string().optional()
|
|
5637
5645
|
});
|
|
5638
|
-
var
|
|
5646
|
+
var $i = e.enum([
|
|
5639
5647
|
"auth0",
|
|
5640
5648
|
"cognito",
|
|
5641
5649
|
"okta",
|
|
5642
5650
|
"oidc"
|
|
5643
|
-
]),
|
|
5651
|
+
]), ea = e.object({
|
|
5644
5652
|
domain: e.string(),
|
|
5645
5653
|
client_id: e.string(),
|
|
5646
5654
|
client_secret: e.string(),
|
|
5647
5655
|
audience: e.string().optional(),
|
|
5648
5656
|
scope: e.string().optional()
|
|
5649
|
-
}),
|
|
5657
|
+
}), ta = e.object({
|
|
5650
5658
|
id: e.string().optional(),
|
|
5651
5659
|
name: e.string(),
|
|
5652
|
-
provider:
|
|
5660
|
+
provider: $i,
|
|
5653
5661
|
connection: e.string(),
|
|
5654
5662
|
enabled: e.boolean().default(!0),
|
|
5655
|
-
credentials:
|
|
5663
|
+
credentials: ea
|
|
5656
5664
|
});
|
|
5657
5665
|
e.object({
|
|
5658
5666
|
id: e.string(),
|
|
5659
5667
|
created_at: e.string(),
|
|
5660
5668
|
updated_at: e.string()
|
|
5661
|
-
}).extend(
|
|
5662
|
-
var
|
|
5669
|
+
}).extend(ta.shape);
|
|
5670
|
+
var na = e.object({
|
|
5663
5671
|
enabled: e.boolean().optional(),
|
|
5664
5672
|
shields: e.array(e.string()).optional(),
|
|
5665
5673
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -5668,13 +5676,13 @@ var ta = e.object({
|
|
|
5668
5676
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
5669
5677
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
5670
5678
|
}).optional()
|
|
5671
|
-
}),
|
|
5679
|
+
}), ra = e.object({
|
|
5672
5680
|
enabled: e.boolean().optional(),
|
|
5673
5681
|
shields: e.array(e.string()).optional(),
|
|
5674
5682
|
allowlist: e.array(e.string()).optional(),
|
|
5675
5683
|
mode: e.string().optional(),
|
|
5676
5684
|
max_attempts: e.number().optional()
|
|
5677
|
-
}),
|
|
5685
|
+
}), ia = e.object({
|
|
5678
5686
|
enabled: e.boolean().optional(),
|
|
5679
5687
|
shields: e.array(e.string()).optional(),
|
|
5680
5688
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -5688,10 +5696,10 @@ var ta = e.object({
|
|
|
5688
5696
|
rate: e.number().optional()
|
|
5689
5697
|
}).optional()
|
|
5690
5698
|
}).optional()
|
|
5691
|
-
}),
|
|
5692
|
-
breached_password_detection:
|
|
5693
|
-
brute_force_protection:
|
|
5694
|
-
suspicious_ip_throttling:
|
|
5699
|
+
}), aa = e.object({
|
|
5700
|
+
breached_password_detection: na.optional(),
|
|
5701
|
+
brute_force_protection: ra.optional(),
|
|
5702
|
+
suspicious_ip_throttling: ia.optional()
|
|
5695
5703
|
});
|
|
5696
5704
|
e.object({
|
|
5697
5705
|
id: e.string().optional(),
|
|
@@ -5704,14 +5712,14 @@ e.object({
|
|
|
5704
5712
|
created_at: e.string(),
|
|
5705
5713
|
updated_at: e.string()
|
|
5706
5714
|
});
|
|
5707
|
-
var
|
|
5715
|
+
var oa = e.object({
|
|
5708
5716
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
5709
5717
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
5710
5718
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
5711
5719
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
5712
5720
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
5713
5721
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
5714
|
-
}),
|
|
5722
|
+
}), sa = e.object({
|
|
5715
5723
|
id: e.string(),
|
|
5716
5724
|
revoked_at: e.string().optional(),
|
|
5717
5725
|
used_at: e.string().optional(),
|
|
@@ -5719,7 +5727,7 @@ var aa = e.object({
|
|
|
5719
5727
|
expires_at: e.string().optional(),
|
|
5720
5728
|
login_session_id: e.string(),
|
|
5721
5729
|
idle_expires_at: e.string().optional(),
|
|
5722
|
-
device:
|
|
5730
|
+
device: oa.describe("Metadata related to the device used in the session"),
|
|
5723
5731
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
5724
5732
|
});
|
|
5725
5733
|
e.object({
|
|
@@ -5727,7 +5735,7 @@ e.object({
|
|
|
5727
5735
|
updated_at: e.string(),
|
|
5728
5736
|
authenticated_at: e.string(),
|
|
5729
5737
|
last_interaction_at: e.string()
|
|
5730
|
-
}).extend(
|
|
5738
|
+
}).extend(sa.shape), e.object({
|
|
5731
5739
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
5732
5740
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
5733
5741
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -5744,7 +5752,7 @@ e.object({
|
|
|
5744
5752
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
5745
5753
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
5746
5754
|
});
|
|
5747
|
-
var
|
|
5755
|
+
var ca = e.object({
|
|
5748
5756
|
id: e.string().optional(),
|
|
5749
5757
|
audience: e.string().optional(),
|
|
5750
5758
|
friendly_name: e.string(),
|
|
@@ -5862,7 +5870,7 @@ var sa = e.object({
|
|
|
5862
5870
|
"shared_planetscale"
|
|
5863
5871
|
]).optional(),
|
|
5864
5872
|
d1_database_id: e.string().max(64).optional(),
|
|
5865
|
-
attack_protection:
|
|
5873
|
+
attack_protection: aa.optional(),
|
|
5866
5874
|
mfa: e.object({
|
|
5867
5875
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
5868
5876
|
factors: e.object({
|
|
@@ -5893,29 +5901,29 @@ var sa = e.object({
|
|
|
5893
5901
|
e.object({
|
|
5894
5902
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
5895
5903
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
5896
|
-
}).extend(
|
|
5904
|
+
}).extend(ca.shape).extend({
|
|
5897
5905
|
id: e.string(),
|
|
5898
5906
|
is_control_plane: e.boolean().optional()
|
|
5899
5907
|
});
|
|
5900
|
-
var
|
|
5908
|
+
var la = e.enum([
|
|
5901
5909
|
"provision",
|
|
5902
5910
|
"seed",
|
|
5903
5911
|
"upgrade",
|
|
5904
5912
|
"backup",
|
|
5905
5913
|
"deprovision",
|
|
5906
5914
|
"users_import"
|
|
5907
|
-
]),
|
|
5915
|
+
]), ua = e.enum([
|
|
5908
5916
|
"pending",
|
|
5909
5917
|
"running",
|
|
5910
5918
|
"succeeded",
|
|
5911
5919
|
"failed",
|
|
5912
5920
|
"cancelled"
|
|
5913
|
-
]),
|
|
5921
|
+
]), da = e.string().max(64);
|
|
5914
5922
|
e.object({
|
|
5915
5923
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
5916
5924
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
5917
|
-
kind:
|
|
5918
|
-
engine:
|
|
5925
|
+
kind: la,
|
|
5926
|
+
engine: da,
|
|
5919
5927
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
5920
5928
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
5921
5929
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
@@ -5923,7 +5931,7 @@ e.object({
|
|
|
5923
5931
|
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
5924
5932
|
}).extend({
|
|
5925
5933
|
id: e.string(),
|
|
5926
|
-
status:
|
|
5934
|
+
status: ua,
|
|
5927
5935
|
current_step: e.string().max(255).nullable().optional(),
|
|
5928
5936
|
error: e.string().nullable().optional(),
|
|
5929
5937
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
@@ -5944,7 +5952,7 @@ e.object({
|
|
|
5944
5952
|
claim_expires_at: !0,
|
|
5945
5953
|
finished_at: !0
|
|
5946
5954
|
}).partial();
|
|
5947
|
-
var
|
|
5955
|
+
var fa = e.enum([
|
|
5948
5956
|
"started",
|
|
5949
5957
|
"succeeded",
|
|
5950
5958
|
"failed",
|
|
@@ -5955,14 +5963,14 @@ var da = e.enum([
|
|
|
5955
5963
|
e.object({
|
|
5956
5964
|
operation_id: e.string().max(255),
|
|
5957
5965
|
step: e.string().max(255),
|
|
5958
|
-
outcome:
|
|
5966
|
+
outcome: fa,
|
|
5959
5967
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
5960
5968
|
attempt: e.number().int().min(1).default(1)
|
|
5961
5969
|
}).extend({
|
|
5962
5970
|
id: e.string(),
|
|
5963
5971
|
created_at: e.string()
|
|
5964
5972
|
});
|
|
5965
|
-
var
|
|
5973
|
+
var pa = e.enum([
|
|
5966
5974
|
"pending",
|
|
5967
5975
|
"inserted",
|
|
5968
5976
|
"updated",
|
|
@@ -5973,28 +5981,28 @@ e.object({
|
|
|
5973
5981
|
operation_id: e.string().max(255),
|
|
5974
5982
|
seq: e.number().int().min(0),
|
|
5975
5983
|
payload: e.record(e.string(), e.unknown()),
|
|
5976
|
-
status:
|
|
5984
|
+
status: pa.default("pending"),
|
|
5977
5985
|
error_code: e.string().max(64).nullable().optional(),
|
|
5978
5986
|
error_message: e.string().nullable().optional(),
|
|
5979
5987
|
error_path: e.string().max(255).nullable().optional(),
|
|
5980
5988
|
entity_id: e.string().max(255).nullable().optional()
|
|
5981
5989
|
}).extend({
|
|
5982
|
-
status:
|
|
5990
|
+
status: pa,
|
|
5983
5991
|
created_at: e.string(),
|
|
5984
5992
|
updated_at: e.string()
|
|
5985
5993
|
}), e.object({
|
|
5986
5994
|
seq: e.number().int().min(0),
|
|
5987
|
-
status:
|
|
5995
|
+
status: pa,
|
|
5988
5996
|
error_code: e.string().max(64).nullable().optional(),
|
|
5989
5997
|
error_message: e.string().nullable().optional(),
|
|
5990
5998
|
error_path: e.string().max(255).nullable().optional(),
|
|
5991
5999
|
entity_id: e.string().max(255).nullable().optional()
|
|
5992
6000
|
});
|
|
5993
|
-
var
|
|
6001
|
+
var ma = e.enum([
|
|
5994
6002
|
"upgrade",
|
|
5995
6003
|
"reseed",
|
|
5996
6004
|
"backup"
|
|
5997
|
-
]),
|
|
6005
|
+
]), ha = e.enum([
|
|
5998
6006
|
"pending",
|
|
5999
6007
|
"canary",
|
|
6000
6008
|
"rolling",
|
|
@@ -6003,7 +6011,7 @@ var pa = e.enum([
|
|
|
6003
6011
|
"failed"
|
|
6004
6012
|
]);
|
|
6005
6013
|
e.object({
|
|
6006
|
-
kind:
|
|
6014
|
+
kind: ma,
|
|
6007
6015
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
6008
6016
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
6009
6017
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -6012,7 +6020,7 @@ e.object({
|
|
|
6012
6020
|
initiated_by: e.string().max(255).nullable().optional()
|
|
6013
6021
|
}).extend({
|
|
6014
6022
|
id: e.string(),
|
|
6015
|
-
status:
|
|
6023
|
+
status: ha,
|
|
6016
6024
|
created_at: e.string(),
|
|
6017
6025
|
updated_at: e.string(),
|
|
6018
6026
|
finished_at: e.string().nullable().optional()
|
|
@@ -6034,7 +6042,7 @@ e.object({
|
|
|
6034
6042
|
code: e.string(),
|
|
6035
6043
|
state: e.string().optional()
|
|
6036
6044
|
});
|
|
6037
|
-
var
|
|
6045
|
+
var ga = e.object({
|
|
6038
6046
|
button_border_radius: e.number(),
|
|
6039
6047
|
button_border_weight: e.number(),
|
|
6040
6048
|
buttons_style: e.enum([
|
|
@@ -6052,7 +6060,7 @@ var ha = e.object({
|
|
|
6052
6060
|
show_widget_shadow: e.boolean(),
|
|
6053
6061
|
widget_border_weight: e.number(),
|
|
6054
6062
|
widget_corner_radius: e.number()
|
|
6055
|
-
}),
|
|
6063
|
+
}), _a = e.object({
|
|
6056
6064
|
base_focus_color: e.string(),
|
|
6057
6065
|
base_hover_color: e.string(),
|
|
6058
6066
|
body_text: e.string(),
|
|
@@ -6079,7 +6087,7 @@ var ha = e.object({
|
|
|
6079
6087
|
}), $ = e.object({
|
|
6080
6088
|
bold: e.boolean(),
|
|
6081
6089
|
size: e.number()
|
|
6082
|
-
}),
|
|
6090
|
+
}), va = e.object({
|
|
6083
6091
|
body_text: $,
|
|
6084
6092
|
buttons_text: $,
|
|
6085
6093
|
font_url: e.string(),
|
|
@@ -6089,7 +6097,7 @@ var ha = e.object({
|
|
|
6089
6097
|
reference_text_size: e.number(),
|
|
6090
6098
|
subtitle: $,
|
|
6091
6099
|
title: $
|
|
6092
|
-
}),
|
|
6100
|
+
}), ya = e.object({
|
|
6093
6101
|
background_color: e.string(),
|
|
6094
6102
|
background_image_url: e.string(),
|
|
6095
6103
|
page_layout: e.enum([
|
|
@@ -6102,7 +6110,7 @@ var ha = e.object({
|
|
|
6102
6110
|
"chip",
|
|
6103
6111
|
"none"
|
|
6104
6112
|
]).optional()
|
|
6105
|
-
}),
|
|
6113
|
+
}), ba = e.object({
|
|
6106
6114
|
header_text_alignment: e.enum([
|
|
6107
6115
|
"center",
|
|
6108
6116
|
"left",
|
|
@@ -6119,12 +6127,12 @@ var ha = e.object({
|
|
|
6119
6127
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
6120
6128
|
});
|
|
6121
6129
|
e.object({
|
|
6122
|
-
borders:
|
|
6123
|
-
colors:
|
|
6130
|
+
borders: ga,
|
|
6131
|
+
colors: _a,
|
|
6124
6132
|
displayName: e.string(),
|
|
6125
|
-
fonts:
|
|
6126
|
-
page_background:
|
|
6127
|
-
widget:
|
|
6133
|
+
fonts: va,
|
|
6134
|
+
page_background: ya,
|
|
6135
|
+
widget: ba
|
|
6128
6136
|
}).extend({ themeId: e.string() }), e.object({
|
|
6129
6137
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
6130
6138
|
identifier_first: e.boolean().default(!0),
|
|
@@ -6132,44 +6140,89 @@ e.object({
|
|
|
6132
6140
|
show_last_used_connection: e.boolean().default(!1),
|
|
6133
6141
|
webauthn_platform_first_factor: e.boolean()
|
|
6134
6142
|
});
|
|
6135
|
-
var
|
|
6143
|
+
var xa = e.object({
|
|
6136
6144
|
hosts: e.array(e.string()).optional(),
|
|
6137
6145
|
methods: e.array(e.string()).optional(),
|
|
6138
6146
|
path: e.string().default("/*"),
|
|
6139
6147
|
headers: e.record(e.string(), e.string()).optional(),
|
|
6140
6148
|
query: e.record(e.string(), e.string()).optional()
|
|
6141
|
-
}),
|
|
6149
|
+
}), Sa = e.object({
|
|
6142
6150
|
type: e.string(),
|
|
6143
6151
|
options: e.record(e.string(), e.unknown()).default({})
|
|
6144
|
-
}),
|
|
6152
|
+
}), Ca = e.object({
|
|
6145
6153
|
id: e.string().optional(),
|
|
6146
6154
|
custom_domain_id: e.string(),
|
|
6147
6155
|
priority: e.number().int().default(100),
|
|
6148
|
-
match:
|
|
6149
|
-
handlers: e.array(
|
|
6156
|
+
match: xa,
|
|
6157
|
+
handlers: e.array(Sa).min(1)
|
|
6150
6158
|
});
|
|
6151
|
-
|
|
6159
|
+
Ca.extend({
|
|
6152
6160
|
id: e.string(),
|
|
6153
6161
|
tenant_id: e.string(),
|
|
6154
6162
|
created_at: e.string(),
|
|
6155
6163
|
updated_at: e.string()
|
|
6156
|
-
}),
|
|
6164
|
+
}), Ca.partial().omit({
|
|
6157
6165
|
id: !0,
|
|
6158
6166
|
custom_domain_id: !0
|
|
6159
6167
|
});
|
|
6160
|
-
var
|
|
6168
|
+
var wa = "custom_authentication", Ta = [
|
|
6169
|
+
"urn:ietf:params:oauth:",
|
|
6170
|
+
"urn:auth0",
|
|
6171
|
+
"urn:okta",
|
|
6172
|
+
"http://auth0.com",
|
|
6173
|
+
"https://auth0.com",
|
|
6174
|
+
"http://okta.com",
|
|
6175
|
+
"https://okta.com"
|
|
6176
|
+
], 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([
|
|
6177
|
+
"RS256",
|
|
6178
|
+
"RS384",
|
|
6179
|
+
"RS512",
|
|
6180
|
+
"ES256",
|
|
6181
|
+
"ES384",
|
|
6182
|
+
"ES512"
|
|
6183
|
+
]), Oa = e.discriminatedUnion("type", [e.object({
|
|
6184
|
+
type: e.literal("connection"),
|
|
6185
|
+
connection: e.string().min(1),
|
|
6186
|
+
create_if_not_exists: e.boolean().default(!0),
|
|
6187
|
+
trust_email_verified: e.boolean().default(!1)
|
|
6188
|
+
}), e.object({ type: e.literal("user_id") })]), ka = e.object({
|
|
6189
|
+
issuer: e.string().min(1).max(2048),
|
|
6190
|
+
jwks: Ui.optional(),
|
|
6191
|
+
jwks_uri: e.string().url().optional(),
|
|
6192
|
+
audience: e.array(e.string().min(1)).min(1).optional(),
|
|
6193
|
+
algorithms: e.array(Da).min(1).optional(),
|
|
6194
|
+
max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
|
|
6195
|
+
require_jti: e.boolean().default(!0),
|
|
6196
|
+
user_mapping: Oa
|
|
6197
|
+
});
|
|
6198
|
+
e.object({
|
|
6199
|
+
name: e.string().min(1).max(255),
|
|
6200
|
+
subject_token_type: Ea,
|
|
6201
|
+
action_id: e.string().min(1).optional(),
|
|
6202
|
+
type: e.literal(wa),
|
|
6203
|
+
jwt_verification: ka.optional()
|
|
6204
|
+
}).extend({
|
|
6205
|
+
id: e.string(),
|
|
6206
|
+
created_at: e.string(),
|
|
6207
|
+
updated_at: e.string()
|
|
6208
|
+
}), e.object({
|
|
6209
|
+
name: e.string().min(1).max(255).optional(),
|
|
6210
|
+
subject_token_type: Ea.optional(),
|
|
6211
|
+
jwt_verification: ka.optional()
|
|
6212
|
+
});
|
|
6213
|
+
var Aa = e.object({
|
|
6161
6214
|
scim: e.string(),
|
|
6162
6215
|
auth0: e.string()
|
|
6163
|
-
}),
|
|
6216
|
+
}), ja = e.object({
|
|
6164
6217
|
connection_id: e.string(),
|
|
6165
6218
|
user_id_attribute: e.string().default("externalId"),
|
|
6166
|
-
mapping: e.array(
|
|
6219
|
+
mapping: e.array(Aa).default([])
|
|
6167
6220
|
});
|
|
6168
6221
|
e.object({
|
|
6169
6222
|
created_at: e.string(),
|
|
6170
6223
|
updated_at: e.string()
|
|
6171
|
-
}).extend(
|
|
6172
|
-
var
|
|
6224
|
+
}).extend(ja.shape);
|
|
6225
|
+
var Ma = e.object({
|
|
6173
6226
|
token_id: e.string(),
|
|
6174
6227
|
connection_id: e.string(),
|
|
6175
6228
|
token_hash: e.string(),
|
|
@@ -6179,20 +6232,20 @@ var Ta = e.object({
|
|
|
6179
6232
|
e.object({
|
|
6180
6233
|
created_at: e.string(),
|
|
6181
6234
|
last_used_at: e.string().optional()
|
|
6182
|
-
}).extend(
|
|
6183
|
-
var
|
|
6235
|
+
}).extend(Ma.shape);
|
|
6236
|
+
var Na = e.object({
|
|
6184
6237
|
connection_id: e.string(),
|
|
6185
6238
|
external_id: e.string(),
|
|
6186
6239
|
user_id: e.string()
|
|
6187
6240
|
});
|
|
6188
|
-
e.object({ created_at: e.string() }).extend(
|
|
6241
|
+
e.object({ created_at: e.string() }).extend(Na.shape), e.object({
|
|
6189
6242
|
name: e.string(),
|
|
6190
6243
|
enabled: e.boolean().optional().default(!0),
|
|
6191
6244
|
default_from_address: e.string().optional(),
|
|
6192
6245
|
credentials: e.record(e.string(), e.unknown()),
|
|
6193
6246
|
settings: e.object({}).optional()
|
|
6194
6247
|
});
|
|
6195
|
-
var
|
|
6248
|
+
var Pa = e.enum([
|
|
6196
6249
|
"verify_email",
|
|
6197
6250
|
"verify_email_by_code",
|
|
6198
6251
|
"reset_email",
|
|
@@ -6207,7 +6260,7 @@ var Da = e.enum([
|
|
|
6207
6260
|
"user_invitation"
|
|
6208
6261
|
]);
|
|
6209
6262
|
e.object({
|
|
6210
|
-
template:
|
|
6263
|
+
template: Pa,
|
|
6211
6264
|
body: e.string(),
|
|
6212
6265
|
from: e.string(),
|
|
6213
6266
|
subject: e.string(),
|
|
@@ -6222,13 +6275,13 @@ e.object({
|
|
|
6222
6275
|
session_id: e.string().optional(),
|
|
6223
6276
|
organization: e.string().optional(),
|
|
6224
6277
|
auth_connection: e.string().optional(),
|
|
6225
|
-
auth_strategy:
|
|
6278
|
+
auth_strategy: Ki.optional(),
|
|
6226
6279
|
user_id: e.string(),
|
|
6227
6280
|
client_id: e.string(),
|
|
6228
6281
|
expires_at: e.string().optional(),
|
|
6229
6282
|
idle_expires_at: e.string().optional(),
|
|
6230
6283
|
last_exchanged_at: e.string().optional(),
|
|
6231
|
-
device:
|
|
6284
|
+
device: oa,
|
|
6232
6285
|
resource_servers: e.array(e.object({
|
|
6233
6286
|
audience: e.string(),
|
|
6234
6287
|
scopes: e.string()
|
|
@@ -6249,10 +6302,10 @@ e.object({
|
|
|
6249
6302
|
name: e.string(),
|
|
6250
6303
|
options: e.object({})
|
|
6251
6304
|
});
|
|
6252
|
-
var
|
|
6305
|
+
var Fa = e.object({
|
|
6253
6306
|
value: e.string(),
|
|
6254
6307
|
description: e.string().optional()
|
|
6255
|
-
}),
|
|
6308
|
+
}), Ia = e.object({
|
|
6256
6309
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
6257
6310
|
enforce_policies: e.boolean().optional(),
|
|
6258
6311
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -6260,11 +6313,11 @@ var Oa = e.object({
|
|
|
6260
6313
|
persist_client_authorization: e.boolean().optional(),
|
|
6261
6314
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
6262
6315
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
6263
|
-
}),
|
|
6316
|
+
}), La = e.object({
|
|
6264
6317
|
id: e.string().optional(),
|
|
6265
6318
|
name: e.string(),
|
|
6266
6319
|
identifier: e.string(),
|
|
6267
|
-
scopes: e.array(
|
|
6320
|
+
scopes: e.array(Fa).optional(),
|
|
6268
6321
|
signing_alg: e.string().optional(),
|
|
6269
6322
|
signing_secret: e.string().optional(),
|
|
6270
6323
|
token_lifetime: e.number().default(86400),
|
|
@@ -6272,20 +6325,20 @@ var Oa = e.object({
|
|
|
6272
6325
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
6273
6326
|
allow_offline_access: e.boolean().optional(),
|
|
6274
6327
|
verificationKey: e.string().optional(),
|
|
6275
|
-
options:
|
|
6328
|
+
options: Ia.optional(),
|
|
6276
6329
|
is_system: e.boolean().optional(),
|
|
6277
6330
|
metadata: e.record(e.string(), e.any()).optional()
|
|
6278
6331
|
}).extend({
|
|
6279
6332
|
created_at: e.string().optional(),
|
|
6280
6333
|
updated_at: e.string().optional()
|
|
6281
6334
|
});
|
|
6282
|
-
e.array(
|
|
6283
|
-
var
|
|
6335
|
+
e.array(La);
|
|
6336
|
+
var Ra = e.object({
|
|
6284
6337
|
role_id: e.string(),
|
|
6285
6338
|
resource_server_identifier: e.string(),
|
|
6286
6339
|
permission_name: e.string()
|
|
6287
6340
|
}).extend({ created_at: e.string() });
|
|
6288
|
-
e.array(
|
|
6341
|
+
e.array(Ra), e.object({
|
|
6289
6342
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
6290
6343
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
6291
6344
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -6298,7 +6351,7 @@ e.array(ja), e.object({
|
|
|
6298
6351
|
failed_logins: e.array(e.string()).optional(),
|
|
6299
6352
|
last_password_reset: e.string().optional()
|
|
6300
6353
|
});
|
|
6301
|
-
var
|
|
6354
|
+
var za = e.object({
|
|
6302
6355
|
user_id: e.string(),
|
|
6303
6356
|
resource_server_identifier: e.string(),
|
|
6304
6357
|
permission_name: e.string(),
|
|
@@ -6307,8 +6360,8 @@ var Ma = e.object({
|
|
|
6307
6360
|
tenant_id: e.string(),
|
|
6308
6361
|
created_at: e.string().optional()
|
|
6309
6362
|
});
|
|
6310
|
-
e.array(
|
|
6311
|
-
var
|
|
6363
|
+
e.array(za);
|
|
6364
|
+
var Ba = e.object({
|
|
6312
6365
|
user_id: e.string(),
|
|
6313
6366
|
resource_server_identifier: e.string(),
|
|
6314
6367
|
resource_server_name: e.string(),
|
|
@@ -6317,8 +6370,8 @@ var Na = e.object({
|
|
|
6317
6370
|
created_at: e.string().optional(),
|
|
6318
6371
|
organization_id: e.string().optional()
|
|
6319
6372
|
});
|
|
6320
|
-
e.array(
|
|
6321
|
-
var
|
|
6373
|
+
e.array(Ba);
|
|
6374
|
+
var Va = e.object({
|
|
6322
6375
|
user_id: e.string(),
|
|
6323
6376
|
role_id: e.string(),
|
|
6324
6377
|
organization_id: e.string().optional()
|
|
@@ -6326,8 +6379,8 @@ var Pa = e.object({
|
|
|
6326
6379
|
tenant_id: e.string(),
|
|
6327
6380
|
created_at: e.string().optional()
|
|
6328
6381
|
});
|
|
6329
|
-
e.array(
|
|
6330
|
-
var
|
|
6382
|
+
e.array(Va);
|
|
6383
|
+
var Ha = e.object({
|
|
6331
6384
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
6332
6385
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
6333
6386
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -6338,19 +6391,19 @@ var Fa = e.object({
|
|
|
6338
6391
|
created_at: e.string().optional(),
|
|
6339
6392
|
updated_at: e.string().optional()
|
|
6340
6393
|
});
|
|
6341
|
-
e.array(
|
|
6342
|
-
var
|
|
6394
|
+
e.array(Ha);
|
|
6395
|
+
var Ua = e.object({
|
|
6343
6396
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
6344
6397
|
colors: e.object({
|
|
6345
6398
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
6346
6399
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
6347
6400
|
}).optional()
|
|
6348
|
-
}).optional(),
|
|
6401
|
+
}).optional(), Wa = e.object({
|
|
6349
6402
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
6350
6403
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
6351
6404
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
6352
6405
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
6353
|
-
}),
|
|
6406
|
+
}), Ga = e.object({ client_credentials: e.object({
|
|
6354
6407
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
6355
6408
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
6356
6409
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -6359,15 +6412,15 @@ e.object({
|
|
|
6359
6412
|
id: e.string().optional(),
|
|
6360
6413
|
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." }),
|
|
6361
6414
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
6362
|
-
branding:
|
|
6415
|
+
branding: Ua,
|
|
6363
6416
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
6364
|
-
enabled_connections: e.array(
|
|
6365
|
-
token_quota:
|
|
6417
|
+
enabled_connections: e.array(Wa).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6418
|
+
token_quota: Ga
|
|
6366
6419
|
}).extend(G.shape).extend({
|
|
6367
6420
|
id: e.string(),
|
|
6368
6421
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
6369
6422
|
});
|
|
6370
|
-
var
|
|
6423
|
+
var Ka = e.object({
|
|
6371
6424
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
6372
6425
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
6373
6426
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -6380,7 +6433,7 @@ var za = e.object({
|
|
|
6380
6433
|
created_at: e.string().optional(),
|
|
6381
6434
|
updated_at: e.string().optional()
|
|
6382
6435
|
});
|
|
6383
|
-
e.array(
|
|
6436
|
+
e.array(Ka), e.object({
|
|
6384
6437
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
6385
6438
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
6386
6439
|
}).extend(G.shape).extend({ id: e.string() }), e.object({
|
|
@@ -6519,7 +6572,7 @@ e.array(za), e.object({
|
|
|
6519
6572
|
"passwordless",
|
|
6520
6573
|
"enterprise"
|
|
6521
6574
|
]);
|
|
6522
|
-
var
|
|
6575
|
+
var qa = e.object({
|
|
6523
6576
|
cohort: e.string(),
|
|
6524
6577
|
sessions: e.number(),
|
|
6525
6578
|
active: e.array(e.number())
|
|
@@ -6528,9 +6581,9 @@ e.object({
|
|
|
6528
6581
|
interval: e.literal("week"),
|
|
6529
6582
|
from: e.string(),
|
|
6530
6583
|
to: e.string(),
|
|
6531
|
-
cohorts: e.array(
|
|
6584
|
+
cohorts: e.array(qa)
|
|
6532
6585
|
});
|
|
6533
|
-
var
|
|
6586
|
+
var Ja = e.object({
|
|
6534
6587
|
cohort: e.string(),
|
|
6535
6588
|
tokens: e.number(),
|
|
6536
6589
|
active: e.array(e.number())
|
|
@@ -6539,24 +6592,24 @@ e.object({
|
|
|
6539
6592
|
interval: e.literal("week"),
|
|
6540
6593
|
from: e.string(),
|
|
6541
6594
|
to: e.string(),
|
|
6542
|
-
cohorts: e.array(
|
|
6595
|
+
cohorts: e.array(Ja)
|
|
6543
6596
|
});
|
|
6544
|
-
var
|
|
6597
|
+
var Ya = e.object({
|
|
6545
6598
|
name: e.string(),
|
|
6546
6599
|
type: e.string()
|
|
6547
|
-
}),
|
|
6600
|
+
}), Xa = e.object({
|
|
6548
6601
|
elapsed: e.number(),
|
|
6549
6602
|
rows_read: e.number().optional(),
|
|
6550
6603
|
bytes_read: e.number().optional()
|
|
6551
6604
|
});
|
|
6552
6605
|
e.object({
|
|
6553
|
-
meta: e.array(
|
|
6606
|
+
meta: e.array(Ya),
|
|
6554
6607
|
data: e.array(e.record(e.string(), e.any())),
|
|
6555
6608
|
rows: e.number(),
|
|
6556
6609
|
rows_before_limit_at_least: e.number().optional(),
|
|
6557
|
-
statistics:
|
|
6610
|
+
statistics: Xa.optional()
|
|
6558
6611
|
});
|
|
6559
|
-
var
|
|
6612
|
+
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({
|
|
6560
6613
|
type: "object",
|
|
6561
6614
|
additionalProperties: {
|
|
6562
6615
|
type: "object",
|
|
@@ -6564,11 +6617,11 @@ var Wa = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
6564
6617
|
}
|
|
6565
6618
|
});
|
|
6566
6619
|
e.object({
|
|
6567
|
-
prompt:
|
|
6620
|
+
prompt: Za,
|
|
6568
6621
|
language: e.string(),
|
|
6569
|
-
custom_text:
|
|
6622
|
+
custom_text: Qa
|
|
6570
6623
|
});
|
|
6571
|
-
var
|
|
6624
|
+
var $a = e.enum([
|
|
6572
6625
|
"phone",
|
|
6573
6626
|
"totp",
|
|
6574
6627
|
"email",
|
|
@@ -6576,9 +6629,9 @@ var Ka = e.enum([
|
|
|
6576
6629
|
"webauthn-roaming",
|
|
6577
6630
|
"webauthn-platform",
|
|
6578
6631
|
"passkey"
|
|
6579
|
-
]),
|
|
6632
|
+
]), eo = e.object({
|
|
6580
6633
|
user_id: e.string(),
|
|
6581
|
-
type:
|
|
6634
|
+
type: $a,
|
|
6582
6635
|
phone_number: e.string().optional(),
|
|
6583
6636
|
totp_secret: e.string().optional(),
|
|
6584
6637
|
credential_id: e.string().optional(),
|
|
@@ -6589,7 +6642,7 @@ var Ka = e.enum([
|
|
|
6589
6642
|
friendly_name: e.string().optional(),
|
|
6590
6643
|
confirmed: e.boolean().default(!1)
|
|
6591
6644
|
});
|
|
6592
|
-
function
|
|
6645
|
+
function to(t, n) {
|
|
6593
6646
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
6594
6647
|
code: e.ZodIssueCode.custom,
|
|
6595
6648
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -6612,51 +6665,51 @@ function Ja(t, n) {
|
|
|
6612
6665
|
path: ["public_key"]
|
|
6613
6666
|
}));
|
|
6614
6667
|
}
|
|
6615
|
-
|
|
6668
|
+
eo.superRefine(to), eo.extend({
|
|
6616
6669
|
id: e.string(),
|
|
6617
6670
|
created_at: e.string(),
|
|
6618
6671
|
updated_at: e.string()
|
|
6619
|
-
}).superRefine(
|
|
6672
|
+
}).superRefine(to), e.object({
|
|
6620
6673
|
id: e.string().optional(),
|
|
6621
6674
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
6622
6675
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
6623
6676
|
});
|
|
6624
|
-
function
|
|
6677
|
+
function no(e) {
|
|
6625
6678
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
6626
6679
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
6627
6680
|
return n;
|
|
6628
6681
|
}
|
|
6629
6682
|
//#endregion
|
|
6630
6683
|
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6631
|
-
var
|
|
6684
|
+
var ro = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", io = (e = 21) => {
|
|
6632
6685
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
6633
|
-
for (; e--;) t +=
|
|
6686
|
+
for (; e--;) t += ro[n[e] & 63];
|
|
6634
6687
|
return t;
|
|
6635
6688
|
};
|
|
6636
6689
|
//#endregion
|
|
6637
6690
|
//#region src/helpers.ts
|
|
6638
|
-
async function
|
|
6691
|
+
async function ao(e) {
|
|
6639
6692
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
6640
6693
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
6641
6694
|
}
|
|
6642
|
-
async function
|
|
6643
|
-
let t =
|
|
6695
|
+
async function oo(e) {
|
|
6696
|
+
let t = no(e.replace(/ /g, "+"));
|
|
6644
6697
|
try {
|
|
6645
|
-
let e = await
|
|
6698
|
+
let e = await ao(t);
|
|
6646
6699
|
return new TextDecoder().decode(e);
|
|
6647
6700
|
} catch (e) {
|
|
6648
6701
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
6649
6702
|
}
|
|
6650
6703
|
}
|
|
6651
|
-
async function
|
|
6652
|
-
let t = await
|
|
6704
|
+
async function so(e) {
|
|
6705
|
+
let t = await oo(e), n = new tn({
|
|
6653
6706
|
attributeNamePrefix: "@_",
|
|
6654
6707
|
alwaysCreateTextNode: !0,
|
|
6655
6708
|
ignoreAttributes: !1
|
|
6656
6709
|
}).parse(t);
|
|
6657
6710
|
return r.parse(n);
|
|
6658
6711
|
}
|
|
6659
|
-
function
|
|
6712
|
+
function co(e) {
|
|
6660
6713
|
let t = e.certificates.map((e) => ({
|
|
6661
6714
|
"@_use": "signing",
|
|
6662
6715
|
KeyInfo: {
|
|
@@ -6730,8 +6783,8 @@ function to(e) {
|
|
|
6730
6783
|
attributeNamePrefix: "@_"
|
|
6731
6784
|
}).build(n);
|
|
6732
6785
|
}
|
|
6733
|
-
async function
|
|
6734
|
-
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 || `_${
|
|
6786
|
+
async function lo(e, t) {
|
|
6787
|
+
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 = [{
|
|
6735
6788
|
"samlp:Response": [
|
|
6736
6789
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
6737
6790
|
{ "samlp:Status": [{
|
|
@@ -6912,7 +6965,7 @@ async function no(e, t) {
|
|
|
6912
6965
|
}
|
|
6913
6966
|
//#endregion
|
|
6914
6967
|
//#region src/signers/local.ts
|
|
6915
|
-
var
|
|
6968
|
+
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 {
|
|
6916
6969
|
async signSAML(e, t, n) {
|
|
6917
6970
|
try {
|
|
6918
6971
|
let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
|
|
@@ -6921,11 +6974,11 @@ var ro = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", io = "http://www.w
|
|
|
6921
6974
|
privateKey: t,
|
|
6922
6975
|
publicCert: n
|
|
6923
6976
|
});
|
|
6924
|
-
a.canonicalizationAlgorithm =
|
|
6977
|
+
a.canonicalizationAlgorithm = po, a.addReference({
|
|
6925
6978
|
xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
|
|
6926
|
-
digestAlgorithm:
|
|
6927
|
-
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature",
|
|
6928
|
-
}), a.signatureAlgorithm =
|
|
6979
|
+
digestAlgorithm: fo,
|
|
6980
|
+
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", po]
|
|
6981
|
+
}), a.signatureAlgorithm = uo;
|
|
6929
6982
|
let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
|
|
6930
6983
|
return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
|
|
6931
6984
|
reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
|
|
@@ -6935,7 +6988,7 @@ var ro = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", io = "http://www.w
|
|
|
6935
6988
|
throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
|
|
6936
6989
|
}
|
|
6937
6990
|
}
|
|
6938
|
-
},
|
|
6991
|
+
}, ho = class {
|
|
6939
6992
|
signUrl;
|
|
6940
6993
|
constructor(e) {
|
|
6941
6994
|
this.signUrl = e;
|
|
@@ -6955,4 +7008,4 @@ var ro = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", io = "http://www.w
|
|
|
6955
7008
|
}
|
|
6956
7009
|
};
|
|
6957
7010
|
//#endregion
|
|
6958
|
-
export {
|
|
7011
|
+
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 };
|