@workos/openapi-spec 0.177.0 → 0.179.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/types.d.ts CHANGED
@@ -2632,6 +2632,26 @@ export interface paths {
2632
2632
  patch?: never;
2633
2633
  trace?: never;
2634
2634
  };
2635
+ "/radar/detections/{id}": {
2636
+ parameters: {
2637
+ query?: never;
2638
+ header?: never;
2639
+ path?: never;
2640
+ cookie?: never;
2641
+ };
2642
+ /**
2643
+ * Get a Radar detection
2644
+ * @description Get a Radar detection from the last 30 days, including the evidence for why Radar fired.
2645
+ */
2646
+ get: operations["RadarDetectionsController_find"];
2647
+ put?: never;
2648
+ post?: never;
2649
+ delete?: never;
2650
+ options?: never;
2651
+ head?: never;
2652
+ patch?: never;
2653
+ trace?: never;
2654
+ };
2635
2655
  "/radar/lists/{type}/{action}": {
2636
2656
  parameters: {
2637
2657
  query?: never;
@@ -6726,7 +6746,7 @@ export interface components {
6726
6746
  * @description A machine-readable error code; additional values may be added over time.
6727
6747
  * @enum {string}
6728
6748
  */
6729
- 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";
6749
+ 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_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";
6730
6750
  ErrorBodyWithCode: {
6731
6751
  /**
6732
6752
  * @description The error code identifying the type of error.
@@ -8122,6 +8142,19 @@ export interface components {
8122
8142
  */
8123
8143
  message: string;
8124
8144
  };
8145
+ RadarSmsChallengeErrorBody: {
8146
+ /**
8147
+ * @description The error code identifying the type of error.
8148
+ * @example radar_sms_challenge
8149
+ * @constant
8150
+ */
8151
+ code: "radar_sms_challenge";
8152
+ /**
8153
+ * @description A human-readable description of the error.
8154
+ * @example Request could not be processed.
8155
+ */
8156
+ message: string;
8157
+ };
8125
8158
  RadarSmsSignInChallengeErrorBody: {
8126
8159
  /**
8127
8160
  * @description The error code identifying the type of error.
@@ -13138,7 +13171,7 @@ export interface components {
13138
13171
  */
13139
13172
  message: string;
13140
13173
  /**
13141
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13174
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13142
13175
  * @example detection_01HZBC6N1EB1ZY7KG32X
13143
13176
  */
13144
13177
  radar_detection_id?: string;
@@ -13250,7 +13283,7 @@ export interface components {
13250
13283
  */
13251
13284
  message: string;
13252
13285
  /**
13253
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13286
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13254
13287
  * @example detection_01HZBC6N1EB1ZY7KG32X
13255
13288
  */
13256
13289
  radar_detection_id?: string;
@@ -13362,7 +13395,7 @@ export interface components {
13362
13395
  */
13363
13396
  message: string;
13364
13397
  /**
13365
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13398
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13366
13399
  * @example detection_01HZBC6N1EB1ZY7KG32X
13367
13400
  */
13368
13401
  radar_detection_id?: string;
@@ -13474,7 +13507,7 @@ export interface components {
13474
13507
  */
13475
13508
  message: string;
13476
13509
  /**
13477
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13510
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13478
13511
  * @example detection_01HZBC6N1EB1ZY7KG32X
13479
13512
  */
13480
13513
  radar_detection_id?: string;
@@ -13596,7 +13629,7 @@ export interface components {
13596
13629
  */
13597
13630
  message: string;
13598
13631
  /**
13599
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13632
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13600
13633
  * @example detection_01HZBC6N1EB1ZY7KG32X
13601
13634
  */
13602
13635
  radar_detection_id?: string;
@@ -13708,7 +13741,7 @@ export interface components {
13708
13741
  */
13709
13742
  message: string;
13710
13743
  /**
13711
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13744
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13712
13745
  * @example detection_01HZBC6N1EB1ZY7KG32X
13713
13746
  */
13714
13747
  radar_detection_id?: string;
@@ -13791,13 +13824,13 @@ export interface components {
13791
13824
  /** @enum {string} */
13792
13825
  action: "signup" | "login";
13793
13826
  /**
13794
- * @description The control action taken for the detected risk.
13795
- * @example block
13827
+ * @description The Radar control that detected the risk.
13828
+ * @example bot_detection
13796
13829
  */
13797
13830
  control: string | null;
13798
13831
  /**
13799
13832
  * @description The type of blocklist that triggered the risk detection.
13800
- * @example ip
13833
+ * @example ip_address
13801
13834
  */
13802
13835
  blocklist_type: string | null;
13803
13836
  /**
@@ -13821,7 +13854,7 @@ export interface components {
13821
13854
  */
13822
13855
  email: string;
13823
13856
  /**
13824
- * @description The ID of the Radar detection that challenged the authentication.
13857
+ * @description The ID of the Radar detection that challenged the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted.
13825
13858
  * @example detection_01HZBC6N1EB1ZY7KG32X
13826
13859
  */
13827
13860
  radar_detection_id?: string;
@@ -13950,7 +13983,7 @@ export interface components {
13950
13983
  */
13951
13984
  message: string;
13952
13985
  /**
13953
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
13986
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
13954
13987
  * @example detection_01HZBC6N1EB1ZY7KG32X
13955
13988
  */
13956
13989
  radar_detection_id?: string;
@@ -14163,7 +14196,7 @@ export interface components {
14163
14196
  */
14164
14197
  message: string;
14165
14198
  /**
14166
- * @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
14199
+ * @description The ID of the Radar detection that blocked the authentication. Retrieve the detection with `GET /radar/detections/:id` to see why Radar acted. Only set on `policy_denied` errors that a Radar detection caused.
14167
14200
  * @example detection_01HZBC6N1EB1ZY7KG32X
14168
14201
  */
14169
14202
  radar_detection_id?: string;
@@ -22119,6 +22152,451 @@ export interface components {
22119
22152
  */
22120
22153
  phone_number: string;
22121
22154
  };
22155
+ RadarDetectionList: {
22156
+ /**
22157
+ * @description The type of values the list holds.
22158
+ * @example domain
22159
+ * @enum {string}
22160
+ */
22161
+ type: "ip_address" | "domain" | "email" | "device" | "user_agent" | "device_fingerprint" | "country";
22162
+ /**
22163
+ * @description The action the list applies to matching values. `null` for WorkOS-managed lists.
22164
+ * @example block
22165
+ */
22166
+ action: ("allow" | "block" | "challenge" | "log") | null;
22167
+ /**
22168
+ * @description The name of the list.
22169
+ * @example Disposable email domains
22170
+ */
22171
+ name: string | null;
22172
+ /**
22173
+ * @description Whether WorkOS maintains the list.
22174
+ * @example true
22175
+ */
22176
+ workos_managed: boolean;
22177
+ };
22178
+ RadarDetectionAllowedBy: {
22179
+ /**
22180
+ * @description The ID of the matched list.
22181
+ * @example radar_list_01HZBC6N1EB1ZY7KG32X
22182
+ */
22183
+ list_id: string;
22184
+ /** @description The list as it is now. `null` if the list has since been deleted. */
22185
+ list: components["schemas"]["RadarDetectionList"] | null;
22186
+ /**
22187
+ * @description The list entry that matched.
22188
+ * @example example.com
22189
+ */
22190
+ entry?: string;
22191
+ };
22192
+ RadarDetectionBotDetectionSignal: {
22193
+ /** @enum {string} */
22194
+ signal: "risky_ip" | "anomalous_ip" | "excessive_domain_sign_ups" | "suspicious_browser_signals" | "missing_device_fingerprint" | "suspicious_email_pattern" | "automated_client" | "workos_risk_model";
22195
+ /**
22196
+ * @description The action this signal would take on its own.
22197
+ * @enum {string}
22198
+ */
22199
+ action?: "block" | "challenge";
22200
+ };
22201
+ RadarDetectionIpSignUps: {
22202
+ /**
22203
+ * @description The number of sign-ups.
22204
+ * @example 6
22205
+ */
22206
+ count: number;
22207
+ /**
22208
+ * @description The window the sign-ups were counted in.
22209
+ * @example 5
22210
+ */
22211
+ window_minutes: number;
22212
+ };
22213
+ RadarDetectionDomainSignUps: {
22214
+ /**
22215
+ * @description The root domain of the email address.
22216
+ * @example example.com
22217
+ */
22218
+ root_domain: string;
22219
+ /**
22220
+ * @description The number of sign-ups.
22221
+ * @example 44
22222
+ */
22223
+ count?: number;
22224
+ };
22225
+ RadarDetectionBotDetectionDetails: {
22226
+ /** @description Every bot detection signal that fired. */
22227
+ signals: components["schemas"]["RadarDetectionBotDetectionSignal"][];
22228
+ /**
22229
+ * @description The signal that determined the verdict.
22230
+ * @enum {string}
22231
+ */
22232
+ decided_by?: "risky_ip" | "anomalous_ip" | "excessive_domain_sign_ups" | "suspicious_browser_signals" | "missing_device_fingerprint" | "suspicious_email_pattern" | "automated_client" | "workos_risk_model";
22233
+ /** @description Why the IP address is risky. */
22234
+ ip_risk?: ("abuser" | "anonymous" | "vpn" | "tor" | "proxy")[];
22235
+ /** @description Why the email address looks suspicious. */
22236
+ email_pattern?: ("generated_looking" | "repeated_format" | "suspicious_domain")[];
22237
+ /** @description Why the browser looks automated. */
22238
+ browser_signals?: ("automation_framework" | "headless_browser" | "tampered_signals" | "inconsistent_hardware" | "missing_signals")[];
22239
+ /** @description Recent sign-ups from this IP address. */
22240
+ ip_sign_ups?: components["schemas"]["RadarDetectionIpSignUps"];
22241
+ /** @description Recent sign-ups from this email domain. */
22242
+ domain_sign_ups?: components["schemas"]["RadarDetectionDomainSignUps"];
22243
+ };
22244
+ RadarDetectionBruteForceAttackDetails: {
22245
+ /**
22246
+ * @description The number of sign-in attempts.
22247
+ * @example 11
22248
+ */
22249
+ attempts: number;
22250
+ /**
22251
+ * @description The window the attempts were counted in.
22252
+ * @example 1
22253
+ */
22254
+ window_minutes: number;
22255
+ /** @enum {string} */
22256
+ matched_on: "device_fingerprint_and_email" | "ip_and_email";
22257
+ };
22258
+ RadarDetectionDomainProtectionsDetails: {
22259
+ /**
22260
+ * @description The ID of the matched list.
22261
+ * @example radar_list_01HZBC6N1EB1ZY7KG32X
22262
+ */
22263
+ list_id: string;
22264
+ /** @description The list as it is now. `null` if the list has since been deleted. */
22265
+ list: components["schemas"]["RadarDetectionList"] | null;
22266
+ /** @description The IDs of other lists the domain is on. */
22267
+ also_matched_list_ids?: string[];
22268
+ /** @description Other lists the domain is on. */
22269
+ also_matched_lists?: (components["schemas"]["RadarDetectionList"] | null)[];
22270
+ /**
22271
+ * @description The domain that matched the list.
22272
+ * @example example.com
22273
+ */
22274
+ matched_domain?: string;
22275
+ };
22276
+ RadarDetectionPreviousAttempt: {
22277
+ /**
22278
+ * @description The ID of the authentication attempt.
22279
+ * @example radar_att_01HZBC6N1EB1ZY7KG32X
22280
+ */
22281
+ attempt_id: string;
22282
+ /**
22283
+ * @description The IP address of the earlier attempt.
22284
+ * @example 198.51.100.7
22285
+ */
22286
+ ip_address?: string;
22287
+ /**
22288
+ * @description The user agent of the earlier attempt.
22289
+ * @example Mozilla/5.0
22290
+ */
22291
+ user_agent?: string | null;
22292
+ /** @description Where the IP address of the earlier attempt is located. */
22293
+ location: {
22294
+ /**
22295
+ * @description The city the IP address is located in.
22296
+ * @example San Francisco
22297
+ */
22298
+ city: string | null;
22299
+ /**
22300
+ * @description ISO 3166-1 alpha-2 country code.
22301
+ * @example US
22302
+ */
22303
+ country: string | null;
22304
+ };
22305
+ /**
22306
+ * Format: date-time
22307
+ * @description When that earlier sign-in happened.
22308
+ * @example 2026-01-15T12:00:00.000Z
22309
+ */
22310
+ created_at: string;
22311
+ };
22312
+ RadarDetectionImpossibleTravelDetails: {
22313
+ /** @description The previous successful sign-in. */
22314
+ previous: components["schemas"]["RadarDetectionPreviousAttempt"];
22315
+ /**
22316
+ * @description The distance from the previous sign-in, in kilometers.
22317
+ * @example 8543
22318
+ */
22319
+ distance_km: number;
22320
+ /**
22321
+ * @description The speed needed to travel that distance, in km per second.
22322
+ * @example 4.07
22323
+ */
22324
+ speed_km_per_s: number;
22325
+ };
22326
+ RadarDetectionRepeatSignUpDetails: {
22327
+ matched_on: "RadarDetectionRepeatSignUpDetails";
22328
+ } & (Record<string, never> & Omit<{
22329
+ /** @constant */
22330
+ matched_on: "email";
22331
+ /**
22332
+ * @description The number of earlier sign-ups.
22333
+ * @example 8
22334
+ */
22335
+ prior_sign_ups: number;
22336
+ /**
22337
+ * @description The window the sign-ups were counted in.
22338
+ * @example 60
22339
+ */
22340
+ window_days: number;
22341
+ } | {
22342
+ /** @constant */
22343
+ matched_on: "normalized_email";
22344
+ /**
22345
+ * @description The existing user whose email this sign-up is an alias of.
22346
+ * @example user_01E4ZCR3C56J083X43JQXF3JK5
22347
+ */
22348
+ matched_user_id: string;
22349
+ }, "matched_on">);
22350
+ RadarDetectionStaleAccountDetails: {
22351
+ /**
22352
+ * Format: date-time
22353
+ * @description When the user was last active. `null` if unknown.
22354
+ * @example 2026-01-15T12:00:00.000Z
22355
+ */
22356
+ last_activity_at: string | null;
22357
+ };
22358
+ RadarDetectionUnrecognizedDeviceDetails: {
22359
+ /** @description The device the user last signed in from. */
22360
+ previous_device: components["schemas"]["RadarDetectionPreviousAttempt"] | null;
22361
+ };
22362
+ RadarDetectionRestrictionDetails: {
22363
+ type: "RadarDetectionRestrictionDetails";
22364
+ } & (Record<string, never> & Omit<{
22365
+ /** @constant */
22366
+ type: "list";
22367
+ /**
22368
+ * @description The ID of the matched list.
22369
+ * @example radar_list_01HZBC6N1EB1ZY7KG32X
22370
+ */
22371
+ list_id: string;
22372
+ /** @description The list as it is now. `null` if the list has since been deleted. */
22373
+ list: components["schemas"]["RadarDetectionList"] | null;
22374
+ /**
22375
+ * @description The list entry that matched.
22376
+ * @example example.com
22377
+ */
22378
+ entry?: string;
22379
+ } | {
22380
+ /** @constant */
22381
+ type: "blocked_tld";
22382
+ } | {
22383
+ /** @constant */
22384
+ type: "sign_up";
22385
+ } | {
22386
+ /** @constant */
22387
+ type: "sms_sign_in";
22388
+ /**
22389
+ * @description Why SMS sign-in was restricted.
22390
+ * @enum {string}
22391
+ */
22392
+ trigger: "country_mismatch" | "non_mobile_line" | "previously_selected" | "unknown_line_type" | "missing_signals";
22393
+ /**
22394
+ * @description The country of the phone number. Only when `trigger` is `country_mismatch`.
22395
+ * @example US
22396
+ */
22397
+ phone_country?: string;
22398
+ /**
22399
+ * @description The line type of the phone number. Only when `trigger` is `non_mobile_line`.
22400
+ * @example voip
22401
+ */
22402
+ line_type?: string;
22403
+ /**
22404
+ * @description The phone number, masked to its last four digits.
22405
+ * @example ••••0123
22406
+ */
22407
+ masked_phone_number?: string;
22408
+ }, "type">);
22409
+ /**
22410
+ * @example {
22411
+ * "control": "bot_detection",
22412
+ * "summary": "Sign-up from a Tor exit node with an email format shared by many recent sign-ups. The action was decided by the risky IP. The email pattern would also have challenged.",
22413
+ * "details": {
22414
+ * "signals": [
22415
+ * {
22416
+ * "signal": "risky_ip",
22417
+ * "action": "challenge"
22418
+ * },
22419
+ * {
22420
+ * "signal": "suspicious_email_pattern",
22421
+ * "action": "challenge"
22422
+ * }
22423
+ * ],
22424
+ * "decided_by": "risky_ip",
22425
+ * "ip_risk": [
22426
+ * "tor"
22427
+ * ],
22428
+ * "email_pattern": [
22429
+ * "repeated_format"
22430
+ * ]
22431
+ * }
22432
+ * }
22433
+ */
22434
+ RadarDetectionEvidence: {
22435
+ control: "RadarDetectionEvidence";
22436
+ } & ({
22437
+ /**
22438
+ * @description A human-readable explanation of why Radar fired.
22439
+ * @example Sign-up from a Tor exit node with an email format shared by many recent sign-ups. The action was decided by the risky IP. The email pattern would also have challenged.
22440
+ */
22441
+ summary: string;
22442
+ /** @description The allowlist that overrode the verdict. Only present when an allowlist allowed the attempt. */
22443
+ allowed_by?: components["schemas"]["RadarDetectionAllowedBy"];
22444
+ } & Omit<{
22445
+ /**
22446
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22447
+ * @constant
22448
+ */
22449
+ control: "bot_detection";
22450
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22451
+ details: components["schemas"]["RadarDetectionBotDetectionDetails"];
22452
+ } | {
22453
+ /**
22454
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22455
+ * @constant
22456
+ */
22457
+ control: "brute_force_attack";
22458
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22459
+ details: components["schemas"]["RadarDetectionBruteForceAttackDetails"];
22460
+ } | {
22461
+ /**
22462
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22463
+ * @constant
22464
+ */
22465
+ control: "domain_protections";
22466
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22467
+ details: components["schemas"]["RadarDetectionDomainProtectionsDetails"];
22468
+ } | {
22469
+ /**
22470
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22471
+ * @constant
22472
+ */
22473
+ control: "impossible_travel";
22474
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22475
+ details: components["schemas"]["RadarDetectionImpossibleTravelDetails"];
22476
+ } | {
22477
+ /**
22478
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22479
+ * @constant
22480
+ */
22481
+ control: "repeat_sign_up";
22482
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22483
+ details: components["schemas"]["RadarDetectionRepeatSignUpDetails"];
22484
+ } | {
22485
+ /**
22486
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22487
+ * @constant
22488
+ */
22489
+ control: "stale_account";
22490
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22491
+ details: components["schemas"]["RadarDetectionStaleAccountDetails"];
22492
+ } | {
22493
+ /**
22494
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22495
+ * @constant
22496
+ */
22497
+ control: "unrecognized_device";
22498
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22499
+ details: components["schemas"]["RadarDetectionUnrecognizedDeviceDetails"];
22500
+ } | {
22501
+ /**
22502
+ * @description The control the evidence is for. Always the same as the detection's `control`.
22503
+ * @constant
22504
+ */
22505
+ control: "restriction";
22506
+ /** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
22507
+ details: components["schemas"]["RadarDetectionRestrictionDetails"];
22508
+ }, "control">);
22509
+ RadarDetection: {
22510
+ /**
22511
+ * @description Distinguishes the Radar detection object.
22512
+ * @constant
22513
+ */
22514
+ object: "radar_detection";
22515
+ /**
22516
+ * @description The unique ID of the detection.
22517
+ * @example detection_01HZBC6N1EB1ZY7KG32X
22518
+ */
22519
+ id: string;
22520
+ /**
22521
+ * @description The ID of the authentication attempt.
22522
+ * @example radar_att_01HZBC6N1EB1ZY7KG32X
22523
+ */
22524
+ attempt_id: string;
22525
+ /**
22526
+ * @description The Radar control that determined the verdict.
22527
+ * @example bot_detection
22528
+ * @enum {string}
22529
+ */
22530
+ control: "bot_detection" | "brute_force_attack" | "domain_protections" | "impossible_travel" | "repeat_sign_up" | "stale_account" | "unrecognized_device" | "restriction";
22531
+ /**
22532
+ * @description The verdict Radar reached for the attempt.
22533
+ * @example challenge
22534
+ * @enum {string}
22535
+ */
22536
+ verdict: "allow" | "block" | "challenge" | "log";
22537
+ /**
22538
+ * @description The challenge Radar issued, if the verdict is `challenge`.
22539
+ * @example email
22540
+ */
22541
+ challenge_type: ("email" | "sms") | null;
22542
+ /** @description Why Radar fired. `null` for detections recorded before evidence was captured. */
22543
+ evidence: components["schemas"]["RadarDetectionEvidence"] | null;
22544
+ /**
22545
+ * @description The IP address of the attempt.
22546
+ * @example 203.0.113.42
22547
+ */
22548
+ ip_address: string;
22549
+ /** @description Where the IP address is located. */
22550
+ location: {
22551
+ /**
22552
+ * @description The city the IP address is located in.
22553
+ * @example San Francisco
22554
+ */
22555
+ city: string | null;
22556
+ /**
22557
+ * @description ISO 3166-1 alpha-2 country code.
22558
+ * @example US
22559
+ */
22560
+ country: string | null;
22561
+ };
22562
+ /**
22563
+ * @description The user agent of the attempt.
22564
+ * @example Mozilla/5.0
22565
+ */
22566
+ user_agent: string;
22567
+ /**
22568
+ * @description The email address used in the attempt.
22569
+ * @example user@example.com
22570
+ */
22571
+ email: string;
22572
+ /**
22573
+ * @description The ID of the user, if one exists.
22574
+ * @example user_01E4ZCR3C56J083X43JQXF3JK5
22575
+ */
22576
+ user_id: string | null;
22577
+ /**
22578
+ * @description Whether the attempt was a sign-up or a sign-in, as on the `authentication.radar_risk_detected` event. `null` if unknown.
22579
+ * @example signup
22580
+ */
22581
+ action: ("signup" | "login") | null;
22582
+ /**
22583
+ * @description The authentication method used for the attempt.
22584
+ * @example password
22585
+ */
22586
+ auth_method: ("password" | "passkey" | "magic_auth" | "oauth" | "sso" | "authenticator" | "sms_otp" | "other") | null;
22587
+ /**
22588
+ * Format: date-time
22589
+ * @description An ISO 8601 timestamp.
22590
+ * @example 2026-01-15T12:00:00.000Z
22591
+ */
22592
+ created_at: string;
22593
+ /**
22594
+ * Format: date-time
22595
+ * @description An ISO 8601 timestamp.
22596
+ * @example 2026-01-15T12:00:00.000Z
22597
+ */
22598
+ updated_at: string;
22599
+ };
22122
22600
  RadarStandaloneResponse: {
22123
22601
  /**
22124
22602
  * @description The verdict of the risk assessment.
@@ -35352,6 +35830,46 @@ export interface operations {
35352
35830
  };
35353
35831
  };
35354
35832
  };
35833
+ RadarDetectionsController_find: {
35834
+ parameters: {
35835
+ query?: never;
35836
+ header?: never;
35837
+ path: {
35838
+ /** @description The unique ID of the Radar detection. */
35839
+ id: string;
35840
+ };
35841
+ cookie?: never;
35842
+ };
35843
+ requestBody?: never;
35844
+ responses: {
35845
+ /** @description OK */
35846
+ 200: {
35847
+ headers: {
35848
+ [name: string]: unknown;
35849
+ };
35850
+ content: {
35851
+ "application/json": components["schemas"]["RadarDetection"];
35852
+ };
35853
+ };
35854
+ 402: {
35855
+ headers: {
35856
+ [name: string]: unknown;
35857
+ };
35858
+ content: {
35859
+ "application/json": components["schemas"]["ErrorBodyWithCode"];
35860
+ };
35861
+ };
35862
+ /** @description Not Found */
35863
+ 404: {
35864
+ headers: {
35865
+ [name: string]: unknown;
35866
+ };
35867
+ content: {
35868
+ "application/json": components["schemas"]["ErrorBody"];
35869
+ };
35870
+ };
35871
+ };
35872
+ };
35355
35873
  RadarStandaloneController_updateRadarList: {
35356
35874
  parameters: {
35357
35875
  query?: never;
@@ -36309,7 +36827,7 @@ export interface operations {
36309
36827
  [name: string]: unknown;
36310
36828
  };
36311
36829
  content: {
36312
- "application/json": components["schemas"]["MfaEnrollmentErrorBody"] | components["schemas"]["MfaChallengeErrorBody"] | components["schemas"]["AuthenticationMethodNotAllowedErrorBody"] | components["schemas"]["EmailCompletionRequiredErrorBodyWithEmailCompletionToken"] | components["schemas"]["EmailVerificationRequiredErrorBody"] | components["schemas"]["EmailPasswordAuthDisabledErrorBody"] | components["schemas"]["OrganizationSelectionRequiredErrorBody"] | components["schemas"]["PasskeyProgressiveEnrollmentErrorBody"] | components["schemas"]["RadarChallengeErrorBody"] | components["schemas"]["RadarSignUpChallengeErrorBody"] | components["schemas"]["RadarSmsSignInChallengeErrorBody"] | components["schemas"]["ApplicationConsentRequiredErrorBody"] | components["schemas"]["PolicyDeniedErrorBody"] | components["schemas"]["ActionDeniedErrorBody"];
36830
+ "application/json": components["schemas"]["MfaEnrollmentErrorBody"] | components["schemas"]["MfaChallengeErrorBody"] | components["schemas"]["AuthenticationMethodNotAllowedErrorBody"] | components["schemas"]["EmailCompletionRequiredErrorBodyWithEmailCompletionToken"] | components["schemas"]["EmailVerificationRequiredErrorBody"] | components["schemas"]["EmailPasswordAuthDisabledErrorBody"] | components["schemas"]["OrganizationSelectionRequiredErrorBody"] | components["schemas"]["PasskeyProgressiveEnrollmentErrorBody"] | components["schemas"]["RadarChallengeErrorBody"] | components["schemas"]["RadarSignUpChallengeErrorBody"] | components["schemas"]["RadarSmsChallengeErrorBody"] | components["schemas"]["RadarSmsSignInChallengeErrorBody"] | components["schemas"]["ApplicationConsentRequiredErrorBody"] | components["schemas"]["PolicyDeniedErrorBody"] | components["schemas"]["ActionDeniedErrorBody"];
36313
36831
  };
36314
36832
  };
36315
36833
  /** @description Not Found */