@workos/openapi-spec 0.158.0 → 0.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/open-api-spec.yaml +23 -13
- package/dist/types.d.ts +21 -16
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -15119,7 +15119,7 @@ paths:
|
|
|
15119
15119
|
content:
|
|
15120
15120
|
application/json:
|
|
15121
15121
|
schema:
|
|
15122
|
-
$ref: '#/components/schemas/
|
|
15122
|
+
$ref: '#/components/schemas/PolicyDeniedErrorBody'
|
|
15123
15123
|
'422':
|
|
15124
15124
|
description: Unprocessable Entity
|
|
15125
15125
|
content:
|
|
@@ -16410,7 +16410,7 @@ paths:
|
|
|
16410
16410
|
content:
|
|
16411
16411
|
application/json:
|
|
16412
16412
|
schema:
|
|
16413
|
-
$ref: '#/components/schemas/
|
|
16413
|
+
$ref: '#/components/schemas/PolicyDeniedErrorBody'
|
|
16414
16414
|
'404':
|
|
16415
16415
|
description: Not Found
|
|
16416
16416
|
content:
|
|
@@ -23951,7 +23951,6 @@ components:
|
|
|
23951
23951
|
- permission_not_found
|
|
23952
23952
|
- permission_slug_conflict
|
|
23953
23953
|
- phone_number_required
|
|
23954
|
-
- policy_denied
|
|
23955
23954
|
- production_feature_requires_billing
|
|
23956
23955
|
- radar_challenge
|
|
23957
23956
|
- radar_sign_up_challenge
|
|
@@ -24440,6 +24439,27 @@ components:
|
|
|
24440
24439
|
required: &ref_35
|
|
24441
24440
|
- error
|
|
24442
24441
|
- error_description
|
|
24442
|
+
PolicyDeniedErrorBody:
|
|
24443
|
+
type: object
|
|
24444
|
+
properties:
|
|
24445
|
+
code:
|
|
24446
|
+
type: string
|
|
24447
|
+
const: policy_denied
|
|
24448
|
+
description: The error code identifying the type of error.
|
|
24449
|
+
example: policy_denied
|
|
24450
|
+
message:
|
|
24451
|
+
type: string
|
|
24452
|
+
description: A human-readable description of the error.
|
|
24453
|
+
example: Request could not be processed.
|
|
24454
|
+
radar_detection_id:
|
|
24455
|
+
type: string
|
|
24456
|
+
description: >-
|
|
24457
|
+
The ID of the Radar detection that blocked the request. Only set
|
|
24458
|
+
when Radar blocked it.
|
|
24459
|
+
example: detection_01HZBC6N1EB1ZY7KG32X
|
|
24460
|
+
required:
|
|
24461
|
+
- code
|
|
24462
|
+
- message
|
|
24443
24463
|
SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug:
|
|
24444
24464
|
type: object
|
|
24445
24465
|
properties:
|
|
@@ -25250,16 +25270,6 @@ components:
|
|
|
25250
25270
|
const: application_consent_required
|
|
25251
25271
|
message: *ref_29
|
|
25252
25272
|
required: *ref_30
|
|
25253
|
-
PolicyDeniedErrorBody:
|
|
25254
|
-
type: object
|
|
25255
|
-
properties:
|
|
25256
|
-
code:
|
|
25257
|
-
type: string
|
|
25258
|
-
description: The error code identifying the type of error.
|
|
25259
|
-
example: policy_denied
|
|
25260
|
-
const: policy_denied
|
|
25261
|
-
message: *ref_29
|
|
25262
|
-
required: *ref_30
|
|
25263
25273
|
ActionDeniedErrorBody:
|
|
25264
25274
|
type: object
|
|
25265
25275
|
properties:
|
package/dist/types.d.ts
CHANGED
|
@@ -6568,7 +6568,7 @@ export interface components {
|
|
|
6568
6568
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6569
6569
|
* @enum {string}
|
|
6570
6570
|
*/
|
|
6571
|
-
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "
|
|
6571
|
+
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "production_feature_requires_billing" | "radar_challenge" | "radar_sign_up_challenge" | "radar_sms_sign_in_challenge" | "rate_limit_exceeded" | "resource_has_dependents" | "resource_limit_exceeded" | "resource_type_update_in_progress" | "role_has_assignments" | "role_has_group_role_mappings" | "role_not_found" | "role_not_invocable" | "role_slug_conflict" | "saml_options_required" | "session_expired" | "session_revoked" | "session_settings_not_found" | "sms_challenge_quota_reached" | "sms_challenge_rate_limited" | "sp_signing_cert_already_exists" | "stripe_customer_id_already_used" | "sub_resource_scoped_role_not_allowed" | "team_not_found" | "token_authentication_method_not_supported" | "too_many_failed_verification_attempts" | "too_many_sp_encryption_certs" | "unsupported_invocation_type" | "user_already_exists" | "user_already_organization_member" | "user_code_expired" | "user_consent_options_not_supported" | "user_creation_error" | "user_mismatch" | "user_not_member_of_organization" | "user_session_ended" | "verification_id_required" | "wrong_account";
|
|
6572
6572
|
ErrorBodyWithCode: {
|
|
6573
6573
|
/**
|
|
6574
6574
|
* @description The error code identifying the type of error.
|
|
@@ -6895,6 +6895,24 @@ export interface components {
|
|
|
6895
6895
|
*/
|
|
6896
6896
|
error_description: string;
|
|
6897
6897
|
};
|
|
6898
|
+
PolicyDeniedErrorBody: {
|
|
6899
|
+
/**
|
|
6900
|
+
* @description The error code identifying the type of error.
|
|
6901
|
+
* @example policy_denied
|
|
6902
|
+
* @constant
|
|
6903
|
+
*/
|
|
6904
|
+
code: "policy_denied";
|
|
6905
|
+
/**
|
|
6906
|
+
* @description A human-readable description of the error.
|
|
6907
|
+
* @example Request could not be processed.
|
|
6908
|
+
*/
|
|
6909
|
+
message: string;
|
|
6910
|
+
/**
|
|
6911
|
+
* @description The ID of the Radar detection that blocked the request. Only set when Radar blocked it.
|
|
6912
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
6913
|
+
*/
|
|
6914
|
+
radar_detection_id?: string;
|
|
6915
|
+
};
|
|
6898
6916
|
SubResourceScopedRoleNotAllowedErrorBodyWithRoleSlug: {
|
|
6899
6917
|
/**
|
|
6900
6918
|
* @description A human-readable description of the error.
|
|
@@ -7920,19 +7938,6 @@ export interface components {
|
|
|
7920
7938
|
*/
|
|
7921
7939
|
message: string;
|
|
7922
7940
|
};
|
|
7923
|
-
PolicyDeniedErrorBody: {
|
|
7924
|
-
/**
|
|
7925
|
-
* @description The error code identifying the type of error.
|
|
7926
|
-
* @example policy_denied
|
|
7927
|
-
* @constant
|
|
7928
|
-
*/
|
|
7929
|
-
code: "policy_denied";
|
|
7930
|
-
/**
|
|
7931
|
-
* @description A human-readable description of the error.
|
|
7932
|
-
* @example Request could not be processed.
|
|
7933
|
-
*/
|
|
7934
|
-
message: string;
|
|
7935
|
-
};
|
|
7936
7941
|
ActionDeniedErrorBody: {
|
|
7937
7942
|
/**
|
|
7938
7943
|
* @description The error code identifying the type of error.
|
|
@@ -36485,7 +36490,7 @@ export interface operations {
|
|
|
36485
36490
|
[name: string]: unknown;
|
|
36486
36491
|
};
|
|
36487
36492
|
content: {
|
|
36488
|
-
"application/json": components["schemas"]["
|
|
36493
|
+
"application/json": components["schemas"]["PolicyDeniedErrorBody"];
|
|
36489
36494
|
};
|
|
36490
36495
|
};
|
|
36491
36496
|
/** @description Unprocessable Entity */
|
|
@@ -37613,7 +37618,7 @@ export interface operations {
|
|
|
37613
37618
|
[name: string]: unknown;
|
|
37614
37619
|
};
|
|
37615
37620
|
content: {
|
|
37616
|
-
"application/json": components["schemas"]["
|
|
37621
|
+
"application/json": components["schemas"]["PolicyDeniedErrorBody"];
|
|
37617
37622
|
};
|
|
37618
37623
|
};
|
|
37619
37624
|
/** @description Not Found */
|