Skip to content

Commit 13ea878

Browse files
authored
types: add botManagement.detectionIds to cf.d.ts
Example: `➜ ~ curl https://kian.org.uk/cf.json | jq '.botManagement'` ```json { "corporateProxy": false, "verifiedBot": false, "staticResource": false, "detectionIds": [ 33554817 ], "score": 1 } ```
1 parent 92f800e commit 13ea878

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/defines/cf.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ interface IncomingRequestCfPropertiesBotManagementBase {
369369
* A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources.
370370
*/
371371
staticResource: boolean;
372+
/**
373+
* List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request).
374+
* Use this field to explicitly match a specific heuristic or to exclude a heuristic in a rule.
375+
*/
376+
detectionIds: number[];
372377
}
373378

374379
interface IncomingRequestCfPropertiesBotManagement {

0 commit comments

Comments
 (0)