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