@workos/openapi-spec 0.174.0 → 0.176.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 +84 -1
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +110 -2
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -15043,6 +15043,42 @@ paths:
|
|
|
15043
15043
|
summary: List CORS origins
|
|
15044
15044
|
tags:
|
|
15045
15045
|
- user-management.cors-origins
|
|
15046
|
+
/user_management/cors_origins/{id}:
|
|
15047
|
+
delete:
|
|
15048
|
+
description: Deletes a CORS origin from the API key's application.
|
|
15049
|
+
operationId: CorsOriginsController_delete
|
|
15050
|
+
parameters:
|
|
15051
|
+
- name: id
|
|
15052
|
+
required: true
|
|
15053
|
+
in: path
|
|
15054
|
+
description: The ID of the CORS origin to delete.
|
|
15055
|
+
schema:
|
|
15056
|
+
type: string
|
|
15057
|
+
example: cors_origin_01HXYZ123456789ABCDEFGHIJ
|
|
15058
|
+
responses:
|
|
15059
|
+
'204':
|
|
15060
|
+
description: CORS origin deleted successfully.
|
|
15061
|
+
'401':
|
|
15062
|
+
description: Unauthorized
|
|
15063
|
+
content:
|
|
15064
|
+
application/json:
|
|
15065
|
+
schema:
|
|
15066
|
+
$ref: '#/components/schemas/ErrorBody'
|
|
15067
|
+
example:
|
|
15068
|
+
message: Unauthorized
|
|
15069
|
+
'404':
|
|
15070
|
+
description: CORS origin not found.
|
|
15071
|
+
content:
|
|
15072
|
+
application/json:
|
|
15073
|
+
schema:
|
|
15074
|
+
$ref: '#/components/schemas/ErrorBody'
|
|
15075
|
+
example:
|
|
15076
|
+
message: >-
|
|
15077
|
+
CORS origin not found:
|
|
15078
|
+
'cors_origin_01HXYZ123456789ABCDEFGHIJ'.
|
|
15079
|
+
summary: Delete a CORS origin
|
|
15080
|
+
tags:
|
|
15081
|
+
- user-management.cors-origins
|
|
15046
15082
|
/user_management/email_verification/{id}:
|
|
15047
15083
|
get:
|
|
15048
15084
|
description: >-
|
|
@@ -15979,7 +16015,9 @@ paths:
|
|
|
15979
16015
|
content:
|
|
15980
16016
|
application/json:
|
|
15981
16017
|
schema:
|
|
15982
|
-
|
|
16018
|
+
anyOf:
|
|
16019
|
+
- $ref: '#/components/schemas/EntitiesNotFoundErrorBodyWithIdsList'
|
|
16020
|
+
- $ref: '#/components/schemas/EntityNotFoundErrorBodyWithEntityId'
|
|
15983
16021
|
'422':
|
|
15984
16022
|
description: Unprocessable Entity
|
|
15985
16023
|
content:
|
|
@@ -24554,6 +24592,7 @@ components:
|
|
|
24554
24592
|
- email_verification_code_incorrect
|
|
24555
24593
|
- email_verification_code_previously_used
|
|
24556
24594
|
- email_verification_required
|
|
24595
|
+
- entities_not_found
|
|
24557
24596
|
- entity_not_found
|
|
24558
24597
|
- expires_in_days_too_long
|
|
24559
24598
|
- expires_in_days_too_short
|
|
@@ -25156,6 +25195,50 @@ components:
|
|
|
25156
25195
|
- message
|
|
25157
25196
|
- code
|
|
25158
25197
|
- role_slug
|
|
25198
|
+
EntitiesNotFoundErrorBodyWithIdsList:
|
|
25199
|
+
type: object
|
|
25200
|
+
properties:
|
|
25201
|
+
code:
|
|
25202
|
+
type: string
|
|
25203
|
+
const: entities_not_found
|
|
25204
|
+
description: The error code identifying the type of error.
|
|
25205
|
+
example: entities_not_found
|
|
25206
|
+
message:
|
|
25207
|
+
type: string
|
|
25208
|
+
description: A human-readable description of the error.
|
|
25209
|
+
example: Request could not be processed.
|
|
25210
|
+
ids:
|
|
25211
|
+
type: array
|
|
25212
|
+
items:
|
|
25213
|
+
type: string
|
|
25214
|
+
description: The requested user and organization IDs, in that order.
|
|
25215
|
+
example:
|
|
25216
|
+
- user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E
|
|
25217
|
+
- org_01E4ZCR3C56J083X43JQXF3JK5
|
|
25218
|
+
required:
|
|
25219
|
+
- code
|
|
25220
|
+
- message
|
|
25221
|
+
- ids
|
|
25222
|
+
EntityNotFoundErrorBodyWithEntityId:
|
|
25223
|
+
type: object
|
|
25224
|
+
properties:
|
|
25225
|
+
code:
|
|
25226
|
+
type: string
|
|
25227
|
+
const: entity_not_found
|
|
25228
|
+
description: The error code identifying the type of error.
|
|
25229
|
+
example: entity_not_found
|
|
25230
|
+
message:
|
|
25231
|
+
type: string
|
|
25232
|
+
description: A human-readable description of the error.
|
|
25233
|
+
example: Request could not be processed.
|
|
25234
|
+
entity_id:
|
|
25235
|
+
type: string
|
|
25236
|
+
description: The ID of the organization that was not found.
|
|
25237
|
+
example: org_01E4ZCR3C56J083X43JQXF3JK5
|
|
25238
|
+
required:
|
|
25239
|
+
- code
|
|
25240
|
+
- message
|
|
25241
|
+
- entity_id
|
|
25159
25242
|
EmailCompletionRequiredErrorBodyWithEmailCompletionToken:
|
|
25160
25243
|
type: object
|
|
25161
25244
|
properties:
|
package/dist/services.mjs
CHANGED
|
@@ -1119,6 +1119,11 @@ const serviceEndpoints = {
|
|
|
1119
1119
|
"path": "/user_management/cors_origins",
|
|
1120
1120
|
"name": "create_cors_origin"
|
|
1121
1121
|
},
|
|
1122
|
+
{
|
|
1123
|
+
"method": "DELETE",
|
|
1124
|
+
"path": "/user_management/cors_origins/{id}",
|
|
1125
|
+
"name": "delete_cors_origin"
|
|
1126
|
+
},
|
|
1122
1127
|
{
|
|
1123
1128
|
"method": "GET",
|
|
1124
1129
|
"path": "/user_management/email_verification/{id}",
|
package/dist/types.d.ts
CHANGED
|
@@ -2906,6 +2906,26 @@ export interface paths {
|
|
|
2906
2906
|
patch?: never;
|
|
2907
2907
|
trace?: never;
|
|
2908
2908
|
};
|
|
2909
|
+
"/user_management/cors_origins/{id}": {
|
|
2910
|
+
parameters: {
|
|
2911
|
+
query?: never;
|
|
2912
|
+
header?: never;
|
|
2913
|
+
path?: never;
|
|
2914
|
+
cookie?: never;
|
|
2915
|
+
};
|
|
2916
|
+
get?: never;
|
|
2917
|
+
put?: never;
|
|
2918
|
+
post?: never;
|
|
2919
|
+
/**
|
|
2920
|
+
* Delete a CORS origin
|
|
2921
|
+
* @description Deletes a CORS origin from the API key's application.
|
|
2922
|
+
*/
|
|
2923
|
+
delete: operations["CorsOriginsController_delete"];
|
|
2924
|
+
options?: never;
|
|
2925
|
+
head?: never;
|
|
2926
|
+
patch?: never;
|
|
2927
|
+
trace?: never;
|
|
2928
|
+
};
|
|
2909
2929
|
"/user_management/email_verification/{id}": {
|
|
2910
2930
|
parameters: {
|
|
2911
2931
|
query?: never;
|
|
@@ -6702,7 +6722,7 @@ export interface components {
|
|
|
6702
6722
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6703
6723
|
* @enum {string}
|
|
6704
6724
|
*/
|
|
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";
|
|
6725
|
+
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
6726
|
ErrorBodyWithCode: {
|
|
6707
6727
|
/**
|
|
6708
6728
|
* @description The error code identifying the type of error.
|
|
@@ -7065,6 +7085,45 @@ export interface components {
|
|
|
7065
7085
|
*/
|
|
7066
7086
|
role_slug: string;
|
|
7067
7087
|
};
|
|
7088
|
+
EntitiesNotFoundErrorBodyWithIdsList: {
|
|
7089
|
+
/**
|
|
7090
|
+
* @description The error code identifying the type of error.
|
|
7091
|
+
* @example entities_not_found
|
|
7092
|
+
* @constant
|
|
7093
|
+
*/
|
|
7094
|
+
code: "entities_not_found";
|
|
7095
|
+
/**
|
|
7096
|
+
* @description A human-readable description of the error.
|
|
7097
|
+
* @example Request could not be processed.
|
|
7098
|
+
*/
|
|
7099
|
+
message: string;
|
|
7100
|
+
/**
|
|
7101
|
+
* @description The requested user and organization IDs, in that order.
|
|
7102
|
+
* @example [
|
|
7103
|
+
* "user_01E4ZCR3C5A4QZ2Z2JQXGKZJ9E",
|
|
7104
|
+
* "org_01E4ZCR3C56J083X43JQXF3JK5"
|
|
7105
|
+
* ]
|
|
7106
|
+
*/
|
|
7107
|
+
ids: string[];
|
|
7108
|
+
};
|
|
7109
|
+
EntityNotFoundErrorBodyWithEntityId: {
|
|
7110
|
+
/**
|
|
7111
|
+
* @description The error code identifying the type of error.
|
|
7112
|
+
* @example entity_not_found
|
|
7113
|
+
* @constant
|
|
7114
|
+
*/
|
|
7115
|
+
code: "entity_not_found";
|
|
7116
|
+
/**
|
|
7117
|
+
* @description A human-readable description of the error.
|
|
7118
|
+
* @example Request could not be processed.
|
|
7119
|
+
*/
|
|
7120
|
+
message: string;
|
|
7121
|
+
/**
|
|
7122
|
+
* @description The ID of the organization that was not found.
|
|
7123
|
+
* @example org_01E4ZCR3C56J083X43JQXF3JK5
|
|
7124
|
+
*/
|
|
7125
|
+
entity_id: string;
|
|
7126
|
+
};
|
|
7068
7127
|
EmailCompletionRequiredErrorBodyWithEmailCompletionToken: {
|
|
7069
7128
|
/**
|
|
7070
7129
|
* @description The error code identifying the type of error.
|
|
@@ -36666,6 +36725,55 @@ export interface operations {
|
|
|
36666
36725
|
};
|
|
36667
36726
|
};
|
|
36668
36727
|
};
|
|
36728
|
+
CorsOriginsController_delete: {
|
|
36729
|
+
parameters: {
|
|
36730
|
+
query?: never;
|
|
36731
|
+
header?: never;
|
|
36732
|
+
path: {
|
|
36733
|
+
/** @description The ID of the CORS origin to delete. */
|
|
36734
|
+
id: string;
|
|
36735
|
+
};
|
|
36736
|
+
cookie?: never;
|
|
36737
|
+
};
|
|
36738
|
+
requestBody?: never;
|
|
36739
|
+
responses: {
|
|
36740
|
+
/** @description CORS origin deleted successfully. */
|
|
36741
|
+
204: {
|
|
36742
|
+
headers: {
|
|
36743
|
+
[name: string]: unknown;
|
|
36744
|
+
};
|
|
36745
|
+
content?: never;
|
|
36746
|
+
};
|
|
36747
|
+
/** @description Unauthorized */
|
|
36748
|
+
401: {
|
|
36749
|
+
headers: {
|
|
36750
|
+
[name: string]: unknown;
|
|
36751
|
+
};
|
|
36752
|
+
content: {
|
|
36753
|
+
/**
|
|
36754
|
+
* @example {
|
|
36755
|
+
* "message": "Unauthorized"
|
|
36756
|
+
* }
|
|
36757
|
+
*/
|
|
36758
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
36759
|
+
};
|
|
36760
|
+
};
|
|
36761
|
+
/** @description CORS origin not found. */
|
|
36762
|
+
404: {
|
|
36763
|
+
headers: {
|
|
36764
|
+
[name: string]: unknown;
|
|
36765
|
+
};
|
|
36766
|
+
content: {
|
|
36767
|
+
/**
|
|
36768
|
+
* @example {
|
|
36769
|
+
* "message": "CORS origin not found: 'cors_origin_01HXYZ123456789ABCDEFGHIJ'."
|
|
36770
|
+
* }
|
|
36771
|
+
*/
|
|
36772
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
36773
|
+
};
|
|
36774
|
+
};
|
|
36775
|
+
};
|
|
36776
|
+
};
|
|
36669
36777
|
UserlandUsersController_getEmailVerification: {
|
|
36670
36778
|
parameters: {
|
|
36671
36779
|
query?: never;
|
|
@@ -37472,7 +37580,7 @@ export interface operations {
|
|
|
37472
37580
|
[name: string]: unknown;
|
|
37473
37581
|
};
|
|
37474
37582
|
content: {
|
|
37475
|
-
"application/json": components["schemas"]["
|
|
37583
|
+
"application/json": components["schemas"]["EntitiesNotFoundErrorBodyWithIdsList"] | components["schemas"]["EntityNotFoundErrorBodyWithEntityId"];
|
|
37476
37584
|
};
|
|
37477
37585
|
};
|
|
37478
37586
|
/** @description Unprocessable Entity */
|