@workos/openapi-spec 0.174.0 → 0.175.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 +48 -1
- package/dist/types.d.ts +41 -2
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -15979,7 +15979,9 @@ paths:
|
|
|
15979
15979
|
content:
|
|
15980
15980
|
application/json:
|
|
15981
15981
|
schema:
|
|
15982
|
-
|
|
15982
|
+
anyOf:
|
|
15983
|
+
- $ref: '#/components/schemas/EntitiesNotFoundErrorBodyWithIdsList'
|
|
15984
|
+
- $ref: '#/components/schemas/EntityNotFoundErrorBodyWithEntityId'
|
|
15983
15985
|
'422':
|
|
15984
15986
|
description: Unprocessable Entity
|
|
15985
15987
|
content:
|
|
@@ -24554,6 +24556,7 @@ components:
|
|
|
24554
24556
|
- email_verification_code_incorrect
|
|
24555
24557
|
- email_verification_code_previously_used
|
|
24556
24558
|
- email_verification_required
|
|
24559
|
+
- entities_not_found
|
|
24557
24560
|
- entity_not_found
|
|
24558
24561
|
- expires_in_days_too_long
|
|
24559
24562
|
- expires_in_days_too_short
|
|
@@ -25156,6 +25159,50 @@ components:
|
|
|
25156
25159
|
- message
|
|
25157
25160
|
- code
|
|
25158
25161
|
- role_slug
|
|
25162
|
+
EntitiesNotFoundErrorBodyWithIdsList:
|
|
25163
|
+
type: object
|
|
25164
|
+
properties:
|
|
25165
|
+
code:
|
|
25166
|
+
type: string
|
|
25167
|
+
const: entities_not_found
|
|
25168
|
+
description: The error code identifying the type of error.
|
|
25169
|
+
example: entities_not_found
|
|
25170
|
+
message:
|
|
25171
|
+
type: string
|
|
25172
|
+
description: A human-readable description of the error.
|
|
25173
|
+
example: Request could not be processed.
|
|
25174
|
+
ids:
|
|
25175
|
+
type: array
|
|
25176
|
+
items:
|
|
25177
|
+
type: string
|
|
25178
|
+
description: The requested user and organization IDs, in that order.
|
|
25179
|
+
example:
|
|
25180
|
+
- user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E
|
|
25181
|
+
- org_01E4ZCR3C56J083X43JQXF3JK5
|
|
25182
|
+
required:
|
|
25183
|
+
- code
|
|
25184
|
+
- message
|
|
25185
|
+
- ids
|
|
25186
|
+
EntityNotFoundErrorBodyWithEntityId:
|
|
25187
|
+
type: object
|
|
25188
|
+
properties:
|
|
25189
|
+
code:
|
|
25190
|
+
type: string
|
|
25191
|
+
const: entity_not_found
|
|
25192
|
+
description: The error code identifying the type of error.
|
|
25193
|
+
example: entity_not_found
|
|
25194
|
+
message:
|
|
25195
|
+
type: string
|
|
25196
|
+
description: A human-readable description of the error.
|
|
25197
|
+
example: Request could not be processed.
|
|
25198
|
+
entity_id:
|
|
25199
|
+
type: string
|
|
25200
|
+
description: The ID of the organization that was not found.
|
|
25201
|
+
example: org_01E4ZCR3C56J083X43JQXF3JK5
|
|
25202
|
+
required:
|
|
25203
|
+
- code
|
|
25204
|
+
- message
|
|
25205
|
+
- entity_id
|
|
25159
25206
|
EmailCompletionRequiredErrorBodyWithEmailCompletionToken:
|
|
25160
25207
|
type: object
|
|
25161
25208
|
properties:
|
package/dist/types.d.ts
CHANGED
|
@@ -6702,7 +6702,7 @@ export interface components {
|
|
|
6702
6702
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6703
6703
|
* @enum {string}
|
|
6704
6704
|
*/
|
|
6705
|
-
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" | "cannot_remove_group_sourced_role" | "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" | "discovery_endpoint_tenant_not_allowed" | "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_assignment_update_overlap" | "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";
|
|
6705
|
+
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" | "cannot_remove_group_sourced_role" | "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" | "discovery_endpoint_tenant_not_allowed" | "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" | "entities_not_found" | "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_assignment_update_overlap" | "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";
|
|
6706
6706
|
ErrorBodyWithCode: {
|
|
6707
6707
|
/**
|
|
6708
6708
|
* @description The error code identifying the type of error.
|
|
@@ -7065,6 +7065,45 @@ export interface components {
|
|
|
7065
7065
|
*/
|
|
7066
7066
|
role_slug: string;
|
|
7067
7067
|
};
|
|
7068
|
+
EntitiesNotFoundErrorBodyWithIdsList: {
|
|
7069
|
+
/**
|
|
7070
|
+
* @description The error code identifying the type of error.
|
|
7071
|
+
* @example entities_not_found
|
|
7072
|
+
* @constant
|
|
7073
|
+
*/
|
|
7074
|
+
code: "entities_not_found";
|
|
7075
|
+
/**
|
|
7076
|
+
* @description A human-readable description of the error.
|
|
7077
|
+
* @example Request could not be processed.
|
|
7078
|
+
*/
|
|
7079
|
+
message: string;
|
|
7080
|
+
/**
|
|
7081
|
+
* @description The requested user and organization IDs, in that order.
|
|
7082
|
+
* @example [
|
|
7083
|
+
* "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E",
|
|
7084
|
+
* "org_01E4ZCR3C56J083X43JQXF3JK5"
|
|
7085
|
+
* ]
|
|
7086
|
+
*/
|
|
7087
|
+
ids: string[];
|
|
7088
|
+
};
|
|
7089
|
+
EntityNotFoundErrorBodyWithEntityId: {
|
|
7090
|
+
/**
|
|
7091
|
+
* @description The error code identifying the type of error.
|
|
7092
|
+
* @example entity_not_found
|
|
7093
|
+
* @constant
|
|
7094
|
+
*/
|
|
7095
|
+
code: "entity_not_found";
|
|
7096
|
+
/**
|
|
7097
|
+
* @description A human-readable description of the error.
|
|
7098
|
+
* @example Request could not be processed.
|
|
7099
|
+
*/
|
|
7100
|
+
message: string;
|
|
7101
|
+
/**
|
|
7102
|
+
* @description The ID of the organization that was not found.
|
|
7103
|
+
* @example org_01E4ZCR3C56J083X43JQXF3JK5
|
|
7104
|
+
*/
|
|
7105
|
+
entity_id: string;
|
|
7106
|
+
};
|
|
7068
7107
|
EmailCompletionRequiredErrorBodyWithEmailCompletionToken: {
|
|
7069
7108
|
/**
|
|
7070
7109
|
* @description The error code identifying the type of error.
|
|
@@ -37472,7 +37511,7 @@ export interface operations {
|
|
|
37472
37511
|
[name: string]: unknown;
|
|
37473
37512
|
};
|
|
37474
37513
|
content: {
|
|
37475
|
-
"application/json": components["schemas"]["
|
|
37514
|
+
"application/json": components["schemas"]["EntitiesNotFoundErrorBodyWithIdsList"] | components["schemas"]["EntityNotFoundErrorBodyWithEntityId"];
|
|
37476
37515
|
};
|
|
37477
37516
|
};
|
|
37478
37517
|
/** @description Unprocessable Entity */
|