@workos/openapi-spec 0.152.0 → 0.154.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.
@@ -2002,6 +2002,18 @@ paths:
2002
2002
  application/json:
2003
2003
  schema:
2004
2004
  $ref: '#/components/schemas/ErrorBody'
2005
+ '429':
2006
+ headers:
2007
+ Retry-After:
2008
+ description: How many seconds to wait before verification can be retried.
2009
+ schema:
2010
+ type: integer
2011
+ description: ''
2012
+ content:
2013
+ application/json:
2014
+ schema:
2015
+ $ref: >-
2016
+ #/components/schemas/TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter
2005
2017
  summary: Verify Challenge
2006
2018
  tags:
2007
2019
  - multi-factor-auth.challenges
@@ -13254,7 +13266,9 @@ paths:
13254
13266
  example: inv_tok_01HXYZ123456789ABCDEFGHIJ
13255
13267
  ip_address:
13256
13268
  type: string
13257
- description: The IP address of the user's request.
13269
+ description: >-
13270
+ The IP address of the user's request. Required when
13271
+ Radar is in Decision mode.
13258
13272
  example: 203.0.113.42
13259
13273
  device_id:
13260
13274
  type: string
@@ -13301,7 +13315,9 @@ paths:
13301
13315
  example: inv_tok_01HXYZ123456789ABCDEFGHIJ
13302
13316
  ip_address:
13303
13317
  type: string
13304
- description: The IP address of the user's request.
13318
+ description: >-
13319
+ The IP address of the user's request. Required when
13320
+ Radar is in Decision mode.
13305
13321
  example: 203.0.113.42
13306
13322
  device_id:
13307
13323
  type: string
@@ -13533,7 +13549,9 @@ paths:
13533
13549
  example: marcelina@example.com
13534
13550
  ip_address:
13535
13551
  type: string
13536
- description: The IP address of the user's request.
13552
+ description: >-
13553
+ The IP address of the user's request. Required when
13554
+ Radar is in Decision mode.
13537
13555
  example: 203.0.113.42
13538
13556
  device_id:
13539
13557
  type: string
@@ -13868,6 +13886,8 @@ paths:
13868
13886
  schema:
13869
13887
  anyOf:
13870
13888
  - $ref: '#/components/schemas/DailyQuotaExceededErrorBody'
13889
+ - $ref: >-
13890
+ #/components/schemas/TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter
13871
13891
  - $ref: '#/components/schemas/TooManyRequestsOAuthErrorBody'
13872
13892
  summary: Authenticate
13873
13893
  tags:
@@ -15105,7 +15125,7 @@ paths:
15105
15125
  content:
15106
15126
  application/json:
15107
15127
  schema:
15108
- $ref: '#/components/schemas/ErrorBody'
15128
+ $ref: '#/components/schemas/ErrorBodyWithCode'
15109
15129
  '429':
15110
15130
  description: ''
15111
15131
  content:
@@ -22196,7 +22216,9 @@ components:
22196
22216
  example: Z1Y2X3W4V5U6T7S8R9Q0P1O2N3
22197
22217
  ip_address:
22198
22218
  type: string
22199
- description: The IP address of the user's request.
22219
+ description: >-
22220
+ The IP address of the user's request. Required when Radar is in
22221
+ Decision mode.
22200
22222
  example: 203.0.113.42
22201
22223
  user_agent:
22202
22224
  type: string
@@ -22763,7 +22785,9 @@ components:
22763
22785
  type:
22764
22786
  - string
22765
22787
  - 'null'
22766
- description: The IP address of the user's request.
22788
+ description: >-
22789
+ The IP address of the user's request. Required when Radar is in
22790
+ Decision mode.
22767
22791
  example: 203.0.113.42
22768
22792
  user_agent:
22769
22793
  type:
@@ -23772,6 +23796,7 @@ components:
23772
23796
  - invite_has_accepted_user_id
23773
23797
  - invite_not_pending
23774
23798
  - invite_revoked
23799
+ - ip_address_required
23775
23800
  - it_contact_already_exists
23776
23801
  - it_contact_invitation_already_active
23777
23802
  - key_pair_not_accepted
@@ -23829,6 +23854,7 @@ components:
23829
23854
  - sub_resource_scoped_role_not_allowed
23830
23855
  - team_not_found
23831
23856
  - token_authentication_method_not_supported
23857
+ - too_many_failed_verification_attempts
23832
23858
  - too_many_sp_encryption_certs
23833
23859
  - unsupported_invocation_type
23834
23860
  - user_already_exists
@@ -23993,6 +24019,26 @@ components:
23993
24019
  required:
23994
24020
  - message
23995
24021
  - error
24022
+ TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter:
24023
+ type: object
24024
+ properties:
24025
+ code:
24026
+ type: string
24027
+ const: too_many_failed_verification_attempts
24028
+ description: The error code identifying the type of error.
24029
+ example: too_many_failed_verification_attempts
24030
+ message:
24031
+ type: string
24032
+ description: A human-readable description of the error.
24033
+ example: Request could not be processed.
24034
+ retry_after:
24035
+ type: integer
24036
+ description: How many seconds to wait before verification can be retried.
24037
+ example: 900
24038
+ required:
24039
+ - code
24040
+ - message
24041
+ - retry_after
23996
24042
  RateLimitExceededErrorBodyWithRetryAfter:
23997
24043
  type: object
23998
24044
  properties:
@@ -37757,6 +37803,7 @@ components:
37757
37803
  - directoryUsers
37758
37804
  - scimLogs
37759
37805
  - radarDetections
37806
+ - teamActivityLogEvents
37760
37807
  description: The type of resource being exported.
37761
37808
  example: users
37762
37809
  required:
@@ -37808,6 +37855,7 @@ components:
37808
37855
  - directoryUsers
37809
37856
  - scimLogs
37810
37857
  - radarDetections
37858
+ - teamActivityLogEvents
37811
37859
  description: The type of resource being exported.
37812
37860
  example: users
37813
37861
  required:
@@ -37859,6 +37907,7 @@ components:
37859
37907
  - directoryUsers
37860
37908
  - scimLogs
37861
37909
  - radarDetections
37910
+ - teamActivityLogEvents
37862
37911
  description: The type of resource being exported.
37863
37912
  example: users
37864
37913
  required:
@@ -37910,6 +37959,7 @@ components:
37910
37959
  - directoryUsers
37911
37960
  - scimLogs
37912
37961
  - radarDetections
37962
+ - teamActivityLogEvents
37913
37963
  description: The type of resource being exported.
37914
37964
  example: users
37915
37965
  required:
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_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";
6530
6530
  ErrorBodyWithCode: {
6531
6531
  /**
6532
6532
  * @description The error code identifying the type of error.
@@ -6641,6 +6641,24 @@ export interface components {
6641
6641
  */
6642
6642
  error: string;
6643
6643
  };
6644
+ TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter: {
6645
+ /**
6646
+ * @description The error code identifying the type of error.
6647
+ * @example too_many_failed_verification_attempts
6648
+ * @constant
6649
+ */
6650
+ code: "too_many_failed_verification_attempts";
6651
+ /**
6652
+ * @description A human-readable description of the error.
6653
+ * @example Request could not be processed.
6654
+ */
6655
+ message: string;
6656
+ /**
6657
+ * @description How many seconds to wait before verification can be retried.
6658
+ * @example 900
6659
+ */
6660
+ retry_after: number;
6661
+ };
6644
6662
  RateLimitExceededErrorBodyWithRetryAfter: {
6645
6663
  /**
6646
6664
  * @description The error code identifying the type of error.
@@ -17717,7 +17735,7 @@ export interface components {
17717
17735
  * @example users
17718
17736
  * @enum {string}
17719
17737
  */
17720
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections";
17738
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections" | "teamActivityLogEvents";
17721
17739
  };
17722
17740
  /**
17723
17741
  * Format: date-time
@@ -17751,7 +17769,7 @@ export interface components {
17751
17769
  * @example users
17752
17770
  * @enum {string}
17753
17771
  */
17754
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections";
17772
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections" | "teamActivityLogEvents";
17755
17773
  };
17756
17774
  /**
17757
17775
  * Format: date-time
@@ -17785,7 +17803,7 @@ export interface components {
17785
17803
  * @example users
17786
17804
  * @enum {string}
17787
17805
  */
17788
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections";
17806
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections" | "teamActivityLogEvents";
17789
17807
  };
17790
17808
  /**
17791
17809
  * Format: date-time
@@ -17819,7 +17837,7 @@ export interface components {
17819
17837
  * @example users
17820
17838
  * @enum {string}
17821
17839
  */
17822
- resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections";
17840
+ resource_type: "users" | "organizations" | "events" | "sessions" | "auditLogEvents" | "connections" | "directoryUsers" | "scimLogs" | "radarDetections" | "teamActivityLogEvents";
17823
17841
  };
17824
17842
  /**
17825
17843
  * Format: date-time
@@ -23750,6 +23768,16 @@ export interface operations {
23750
23768
  "application/json": components["schemas"]["ErrorBody"];
23751
23769
  };
23752
23770
  };
23771
+ 429: {
23772
+ headers: {
23773
+ /** @description How many seconds to wait before verification can be retried. */
23774
+ "Retry-After"?: number;
23775
+ [name: string]: unknown;
23776
+ };
23777
+ content: {
23778
+ "application/json": components["schemas"]["TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter"];
23779
+ };
23780
+ };
23753
23781
  };
23754
23782
  };
23755
23783
  AuthenticationFactorsController_create: {
@@ -34035,7 +34063,7 @@ export interface operations {
34035
34063
  */
34036
34064
  invitation_token?: string;
34037
34065
  /**
34038
- * @description The IP address of the user's request.
34066
+ * @description The IP address of the user's request. Required when Radar is in Decision mode.
34039
34067
  * @example 203.0.113.42
34040
34068
  */
34041
34069
  ip_address?: string;
@@ -34083,7 +34111,7 @@ export interface operations {
34083
34111
  */
34084
34112
  invitation_token?: string;
34085
34113
  /**
34086
- * @description The IP address of the user's request.
34114
+ * @description The IP address of the user's request. Required when Radar is in Decision mode.
34087
34115
  * @example 203.0.113.42
34088
34116
  */
34089
34117
  ip_address?: string;
@@ -34301,7 +34329,7 @@ export interface operations {
34301
34329
  */
34302
34330
  email: string;
34303
34331
  /**
34304
- * @description The IP address of the user's request.
34332
+ * @description The IP address of the user's request. Required when Radar is in Decision mode.
34305
34333
  * @example 203.0.113.42
34306
34334
  */
34307
34335
  ip_address?: string;
@@ -34559,7 +34587,7 @@ export interface operations {
34559
34587
  [name: string]: unknown;
34560
34588
  };
34561
34589
  content: {
34562
- "application/json": components["schemas"]["DailyQuotaExceededErrorBody"] | components["schemas"]["TooManyRequestsOAuthErrorBody"];
34590
+ "application/json": components["schemas"]["DailyQuotaExceededErrorBody"] | components["schemas"]["TooManyFailedVerificationAttemptsErrorBodyWithRetryAfter"] | components["schemas"]["TooManyRequestsOAuthErrorBody"];
34563
34591
  };
34564
34592
  };
34565
34593
  };
@@ -35549,7 +35577,7 @@ export interface operations {
35549
35577
  [name: string]: unknown;
35550
35578
  };
35551
35579
  content: {
35552
- "application/json": components["schemas"]["ErrorBody"];
35580
+ "application/json": components["schemas"]["ErrorBodyWithCode"];
35553
35581
  };
35554
35582
  };
35555
35583
  429: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.152.0",
3
+ "version": "0.154.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",