@kya-os/checkpoint-shared 1.10.0 → 1.11.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 (187) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/dist/base64url-BbVG8f-v.js +65 -0
  3. package/dist/base64url-D2MvsR20.mjs +49 -0
  4. package/dist/base64url-D2MvsR20.mjs.map +1 -0
  5. package/dist/beacon-forward-secret/index.d.mts +4 -0
  6. package/dist/beacon-forward-secret/index.d.mts.map +1 -0
  7. package/dist/beacon-forward-secret/index.d.ts +4 -0
  8. package/dist/beacon-forward-secret/index.d.ts.map +1 -0
  9. package/dist/beacon-forward-secret/index.js +15 -0
  10. package/dist/beacon-forward-secret/index.mjs +15 -0
  11. package/dist/beacon-forward-secret/index.mjs.map +1 -0
  12. package/dist/beacon-types/index.d.mts +53 -1
  13. package/dist/beacon-types/index.d.mts.map +1 -1
  14. package/dist/beacon-types/index.d.ts +53 -1
  15. package/dist/beacon-types/index.d.ts.map +1 -1
  16. package/dist/beacon-types/index.js +86 -1
  17. package/dist/beacon-types/index.mjs +77 -2
  18. package/dist/beacon-types/index.mjs.map +1 -1
  19. package/dist/{browser-posture-5fPrsxx7.d.mts → browser-posture-WPk0kl9u.d.mts} +18 -1
  20. package/dist/browser-posture-WPk0kl9u.d.mts.map +1 -0
  21. package/dist/{browser-posture-CCR1kh5e.d.ts → browser-posture-_y6BcdXw.d.ts} +18 -1
  22. package/dist/browser-posture-_y6BcdXw.d.ts.map +1 -0
  23. package/dist/browser-posture-cookie.mjs.map +1 -1
  24. package/dist/browser-posture-proof-verifier.js +136 -5
  25. package/dist/browser-posture-proof-verifier.mjs +134 -2
  26. package/dist/browser-posture-proof-verifier.mjs.map +1 -0
  27. package/dist/browser-posture-proof.d.mts +1 -1
  28. package/dist/browser-posture-proof.d.ts +1 -1
  29. package/dist/browser-posture-proof.js +1 -1
  30. package/dist/browser-posture-proof.mjs +1 -1
  31. package/dist/browser-posture-report.d.mts +17 -0
  32. package/dist/browser-posture-report.d.mts.map +1 -1
  33. package/dist/browser-posture-report.d.ts +17 -0
  34. package/dist/browser-posture-report.d.ts.map +1 -1
  35. package/dist/browser-posture.d.mts +1 -1
  36. package/dist/browser-posture.d.ts +1 -1
  37. package/dist/browser-posture.js +18 -1
  38. package/dist/browser-posture.mjs +18 -1
  39. package/dist/browser-posture.mjs.map +1 -1
  40. package/dist/browser.d.mts +10 -0
  41. package/dist/browser.d.mts.map +1 -1
  42. package/dist/browser.d.ts +10 -0
  43. package/dist/browser.d.ts.map +1 -1
  44. package/dist/browser.js +1 -1
  45. package/dist/browser.mjs +1 -1
  46. package/dist/browser.mjs.map +1 -1
  47. package/dist/canonical-signer/index.d.mts.map +1 -1
  48. package/dist/canonical-signer/index.d.ts.map +1 -1
  49. package/dist/canonical-signer/index.js +0 -4
  50. package/dist/canonical-signer/index.mjs +0 -4
  51. package/dist/canonical-signer/index.mjs.map +1 -1
  52. package/dist/{client-ip-B7w-uHfS.d.ts → client-ip-8KneiMK0.d.mts} +12 -2
  53. package/dist/{client-ip-B7w-uHfS.d.mts.map → client-ip-8KneiMK0.d.mts.map} +1 -1
  54. package/dist/{client-ip-B7w-uHfS.d.mts → client-ip-8KneiMK0.d.ts} +12 -2
  55. package/dist/{client-ip-B7w-uHfS.d.ts.map → client-ip-8KneiMK0.d.ts.map} +1 -1
  56. package/dist/{client-ip-B8wFzJ5f.js → client-ip-BEmLC4I4.js} +71 -0
  57. package/dist/{client-ip-DIJyr6px.mjs → client-ip-DlHx7GGh.mjs} +61 -2
  58. package/dist/client-ip-DlHx7GGh.mjs.map +1 -0
  59. package/dist/client-ip.d.mts +2 -2
  60. package/dist/client-ip.d.ts +2 -2
  61. package/dist/client-ip.js +3 -1
  62. package/dist/client-ip.mjs +2 -2
  63. package/dist/deploy/index.d.mts.map +1 -1
  64. package/dist/deploy/index.d.ts.map +1 -1
  65. package/dist/deploy/index.js +5 -1
  66. package/dist/deploy/index.mjs +5 -1
  67. package/dist/deploy/index.mjs.map +1 -1
  68. package/dist/{detection-reason-mapping-CQexNvR7.d.ts → detection-reason-mapping-BemDaDED.d.mts} +5 -2
  69. package/dist/detection-reason-mapping-BemDaDED.d.mts.map +1 -0
  70. package/dist/{detection-reason-mapping-CQexNvR7.d.mts → detection-reason-mapping-BemDaDED.d.ts} +5 -2
  71. package/dist/detection-reason-mapping-BemDaDED.d.ts.map +1 -0
  72. package/dist/{detection-reason-mapping-B9RSkOs8.js → detection-reason-mapping-BxYaQ8kb.js} +33 -8
  73. package/dist/{detection-reason-mapping-BGymWIPl.mjs → detection-reason-mapping-j-7bXsVb.mjs} +29 -10
  74. package/dist/detection-reason-mapping-j-7bXsVb.mjs.map +1 -0
  75. package/dist/errors/index.d.mts +4 -0
  76. package/dist/errors/index.d.mts.map +1 -1
  77. package/dist/errors/index.d.ts +4 -0
  78. package/dist/errors/index.d.ts.map +1 -1
  79. package/dist/errors/index.js +24 -8
  80. package/dist/errors/index.mjs +24 -8
  81. package/dist/errors/index.mjs.map +1 -1
  82. package/dist/{fetcher-CZfLcbRZ.d.mts → fetcher-CTKz07jg.d.mts} +12 -2
  83. package/dist/fetcher-CTKz07jg.d.mts.map +1 -0
  84. package/dist/{fetcher-CCw4Q95g.d.ts → fetcher-DCr920hx.d.ts} +12 -2
  85. package/dist/fetcher-DCr920hx.d.ts.map +1 -0
  86. package/dist/gateway-client-ip.js +1 -1
  87. package/dist/gateway-client-ip.mjs +1 -1
  88. package/dist/identity-cookie/index.d.mts +14 -0
  89. package/dist/identity-cookie/index.d.mts.map +1 -0
  90. package/dist/identity-cookie/index.d.ts +14 -0
  91. package/dist/identity-cookie/index.d.ts.map +1 -0
  92. package/dist/identity-cookie/index.js +45 -0
  93. package/dist/identity-cookie/index.mjs +43 -0
  94. package/dist/identity-cookie/index.mjs.map +1 -0
  95. package/dist/index.d.mts +598 -142
  96. package/dist/index.d.mts.map +1 -1
  97. package/dist/index.d.ts +598 -142
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +793 -198
  100. package/dist/index.mjs +743 -188
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/kya-http.d.mts +2 -2
  103. package/dist/kya-http.d.ts +2 -2
  104. package/dist/kya-http.js +2 -1
  105. package/dist/kya-http.mjs +2 -2
  106. package/dist/mcpi/dashboard-config/index.mjs.map +1 -1
  107. package/dist/patterns-CdTh7LU2.d.mts +35 -0
  108. package/dist/patterns-CdTh7LU2.d.mts.map +1 -0
  109. package/dist/patterns-CdTh7LU2.d.ts +35 -0
  110. package/dist/patterns-CdTh7LU2.d.ts.map +1 -0
  111. package/dist/{patterns-CiMpbdAF.js → patterns-CnNxRnaK.js} +3 -130
  112. package/dist/{patterns-D4OAsNQY.mjs → patterns-CpRk9R3M.mjs} +5 -96
  113. package/dist/patterns-CpRk9R3M.mjs.map +1 -0
  114. package/dist/patterns.d.mts +2 -2
  115. package/dist/patterns.d.ts +2 -2
  116. package/dist/patterns.js +1 -7
  117. package/dist/patterns.mjs +2 -2
  118. package/dist/policy/fetcher.d.mts +2 -2
  119. package/dist/policy/fetcher.d.ts +2 -2
  120. package/dist/policy/fetcher.js +100 -8
  121. package/dist/policy/fetcher.mjs +99 -9
  122. package/dist/policy/fetcher.mjs.map +1 -1
  123. package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs +81 -0
  124. package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs.map +1 -0
  125. package/dist/proxy-assertion-mapping-BxhENrcY.d.mts +70 -0
  126. package/dist/proxy-assertion-mapping-BxhENrcY.d.mts.map +1 -0
  127. package/dist/proxy-assertion-mapping-D64AyZfG.js +85 -0
  128. package/dist/proxy-assertion-mapping-DhAynFqG.d.ts +70 -0
  129. package/dist/proxy-assertion-mapping-DhAynFqG.d.ts.map +1 -0
  130. package/dist/proxy-assertions.d.mts +2 -0
  131. package/dist/proxy-assertions.d.ts +2 -0
  132. package/dist/proxy-assertions.js +4 -0
  133. package/dist/proxy-assertions.mjs +3 -0
  134. package/dist/reason-codes.d.mts +2 -2
  135. package/dist/reason-codes.d.ts +2 -2
  136. package/dist/reason-codes.js +3 -2
  137. package/dist/reason-codes.mjs +2 -2
  138. package/dist/{registered-sid-CnWIU_l1.d.ts → registered-sid-BgDhdj2l.d.mts} +13 -2
  139. package/dist/registered-sid-BgDhdj2l.d.mts.map +1 -0
  140. package/dist/{registered-sid-CnWIU_l1.d.mts → registered-sid-BgDhdj2l.d.ts} +13 -2
  141. package/dist/registered-sid-BgDhdj2l.d.ts.map +1 -0
  142. package/dist/{registered-sid-BZfDOfXy.js → registered-sid-DG1tSSvl.js} +67 -12
  143. package/dist/{registered-sid-CS9V8nPr.mjs → registered-sid-D__xiDPu.mjs} +63 -14
  144. package/dist/registered-sid-D__xiDPu.mjs.map +1 -0
  145. package/dist/timezone-country-B6PkDyNP.d.mts +15 -0
  146. package/dist/timezone-country-B6PkDyNP.d.mts.map +1 -0
  147. package/dist/timezone-country-B6PkDyNP.d.ts +15 -0
  148. package/dist/timezone-country-B6PkDyNP.d.ts.map +1 -0
  149. package/dist/timezone-country-CROxU2Tl.js +505 -0
  150. package/dist/timezone-country-CrrnkOdy.mjs +489 -0
  151. package/dist/timezone-country-CrrnkOdy.mjs.map +1 -0
  152. package/dist/timezone-country.d.mts +2 -0
  153. package/dist/timezone-country.d.ts +2 -0
  154. package/dist/timezone-country.js +6 -0
  155. package/dist/timezone-country.mjs +3 -0
  156. package/dist/tool-protection/index.mjs.map +1 -1
  157. package/fixtures/detection/cloudflare-alias-parity.json +383 -0
  158. package/fixtures/detection/reason-codes.json +3 -1
  159. package/fixtures/detection/signal-exposure-example.json +1 -1
  160. package/fixtures/iana-tzdata/backward +375 -0
  161. package/fixtures/iana-tzdata/renamed-zones.json +21 -0
  162. package/fixtures/iana-tzdata/version +1 -0
  163. package/fixtures/iana-tzdata/zone.tab +448 -0
  164. package/fixtures/workbench/management-session.v1.json +20 -0
  165. package/fixtures/workbench/model-credentials.v1.json +8 -0
  166. package/fixtures/workbench/task-grant.v1.json +37 -0
  167. package/package.json +25 -3
  168. package/src/data/compiled/merged-rules.json +9 -7
  169. package/dist/browser-posture-5fPrsxx7.d.mts.map +0 -1
  170. package/dist/browser-posture-CCR1kh5e.d.ts.map +0 -1
  171. package/dist/browser-posture-proof-verifier-DvsOmFrM.js +0 -202
  172. package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs +0 -180
  173. package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs.map +0 -1
  174. package/dist/client-ip-DIJyr6px.mjs.map +0 -1
  175. package/dist/detection-reason-mapping-BGymWIPl.mjs.map +0 -1
  176. package/dist/detection-reason-mapping-CQexNvR7.d.mts.map +0 -1
  177. package/dist/detection-reason-mapping-CQexNvR7.d.ts.map +0 -1
  178. package/dist/fetcher-CCw4Q95g.d.ts.map +0 -1
  179. package/dist/fetcher-CZfLcbRZ.d.mts.map +0 -1
  180. package/dist/patterns-Bp40cwh2.d.mts +0 -110
  181. package/dist/patterns-Bp40cwh2.d.mts.map +0 -1
  182. package/dist/patterns-Bp40cwh2.d.ts +0 -110
  183. package/dist/patterns-Bp40cwh2.d.ts.map +0 -1
  184. package/dist/patterns-D4OAsNQY.mjs.map +0 -1
  185. package/dist/registered-sid-CS9V8nPr.mjs.map +0 -1
  186. package/dist/registered-sid-CnWIU_l1.d.mts.map +0 -1
  187. package/dist/registered-sid-CnWIU_l1.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,95 @@
2
2
 
3
3
  # @kya-os/checkpoint-shared
4
4
 
5
+ ## 1.11.0 - 2026-11-16
6
+
7
+ ### Breaking changes
8
+
9
+ - Removed: `TRUSTED_BOTS`, `isTraditionalBot(userAgent)`, `getBotType(userAgent)`, `BotTypeSchema` and `BotPatternSchema`.
10
+ `BotType` and `BotPattern` remain as types, so `TRADITIONAL_BOT_PATTERNS` keeps its type.
11
+ Bot classification comes from the detection engine. (#7111)
12
+ - Removed: `USER_AGENT_PATTERNS`, `HEADER_PATTERNS`, `BROWSER_PATTERNS`, `OS_PATTERNS`, `MOBILE_PATTERNS` and `SUSPICIOUS_PATTERNS`, from the root entry and the `./patterns` entry.
13
+ `UUID_PATTERN`, `VALIDATION_PATTERNS` and the pattern-matching helpers remain. (#7111)
14
+ - Changed: `TRAFFIC_TAXONOMY_BUCKETS` gains `unidentified` (incomplete_data events), so `TrafficTaxonomyBucket` and `TaxonomyBreakdown` have a fifth member; an exhaustive `Record<TrafficTaxonomyBucket, …>` must add it. (#7626)
15
+
16
+ ### Added
17
+
18
+ - `relayedRequestTarget`, on `@kya-os/checkpoint-shared/kya-http` and the root entry: the request target of a request relayed to an enforce endpoint, the path and query of an absolute URL, or otherwise the target exactly as sent. A `url` or `path` that isn't a string counts as absent. (#6795)
19
+ - `BATCH_COMMIT_STAGES`, `BatchCommitStages` and `BEACON_COMMIT_STAGE_SAMPLE_HEADER` on the `./beacon-types` entry. (#6936)
20
+ - Reason codes for the new engine rules: `detection/client-interaction-human` for the human rule, and the client-integrity and automation-default-viewport codes for the two bot rules. (#6825)
21
+ - `VERDICT_DICTIONARIES` and `isVerdictDictionaryId`. (#7154)
22
+ - `DETECTION_REQUEST_LIMITS`, the size limits a detection request and its behavioral events may carry, for the routes that read them to clamp or log against. (#6956)
23
+ - `@kya-os/checkpoint-shared/identity-cookie`, with `readIdentityCookie`, `deviceIdOfIdentity` and `IDENTITY_COOKIE_NAMES`. (#7141)
24
+ - `@kya-os/checkpoint-shared/beacon-forward-secret` subpath with `deriveBeaconForwardSecret`. (#7135)
25
+ - `@kya-os/checkpoint-shared/proxy-assertions` entry exporting `mapProxyAssertions` and the proxy assertion types without loading Zod or Node built-ins. (#7145)
26
+ - `PolicyAuthError` and `isPolicyAuthError`.
27
+ `PolicyFetcher` used to reject an HTTP 401 or 403 from the policy API with `PolicyUnavailableError`; it now rejects it with `PolicyAuthError` (code `POLICY_AUTH_FAILED`, with the `status`), whose message names `CHECKPOINT_API_KEY`.
28
+ Without `throwOnUnavailable` it still returns the default policy. (#6973)
29
+ - the `VERDICT_NOT_STORED` error code (HTTP 504). (#7208)
30
+ - the `sessionVelocity*` helpers, `verdictShardIndexFor` and the `SESSION_VELOCITY_*` constants. (#7153)
31
+ - `VELOCITY_ESCALATION_FLOORS`, and optional parameters on `sessionVelocityExpirySeconds` and `sessionVelocitySketchCells` (defaults unchanged). (#7262)
32
+ - `ActivityLens` includes `unclassified`. (#7330)
33
+ - optional `ipRoutingType` on `NetworkContext`, with `IpRoutingType` and `IpRoutingTypeSchema`. (#7368)
34
+ - `reasonCodeForSignalSource` returns the detection reason code a signal source maps to, from the same table `mapDetectionToReasonCodes` uses. (#7381)
35
+ - `ReportedProxyTypeSchema`, `ReportedProxyType` and `reportedProxyType()`, which map the engine proxy type to `vpn`, `tor`, `hosting` or `residential`. (#7377)
36
+ - `NetworkContextSchema` accepts an optional `ipReputation` with optional `attackSource` and `spamSource` (each present only when a list of that kind was consulted), `lists` and `asOf`, and `IpReputationSchema` and `IpEventCountsSchema` are exported. (#7384)
37
+ - `@kya-os/checkpoint-shared/timezone-country` (moved from checkpoint-beacon) and an optional `network` claim on browser posture tokens. (#7373)
38
+ - `BeaconEnvironmentSignals` and an optional `environment` member on `BeaconBatch`; the browser posture token accepts an optional `environment` claim. Tokens without it verify as before. (#7427)
39
+ - further members on `BeaconEnvironmentSignals` and on the posture token's `environment` claim. Tokens without them verify as before. (#7438)
40
+ - `requestFlagLabel` and `requestFlagOwnClients` project settings, on the project settings schema and the settings update schema, which turn on and scope the `/v1/verdict` request-flag bot label. (#7488)
41
+ - the `authorization_too_weak` error code (403), for a consent-only grant whose scopes open a tool that needs a sign-in. (#7194)
42
+ - `AgentSessionFacts` type and an optional `sessionFacts` field on `AgentActivityData`. (#7541)
43
+ - additional members on `BeaconEnvironmentSignals` and on the posture token's `environment` claim. Tokens without them verify as before. (#7444)
44
+ - `AdminCohortExportCounts` and `AdminCohortReconcile` types, and an optional `cohortReconcile` field on `AdminOverviewLists`. (#7592)
45
+ - requestFlagLabelMatrix project setting (#7618)
46
+ - `requestFlagSizedClients` and `requestFlagControlClients` project settings on `ProjectSettingsSchema` and the project update schema. (#7659)
47
+ - Optional `ConsentConfigSchema.chooseThenProveEnabled` project setting for decision-first consent; absent or false retains the existing flow. (#6533)
48
+ - Optional `ConsentConfigSchema.assuranceNotes`, a brand's own line per assurance provider id (at most 20, each up to 120 characters) shown on a permission whose check that provider runs. (#6533)
49
+ - `ConsentBrandingSchema` takes optional `surfaceColor`, `panelColor`, `borderColor`, `textColor`, `mutedTextColor` and `focusColor`, each `#rrggbb`, for the default consent page's own colours. Brandings stored without them still parse. (#7828)
50
+ - `REQUEST_FLAG_KINDS` and `REQUEST_LABELLING_FLAG_KINDS`. (#7722)
51
+ - project setting `rateLimitExempt` in `ProjectSettingsSchema` and the project update schema. (#7680)
52
+ - an `s1` entry in `VERDICT_DICTIONARIES`. (#7847)
53
+ - `embeddedVerdictRules` export, the deep-frozen default verdict rules. (#7848)
54
+ - `requestFlagTwoJumpShadow` on the project settings schema and the settings update schema, and five new request labelling flag names of kind behaviour. (#7585)
55
+ - `VERDICT_RULES_BOUNDS`, and the `stateApartKm`, `twoJumpLegKm`, `twoJumpPriorMaxAgeMs`, `minuteBatch`, `minutePhase` and `scheduler` tuning fields on the verdict rules schema. (#7852)
56
+ - `highCallVolumeLine` in the embedded verdict rules. (#7561)
57
+ - the `webEditorHandoffWindowMs` verdict-rules tuning key. (#7547)
58
+ - `REQUEST_FLAG_REGISTRY`, `REQUEST_FLAG_BITS_VERSION`, `REQUEST_FLAG_BITS_FIELD`, `UNKNOWN_FLAG_BIT_PREFIX`, `packRequestFlags`, `unpackRequestFlags` and the `RegisteredRequestFlag`, `PackedRequestFlags` and `UnpackedRequestFlags` types, for carrying request flags as a bit set. (#7878)
59
+ - `requestFlagWebClients` project setting. (#7879)
60
+ - embedded verdict rules digest in compiled output. (#7862)
61
+ - `readBodyBounded` takes an optional `{ deadlineMs }` and answers `{ failure: 'timed-out', bytesRead }` when the body does not arrive in time; callers that pass no options are unchanged. (#7905)
62
+ - `requestFlagMobileAppClients` and `requestFlagWebClients` project settings (lists of client ids, up to 100 each) for the request flags that depend on which clients a project runs. (#7874)
63
+ - further request flag names in the request flag registry; existing names are unchanged. (#7884)
64
+ - the `requestFlagBrowserRelayClients` project setting, a list of client ids. (#7883)
65
+ - the `AUDIT_REQUEST_TIMEOUT` error code (HTTP 408), returned by `POST /api/v1/audit/entries` when the request body does not finish arriving in time. (#7906)
66
+ - the `REQUEST_TIMEOUT` error code (HTTP 408, "The request body did not arrive in time"), returned when a request body stalls or does not finish arriving in time. (#7906)
67
+ - `AdminOverviewLadder` has `setupCompleted` and `wentLive`, the admin funnel's Setup completed and Went live steps. (#7007)
68
+ - `REQUEST_LABELLING_FLAGS` lists 11 more request flags, so a project's request flag label matrix, and the staff matrix write, can name them. No label is served until a matrix entry names a flag. (#7916)
69
+ - `REQUEST_LABELLING_FLAGS` lists 8 more request flags, so a project's request flag label matrix, and the staff matrix write, can name them. No label is served until a matrix entry names a flag. (#7921)
70
+ - 18 request flag names appended to the request flag registry (bits 98 to 115), existing bits unchanged. (#7886)
71
+ - Admin overview types for invited teammates. `AdminCountSplit` has an optional `invited` part, `AdminAccountStatus` and `ADMIN_ACCOUNT_STATUSES` have `invited`, and the executive summary's `platformHealth.totals` has `usersInvited`. (#7926)
72
+
73
+ ### Changed
74
+
75
+ - `DetectionRequestSchema` refuses a `method` over 16 characters.
76
+ It refuses no other field for its size, since the others are relayed from the visitor's request. (#6956)
77
+ - `PolicyFetcher` remembers a failed load for each project, so a repeat load in a short window has the same outcome without calling the policy API.
78
+ A successful load, `invalidateCache` and `clearCache` end the window. (#6973)
79
+ - `TIMEZONE_COUNTRY_MAP` covers more IANA zone names, so `checkTimezoneCountryContradiction` can compare more zones. (#7406)
80
+ - `classifyAgentTaxonomy` returns `Exclude<TrafficTaxonomyBucket, 'unidentified'>`. (#7626)
81
+ - `mapProxyAssertions` keeps current confirmed evidence when another kind is stale, unsupported or conflicting. (#7392)
82
+ - the hex-colour validation message on the `CredentialProviderSchema` and `ConsentBrandingSchema` branding colours reads "Color must be a valid hex color in #RRGGBB form". (#7807)
83
+ - the project settings write schema for `requestFlagLabelMatrix` rejects a client-scoped `label:false` entry on a behaviour flag. (#7722)
84
+ - `VELOCITY_ESCALATION_FLOORS` takes its values from the embedded rules (values unchanged). (#7848)
85
+
86
+ ### Fixed
87
+
88
+ - A cached policy now expires at the exact end of its TTL in both cache checks. A TTL of 0 expires immediately, so `policyCacheTtlSeconds: 0` refetches on every call instead of serving a same-millisecond hit. (#7248)
89
+ - the bundled detection rules no longer flag DuckDuckGo browser, Sogou Mobile Browser and TikTok in-app webview users as bots, and now flag the Google-CWS, Google-Site-Verification, meta-externalads and Meta-ExternalFetcher crawlers. (#7251)
90
+ - verdict evidence no longer credits a scanner hint that repeats a Cloudflare bot score, so stored evidence reconstructs the engine's confidence. (#7387)
91
+ - `resolveTimezoneCountry` no longer returns a function for names that `Object.prototype` supplies (`constructor`, `toString`). (#7406)
92
+ - a call decided by one of the nine header contradiction signals now reports the header heuristic reason code instead of the zero-evidence fallback, and a human verdict keeps its zero-evidence code. (#7502)
93
+
5
94
  ## 1.10.0 - 2026-10-22
6
95
 
7
96
  ### Added
@@ -0,0 +1,65 @@
1
+ //#region src/utils/base64url.ts
2
+ /**
3
+ * Base64url (RFC 4648 § 5) built on `atob` and `btoa` rather than Node's
4
+ * buffer API, so it runs on every runtime the SDKs support, Cloudflare Workers
5
+ * without `nodejs_compat` included.
6
+ */
7
+ const BASE64URL_UNPADDED = /^[A-Za-z0-9_-]*$/;
8
+ const PADDING = 61;
9
+ /**
10
+ * `text` without its trailing `=` padding. A backward scan, not
11
+ * `replace(/=+$/, '')`: that regex retries from every `=` in a long run that
12
+ * does not reach the end, which is quadratic on hostile input.
13
+ */
14
+ function withoutPadding(text) {
15
+ let end = text.length;
16
+ while (end > 0 && text.charCodeAt(end - 1) === PADDING) end -= 1;
17
+ return text.slice(0, end);
18
+ }
19
+ /**
20
+ * Decode base64url, with or without `=` padding.
21
+ *
22
+ * Strict where Node's buffer decoder is lenient: a character outside the
23
+ * alphabet, or a length no encoder produces (one character past a multiple of
24
+ * four), throws a `TypeError` instead of being skipped or truncated. This
25
+ * matches the engine's decoder.
26
+ */
27
+ function base64UrlToBytes(text) {
28
+ const unpadded = withoutPadding(text);
29
+ if (!BASE64URL_UNPADDED.test(unpadded) || unpadded.length % 4 === 1) throw new TypeError("not valid base64url (RFC 4648 § 5)");
30
+ const base64 = unpadded.replace(/-/g, "+").replace(/_/g, "/");
31
+ const binary = atob(base64 + "=".repeat((4 - base64.length % 4) % 4));
32
+ const bytes = new Uint8Array(binary.length);
33
+ for (let index = 0; index < binary.length; index += 1) bytes[index] = binary.charCodeAt(index);
34
+ return bytes;
35
+ }
36
+ /** Decode base64url to a string as UTF-8, replacing invalid sequences with U+FFFD. */
37
+ function base64UrlToString(text) {
38
+ return new TextDecoder().decode(base64UrlToBytes(text));
39
+ }
40
+ /** Encode bytes as base64url without padding. */
41
+ function bytesToBase64Url(bytes) {
42
+ let binary = "";
43
+ for (const byte of bytes) binary += String.fromCharCode(byte);
44
+ return withoutPadding(btoa(binary).replace(/\+/g, "-").replace(/\//g, "_"));
45
+ }
46
+
47
+ //#endregion
48
+ Object.defineProperty(exports, 'base64UrlToBytes', {
49
+ enumerable: true,
50
+ get: function () {
51
+ return base64UrlToBytes;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, 'base64UrlToString', {
55
+ enumerable: true,
56
+ get: function () {
57
+ return base64UrlToString;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, 'bytesToBase64Url', {
61
+ enumerable: true,
62
+ get: function () {
63
+ return bytesToBase64Url;
64
+ }
65
+ });
@@ -0,0 +1,49 @@
1
+ //#region src/utils/base64url.ts
2
+ /**
3
+ * Base64url (RFC 4648 § 5) built on `atob` and `btoa` rather than Node's
4
+ * buffer API, so it runs on every runtime the SDKs support, Cloudflare Workers
5
+ * without `nodejs_compat` included.
6
+ */
7
+ const BASE64URL_UNPADDED = /^[A-Za-z0-9_-]*$/;
8
+ const PADDING = 61;
9
+ /**
10
+ * `text` without its trailing `=` padding. A backward scan, not
11
+ * `replace(/=+$/, '')`: that regex retries from every `=` in a long run that
12
+ * does not reach the end, which is quadratic on hostile input.
13
+ */
14
+ function withoutPadding(text) {
15
+ let end = text.length;
16
+ while (end > 0 && text.charCodeAt(end - 1) === PADDING) end -= 1;
17
+ return text.slice(0, end);
18
+ }
19
+ /**
20
+ * Decode base64url, with or without `=` padding.
21
+ *
22
+ * Strict where Node's buffer decoder is lenient: a character outside the
23
+ * alphabet, or a length no encoder produces (one character past a multiple of
24
+ * four), throws a `TypeError` instead of being skipped or truncated. This
25
+ * matches the engine's decoder.
26
+ */
27
+ function base64UrlToBytes(text) {
28
+ const unpadded = withoutPadding(text);
29
+ if (!BASE64URL_UNPADDED.test(unpadded) || unpadded.length % 4 === 1) throw new TypeError("not valid base64url (RFC 4648 § 5)");
30
+ const base64 = unpadded.replace(/-/g, "+").replace(/_/g, "/");
31
+ const binary = atob(base64 + "=".repeat((4 - base64.length % 4) % 4));
32
+ const bytes = new Uint8Array(binary.length);
33
+ for (let index = 0; index < binary.length; index += 1) bytes[index] = binary.charCodeAt(index);
34
+ return bytes;
35
+ }
36
+ /** Decode base64url to a string as UTF-8, replacing invalid sequences with U+FFFD. */
37
+ function base64UrlToString(text) {
38
+ return new TextDecoder().decode(base64UrlToBytes(text));
39
+ }
40
+ /** Encode bytes as base64url without padding. */
41
+ function bytesToBase64Url(bytes) {
42
+ let binary = "";
43
+ for (const byte of bytes) binary += String.fromCharCode(byte);
44
+ return withoutPadding(btoa(binary).replace(/\+/g, "-").replace(/\//g, "_"));
45
+ }
46
+
47
+ //#endregion
48
+ export { base64UrlToString as n, bytesToBase64Url as r, base64UrlToBytes as t };
49
+ //# sourceMappingURL=base64url-D2MvsR20.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base64url-D2MvsR20.mjs","names":[],"sources":["../src/utils/base64url.ts"],"sourcesContent":["/**\n * Base64url (RFC 4648 § 5) built on `atob` and `btoa` rather than Node's\n * buffer API, so it runs on every runtime the SDKs support, Cloudflare Workers\n * without `nodejs_compat` included.\n */\n\nconst BASE64URL_UNPADDED = /^[A-Za-z0-9_-]*$/;\nconst PADDING = 61; // '='\n\n/**\n * `text` without its trailing `=` padding. A backward scan, not\n * `replace(/=+$/, '')`: that regex retries from every `=` in a long run that\n * does not reach the end, which is quadratic on hostile input.\n */\nfunction withoutPadding(text: string): string {\n let end = text.length;\n while (end > 0 && text.charCodeAt(end - 1) === PADDING) end -= 1;\n return text.slice(0, end);\n}\n\n/**\n * Decode base64url, with or without `=` padding.\n *\n * Strict where Node's buffer decoder is lenient: a character outside the\n * alphabet, or a length no encoder produces (one character past a multiple of\n * four), throws a `TypeError` instead of being skipped or truncated. This\n * matches the engine's decoder.\n */\nexport function base64UrlToBytes(text: string): Uint8Array<ArrayBuffer> {\n const unpadded = withoutPadding(text);\n if (!BASE64URL_UNPADDED.test(unpadded) || unpadded.length % 4 === 1) {\n throw new TypeError('not valid base64url (RFC 4648 § 5)');\n }\n const base64 = unpadded.replace(/-/g, '+').replace(/_/g, '/');\n const binary = atob(base64 + '='.repeat((4 - (base64.length % 4)) % 4));\n const bytes = new Uint8Array(binary.length);\n for (let index = 0; index < binary.length; index += 1) {\n bytes[index] = binary.charCodeAt(index);\n }\n return bytes;\n}\n\n/** Decode base64url to a string as UTF-8, replacing invalid sequences with U+FFFD. */\nexport function base64UrlToString(text: string): string {\n return new TextDecoder().decode(base64UrlToBytes(text));\n}\n\n/** Encode bytes as base64url without padding. */\nexport function bytesToBase64Url(bytes: Uint8Array): string {\n let binary = '';\n for (const byte of bytes) binary += String.fromCharCode(byte);\n return withoutPadding(btoa(binary).replace(/\\+/g, '-').replace(/\\//g, '_'));\n}\n"],"mappings":";;;;;;AAMA,MAAM,qBAAqB;AAC3B,MAAM,UAAU;;;;;;AAOhB,SAAS,eAAe,MAAsB;CAC5C,IAAI,MAAM,KAAK;CACf,OAAO,MAAM,KAAK,KAAK,WAAW,MAAM,CAAC,MAAM,SAAS,OAAO;CAC/D,OAAO,KAAK,MAAM,GAAG,GAAG;AAC1B;;;;;;;;;AAUA,SAAgB,iBAAiB,MAAuC;CACtE,MAAM,WAAW,eAAe,IAAI;CACpC,IAAI,CAAC,mBAAmB,KAAK,QAAQ,KAAK,SAAS,SAAS,MAAM,GAChE,MAAM,IAAI,UAAU,oCAAoC;CAE1D,MAAM,SAAS,SAAS,QAAQ,MAAM,GAAG,CAAC,CAAC,QAAQ,MAAM,GAAG;CAC5D,MAAM,SAAS,KAAK,SAAS,IAAI,QAAQ,IAAK,OAAO,SAAS,KAAM,CAAC,CAAC;CACtE,MAAM,QAAQ,IAAI,WAAW,OAAO,MAAM;CAC1C,KAAK,IAAI,QAAQ,GAAG,QAAQ,OAAO,QAAQ,SAAS,GAClD,MAAM,SAAS,OAAO,WAAW,KAAK;CAExC,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAAsB;CACtD,OAAO,IAAI,YAAY,CAAC,CAAC,OAAO,iBAAiB,IAAI,CAAC;AACxD;;AAGA,SAAgB,iBAAiB,OAA2B;CAC1D,IAAI,SAAS;CACb,KAAK,MAAM,QAAQ,OAAO,UAAU,OAAO,aAAa,IAAI;CAC5D,OAAO,eAAe,KAAK,MAAM,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC;AAC5E"}
@@ -0,0 +1,4 @@
1
+ //#region src/beacon-forward-secret/index.d.ts
2
+ export declare function deriveBeaconForwardSecret(root: string, projectId: string): Promise<string>;
3
+ //#endregion
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/beacon-forward-secret/index.ts"],"mappings":";wBAGsB,0BAA0B,cAAc,oBAAoB"}
@@ -0,0 +1,4 @@
1
+ //#region src/beacon-forward-secret/index.d.ts
2
+ export declare function deriveBeaconForwardSecret(root: string, projectId: string): Promise<string>;
3
+ //#endregion
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/beacon-forward-secret/index.ts"],"mappings":";wBAGsB,0BAA0B,cAAc,oBAAoB"}
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ //#region src/beacon-forward-secret/index.ts
3
+ const DOMAIN = "beacon-forward:v1:";
4
+ const encoder = new TextEncoder();
5
+ async function deriveBeaconForwardSecret(root, projectId) {
6
+ const key = await crypto.subtle.importKey("raw", encoder.encode(root), {
7
+ name: "HMAC",
8
+ hash: "SHA-256"
9
+ }, false, ["sign"]);
10
+ const mac = await crypto.subtle.sign("HMAC", key, encoder.encode(`${DOMAIN}${projectId}`));
11
+ return Array.from(new Uint8Array(mac), (byte) => byte.toString(16).padStart(2, "0")).join("");
12
+ }
13
+
14
+ //#endregion
15
+ exports.deriveBeaconForwardSecret = deriveBeaconForwardSecret;
@@ -0,0 +1,15 @@
1
+ //#region src/beacon-forward-secret/index.ts
2
+ const DOMAIN = "beacon-forward:v1:";
3
+ const encoder = new TextEncoder();
4
+ async function deriveBeaconForwardSecret(root, projectId) {
5
+ const key = await crypto.subtle.importKey("raw", encoder.encode(root), {
6
+ name: "HMAC",
7
+ hash: "SHA-256"
8
+ }, false, ["sign"]);
9
+ const mac = await crypto.subtle.sign("HMAC", key, encoder.encode(`${DOMAIN}${projectId}`));
10
+ return Array.from(new Uint8Array(mac), (byte) => byte.toString(16).padStart(2, "0")).join("");
11
+ }
12
+
13
+ //#endregion
14
+ export { deriveBeaconForwardSecret };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/beacon-forward-secret/index.ts"],"sourcesContent":["const DOMAIN = 'beacon-forward:v1:';\nconst encoder = new TextEncoder();\n\nexport async function deriveBeaconForwardSecret(root: string, projectId: string): Promise<string> {\n const key = await crypto.subtle.importKey(\n 'raw',\n encoder.encode(root),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign']\n );\n const mac = await crypto.subtle.sign('HMAC', key, encoder.encode(`${DOMAIN}${projectId}`));\n return Array.from(new Uint8Array(mac), (byte) => byte.toString(16).padStart(2, '0')).join('');\n}\n"],"mappings":";AAAA,MAAM,SAAS;AACf,MAAM,UAAU,IAAI,YAAY;AAEhC,eAAsB,0BAA0B,MAAc,WAAoC;CAChG,MAAM,MAAM,MAAM,OAAO,OAAO,UAC9B,OACA,QAAQ,OAAO,IAAI,GACnB;EAAE,MAAM;EAAQ,MAAM;CAAU,GAChC,OACA,CAAC,MAAM,CACT;CACA,MAAM,MAAM,MAAM,OAAO,OAAO,KAAK,QAAQ,KAAK,QAAQ,OAAO,GAAG,SAAS,WAAW,CAAC;CACzF,OAAO,MAAM,KAAK,IAAI,WAAW,GAAG,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE;AAC9F"}
@@ -17,6 +17,9 @@ export type BeaconJsonValue = JsonValue;
17
17
  export type BeaconCustomData = Record<string, JsonValue | undefined>;
18
18
  export type BeaconPayload = BeaconCollectorData | BeaconCustomData | null;
19
19
  export type WorkerPayload = unknown;
20
+ export declare const BATCH_COMMIT_STAGES: readonly ["poolWaitMs", "receiptLockMs", "ledgerLookupMs", "detectionInsertMs", "secondaryOutboxInsertMs", "transactionCommitMs", "afterCommitMs", "postCommitMs"];
21
+ export type BatchCommitStages = Record<(typeof BATCH_COMMIT_STAGES)[number], number>;
22
+ export declare const BEACON_COMMIT_STAGE_SAMPLE_HEADER = "x-checkpoint-beacon-commit-stage-sample";
20
23
  export declare function isBeaconIdentity(value: unknown): value is BeaconIdentity;
21
24
  export interface NetworkInformationLike extends EventTarget {
22
25
  type?: string;
@@ -220,6 +223,8 @@ export interface TransportOptions {
220
223
  deviceId?: string;
221
224
  handoffToken?: string;
222
225
  batch?: QueuedBatchIdentity;
226
+ reflexiveIp?: string;
227
+ environment?: BeaconEnvironmentSignals;
223
228
  }
224
229
  export interface TransportResponse {
225
230
  success: boolean;
@@ -435,6 +440,21 @@ export interface BeaconReceipt {
435
440
  };
436
441
  postureStatus?: string;
437
442
  }
443
+ export interface BeaconNetworkSignals {
444
+ reflexiveIp?: string;
445
+ timezone?: string;
446
+ languages?: string[];
447
+ rttMs?: number;
448
+ }
449
+ export interface BeaconEnvironmentSignals {
450
+ incognito?: boolean;
451
+ privacySettings?: boolean;
452
+ virtualMachine?: boolean;
453
+ developerTools?: boolean;
454
+ tampering?: boolean;
455
+ antiDetect?: boolean;
456
+ osMismatch?: boolean;
457
+ }
438
458
  export interface BeaconBatch {
439
459
  projectId: string;
440
460
  events: BeaconEvent[];
@@ -451,6 +471,8 @@ export interface BeaconBatch {
451
471
  queueEvictions?: number;
452
472
  queueExpirations?: number;
453
473
  queueCorruptions?: number;
474
+ network?: BeaconNetworkSignals;
475
+ environment?: BeaconEnvironmentSignals;
454
476
  }
455
477
  export type BeaconKeyless = 1 | 2;
456
478
  export interface BeaconCollectorData {
@@ -502,10 +524,15 @@ export declare class AgentShieldBeacon implements IAgentShieldBeacon {
502
524
  destroy(): Promise<void>;
503
525
  }
504
526
  export declare const BEACON_MAX_EVENTS_PER_BATCH = 100;
527
+ export declare const BEACON_MAX_BATCH_ENVELOPES = 100;
505
528
  export declare const SESSION_IDLE_GAP_MAX_MS = 21600000;
506
529
  export declare const BEACON_MAX_BATCH_ID_LENGTH = 255;
530
+ export declare const BEACON_RECEIPT_ID_PATTERN: RegExp;
531
+ export declare const BEACON_BODY_DIGEST_PATTERN: RegExp;
532
+ export declare const BEACON_PROJECT_UUID_PATTERN: RegExp;
533
+ export declare function isBeaconReceiptLookupItem(value: unknown): boolean;
507
534
  export declare const BEACON_ORIGIN_CONTRACT_VERSION = 1;
508
- export declare const BEACON_ORIGIN_CAPABILITIES: readonly ["batch-replay-v1", "receipt-status-v1", "receipt-posture-v1", "batch-identity-digest-v1"];
535
+ export declare const BEACON_ORIGIN_CAPABILITIES: readonly ["batch-replay-v1", "receipt-status-v1", "receipt-posture-v1", "receipt-posture-journal-v1", "batch-identity-digest-v1", "project-admission-v1", "gzip-request-bodies-v1"];
509
536
  export declare const BEACON_EDGE_CAPABILITIES_HEADER = "x-checkpoint-beacon-capabilities";
510
537
  export declare const BEACON_EDGE_CAPABILITIES: readonly ["key-pending-v1"];
511
538
  export type BeaconEdgeCapability = (typeof BEACON_EDGE_CAPABILITIES)[number];
@@ -530,5 +557,30 @@ export interface PostureAnswer {
530
557
  answeredAtMs?: number;
531
558
  }
532
559
  export declare function parsePostureAnswer(value: unknown): PostureAnswer;
560
+ export declare const POSTURE_RECOVERY_FORMAT_VERSION = 1;
561
+ export type PostureRecovery = {
562
+ state: 'ready';
563
+ answerFormatVersion: number;
564
+ answer: PostureAnswer;
565
+ answeredAtMs: number;
566
+ expiresAtMs: number;
567
+ } | {
568
+ state: 'expired';
569
+ expiresAtMs?: number;
570
+ } | {
571
+ state: 'not-required';
572
+ } | {
573
+ state: 'legacy';
574
+ } | {
575
+ state: 'unavailable';
576
+ };
577
+ export declare function parsePostureRecovery(value: unknown): PostureRecovery | undefined;
578
+ export declare function postureAnswerMatchesBinding(answer: PostureAnswer, binding: {
579
+ projectId: string;
580
+ browserSessionId: string;
581
+ origin: string | undefined;
582
+ proofJkt: string | undefined;
583
+ batchKeyJkt: string | undefined;
584
+ }): Promise<boolean>;
533
585
  //#endregion
534
586
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/beacon-types/session-commitment.ts","../../src/beacon-types/index.ts"],"mappings":";wBAWgB,qBAAqB,YAAY;wBAIjC,wBAAwB,oBAAoB;wBAI5C,mBAAmB,YAAY,YAAY;wBAI3C,qBAAqB;wBAKrB,2BAA2B,mBAAmB,YAAY;wBA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ACA;;EAIF;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;;;iBAQa;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;IACE;IACA;IACA;IACA;IACA;;;iBAQa;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;;iBAOe;EACf;EACA;EACA;EACA;EACA;EAEA;;iBAGe;EACf;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;EACV;EACA;EACA,QAAQ;;iBAGO;EACf;EACA;EACA;EACA;EACA;;YAGU;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;iBAUK;EACf;EACA;EACA;EACA;EACA;;YAOU;YACA;YAWA;YAQA;iBAEK;EACf;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,WAAW;EACX;;YAGU;YAUA;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;iBAGK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;;iBAIa;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;;EAEF;;iBAGe;EACf;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;;YAGU;YAWA;iBAEK;EACf,MAAM;EACN,OAAO;EACP,UAAU;EACV;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAWA;;iBAOe;EACf;EACA;EACA;;YAGU;iBAEK;EACf;EACA;EACA;EACA;EACA;;iBAOe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA,QAAQ;;iBAUO;EACf;EACA;EACA;EACA;;iBAIe;EAOf;EAKA;EAEA;IAAY;IAAe;;EAE3B;;iBAGe;EACf;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;EACV;EACA;EACA;;YAGU;iBAEK;EAEf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EAGA;EACA;GAGC;;YAGS;wBAaI,mBAAmB,iBAAiB;wBAWpC,0BAA0B,iBAAiB;wBAgC3C,uBAAuB,iBAAiB;wBA6BxC,yBAAyB,iBAAiB;wBA8C1C,mBAAmB,iBAAiB;wBAkBpC,iBAAiB,iBAAiB;wBAclC,sBAAsB,iBAAiB;wBAcvC,mBAAmB,iBAAiB;qBAUvC;gBAAA;;qBAIA;gBAAA;;wBAIG,wBAAwB,iBAAiB;wBAiCzC,kBACd,gBACA,UAAU,2BACT;qBA6HkB,6BAA6B;EACpC,YAAA,QAAQ;EACpB,QAAQ,mBAAmB,OAAO,gBAAgB;EAClD,WAAW,mBAAmB,YAAY,gBAAgB;EAC1D,cAAc,WAAW,gBAAgB;EACzC,mBAAmB;EACnB,aAAa,SAAS,QAAQ;EAC9B,WAAW;;qBAQA;qBAEA;qBACA;qBAEA;qBAEA;qBAOA;qBAEA;YAED,+BAA+B;wBAE3B;wBAIA,4BACd,mCACC;wBAKa,mBACd;EAAY;EAAmB,QAAQ,cAAc;GACrD,OAAO,GAAG,oBAAoB;wBA6BhB,mBAAmB;wBAInB,8BAA8B;qBASjC;iBAEI;EACf;EACA;;iBAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;wBAGc,mBAAmB,iBAAiB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../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AO,gBAAgB;EAKlD,WAAW,mBAAmB,YAAY,gBAAgB;EAK1D,cAAc,WAAW,gBAAgB;EAKzC,mBAAmB;EAKnB,aAAa,SAAS,QAAQ;EAK9B,WAAW;;iBAOI;EAEf;EAGA;EAGA;IACE;IACA;;;iBAQa;EAEf;IACE;IACA;IACA;;EAIF;IACE;IACA;;EAIF;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;;;iBAQa;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;IACE;IACA;IACA;IACA;IACA;;;iBAQa;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;;iBAOe;EACf;EACA;EACA;EACA;EACA;EAEA;;iBAGe;EACf;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;EACV;EACA;EACA,QAAQ;EACR;EACA,cAAc;;iBAGC;EACf;EACA;EACA;EACA;EACA;;YAGU;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;iBAUK;EACf;EACA;EACA;EACA;EACA;;YAOU;YACA;YAWA;YAQA;iBAEK;EACf;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,WAAW;EACX;;YAGU;YAUA;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;iBAGK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;;iBAIa;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;;EAEF;;iBAGe;E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qBAQA;qBAEA;qBAEA;qBACA;qBAEA,2BAAyB;qBACzB,4BAA0B;qBAC1B,6BAA2B;wBAWxB,0BAA0B;qBAqB7B;qBAEA;qBAUA;qBAEA;YAED,+BAA+B;wBAE3B;wBAIA,4BACd,mCACC;wBAKa,mBACd;EAAY;EAAmB,QAAQ,cAAc;GACrD,OAAO,GAAG,oBAAoB;wBA6BhB,mBAAmB;wBAInB,8BAA8B;qBASjC;iBAEI;EACf;EACA;;iBAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;wBAGc,mBAAmB,iBAAiB;qBA0BvC;YAED;EAEN;EACA;EACA,QAAQ;EACR;EACA;;EAEA;EAAkB;;EAClB;;EACA;;EACA;;wBAEU,qBAAqB,iBAAiB;wBAsDhC,4BACpB,QAAQ,eACR;EACE;EACA;EACA;EACA;EACA;IAED"}
@@ -17,6 +17,9 @@ export type BeaconJsonValue = JsonValue;
17
17
  export type BeaconCustomData = Record<string, JsonValue | undefined>;
18
18
  export type BeaconPayload = BeaconCollectorData | BeaconCustomData | null;
19
19
  export type WorkerPayload = unknown;
20
+ export declare const BATCH_COMMIT_STAGES: readonly ["poolWaitMs", "receiptLockMs", "ledgerLookupMs", "detectionInsertMs", "secondaryOutboxInsertMs", "transactionCommitMs", "afterCommitMs", "postCommitMs"];
21
+ export type BatchCommitStages = Record<(typeof BATCH_COMMIT_STAGES)[number], number>;
22
+ export declare const BEACON_COMMIT_STAGE_SAMPLE_HEADER = "x-checkpoint-beacon-commit-stage-sample";
20
23
  export declare function isBeaconIdentity(value: unknown): value is BeaconIdentity;
21
24
  export interface NetworkInformationLike extends EventTarget {
22
25
  type?: string;
@@ -220,6 +223,8 @@ export interface TransportOptions {
220
223
  deviceId?: string;
221
224
  handoffToken?: string;
222
225
  batch?: QueuedBatchIdentity;
226
+ reflexiveIp?: string;
227
+ environment?: BeaconEnvironmentSignals;
223
228
  }
224
229
  export interface TransportResponse {
225
230
  success: boolean;
@@ -435,6 +440,21 @@ export interface BeaconReceipt {
435
440
  };
436
441
  postureStatus?: string;
437
442
  }
443
+ export interface BeaconNetworkSignals {
444
+ reflexiveIp?: string;
445
+ timezone?: string;
446
+ languages?: string[];
447
+ rttMs?: number;
448
+ }
449
+ export interface BeaconEnvironmentSignals {
450
+ incognito?: boolean;
451
+ privacySettings?: boolean;
452
+ virtualMachine?: boolean;
453
+ developerTools?: boolean;
454
+ tampering?: boolean;
455
+ antiDetect?: boolean;
456
+ osMismatch?: boolean;
457
+ }
438
458
  export interface BeaconBatch {
439
459
  projectId: string;
440
460
  events: BeaconEvent[];
@@ -451,6 +471,8 @@ export interface BeaconBatch {
451
471
  queueEvictions?: number;
452
472
  queueExpirations?: number;
453
473
  queueCorruptions?: number;
474
+ network?: BeaconNetworkSignals;
475
+ environment?: BeaconEnvironmentSignals;
454
476
  }
455
477
  export type BeaconKeyless = 1 | 2;
456
478
  export interface BeaconCollectorData {
@@ -502,10 +524,15 @@ export declare class AgentShieldBeacon implements IAgentShieldBeacon {
502
524
  destroy(): Promise<void>;
503
525
  }
504
526
  export declare const BEACON_MAX_EVENTS_PER_BATCH = 100;
527
+ export declare const BEACON_MAX_BATCH_ENVELOPES = 100;
505
528
  export declare const SESSION_IDLE_GAP_MAX_MS = 21600000;
506
529
  export declare const BEACON_MAX_BATCH_ID_LENGTH = 255;
530
+ export declare const BEACON_RECEIPT_ID_PATTERN: RegExp;
531
+ export declare const BEACON_BODY_DIGEST_PATTERN: RegExp;
532
+ export declare const BEACON_PROJECT_UUID_PATTERN: RegExp;
533
+ export declare function isBeaconReceiptLookupItem(value: unknown): boolean;
507
534
  export declare const BEACON_ORIGIN_CONTRACT_VERSION = 1;
508
- export declare const BEACON_ORIGIN_CAPABILITIES: readonly ["batch-replay-v1", "receipt-status-v1", "receipt-posture-v1", "batch-identity-digest-v1"];
535
+ export declare const BEACON_ORIGIN_CAPABILITIES: readonly ["batch-replay-v1", "receipt-status-v1", "receipt-posture-v1", "receipt-posture-journal-v1", "batch-identity-digest-v1", "project-admission-v1", "gzip-request-bodies-v1"];
509
536
  export declare const BEACON_EDGE_CAPABILITIES_HEADER = "x-checkpoint-beacon-capabilities";
510
537
  export declare const BEACON_EDGE_CAPABILITIES: readonly ["key-pending-v1"];
511
538
  export type BeaconEdgeCapability = (typeof BEACON_EDGE_CAPABILITIES)[number];
@@ -530,5 +557,30 @@ export interface PostureAnswer {
530
557
  answeredAtMs?: number;
531
558
  }
532
559
  export declare function parsePostureAnswer(value: unknown): PostureAnswer;
560
+ export declare const POSTURE_RECOVERY_FORMAT_VERSION = 1;
561
+ export type PostureRecovery = {
562
+ state: 'ready';
563
+ answerFormatVersion: number;
564
+ answer: PostureAnswer;
565
+ answeredAtMs: number;
566
+ expiresAtMs: number;
567
+ } | {
568
+ state: 'expired';
569
+ expiresAtMs?: number;
570
+ } | {
571
+ state: 'not-required';
572
+ } | {
573
+ state: 'legacy';
574
+ } | {
575
+ state: 'unavailable';
576
+ };
577
+ export declare function parsePostureRecovery(value: unknown): PostureRecovery | undefined;
578
+ export declare function postureAnswerMatchesBinding(answer: PostureAnswer, binding: {
579
+ projectId: string;
580
+ browserSessionId: string;
581
+ origin: string | undefined;
582
+ proofJkt: string | undefined;
583
+ batchKeyJkt: string | undefined;
584
+ }): Promise<boolean>;
533
585
  //#endregion
534
586
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/beacon-types/session-commitment.ts","../../src/beacon-types/index.ts"],"mappings":";wBAWgB,qBAAqB,YAAY;wBAIjC,wBAAwB,oBAAoB;wBAI5C,mBAAmB,YAAY,YAAY;wBAI3C,qBAAqB;wBAKrB,2BAA2B,mBAAmB,YAAY;wBAK1D,oBAAoB,mBAAmB;wBAYvC,oBAAoB,mBAAmB;;;YCpC3C;YACA,YAAY,gBAAgB;GAAiB,cAAc;;YAC3D,kBAAkB;YAClB,kBAAkB;YAClB,mBAAmB,eAAe;YAClC,gBAAgB,sBAAsB;YACtC;wBA4KI,iBAA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a;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;;iBAOe;EACf;EACA;EACA;EACA;EACA;EAEA;;iBAGe;EACf;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;EACV;EACA;EACA,QAAQ;;iBAGO;EACf;EACA;EACA;EACA;EACA;;YAGU;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;iBAUK;EACf;EACA;EACA;EACA;EACA;;YAOU;YACA;YAWA;YAQA;iBAEK;EACf;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,WAAW;EACX;;YAGU;YAUA;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;iBAGK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;;iBAIa;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;;EAEF;;iBAGe;EACf;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;;YAGU;YAWA;iBAEK;EACf,MAAM;EACN,OAAO;EACP,UAAU;EACV;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAWA;;iBAOe;EACf;EACA;EACA;;YAGU;iBAEK;EACf;EACA;EACA;EACA;EACA;;iBAOe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA,QAAQ;;iBAUO;EACf;EACA;EACA;EACA;;iBAIe;EAOf;EAKA;EAEA;IAAY;IAAe;;EAE3B;;iBAGe;EACf;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;EACV;EACA;EACA;;YAGU;iBAEK;EAEf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EAGA;EACA;GAGC;;YAGS;wBAaI,mBAAmB,iBAAiB;wBAWpC,0BAA0B,iBAAiB;wBAgC3C,uBAAuB,iBAAiB;wBA6BxC,yBAAyB,iBAAiB;wBA8C1C,mBAAmB,iBAAiB;wBAkBpC,iBAAiB,iBAAiB;wBAclC,sBAAsB,iBAAiB;wBAcvC,mBAAmB,iBAAiB;qBAUvC;gBAAA;;qBAIA;gBAAA;;wBAIG,wBAAwB,iBAAiB;wBAiCzC,kBACd,gBACA,UAAU,2BACT;qBA6HkB,6BAA6B;EACpC,YAAA,QAAQ;EACpB,QAAQ,mBAAmB,OAAO,gBAAgB;EAClD,WAAW,mBAAmB,YAAY,gBAAgB;EAC1D,cAAc,WAAW,gBAAgB;EACzC,mBAAmB;EACnB,aAAa,SAAS,QAAQ;EAC9B,WAAW;;qBAQA;qBAEA;qBACA;qBAEA;qBAEA;qBAOA;qBAEA;YAED,+BAA+B;wBAE3B;wBAIA,4BACd,mCACC;wBAKa,mBACd;EAAY;EAAmB,QAAQ,cAAc;GACrD,OAAO,GAAG,oBAAoB;wBA6BhB,mBAAmB;wBAInB,8BAA8B;qBASjC;iBAEI;EACf;EACA;;iBAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;wBAGc,mBAAmB,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/beacon-types/session-commitment.ts","../../src/beacon-types/index.ts"],"mappings":";wBAWgB,qBAAqB,YAAY;wBAIjC,wBAAwB,oBAAoB;wBAI5C,mBAAmB,YAAY,YAAY;wBAI3C,qBAAqB;wBAKrB,2BAA2B,mBAAmB,YAAY;wBAK1D,oBA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ACE;IACA;IACA;;EAIF;IACE;IACA;;EAIF;IACE;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;;EAIF;IACE;IACA;IACA;IACA;IACA;;;iBAQa;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;IACE;IACA;IACA;IACA;IACA;;;iBAQa;EAEf;EAGA;EAGA;EAGA;EAGA;EAGA;EAGA;;iBAOe;EACf;EACA;EACA;EACA;EACA;EAEA;;iBAGe;EACf;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;EACV;EACA;EACA,QAAQ;EACR;EACA,cAAc;;iBAGC;EACf;EACA;EACA;EACA;EACA;;YAGU;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;YAGU;iBAUK;EACf;EACA;EACA;EACA;EACA;;YAOU;YACA;YAWA;YAQA;iBAEK;EACf;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,WAAW;EACX;;YAGU;YAUA;iBAEK;EACf;EACA;EACA;EACA;EACA;EACA,cAAc;EACd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;iBAGK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF;IACE;IACA;;;iBAIa;EACf;EACA;EACA,MAAM;EACN;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;iBAGe;EACf;IACE;IACA;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;IACA;IACA;;EAEF;;iBAGe;EACf;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;;YAGU;YAWA;iBAEK;EACf,MAAM;EACN,OAAO;EACP,UAAU;EACV;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA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