cloudflare / workers-types

TypeScript type definitions for authoring Cloudflare Workers.
BSD 3-Clause "New" or "Revised" License
359 stars 89 forks source link

Missing properties on IncomingRequestCfPropertiesBotManagement #286

Closed omrilotan closed 1 year ago

omrilotan commented 2 years ago

@cloudflare/workers-types@3.16.0

Quote: https://developers.cloudflare.com/bots/reference/bot-management-variables :

These variables are also available as part of the request.cf object via Cloudflare Workers:

  • [x] request.cf.botManagement.corporateProxy
  • [x] request.cf.botManagement.score
  • [x] request.cf.botManagement.verifiedBot
  • [x] request.cf.botManagement.staticResource
  • [x] request.cf.botManagement.ja3Hash
  • [ ] request.cf.botManagement.js_score

However, only three available on the interface

https://github.com/cloudflare/workers-types/blob/bc8060518241fa858765cf5bff48f4115289d009/index.d.ts#L830-L834

Some of these changes have already been pushed but have not yet been released.

omrilotan commented 1 year ago

Update @cloudflare/workers-types@3.17.0

since the issue was issued properties were added. At the moment, only js_score is still missing