@workos/openapi-spec 0.177.0 → 0.178.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 +813 -12
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +517 -12
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -965,6 +965,11 @@ const serviceEndpoints = {
|
|
|
965
965
|
"path": "/radar/attempts/{id}",
|
|
966
966
|
"name": "update_attempt"
|
|
967
967
|
},
|
|
968
|
+
{
|
|
969
|
+
"method": "GET",
|
|
970
|
+
"path": "/radar/detections/{id}",
|
|
971
|
+
"name": "get_detection"
|
|
972
|
+
},
|
|
968
973
|
{
|
|
969
974
|
"method": "DELETE",
|
|
970
975
|
"path": "/radar/lists/{type}/{action}",
|
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;
|
|
@@ -13138,7 +13158,7 @@ export interface components {
|
|
|
13138
13158
|
*/
|
|
13139
13159
|
message: string;
|
|
13140
13160
|
/**
|
|
13141
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13161
|
+
* @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
13162
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13143
13163
|
*/
|
|
13144
13164
|
radar_detection_id?: string;
|
|
@@ -13250,7 +13270,7 @@ export interface components {
|
|
|
13250
13270
|
*/
|
|
13251
13271
|
message: string;
|
|
13252
13272
|
/**
|
|
13253
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13273
|
+
* @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
13274
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13255
13275
|
*/
|
|
13256
13276
|
radar_detection_id?: string;
|
|
@@ -13362,7 +13382,7 @@ export interface components {
|
|
|
13362
13382
|
*/
|
|
13363
13383
|
message: string;
|
|
13364
13384
|
/**
|
|
13365
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13385
|
+
* @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
13386
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13367
13387
|
*/
|
|
13368
13388
|
radar_detection_id?: string;
|
|
@@ -13474,7 +13494,7 @@ export interface components {
|
|
|
13474
13494
|
*/
|
|
13475
13495
|
message: string;
|
|
13476
13496
|
/**
|
|
13477
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13497
|
+
* @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
13498
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13479
13499
|
*/
|
|
13480
13500
|
radar_detection_id?: string;
|
|
@@ -13596,7 +13616,7 @@ export interface components {
|
|
|
13596
13616
|
*/
|
|
13597
13617
|
message: string;
|
|
13598
13618
|
/**
|
|
13599
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13619
|
+
* @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
13620
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13601
13621
|
*/
|
|
13602
13622
|
radar_detection_id?: string;
|
|
@@ -13708,7 +13728,7 @@ export interface components {
|
|
|
13708
13728
|
*/
|
|
13709
13729
|
message: string;
|
|
13710
13730
|
/**
|
|
13711
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13731
|
+
* @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
13732
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13713
13733
|
*/
|
|
13714
13734
|
radar_detection_id?: string;
|
|
@@ -13791,13 +13811,13 @@ export interface components {
|
|
|
13791
13811
|
/** @enum {string} */
|
|
13792
13812
|
action: "signup" | "login";
|
|
13793
13813
|
/**
|
|
13794
|
-
* @description The control
|
|
13795
|
-
* @example
|
|
13814
|
+
* @description The Radar control that detected the risk.
|
|
13815
|
+
* @example bot_detection
|
|
13796
13816
|
*/
|
|
13797
13817
|
control: string | null;
|
|
13798
13818
|
/**
|
|
13799
13819
|
* @description The type of blocklist that triggered the risk detection.
|
|
13800
|
-
* @example
|
|
13820
|
+
* @example ip_address
|
|
13801
13821
|
*/
|
|
13802
13822
|
blocklist_type: string | null;
|
|
13803
13823
|
/**
|
|
@@ -13821,7 +13841,7 @@ export interface components {
|
|
|
13821
13841
|
*/
|
|
13822
13842
|
email: string;
|
|
13823
13843
|
/**
|
|
13824
|
-
* @description The ID of the Radar detection that challenged the authentication.
|
|
13844
|
+
* @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
13845
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13826
13846
|
*/
|
|
13827
13847
|
radar_detection_id?: string;
|
|
@@ -13950,7 +13970,7 @@ export interface components {
|
|
|
13950
13970
|
*/
|
|
13951
13971
|
message: string;
|
|
13952
13972
|
/**
|
|
13953
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
13973
|
+
* @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
13974
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
13955
13975
|
*/
|
|
13956
13976
|
radar_detection_id?: string;
|
|
@@ -14163,7 +14183,7 @@ export interface components {
|
|
|
14163
14183
|
*/
|
|
14164
14184
|
message: string;
|
|
14165
14185
|
/**
|
|
14166
|
-
* @description The ID of the Radar detection that blocked the authentication. Only set on `policy_denied` errors.
|
|
14186
|
+
* @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
14187
|
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
14168
14188
|
*/
|
|
14169
14189
|
radar_detection_id?: string;
|
|
@@ -22119,6 +22139,451 @@ export interface components {
|
|
|
22119
22139
|
*/
|
|
22120
22140
|
phone_number: string;
|
|
22121
22141
|
};
|
|
22142
|
+
RadarDetectionList: {
|
|
22143
|
+
/**
|
|
22144
|
+
* @description The type of values the list holds.
|
|
22145
|
+
* @example domain
|
|
22146
|
+
* @enum {string}
|
|
22147
|
+
*/
|
|
22148
|
+
type: "ip_address" | "domain" | "email" | "device" | "user_agent" | "device_fingerprint" | "country";
|
|
22149
|
+
/**
|
|
22150
|
+
* @description The action the list applies to matching values. `null` for WorkOS-managed lists.
|
|
22151
|
+
* @example block
|
|
22152
|
+
*/
|
|
22153
|
+
action: ("allow" | "block" | "challenge" | "log") | null;
|
|
22154
|
+
/**
|
|
22155
|
+
* @description The name of the list.
|
|
22156
|
+
* @example Disposable email domains
|
|
22157
|
+
*/
|
|
22158
|
+
name: string | null;
|
|
22159
|
+
/**
|
|
22160
|
+
* @description Whether WorkOS maintains the list.
|
|
22161
|
+
* @example true
|
|
22162
|
+
*/
|
|
22163
|
+
workos_managed: boolean;
|
|
22164
|
+
};
|
|
22165
|
+
RadarDetectionAllowedBy: {
|
|
22166
|
+
/**
|
|
22167
|
+
* @description The ID of the matched list.
|
|
22168
|
+
* @example radar_list_01HZBC6N1EB1ZY7KG32X
|
|
22169
|
+
*/
|
|
22170
|
+
list_id: string;
|
|
22171
|
+
/** @description The list as it is now. `null` if the list has since been deleted. */
|
|
22172
|
+
list: components["schemas"]["RadarDetectionList"] | null;
|
|
22173
|
+
/**
|
|
22174
|
+
* @description The list entry that matched.
|
|
22175
|
+
* @example example.com
|
|
22176
|
+
*/
|
|
22177
|
+
entry?: string;
|
|
22178
|
+
};
|
|
22179
|
+
RadarDetectionBotDetectionSignal: {
|
|
22180
|
+
/** @enum {string} */
|
|
22181
|
+
signal: "risky_ip" | "anomalous_ip" | "excessive_domain_sign_ups" | "suspicious_browser_signals" | "missing_device_fingerprint" | "suspicious_email_pattern" | "automated_client" | "workos_risk_model";
|
|
22182
|
+
/**
|
|
22183
|
+
* @description The action this signal would take on its own.
|
|
22184
|
+
* @enum {string}
|
|
22185
|
+
*/
|
|
22186
|
+
action?: "block" | "challenge";
|
|
22187
|
+
};
|
|
22188
|
+
RadarDetectionIpSignUps: {
|
|
22189
|
+
/**
|
|
22190
|
+
* @description The number of sign-ups.
|
|
22191
|
+
* @example 6
|
|
22192
|
+
*/
|
|
22193
|
+
count: number;
|
|
22194
|
+
/**
|
|
22195
|
+
* @description The window the sign-ups were counted in.
|
|
22196
|
+
* @example 5
|
|
22197
|
+
*/
|
|
22198
|
+
window_minutes: number;
|
|
22199
|
+
};
|
|
22200
|
+
RadarDetectionDomainSignUps: {
|
|
22201
|
+
/**
|
|
22202
|
+
* @description The root domain of the email address.
|
|
22203
|
+
* @example example.com
|
|
22204
|
+
*/
|
|
22205
|
+
root_domain: string;
|
|
22206
|
+
/**
|
|
22207
|
+
* @description The number of sign-ups.
|
|
22208
|
+
* @example 44
|
|
22209
|
+
*/
|
|
22210
|
+
count?: number;
|
|
22211
|
+
};
|
|
22212
|
+
RadarDetectionBotDetectionDetails: {
|
|
22213
|
+
/** @description Every bot detection signal that fired. */
|
|
22214
|
+
signals: components["schemas"]["RadarDetectionBotDetectionSignal"][];
|
|
22215
|
+
/**
|
|
22216
|
+
* @description The signal that determined the verdict.
|
|
22217
|
+
* @enum {string}
|
|
22218
|
+
*/
|
|
22219
|
+
decided_by?: "risky_ip" | "anomalous_ip" | "excessive_domain_sign_ups" | "suspicious_browser_signals" | "missing_device_fingerprint" | "suspicious_email_pattern" | "automated_client" | "workos_risk_model";
|
|
22220
|
+
/** @description Why the IP address is risky. */
|
|
22221
|
+
ip_risk?: ("abuser" | "anonymous" | "vpn" | "tor" | "proxy")[];
|
|
22222
|
+
/** @description Why the email address looks suspicious. */
|
|
22223
|
+
email_pattern?: ("generated_looking" | "repeated_format" | "suspicious_domain")[];
|
|
22224
|
+
/** @description Why the browser looks automated. */
|
|
22225
|
+
browser_signals?: ("automation_framework" | "headless_browser" | "tampered_signals" | "inconsistent_hardware" | "missing_signals")[];
|
|
22226
|
+
/** @description Recent sign-ups from this IP address. */
|
|
22227
|
+
ip_sign_ups?: components["schemas"]["RadarDetectionIpSignUps"];
|
|
22228
|
+
/** @description Recent sign-ups from this email domain. */
|
|
22229
|
+
domain_sign_ups?: components["schemas"]["RadarDetectionDomainSignUps"];
|
|
22230
|
+
};
|
|
22231
|
+
RadarDetectionBruteForceAttackDetails: {
|
|
22232
|
+
/**
|
|
22233
|
+
* @description The number of sign-in attempts.
|
|
22234
|
+
* @example 11
|
|
22235
|
+
*/
|
|
22236
|
+
attempts: number;
|
|
22237
|
+
/**
|
|
22238
|
+
* @description The window the attempts were counted in.
|
|
22239
|
+
* @example 1
|
|
22240
|
+
*/
|
|
22241
|
+
window_minutes: number;
|
|
22242
|
+
/** @enum {string} */
|
|
22243
|
+
matched_on: "device_fingerprint_and_email" | "ip_and_email";
|
|
22244
|
+
};
|
|
22245
|
+
RadarDetectionDomainProtectionsDetails: {
|
|
22246
|
+
/**
|
|
22247
|
+
* @description The ID of the matched list.
|
|
22248
|
+
* @example radar_list_01HZBC6N1EB1ZY7KG32X
|
|
22249
|
+
*/
|
|
22250
|
+
list_id: string;
|
|
22251
|
+
/** @description The list as it is now. `null` if the list has since been deleted. */
|
|
22252
|
+
list: components["schemas"]["RadarDetectionList"] | null;
|
|
22253
|
+
/** @description The IDs of other lists the domain is on. */
|
|
22254
|
+
also_matched_list_ids?: string[];
|
|
22255
|
+
/** @description Other lists the domain is on. */
|
|
22256
|
+
also_matched_lists?: (components["schemas"]["RadarDetectionList"] | null)[];
|
|
22257
|
+
/**
|
|
22258
|
+
* @description The domain that matched the list.
|
|
22259
|
+
* @example example.com
|
|
22260
|
+
*/
|
|
22261
|
+
matched_domain?: string;
|
|
22262
|
+
};
|
|
22263
|
+
RadarDetectionPreviousAttempt: {
|
|
22264
|
+
/**
|
|
22265
|
+
* @description The ID of the authentication attempt.
|
|
22266
|
+
* @example radar_att_01HZBC6N1EB1ZY7KG32X
|
|
22267
|
+
*/
|
|
22268
|
+
attempt_id: string;
|
|
22269
|
+
/**
|
|
22270
|
+
* @description The IP address of the earlier attempt.
|
|
22271
|
+
* @example 198.51.100.7
|
|
22272
|
+
*/
|
|
22273
|
+
ip_address?: string;
|
|
22274
|
+
/**
|
|
22275
|
+
* @description The user agent of the earlier attempt.
|
|
22276
|
+
* @example Mozilla/5.0
|
|
22277
|
+
*/
|
|
22278
|
+
user_agent?: string | null;
|
|
22279
|
+
/** @description Where the IP address of the earlier attempt is located. */
|
|
22280
|
+
location: {
|
|
22281
|
+
/**
|
|
22282
|
+
* @description The city the IP address is located in.
|
|
22283
|
+
* @example San Francisco
|
|
22284
|
+
*/
|
|
22285
|
+
city: string | null;
|
|
22286
|
+
/**
|
|
22287
|
+
* @description ISO 3166-1 alpha-2 country code.
|
|
22288
|
+
* @example US
|
|
22289
|
+
*/
|
|
22290
|
+
country: string | null;
|
|
22291
|
+
};
|
|
22292
|
+
/**
|
|
22293
|
+
* Format: date-time
|
|
22294
|
+
* @description When that earlier sign-in happened.
|
|
22295
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
22296
|
+
*/
|
|
22297
|
+
created_at: string;
|
|
22298
|
+
};
|
|
22299
|
+
RadarDetectionImpossibleTravelDetails: {
|
|
22300
|
+
/** @description The previous successful sign-in. */
|
|
22301
|
+
previous: components["schemas"]["RadarDetectionPreviousAttempt"];
|
|
22302
|
+
/**
|
|
22303
|
+
* @description The distance from the previous sign-in, in kilometers.
|
|
22304
|
+
* @example 8543
|
|
22305
|
+
*/
|
|
22306
|
+
distance_km: number;
|
|
22307
|
+
/**
|
|
22308
|
+
* @description The speed needed to travel that distance, in km per second.
|
|
22309
|
+
* @example 4.07
|
|
22310
|
+
*/
|
|
22311
|
+
speed_km_per_s: number;
|
|
22312
|
+
};
|
|
22313
|
+
RadarDetectionRepeatSignUpDetails: {
|
|
22314
|
+
matched_on: "RadarDetectionRepeatSignUpDetails";
|
|
22315
|
+
} & (Record<string, never> & Omit<{
|
|
22316
|
+
/** @constant */
|
|
22317
|
+
matched_on: "email";
|
|
22318
|
+
/**
|
|
22319
|
+
* @description The number of earlier sign-ups.
|
|
22320
|
+
* @example 8
|
|
22321
|
+
*/
|
|
22322
|
+
prior_sign_ups: number;
|
|
22323
|
+
/**
|
|
22324
|
+
* @description The window the sign-ups were counted in.
|
|
22325
|
+
* @example 60
|
|
22326
|
+
*/
|
|
22327
|
+
window_days: number;
|
|
22328
|
+
} | {
|
|
22329
|
+
/** @constant */
|
|
22330
|
+
matched_on: "normalized_email";
|
|
22331
|
+
/**
|
|
22332
|
+
* @description The existing user whose email this sign-up is an alias of.
|
|
22333
|
+
* @example user_01E4ZCR3C56J083X43JQXF3JK5
|
|
22334
|
+
*/
|
|
22335
|
+
matched_user_id: string;
|
|
22336
|
+
}, "matched_on">);
|
|
22337
|
+
RadarDetectionStaleAccountDetails: {
|
|
22338
|
+
/**
|
|
22339
|
+
* Format: date-time
|
|
22340
|
+
* @description When the user was last active. `null` if unknown.
|
|
22341
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
22342
|
+
*/
|
|
22343
|
+
last_activity_at: string | null;
|
|
22344
|
+
};
|
|
22345
|
+
RadarDetectionUnrecognizedDeviceDetails: {
|
|
22346
|
+
/** @description The device the user last signed in from. */
|
|
22347
|
+
previous_device: components["schemas"]["RadarDetectionPreviousAttempt"] | null;
|
|
22348
|
+
};
|
|
22349
|
+
RadarDetectionRestrictionDetails: {
|
|
22350
|
+
type: "RadarDetectionRestrictionDetails";
|
|
22351
|
+
} & (Record<string, never> & Omit<{
|
|
22352
|
+
/** @constant */
|
|
22353
|
+
type: "list";
|
|
22354
|
+
/**
|
|
22355
|
+
* @description The ID of the matched list.
|
|
22356
|
+
* @example radar_list_01HZBC6N1EB1ZY7KG32X
|
|
22357
|
+
*/
|
|
22358
|
+
list_id: string;
|
|
22359
|
+
/** @description The list as it is now. `null` if the list has since been deleted. */
|
|
22360
|
+
list: components["schemas"]["RadarDetectionList"] | null;
|
|
22361
|
+
/**
|
|
22362
|
+
* @description The list entry that matched.
|
|
22363
|
+
* @example example.com
|
|
22364
|
+
*/
|
|
22365
|
+
entry?: string;
|
|
22366
|
+
} | {
|
|
22367
|
+
/** @constant */
|
|
22368
|
+
type: "blocked_tld";
|
|
22369
|
+
} | {
|
|
22370
|
+
/** @constant */
|
|
22371
|
+
type: "sign_up";
|
|
22372
|
+
} | {
|
|
22373
|
+
/** @constant */
|
|
22374
|
+
type: "sms_sign_in";
|
|
22375
|
+
/**
|
|
22376
|
+
* @description Why SMS sign-in was restricted.
|
|
22377
|
+
* @enum {string}
|
|
22378
|
+
*/
|
|
22379
|
+
trigger: "country_mismatch" | "non_mobile_line" | "previously_selected" | "unknown_line_type" | "missing_signals";
|
|
22380
|
+
/**
|
|
22381
|
+
* @description The country of the phone number. Only when `trigger` is `country_mismatch`.
|
|
22382
|
+
* @example US
|
|
22383
|
+
*/
|
|
22384
|
+
phone_country?: string;
|
|
22385
|
+
/**
|
|
22386
|
+
* @description The line type of the phone number. Only when `trigger` is `non_mobile_line`.
|
|
22387
|
+
* @example voip
|
|
22388
|
+
*/
|
|
22389
|
+
line_type?: string;
|
|
22390
|
+
/**
|
|
22391
|
+
* @description The phone number, masked to its last four digits.
|
|
22392
|
+
* @example ••••0123
|
|
22393
|
+
*/
|
|
22394
|
+
masked_phone_number?: string;
|
|
22395
|
+
}, "type">);
|
|
22396
|
+
/**
|
|
22397
|
+
* @example {
|
|
22398
|
+
* "control": "bot_detection",
|
|
22399
|
+
* "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.",
|
|
22400
|
+
* "details": {
|
|
22401
|
+
* "signals": [
|
|
22402
|
+
* {
|
|
22403
|
+
* "signal": "risky_ip",
|
|
22404
|
+
* "action": "challenge"
|
|
22405
|
+
* },
|
|
22406
|
+
* {
|
|
22407
|
+
* "signal": "suspicious_email_pattern",
|
|
22408
|
+
* "action": "challenge"
|
|
22409
|
+
* }
|
|
22410
|
+
* ],
|
|
22411
|
+
* "decided_by": "risky_ip",
|
|
22412
|
+
* "ip_risk": [
|
|
22413
|
+
* "tor"
|
|
22414
|
+
* ],
|
|
22415
|
+
* "email_pattern": [
|
|
22416
|
+
* "repeated_format"
|
|
22417
|
+
* ]
|
|
22418
|
+
* }
|
|
22419
|
+
* }
|
|
22420
|
+
*/
|
|
22421
|
+
RadarDetectionEvidence: {
|
|
22422
|
+
control: "RadarDetectionEvidence";
|
|
22423
|
+
} & ({
|
|
22424
|
+
/**
|
|
22425
|
+
* @description A human-readable explanation of why Radar fired.
|
|
22426
|
+
* @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.
|
|
22427
|
+
*/
|
|
22428
|
+
summary: string;
|
|
22429
|
+
/** @description The allowlist that overrode the verdict. Only present when an allowlist allowed the attempt. */
|
|
22430
|
+
allowed_by?: components["schemas"]["RadarDetectionAllowedBy"];
|
|
22431
|
+
} & Omit<{
|
|
22432
|
+
/**
|
|
22433
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22434
|
+
* @constant
|
|
22435
|
+
*/
|
|
22436
|
+
control: "bot_detection";
|
|
22437
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22438
|
+
details: components["schemas"]["RadarDetectionBotDetectionDetails"];
|
|
22439
|
+
} | {
|
|
22440
|
+
/**
|
|
22441
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22442
|
+
* @constant
|
|
22443
|
+
*/
|
|
22444
|
+
control: "brute_force_attack";
|
|
22445
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22446
|
+
details: components["schemas"]["RadarDetectionBruteForceAttackDetails"];
|
|
22447
|
+
} | {
|
|
22448
|
+
/**
|
|
22449
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22450
|
+
* @constant
|
|
22451
|
+
*/
|
|
22452
|
+
control: "domain_protections";
|
|
22453
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22454
|
+
details: components["schemas"]["RadarDetectionDomainProtectionsDetails"];
|
|
22455
|
+
} | {
|
|
22456
|
+
/**
|
|
22457
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22458
|
+
* @constant
|
|
22459
|
+
*/
|
|
22460
|
+
control: "impossible_travel";
|
|
22461
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22462
|
+
details: components["schemas"]["RadarDetectionImpossibleTravelDetails"];
|
|
22463
|
+
} | {
|
|
22464
|
+
/**
|
|
22465
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22466
|
+
* @constant
|
|
22467
|
+
*/
|
|
22468
|
+
control: "repeat_sign_up";
|
|
22469
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22470
|
+
details: components["schemas"]["RadarDetectionRepeatSignUpDetails"];
|
|
22471
|
+
} | {
|
|
22472
|
+
/**
|
|
22473
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22474
|
+
* @constant
|
|
22475
|
+
*/
|
|
22476
|
+
control: "stale_account";
|
|
22477
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22478
|
+
details: components["schemas"]["RadarDetectionStaleAccountDetails"];
|
|
22479
|
+
} | {
|
|
22480
|
+
/**
|
|
22481
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22482
|
+
* @constant
|
|
22483
|
+
*/
|
|
22484
|
+
control: "unrecognized_device";
|
|
22485
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22486
|
+
details: components["schemas"]["RadarDetectionUnrecognizedDeviceDetails"];
|
|
22487
|
+
} | {
|
|
22488
|
+
/**
|
|
22489
|
+
* @description The control the evidence is for. Always the same as the detection's `control`.
|
|
22490
|
+
* @constant
|
|
22491
|
+
*/
|
|
22492
|
+
control: "restriction";
|
|
22493
|
+
/** @description Facts specific to the control. See the [Radar detection object](/reference/radar/detections#evidence-details) for the fields each control reports. */
|
|
22494
|
+
details: components["schemas"]["RadarDetectionRestrictionDetails"];
|
|
22495
|
+
}, "control">);
|
|
22496
|
+
RadarDetection: {
|
|
22497
|
+
/**
|
|
22498
|
+
* @description Distinguishes the Radar detection object.
|
|
22499
|
+
* @constant
|
|
22500
|
+
*/
|
|
22501
|
+
object: "radar_detection";
|
|
22502
|
+
/**
|
|
22503
|
+
* @description The unique ID of the detection.
|
|
22504
|
+
* @example detection_01HZBC6N1EB1ZY7KG32X
|
|
22505
|
+
*/
|
|
22506
|
+
id: string;
|
|
22507
|
+
/**
|
|
22508
|
+
* @description The ID of the authentication attempt.
|
|
22509
|
+
* @example radar_att_01HZBC6N1EB1ZY7KG32X
|
|
22510
|
+
*/
|
|
22511
|
+
attempt_id: string;
|
|
22512
|
+
/**
|
|
22513
|
+
* @description The Radar control that determined the verdict.
|
|
22514
|
+
* @example bot_detection
|
|
22515
|
+
* @enum {string}
|
|
22516
|
+
*/
|
|
22517
|
+
control: "bot_detection" | "brute_force_attack" | "domain_protections" | "impossible_travel" | "repeat_sign_up" | "stale_account" | "unrecognized_device" | "restriction";
|
|
22518
|
+
/**
|
|
22519
|
+
* @description The verdict Radar reached for the attempt.
|
|
22520
|
+
* @example challenge
|
|
22521
|
+
* @enum {string}
|
|
22522
|
+
*/
|
|
22523
|
+
verdict: "allow" | "block" | "challenge" | "log";
|
|
22524
|
+
/**
|
|
22525
|
+
* @description The challenge Radar issued, if the verdict is `challenge`.
|
|
22526
|
+
* @example email
|
|
22527
|
+
*/
|
|
22528
|
+
challenge_type: ("email" | "sms") | null;
|
|
22529
|
+
/** @description Why Radar fired. `null` for detections recorded before evidence was captured. */
|
|
22530
|
+
evidence: components["schemas"]["RadarDetectionEvidence"] | null;
|
|
22531
|
+
/**
|
|
22532
|
+
* @description The IP address of the attempt.
|
|
22533
|
+
* @example 203.0.113.42
|
|
22534
|
+
*/
|
|
22535
|
+
ip_address: string;
|
|
22536
|
+
/** @description Where the IP address is located. */
|
|
22537
|
+
location: {
|
|
22538
|
+
/**
|
|
22539
|
+
* @description The city the IP address is located in.
|
|
22540
|
+
* @example San Francisco
|
|
22541
|
+
*/
|
|
22542
|
+
city: string | null;
|
|
22543
|
+
/**
|
|
22544
|
+
* @description ISO 3166-1 alpha-2 country code.
|
|
22545
|
+
* @example US
|
|
22546
|
+
*/
|
|
22547
|
+
country: string | null;
|
|
22548
|
+
};
|
|
22549
|
+
/**
|
|
22550
|
+
* @description The user agent of the attempt.
|
|
22551
|
+
* @example Mozilla/5.0
|
|
22552
|
+
*/
|
|
22553
|
+
user_agent: string;
|
|
22554
|
+
/**
|
|
22555
|
+
* @description The email address used in the attempt.
|
|
22556
|
+
* @example user@example.com
|
|
22557
|
+
*/
|
|
22558
|
+
email: string;
|
|
22559
|
+
/**
|
|
22560
|
+
* @description The ID of the user, if one exists.
|
|
22561
|
+
* @example user_01E4ZCR3C56J083X43JQXF3JK5
|
|
22562
|
+
*/
|
|
22563
|
+
user_id: string | null;
|
|
22564
|
+
/**
|
|
22565
|
+
* @description Whether the attempt was a sign-up or a sign-in, as on the `authentication.radar_risk_detected` event. `null` if unknown.
|
|
22566
|
+
* @example signup
|
|
22567
|
+
*/
|
|
22568
|
+
action: ("signup" | "login") | null;
|
|
22569
|
+
/**
|
|
22570
|
+
* @description The authentication method used for the attempt.
|
|
22571
|
+
* @example password
|
|
22572
|
+
*/
|
|
22573
|
+
auth_method: ("password" | "passkey" | "magic_auth" | "oauth" | "sso" | "authenticator" | "sms_otp" | "other") | null;
|
|
22574
|
+
/**
|
|
22575
|
+
* Format: date-time
|
|
22576
|
+
* @description An ISO 8601 timestamp.
|
|
22577
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
22578
|
+
*/
|
|
22579
|
+
created_at: string;
|
|
22580
|
+
/**
|
|
22581
|
+
* Format: date-time
|
|
22582
|
+
* @description An ISO 8601 timestamp.
|
|
22583
|
+
* @example 2026-01-15T12:00:00.000Z
|
|
22584
|
+
*/
|
|
22585
|
+
updated_at: string;
|
|
22586
|
+
};
|
|
22122
22587
|
RadarStandaloneResponse: {
|
|
22123
22588
|
/**
|
|
22124
22589
|
* @description The verdict of the risk assessment.
|
|
@@ -35352,6 +35817,46 @@ export interface operations {
|
|
|
35352
35817
|
};
|
|
35353
35818
|
};
|
|
35354
35819
|
};
|
|
35820
|
+
RadarDetectionsController_find: {
|
|
35821
|
+
parameters: {
|
|
35822
|
+
query?: never;
|
|
35823
|
+
header?: never;
|
|
35824
|
+
path: {
|
|
35825
|
+
/** @description The unique ID of the Radar detection. */
|
|
35826
|
+
id: string;
|
|
35827
|
+
};
|
|
35828
|
+
cookie?: never;
|
|
35829
|
+
};
|
|
35830
|
+
requestBody?: never;
|
|
35831
|
+
responses: {
|
|
35832
|
+
/** @description OK */
|
|
35833
|
+
200: {
|
|
35834
|
+
headers: {
|
|
35835
|
+
[name: string]: unknown;
|
|
35836
|
+
};
|
|
35837
|
+
content: {
|
|
35838
|
+
"application/json": components["schemas"]["RadarDetection"];
|
|
35839
|
+
};
|
|
35840
|
+
};
|
|
35841
|
+
402: {
|
|
35842
|
+
headers: {
|
|
35843
|
+
[name: string]: unknown;
|
|
35844
|
+
};
|
|
35845
|
+
content: {
|
|
35846
|
+
"application/json": components["schemas"]["ErrorBodyWithCode"];
|
|
35847
|
+
};
|
|
35848
|
+
};
|
|
35849
|
+
/** @description Not Found */
|
|
35850
|
+
404: {
|
|
35851
|
+
headers: {
|
|
35852
|
+
[name: string]: unknown;
|
|
35853
|
+
};
|
|
35854
|
+
content: {
|
|
35855
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
35856
|
+
};
|
|
35857
|
+
};
|
|
35858
|
+
};
|
|
35859
|
+
};
|
|
35355
35860
|
RadarStandaloneController_updateRadarList: {
|
|
35356
35861
|
parameters: {
|
|
35357
35862
|
query?: never;
|