@kya-os/checkpoint-shared 1.9.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 (207) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/README.md +1 -1
  3. package/dist/base64url-BbVG8f-v.js +65 -0
  4. package/dist/base64url-D2MvsR20.mjs +49 -0
  5. package/dist/base64url-D2MvsR20.mjs.map +1 -0
  6. package/dist/beacon-forward-secret/index.d.mts +4 -0
  7. package/dist/beacon-forward-secret/index.d.mts.map +1 -0
  8. package/dist/beacon-forward-secret/index.d.ts +4 -0
  9. package/dist/beacon-forward-secret/index.d.ts.map +1 -0
  10. package/dist/beacon-forward-secret/index.js +15 -0
  11. package/dist/beacon-forward-secret/index.mjs +15 -0
  12. package/dist/beacon-forward-secret/index.mjs.map +1 -0
  13. package/dist/beacon-types/index.d.mts +53 -1
  14. package/dist/beacon-types/index.d.mts.map +1 -1
  15. package/dist/beacon-types/index.d.ts +53 -1
  16. package/dist/beacon-types/index.d.ts.map +1 -1
  17. package/dist/beacon-types/index.js +86 -1
  18. package/dist/beacon-types/index.mjs +77 -2
  19. package/dist/beacon-types/index.mjs.map +1 -1
  20. package/dist/{browser-posture-5fPrsxx7.d.mts → browser-posture-WPk0kl9u.d.mts} +18 -1
  21. package/dist/browser-posture-WPk0kl9u.d.mts.map +1 -0
  22. package/dist/{browser-posture-CCR1kh5e.d.ts → browser-posture-_y6BcdXw.d.ts} +18 -1
  23. package/dist/browser-posture-_y6BcdXw.d.ts.map +1 -0
  24. package/dist/browser-posture-cookie.mjs.map +1 -1
  25. package/dist/browser-posture-proof-verifier.js +136 -5
  26. package/dist/browser-posture-proof-verifier.mjs +134 -2
  27. package/dist/browser-posture-proof-verifier.mjs.map +1 -0
  28. package/dist/browser-posture-proof.d.mts +1 -1
  29. package/dist/browser-posture-proof.d.ts +1 -1
  30. package/dist/browser-posture-proof.js +1 -1
  31. package/dist/browser-posture-proof.mjs +1 -1
  32. package/dist/browser-posture-report.d.mts +17 -0
  33. package/dist/browser-posture-report.d.mts.map +1 -1
  34. package/dist/browser-posture-report.d.ts +17 -0
  35. package/dist/browser-posture-report.d.ts.map +1 -1
  36. package/dist/browser-posture.d.mts +1 -1
  37. package/dist/browser-posture.d.ts +1 -1
  38. package/dist/browser-posture.js +53 -5
  39. package/dist/browser-posture.mjs +53 -5
  40. package/dist/browser-posture.mjs.map +1 -1
  41. package/dist/browser.d.mts +10 -0
  42. package/dist/browser.d.mts.map +1 -1
  43. package/dist/browser.d.ts +10 -0
  44. package/dist/browser.d.ts.map +1 -1
  45. package/dist/browser.js +1 -1
  46. package/dist/browser.mjs +1 -1
  47. package/dist/browser.mjs.map +1 -1
  48. package/dist/canonical-signer/index.d.mts.map +1 -1
  49. package/dist/canonical-signer/index.d.ts.map +1 -1
  50. package/dist/canonical-signer/index.js +0 -4
  51. package/dist/canonical-signer/index.mjs +0 -4
  52. package/dist/canonical-signer/index.mjs.map +1 -1
  53. package/dist/{client-ip-B7w-uHfS.d.ts → client-ip-8KneiMK0.d.mts} +12 -2
  54. package/dist/{client-ip-B7w-uHfS.d.mts.map → client-ip-8KneiMK0.d.mts.map} +1 -1
  55. package/dist/{client-ip-B7w-uHfS.d.mts → client-ip-8KneiMK0.d.ts} +12 -2
  56. package/dist/{client-ip-B7w-uHfS.d.ts.map → client-ip-8KneiMK0.d.ts.map} +1 -1
  57. package/dist/{client-ip-B8wFzJ5f.js → client-ip-BEmLC4I4.js} +71 -0
  58. package/dist/{client-ip-DIJyr6px.mjs → client-ip-DlHx7GGh.mjs} +61 -2
  59. package/dist/client-ip-DlHx7GGh.mjs.map +1 -0
  60. package/dist/client-ip.d.mts +2 -2
  61. package/dist/client-ip.d.ts +2 -2
  62. package/dist/client-ip.js +3 -1
  63. package/dist/client-ip.mjs +2 -2
  64. package/dist/deploy/index.d.mts +1 -0
  65. package/dist/deploy/index.d.mts.map +1 -1
  66. package/dist/deploy/index.d.ts +1 -0
  67. package/dist/deploy/index.d.ts.map +1 -1
  68. package/dist/deploy/index.js +14 -2
  69. package/dist/deploy/index.mjs +14 -2
  70. package/dist/deploy/index.mjs.map +1 -1
  71. package/dist/{detection-reason-mapping-CQexNvR7.d.ts → detection-reason-mapping-BemDaDED.d.mts} +5 -2
  72. package/dist/detection-reason-mapping-BemDaDED.d.mts.map +1 -0
  73. package/dist/{detection-reason-mapping-CQexNvR7.d.mts → detection-reason-mapping-BemDaDED.d.ts} +5 -2
  74. package/dist/detection-reason-mapping-BemDaDED.d.ts.map +1 -0
  75. package/dist/{detection-reason-mapping-B9RSkOs8.js → detection-reason-mapping-BxYaQ8kb.js} +33 -8
  76. package/dist/{detection-reason-mapping-BGymWIPl.mjs → detection-reason-mapping-j-7bXsVb.mjs} +29 -10
  77. package/dist/detection-reason-mapping-j-7bXsVb.mjs.map +1 -0
  78. package/dist/errors/index.d.mts +4 -0
  79. package/dist/errors/index.d.mts.map +1 -1
  80. package/dist/errors/index.d.ts +4 -0
  81. package/dist/errors/index.d.ts.map +1 -1
  82. package/dist/errors/index.js +24 -8
  83. package/dist/errors/index.mjs +24 -8
  84. package/dist/errors/index.mjs.map +1 -1
  85. package/dist/{fetcher-D2vjr7jB.d.mts → fetcher-CTKz07jg.d.mts} +13 -3
  86. package/dist/fetcher-CTKz07jg.d.mts.map +1 -0
  87. package/dist/{fetcher-C8qvwdnA.d.ts → fetcher-DCr920hx.d.ts} +13 -3
  88. package/dist/fetcher-DCr920hx.d.ts.map +1 -0
  89. package/dist/gateway-client-ip.js +1 -1
  90. package/dist/gateway-client-ip.mjs +1 -1
  91. package/dist/host-adapter/index.d.mts +1 -1
  92. package/dist/host-adapter/index.d.ts +1 -1
  93. package/dist/identity-cookie/index.d.mts +14 -0
  94. package/dist/identity-cookie/index.d.mts.map +1 -0
  95. package/dist/identity-cookie/index.d.ts +14 -0
  96. package/dist/identity-cookie/index.d.ts.map +1 -0
  97. package/dist/identity-cookie/index.js +45 -0
  98. package/dist/identity-cookie/index.mjs +43 -0
  99. package/dist/identity-cookie/index.mjs.map +1 -0
  100. package/dist/{index-DnFsmr_o.d.ts → index-Cdv_FH0H.d.ts} +2 -2
  101. package/dist/{index-DnFsmr_o.d.ts.map → index-Cdv_FH0H.d.ts.map} +1 -1
  102. package/dist/{index-rvw5Bz-r.d.mts → index-DL_dmQBY.d.mts} +2 -2
  103. package/dist/{index-rvw5Bz-r.d.mts.map → index-DL_dmQBY.d.mts.map} +1 -1
  104. package/dist/index.d.mts +641 -169
  105. package/dist/index.d.mts.map +1 -1
  106. package/dist/index.d.ts +641 -169
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +819 -210
  109. package/dist/index.mjs +765 -200
  110. package/dist/index.mjs.map +1 -1
  111. package/dist/kya-http.d.mts +2 -2
  112. package/dist/kya-http.d.ts +2 -2
  113. package/dist/kya-http.js +7 -2
  114. package/dist/kya-http.mjs +2 -2
  115. package/dist/mcpi/dashboard-config/index.mjs.map +1 -1
  116. package/dist/patterns-CdTh7LU2.d.mts +35 -0
  117. package/dist/patterns-CdTh7LU2.d.mts.map +1 -0
  118. package/dist/patterns-CdTh7LU2.d.ts +35 -0
  119. package/dist/patterns-CdTh7LU2.d.ts.map +1 -0
  120. package/dist/{patterns-CiMpbdAF.js → patterns-CnNxRnaK.js} +3 -130
  121. package/dist/{patterns-D4OAsNQY.mjs → patterns-CpRk9R3M.mjs} +5 -96
  122. package/dist/patterns-CpRk9R3M.mjs.map +1 -0
  123. package/dist/patterns.d.mts +2 -2
  124. package/dist/patterns.d.ts +2 -2
  125. package/dist/patterns.js +1 -7
  126. package/dist/patterns.mjs +2 -2
  127. package/dist/policy/fetcher.d.mts +2 -2
  128. package/dist/policy/fetcher.d.ts +2 -2
  129. package/dist/policy/fetcher.js +100 -8
  130. package/dist/policy/fetcher.mjs +99 -9
  131. package/dist/policy/fetcher.mjs.map +1 -1
  132. package/dist/policy/schemas.d.mts +1 -1
  133. package/dist/policy/schemas.d.ts +1 -1
  134. package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs +81 -0
  135. package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs.map +1 -0
  136. package/dist/proxy-assertion-mapping-BxhENrcY.d.mts +70 -0
  137. package/dist/proxy-assertion-mapping-BxhENrcY.d.mts.map +1 -0
  138. package/dist/proxy-assertion-mapping-D64AyZfG.js +85 -0
  139. package/dist/proxy-assertion-mapping-DhAynFqG.d.ts +70 -0
  140. package/dist/proxy-assertion-mapping-DhAynFqG.d.ts.map +1 -0
  141. package/dist/proxy-assertions.d.mts +2 -0
  142. package/dist/proxy-assertions.d.ts +2 -0
  143. package/dist/proxy-assertions.js +4 -0
  144. package/dist/proxy-assertions.mjs +3 -0
  145. package/dist/reason-codes.d.mts +2 -2
  146. package/dist/reason-codes.d.ts +2 -2
  147. package/dist/reason-codes.js +3 -2
  148. package/dist/reason-codes.mjs +2 -2
  149. package/dist/{registered-sid-D6KCaT1E.d.ts → registered-sid-BgDhdj2l.d.mts} +24 -2
  150. package/dist/registered-sid-BgDhdj2l.d.mts.map +1 -0
  151. package/dist/{registered-sid-D6KCaT1E.d.mts → registered-sid-BgDhdj2l.d.ts} +24 -2
  152. package/dist/registered-sid-BgDhdj2l.d.ts.map +1 -0
  153. package/dist/{registered-sid-DVGTSH0L.js → registered-sid-DG1tSSvl.js} +162 -4
  154. package/dist/{registered-sid-26hNxp6t.mjs → registered-sid-D__xiDPu.mjs} +134 -6
  155. package/dist/registered-sid-D__xiDPu.mjs.map +1 -0
  156. package/dist/{schemas-m-GqyfyO.d.mts → schemas-BhC88D1-.d.mts} +5 -5
  157. package/dist/{schemas-m-GqyfyO.d.mts.map → schemas-BhC88D1-.d.mts.map} +1 -1
  158. package/dist/{schemas-CGKHzcMV.d.ts → schemas-DZa1ouGs.d.ts} +5 -5
  159. package/dist/{schemas-CGKHzcMV.d.ts.map → schemas-DZa1ouGs.d.ts.map} +1 -1
  160. package/dist/signals/index.d.mts.map +1 -1
  161. package/dist/signals/index.d.ts.map +1 -1
  162. package/dist/signals/index.js +4 -0
  163. package/dist/signals/index.mjs +4 -0
  164. package/dist/signals/index.mjs.map +1 -1
  165. package/dist/timezone-country-B6PkDyNP.d.mts +15 -0
  166. package/dist/timezone-country-B6PkDyNP.d.mts.map +1 -0
  167. package/dist/timezone-country-B6PkDyNP.d.ts +15 -0
  168. package/dist/timezone-country-B6PkDyNP.d.ts.map +1 -0
  169. package/dist/timezone-country-CROxU2Tl.js +505 -0
  170. package/dist/timezone-country-CrrnkOdy.mjs +489 -0
  171. package/dist/timezone-country-CrrnkOdy.mjs.map +1 -0
  172. package/dist/timezone-country.d.mts +2 -0
  173. package/dist/timezone-country.d.ts +2 -0
  174. package/dist/timezone-country.js +6 -0
  175. package/dist/timezone-country.mjs +3 -0
  176. package/dist/tool-protection/index.mjs.map +1 -1
  177. package/fixtures/detection/cloudflare-alias-parity.json +383 -0
  178. package/fixtures/detection/reason-codes.json +3 -1
  179. package/fixtures/detection/signal-exposure-example.json +1 -1
  180. package/fixtures/iana-tzdata/backward +375 -0
  181. package/fixtures/iana-tzdata/renamed-zones.json +21 -0
  182. package/fixtures/iana-tzdata/version +1 -0
  183. package/fixtures/iana-tzdata/zone.tab +448 -0
  184. package/fixtures/workbench/management-session.v1.json +20 -0
  185. package/fixtures/workbench/model-credentials.v1.json +8 -0
  186. package/fixtures/workbench/task-grant.v1.json +37 -0
  187. package/package.json +25 -3
  188. package/src/data/compiled/merged-rules.json +9 -7
  189. package/dist/browser-posture-5fPrsxx7.d.mts.map +0 -1
  190. package/dist/browser-posture-CCR1kh5e.d.ts.map +0 -1
  191. package/dist/browser-posture-proof-verifier-DvsOmFrM.js +0 -202
  192. package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs +0 -180
  193. package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs.map +0 -1
  194. package/dist/client-ip-DIJyr6px.mjs.map +0 -1
  195. package/dist/detection-reason-mapping-BGymWIPl.mjs.map +0 -1
  196. package/dist/detection-reason-mapping-CQexNvR7.d.mts.map +0 -1
  197. package/dist/detection-reason-mapping-CQexNvR7.d.ts.map +0 -1
  198. package/dist/fetcher-C8qvwdnA.d.ts.map +0 -1
  199. package/dist/fetcher-D2vjr7jB.d.mts.map +0 -1
  200. package/dist/patterns-Bp40cwh2.d.mts +0 -110
  201. package/dist/patterns-Bp40cwh2.d.mts.map +0 -1
  202. package/dist/patterns-Bp40cwh2.d.ts +0 -110
  203. package/dist/patterns-Bp40cwh2.d.ts.map +0 -1
  204. package/dist/patterns-D4OAsNQY.mjs.map +0 -1
  205. package/dist/registered-sid-26hNxp6t.mjs.map +0 -1
  206. package/dist/registered-sid-D6KCaT1E.d.mts.map +0 -1
  207. package/dist/registered-sid-D6KCaT1E.d.ts.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,20 +1,23 @@
1
1
  import { t as __commonJSMin } from "./rolldown-runtime-iY2fYEqi.mjs";
2
2
  import { C as union, D as _coercedDate, E as _coercedBoolean, O as _coercedNumber, S as string, T as ZodError, _ as number$1, a as _instanceof, b as record, c as array, d as discriminatedUnion, h as literal, i as _enum, k as NEVER, l as boolean$1, m as ipv6, n as ZodDate, o as _null, p as ipv4, r as ZodNumber, s as any, t as ZodBoolean, u as date$1, v as object, w as unknown, x as strictObject, y as partialRecord } from "./schemas-IHAhH3gV.mjs";
3
- import { a as DETECTION_REASON_CODES, i as mapDetectionToReasonCodes, n as MAX_REASON_CODES_ON_WIRE, r as formatReasonCodesHeader, t as MAX_REASON_CODES_HEADER_BYTES } from "./detection-reason-mapping-BGymWIPl.mjs";
3
+ import { t as mapProxyAssertions } from "./proxy-assertion-mapping-BVwXVSMZ.mjs";
4
+ import { a as reasonCodeForSignalSource, i as mapDetectionToReasonCodes, n as MAX_REASON_CODES_ON_WIRE, o as DETECTION_REASON_CODES, r as formatReasonCodesHeader, t as MAX_REASON_CODES_HEADER_BYTES } from "./detection-reason-mapping-j-7bXsVb.mjs";
4
5
  import { t as RULESET_HASH_REGEX } from "./ruleset-hash-QQIaLuPi.mjs";
5
6
  import { a as getVerificationRiskLevel, c as isKyaOsWireMethod, i as getVerificationReliability, l as normalizeHandshakeMethod, n as KYA_OS_WIRE_METHODS, o as isHighConfidenceVerification, r as getVerificationMethodDescription, s as isKyaOsHandshakeMethod, t as KYA_OS_HANDSHAKE_METHODS, u as normalizeWireMethod } from "./verification-Cvvv86TT.mjs";
6
7
  import { AGENT_CATALOG } from "./agent-catalog.mjs";
7
- import { a as SUSPICIOUS_PATTERNS, c as VALIDATION_PATTERNS, d as testPattern, f as testPatterns, i as OS_PATTERNS, l as extractMatch, n as HEADER_PATTERNS, o as USER_AGENT_PATTERNS, r as MOBILE_PATTERNS, s as UUID_PATTERN, t as BROWSER_PATTERNS, u as findMatchingPattern } from "./patterns-D4OAsNQY.mjs";
8
+ import { a as testPattern, i as findMatchingPattern, n as VALIDATION_PATTERNS, o as testPatterns, r as extractMatch, t as UUID_PATTERN } from "./patterns-CpRk9R3M.mjs";
8
9
  import { i as validatePostureOrigins, t as isPublicSuffixLike } from "./posture-origins-DGyS4Vuk.mjs";
9
10
  import { C as enumToDetectionClass, D as normalizeDetectionClassEnum, E as normalizeDetectionClass, S as detectionClassToEnum, T as migrateLegacyDetectionClass, _ as acceptsHtml, a as buildDelegationBearerHeader, b as encodeVerdictCookie, c as buildDelegationChallengeHeader, d as generateDelegationSid, f as ACCEPT_CHALLENGE_HEADER, g as classifyResponseShape, h as BLOCKED_PATH, i as buildChallengeWire, l as buildDelegationInstructions, m as serveBodyReadable200, n as resolveChallengeContext, o as buildDelegationChallengeBody, p as selectBodyReadable200, r as ChallengeWireError, s as buildDelegationChallengeEnvelope, t as DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, u as deriveDelegationPickupUri, v as VERDICT_COOKIE_NAME, w as isLegacyDetectionClass, x as resolveBotSignals, y as deriveVerdict } from "./host-adapter-BKdQHwbi.mjs";
10
- import { a as resolveObservedClientAddress, i as resolveClientIp, n as normalizeClientIp, r as parseIpv6, t as compressIpv6 } from "./client-ip-DIJyr6px.mjs";
11
+ import { a as resolveClientIp, i as parseIpv6, n as compressIpv6, o as resolveForwardedChainShadow, r as normalizeClientIp, s as resolveObservedClientAddress, t as compareForwardedChainShadow } from "./client-ip-DlHx7GGh.mjs";
11
12
  import { A as ENFORCEMENT_MODES, C as CONDITION_FIELDS, D as DEFAULT_RULE_PRIORITY, E as DEFAULT_POLICY, O as DEFAULT_THRESHOLDS, S as CACHE_TTL, T as CURRENT_POLICY_VERSION, _ as RedirectTargetSchema, a as ConditionFieldSchema, b as ThresholdConfigSchema, c as DecisionSchema, d as EnforcementModeSchema, f as InstructPayloadSchema, g as PolicyRuleSchema, h as PolicyMetadataSchema, i as ChallengeParamsSchema, k as ENFORCEMENT_ACTIONS, l as DenyListEntrySchema, m as PolicyConfigSchema, n as AssuranceTierSchema, o as ConditionOperatorSchema, p as PolicyConditionSchema, r as BlockReasonSchema, s as ConditionValueSchema, t as AllowListEntrySchema, u as EnforcementActionSchema, v as RuleMetadataSchema, w as CONDITION_OPERATORS, x as safeParsePolicyConfig, y as SuggestedActionSchema } from "./schemas-DPIT8usF.mjs";
12
13
  import { n as normalizeChallengeType, t as isEngineEnforcing } from "./engine-enforcing-B5eNfCpG.mjs";
13
14
  import { A as matchPath, C as NO_EVIDENCE_CATEGORY, D as cedarQuotedValueRegExp, E as withNoEvidenceExclusion, M as FAIL_CLOSED_HEADERS, N as FAIL_CLOSED_STATUS, O as escapeCedarString, S as unnarrowedDenyStatements, T as NO_EVIDENCE_EXCLUSION_TERM, _ as PROBE_CLASSES, a as bespokePolicyLabel, b as statementApplies, c as nonNavigablePolicyLabel, d as ByteBoundedMemo, f as analyzePolicySource, g as splitCedarBlocks, h as pathLiteralsInBlock, i as BESPOKE_POLICY_IDS, j as FAIL_CLOSED_BODY, k as unescapeCedarString, l as decisionPolicyId, m as pathHasUnnarrowedDenyRuleFor, n as approvalQuorumForRequest, o as isBespokePolicyId, p as blockEqualityLiterals, r as BASELINE_ALLOW_POLICY_ID, s as isNonNavigablePolicyId, t as validateStepUpQuorum, u as requiredScopesForRequest, v as lacksBaselinePermit, w as NO_EVIDENCE_EQUALITY_TERM, x as statementId, y as parseCedarStatements } from "./step-up-BK0oBi11.mjs";
14
- import { PolicyFetcher, PolicyUnavailableError, isPolicyUnavailableError } from "./policy/fetcher.mjs";
15
+ import { PolicyAuthError, PolicyFetcher, PolicyUnavailableError, isPolicyAuthError, isPolicyUnavailableError } from "./policy/fetcher.mjs";
15
16
  import { n as KYA_HTTP_ERROR_STATUS, t as KYA_HTTP_ERROR } from "./kya-http-error-codes-DSBrxNry.mjs";
16
- import { a as requestCarriesDelegationProof, i as DELEGATION_PROOF_HEADERS, n as SID_ATTRIBUTABLE_RESULT, o as requestPresentedCredential, r as ANONYMOUS_PRINCIPAL_DID, t as REGISTERED_SID_MAX_LENGTH } from "./registered-sid-26hNxp6t.mjs";
17
+ import { a as KYA_SIGNED_BODY_MAX_BYTES, c as requestCarriesDelegationProof, d as requestPresentsKyaSignature, i as relayedRequestTarget, l as requestDeclaresBody, n as SID_ATTRIBUTABLE_RESULT, o as readBodyBounded, r as ANONYMOUS_PRINCIPAL_DID, s as DELEGATION_PROOF_HEADERS, t as REGISTERED_SID_MAX_LENGTH, u as requestPresentedCredential } from "./registered-sid-D__xiDPu.mjs";
17
18
  import { AUTH_DOMAIN, defaultSignInHost, defaultSignInHostLabel, isDefaultSignInHostLabel, isDnsLabel, isUnderAuthDomain, withoutTrailingDots } from "./default-sign-in-host.mjs";
19
+ import { n as resolveTimezoneCountry, r as TIMEZONE_COUNTRY_MAP, t as checkTimezoneCountryContradiction } from "./timezone-country-CrrnkOdy.mjs";
20
+ import { r as bytesToBase64Url, t as base64UrlToBytes } from "./base64url-D2MvsR20.mjs";
18
21
  import { sha256 } from "@noble/hashes/sha2.js";
19
22
  import { bytesToHex } from "@noble/hashes/utils.js";
20
23
  import * as yaml from "js-yaml";
@@ -82,79 +85,6 @@ const ProxyAssertionSchema = object({
82
85
  fraudProbability: number$1().min(0).max(1).nullable(),
83
86
  proxyClass: _enum(["datacenter", "unknown"]).optional()
84
87
  }).strict();
85
- const knownKinds = /* @__PURE__ */ new Set([
86
- "tor_exit",
87
- "published_vpn_exit",
88
- "observed_proxy",
89
- "suspected_residential_proxy",
90
- "privacy_relay",
91
- "local_tunnel",
92
- "hosting"
93
- ]);
94
- /**
95
- * The default admits only confirmed, current assertions. maxmind_legacy preserves
96
- * existing vendor positives without claiming that its undated optional file is fresh.
97
- * Uncertain evidence never produces a confirmed-clean false Boolean.
98
- */
99
- function mapProxyAssertions(proxyAssertions, nowSeconds, collectionState, compatibility = "confirmed_current") {
100
- const states = [collectionState];
101
- const eligible = [];
102
- for (const assertion of proxyAssertions) {
103
- if (!knownKinds.has(assertion.kind)) {
104
- states.push("unsupported");
105
- continue;
106
- }
107
- states.push(assertion.collectionState);
108
- if (assertion.collectionState !== "current" && assertion.collectionState !== "insufficient_support") {
109
- states.push(assertion.collectionState);
110
- continue;
111
- }
112
- const dated = assertion.observedAt !== null && assertion.expiresAt !== null;
113
- const current = dated && assertion.observedAt <= nowSeconds && assertion.expiresAt > nowSeconds;
114
- if (dated && !current) {
115
- states.push("stale");
116
- continue;
117
- }
118
- const confirmed = assertion.evidenceGrade === "confirmed" && assertion.collectionState === "current" && current;
119
- const legacy = compatibility === "maxmind_legacy" && assertion.source === "maxmind-anonymous-ip" && assertion.evidenceGrade === "vendor_reported" && assertion.collectionState === "insufficient_support" && assertion.observedAt === null && assertion.expiresAt === null;
120
- if (confirmed || legacy) eligible.push(assertion);
121
- else states.push("insufficient_support");
122
- }
123
- for (const assertion of eligible) if (assertion.membership === "present" && eligible.some((other) => other.kind === assertion.kind && other.membership === "absent")) states.push("conflicting");
124
- if (proxyAssertions.length === 0) states.push("insufficient_support");
125
- const proxyCollectionState = [
126
- "conflicting",
127
- "unsupported",
128
- "unavailable",
129
- "stale",
130
- "insufficient_support",
131
- "current"
132
- ].find((state) => states.includes(state));
133
- const blocked = proxyCollectionState !== "current" && proxyCollectionState !== "insufficient_support";
134
- const positive = eligible.filter((assertion) => assertion.membership === "present");
135
- const preferred = [
136
- positive.find((assertion) => assertion.kind === "tor_exit"),
137
- positive.find((assertion) => assertion.kind === "published_vpn_exit"),
138
- positive.find((assertion) => assertion.kind === "suspected_residential_proxy"),
139
- positive.find((assertion) => assertion.kind === "observed_proxy" && assertion.proxyClass === "datacenter"),
140
- positive.find((assertion) => assertion.kind === "observed_proxy")
141
- ].find(Boolean);
142
- const types = {
143
- tor_exit: "tor",
144
- published_vpn_exit: "vpn",
145
- suspected_residential_proxy: "residential_proxy",
146
- observed_proxy: preferred?.proxyClass === "datacenter" ? "datacenter" : "unknown"
147
- };
148
- return {
149
- proxy: !blocked && preferred ? {
150
- isProxy: true,
151
- proxyType: types[preferred.kind],
152
- confidence: preferred.membershipConfidence ?? (preferred.evidenceGrade === "vendor_reported" ? 90 : 0)
153
- } : void 0,
154
- proxyAssertions,
155
- proxyCollectionState
156
- };
157
- }
158
88
 
159
89
  //#endregion
160
90
  //#region src/core/risk-score.ts
@@ -182,8 +112,8 @@ function mapProxyAssertions(proxyAssertions, nowSeconds, collectionState, compat
182
112
  * live-cutover semantics — this module does not change without a matching
183
113
  * decision recorded there.
184
114
  */
185
- /** Wire shape: 0-1, two decimals, `null` when the combiner did not run. */
186
- const RiskScoreSchema = number$1().min(0).max(1).nullable().describe("The Noisy-Or probability that the request is automated (0-1, two decimals), uncalibrated (see riskScoreSource). Null when the combiner did not run (NoisyOrShadowMode.Off, an engine fault, or skipDetection).");
115
+ /** Wire shape: 0-1, two decimals, `null` when no score was computed. */
116
+ const RiskScoreSchema = number$1().min(0).max(1).nullable().describe("How likely the request is to be automated, from 0 to 1 with two decimals; riskScoreSource says whether it is calibrated. Null when no score was computed for the request. Independent of confidence: neither is derived from the other.");
187
117
  /**
188
118
  * Which metadata key `riskScore` was derived from. Always `'uncalibrated'`
189
119
  * today: `riskScoreFromMetadata` reads only `shadow_noisy_or_confidence`,
@@ -194,7 +124,7 @@ const RiskScoreSchema = number$1().min(0).max(1).nullable().describe("The Noisy-
194
124
  * PR makes explicitly (bestbrian, PR #4999); this field exists so that
195
125
  * switch is an observable wire change the day it happens, not a silent one.
196
126
  */
197
- const RiskScoreSourceSchema = _enum(["uncalibrated", "calibrated"]).nullable().describe("Which metadata key riskScore was derived from: 'uncalibrated' (shadow_noisy_or_confidence, the combiner's raw score — always true today) or 'calibrated' (shadow_calibrated_confidence, not yet wired). Null exactly when riskScore is null.");
127
+ const RiskScoreSourceSchema = _enum(["uncalibrated", "calibrated"]).nullable().describe("How riskScore was produced: 'uncalibrated' (a relative score: higher means more likely automated, but it is not an observed frequency) or 'calibrated' (mapped to observed outcomes, so it reads as a probability). Null exactly when riskScore is null.");
198
128
  /** The `detectionDetail.metadata` key `riskScore` derives from. */
199
129
  const SHADOW_NOISY_OR_CONFIDENCE_KEY = "shadow_noisy_or_confidence";
200
130
  /**
@@ -499,6 +429,29 @@ const ProxyTypeSchema = _enum([
499
429
  "residential_proxy",
500
430
  "unknown"
501
431
  ]);
432
+ const ReportedProxyTypeSchema = _enum([
433
+ "vpn",
434
+ "tor",
435
+ "hosting",
436
+ "residential"
437
+ ]);
438
+ const REPORTED_PROXY_TYPE = {
439
+ vpn: "vpn",
440
+ tor: "tor",
441
+ datacenter: "hosting",
442
+ residential_proxy: "residential",
443
+ unknown: void 0
444
+ };
445
+ function reportedProxyType(proxyType) {
446
+ return REPORTED_PROXY_TYPE[proxyType];
447
+ }
448
+ const IpRoutingTypeSchema = _enum([
449
+ "cellular",
450
+ "satellite",
451
+ "datacenter",
452
+ "fixed",
453
+ "anonymizer"
454
+ ]);
502
455
  /**
503
456
  * Host-supplied proxy/anonymization verdict for a request's `trueIp`.
504
457
  * Mirrors the Rust `ProxyInfo` (`rust/crates/kya-os-engine/src/types.rs`).
@@ -511,6 +464,17 @@ const ProxyInfoSchema = object({
511
464
  /** Provider confidence in the proxy verdict, 0-100. */
512
465
  confidence: number$1().int().min(0).max(100)
513
466
  });
467
+ const IpReputationSchema = object({
468
+ attackSource: boolean$1().optional(),
469
+ spamSource: boolean$1().optional(),
470
+ lists: array(string()),
471
+ asOf: number$1().int().positive()
472
+ });
473
+ const IpEventCountsSchema = object({
474
+ lastHour: number$1().int().nonnegative(),
475
+ lastDay: number$1().int().nonnegative(),
476
+ asOf: number$1().int().positive()
477
+ });
514
478
  /**
515
479
  * Host-supplied network / IP-intelligence context for a request's
516
480
  * `trueIp`. Legacy fields mirror the Rust `NetworkContext` and appear on
@@ -531,7 +495,9 @@ const NetworkContextSchema = object({
531
495
  * Older Rust readers do not echo these additive fields.
532
496
  */
533
497
  proxyAssertions: array(ProxyAssertionSchema).optional(),
534
- proxyCollectionState: ProxyCollectionStateSchema.optional()
498
+ proxyCollectionState: ProxyCollectionStateSchema.optional(),
499
+ ipRoutingType: IpRoutingTypeSchema.optional(),
500
+ ipReputation: IpReputationSchema.optional()
535
501
  });
536
502
  /**
537
503
  * Descriptive detection detail from the engine.
@@ -560,14 +526,12 @@ const DetectionDetailSchema = object({
560
526
  */
561
527
  confidence: number$1().min(0).max(100),
562
528
  /**
563
- * P58/PR-A: the Noisy-Or probability that the request is automated
564
- * (0-1, two decimals), uncalibrated (see `riskScoreSource` below).
565
- * `null` when the combiner did not run. See `RiskScoreSchema` /
566
- * `riskScoreFromMetadata` — always additive, never derived from or fed
567
- * back into `confidence` above.
529
+ * How likely the request is to be automated (0-1, two decimals), or
530
+ * `null` when no score was computed. See `RiskScoreSchema` — never
531
+ * derived from or fed back into `confidence` above.
568
532
  */
569
533
  riskScore: RiskScoreSchema.optional(),
570
- /** Which metadata key `riskScore` was derived from. See `RiskScoreSourceSchema`. */
534
+ /** Whether `riskScore` is calibrated. See `RiskScoreSourceSchema`. */
571
535
  riskScoreSource: RiskScoreSourceSchema.optional(),
572
536
  detectionClass: DetectionClassSchema,
573
537
  confidenceLevel: _enum([
@@ -1114,6 +1078,26 @@ const VerdictEvidenceSchema = object({
1114
1078
  function signalContribution(signal) {
1115
1079
  return signal.weight * (signal.confidence / 100);
1116
1080
  }
1081
+ const SCANNER_MISCLASSIFICATION_HINT_SOURCE = "scanner_misclassification_hint";
1082
+ const CLOUDFLARE_BOT_MANAGEMENT_SOURCE = "transport.cloudflare_bot_management";
1083
+ function cloudflareBotScore(signal) {
1084
+ const score = signal.metadata?.cf_bot_score;
1085
+ return typeof score === "number" && Number.isInteger(score) && score >= 0 ? score : void 0;
1086
+ }
1087
+ function cloudflareRootScores(signals) {
1088
+ const scores = /* @__PURE__ */ new Set();
1089
+ for (const signal of signals) {
1090
+ if (signal.source !== CLOUDFLARE_BOT_MANAGEMENT_SOURCE) continue;
1091
+ const score = cloudflareBotScore(signal);
1092
+ if (score !== void 0) scores.add(score);
1093
+ }
1094
+ return scores;
1095
+ }
1096
+ function isAliasedCloudflareHint(signal, rootScores) {
1097
+ if (signal.source !== SCANNER_MISCLASSIFICATION_HINT_SOURCE) return false;
1098
+ const score = cloudflareBotScore(signal);
1099
+ return score !== void 0 && rootScores.has(score);
1100
+ }
1117
1101
  /**
1118
1102
  * Builds the verdict's evidence list from the engine's raw detection
1119
1103
  * signals — allow or block, live or shadow, persisted or not: this is a
@@ -1136,18 +1120,18 @@ function signalContribution(signal) {
1136
1120
  */
1137
1121
  function buildVerdictEvidence(signals) {
1138
1122
  if (!signals || signals.length === 0) return [];
1139
- const entries = [];
1123
+ const parsedSignals = [];
1140
1124
  for (const raw of signals) {
1141
1125
  const parsed = DetectionSignalSchema.safeParse(raw);
1142
- if (!parsed.success) continue;
1143
- const signal = parsed.data;
1144
- entries.push({
1145
- signal: signal.source,
1146
- plane: signal.signalType,
1147
- weight: signal.weight,
1148
- probabilityContribution: signalContribution(signal)
1149
- });
1126
+ if (parsed.success) parsedSignals.push(parsed.data);
1150
1127
  }
1128
+ const rootScores = cloudflareRootScores(parsedSignals);
1129
+ const entries = parsedSignals.map((signal) => ({
1130
+ signal: signal.source,
1131
+ plane: signal.signalType,
1132
+ weight: signal.weight,
1133
+ probabilityContribution: isAliasedCloudflareHint(signal, rootScores) ? 0 : signalContribution(signal)
1134
+ }));
1151
1135
  entries.sort((a, b) => {
1152
1136
  if (a.plane !== b.plane) return a.plane < b.plane ? -1 : 1;
1153
1137
  if (a.signal !== b.signal) return a.signal < b.signal ? -1 : 1;
@@ -1691,57 +1675,6 @@ const SUSPICIOUS_HEADERS = {
1691
1675
  //#endregion
1692
1676
  //#region src/constants/bots.ts
1693
1677
  /**
1694
- * Traditional Bot Constants and Types
1695
- *
1696
- * These are NON-AI bots like search engines, crawlers, and SEO tools.
1697
- * AI agents (Claude, GPT, etc.) should be in agents.ts
1698
- */
1699
- /**
1700
- * Traditional bot types (not AI agents)
1701
- */
1702
- const BotTypeSchema = _enum([
1703
- "search_engine",
1704
- "social_media",
1705
- "seo_tool",
1706
- "crawler",
1707
- "scraper",
1708
- "monitoring",
1709
- "security_scanner",
1710
- "unknown_bot"
1711
- ]);
1712
- /**
1713
- * Trusted traditional bots that can be cached
1714
- * These are well-known, legitimate bots with stable patterns
1715
- * NOT for AI agents - those should never be cached
1716
- */
1717
- const TRUSTED_BOTS = [
1718
- "googlebot",
1719
- "bingbot",
1720
- "slurp",
1721
- "duckduckbot",
1722
- "baiduspider",
1723
- "yandexbot",
1724
- "applebot",
1725
- "facebookexternalhit",
1726
- "twitterbot",
1727
- "linkedinbot",
1728
- "whatsapp",
1729
- "semrushbot",
1730
- "ahrefsbot",
1731
- "mj12bot",
1732
- "dotbot"
1733
- ];
1734
- /**
1735
- * Bot pattern for traditional bot matching
1736
- */
1737
- const BotPatternSchema = object({
1738
- id: string(),
1739
- type: BotTypeSchema,
1740
- name: string(),
1741
- patterns: array(string()),
1742
- confidence: number$1().min(0).max(1).default(.8)
1743
- });
1744
- /**
1745
1678
  * Traditional bot patterns.
1746
1679
  *
1747
1680
  * NAME VOCABULARY: `name` MUST be the detection engine's pattern name — the
@@ -1836,21 +1769,6 @@ const TRADITIONAL_BOT_PATTERNS = [
1836
1769
  confidence: .7
1837
1770
  }
1838
1771
  ];
1839
- /**
1840
- * Check if a user agent is a traditional bot (not AI agent)
1841
- */
1842
- function isTraditionalBot(userAgent) {
1843
- const lowerUA = userAgent.toLowerCase();
1844
- return TRUSTED_BOTS.some((bot) => lowerUA.includes(bot));
1845
- }
1846
- /**
1847
- * Get bot type from user agent
1848
- */
1849
- function getBotType(userAgent) {
1850
- const lowerUA = userAgent.toLowerCase();
1851
- for (const pattern of TRADITIONAL_BOT_PATTERNS) if (pattern.patterns.some((p) => lowerUA.includes(p.toLowerCase()))) return pattern.type;
1852
- return null;
1853
- }
1854
1772
 
1855
1773
  //#endregion
1856
1774
  //#region src/constants/delegation.ts
@@ -1993,7 +1911,8 @@ const INTERNAL_ERRORS = {
1993
1911
  TRANSACTION_FAILED: "TRANSACTION_FAILED",
1994
1912
  DELETE_FAILED: "DELETE_FAILED",
1995
1913
  PARTITION_RETIREMENT_IN_PROGRESS: "PARTITION_RETIREMENT_IN_PROGRESS",
1996
- FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED"
1914
+ FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED",
1915
+ REQUEST_TIMEOUT: "REQUEST_TIMEOUT"
1997
1916
  };
1998
1917
  /**
1999
1918
  * Session Error Codes
@@ -2032,7 +1951,8 @@ const API_ERRORS = {
2032
1951
  CONTENT_TYPE_NOT_SUPPORTED: "API_CONTENT_TYPE_NOT_SUPPORTED",
2033
1952
  RESPONSE_TOO_LARGE: "API_RESPONSE_TOO_LARGE",
2034
1953
  REQUEST_TOO_LARGE: "API_REQUEST_TOO_LARGE",
2035
- ENDPOINT_RETIRED: "API_ENDPOINT_RETIRED"
1954
+ ENDPOINT_RETIRED: "API_ENDPOINT_RETIRED",
1955
+ VERDICT_NOT_STORED: "VERDICT_NOT_STORED"
2036
1956
  };
2037
1957
  /**
2038
1958
  * Billing Error Codes
@@ -2152,6 +2072,7 @@ const BOUNCER_LOWERCASE_ERRORS = {
2152
2072
  LOWERCASE_PROOF_VALIDATION_ERROR: "proof_validation_error",
2153
2073
  LOWERCASE_INSUFFICIENT_SCOPES: "insufficient_scopes",
2154
2074
  LOWERCASE_DELEGATION_VALIDATION_ERROR: "delegation_validation_error",
2075
+ LOWERCASE_AUTHORIZATION_TOO_WEAK: "authorization_too_weak",
2155
2076
  GRANT_PREDATES_ISSUANCE_CORE: "grant_predates_issuance_core",
2156
2077
  LOWERCASE_INVALID_HTTP_REGISTRATION: "invalid_http_registration",
2157
2078
  LOWERCASE_POLICY_REVISION_MISMATCH: "policy_revision_mismatch",
@@ -2161,11 +2082,15 @@ const BOUNCER_LOWERCASE_ERRORS = {
2161
2082
  /**
2162
2083
  * Delegation OAuth Error Codes (lower-case wire format)
2163
2084
  *
2164
- * Emitted by the bouncer authorize, oauth/start, oauth/callback and
2165
- * oauth/token routes and the shared OAuth rate limiter. Several reuse RFC
2166
- * 6749 vocabulary (`invalid_request`, `invalid_grant`,
2167
- * `unsupported_grant_type`) but travel in the bouncer `{success, error}`
2168
- * envelope, not an RFC 6749 body. Keyed by value with a LOWERCASE_ prefix.
2085
+ * Emitted by the bouncer v1 routes (authorize, the OAuth and credential
2086
+ * starts, the OAuth callback, sessions and delegations) and the shared OAuth
2087
+ * rate limiter. Several reuse RFC 6749 vocabulary (`invalid_request`,
2088
+ * `invalid_grant`) but travel in the bouncer `{success, error}` envelope,
2089
+ * not an RFC 6749 body. Keyed by value with a LOWERCASE_ prefix.
2090
+ *
2091
+ * `unsupported_grant_type` and `invalid_delegation` belonged to the bouncer
2092
+ * `oauth/token` code exchange, which is gone; nothing emits them, and they
2093
+ * stay published until a deprecation removes them.
2169
2094
  */
2170
2095
  const OAUTH_LOWERCASE_ERRORS = {
2171
2096
  LOWERCASE_INVALID_REQUEST: "invalid_request",
@@ -2210,6 +2135,7 @@ const AUDIT_ERRORS = {
2210
2135
  AUDIT_CREDENTIAL_REQUIRED: "AUDIT_CREDENTIAL_REQUIRED",
2211
2136
  AUDIT_REQUEST_TOO_LARGE: "AUDIT_REQUEST_TOO_LARGE",
2212
2137
  AUDIT_INVALID_JSON: "AUDIT_INVALID_JSON",
2138
+ AUDIT_REQUEST_TIMEOUT: "AUDIT_REQUEST_TIMEOUT",
2213
2139
  AUDIT_INVALID_CREDENTIAL: "AUDIT_INVALID_CREDENTIAL",
2214
2140
  AUDIT_RATE_LIMITED: "AUDIT_RATE_LIMITED",
2215
2141
  AUDIT_INVALID_SUBMISSION: "AUDIT_INVALID_SUBMISSION",
@@ -2408,6 +2334,7 @@ const ERROR_MESSAGES = {
2408
2334
  [INTERNAL_ERRORS.DELETE_FAILED]: "Failed to delete project",
2409
2335
  [INTERNAL_ERRORS.PARTITION_RETIREMENT_IN_PROGRESS]: "The project data is being archived. Retry shortly.",
2410
2336
  [INTERNAL_ERRORS.FLY_CLEANUP_FAILED]: "Couldn't stop a managed agent's machine, so the delete was refused. Retry the delete.",
2337
+ [INTERNAL_ERRORS.REQUEST_TIMEOUT]: "The request body did not arrive in time",
2411
2338
  [SESSION_ERRORS.SESSION_NOT_FOUND]: "Session not found",
2412
2339
  [SESSION_ERRORS.SESSION_EXPIRED]: "Session has expired",
2413
2340
  [SESSION_ERRORS.SESSION_INVALID]: "Session is invalid",
@@ -2432,6 +2359,7 @@ const ERROR_MESSAGES = {
2432
2359
  [API_ERRORS.RESPONSE_TOO_LARGE]: "Response exceeds maximum size",
2433
2360
  [API_ERRORS.REQUEST_TOO_LARGE]: "Request exceeds maximum size",
2434
2361
  [API_ERRORS.ENDPOINT_RETIRED]: "This endpoint has been retired",
2362
+ [API_ERRORS.VERDICT_NOT_STORED]: "The verdict could not be stored",
2435
2363
  [BILLING_ERRORS.LIMIT_EXCEEDED]: "Billing limit exceeded",
2436
2364
  [BILLING_ERRORS.BILLING_SUSPENDED]: "Account billing suspended",
2437
2365
  [BILLING_ERRORS.BILLING_GRACE_PERIOD]: "Account in billing grace period",
@@ -2488,6 +2416,7 @@ const ERROR_MESSAGES = {
2488
2416
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_PROOF_VALIDATION_ERROR]: "Proof validation failed",
2489
2417
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_INSUFFICIENT_SCOPES]: "Missing required scopes",
2490
2418
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_DELEGATION_VALIDATION_ERROR]: "Delegation validation failed",
2419
+ [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_AUTHORIZATION_TOO_WEAK]: "A tool these scopes open needs a sign-in, so a consent-only grant cannot open it",
2491
2420
  [BOUNCER_LOWERCASE_ERRORS.GRANT_PREDATES_ISSUANCE_CORE]: "The grant predates the issuance core; authorize again",
2492
2421
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_INVALID_HTTP_REGISTRATION]: "Invalid or unsupported native HTTP registration",
2493
2422
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_POLICY_REVISION_MISMATCH]: "The registered tool protection revision is not the one served to this project",
@@ -2518,6 +2447,7 @@ const ERROR_MESSAGES = {
2518
2447
  [AUDIT_ERRORS.AUDIT_CREDENTIAL_REQUIRED]: "A source-bound audit ingest credential is required",
2519
2448
  [AUDIT_ERRORS.AUDIT_REQUEST_TOO_LARGE]: "Audit submission exceeds 6291456 bytes",
2520
2449
  [AUDIT_ERRORS.AUDIT_INVALID_JSON]: "Request body must be valid JSON",
2450
+ [AUDIT_ERRORS.AUDIT_REQUEST_TIMEOUT]: "Audit submission body did not arrive in time",
2521
2451
  [AUDIT_ERRORS.AUDIT_INVALID_CREDENTIAL]: "Invalid audit ingest credential",
2522
2452
  [AUDIT_ERRORS.AUDIT_RATE_LIMITED]: "Audit ingest rate limit exceeded",
2523
2453
  [AUDIT_ERRORS.AUDIT_INVALID_SUBMISSION]: "Invalid audit recorder submission envelope",
@@ -2651,6 +2581,7 @@ const ERROR_STATUS_CODES = {
2651
2581
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_FORBIDDEN]: 403,
2652
2582
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_AGENT_DENIED]: 403,
2653
2583
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_INSUFFICIENT_SCOPES]: 403,
2584
+ [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_AUTHORIZATION_TOO_WEAK]: 403,
2654
2585
  [BOUNCER_LOWERCASE_ERRORS.GRANT_PREDATES_ISSUANCE_CORE]: 409,
2655
2586
  [BOUNCER_LOWERCASE_ERRORS.LOWERCASE_POLICY_REVISION_MISMATCH]: 409,
2656
2587
  [AUDIT_PROTOCOL_ERRORS.AUDIT_UNAUTHORIZED_SUBMISSION]: 403,
@@ -2694,6 +2625,8 @@ const ERROR_STATUS_CODES = {
2694
2625
  [GATEWAY_VAULT_ERRORS.CREDENTIALS_NOT_CONFIGURED]: 404,
2695
2626
  [VAULT_ERRORS.NO_AGENT_KEY]: 404,
2696
2627
  [API_ERRORS.METHOD_NOT_ALLOWED]: 405,
2628
+ [AUDIT_ERRORS.AUDIT_REQUEST_TIMEOUT]: 408,
2629
+ [INTERNAL_ERRORS.REQUEST_TIMEOUT]: 408,
2697
2630
  [RESOURCE_ERRORS.CONFLICT]: 409,
2698
2631
  [AUDIT_PROTOCOL_ERRORS.AUDIT_LEDGER_MISMATCH]: 409,
2699
2632
  [AUDIT_PROTOCOL_ERRORS.AUDIT_EPOCH_MISMATCH]: 409,
@@ -2758,7 +2691,8 @@ const ERROR_STATUS_CODES = {
2758
2691
  [AUDIT_PROTOCOL_ERRORS.AUDIT_APPEND_CONFLICT_EXHAUSTED]: 503,
2759
2692
  [KYAOS_PROTOCOL_ERRORS.KYAOS_SLASH_AUTHORIZATION_HOST_UNAVAILABLE]: 503,
2760
2693
  [KYAOS_PROTOCOL_ERRORS.KYAOS_SLASH_POLICY_UNAVAILABLE]: 503,
2761
- [NETWORK_ERRORS.TIMEOUT]: 504
2694
+ [NETWORK_ERRORS.TIMEOUT]: 504,
2695
+ [API_ERRORS.VERDICT_NOT_STORED]: 504
2762
2696
  };
2763
2697
  /**
2764
2698
  * Create a standardized error object
@@ -2905,6 +2839,23 @@ const DETECTION_LIMITS = {
2905
2839
  cacheTTL: 3600,
2906
2840
  maxConcurrentDetections: 1e3
2907
2841
  };
2842
+ const DETECTION_REQUEST_LIMITS = {
2843
+ userAgent: 2048,
2844
+ url: 8192,
2845
+ method: 16,
2846
+ requestId: 128,
2847
+ headerCount: 100,
2848
+ headerName: 256,
2849
+ headerValue: 8192,
2850
+ /** All header names and values together, in characters. */
2851
+ headerBytes: 32768,
2852
+ /** Entries in each behavioral event array. */
2853
+ behavioralEvents: 2e3,
2854
+ /** A keyboard event's `key`; a DOM key value is a few dozen characters at most. */
2855
+ eventKey: 64,
2856
+ /** A click event's `target`. */
2857
+ eventTarget: 1024
2858
+ };
2908
2859
  /**
2909
2860
  * Database Limits
2910
2861
  */
@@ -3240,14 +3191,22 @@ const BehavioralAnalysisSchema = object({
3240
3191
  * API request schemas
3241
3192
  */
3242
3193
  /**
3243
- * Detection API request
3194
+ * Detection API request. Only `method`, which the caller sets, is capped here.
3195
+ * Every other field is relayed from the visitor's request or browser, and each
3196
+ * route that takes it applies its own size limits:
3197
+ * - `/api/v1/detect` refuses a relayed field over its limit with 400
3198
+ * (`DetectRequestLimitsSchema`, apps/web/app/api/v1/detect/limits.ts).
3199
+ * - `/api/v1/verdict`, which takes `behavioralData` and `options` from this
3200
+ * schema, cuts an over-limit value and reports the cut.
3201
+ * The enforce routes (`/api/v1/enforce` and the gateway's `/__detect/enforce`)
3202
+ * take a request of their own and never refuse a relayed field for its size.
3244
3203
  */
3245
3204
  const DetectionRequestSchema = object({
3246
3205
  userAgent: string(),
3247
3206
  ipAddress: string().optional(),
3248
3207
  headers: record(string(), string()).optional(),
3249
3208
  url: string().optional(),
3250
- method: string().optional(),
3209
+ method: string().max(DETECTION_REQUEST_LIMITS.method).optional(),
3251
3210
  behavioralData: BehavioralDataSchema.optional(),
3252
3211
  options: object({
3253
3212
  mode: _enum([
@@ -3461,6 +3420,8 @@ const ClientDetectionSchema = object({
3461
3420
  keyDwellCount: number$1().optional(),
3462
3421
  keyDwellUnder5: number$1().optional(),
3463
3422
  keyDwellSumMs: number$1().optional(),
3423
+ keyDwellCongested: number$1().int().nonnegative().optional(),
3424
+ keyDwellStampFlat: number$1().int().nonnegative().optional(),
3464
3425
  keyGapCount: number$1().optional(),
3465
3426
  keyGapUnder5: number$1().optional(),
3466
3427
  pressCount: number$1().optional(),
@@ -3468,6 +3429,8 @@ const ClientDetectionSchema = object({
3468
3429
  pressAdjacentUnder5: number$1().int().nonnegative().optional(),
3469
3430
  pressUnder10: number$1().optional(),
3470
3431
  pressSumMs: number$1().optional(),
3432
+ pressCongested: number$1().int().nonnegative().optional(),
3433
+ pressStampFlat: number$1().int().nonnegative().optional(),
3471
3434
  mouseClicks: number$1().optional(),
3472
3435
  zeroTrailClicks: number$1().optional(),
3473
3436
  kinematicsVersion: number$1().optional(),
@@ -5143,7 +5106,8 @@ const KNOWN_PATTERN_BY_NAME_OR_ID = buildKnownPatternLookup(KNOWN_AGENT_PATTERNS
5143
5106
  * {@link TrafficTaxonomyBucket}. An unidentified agent (`agent_type` null,
5144
5107
  * stored as 'Unknown' by the rollup) falls to the class fallback, so an
5145
5108
  * `ai_agent`-classed unidentified row counts as an AI agent and a
5146
- * `bot`-classed one as other automation.
5109
+ * `bot`-classed one as other automation. Never `unidentified`: that bucket
5110
+ * is what remains of a total once every classified row is counted.
5147
5111
  */
5148
5112
  function classifyAgentTaxonomy(agentType, detectionClass) {
5149
5113
  if (detectionClass === "human") return "human";
@@ -5195,6 +5159,134 @@ const UserSchema = object({
5195
5159
  createdAt: date$1(),
5196
5160
  updatedAt: date$1()
5197
5161
  });
5162
+ const RequestFlagLabelMatrixEntrySchema = object({
5163
+ flag: string().min(1).max(64),
5164
+ clientId: string().min(1).max(128).optional(),
5165
+ tier: string().min(1).max(64).optional(),
5166
+ label: boolean$1(),
5167
+ weight: number$1().int().min(0).max(100).optional(),
5168
+ minAccountAddresses: number$1().int().min(1).max(16).optional()
5169
+ });
5170
+ const RequestFlagLabelMatrixSchema = array(RequestFlagLabelMatrixEntrySchema).max(100);
5171
+ const REQUEST_LABELLING_FLAGS = [
5172
+ "page_load_on_json_post",
5173
+ "client_hint_contradiction",
5174
+ "upgrade_insecure_requests_on_json_post",
5175
+ "account_network_rotation",
5176
+ "account_impossible_travel",
5177
+ "pre_zstd_headers_on_modern_chrome",
5178
+ "grease_brand_mismatch",
5179
+ "bare_product_agent_template",
5180
+ "missing_ua_gzip_chrome",
5181
+ "gzip_only_hinted_chrome",
5182
+ "zh_cn_cross_site_windows_chrome",
5183
+ "country_spread",
5184
+ "old_chrome",
5185
+ "shared_network",
5186
+ "minute_aligned",
5187
+ "account_hour_volume",
5188
+ "account_convicted",
5189
+ "network_convicted",
5190
+ "no_human_proof",
5191
+ "device_type_contradiction",
5192
+ "pool_address",
5193
+ "ip_convicted",
5194
+ "account_many_apps",
5195
+ "account_rapid_country_rotation",
5196
+ "account_many_countries",
5197
+ "gzip_only_browser_with_evidence",
5198
+ "account_three_state",
5199
+ "account_two_jump",
5200
+ "shared_clock_slot",
5201
+ "stable_minute_offset",
5202
+ "aligned_minute_batch",
5203
+ "chrome_without_hints_or_language_on_hosting",
5204
+ "stale_safari_16_business_hosting",
5205
+ "library_ua_on_web_client",
5206
+ "automation_ua_on_web_client",
5207
+ "truncated_browser_ua",
5208
+ "safari_without_priority_business_hosting",
5209
+ "mobile_app_new_account_abroad",
5210
+ "team_trial_new_account",
5211
+ "round_the_clock",
5212
+ "many_templates",
5213
+ "template_minute_arc",
5214
+ "linked_rare_header",
5215
+ "app_ua_on_web",
5216
+ "session_age_96h",
5217
+ "signup_cohort_abroad",
5218
+ "wave_template_young_account",
5219
+ "guest_scatter",
5220
+ "ua_new",
5221
+ "ua_young",
5222
+ "email_fan"
5223
+ ];
5224
+ const REQUEST_FLAG_KINDS = [
5225
+ "behaviour",
5226
+ "header-template",
5227
+ "address"
5228
+ ];
5229
+ const REQUEST_LABELLING_FLAG_KINDS = {
5230
+ page_load_on_json_post: "header-template",
5231
+ client_hint_contradiction: "header-template",
5232
+ upgrade_insecure_requests_on_json_post: "header-template",
5233
+ account_network_rotation: "behaviour",
5234
+ account_impossible_travel: "behaviour",
5235
+ pre_zstd_headers_on_modern_chrome: "header-template",
5236
+ grease_brand_mismatch: "header-template",
5237
+ bare_product_agent_template: "header-template",
5238
+ missing_ua_gzip_chrome: "header-template",
5239
+ zh_cn_cross_site_windows_chrome: "header-template",
5240
+ country_spread: "behaviour",
5241
+ old_chrome: "header-template",
5242
+ shared_network: "behaviour",
5243
+ minute_aligned: "behaviour",
5244
+ account_convicted: "behaviour",
5245
+ network_convicted: "behaviour",
5246
+ no_human_proof: "behaviour",
5247
+ device_type_contradiction: "header-template",
5248
+ pool_address: "address",
5249
+ ip_convicted: "address",
5250
+ account_many_apps: "address",
5251
+ account_rapid_country_rotation: "behaviour",
5252
+ account_many_countries: "behaviour",
5253
+ account_hour_volume: "behaviour",
5254
+ gzip_only_browser_with_evidence: "address",
5255
+ account_three_state: "behaviour",
5256
+ account_two_jump: "behaviour",
5257
+ shared_clock_slot: "behaviour",
5258
+ stable_minute_offset: "behaviour",
5259
+ aligned_minute_batch: "behaviour",
5260
+ chrome_without_hints_or_language_on_hosting: "header-template",
5261
+ gzip_only_hinted_chrome: "header-template",
5262
+ stale_safari_16_business_hosting: "header-template",
5263
+ library_ua_on_web_client: "header-template",
5264
+ automation_ua_on_web_client: "header-template",
5265
+ truncated_browser_ua: "header-template",
5266
+ safari_without_priority_business_hosting: "header-template",
5267
+ mobile_app_new_account_abroad: "behaviour",
5268
+ team_trial_new_account: "behaviour",
5269
+ round_the_clock: "behaviour",
5270
+ many_templates: "behaviour",
5271
+ template_minute_arc: "behaviour",
5272
+ linked_rare_header: "behaviour",
5273
+ app_ua_on_web: "header-template",
5274
+ session_age_96h: "behaviour",
5275
+ signup_cohort_abroad: "behaviour",
5276
+ wave_template_young_account: "behaviour",
5277
+ guest_scatter: "behaviour",
5278
+ ua_new: "behaviour",
5279
+ ua_young: "behaviour",
5280
+ email_fan: "behaviour"
5281
+ };
5282
+ const RequestFlagLabelMatrixWriteSchema = array(RequestFlagLabelMatrixEntrySchema.extend({ flag: _enum(REQUEST_LABELLING_FLAGS) }).refine(({ flag, clientId, label }) => clientId === void 0 || label || REQUEST_LABELLING_FLAG_KINDS[flag] !== "behaviour", {
5283
+ path: ["flag"],
5284
+ error: "a client-scoped label:false entry does not apply to behaviour flags"
5285
+ })).max(100);
5286
+ const EventCountLimitsSettingSchema = object({
5287
+ lastHour: number$1().int().nonnegative().optional(),
5288
+ lastDay: number$1().int().nonnegative().optional()
5289
+ });
5198
5290
  /**
5199
5291
  * Project Settings
5200
5292
  */
@@ -5209,6 +5301,17 @@ const ProjectSettingsSchema = object({
5209
5301
  webhookUrl: string().url().optional(),
5210
5302
  webhookSecret: string().optional(),
5211
5303
  beaconRateLimitPerMinute: number$1().int().positive().optional(),
5304
+ rateLimitExempt: boolean$1().optional(),
5305
+ requestFlagLabel: boolean$1().optional(),
5306
+ requestFlagTwoJumpShadow: boolean$1().optional(),
5307
+ requestFlagOwnClients: array(string().min(1)).max(100).optional(),
5308
+ requestFlagWebClients: array(string().min(1)).max(100).optional(),
5309
+ requestFlagSizedClients: array(string().min(1)).max(100).optional(),
5310
+ requestFlagControlClients: array(string().min(1)).max(100).optional(),
5311
+ requestFlagBrowserRelayClients: array(string().min(1)).max(100).optional(),
5312
+ requestFlagMobileAppClients: array(string().min(1)).max(100).optional(),
5313
+ requestFlagLabelMatrix: RequestFlagLabelMatrixSchema.optional(),
5314
+ eventCountLimits: EventCountLimitsSettingSchema.optional(),
5212
5315
  postureOrigins: array(string()).optional(),
5213
5316
  postureReportPaths: array(string()).optional(),
5214
5317
  beaconIngestMode: _enum(["origin", "worker"]).optional()
@@ -5562,7 +5665,6 @@ const OAuth2ProviderSchema = BaseAuthProviderSchema.extend({
5562
5665
  *
5563
5666
  * Supports:
5564
5667
  * - JSON token responses (JWT, Bearer tokens)
5565
- * - Cookie-based sessions (like HardwareWorld)
5566
5668
  * - Custom response validation
5567
5669
  */
5568
5670
  const CredentialProviderSchema = BaseAuthProviderSchema.extend({
@@ -5596,8 +5698,8 @@ const CredentialProviderSchema = BaseAuthProviderSchema.extend({
5596
5698
  apiHeaders: record(string(), string()).optional(),
5597
5699
  consentOverrides: object({
5598
5700
  branding: object({
5599
- primaryColor: string().regex(hexColorRegex, "Color must be a valid hex color (e.g., #2563EB)").optional(),
5600
- secondaryColor: string().regex(hexColorRegex, "Color must be a valid hex color (e.g., #DBEAFE)").optional(),
5701
+ primaryColor: string().regex(hexColorRegex, "Color must be a valid hex color in #RRGGBB form").optional(),
5702
+ secondaryColor: string().regex(hexColorRegex, "Color must be a valid hex color in #RRGGBB form").optional(),
5601
5703
  logoUrl: httpUrlSchema(500).optional(),
5602
5704
  companyName: string().max(255).optional(),
5603
5705
  theme: _enum([
@@ -5662,16 +5764,34 @@ const CRISPBudgetSchema = object({
5662
5764
  /**
5663
5765
  * Consent Branding Configuration
5664
5766
  */
5767
+ /**
5768
+ * An optional consent page colour, `#rrggbb` like the primary and secondary,
5769
+ * with the same error. The error names the form, not an example colour, so
5770
+ * the schema holds no colour literal.
5771
+ */
5772
+ const pageColorSchema = () => string().regex(hexColorRegex, "Color must be a valid hex color in #RRGGBB form").optional();
5665
5773
  const ConsentBrandingSchema = object({
5666
- primaryColor: string().regex(hexColorRegex, "Color must be a valid hex color (e.g., #2563EB)").optional(),
5667
- secondaryColor: string().regex(hexColorRegex, "Color must be a valid hex color (e.g., #DBEAFE)").optional(),
5774
+ primaryColor: string().regex(hexColorRegex, "Color must be a valid hex color in #RRGGBB form").optional(),
5775
+ secondaryColor: string().regex(hexColorRegex, "Color must be a valid hex color in #RRGGBB form").optional(),
5668
5776
  logoUrl: httpUrlSchema(500).optional(),
5669
5777
  companyName: string().max(255).optional(),
5670
5778
  theme: _enum([
5671
5779
  "light",
5672
5780
  "dark",
5673
5781
  "auto"
5674
- ]).optional()
5782
+ ]).optional(),
5783
+ /** The card the page draws its steps on. */
5784
+ surfaceColor: pageColorSchema(),
5785
+ /** The panels inside the card: the grant notice and the boxes of facts. */
5786
+ panelColor: pageColorSchema(),
5787
+ /** The lines around the card and its panels. */
5788
+ borderColor: pageColorSchema(),
5789
+ /** The page's text. */
5790
+ textColor: pageColorSchema(),
5791
+ /** The quieter text: labels and notes. */
5792
+ mutedTextColor: pageColorSchema(),
5793
+ /** The keyboard focus ring. */
5794
+ focusColor: pageColorSchema()
5675
5795
  });
5676
5796
  /**
5677
5797
  * Consent Terms Configuration
@@ -5820,10 +5940,20 @@ const MAX_SCOPE_LABELS = 50;
5820
5940
  * scope grantable (`allowedScopesFor` does not read it) and carries no Cedar.
5821
5941
  */
5822
5942
  const ConsentScopeLabelsSchema = record(string().min(1).max(120), string().min(1).max(80)).refine((labels) => Object.keys(labels).length <= MAX_SCOPE_LABELS, `At most ${MAX_SCOPE_LABELS} scope labels`);
5943
+ /** A consent policy names a handful of assurance providers; this only bounds the stored map. */
5944
+ const MAX_ASSURANCE_NOTES = 20;
5945
+ /**
5946
+ * The brand's words for what a permission's check involves, keyed by the
5947
+ * assurance provider id (`registry:fr-rpps`). A project that chooses
5948
+ * permissions before checks shows it on the row before the check runs. Copy
5949
+ * only: it never adds, removes or orders a check.
5950
+ */
5951
+ const ConsentAssuranceNotesSchema = record(string().min(1).max(80), string().min(1).max(120)).refine((notes) => Object.keys(notes).length <= MAX_ASSURANCE_NOTES, `At most ${MAX_ASSURANCE_NOTES} assurance notes`);
5823
5952
  /**
5824
5953
  * Full Consent Configuration
5825
5954
  */
5826
5955
  const ConsentConfigSchema = object({
5956
+ chooseThenProveEnabled: boolean$1().optional(),
5827
5957
  branding: ConsentBrandingSchema.optional(),
5828
5958
  terms: ConsentTermsSchema.optional(),
5829
5959
  ui: ConsentUISchema.optional(),
@@ -5839,7 +5969,8 @@ const ConsentConfigSchema = object({
5839
5969
  inactivityDays: number$1().int().min(1).max(3650).optional(),
5840
5970
  authorizationHost: string().min(1).max(255).optional(),
5841
5971
  signInCopy: ConsentSignInCopySchema.optional(),
5842
- scopeLabels: ConsentScopeLabelsSchema.optional()
5972
+ scopeLabels: ConsentScopeLabelsSchema.optional(),
5973
+ assuranceNotes: ConsentAssuranceNotesSchema.optional()
5843
5974
  });
5844
5975
  /**
5845
5976
  * Bouncer Config (for GET response)
@@ -6421,6 +6552,17 @@ const UpdateProjectSchema = object({
6421
6552
  webhookUrl: string().url().optional(),
6422
6553
  webhookSecret: string().optional(),
6423
6554
  beaconRateLimitPerMinute: number$1().int().positive().optional(),
6555
+ rateLimitExempt: boolean$1().optional(),
6556
+ requestFlagLabel: boolean$1().optional(),
6557
+ requestFlagTwoJumpShadow: boolean$1().optional(),
6558
+ requestFlagOwnClients: array(string().min(1)).max(100).optional(),
6559
+ requestFlagWebClients: array(string().min(1)).max(100).optional(),
6560
+ requestFlagSizedClients: array(string().min(1)).max(100).optional(),
6561
+ requestFlagControlClients: array(string().min(1)).max(100).optional(),
6562
+ requestFlagBrowserRelayClients: array(string().min(1)).max(100).optional(),
6563
+ requestFlagMobileAppClients: array(string().min(1)).max(100).optional(),
6564
+ requestFlagLabelMatrix: RequestFlagLabelMatrixWriteSchema.optional(),
6565
+ eventCountLimits: EventCountLimitsSettingSchema.optional(),
6424
6566
  postureOrigins: PostureOriginsSchema.optional(),
6425
6567
  postureReportPaths: PostureReportPathsSchema.optional()
6426
6568
  }).optional()
@@ -6744,8 +6886,6 @@ const HomeRailRollupsRequestSchema = object({ organizationId: OrganizationIdSche
6744
6886
  //#region src/api/signal-exposure.ts
6745
6887
  /**
6746
6888
  * Detection signal exposure: the wire shape of the "full signal set"
6747
- * block on the `/api/v1/enforce` detection response (KYA-1107, "Adobe
6748
- * Golden Snapshot").
6749
6889
  *
6750
6890
  * Every enforce detection payload carries these fields in addition to the
6751
6891
  * condensed summary fields. Additive only: consumers must ignore keys they
@@ -6777,8 +6917,8 @@ const DetectionSignalExposureSchema = object({
6777
6917
  reasonCodes: array(DetectionReasonCodeSchema).min(1).describe("Ordered detection/* reason codes, most-significant-evidence first, derived by the same mapDetectionToReasonCodes projection that feeds the gateway KYA-Reason-Codes header. Never empty: an assumed verdict carries a zero-evidence fallback code."),
6778
6918
  confidenceLevel: ConfidenceLevelSchema.optional().describe("The engine's banded confidence level (low | medium | high | very_high). Omitted when the engine did not produce one (engine fault, skipDetection, or a demoted forged-credential verdict)."),
6779
6919
  isAiCrawler: boolean$1().optional().describe("True when the engine classified the client as an AI training crawler (GPTBot, ClaudeBot, …) rather than an interactive agent. Omitted when the engine did not run."),
6780
- riskScore: RiskScoreSchema.optional().describe("The Noisy-Or probability that the request is automated (0-1, two decimals), uncalibrated (see riskScoreSource), derived from detectionDetail.metadata.shadow_noisy_or_confidence. Null when the combiner did not run. Distinct from `confidence` above, which is never derived from it."),
6781
- riskScoreSource: RiskScoreSourceSchema.optional().describe("Which metadata key riskScore was derived from: 'uncalibrated' (always true today) or 'calibrated' (not yet wired). Null exactly when riskScore is null.")
6920
+ riskScore: RiskScoreSchema.optional().describe("How likely the request is to be automated, from 0 to 1 with two decimals; riskScoreSource says whether it is calibrated. Null when no score was computed for the request. Distinct from `confidence` above, which is never derived from it."),
6921
+ riskScoreSource: RiskScoreSourceSchema.optional().describe("How riskScore was produced: 'uncalibrated' (a relative score: higher means more likely automated, but it is not an observed frequency) or 'calibrated' (mapped to observed outcomes, so it reads as a probability). Null exactly when riskScore is null.")
6782
6922
  });
6783
6923
 
6784
6924
  //#endregion
@@ -7348,7 +7488,15 @@ const HeartbeatRequestSchema = object({
7348
7488
  /** Seconds since compute process started */
7349
7489
  uptimeSeconds: number$1().nonnegative().optional(),
7350
7490
  /** Current RSS memory in MB */
7351
- memoryMb: number$1().nonnegative().optional()
7491
+ memoryMb: number$1().nonnegative().optional(),
7492
+ /**
7493
+ * ISO 8601 time (UTC, or with an offset) of the agent's last real user or channel message: the
7494
+ * newest `lastInteractionAt` across its OpenClaw session stores. Omitted while no session has
7495
+ * one. Checkpoint records it as user activity for the agent's tier. A value that isn't such a
7496
+ * time parses as absent instead of failing the heartbeat, which also carries `stop` and
7497
+ * `update_config`.
7498
+ */
7499
+ lastUserActivityAt: string().datetime({ offset: true }).optional().catch(void 0)
7352
7500
  });
7353
7501
  /**
7354
7502
  * Stop command — graceful shutdown, no payload accepted.
@@ -7394,7 +7542,11 @@ const HeartbeatResponseSchema = object({
7394
7542
  ack: literal(true),
7395
7543
  /** Pending commands for the compute process to execute */
7396
7544
  commands: array(ComputeCommandSchema).default([]),
7397
- /** ISO timestamp of last config change (compute compares to detect updates) */
7545
+ /**
7546
+ * ISO timestamp of the last config change. A change is applied when the heartbeat returns
7547
+ * `update_config`, which a tier change withholds while the agent is in use, so this can be
7548
+ * newer than the config the gateway runs.
7549
+ */
7398
7550
  configUpdatedAt: string().datetime().optional()
7399
7551
  });
7400
7552
  /**
@@ -8276,7 +8428,12 @@ function isLegitimateCategory(category) {
8276
8428
  ].includes(category);
8277
8429
  }
8278
8430
  /**
8279
- * Get display color for agent category (for UI)
8431
+ * Display colour for an agent category (for UI), as a hex value.
8432
+ *
8433
+ * Part of this package's published API: npm consumers paint it in their own
8434
+ * dashboards, charts and email, outside any Checkpoint stylesheet, so it
8435
+ * stays a literal hex rather than a design-system `var()` reference, which
8436
+ * would resolve to nothing there.
8280
8437
  */
8281
8438
  function getCategoryColor(category) {
8282
8439
  return {
@@ -8509,12 +8666,17 @@ const INSTALLATION_TYPES = [
8509
8666
  "dns_gateway",
8510
8667
  "beacon"
8511
8668
  ];
8512
- /** The four buckets the admin overview classifies every traffic event into. */
8669
+ /**
8670
+ * The buckets the admin overview classifies every traffic event into.
8671
+ * `unidentified` holds the incomplete_data events the engine could not
8672
+ * classify, so the buckets add up to the total.
8673
+ */
8513
8674
  const TRAFFIC_TAXONOMY_BUCKETS = [
8514
8675
  "human",
8515
8676
  "ai_agent",
8516
8677
  "ai_crawler",
8517
- "other_automation"
8678
+ "other_automation",
8679
+ "unidentified"
8518
8680
  ];
8519
8681
  /** Order is precedence: a user matching several rules is attributed to the first. */
8520
8682
  const EXCLUSION_BUCKETS = [
@@ -8574,14 +8736,20 @@ const ADMIN_TRUSTED_METRICS = [
8574
8736
  * row, none of its members is a counted person (`no_counted_members`).
8575
8737
  */
8576
8738
  const ADMIN_ORG_EXCLUSION_REASONS = ["test_org", "no_counted_members"];
8577
- /** `counted`, or the first rule that left the account out (user buckets take precedence). */
8739
+ /**
8740
+ * `counted`; `invited`, a teammate's invitee on a signup metric; or the first
8741
+ * rule that left the account out. User buckets take precedence over the org
8742
+ * reasons, and over `invited`: an invitee on the exclusion lists reads as
8743
+ * excluded, so each account is in exactly one part of its split.
8744
+ */
8578
8745
  const ADMIN_ACCOUNT_STATUSES = [
8579
8746
  "counted",
8747
+ "invited",
8580
8748
  ...EXCLUSION_BUCKETS,
8581
8749
  ...ADMIN_ORG_EXCLUSION_REASONS
8582
8750
  ];
8583
8751
  /** GET /api/admin/overview/accounts query. */
8584
- /** Drill-down status filter: everyone, any exclusion, or one status. */
8752
+ /** Drill-down status filter: everyone, any exclusion (never `invited`), or one status. */
8585
8753
  const ADMIN_ACCOUNTS_STATUS_FILTERS = [
8586
8754
  "all",
8587
8755
  "excluded",
@@ -8598,6 +8766,191 @@ const adminAccountsQuerySchema = object({
8598
8766
  status: _enum(ADMIN_ACCOUNTS_STATUS_FILTERS).default("all")
8599
8767
  });
8600
8768
 
8769
+ //#endregion
8770
+ //#region src/data/generated/verdict-rules-digest.json
8771
+ var sha256$1 = "0aae838abc1d38eb7541bb360a570809cb95d05e59a857e852bff145b7503291";
8772
+
8773
+ //#endregion
8774
+ //#region src/verdict-rules/default.json
8775
+ var default_default = {
8776
+ schema: 1,
8777
+ version: 0,
8778
+ tuning: {
8779
+ "currentChromeMajor": 156,
8780
+ "oldChromeMajorLag": 11,
8781
+ "bareTemplateMinCalls": 3,
8782
+ "bareTemplateMinAddresses": 3,
8783
+ "accountHourVolumeCalls": 16,
8784
+ "behaviourIpCount": 3,
8785
+ "spreadWindowCalls": 2,
8786
+ "spreadWindowCountries": 2,
8787
+ "networksInHourMin": 3,
8788
+ "clientAppsMin": 5,
8789
+ "poolAppsMin": 2,
8790
+ "rapidCountryMin": 3,
8791
+ "manyCountriesMin": 3,
8792
+ "highCallVolumeLine": 60,
8793
+ "minuteAlignedWindowMs": 200,
8794
+ "webEditorHandoffWindowMs": 72e5,
8795
+ "minuteAlignedWeight": .3,
8796
+ "accountHistoryBandMedium": .35,
8797
+ "accountHistoryBandHigh": .6,
8798
+ "countryWeights": {
8799
+ "two": .3,
8800
+ "three": .6
8801
+ },
8802
+ "rotationDistanceKm": 1200,
8803
+ "rotationGapMs": 9e5,
8804
+ "rotationIspCount": 3,
8805
+ "stateApartKm": 300,
8806
+ "twoJumpLegKm": 1e3,
8807
+ "twoJumpPriorMaxAgeMs": 36e5,
8808
+ "minuteBatch": {
8809
+ "memoryMs": 72e5,
8810
+ "timeoutMs": 75,
8811
+ "observations": 12,
8812
+ "spanMs": 2e3
8813
+ },
8814
+ "minutePhase": {
8815
+ "memoryMs": 72e5,
8816
+ "timeoutMs": 75,
8817
+ "observations": 12,
8818
+ "spanMs": 1e3,
8819
+ "clockSkewMs": 5e3
8820
+ },
8821
+ "scheduler": {
8822
+ "memoryMs": 72e5,
8823
+ "timeoutMs": 75,
8824
+ "reorderToleranceMs": 1e3,
8825
+ "clockSkewMs": 5e3,
8826
+ "burstGapMs": 5e3,
8827
+ "burstSpanMs": 3e3,
8828
+ "burstMinAccounts": 8,
8829
+ "periodToleranceMs": 3e3,
8830
+ "coreMinAccounts": 5
8831
+ },
8832
+ "publicAccessPointAccounts": 8,
8833
+ "networkAccountWeights": {
8834
+ "fixed_line": {
8835
+ "publicAccessPoint": .7,
8836
+ "steps": [{
8837
+ "accounts": 5,
8838
+ "weight": .5
8839
+ }, {
8840
+ "accounts": 3,
8841
+ "weight": .3
8842
+ }]
8843
+ },
8844
+ "unrouted_isp": {
8845
+ "publicAccessPoint": .5,
8846
+ "steps": [{
8847
+ "accounts": 5,
8848
+ "weight": .3
8849
+ }, {
8850
+ "accounts": 3,
8851
+ "weight": .15
8852
+ }]
8853
+ },
8854
+ "hosting": {
8855
+ "publicAccessPoint": .3,
8856
+ "steps": [{
8857
+ "accounts": 5,
8858
+ "weight": .2
8859
+ }, {
8860
+ "accounts": 3,
8861
+ "weight": .1
8862
+ }]
8863
+ }
8864
+ },
8865
+ "headerContradictionWeights": {
8866
+ "page_load_on_json_post": .3,
8867
+ "client_hint_contradiction": .33,
8868
+ "browser_headers_without_user_agent": .16,
8869
+ "hosting_on_unpaid_tier": .16,
8870
+ "pre_zstd_headers_on_modern_chrome": .16
8871
+ },
8872
+ "populationFloorWeight": .1,
8873
+ "ja4VersionMismatchWeight": .75,
8874
+ "velocityEscalationFloors": {
8875
+ "requestCount": 150,
8876
+ "requestsPerMinute": 120
8877
+ },
8878
+ "zstdAndPriorityFromMajor": 124,
8879
+ "greaseMajorRange": {
8880
+ "from": 120,
8881
+ "to": 157
8882
+ },
8883
+ "missingUaGzipChromeMinimumMajor": 124,
8884
+ "establishedAgeDays": 365,
8885
+ "newAccountAgeDays": 30,
8886
+ "maxAccountAgeDays": 36500
8887
+ }
8888
+ };
8889
+
8890
+ //#endregion
8891
+ //#region src/verdict-rules/compiled.ts
8892
+ const deepFreeze = (value) => {
8893
+ if (value instanceof Object) {
8894
+ Object.values(value).forEach(deepFreeze);
8895
+ Object.freeze(value);
8896
+ }
8897
+ return value;
8898
+ };
8899
+ const compileEmbeddedVerdictRules = (rules) => deepFreeze({
8900
+ source: "embedded",
8901
+ version: rules.version,
8902
+ tuning: rules.tuning
8903
+ });
8904
+ const embeddedVerdictRules = compileEmbeddedVerdictRules(structuredClone(default_default));
8905
+ const embeddedVerdictRulesSha256 = sha256$1;
8906
+
8907
+ //#endregion
8908
+ //#region src/session-velocity-partition.ts
8909
+ const SESSION_VELOCITY_BUCKET_SECONDS = 300;
8910
+ const SESSION_VELOCITY_BUCKET_MS = 300 * 1e3;
8911
+ const SESSION_VELOCITY_PARTITIONS = 32;
8912
+ const SESSION_VELOCITY_SKETCH_ROWS = 4;
8913
+ const SESSION_VELOCITY_SKETCH_COLUMN_HEX_DIGITS = 3;
8914
+ const SESSION_VELOCITY_SKETCH_COLUMNS = 16 ** 3;
8915
+ const SESSION_VELOCITY_SKETCH_COUNTER_MAX = 65535;
8916
+ const SESSION_VELOCITY_WRITE_COUNTER_INDEX = 4 * SESSION_VELOCITY_SKETCH_COLUMNS / 2;
8917
+ const SESSION_VELOCITY_EXPIRY_SKEW_SECONDS = 30;
8918
+ const VELOCITY_ESCALATION_FLOORS = embeddedVerdictRules.tuning.velocityEscalationFloors;
8919
+ function sessionVelocityBucket(nowMs) {
8920
+ return Math.floor(nowMs / SESSION_VELOCITY_BUCKET_MS);
8921
+ }
8922
+ function sessionVelocityBucketStart(nowMs) {
8923
+ return sessionVelocityBucket(nowMs) * SESSION_VELOCITY_BUCKET_MS;
8924
+ }
8925
+ function sessionVelocityExpirySeconds(nowMs, bucketMs = SESSION_VELOCITY_BUCKET_MS, skewSeconds = 30) {
8926
+ const bucketEnd = (Math.floor(nowMs / bucketMs) + 1) * bucketMs;
8927
+ return Math.ceil((bucketEnd - nowMs) / 1e3) + skewSeconds;
8928
+ }
8929
+ function verdictShardIndexFor(projectId, sessionId, count) {
8930
+ const text = `${projectId}\u0000${sessionId}`;
8931
+ let hash = 2166136261;
8932
+ for (let index = 0; index < text.length; index += 1) {
8933
+ hash ^= text.charCodeAt(index);
8934
+ hash = Math.imul(hash, 16777619);
8935
+ }
8936
+ hash ^= hash >>> 16;
8937
+ hash = Math.imul(hash, 2246822507);
8938
+ hash ^= hash >>> 13;
8939
+ hash = Math.imul(hash, 3266489909);
8940
+ hash ^= hash >>> 16;
8941
+ return (hash >>> 0) % count;
8942
+ }
8943
+ function sessionVelocityPartition(projectId, sessionId) {
8944
+ return verdictShardIndexFor(projectId, sessionId, 32);
8945
+ }
8946
+ function sessionVelocitySketchCells(clientHash, hexDigits = 3, columns = 16 ** hexDigits) {
8947
+ return Array.from({ length: 4 }, (_, row) => {
8948
+ const start = row * hexDigits;
8949
+ const column = Number.parseInt(clientHash.slice(start, start + hexDigits), 16) % columns;
8950
+ return row * columns + column;
8951
+ });
8952
+ }
8953
+
8601
8954
  //#endregion
8602
8955
  //#region src/utils/agent-runtime-label.ts
8603
8956
  /**
@@ -9910,7 +10263,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9910
10263
  "lastUpdated": "2025-01-10T00:00:00Z"
9911
10264
  }
9912
10265
  ],
9913
- "hash": "e1421f0f43d84f10a8093fedbeb9b47eaa8998b2407da9564d8b74637251ad08"
10266
+ "hash": "7d7efc9019a20794764cb9977b744c7a8c31386b5ee0567dde81fd42f61f294e"
9914
10267
  },
9915
10268
  "rules": {
9916
10269
  "userAgents": {
@@ -9966,7 +10319,8 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9966
10319
  "patterns": [
9967
10320
  "facebookexternalhit",
9968
10321
  "facebookcatalog",
9969
- "FacebookBot"
10322
+ "FacebookBot",
10323
+ "meta-externalads"
9970
10324
  ],
9971
10325
  "confidence": .9,
9972
10326
  "description": "Meta/Facebook web crawlers for link previews and training",
@@ -9985,7 +10339,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9985
10339
  "category": "scraper"
9986
10340
  },
9987
10341
  "bytedance_crawler": {
9988
- "patterns": ["Bytespider", "ByteDance"],
10342
+ "patterns": ["Bytespider", "@bytedance.com"],
9989
10343
  "confidence": .85,
9990
10344
  "description": "ByteDance/TikTok web crawler",
9991
10345
  "category": "scraper"
@@ -10237,7 +10591,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10237
10591
  "category": "ai_assistant"
10238
10592
  },
10239
10593
  "meta_ai": {
10240
- "patterns": ["Meta-ExternalAgent"],
10594
+ "patterns": ["Meta-ExternalAgent", "Meta-ExternalFetcher"],
10241
10595
  "confidence": .95,
10242
10596
  "category": "scraper",
10243
10597
  "description": "Meta AI assistant"
@@ -10274,7 +10628,9 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10274
10628
  "Mediapartners-Google",
10275
10629
  "Google-InspectionTool",
10276
10630
  "GoogleOther",
10277
- "Google-Read-Aloud"
10631
+ "Google-Read-Aloud",
10632
+ "Google-Site-Verification",
10633
+ "Google-CWS"
10278
10634
  ],
10279
10635
  "confidence": .95,
10280
10636
  "description": "Google search crawler and related bots",
@@ -10298,7 +10654,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10298
10654
  "duckduckgo": {
10299
10655
  "patterns": [
10300
10656
  "DuckDuckBot",
10301
- "DuckDuckGo",
10657
+ "DuckAssistBot",
10302
10658
  "DuckDuckGo-Favicons-Bot",
10303
10659
  "DuckDuckGoImageProxy"
10304
10660
  ],
@@ -10356,7 +10712,6 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10356
10712
  },
10357
10713
  "sogoubot": {
10358
10714
  "patterns": [
10359
- "Sogou",
10360
10715
  "Sogou web spider",
10361
10716
  "Sogou inst spider",
10362
10717
  "Sogou spider"
@@ -13466,11 +13821,221 @@ const CliPairingExchangeDataSchema = object({
13466
13821
  dashboardUrl: string().url()
13467
13822
  }).strict();
13468
13823
 
13824
+ //#endregion
13825
+ //#region src/verdict-dictionaries.ts
13826
+ const SPOOL_DICTIONARY_S1 = "{\"request_flags\":[\"page_load_on_json_post\",\"client_hint_contradiction\",\"browser_headers_without_user_agent\",\"hosting_on_unpaid_tier\",\"pre_zstd_headers_on_modern_chrome\",\"upgrade_insecure_requests_on_json_post\",\"hosting_network\",\"tor\",\"vpn\",\"apple_private_relay\",\"old_chrome\",\"grease_brand_mismatch\",\"language_region_mismatch\",\"bare_product_agent_template\",\"missing_ua_gzip_chrome\",\"gzip_only_hinted_chrome\",\"http_client_user_agent\",\"zh_cn_cross_site_windows_chrome\",\"gzip_only_browser_with_evidence\",\"chrome_without_hints_or_language_on_hosting\",\"no_human_proof\",\"guest_cors_population\",\"device_type_contradiction\",\"served_bot_memory\",\"geo_witness_memory\",\"dispersed_burst\",\"account_age_new\",\"email_unverified\",\"account_country_mismatch\",\"email_disposable\",\"email_role\",\"email_private_relay\",\"account_network_rotation\",\"account_impossible_travel\",\"country_spread\",\"shared_network\",\"minute_aligned\",\"account_hour_volume\",\"account_convicted\",\"network_convicted\",\"pool_address\",\"ip_convicted\",\"account_many_apps\",\"account_rapid_country_rotation\",\"account_many_countries\"],\"label_matrix\":[{\"flag\":\"page_load_on_json_post\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"client_hint_contradiction\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"upgrade_insecure_requests_on_json_post\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_network_rotation\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_impossible_travel\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"pre_zstd_headers_on_modern_chrome\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"grease_brand_mismatch\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"bare_product_agent_template\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"missing_ua_gzip_chrome\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"gzip_only_hinted_chrome\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"zh_cn_cross_site_windows_chrome\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"country_spread\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"old_chrome\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"shared_network\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"minute_aligned\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_hour_volume\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_convicted\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"network_convicted\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"no_human_proof\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"device_type_contradiction\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"pool_address\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"ip_convicted\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_many_apps\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_rapid_country_rotation\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"account_many_countries\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"gzip_only_browser_with_evidence\",\"label\":true,\"scope\":\"client+tier\"},{\"flag\":\"chrome_without_hints_or_language_on_hosting\",\"label\":true,\"scope\":\"client+tier\"}],\"label_gates\":[{\"flag\":\"shared_network\",\"gate\":\"established_header_only\"}],\"fraud_label\":{\"flags\":[\"page_load_on_json_post\",\"client_hint_contradiction\",\"upgrade_insecure_requests_on_json_post\",\"account_network_rotation\",\"account_impossible_travel\",\"pre_zstd_headers_on_modern_chrome\",\"grease_brand_mismatch\",\"bare_product_agent_template\",\"missing_ua_gzip_chrome\",\"gzip_only_hinted_chrome\",\"zh_cn_cross_site_windows_chrome\",\"country_spread\",\"old_chrome\",\"shared_network\",\"minute_aligned\",\"account_hour_volume\",\"account_convicted\",\"network_convicted\",\"no_human_proof\",\"device_type_contradiction\",\"pool_address\",\"ip_convicted\",\"account_many_apps\",\"account_rapid_country_rotation\",\"account_many_countries\",\"gzip_only_browser_with_evidence\",\"chrome_without_hints_or_language_on_hosting\"],\"count\":27,\"signals\":[{\"signal\":\"page_load_on_json_post\",\"tier\":\"evidence\"},{\"signal\":\"client_hint_contradiction\",\"tier\":\"evidence\"},{\"signal\":\"upgrade_insecure_requests_on_json_post\",\"tier\":\"evidence\"},{\"signal\":\"account_network_rotation\",\"tier\":\"evidence\"},{\"signal\":\"account_impossible_travel\",\"tier\":\"evidence\"},{\"signal\":\"pre_zstd_headers_on_modern_chrome\",\"tier\":\"evidence\"},{\"signal\":\"grease_brand_mismatch\",\"tier\":\"population\"},{\"signal\":\"bare_product_agent_template\",\"tier\":\"population\"},{\"signal\":\"missing_ua_gzip_chrome\",\"tier\":\"population\"},{\"signal\":\"gzip_only_hinted_chrome\",\"tier\":\"population\"},{\"signal\":\"zh_cn_cross_site_windows_chrome\",\"tier\":\"population\"},{\"signal\":\"country_spread\",\"tier\":\"evidence\"},{\"signal\":\"old_chrome\",\"tier\":\"population\"},{\"signal\":\"shared_network\",\"tier\":\"evidence\"},{\"signal\":\"minute_aligned\",\"tier\":\"evidence\"},{\"signal\":\"account_hour_volume\",\"tier\":\"evidence\"},{\"signal\":\"account_convicted\",\"tier\":\"evidence\"},{\"signal\":\"network_convicted\",\"tier\":\"evidence\"},{\"signal\":\"no_human_proof\",\"tier\":\"population\"},{\"signal\":\"device_type_contradiction\",\"tier\":\"evidence\"},{\"signal\":\"pool_address\",\"tier\":\"evidence\"},{\"signal\":\"ip_convicted\",\"tier\":\"evidence\"},{\"signal\":\"account_many_apps\",\"tier\":\"evidence\"},{\"signal\":\"account_rapid_country_rotation\",\"tier\":\"evidence\"},{\"signal\":\"account_many_countries\",\"tier\":\"evidence\"},{\"signal\":\"gzip_only_browser_with_evidence\",\"tier\":\"population\"},{\"signal\":\"chrome_without_hints_or_language_on_hosting\",\"tier\":\"population\"}]},\"attributes\":{\"emailVerified\":\"true\",\"accountAgeDays\":\"36500\",\"accountCountry\":\"US\",\"deviceType\":\"desktop\"},\"servedNetwork\":{\"publicAccessPoint\":true},\"servedEnvironment\":{\"incognito\":true,\"privacySettings\":true,\"virtualMachine\":true,\"developerTools\":true,\"tampering\":true,\"antiDetect\":true,\"osMismatch\":true,\"mitm\":true},\"guest_cors\":{\"status\":\"matched\",\"carried\":true},\"accountHistory\":{\"calls\":16,\"countries\":1,\"ips\":1,\"rapidCountries\":3,\"hourCountries\":3,\"noAddressReuse\":true,\"aligned\":0,\"exactGap\":false,\"alignedNow\":false,\"networkAccounts\":1,\"networkCapped\":false,\"rotation\":null,\"residentialIsps\":0,\"accountConvicted\":true,\"networkConvicted\":true,\"ipConvicted\":true,\"poolMarked\":true,\"clientApps\":8,\"tier\":\"free\",\"addressClass\":\"fixed_line\",\"signals\":[],\"flags\":[\"account_hour_volume\",\"account_rapid_country_rotation\",\"account_many_countries\",\"account_convicted\",\"network_convicted\",\"pool_address\",\"ip_convicted\",\"account_many_apps\"],\"weight\":0,\"score\":0,\"band\":null}}\"reasonCodes\":\"reasons\":\"label_gates\":\"gate\":\"count\":\"attributes\":\"emailVerified\":\"accountAgeDays\":\"accountCountry\":\"deviceType\":\"email\":\"servedNetwork\":\"publicAccessPoint\":\"servedEnvironment\":\"incognito\":\"privacySettings\":\"virtualMachine\":\"developerTools\":\"tampering\":\"antiDetect\":\"osMismatch\":\"mitm\":\"guest_cors\":\"status\":\"carried\":\"accountConvicted\":\"networkConvicted\":\"ipConvicted\":\"poolMarked\":\"clientApps\":\"request_flags\":\"accountHistory\":\"calls\":\"countries\":\"ips\":\"rapidCountries\":\"hourCountries\":\"noAddressReuse\":\"aligned\":\"exactGap\":\"alignedNow\":\"networkAccounts\":\"networkCapped\":\"rotation\":\"residentialIsps\":\"addressClass\":\"weight\":\"score\":\"band\":\"fraud_label\":\"label_matrix\":\"signals\":\"flags\":\"label\":\"scope\":\"signal\":\"flag\":\"tier\":\"free\",\"fixed_line\",\"page_load_on_json_post\",\"client_hint_contradiction\",\"browser_headers_without_user_agent\",\"hosting_on_unpaid_tier\",\"pre_zstd_headers_on_modern_chrome\",\"upgrade_insecure_requests_on_json_post\",\"hosting_network\",\"tor\",\"vpn\",\"apple_private_relay\",\"old_chrome\",\"grease_brand_mismatch\",\"language_region_mismatch\",\"bare_product_agent_template\",\"missing_ua_gzip_chrome\",\"gzip_only_hinted_chrome\",\"http_client_user_agent\",\"zh_cn_cross_site_windows_chrome\",\"gzip_only_browser_with_evidence\",\"no_human_proof\",\"guest_cors_population\",\"device_type_contradiction\",\"served_bot_memory\",\"geo_witness_memory\",\"dispersed_burst\",\"account_age_new\",\"email_unverified\",\"account_country_mismatch\",\"email_disposable\",\"email_role\",\"email_private_relay\",\"account_network_rotation\",\"account_impossible_travel\",\"country_spread\",\"shared_network\",\"minute_aligned\",\"account_hour_volume\",\"account_convicted\",\"network_convicted\",\"pool_address\",\"ip_convicted\",\"account_many_apps\",\"account_rapid_country_rotation\",\"account_many_countries\",\"established_header_only\",\"evidence\",\"population\",\"true\",\"desktop\",\"matched\",\"chrome_without_hints_or_language_on_hosting\"";
13827
+ const VERDICT_DICTIONARIES = {
13828
+ r1: "[\"User-Agent matched known agent pattern: ChatGPT\",\"ai_agent\",\"incomplete_data\",\"medium\",\"none\",\"not_agent\",\"scraper\",\"unknown\"]{\"version\":1,\"kind\":\"verdict\",\"projectId\":\"\",\"detectionId\":\"\",\"createdAt\":\"\",\"dedupeKey\":\"\",\"row\":{\"ja4\":null,\"geoAsn\":null,\"geoIsp\":null,\"network\":null,\"signals\":null,\"userId\":null,\"geoCity\":null,\"isAgent\":true,\"metadata\":{\"url\":\"\",\"path\":\"\",\"method\":\"POST\",\"source\":\"middleware\",\"isAgent\":true,\"posture\":{\"status\":\"absent\"},\"reasons\":[\"Request did not carry enough signal to classify confidently\"],\"agentType\":\"\",\"enforcement\":{\"action\":\"allow\",\"reason\":\"enforcement_disabled\",\"signals\":[{\"source\":\"user_agent_pattern\",\"weight\":1,\"confidence\":95,\"signalType\":\"pattern\",\"explanation\":\"User-Agent matched known agent pattern: ChatGPT\",\"metadata\":{\"window_seconds\":300,\"requests_per_minute\":0,\"request_count_in_window\":1}}],\"evidence\":[{\"plane\":\"pattern\",\"signal\":\"user_agent_pattern\",\"weight\":1,\"probabilityContribution\":0}],\"agentName\":\"\",\"latencyMs\":16},\"priorIsAgent\":true,\"engineIsAgent\":false,\"postureOutcome\":{\"status\":\"absent\"},\"clientSessionId\":true,\"fusedFromPriorSession\":true,\"shadow_scoring_algorithm\":\"noisy-or-v1\",\"shadow_calibration_method\":\"platt\",\"shadow_noisy_or_confidence\":0,\"shadow_calibrated_confidence\":0,\"riskLevel\":\"high\",\"isAiCrawler\":false,\"verificationMethod\":\"pattern\",\"detection_basis\":\"no_evidence\"},\"pixelId\":\"\",\"buildSha\":null,\"deviceId\":null,\"policyId\":null,\"agentType\":\"\",\"confidence\":100,\"geoRegion\":null,\"ipAddress\":\"\",\"latencyMs\":16,\"projectId\":\"\",\"riskScore\":0,\"sessionId\":\"\",\"userAgent\":\"\",\"engineName\":\"checkpoint-engine-wasm\",\"geoCountry\":null,\"userTraits\":null,\"requestPath\":\"\",\"rulesetHash\":\"\",\"agentTypeId\":null,\"engineExtras\":null,\"agentCategory\":\"ai_assistant\",\"correlationId\":\"\",\"engineVersion\":\"\",\"detectionClass\":\"bot\",\"rulesetVersion\":\"\",\"registryVersion\":null,\"consolidatedSessionId\":\"\"},\"session\":{\"organizationId\":\"\",\"outcome\":\"unverified_agent\",\"verification\":{\"tier\":1,\"vendor\":null,\"protocol\":null,\"source\":null},\"signalStrength\":\"weak\"}}",
13829
+ a1: "[\"Automation Tools\",\"Bot\",\"IncompleteData\",\"Request did not carry enough signal to classify confidently\",\"User-Agent matched known agent pattern: ChatGPT\",\"behavioral\",\"bot\",\"detection/session-velocity-signal\",\"high\",\"incomplete_data\",\"low\",\"none\",\"not_agent\",\"session_velocity\"]{\"success\":true,\"data\":{\"sessionId\":\"\",\"correlationId\":\"\",\"recommendedAction\":\"allow\",\"reason\":\"enforcement_disabled\",\"verdict\":{\"isAgent\":true,\"detectionClass\":\"ai_agent\",\"confidence\":100,\"agentName\":\"\",\"agentType\":\"\",\"reasons\":[\"User-Agent matched known agent pattern: ChatGPT\"],\"basis\":\"no_evidence\"},\"fusedFromPriorSession\":false,\"posture\":{\"status\":\"absent\"},\"detection\":{\"isAgent\":true,\"isBot\":true,\"confidence\":100,\"detectionClass\":{\"type\":\"AiAgent\",\"agentType\":\"\",\"botType\":\"\",\"legitimacy\":\"Suspicious\"},\"signals\":[{\"signalType\":\"pattern\",\"confidence\":95,\"weight\":1,\"source\":\"user_agent_pattern\",\"explanation\":\"1 requests observed from this client in a 300s window (session-velocity heuristic, first-pass scaling, not yet fitted to measured traffic)\",\"metadata\":{\"request_count_in_window\":1,\"requests_per_minute\":0,\"window_seconds\":300}}],\"reasonCodes\":[\"detection/ua-pattern-match\"],\"confidenceLevel\":\"very_high\",\"isAiCrawler\":false,\"riskScore\":0,\"riskScoreSource\":\"uncalibrated\",\"reasons\":[\"User-Agent matched known agent pattern: ChatGPT\"],\"detectedAgent\":{\"type\":\"AI\",\"name\":\"ChatGPT\"},\"agentType\":\"\",\"botType\":\"ChatGPT\",\"verificationMethod\":\"pattern\",\"riskLevel\":\"medium\",\"assurance\":\"anonymous\",\"metadata\":{\"processingTime\":23,\"detection_basis\":\"no_evidence\"},\"timestamp\":\"\"},\"metadata\":{\"processingTime\":23,\"wasmUsed\":true,\"cacheHit\":false}}}",
13830
+ s1: SPOOL_DICTIONARY_S1,
13831
+ s2: `${SPOOL_DICTIONARY_S1},"stale_safari_16_business_hosting","library_ua_on_web_client","automation_ua_on_web_client","truncated_browser_ua","round_the_clock","template_minute_arc","linked_rare_header","new_asn_template","new_country_asn_template","signup_cohort_abroad","mobile_app_new_account_abroad","wave_template_young_account","safari_without_priority_business_hosting","team_trial_new_account","carried":true},"device":{"source":"cookie","recallId":"rc1:"},"carried":true},"device":{"id":"","source":"issued","recallId":"rc1:"},"accountHistory":{"hours":16,"calls":16,"countries":1,"ips":1,"rapidCountries":3`
13832
+ };
13833
+ function isVerdictDictionaryId(id) {
13834
+ return Object.hasOwn(VERDICT_DICTIONARIES, id);
13835
+ }
13836
+
13837
+ //#endregion
13838
+ //#region src/request-flag-registry.ts
13839
+ const REQUEST_FLAG_BITS_VERSION = 1;
13840
+ const REQUEST_FLAG_REGISTRY = [
13841
+ "page_load_on_json_post",
13842
+ "client_hint_contradiction",
13843
+ "browser_headers_without_user_agent",
13844
+ "hosting_on_unpaid_tier",
13845
+ "pre_zstd_headers_on_modern_chrome",
13846
+ "account_three_state",
13847
+ "account_two_jump",
13848
+ "shared_clock_slot",
13849
+ "stable_minute_offset",
13850
+ "aligned_minute_batch",
13851
+ "account_state_rotation",
13852
+ "upgrade_insecure_requests_on_json_post",
13853
+ "hosting_network",
13854
+ "tor",
13855
+ "vpn",
13856
+ "apple_private_relay",
13857
+ "old_chrome",
13858
+ "grease_brand_mismatch",
13859
+ "language_region_mismatch",
13860
+ "bare_product_agent_template",
13861
+ "missing_ua_gzip_chrome",
13862
+ "gzip_only_hinted_chrome",
13863
+ "http_client_user_agent",
13864
+ "zh_cn_cross_site_windows_chrome",
13865
+ "gzip_only_browser_with_evidence",
13866
+ "chrome_without_hints_or_language_on_hosting",
13867
+ "sec_fetch_user_on_background_request",
13868
+ "hosting_old_profile_fingerprint",
13869
+ "no_human_proof",
13870
+ "guest_cors_population",
13871
+ "native_handoff_after_forged_web_editor",
13872
+ "device_type_contradiction",
13873
+ "served_bot_memory",
13874
+ "geo_witness_memory",
13875
+ "dispersed_burst",
13876
+ "account_high_call_volume",
13877
+ "paired_account_coordination",
13878
+ "account_age_new",
13879
+ "email_unverified",
13880
+ "account_country_mismatch",
13881
+ "email_disposable",
13882
+ "email_role",
13883
+ "email_private_relay",
13884
+ "account_network_rotation",
13885
+ "account_impossible_travel",
13886
+ "country_spread",
13887
+ "shared_network",
13888
+ "minute_aligned",
13889
+ "account_convicted",
13890
+ "network_convicted",
13891
+ "pool_address",
13892
+ "ip_convicted",
13893
+ "account_many_apps",
13894
+ "account_rapid_country_rotation",
13895
+ "account_many_countries",
13896
+ "account_hour_volume",
13897
+ "stale_safari_16_business_hosting",
13898
+ "library_ua_on_web_client",
13899
+ "automation_ua_on_web_client",
13900
+ "truncated_browser_ua",
13901
+ "round_the_clock",
13902
+ "template_minute_arc",
13903
+ "linked_rare_header",
13904
+ "new_asn_template",
13905
+ "new_country_asn_template",
13906
+ "signup_cohort_abroad",
13907
+ "mobile_app_new_account_abroad",
13908
+ "wave_template_young_account",
13909
+ "safari_without_priority_business_hosting",
13910
+ "team_trial_new_account",
13911
+ "many_templates",
13912
+ "stale_safari_16",
13913
+ "mobile_app_on_hosting",
13914
+ "ua_new",
13915
+ "ua_young",
13916
+ "email_fan",
13917
+ "heavy_days",
13918
+ "country_days",
13919
+ "night_days",
13920
+ "net_pingpong",
13921
+ "lang_3way",
13922
+ "net24_days_15",
13923
+ "interleave_country_30m",
13924
+ "night_16_50",
13925
+ "sibling_client",
13926
+ "guest_scatter",
13927
+ "burst_5",
13928
+ "app_ua_on_web",
13929
+ "session_age_96h",
13930
+ "bare_lang_chromium",
13931
+ "rapid_pairs",
13932
+ "young_paid_business_hosting_heavy_8",
13933
+ "safari_26_without_priority",
13934
+ "old_account_abroad_new_country",
13935
+ "rtc16_two_days",
13936
+ "rtc20_prior_carry_7d",
13937
+ "template_majority_b_95",
13938
+ "same_template_3_clients",
13939
+ "two_operators_10s",
13940
+ "script_defaults_browser_ua",
13941
+ "agent_carry_web",
13942
+ "sync_group3",
13943
+ "aged_batch_lang",
13944
+ "two_addresses_10s",
13945
+ "flip_ladder",
13946
+ "flip_ua_10s",
13947
+ "storage_access_header",
13948
+ "account_all_new",
13949
+ "node_defaults_browser_ua",
13950
+ "oprot3",
13951
+ "oprot4",
13952
+ "oprotapp3",
13953
+ "noreuse4",
13954
+ "noreuse3",
13955
+ "apps4",
13956
+ "wnoreuse5"
13957
+ ];
13958
+
13959
+ //#endregion
13960
+ //#region src/request-flag-bits.ts
13961
+ const REQUEST_FLAG_BITS_FIELD = "request_flag_bits";
13962
+ const UNKNOWN_FLAG_BIT_PREFIX = "bit:";
13963
+ const FLAG_INDEX = new Map(REQUEST_FLAG_REGISTRY.map((name, index) => [name, index]));
13964
+ const VERSION_PATTERN = /^\d+$/;
13965
+ const PAYLOAD_PATTERN = /^[A-Za-z0-9_-]*$/;
13966
+ const BITS_PER_BYTE = 8;
13967
+ function packRequestFlags(flags) {
13968
+ const indexes = /* @__PURE__ */ new Set();
13969
+ const rest = [];
13970
+ for (const flag of flags) {
13971
+ const index = FLAG_INDEX.get(flag);
13972
+ if (index === void 0) rest.push(flag);
13973
+ else indexes.add(index);
13974
+ }
13975
+ if (indexes.size === 0) return {
13976
+ bits: "",
13977
+ rest
13978
+ };
13979
+ const used = Math.floor(Math.max(...indexes) / BITS_PER_BYTE) + 1;
13980
+ const bytes = Uint8Array.from({ length: used }, (_, byte) => {
13981
+ let value = 0;
13982
+ for (let bit = 0; bit < BITS_PER_BYTE; bit += 1) if (indexes.has(byte * BITS_PER_BYTE + bit)) value |= 1 << bit;
13983
+ return value;
13984
+ });
13985
+ return {
13986
+ bits: `${1}:${bytesToBase64Url(bytes)}`,
13987
+ rest
13988
+ };
13989
+ }
13990
+ function unpackRequestFlags(bits) {
13991
+ const separator = bits.indexOf(":");
13992
+ const versionText = bits.slice(0, separator);
13993
+ const payload = bits.slice(separator + 1);
13994
+ if (separator < 1 || !VERSION_PATTERN.test(versionText) || !PAYLOAD_PATTERN.test(payload)) return { failure: "corrupt" };
13995
+ const version = Number(versionText);
13996
+ if (version !== 1) return {
13997
+ failure: "version",
13998
+ version
13999
+ };
14000
+ let bytes;
14001
+ try {
14002
+ bytes = base64UrlToBytes(payload);
14003
+ } catch {
14004
+ return { failure: "corrupt" };
14005
+ }
14006
+ const flags = [];
14007
+ bytes.forEach((byte, offset) => {
14008
+ for (let bit = 0; bit < BITS_PER_BYTE; bit += 1) {
14009
+ if ((byte & 1 << bit) === 0) continue;
14010
+ const index = offset * BITS_PER_BYTE + bit;
14011
+ flags.push(REQUEST_FLAG_REGISTRY[index] ?? `${"bit:"}${index}`);
14012
+ }
14013
+ });
14014
+ return { flags };
14015
+ }
14016
+
14017
+ //#endregion
14018
+ //#region src/verdict-rules/bounds.ts
14019
+ const VERDICT_RULES_BOUNDS = {
14020
+ greatCircleKm: 20040,
14021
+ shadowMemoryMs: 72e5,
14022
+ shadowHistoryMs: 36e5,
14023
+ shadowTimeoutMs: 75,
14024
+ shadowWriteDeadlineMs: 150,
14025
+ shadowClockSkewMs: 5e3,
14026
+ shadowObservations: 12,
14027
+ minutePeriodMs: 6e4,
14028
+ twoJumpPriorAgeMs: 36e5,
14029
+ schedulerAccounts: 64,
14030
+ schedulerReorderToleranceMs: 1e3,
14031
+ schedulerPatternSlackMs: 1e4
14032
+ };
14033
+
13469
14034
  //#endregion
13470
14035
  //#region src/index.ts
13471
14036
  const VERSION = "0.1.0";
13472
14037
  const PACKAGE_NAME = "@kya-os/checkpoint-shared";
13473
14038
 
13474
14039
  //#endregion
13475
- export { A2ARpcEnvelopeSchema, A2ASignedRequestSchema, A2ATaskRequestSchema, A2ATaskSourceConfigSchema, A2ATaskStateSchema, ACCEPT_CHALLENGE_HEADER, ADMIN_ACCOUNTS_STATUS_FILTERS, ADMIN_ACCOUNT_STATUSES, ADMIN_DELTA_BASES, ADMIN_ORG_EXCLUSION_REASONS, ADMIN_OVERVIEW_CACHE_STATUSES, ADMIN_OVERVIEW_LIST_LIMIT_DEFAULT, ADMIN_OVERVIEW_LIST_LIMIT_MAX, ADMIN_OVERVIEW_SECTIONS, ADMIN_OVERVIEW_WINDOWS, ADMIN_TRUSTED_METRICS, AGENT_CATALOG, AGENT_CATEGORY_META, AI_AGENT_HEADERS, ANALYTICS_ERRORS, ANONYMOUS_PRINCIPAL_DID, API_ERRORS, API_REQUEST_LIMITS, ATTESTED_BEARER_MAX_TTL_SECONDS, AUDIT_ERRORS, AUDIT_PROTOCOL_ERRORS, AUTHORIZATION_MODES, AUTH_DOMAIN, AUTH_ERRORS, AcceptanceWithdrawalSchema, AcceptedArtifactRevisionSchema, AccountSchema, AddModelCredentialSchema, AddUpdateProviderRequestSchema, AdminQueryParamsSchema, AgentCategorySchema, AgentClassificationRequestSchema, AgentClassificationResultSchema, AgentClassificationSchema, AgentInfoSchema, AgentPatternSchema, AgentStatisticsSchema, AgentTypeDefinitionSchema, AgentTypeSchema, AllowListEntrySchema, AllowedDomainsSchema, AnalyticsExportParamsSchema, AnalyticsQuerySchema, ApiKeyPermissionSchema, ApiKeyRateLimitsSchema, ApiKeySchema, ApiKeysBulkCreateItemSchema, ApiKeysBulkRequestSchema, ApiKeysBulkRevokeItemSchema, ApiKeysBulkUpdateItemSchema, ApiKeysQuerySchema, ApiResponseSchema, ApplyIdentityIntentSchema, ApproveTaskPublicationSchema, ApprovedTaskPublicationSchema, ArtifactIdentitySchema, AssuranceTierSchema, AuthErrorType, BARE_ERRORS, BASELINE_ALLOW_POLICY_ID, BESPOKE_POLICY_IDS, BILLING_ERRORS, BLOCKED_PATH, BOT_USER_AGENT_PATTERNS, BOUNCER_LOWERCASE_ERRORS, BOUNCER_UPPERCASE_ERRORS, BROWSER_PATTERNS, BULK_ERROR_CODES, BaseAuthProviderSchema, BaseBulkRequestSchema, BatchDetectionRequestSchema, BatchDetectionResponseSchema, BatchEventRequestSchema, BatchEventResponseSchema, BehavioralAnalysisSchema, BehavioralDataSchema, BehavioralPatternSchema, BehavioralRulesSchema, BehavioralThresholdSchema, BindingStatusSchema, BlockEventSchema, BlockReasonSchema, BotPatternSchema, BotTypeSchema, BouncerConfigSchema, BulkDeletePreviewStatsSchema, BulkDeleteResponseSchema, BulkOperationOptionsSchema, BulkOperationTypeSchema, BulkResponseSchema, BulkResultItemSchema, ByteBoundedMemo, CACHE_LIMITS, CACHE_TTL, CLI_PAIRING_FRAMEWORKS, CLI_PAIRING_PROTOCOL_VERSION, CLI_PAIRING_UPGRADE_MESSAGE, CLOUD_PROVIDER_RANGES, CONDITION_FIELDS, CONDITION_OPERATORS, CONFIDENCE_THRESHOLDS, CORRELATION_ID_HEADER, CRISPBudgetSchema, CURRENT_POLICY_VERSION, ChallengeParamsSchema, ChallengeWireError, ClaimVerificationSchema, CliIdentityQuerySchema, CliIdentityServiceSchema, CliIdentitySummarySchema, CliPairingApprovedClaimSchema, CliPairingClaimSchema, CliPairingExchangeDataSchema, CliPairingExchangeRequestSchema, CliPairingPrivateStatusDataSchema, CliPairingProofSchema, CliPairingRegisterDataSchema, CliPairingRegisterRequestSchema, ClickEventSchema, ClientDetectionSchema, CollectFingerprintRequestSchema, CollectFingerprintResponseSchema, CollectedDataSchema, ConditionFieldSchema, ConditionOperatorSchema, ConditionValueSchema, ConfidenceBreakdownSchema, ConfidenceLevelSchema, ConfidenceThresholdSchema, ConfidenceUtils, ConfigureLinearInstallationSchema, ConfigureLinearInstallationV2Schema, ConfigureTaskSourceInstallationSchema, ConfiguredProviderSchema, ConsentAgentMetadataSchema, ConsentBrandingSchema, ConsentCapabilityGroupSchema, ConsentCapabilitySchema, ConsentConfigMetadataSchema, ConsentConfigSchema, ConsentInputCopySchema, ConsentPolicyCapabilitySchema, ConsentPolicyResponseSchema, ConsentPolicyRiskLevelSchema, ConsentScopeLabelsSchema, ConsentSignInCopySchema, ConsentTermsSchema, ConsentUISchema, ConsumedArtifactSchema, CorrelationIdSchema, CreateApiKeySchema, CreateOrganizationInputSchema, CreateOrganizationSchema, CreatePixelSchema, CreateProjectSchema, CreateProvisioningOrganizationRequestSchema, CreateProvisioningOrganizationResponseSchema, CredentialProviderSchema, CustomRuleSchema, DATABASE_LIMITS, DEFAULT_ADMIN_OVERVIEW_WINDOW, DEFAULT_AGENT_TYPES, DEFAULT_AUTHORIZATION_HOST, DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, DEFAULT_MAX_VENDOR_RANGE_AGE_MS, DEFAULT_POLICY, DEFAULT_RULE_PRIORITY, DEFAULT_THRESHOLDS, DELEGATION_PROOF_HEADERS, DEPLOY_ERRORS, DEPLOY_STEPS, DETECTION_ERRORS, DETECTION_LIMITS, DETECTION_REASON_CODES, DashboardStatsRequestSchema, DatabaseDetectionMetadataSchema, DecisionSchema, DelegationAuditSourceSchema, DelegationAuditSummarySchema, DelegationConstraintSummarySchema, DelegationEffectiveStatusSchema, DelegationExportChannelSchema, DelegationExportRecordSchema, DelegationExposureSchema, DelegationListStatusFilterSchema, DelegationManagementDetailSchema, DelegationManagementItemSchema, DelegationManagementListSchema, DelegationResultSchema, DelegationRevokeRequestSchema, DelegationRevokeResponseSchema, DelegationStoredStatusSchema, DelegationVerifiedBySchema, DeleteAccountSchema, DenyListEntrySchema, DependencyBindingSchema, DeployProgressEventSchema, DeployStepIdSchema, DeployStepStateSchema, DeployStepStatusSchema, DeploymentMetadataSchema, DetectionClassSchema, DetectionDetailSchema, DetectionEventSchema, DetectionInputSchema, DetectionLogSchema, DetectionModeSchema, DetectionOptionsSchema, DetectionReasonCodeSchema, DetectionReasoningSchema, DetectionRequestSchema, DetectionResponseSchema, DetectionResultSchema, DetectionRulesSchema, DetectionSignalExposureSchema, DetectionSignalSchema, DidCommTaskSourceBindingSchema, DidCommTaskSourceConfigSchema, DidCommTaskSourceMessageSchema, DiscordTaskSourceConfigSchema, ENFORCEMENT_ACTIONS, ENFORCEMENT_MODES, ENTROPY_CONFIDENCE_CEILING, ENTROPY_CONFIDENCE_FLOOR, ERROR_CATEGORIES, ERROR_CODES, ERROR_MESSAGES, ERROR_STATUS_CODES, EXCLUSION_BUCKETS, EXPORT_LIMITS, EnforcementActionSchema, EnforcementModeSchema, EngineInfoSchema, EnrollWorkloadSchema, ErrorResponseSchema, EventTrackingRequestSchema, EventTrackingResponseSchema, ExportAnalyticsSchema, FAIL_CLOSED_BODY, FAIL_CLOSED_HEADERS, FAIL_CLOSED_STATUS, FingerprintAnalysisSchema, FingerprintRecordSchema, FingerprintResponseSchema, FleetPullRequestReceiptSchema, ForgeabilityRiskSchema, GATEWAY_VAULT_ERRORS, GitHubTaskSourceConfigSchema, GrowthBatchRequestSchema, GrowthConfigurationResetSchema, GrowthConfigurationThresholdsSchema, GrowthConfigurationUpdateSchema, GrowthOpportunitiesQuerySchema, GrowthOpportunityUpdateSchema, HEADER_PATTERNS, HeaderRuleSchema, HeaderRulesSchema, HealthResponseSchema, HomeRailRollupsRequestSchema, INSTALLATION_KINDS, INSTALLATION_TYPES, INTERNAL_ERRORS, IdentityIntentActionSchema, IdentityIntentRequestSchema, IdentityIntentSchema, IdentityIntentStateSchema, IdentityObservationSchema, ImmutableArtifactLocatorSchema, ImportIssueV2Schema, InstructPayloadSchema, IntegrationTypeSchema, IpRangeCollectionSchema, IpRangeRuleSchema, IssueTaskGrantSchema, JafarParseError, KNOWN_AGENT_PATTERNS, KYAOS_PROTOCOL_ERRORS, KYA_A2A_EXTENSION, KYA_HTTP_ERROR, KYA_HTTP_ERROR_STATUS, KYA_OS_HANDSHAKE_METHODS, KYA_OS_WIRE_METHODS, KeyboardEventSchema, LOWERCASE_ERRORS, LinearActivityGateSchema, LinearActivityObservationSummarySchema, LinearInstallationAuthorizationSchema, LinearInstallationProviderStatusSchema, LinearInstallationStatusReasonSchema, LinearInstallationStatusSchema, LinearInstallationWorkflowSchema, LinearObsoleteActivityListSchema, LinearObsoleteActivitySchema, ListProvisioningOrganizationsRequestSchema, ListProvisioningOrganizationsResponseSchema, MANAGEMENT_ACCESS_PREFIX, MANAGEMENT_AUDIENCE, MANAGEMENT_CLIENT_ID, MANAGEMENT_CONSENT_MAX_ORGANIZATIONS, MANAGEMENT_CONSENT_MAX_PROJECTS, MANAGEMENT_DEVICE_INTERVAL, MANAGEMENT_REFRESH_PREFIX, MANAGEMENT_USER_CODE_ALPHABET, MATCH_ACTIONS, MAX_ALLOWED_DOMAINS, MAX_ALLOWED_DOMAIN_LENGTH, MAX_BULK_BATCH_SIZE, MAX_ED25519_KEY_BODY_LENGTH, MAX_POSTURE_REPORT_PATHS, MAX_POSTURE_REPORT_PATH_LENGTH, MAX_REASON_CODES_HEADER_BYTES, MAX_REASON_CODES_ON_WIRE, MAX_TASK_GRANT_DAYS, MAX_TASK_GRANT_DEPTH, MCPI_HASHED_USER_ID_PREFIX, MCPI_ORG_DID_HOST, MCP_CLIENT_DID_HOST, MOBILE_PATTERNS, ManagementAccessTokenSchema, ManagementAuthorizeQuerySchema, ManagementConsentContextSchema, ManagementConsentSchema, ManagementDeviceDescriptionSchema, ManagementDeviceRequestSchema, ManagementDeviceResponseSchema, ManagementDomainErrorSchema, ManagementErrorCodeSchema, ManagementErrorReasonSchema, ManagementErrorSchema, ManagementLoopbackRedirectSchema, ManagementPostureJwkSchema, ManagementPostureOriginsRequestSchema, ManagementPostureSchema, ManagementPrincipalSchema, ManagementProfileSchema, ManagementProjectNameSchema, ManagementProjectsSchema, ManagementRefreshTokenSchema, ManagementRevokeRequestSchema, ManagementRuntimeKeyPurposeSchema, ManagementRuntimeKeyRequestSchema, ManagementRuntimeKeySchema, ManagementScopeRequestSchema, ManagementScopeSchema, ManagementSessionSchema, ManagementTokenRequestSchema, ManagementTokenResponseSchema, MarketplaceSourceSchema, MaterializationPlanSchema, ModelCredentialFingerprintSchema, ModelCredentialLabelSchema, ModelCredentialListSchema, ModelCredentialProviderSchema, ModelCredentialRefusalCodeSchema, ModelCredentialResultSchema, ModelCredentialRevocationSchema, ModelCredentialSchema, MouseEventSchema, NETWORK_ERRORS, NO_EVIDENCE_CATEGORY, NO_EVIDENCE_EQUALITY_TERM, NO_EVIDENCE_EXCLUSION_TERM, NetworkContextSchema, NetworkTimingSchema, OAUTH_LOWERCASE_ERRORS, OAuth2ProviderSchema, OAuthConnectionStatusSchema, OAuthModeSchema, OAuthProviderMetadataSchema, OAuthProviderTypeSchema, OAuthProvidersMapSchema, OAuthTokensResponseSchema, OS_PATTERNS, OrganizationErrorCode, OrganizationIdSchema, OrganizationRoleSchema, OrganizationSettingsSchema, OrganizationSsoModeSchema, OrganizationSsoProviderSchema, OrganizationSsoSettingsSchema, PACKAGE_NAME, PAGINATION_DEFAULTS, PERFORMANCE_THRESHOLDS, PERMISSION_ERRORS, PINNED_SIGNING_VENDORS, PIXEL_ERRORS, PIXEL_EVENT_LIMITS, PLAN_FEATURE_LIMITS, PLAN_RATE_LIMITS, POLICY_ERRORS, PaginatedResponseSchema, PaginationInfoSchema, ParentIntegrationStatusSchema, PatternUpdateRequestSchema, PerformanceRecalculationRequestSchema, PixelConfigurationSchema, PixelSchema, PixelStatsSchema, PixelTrackingRequestSchema, PixelTrackingResponseSchema, PixelVerificationStatusSchema, PixelsBulkCreateItemSchema, PixelsBulkDeleteItemSchema, PixelsBulkRequestSchema, PixelsBulkUpdateItemSchema, PixelsQuerySchema, PolicyConditionSchema, PolicyConfigSchema, PolicyFetcher, PolicyMetadataSchema, PolicyRuleSchema, PolicyUnavailableError, PostureOriginsSchema, PostureReportPathsSchema, ProjectIdSchema, ProjectIdentitySchema, ProjectSchema, ProjectSettingsSchema, ProjectsBulkCreateItemSchema, ProjectsBulkDeleteItemSchema, ProjectsBulkRequestSchema, ProjectsBulkUpdateItemSchema, ProjectsQuerySchema, ProvidersResponseSchema, ProvisionKeyRequestSchema, ProvisionKeyResponseSchema, ProvisioningAccountLinkRequestSchema, ProvisioningAccountLinkResponseSchema, ProvisioningIdentityProofSchema, ProvisioningModeSchema, ProvisioningOrganizationRoleSchema, ProvisioningOrganizationSummarySchema, ProxyAssertionSchema, ProxyCollectionStateSchema, ProxyInfoSchema, ProxyTypeSchema, QuerySchema, RATE_LIMIT_ERRORS, READABLE_TEXT, READABLE_TEXT_MESSAGE, REGISTERED_SID_MAX_LENGTH, REPORT_AI_AGENT_NAMES, REPORT_AI_CRAWLER_NAMES, RESOURCE_ERRORS, RULESET_HASH_REGEX, RULE_CATEGORIES, RULE_ERRORS, RULE_PATHS, RULE_VERSION, RealtimeEventSchema, RealtimeEventTypeSchema, ReasoningStepSchema, ReassignTaskLeadSchema, RecommendationGenerationSchema, RecommendationQuerySchema, ReconciliationDecisionSetSchema, RedirectTargetSchema, RefreshScopesRequestSchema, RegistryAuthorityStateSchema, ReplaceTaskGrantSchema, ReportedAgentSchema, ReportedDelegationSchema, ReportedIdentitySchema, ReportedPrincipalSchema, RepositoryIdentitySchema, RequestContextSchema, RevokeModelCredentialSchema, RevokeProvisionQuerySchema, RevokeProvisionResponseSchema, RevokeTaskGrantSchema, RevokeWorkloadEnrollmentSchema, RiskAssessmentSchema, RiskScoreSchema, RiskScoreSourceSchema, RotateModelCredentialSchema, RotateWorkloadEnrollmentSchema, RoutingTypeSchema, RuleLoader, RuleMetadataSchema, RuleParser, RuleValidationResultSchema, RuleValidator, SECURITY_LIMITS, SERVICE_TRAFFIC_KEYS, SESSION_ERRORS, SESSION_LIMITS, SHADOW_NOISY_OR_CONFIDENCE_KEY, SID_ATTRIBUTABLE_RESULT, SLUG_REGEX, SUSPICIOUS_HEADERS, SUSPICIOUS_PATTERNS, ScopeSchema, ScrollEventSchema, SdkSessionDataSchema, SessionSchema, ShopifyProjectProvisionRequestSchema, ShopifyProjectProvisionResultSchema, ShopifyProjectSettingsUpdateSchema, ShopifySessionClassSchema, ShopifySessionSchema, ShopifySessionsPaginationSchema, ShopifyStatsResponseSchema, ShopifyThreatSchema, SignatureRuleSchema, SingleItemResponseSchema, SsoLinkRequestSchema, SsoLinkResponseSchema, StaleReasonSchema, StaleReasonsSchema, StaleVendorRangesError, StartLinearInstallationSchema, StatsResponseSchema, StatsUpdateEventSchema, SuggestedActionSchema, TASK_ADMISSION_PROTOCOLS, TASK_ADMISSION_RESEND, TIME_WINDOWS, TLSFingerprintSchema, TRADITIONAL_BOT_PATTERNS, TRAFFIC_TAXONOMY_BUCKETS, TRUSTED_BOTS, TaskAdmissionProtocolSchema, TaskGrantAdmissionRequestSchema, TaskGrantAdmissionSchema, TaskGrantAllowanceSchema, TaskGrantArgumentsSchema, TaskGrantBindingSchema, TaskGrantEffectiveStatusSchema, TaskGrantHolderListRequestSchema, TaskGrantIssueResultSchema, TaskGrantListSchema, TaskGrantRevocationSchema, TaskGrantSchema, TaskGrantStatusRequestSchema, TaskGrantStatusSchema, TaskGrantStatusValueSchema, TaskGrantViewSchema, TaskLeadAssignmentSchema, TaskLeadPoolSchema, TaskMailboxClaimRequestSchema, TaskMailboxClaimSchema, TaskMailboxProtocolSchema, TaskMailboxResultSchema, TaskMailboxScopeSchema, TaskMailboxSettlementSchema, TaskMailboxStatusRequestSchema, TaskMailboxStatusSchema, TaskModelInvokeSchema, TaskModelMessagesSchema, TaskModelPolicySchema, TaskModelReceiptSchema, TaskModelStatusSchema, TaskModelUsageSchema, TaskProjectionEvidenceSchema, TaskProjectionStateSchema, TaskSourceIntentSchema, TaskSourceProviderConfigSchema, TaskSourceProviderSchema, TaskStandingActionSchema, TaskStandingAdmissionReceiptBaseSchema, TaskStandingAdmissionRequestBaseSchema, TaskStandingAdmissionRequestSchema, TaskStandingAdmissionSchema, TaskStandingCapabilitySchema, TaskStandingLimitsSchema, TaskStandingPolicySchema, TaskStandingReconcileSchema, TaskStatusProjectionListSchema, TaskStatusProjectionSchema, TestDetectionRequestSchema, ThresholdConfigSchema, TouchEventSchema, TraceStepSchema, TrackDependencyV2Schema, TrackingReadinessReasonCodeSchema, TrackingReadinessSchema, UNCALIBRATED_NOISY_OR_PRIOR, UNNAMED_AGENT_LABEL, UPDATE_FREQUENCIES, USER_AGENT_PATTERNS, UUID_PATTERN, UpdateApiKeySchema, UpdateBouncerConfigSchema, UpdateOrganizationInputSchema, UpdateOrganizationSchema, UpdatePixelSchema, UpdateProjectSchema, UpdateSettingsSchema, UserAgentRuleSchema, UserPlanSchema, UserSchema, VALIDATION_ERRORS, VALIDATION_MODES, VALIDATION_PATTERNS, VAULT_ERRORS, VERDICT_COOKIE_NAME, VERSION, VerdictEvidenceSchema, VerificationRequestSchema, VerificationResponseSchema, VerificationTokenSchema, WEBHOOK_LIMITS, WorkloadEnrollmentChallengeSchema, WorkloadEnrollmentListSchema, WorkloadEnrollmentProofPayloadSchema, WorkloadEnrollmentResultSchema, WorkloadEnrollmentRevocationSchema, WorkloadEnrollmentSchema, WorkloadRotationProofPayloadSchema, acceptsHtml, adminAccountsQuerySchema, adminOverviewQuerySchema, analyzePolicySource, approvalQuorumForRequest, assertVendorRangesFresh, assignmentChangeRequestSchema, auditLogQuerySchema, base58btcDecode, base58btcEncode, batchAssignmentRequestSchema, bespokePolicyLabel, blockDelegationVerdict, blockEqualityLiterals, buildChallengeWire, buildDelegationBearerHeader, buildDelegationChallengeBody, buildDelegationChallengeEnvelope, buildDelegationChallengeHeader, buildDelegationInstructions, buildInitialStepsState, buildKnownPatternLookup, buildVerdictEvidence, calculateDeployProgress, cedarQuotedValueRegExp, classifyAgentTaxonomy, classifyResponseShape, claudeRuntimeLabel, compressIpv6, computeEntropyConfidence, contractDigest, createError, createKyaA2AAgentCard, decisionPolicyId, decodeDidKeyEd25519, decodeDidKeyP256, decodeEd25519PublicKeyMultibaseTolerant, defaultSignInHost, defaultSignInHostLabel, deriveConflictId, deriveCorrelationId, deriveDelegationPickupUri, deriveImportIssueId, deriveMcpClientDid, deriveMcpiOrgDid, deriveMcpiUserDid, deriveVerdict, detectionClassToEnum, discoveredToolSchema, encodeDidKeyEd25519, encodeEd25519PublicKeyMultibase, encodeVerdictCookie, enumToDetectionClass, escapeCedarString, extractCorrelationIdFromHeaders, extractMatch, findMatchingPattern, findStaleVendorRanges, formatAgentCategory, formatAgentCategoryInline, formatConfidence, formatReasonCodesHeader, gatewayConfigInputSchema, gatewayConfigSchema, gatewayConnectedAgentSchema, gatewayConnectionsSummarySchema, gatewayInternalDiscoverErrorSchema, gatewayInternalDiscoverSuccessSchema, gatewayInternalToolsListSchema, gatewayToolCallSchema, generateDelegationSid, generateTestId, getBotType, getCategoryBadgeVariant, getCategoryColor, getConfidenceLevel, getRateLimitWindow, getRemainingQuota, getStepInfo, getStepOrder, getVerificationMethodDescription, getVerificationReliability, getVerificationRiskLevel, hasClaudeCodeToken, hasClaudeSearchBotToken, hasClaudeUserToken, hasPinnedSigningVendor, hostMatchesAllowedDomains, ipAddressSchema, isAuthorizedLead, isBespokePolicyId, isBlockingAction, isClaudeProductLabel, isDefaultSignInHostLabel, isDnsLabel, isEngineEnforcing, isHighConfidenceVerification, isKnownAiCrawler, isKyaOsHandshakeMethod, isKyaOsWireMethod, isLegacyDetectionClass, isLegitimateCategory, isLimitExceeded, isMcpiOrgKeyId, isNonNavigablePolicyId, isPolicyUnavailableError, isPrivateOrReservedHost, isTraditionalBot, isUnderAuthDomain, isValidAuthorizationHost, isValidMcpiOrgSlug, lintMissingBaselinePermit, lintUnnarrowedDenyRules, loadRulesAsync, mapDetectionToReasonCodes, mapLegacyAuthType, mapProxyAssertions, mapToLegacyAuthType, matchPath, mcpiOrgKeyFragment, mcpiUserIdSegment, migrateLegacyDetectionClass, modelCredentialFingerprint, nonNavigablePolicyLabel, normalizeAllowedDomainForWrite, normalizeAllowedDomainList, normalizeChallengeType, normalizeClientIp, normalizeConfidence, normalizeDetectionClass, normalizeDetectionClassEnum, normalizeHandshakeMethod, normalizeOrganizationName, normalizePostureReportPath, normalizeStoredAllowedDomain, normalizeWireMethod, oauthClientSchema, parseAcceptedArtifactRevision, parseCedarStatements, parseClaimVerification, parseDependencyBinding, parseImportIssueV2, parseIpv6, parseJafarFeed, parseMaterializationPlan, partial, passwordSchema, pathHasUnnarrowedDenyRuleFor, pathLiteralsInBlock, permitDelegationVerdict, projectResetRequestSchema, readPostureReportPathsSetting, readableText, reconstructConfidenceFromEvidence, refineClaudeDisplayLabel, refineSessionGrainClaudeLabel, requestCarriesDelegationProof, requestPresentedCredential, requiredScopesForRequest, resetPasswordSchema, resolveAuthorizationHost, resolveBotSignals, resolveChallengeContext, resolveClientIp, resolveObservedClientAddress, resolveTrustedDelegationRoots, riskScoreColumnValue, riskScoreFromMetadata, riskScoreSourceFromMetadata, safeParsePolicyConfig, safeUrl, selectBodyReadable200, serveBodyReadable200, splitCedarBlocks, statementApplies, statementId, strict, supportsClientSide, supportsHeaders, supportsServerEnhanced, taskGrantArgumentsDigest, testPattern, testPatterns, toBareHost, toCoarseReasonKind, toPercent, toStoredCorrelationId, unescapeCedarString, updateStepsState, upstreamDiscoveryErrorSchema, upstreamServerInputSchema, upstreamServerSchema, validModelAdmission, validate, validateOrThrow, validateRules, validateRulesLoose, validateStepUpQuorum, vaultResolveDataSchema, vaultResolveErrorSchema, vaultResolveMetaSchema, vaultResolveResponseSchema, vaultResolveSuccessSchema, verifyContractRecordIdentity, withNoEvidenceExclusion, withoutTrailingDots };
14040
+ export { A2ARpcEnvelopeSchema, A2ASignedRequestSchema, A2ATaskRequestSchema, A2ATaskSourceConfigSchema, A2ATaskStateSchema, ACCEPT_CHALLENGE_HEADER, ADMIN_ACCOUNTS_STATUS_FILTERS, ADMIN_ACCOUNT_STATUSES, ADMIN_DELTA_BASES, ADMIN_ORG_EXCLUSION_REASONS, ADMIN_OVERVIEW_CACHE_STATUSES, ADMIN_OVERVIEW_LIST_LIMIT_DEFAULT, ADMIN_OVERVIEW_LIST_LIMIT_MAX, ADMIN_OVERVIEW_SECTIONS, ADMIN_OVERVIEW_WINDOWS, ADMIN_TRUSTED_METRICS, AGENT_CATALOG, AGENT_CATEGORY_META, AI_AGENT_HEADERS, ANALYTICS_ERRORS, ANONYMOUS_PRINCIPAL_DID, API_ERRORS, API_REQUEST_LIMITS, ATTESTED_BEARER_MAX_TTL_SECONDS, AUDIT_ERRORS, AUDIT_PROTOCOL_ERRORS, AUTHORIZATION_MODES, AUTH_DOMAIN, AUTH_ERRORS, AcceptanceWithdrawalSchema, AcceptedArtifactRevisionSchema, AccountSchema, AddModelCredentialSchema, AddUpdateProviderRequestSchema, AdminQueryParamsSchema, AgentCategorySchema, AgentClassificationRequestSchema, AgentClassificationResultSchema, AgentClassificationSchema, AgentInfoSchema, AgentPatternSchema, AgentStatisticsSchema, AgentTypeDefinitionSchema, AgentTypeSchema, AllowListEntrySchema, AllowedDomainsSchema, AnalyticsExportParamsSchema, AnalyticsQuerySchema, ApiKeyPermissionSchema, ApiKeyRateLimitsSchema, ApiKeySchema, ApiKeysBulkCreateItemSchema, ApiKeysBulkRequestSchema, ApiKeysBulkRevokeItemSchema, ApiKeysBulkUpdateItemSchema, ApiKeysQuerySchema, ApiResponseSchema, ApplyIdentityIntentSchema, ApproveTaskPublicationSchema, ApprovedTaskPublicationSchema, ArtifactIdentitySchema, AssuranceTierSchema, AuthErrorType, BARE_ERRORS, BASELINE_ALLOW_POLICY_ID, BESPOKE_POLICY_IDS, BILLING_ERRORS, BLOCKED_PATH, BOT_USER_AGENT_PATTERNS, BOUNCER_LOWERCASE_ERRORS, BOUNCER_UPPERCASE_ERRORS, BULK_ERROR_CODES, BaseAuthProviderSchema, BaseBulkRequestSchema, BatchDetectionRequestSchema, BatchDetectionResponseSchema, BatchEventRequestSchema, BatchEventResponseSchema, BehavioralAnalysisSchema, BehavioralDataSchema, BehavioralPatternSchema, BehavioralRulesSchema, BehavioralThresholdSchema, BindingStatusSchema, BlockEventSchema, BlockReasonSchema, BouncerConfigSchema, BulkDeletePreviewStatsSchema, BulkDeleteResponseSchema, BulkOperationOptionsSchema, BulkOperationTypeSchema, BulkResponseSchema, BulkResultItemSchema, ByteBoundedMemo, CACHE_LIMITS, CACHE_TTL, CLI_PAIRING_FRAMEWORKS, CLI_PAIRING_PROTOCOL_VERSION, CLI_PAIRING_UPGRADE_MESSAGE, CLOUD_PROVIDER_RANGES, CONDITION_FIELDS, CONDITION_OPERATORS, CONFIDENCE_THRESHOLDS, CORRELATION_ID_HEADER, CRISPBudgetSchema, CURRENT_POLICY_VERSION, ChallengeParamsSchema, ChallengeWireError, ClaimVerificationSchema, CliIdentityQuerySchema, CliIdentityServiceSchema, CliIdentitySummarySchema, CliPairingApprovedClaimSchema, CliPairingClaimSchema, CliPairingExchangeDataSchema, CliPairingExchangeRequestSchema, CliPairingPrivateStatusDataSchema, CliPairingProofSchema, CliPairingRegisterDataSchema, CliPairingRegisterRequestSchema, ClickEventSchema, ClientDetectionSchema, CollectFingerprintRequestSchema, CollectFingerprintResponseSchema, CollectedDataSchema, ConditionFieldSchema, ConditionOperatorSchema, ConditionValueSchema, ConfidenceBreakdownSchema, ConfidenceLevelSchema, ConfidenceThresholdSchema, ConfidenceUtils, ConfigureLinearInstallationSchema, ConfigureLinearInstallationV2Schema, ConfigureTaskSourceInstallationSchema, ConfiguredProviderSchema, ConsentAgentMetadataSchema, ConsentAssuranceNotesSchema, ConsentBrandingSchema, ConsentCapabilityGroupSchema, ConsentCapabilitySchema, ConsentConfigMetadataSchema, ConsentConfigSchema, ConsentInputCopySchema, ConsentPolicyCapabilitySchema, ConsentPolicyResponseSchema, ConsentPolicyRiskLevelSchema, ConsentScopeLabelsSchema, ConsentSignInCopySchema, ConsentTermsSchema, ConsentUISchema, ConsumedArtifactSchema, CorrelationIdSchema, CreateApiKeySchema, CreateOrganizationInputSchema, CreateOrganizationSchema, CreatePixelSchema, CreateProjectSchema, CreateProvisioningOrganizationRequestSchema, CreateProvisioningOrganizationResponseSchema, CredentialProviderSchema, CustomRuleSchema, DATABASE_LIMITS, DEFAULT_ADMIN_OVERVIEW_WINDOW, DEFAULT_AGENT_TYPES, DEFAULT_AUTHORIZATION_HOST, DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, DEFAULT_MAX_VENDOR_RANGE_AGE_MS, DEFAULT_POLICY, DEFAULT_RULE_PRIORITY, DEFAULT_THRESHOLDS, DELEGATION_PROOF_HEADERS, DEPLOY_ERRORS, DEPLOY_STEPS, DETECTION_ERRORS, DETECTION_LIMITS, DETECTION_REASON_CODES, DETECTION_REQUEST_LIMITS, DashboardStatsRequestSchema, DatabaseDetectionMetadataSchema, DecisionSchema, DelegationAuditSourceSchema, DelegationAuditSummarySchema, DelegationConstraintSummarySchema, DelegationEffectiveStatusSchema, DelegationExportChannelSchema, DelegationExportRecordSchema, DelegationExposureSchema, DelegationListStatusFilterSchema, DelegationManagementDetailSchema, DelegationManagementItemSchema, DelegationManagementListSchema, DelegationResultSchema, DelegationRevokeRequestSchema, DelegationRevokeResponseSchema, DelegationStoredStatusSchema, DelegationVerifiedBySchema, DeleteAccountSchema, DenyListEntrySchema, DependencyBindingSchema, DeployProgressEventSchema, DeployStepIdSchema, DeployStepStateSchema, DeployStepStatusSchema, DeploymentMetadataSchema, DetectionClassSchema, DetectionDetailSchema, DetectionEventSchema, DetectionInputSchema, DetectionLogSchema, DetectionModeSchema, DetectionOptionsSchema, DetectionReasonCodeSchema, DetectionReasoningSchema, DetectionRequestSchema, DetectionResponseSchema, DetectionResultSchema, DetectionRulesSchema, DetectionSignalExposureSchema, DetectionSignalSchema, DidCommTaskSourceBindingSchema, DidCommTaskSourceConfigSchema, DidCommTaskSourceMessageSchema, DiscordTaskSourceConfigSchema, ENFORCEMENT_ACTIONS, ENFORCEMENT_MODES, ENTROPY_CONFIDENCE_CEILING, ENTROPY_CONFIDENCE_FLOOR, ERROR_CATEGORIES, ERROR_CODES, ERROR_MESSAGES, ERROR_STATUS_CODES, EXCLUSION_BUCKETS, EXPORT_LIMITS, EnforcementActionSchema, EnforcementModeSchema, EngineInfoSchema, EnrollWorkloadSchema, ErrorResponseSchema, EventCountLimitsSettingSchema, EventTrackingRequestSchema, EventTrackingResponseSchema, ExportAnalyticsSchema, FAIL_CLOSED_BODY, FAIL_CLOSED_HEADERS, FAIL_CLOSED_STATUS, FingerprintAnalysisSchema, FingerprintRecordSchema, FingerprintResponseSchema, FleetPullRequestReceiptSchema, ForgeabilityRiskSchema, GATEWAY_VAULT_ERRORS, GitHubTaskSourceConfigSchema, GrowthBatchRequestSchema, GrowthConfigurationResetSchema, GrowthConfigurationThresholdsSchema, GrowthConfigurationUpdateSchema, GrowthOpportunitiesQuerySchema, GrowthOpportunityUpdateSchema, HeaderRuleSchema, HeaderRulesSchema, HealthResponseSchema, HomeRailRollupsRequestSchema, INSTALLATION_KINDS, INSTALLATION_TYPES, INTERNAL_ERRORS, IdentityIntentActionSchema, IdentityIntentRequestSchema, IdentityIntentSchema, IdentityIntentStateSchema, IdentityObservationSchema, ImmutableArtifactLocatorSchema, ImportIssueV2Schema, InstructPayloadSchema, IntegrationTypeSchema, IpEventCountsSchema, IpRangeCollectionSchema, IpRangeRuleSchema, IpReputationSchema, IpRoutingTypeSchema, IssueTaskGrantSchema, JafarParseError, KNOWN_AGENT_PATTERNS, KYAOS_PROTOCOL_ERRORS, KYA_A2A_EXTENSION, KYA_HTTP_ERROR, KYA_HTTP_ERROR_STATUS, KYA_OS_HANDSHAKE_METHODS, KYA_OS_WIRE_METHODS, KYA_SIGNED_BODY_MAX_BYTES, KeyboardEventSchema, LOWERCASE_ERRORS, LinearActivityGateSchema, LinearActivityObservationSummarySchema, LinearInstallationAuthorizationSchema, LinearInstallationProviderStatusSchema, LinearInstallationStatusReasonSchema, LinearInstallationStatusSchema, LinearInstallationWorkflowSchema, LinearObsoleteActivityListSchema, LinearObsoleteActivitySchema, ListProvisioningOrganizationsRequestSchema, ListProvisioningOrganizationsResponseSchema, MANAGEMENT_ACCESS_PREFIX, MANAGEMENT_AUDIENCE, MANAGEMENT_CLIENT_ID, MANAGEMENT_CONSENT_MAX_ORGANIZATIONS, MANAGEMENT_CONSENT_MAX_PROJECTS, MANAGEMENT_DEVICE_INTERVAL, MANAGEMENT_REFRESH_PREFIX, MANAGEMENT_USER_CODE_ALPHABET, MATCH_ACTIONS, MAX_ALLOWED_DOMAINS, MAX_ALLOWED_DOMAIN_LENGTH, MAX_BULK_BATCH_SIZE, MAX_ED25519_KEY_BODY_LENGTH, MAX_POSTURE_REPORT_PATHS, MAX_POSTURE_REPORT_PATH_LENGTH, MAX_REASON_CODES_HEADER_BYTES, MAX_REASON_CODES_ON_WIRE, MAX_TASK_GRANT_DAYS, MAX_TASK_GRANT_DEPTH, MCPI_HASHED_USER_ID_PREFIX, MCPI_ORG_DID_HOST, MCP_CLIENT_DID_HOST, ManagementAccessTokenSchema, ManagementAuthorizeQuerySchema, ManagementConsentContextSchema, ManagementConsentSchema, ManagementDeviceDescriptionSchema, ManagementDeviceRequestSchema, ManagementDeviceResponseSchema, ManagementDomainErrorSchema, ManagementErrorCodeSchema, ManagementErrorReasonSchema, ManagementErrorSchema, ManagementLoopbackRedirectSchema, ManagementPostureJwkSchema, ManagementPostureOriginsRequestSchema, ManagementPostureSchema, ManagementPrincipalSchema, ManagementProfileSchema, ManagementProjectNameSchema, ManagementProjectsSchema, ManagementRefreshTokenSchema, ManagementRevokeRequestSchema, ManagementRuntimeKeyPurposeSchema, ManagementRuntimeKeyRequestSchema, ManagementRuntimeKeySchema, ManagementScopeRequestSchema, ManagementScopeSchema, ManagementSessionSchema, ManagementTokenRequestSchema, ManagementTokenResponseSchema, MarketplaceSourceSchema, MaterializationPlanSchema, ModelCredentialFingerprintSchema, ModelCredentialLabelSchema, ModelCredentialListSchema, ModelCredentialProviderSchema, ModelCredentialRefusalCodeSchema, ModelCredentialResultSchema, ModelCredentialRevocationSchema, ModelCredentialSchema, MouseEventSchema, NETWORK_ERRORS, NO_EVIDENCE_CATEGORY, NO_EVIDENCE_EQUALITY_TERM, NO_EVIDENCE_EXCLUSION_TERM, NetworkContextSchema, NetworkTimingSchema, OAUTH_LOWERCASE_ERRORS, OAuth2ProviderSchema, OAuthConnectionStatusSchema, OAuthModeSchema, OAuthProviderMetadataSchema, OAuthProviderTypeSchema, OAuthProvidersMapSchema, OAuthTokensResponseSchema, OrganizationErrorCode, OrganizationIdSchema, OrganizationRoleSchema, OrganizationSettingsSchema, OrganizationSsoModeSchema, OrganizationSsoProviderSchema, OrganizationSsoSettingsSchema, PACKAGE_NAME, PAGINATION_DEFAULTS, PERFORMANCE_THRESHOLDS, PERMISSION_ERRORS, PINNED_SIGNING_VENDORS, PIXEL_ERRORS, PIXEL_EVENT_LIMITS, PLAN_FEATURE_LIMITS, PLAN_RATE_LIMITS, POLICY_ERRORS, PaginatedResponseSchema, PaginationInfoSchema, ParentIntegrationStatusSchema, PatternUpdateRequestSchema, PerformanceRecalculationRequestSchema, PixelConfigurationSchema, PixelSchema, PixelStatsSchema, PixelTrackingRequestSchema, PixelTrackingResponseSchema, PixelVerificationStatusSchema, PixelsBulkCreateItemSchema, PixelsBulkDeleteItemSchema, PixelsBulkRequestSchema, PixelsBulkUpdateItemSchema, PixelsQuerySchema, PolicyAuthError, PolicyConditionSchema, PolicyConfigSchema, PolicyFetcher, PolicyMetadataSchema, PolicyRuleSchema, PolicyUnavailableError, PostureOriginsSchema, PostureReportPathsSchema, ProjectIdSchema, ProjectIdentitySchema, ProjectSchema, ProjectSettingsSchema, ProjectsBulkCreateItemSchema, ProjectsBulkDeleteItemSchema, ProjectsBulkRequestSchema, ProjectsBulkUpdateItemSchema, ProjectsQuerySchema, ProvidersResponseSchema, ProvisionKeyRequestSchema, ProvisionKeyResponseSchema, ProvisioningAccountLinkRequestSchema, ProvisioningAccountLinkResponseSchema, ProvisioningIdentityProofSchema, ProvisioningModeSchema, ProvisioningOrganizationRoleSchema, ProvisioningOrganizationSummarySchema, ProxyAssertionSchema, ProxyCollectionStateSchema, ProxyInfoSchema, ProxyTypeSchema, QuerySchema, RATE_LIMIT_ERRORS, READABLE_TEXT, READABLE_TEXT_MESSAGE, REGISTERED_SID_MAX_LENGTH, REPORT_AI_AGENT_NAMES, REPORT_AI_CRAWLER_NAMES, REQUEST_FLAG_BITS_FIELD, REQUEST_FLAG_BITS_VERSION, REQUEST_FLAG_KINDS, REQUEST_FLAG_REGISTRY, REQUEST_LABELLING_FLAGS, REQUEST_LABELLING_FLAG_KINDS, RESOURCE_ERRORS, RULESET_HASH_REGEX, RULE_CATEGORIES, RULE_ERRORS, RULE_PATHS, RULE_VERSION, RealtimeEventSchema, RealtimeEventTypeSchema, ReasoningStepSchema, ReassignTaskLeadSchema, RecommendationGenerationSchema, RecommendationQuerySchema, ReconciliationDecisionSetSchema, RedirectTargetSchema, RefreshScopesRequestSchema, RegistryAuthorityStateSchema, ReplaceTaskGrantSchema, ReportedAgentSchema, ReportedDelegationSchema, ReportedIdentitySchema, ReportedPrincipalSchema, ReportedProxyTypeSchema, RepositoryIdentitySchema, RequestContextSchema, RequestFlagLabelMatrixEntrySchema, RequestFlagLabelMatrixSchema, RequestFlagLabelMatrixWriteSchema, RevokeModelCredentialSchema, RevokeProvisionQuerySchema, RevokeProvisionResponseSchema, RevokeTaskGrantSchema, RevokeWorkloadEnrollmentSchema, RiskAssessmentSchema, RiskScoreSchema, RiskScoreSourceSchema, RotateModelCredentialSchema, RotateWorkloadEnrollmentSchema, RoutingTypeSchema, RuleLoader, RuleMetadataSchema, RuleParser, RuleValidationResultSchema, RuleValidator, SECURITY_LIMITS, SERVICE_TRAFFIC_KEYS, SESSION_ERRORS, SESSION_LIMITS, SESSION_VELOCITY_BUCKET_MS, SESSION_VELOCITY_BUCKET_SECONDS, SESSION_VELOCITY_EXPIRY_SKEW_SECONDS, SESSION_VELOCITY_PARTITIONS, SESSION_VELOCITY_SKETCH_COLUMNS, SESSION_VELOCITY_SKETCH_COLUMN_HEX_DIGITS, SESSION_VELOCITY_SKETCH_COUNTER_MAX, SESSION_VELOCITY_SKETCH_ROWS, SESSION_VELOCITY_WRITE_COUNTER_INDEX, SHADOW_NOISY_OR_CONFIDENCE_KEY, SID_ATTRIBUTABLE_RESULT, SLUG_REGEX, SUSPICIOUS_HEADERS, ScopeSchema, ScrollEventSchema, SdkSessionDataSchema, SessionSchema, ShopifyProjectProvisionRequestSchema, ShopifyProjectProvisionResultSchema, ShopifyProjectSettingsUpdateSchema, ShopifySessionClassSchema, ShopifySessionSchema, ShopifySessionsPaginationSchema, ShopifyStatsResponseSchema, ShopifyThreatSchema, SignatureRuleSchema, SingleItemResponseSchema, SsoLinkRequestSchema, SsoLinkResponseSchema, StaleReasonSchema, StaleReasonsSchema, StaleVendorRangesError, StartLinearInstallationSchema, StatsResponseSchema, StatsUpdateEventSchema, SuggestedActionSchema, TASK_ADMISSION_PROTOCOLS, TASK_ADMISSION_RESEND, TIMEZONE_COUNTRY_MAP, TIME_WINDOWS, TLSFingerprintSchema, TRADITIONAL_BOT_PATTERNS, TRAFFIC_TAXONOMY_BUCKETS, TaskAdmissionProtocolSchema, TaskGrantAdmissionRequestSchema, TaskGrantAdmissionSchema, TaskGrantAllowanceSchema, TaskGrantArgumentsSchema, TaskGrantBindingSchema, TaskGrantEffectiveStatusSchema, TaskGrantHolderListRequestSchema, TaskGrantIssueResultSchema, TaskGrantListSchema, TaskGrantRevocationSchema, TaskGrantSchema, TaskGrantStatusRequestSchema, TaskGrantStatusSchema, TaskGrantStatusValueSchema, TaskGrantViewSchema, TaskLeadAssignmentSchema, TaskLeadPoolSchema, TaskMailboxClaimRequestSchema, TaskMailboxClaimSchema, TaskMailboxProtocolSchema, TaskMailboxResultSchema, TaskMailboxScopeSchema, TaskMailboxSettlementSchema, TaskMailboxStatusRequestSchema, TaskMailboxStatusSchema, TaskModelInvokeSchema, TaskModelMessagesSchema, TaskModelPolicySchema, TaskModelReceiptSchema, TaskModelStatusSchema, TaskModelUsageSchema, TaskProjectionEvidenceSchema, TaskProjectionStateSchema, TaskSourceIntentSchema, TaskSourceProviderConfigSchema, TaskSourceProviderSchema, TaskStandingActionSchema, TaskStandingAdmissionReceiptBaseSchema, TaskStandingAdmissionRequestBaseSchema, TaskStandingAdmissionRequestSchema, TaskStandingAdmissionSchema, TaskStandingCapabilitySchema, TaskStandingLimitsSchema, TaskStandingPolicySchema, TaskStandingReconcileSchema, TaskStatusProjectionListSchema, TaskStatusProjectionSchema, TestDetectionRequestSchema, ThresholdConfigSchema, TouchEventSchema, TraceStepSchema, TrackDependencyV2Schema, TrackingReadinessReasonCodeSchema, TrackingReadinessSchema, UNCALIBRATED_NOISY_OR_PRIOR, UNKNOWN_FLAG_BIT_PREFIX, UNNAMED_AGENT_LABEL, UPDATE_FREQUENCIES, UUID_PATTERN, UpdateApiKeySchema, UpdateBouncerConfigSchema, UpdateOrganizationInputSchema, UpdateOrganizationSchema, UpdatePixelSchema, UpdateProjectSchema, UpdateSettingsSchema, UserAgentRuleSchema, UserPlanSchema, UserSchema, VALIDATION_ERRORS, VALIDATION_MODES, VALIDATION_PATTERNS, VAULT_ERRORS, VELOCITY_ESCALATION_FLOORS, VERDICT_COOKIE_NAME, VERDICT_DICTIONARIES, VERDICT_RULES_BOUNDS, VERSION, VerdictEvidenceSchema, VerificationRequestSchema, VerificationResponseSchema, VerificationTokenSchema, WEBHOOK_LIMITS, WorkloadEnrollmentChallengeSchema, WorkloadEnrollmentListSchema, WorkloadEnrollmentProofPayloadSchema, WorkloadEnrollmentResultSchema, WorkloadEnrollmentRevocationSchema, WorkloadEnrollmentSchema, WorkloadRotationProofPayloadSchema, acceptsHtml, adminAccountsQuerySchema, adminOverviewQuerySchema, analyzePolicySource, approvalQuorumForRequest, assertVendorRangesFresh, assignmentChangeRequestSchema, auditLogQuerySchema, base58btcDecode, base58btcEncode, batchAssignmentRequestSchema, bespokePolicyLabel, blockDelegationVerdict, blockEqualityLiterals, buildChallengeWire, buildDelegationBearerHeader, buildDelegationChallengeBody, buildDelegationChallengeEnvelope, buildDelegationChallengeHeader, buildDelegationInstructions, buildInitialStepsState, buildKnownPatternLookup, buildVerdictEvidence, calculateDeployProgress, cedarQuotedValueRegExp, checkTimezoneCountryContradiction, classifyAgentTaxonomy, classifyResponseShape, claudeRuntimeLabel, compareForwardedChainShadow, compileEmbeddedVerdictRules, compressIpv6, computeEntropyConfidence, contractDigest, createError, createKyaA2AAgentCard, decisionPolicyId, decodeDidKeyEd25519, decodeDidKeyP256, decodeEd25519PublicKeyMultibaseTolerant, defaultSignInHost, defaultSignInHostLabel, deriveConflictId, deriveCorrelationId, deriveDelegationPickupUri, deriveImportIssueId, deriveMcpClientDid, deriveMcpiOrgDid, deriveMcpiUserDid, deriveVerdict, detectionClassToEnum, discoveredToolSchema, embeddedVerdictRules, embeddedVerdictRulesSha256, encodeDidKeyEd25519, encodeEd25519PublicKeyMultibase, encodeVerdictCookie, enumToDetectionClass, escapeCedarString, extractCorrelationIdFromHeaders, extractMatch, findMatchingPattern, findStaleVendorRanges, formatAgentCategory, formatAgentCategoryInline, formatConfidence, formatReasonCodesHeader, gatewayConfigInputSchema, gatewayConfigSchema, gatewayConnectedAgentSchema, gatewayConnectionsSummarySchema, gatewayInternalDiscoverErrorSchema, gatewayInternalDiscoverSuccessSchema, gatewayInternalToolsListSchema, gatewayToolCallSchema, generateDelegationSid, generateTestId, getCategoryBadgeVariant, getCategoryColor, getConfidenceLevel, getRateLimitWindow, getRemainingQuota, getStepInfo, getStepOrder, getVerificationMethodDescription, getVerificationReliability, getVerificationRiskLevel, hasClaudeCodeToken, hasClaudeSearchBotToken, hasClaudeUserToken, hasPinnedSigningVendor, hostMatchesAllowedDomains, ipAddressSchema, isAuthorizedLead, isBespokePolicyId, isBlockingAction, isClaudeProductLabel, isDefaultSignInHostLabel, isDnsLabel, isEngineEnforcing, isHighConfidenceVerification, isKnownAiCrawler, isKyaOsHandshakeMethod, isKyaOsWireMethod, isLegacyDetectionClass, isLegitimateCategory, isLimitExceeded, isMcpiOrgKeyId, isNonNavigablePolicyId, isPolicyAuthError, isPolicyUnavailableError, isPrivateOrReservedHost, isUnderAuthDomain, isValidAuthorizationHost, isValidMcpiOrgSlug, isVerdictDictionaryId, lintMissingBaselinePermit, lintUnnarrowedDenyRules, loadRulesAsync, mapDetectionToReasonCodes, mapLegacyAuthType, mapProxyAssertions, mapToLegacyAuthType, matchPath, mcpiOrgKeyFragment, mcpiUserIdSegment, migrateLegacyDetectionClass, modelCredentialFingerprint, nonNavigablePolicyLabel, normalizeAllowedDomainForWrite, normalizeAllowedDomainList, normalizeChallengeType, normalizeClientIp, normalizeConfidence, normalizeDetectionClass, normalizeDetectionClassEnum, normalizeHandshakeMethod, normalizeOrganizationName, normalizePostureReportPath, normalizeStoredAllowedDomain, normalizeWireMethod, oauthClientSchema, packRequestFlags, parseAcceptedArtifactRevision, parseCedarStatements, parseClaimVerification, parseDependencyBinding, parseImportIssueV2, parseIpv6, parseJafarFeed, parseMaterializationPlan, partial, passwordSchema, pathHasUnnarrowedDenyRuleFor, pathLiteralsInBlock, permitDelegationVerdict, projectResetRequestSchema, readBodyBounded, readPostureReportPathsSetting, readableText, reasonCodeForSignalSource, reconstructConfidenceFromEvidence, refineClaudeDisplayLabel, refineSessionGrainClaudeLabel, relayedRequestTarget, reportedProxyType, requestCarriesDelegationProof, requestDeclaresBody, requestPresentedCredential, requestPresentsKyaSignature, requiredScopesForRequest, resetPasswordSchema, resolveAuthorizationHost, resolveBotSignals, resolveChallengeContext, resolveClientIp, resolveForwardedChainShadow, resolveObservedClientAddress, resolveTimezoneCountry, resolveTrustedDelegationRoots, riskScoreColumnValue, riskScoreFromMetadata, riskScoreSourceFromMetadata, safeParsePolicyConfig, safeUrl, selectBodyReadable200, serveBodyReadable200, sessionVelocityBucket, sessionVelocityBucketStart, sessionVelocityExpirySeconds, sessionVelocityPartition, sessionVelocitySketchCells, splitCedarBlocks, statementApplies, statementId, strict, supportsClientSide, supportsHeaders, supportsServerEnhanced, taskGrantArgumentsDigest, testPattern, testPatterns, toBareHost, toCoarseReasonKind, toPercent, toStoredCorrelationId, unescapeCedarString, unpackRequestFlags, updateStepsState, upstreamDiscoveryErrorSchema, upstreamServerInputSchema, upstreamServerSchema, validModelAdmission, validate, validateOrThrow, validateRules, validateRulesLoose, validateStepUpQuorum, vaultResolveDataSchema, vaultResolveErrorSchema, vaultResolveMetaSchema, vaultResolveResponseSchema, vaultResolveSuccessSchema, verdictShardIndexFor, verifyContractRecordIdentity, withNoEvidenceExclusion, withoutTrailingDots };
13476
14041
  //# sourceMappingURL=index.mjs.map