@osqd/bothandlerjs 0.3.0 → 0.5.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +157 -1
  2. package/README.md +1 -1
  3. package/dist/challenge/index.d.ts +18 -0
  4. package/dist/challenge/interaction.d.ts +215 -0
  5. package/dist/challenge/page.d.ts +18 -0
  6. package/dist/cli.cjs +829 -71
  7. package/dist/cli.cjs.map +1 -1
  8. package/dist/cli.js +829 -71
  9. package/dist/cli.js.map +1 -1
  10. package/dist/config.d.ts +10 -0
  11. package/dist/core.d.ts +15 -0
  12. package/dist/corpus/index.cjs +20 -0
  13. package/dist/corpus/index.cjs.map +1 -1
  14. package/dist/corpus/index.js +20 -0
  15. package/dist/corpus/index.js.map +1 -1
  16. package/dist/dashboard/client/actions.d.ts +17 -0
  17. package/dist/dashboard/client/actor.d.ts +5 -0
  18. package/dist/dashboard/client/api.d.ts +15 -0
  19. package/dist/dashboard/client/app.d.ts +37 -0
  20. package/dist/dashboard/client/bars.d.ts +4 -0
  21. package/dist/dashboard/client/boot.d.ts +5 -0
  22. package/dist/dashboard/client/charts.d.ts +25 -0
  23. package/dist/dashboard/client/css.d.ts +11 -0
  24. package/dist/dashboard/client/dom.d.ts +55 -0
  25. package/dist/dashboard/client/draft.d.ts +46 -0
  26. package/dist/dashboard/client/feed.d.ts +22 -0
  27. package/dist/dashboard/client/format.d.ts +37 -0
  28. package/dist/dashboard/client/guard.d.ts +3 -0
  29. package/dist/dashboard/client/index.d.ts +1 -0
  30. package/dist/dashboard/client/outcome.d.ts +33 -0
  31. package/dist/dashboard/client/pager.d.ts +32 -0
  32. package/dist/dashboard/client/panels.d.ts +40 -0
  33. package/dist/dashboard/client/policy.d.ts +25 -0
  34. package/dist/dashboard/client/query.d.ts +42 -0
  35. package/dist/dashboard/client/ranges.d.ts +2 -0
  36. package/dist/dashboard/client/registry.d.ts +4 -0
  37. package/dist/dashboard/client/replay.d.ts +14 -0
  38. package/dist/dashboard/client/result.d.ts +10 -0
  39. package/dist/dashboard/client/store.d.ts +128 -0
  40. package/dist/dashboard/client/stream.d.ts +14 -0
  41. package/dist/dashboard/client/tester.d.ts +1 -0
  42. package/dist/dashboard/client/types.d.ts +69 -0
  43. package/dist/dashboard/client.generated.d.ts +1 -1
  44. package/dist/dashboard/page.d.ts +25 -0
  45. package/dist/dashboard/sections.d.ts +92 -0
  46. package/dist/dashboard/types.d.ts +2 -82
  47. package/dist/detectors/crawler-verification.d.ts +34 -1
  48. package/dist/detectors/index.d.ts +4 -1
  49. package/dist/detectors/known-bots.d.ts +49 -1
  50. package/dist/element/config.d.ts +135 -0
  51. package/dist/element/index.cjs +5150 -0
  52. package/dist/element/index.cjs.map +1 -0
  53. package/dist/element/index.d.ts +137 -0
  54. package/dist/element/index.js +5131 -0
  55. package/dist/element/index.js.map +1 -0
  56. package/dist/index.cjs +820 -71
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.ts +2 -0
  59. package/dist/index.js +811 -71
  60. package/dist/index.js.map +1 -1
  61. package/dist/metrics.d.ts +27 -0
  62. package/dist/policy/index.d.ts +1 -1
  63. package/dist/policy/presets.d.ts +47 -0
  64. package/dist/state.d.ts +1 -1
  65. package/docs/challenge/index.md +1 -0
  66. package/docs/challenge/interaction.md +325 -0
  67. package/docs/course/11-the-challenge.md +36 -1
  68. package/docs/course/13-operating-it.md +20 -2
  69. package/docs/detection/signatures.md +36 -0
  70. package/docs/index.md +2 -0
  71. package/docs/operations/dashboard.md +28 -0
  72. package/docs/operations/embedding.md +348 -0
  73. package/docs/operations/index.md +1 -0
  74. package/docs/policy/presets.md +53 -0
  75. package/docs/start/choosing-a-policy.md +1 -0
  76. package/package.json +8 -3
@@ -3399,6 +3399,26 @@ var REPUTATION_CASES = [
3399
3399
  requests: [browser("chromeWindows")],
3400
3400
  expect: { verdict: "human", certain: true, detectors: ["clearance"], action: ["allow", "log", "tag"] }
3401
3401
  }),
3402
+ human({
3403
+ id: "cleared-by-interaction",
3404
+ title: "A person who ticked the box on the interaction challenge",
3405
+ category: "clearance",
3406
+ provenance: "A signed clearance cookie granted after a trusted activation on a browser that passed the capability probes",
3407
+ notes: "`strong` human evidence rather than `certain`, and the gap is the whole point. A trusted gesture in a rendering browser is a real cost imposed and it is still not proof of a person: a browser driven through the DevTools protocol dispatches genuine input events and renders genuine CSS. It outranks a bare proof of work because it costs more, and it stops short of `operator` because that assertion comes from the application and this one comes from the client.",
3408
+ clearance: "interaction",
3409
+ requests: [browser("chromeWindows")],
3410
+ expect: { detectors: ["clearance"], neverAction: ["block", "drop", "redirect"] }
3411
+ }),
3412
+ human({
3413
+ id: "cleared-by-interaction-on-a-phone",
3414
+ title: "A person who tapped the box on a phone",
3415
+ category: "clearance",
3416
+ provenance: "A tap emits almost no pointermove, so the report carries no path at all",
3417
+ notes: "Kept because the absence of a pointer path used to be scored as a mark against the client, which graded every phone \u2014 and every screen reader, switch and voice-control user \u2014 down to the weaker clearance for the way they use a computer. A tap is reported as touch and graded on its capabilities.",
3418
+ clearance: "interaction",
3419
+ requests: [browser("safariIos")],
3420
+ expect: { detectors: ["clearance"], neverAction: ["block", "drop", "redirect"] }
3421
+ }),
3402
3422
  bot({
3403
3423
  id: "cleared-but-proven-bot",
3404
3424
  title: "A proven bot presenting a valid clearance token",