@workos/openapi-spec 0.151.0 → 0.153.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 +25 -6
- package/dist/types.d.ts +12 -7
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -13254,7 +13254,9 @@ paths:
|
|
|
13254
13254
|
example: inv_tok_01HXYZ123456789ABCDEFGHIJ
|
|
13255
13255
|
ip_address:
|
|
13256
13256
|
type: string
|
|
13257
|
-
description:
|
|
13257
|
+
description: >-
|
|
13258
|
+
The IP address of the user's request. Required when
|
|
13259
|
+
Radar is in Decision mode.
|
|
13258
13260
|
example: 203.0.113.42
|
|
13259
13261
|
device_id:
|
|
13260
13262
|
type: string
|
|
@@ -13301,7 +13303,9 @@ paths:
|
|
|
13301
13303
|
example: inv_tok_01HXYZ123456789ABCDEFGHIJ
|
|
13302
13304
|
ip_address:
|
|
13303
13305
|
type: string
|
|
13304
|
-
description:
|
|
13306
|
+
description: >-
|
|
13307
|
+
The IP address of the user's request. Required when
|
|
13308
|
+
Radar is in Decision mode.
|
|
13305
13309
|
example: 203.0.113.42
|
|
13306
13310
|
device_id:
|
|
13307
13311
|
type: string
|
|
@@ -13533,7 +13537,9 @@ paths:
|
|
|
13533
13537
|
example: marcelina@example.com
|
|
13534
13538
|
ip_address:
|
|
13535
13539
|
type: string
|
|
13536
|
-
description:
|
|
13540
|
+
description: >-
|
|
13541
|
+
The IP address of the user's request. Required when
|
|
13542
|
+
Radar is in Decision mode.
|
|
13537
13543
|
example: 203.0.113.42
|
|
13538
13544
|
device_id:
|
|
13539
13545
|
type: string
|
|
@@ -15105,7 +15111,7 @@ paths:
|
|
|
15105
15111
|
content:
|
|
15106
15112
|
application/json:
|
|
15107
15113
|
schema:
|
|
15108
|
-
$ref: '#/components/schemas/
|
|
15114
|
+
$ref: '#/components/schemas/ErrorBodyWithCode'
|
|
15109
15115
|
'429':
|
|
15110
15116
|
description: ''
|
|
15111
15117
|
content:
|
|
@@ -22196,7 +22202,9 @@ components:
|
|
|
22196
22202
|
example: Z1Y2X3W4V5U6T7S8R9Q0P1O2N3
|
|
22197
22203
|
ip_address:
|
|
22198
22204
|
type: string
|
|
22199
|
-
description:
|
|
22205
|
+
description: >-
|
|
22206
|
+
The IP address of the user's request. Required when Radar is in
|
|
22207
|
+
Decision mode.
|
|
22200
22208
|
example: 203.0.113.42
|
|
22201
22209
|
user_agent:
|
|
22202
22210
|
type: string
|
|
@@ -22763,7 +22771,9 @@ components:
|
|
|
22763
22771
|
type:
|
|
22764
22772
|
- string
|
|
22765
22773
|
- 'null'
|
|
22766
|
-
description:
|
|
22774
|
+
description: >-
|
|
22775
|
+
The IP address of the user's request. Required when Radar is in
|
|
22776
|
+
Decision mode.
|
|
22767
22777
|
example: 203.0.113.42
|
|
22768
22778
|
user_agent:
|
|
22769
22779
|
type:
|
|
@@ -23772,6 +23782,7 @@ components:
|
|
|
23772
23782
|
- invite_has_accepted_user_id
|
|
23773
23783
|
- invite_not_pending
|
|
23774
23784
|
- invite_revoked
|
|
23785
|
+
- ip_address_required
|
|
23775
23786
|
- it_contact_already_exists
|
|
23776
23787
|
- it_contact_invitation_already_active
|
|
23777
23788
|
- key_pair_not_accepted
|
|
@@ -40857,6 +40868,13 @@ components:
|
|
|
40857
40868
|
description: The OAuth authorization URL to redirect the user to.
|
|
40858
40869
|
example: >-
|
|
40859
40870
|
https://api.workos.com/data-integrations/q2czJKmVAraSBg8xFpT7M9uR/authorize-redirect
|
|
40871
|
+
state:
|
|
40872
|
+
type: string
|
|
40873
|
+
description: >-
|
|
40874
|
+
Identifies this authorization. WorkOS adds it to `return_to`
|
|
40875
|
+
alongside `connect_code` or `error`. Store it in the user's session
|
|
40876
|
+
with the `code_verifier` and compare it when the user returns.
|
|
40877
|
+
example: 01K8ZQ6Y3J4N5P7R9T2V4W6X8Z
|
|
40860
40878
|
completion:
|
|
40861
40879
|
type: string
|
|
40862
40880
|
description: >-
|
|
@@ -40868,6 +40886,7 @@ components:
|
|
|
40868
40886
|
const: finish_required
|
|
40869
40887
|
required:
|
|
40870
40888
|
- url
|
|
40889
|
+
- state
|
|
40871
40890
|
AuthMethodMismatchError:
|
|
40872
40891
|
type: object
|
|
40873
40892
|
properties: *ref_46
|
package/dist/types.d.ts
CHANGED
|
@@ -6029,7 +6029,7 @@ export interface components {
|
|
|
6029
6029
|
*/
|
|
6030
6030
|
invitation_token?: string;
|
|
6031
6031
|
/**
|
|
6032
|
-
* @description The IP address of the user's request.
|
|
6032
|
+
* @description The IP address of the user's request. Required when Radar is in Decision mode.
|
|
6033
6033
|
* @example 203.0.113.42
|
|
6034
6034
|
*/
|
|
6035
6035
|
ip_address?: string;
|
|
@@ -6206,7 +6206,7 @@ export interface components {
|
|
|
6206
6206
|
*/
|
|
6207
6207
|
external_id?: string | null;
|
|
6208
6208
|
/**
|
|
6209
|
-
* @description The IP address of the user's request.
|
|
6209
|
+
* @description The IP address of the user's request. Required when Radar is in Decision mode.
|
|
6210
6210
|
* @example 203.0.113.42
|
|
6211
6211
|
*/
|
|
6212
6212
|
ip_address?: string | null;
|
|
@@ -6526,7 +6526,7 @@ export interface components {
|
|
|
6526
6526
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6527
6527
|
* @enum {string}
|
|
6528
6528
|
*/
|
|
6529
|
-
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" | "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" | "policy_denied" | "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_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";
|
|
6529
|
+
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" | "policy_denied" | "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_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";
|
|
6530
6530
|
ErrorBodyWithCode: {
|
|
6531
6531
|
/**
|
|
6532
6532
|
* @description The error code identifying the type of error.
|
|
@@ -20028,6 +20028,11 @@ export interface components {
|
|
|
20028
20028
|
* @example https://api.workos.com/data-integrations/q2czJKmVAraSBg8xFpT7M9uR/authorize-redirect
|
|
20029
20029
|
*/
|
|
20030
20030
|
url: string;
|
|
20031
|
+
/**
|
|
20032
|
+
* @description Identifies this authorization. WorkOS adds it to `return_to` alongside `connect_code` or `error`. Store it in the user's session with the `code_verifier` and compare it when the user returns.
|
|
20033
|
+
* @example 01K8ZQ6Y3J4N5P7R9T2V4W6X8Z
|
|
20034
|
+
*/
|
|
20035
|
+
state: string;
|
|
20031
20036
|
/**
|
|
20032
20037
|
* @description `finish_required` when the request included `code_challenge`: the connection will be held until your app finishes it. Omitted otherwise. If you sent `code_challenge` and this is missing, don't redirect the user.
|
|
20033
20038
|
* @example finish_required
|
|
@@ -34030,7 +34035,7 @@ export interface operations {
|
|
|
34030
34035
|
*/
|
|
34031
34036
|
invitation_token?: string;
|
|
34032
34037
|
/**
|
|
34033
|
-
* @description The IP address of the user's request.
|
|
34038
|
+
* @description The IP address of the user's request. Required when Radar is in Decision mode.
|
|
34034
34039
|
* @example 203.0.113.42
|
|
34035
34040
|
*/
|
|
34036
34041
|
ip_address?: string;
|
|
@@ -34078,7 +34083,7 @@ export interface operations {
|
|
|
34078
34083
|
*/
|
|
34079
34084
|
invitation_token?: string;
|
|
34080
34085
|
/**
|
|
34081
|
-
* @description The IP address of the user's request.
|
|
34086
|
+
* @description The IP address of the user's request. Required when Radar is in Decision mode.
|
|
34082
34087
|
* @example 203.0.113.42
|
|
34083
34088
|
*/
|
|
34084
34089
|
ip_address?: string;
|
|
@@ -34296,7 +34301,7 @@ export interface operations {
|
|
|
34296
34301
|
*/
|
|
34297
34302
|
email: string;
|
|
34298
34303
|
/**
|
|
34299
|
-
* @description The IP address of the user's request.
|
|
34304
|
+
* @description The IP address of the user's request. Required when Radar is in Decision mode.
|
|
34300
34305
|
* @example 203.0.113.42
|
|
34301
34306
|
*/
|
|
34302
34307
|
ip_address?: string;
|
|
@@ -35544,7 +35549,7 @@ export interface operations {
|
|
|
35544
35549
|
[name: string]: unknown;
|
|
35545
35550
|
};
|
|
35546
35551
|
content: {
|
|
35547
|
-
"application/json": components["schemas"]["
|
|
35552
|
+
"application/json": components["schemas"]["ErrorBodyWithCode"];
|
|
35548
35553
|
};
|
|
35549
35554
|
};
|
|
35550
35555
|
429: {
|