@kya-os/checkpoint-shared 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/dist/base64url-BbVG8f-v.js +65 -0
- package/dist/base64url-D2MvsR20.mjs +49 -0
- package/dist/base64url-D2MvsR20.mjs.map +1 -0
- package/dist/beacon-forward-secret/index.d.mts +4 -0
- package/dist/beacon-forward-secret/index.d.mts.map +1 -0
- package/dist/beacon-forward-secret/index.d.ts +4 -0
- package/dist/beacon-forward-secret/index.d.ts.map +1 -0
- package/dist/beacon-forward-secret/index.js +15 -0
- package/dist/beacon-forward-secret/index.mjs +15 -0
- package/dist/beacon-forward-secret/index.mjs.map +1 -0
- package/dist/beacon-types/index.d.mts +53 -1
- package/dist/beacon-types/index.d.mts.map +1 -1
- package/dist/beacon-types/index.d.ts +53 -1
- package/dist/beacon-types/index.d.ts.map +1 -1
- package/dist/beacon-types/index.js +86 -1
- package/dist/beacon-types/index.mjs +77 -2
- package/dist/beacon-types/index.mjs.map +1 -1
- package/dist/{browser-posture-5fPrsxx7.d.mts → browser-posture-WPk0kl9u.d.mts} +18 -1
- package/dist/browser-posture-WPk0kl9u.d.mts.map +1 -0
- package/dist/{browser-posture-CCR1kh5e.d.ts → browser-posture-_y6BcdXw.d.ts} +18 -1
- package/dist/browser-posture-_y6BcdXw.d.ts.map +1 -0
- package/dist/browser-posture-cookie.mjs.map +1 -1
- package/dist/browser-posture-proof-verifier.js +136 -5
- package/dist/browser-posture-proof-verifier.mjs +134 -2
- package/dist/browser-posture-proof-verifier.mjs.map +1 -0
- package/dist/browser-posture-proof.d.mts +1 -1
- package/dist/browser-posture-proof.d.ts +1 -1
- package/dist/browser-posture-proof.js +1 -1
- package/dist/browser-posture-proof.mjs +1 -1
- package/dist/browser-posture-report.d.mts +17 -0
- package/dist/browser-posture-report.d.mts.map +1 -1
- package/dist/browser-posture-report.d.ts +17 -0
- package/dist/browser-posture-report.d.ts.map +1 -1
- package/dist/browser-posture.d.mts +1 -1
- package/dist/browser-posture.d.ts +1 -1
- package/dist/browser-posture.js +18 -1
- package/dist/browser-posture.mjs +18 -1
- package/dist/browser-posture.mjs.map +1 -1
- package/dist/browser.d.mts +10 -0
- package/dist/browser.d.mts.map +1 -1
- package/dist/browser.d.ts +10 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/browser.mjs.map +1 -1
- package/dist/canonical-signer/index.d.mts.map +1 -1
- package/dist/canonical-signer/index.d.ts.map +1 -1
- package/dist/canonical-signer/index.js +0 -4
- package/dist/canonical-signer/index.mjs +0 -4
- package/dist/canonical-signer/index.mjs.map +1 -1
- package/dist/{client-ip-B7w-uHfS.d.ts → client-ip-8KneiMK0.d.mts} +12 -2
- package/dist/{client-ip-B7w-uHfS.d.mts.map → client-ip-8KneiMK0.d.mts.map} +1 -1
- package/dist/{client-ip-B7w-uHfS.d.mts → client-ip-8KneiMK0.d.ts} +12 -2
- package/dist/{client-ip-B7w-uHfS.d.ts.map → client-ip-8KneiMK0.d.ts.map} +1 -1
- package/dist/{client-ip-B8wFzJ5f.js → client-ip-BEmLC4I4.js} +71 -0
- package/dist/{client-ip-DIJyr6px.mjs → client-ip-DlHx7GGh.mjs} +61 -2
- package/dist/client-ip-DlHx7GGh.mjs.map +1 -0
- package/dist/client-ip.d.mts +2 -2
- package/dist/client-ip.d.ts +2 -2
- package/dist/client-ip.js +3 -1
- package/dist/client-ip.mjs +2 -2
- package/dist/deploy/index.d.mts.map +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/index.js +5 -1
- package/dist/deploy/index.mjs +5 -1
- package/dist/deploy/index.mjs.map +1 -1
- package/dist/{detection-reason-mapping-CQexNvR7.d.ts → detection-reason-mapping-BemDaDED.d.mts} +5 -2
- package/dist/detection-reason-mapping-BemDaDED.d.mts.map +1 -0
- package/dist/{detection-reason-mapping-CQexNvR7.d.mts → detection-reason-mapping-BemDaDED.d.ts} +5 -2
- package/dist/detection-reason-mapping-BemDaDED.d.ts.map +1 -0
- package/dist/{detection-reason-mapping-B9RSkOs8.js → detection-reason-mapping-BxYaQ8kb.js} +33 -8
- package/dist/{detection-reason-mapping-BGymWIPl.mjs → detection-reason-mapping-j-7bXsVb.mjs} +29 -10
- package/dist/detection-reason-mapping-j-7bXsVb.mjs.map +1 -0
- package/dist/errors/index.d.mts +4 -0
- package/dist/errors/index.d.mts.map +1 -1
- package/dist/errors/index.d.ts +4 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +24 -8
- package/dist/errors/index.mjs +24 -8
- package/dist/errors/index.mjs.map +1 -1
- package/dist/{fetcher-CZfLcbRZ.d.mts → fetcher-CTKz07jg.d.mts} +12 -2
- package/dist/fetcher-CTKz07jg.d.mts.map +1 -0
- package/dist/{fetcher-CCw4Q95g.d.ts → fetcher-DCr920hx.d.ts} +12 -2
- package/dist/fetcher-DCr920hx.d.ts.map +1 -0
- package/dist/gateway-client-ip.js +1 -1
- package/dist/gateway-client-ip.mjs +1 -1
- package/dist/identity-cookie/index.d.mts +14 -0
- package/dist/identity-cookie/index.d.mts.map +1 -0
- package/dist/identity-cookie/index.d.ts +14 -0
- package/dist/identity-cookie/index.d.ts.map +1 -0
- package/dist/identity-cookie/index.js +45 -0
- package/dist/identity-cookie/index.mjs +43 -0
- package/dist/identity-cookie/index.mjs.map +1 -0
- package/dist/index.d.mts +598 -142
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +598 -142
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +793 -198
- package/dist/index.mjs +743 -188
- package/dist/index.mjs.map +1 -1
- package/dist/kya-http.d.mts +2 -2
- package/dist/kya-http.d.ts +2 -2
- package/dist/kya-http.js +2 -1
- package/dist/kya-http.mjs +2 -2
- package/dist/mcpi/dashboard-config/index.mjs.map +1 -1
- package/dist/patterns-CdTh7LU2.d.mts +35 -0
- package/dist/patterns-CdTh7LU2.d.mts.map +1 -0
- package/dist/patterns-CdTh7LU2.d.ts +35 -0
- package/dist/patterns-CdTh7LU2.d.ts.map +1 -0
- package/dist/{patterns-CiMpbdAF.js → patterns-CnNxRnaK.js} +3 -130
- package/dist/{patterns-D4OAsNQY.mjs → patterns-CpRk9R3M.mjs} +5 -96
- package/dist/patterns-CpRk9R3M.mjs.map +1 -0
- package/dist/patterns.d.mts +2 -2
- package/dist/patterns.d.ts +2 -2
- package/dist/patterns.js +1 -7
- package/dist/patterns.mjs +2 -2
- package/dist/policy/fetcher.d.mts +2 -2
- package/dist/policy/fetcher.d.ts +2 -2
- package/dist/policy/fetcher.js +100 -8
- package/dist/policy/fetcher.mjs +99 -9
- package/dist/policy/fetcher.mjs.map +1 -1
- package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs +81 -0
- package/dist/proxy-assertion-mapping-BVwXVSMZ.mjs.map +1 -0
- package/dist/proxy-assertion-mapping-BxhENrcY.d.mts +70 -0
- package/dist/proxy-assertion-mapping-BxhENrcY.d.mts.map +1 -0
- package/dist/proxy-assertion-mapping-D64AyZfG.js +85 -0
- package/dist/proxy-assertion-mapping-DhAynFqG.d.ts +70 -0
- package/dist/proxy-assertion-mapping-DhAynFqG.d.ts.map +1 -0
- package/dist/proxy-assertions.d.mts +2 -0
- package/dist/proxy-assertions.d.ts +2 -0
- package/dist/proxy-assertions.js +4 -0
- package/dist/proxy-assertions.mjs +3 -0
- package/dist/reason-codes.d.mts +2 -2
- package/dist/reason-codes.d.ts +2 -2
- package/dist/reason-codes.js +3 -2
- package/dist/reason-codes.mjs +2 -2
- package/dist/{registered-sid-CnWIU_l1.d.ts → registered-sid-BgDhdj2l.d.mts} +13 -2
- package/dist/registered-sid-BgDhdj2l.d.mts.map +1 -0
- package/dist/{registered-sid-CnWIU_l1.d.mts → registered-sid-BgDhdj2l.d.ts} +13 -2
- package/dist/registered-sid-BgDhdj2l.d.ts.map +1 -0
- package/dist/{registered-sid-BZfDOfXy.js → registered-sid-DG1tSSvl.js} +67 -12
- package/dist/{registered-sid-CS9V8nPr.mjs → registered-sid-D__xiDPu.mjs} +63 -14
- package/dist/registered-sid-D__xiDPu.mjs.map +1 -0
- package/dist/timezone-country-B6PkDyNP.d.mts +15 -0
- package/dist/timezone-country-B6PkDyNP.d.mts.map +1 -0
- package/dist/timezone-country-B6PkDyNP.d.ts +15 -0
- package/dist/timezone-country-B6PkDyNP.d.ts.map +1 -0
- package/dist/timezone-country-CROxU2Tl.js +505 -0
- package/dist/timezone-country-CrrnkOdy.mjs +489 -0
- package/dist/timezone-country-CrrnkOdy.mjs.map +1 -0
- package/dist/timezone-country.d.mts +2 -0
- package/dist/timezone-country.d.ts +2 -0
- package/dist/timezone-country.js +6 -0
- package/dist/timezone-country.mjs +3 -0
- package/dist/tool-protection/index.mjs.map +1 -1
- package/fixtures/detection/cloudflare-alias-parity.json +383 -0
- package/fixtures/detection/reason-codes.json +3 -1
- package/fixtures/detection/signal-exposure-example.json +1 -1
- package/fixtures/iana-tzdata/backward +375 -0
- package/fixtures/iana-tzdata/renamed-zones.json +21 -0
- package/fixtures/iana-tzdata/version +1 -0
- package/fixtures/iana-tzdata/zone.tab +448 -0
- package/fixtures/workbench/management-session.v1.json +20 -0
- package/fixtures/workbench/model-credentials.v1.json +8 -0
- package/fixtures/workbench/task-grant.v1.json +37 -0
- package/package.json +25 -3
- package/src/data/compiled/merged-rules.json +9 -7
- package/dist/browser-posture-5fPrsxx7.d.mts.map +0 -1
- package/dist/browser-posture-CCR1kh5e.d.ts.map +0 -1
- package/dist/browser-posture-proof-verifier-DvsOmFrM.js +0 -202
- package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs +0 -180
- package/dist/browser-posture-proof-verifier-I0HP2Ics.mjs.map +0 -1
- package/dist/client-ip-DIJyr6px.mjs.map +0 -1
- package/dist/detection-reason-mapping-BGymWIPl.mjs.map +0 -1
- package/dist/detection-reason-mapping-CQexNvR7.d.mts.map +0 -1
- package/dist/detection-reason-mapping-CQexNvR7.d.ts.map +0 -1
- package/dist/fetcher-CCw4Q95g.d.ts.map +0 -1
- package/dist/fetcher-CZfLcbRZ.d.mts.map +0 -1
- package/dist/patterns-Bp40cwh2.d.mts +0 -110
- package/dist/patterns-Bp40cwh2.d.mts.map +0 -1
- package/dist/patterns-Bp40cwh2.d.ts +0 -110
- package/dist/patterns-Bp40cwh2.d.ts.map +0 -1
- package/dist/patterns-D4OAsNQY.mjs.map +0 -1
- package/dist/registered-sid-CS9V8nPr.mjs.map +0 -1
- package/dist/registered-sid-CnWIU_l1.d.mts.map +0 -1
- package/dist/registered-sid-CnWIU_l1.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 {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
@@ -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.
|
|
@@ -1112,6 +1078,26 @@ const VerdictEvidenceSchema = object({
|
|
|
1112
1078
|
function signalContribution(signal) {
|
|
1113
1079
|
return signal.weight * (signal.confidence / 100);
|
|
1114
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
|
+
}
|
|
1115
1101
|
/**
|
|
1116
1102
|
* Builds the verdict's evidence list from the engine's raw detection
|
|
1117
1103
|
* signals — allow or block, live or shadow, persisted or not: this is a
|
|
@@ -1134,18 +1120,18 @@ function signalContribution(signal) {
|
|
|
1134
1120
|
*/
|
|
1135
1121
|
function buildVerdictEvidence(signals) {
|
|
1136
1122
|
if (!signals || signals.length === 0) return [];
|
|
1137
|
-
const
|
|
1123
|
+
const parsedSignals = [];
|
|
1138
1124
|
for (const raw of signals) {
|
|
1139
1125
|
const parsed = DetectionSignalSchema.safeParse(raw);
|
|
1140
|
-
if (
|
|
1141
|
-
const signal = parsed.data;
|
|
1142
|
-
entries.push({
|
|
1143
|
-
signal: signal.source,
|
|
1144
|
-
plane: signal.signalType,
|
|
1145
|
-
weight: signal.weight,
|
|
1146
|
-
probabilityContribution: signalContribution(signal)
|
|
1147
|
-
});
|
|
1126
|
+
if (parsed.success) parsedSignals.push(parsed.data);
|
|
1148
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
|
+
}));
|
|
1149
1135
|
entries.sort((a, b) => {
|
|
1150
1136
|
if (a.plane !== b.plane) return a.plane < b.plane ? -1 : 1;
|
|
1151
1137
|
if (a.signal !== b.signal) return a.signal < b.signal ? -1 : 1;
|
|
@@ -1689,57 +1675,6 @@ const SUSPICIOUS_HEADERS = {
|
|
|
1689
1675
|
//#endregion
|
|
1690
1676
|
//#region src/constants/bots.ts
|
|
1691
1677
|
/**
|
|
1692
|
-
* Traditional Bot Constants and Types
|
|
1693
|
-
*
|
|
1694
|
-
* These are NON-AI bots like search engines, crawlers, and SEO tools.
|
|
1695
|
-
* AI agents (Claude, GPT, etc.) should be in agents.ts
|
|
1696
|
-
*/
|
|
1697
|
-
/**
|
|
1698
|
-
* Traditional bot types (not AI agents)
|
|
1699
|
-
*/
|
|
1700
|
-
const BotTypeSchema = _enum([
|
|
1701
|
-
"search_engine",
|
|
1702
|
-
"social_media",
|
|
1703
|
-
"seo_tool",
|
|
1704
|
-
"crawler",
|
|
1705
|
-
"scraper",
|
|
1706
|
-
"monitoring",
|
|
1707
|
-
"security_scanner",
|
|
1708
|
-
"unknown_bot"
|
|
1709
|
-
]);
|
|
1710
|
-
/**
|
|
1711
|
-
* Trusted traditional bots that can be cached
|
|
1712
|
-
* These are well-known, legitimate bots with stable patterns
|
|
1713
|
-
* NOT for AI agents - those should never be cached
|
|
1714
|
-
*/
|
|
1715
|
-
const TRUSTED_BOTS = [
|
|
1716
|
-
"googlebot",
|
|
1717
|
-
"bingbot",
|
|
1718
|
-
"slurp",
|
|
1719
|
-
"duckduckbot",
|
|
1720
|
-
"baiduspider",
|
|
1721
|
-
"yandexbot",
|
|
1722
|
-
"applebot",
|
|
1723
|
-
"facebookexternalhit",
|
|
1724
|
-
"twitterbot",
|
|
1725
|
-
"linkedinbot",
|
|
1726
|
-
"whatsapp",
|
|
1727
|
-
"semrushbot",
|
|
1728
|
-
"ahrefsbot",
|
|
1729
|
-
"mj12bot",
|
|
1730
|
-
"dotbot"
|
|
1731
|
-
];
|
|
1732
|
-
/**
|
|
1733
|
-
* Bot pattern for traditional bot matching
|
|
1734
|
-
*/
|
|
1735
|
-
const BotPatternSchema = object({
|
|
1736
|
-
id: string(),
|
|
1737
|
-
type: BotTypeSchema,
|
|
1738
|
-
name: string(),
|
|
1739
|
-
patterns: array(string()),
|
|
1740
|
-
confidence: number$1().min(0).max(1).default(.8)
|
|
1741
|
-
});
|
|
1742
|
-
/**
|
|
1743
1678
|
* Traditional bot patterns.
|
|
1744
1679
|
*
|
|
1745
1680
|
* NAME VOCABULARY: `name` MUST be the detection engine's pattern name — the
|
|
@@ -1834,21 +1769,6 @@ const TRADITIONAL_BOT_PATTERNS = [
|
|
|
1834
1769
|
confidence: .7
|
|
1835
1770
|
}
|
|
1836
1771
|
];
|
|
1837
|
-
/**
|
|
1838
|
-
* Check if a user agent is a traditional bot (not AI agent)
|
|
1839
|
-
*/
|
|
1840
|
-
function isTraditionalBot(userAgent) {
|
|
1841
|
-
const lowerUA = userAgent.toLowerCase();
|
|
1842
|
-
return TRUSTED_BOTS.some((bot) => lowerUA.includes(bot));
|
|
1843
|
-
}
|
|
1844
|
-
/**
|
|
1845
|
-
* Get bot type from user agent
|
|
1846
|
-
*/
|
|
1847
|
-
function getBotType(userAgent) {
|
|
1848
|
-
const lowerUA = userAgent.toLowerCase();
|
|
1849
|
-
for (const pattern of TRADITIONAL_BOT_PATTERNS) if (pattern.patterns.some((p) => lowerUA.includes(p.toLowerCase()))) return pattern.type;
|
|
1850
|
-
return null;
|
|
1851
|
-
}
|
|
1852
1772
|
|
|
1853
1773
|
//#endregion
|
|
1854
1774
|
//#region src/constants/delegation.ts
|
|
@@ -1991,7 +1911,8 @@ const INTERNAL_ERRORS = {
|
|
|
1991
1911
|
TRANSACTION_FAILED: "TRANSACTION_FAILED",
|
|
1992
1912
|
DELETE_FAILED: "DELETE_FAILED",
|
|
1993
1913
|
PARTITION_RETIREMENT_IN_PROGRESS: "PARTITION_RETIREMENT_IN_PROGRESS",
|
|
1994
|
-
FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED"
|
|
1914
|
+
FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED",
|
|
1915
|
+
REQUEST_TIMEOUT: "REQUEST_TIMEOUT"
|
|
1995
1916
|
};
|
|
1996
1917
|
/**
|
|
1997
1918
|
* Session Error Codes
|
|
@@ -2030,7 +1951,8 @@ const API_ERRORS = {
|
|
|
2030
1951
|
CONTENT_TYPE_NOT_SUPPORTED: "API_CONTENT_TYPE_NOT_SUPPORTED",
|
|
2031
1952
|
RESPONSE_TOO_LARGE: "API_RESPONSE_TOO_LARGE",
|
|
2032
1953
|
REQUEST_TOO_LARGE: "API_REQUEST_TOO_LARGE",
|
|
2033
|
-
ENDPOINT_RETIRED: "API_ENDPOINT_RETIRED"
|
|
1954
|
+
ENDPOINT_RETIRED: "API_ENDPOINT_RETIRED",
|
|
1955
|
+
VERDICT_NOT_STORED: "VERDICT_NOT_STORED"
|
|
2034
1956
|
};
|
|
2035
1957
|
/**
|
|
2036
1958
|
* Billing Error Codes
|
|
@@ -2150,6 +2072,7 @@ const BOUNCER_LOWERCASE_ERRORS = {
|
|
|
2150
2072
|
LOWERCASE_PROOF_VALIDATION_ERROR: "proof_validation_error",
|
|
2151
2073
|
LOWERCASE_INSUFFICIENT_SCOPES: "insufficient_scopes",
|
|
2152
2074
|
LOWERCASE_DELEGATION_VALIDATION_ERROR: "delegation_validation_error",
|
|
2075
|
+
LOWERCASE_AUTHORIZATION_TOO_WEAK: "authorization_too_weak",
|
|
2153
2076
|
GRANT_PREDATES_ISSUANCE_CORE: "grant_predates_issuance_core",
|
|
2154
2077
|
LOWERCASE_INVALID_HTTP_REGISTRATION: "invalid_http_registration",
|
|
2155
2078
|
LOWERCASE_POLICY_REVISION_MISMATCH: "policy_revision_mismatch",
|
|
@@ -2159,11 +2082,15 @@ const BOUNCER_LOWERCASE_ERRORS = {
|
|
|
2159
2082
|
/**
|
|
2160
2083
|
* Delegation OAuth Error Codes (lower-case wire format)
|
|
2161
2084
|
*
|
|
2162
|
-
* Emitted by the bouncer authorize,
|
|
2163
|
-
*
|
|
2164
|
-
* 6749 vocabulary (`invalid_request`,
|
|
2165
|
-
* `
|
|
2166
|
-
*
|
|
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.
|
|
2167
2094
|
*/
|
|
2168
2095
|
const OAUTH_LOWERCASE_ERRORS = {
|
|
2169
2096
|
LOWERCASE_INVALID_REQUEST: "invalid_request",
|
|
@@ -2208,6 +2135,7 @@ const AUDIT_ERRORS = {
|
|
|
2208
2135
|
AUDIT_CREDENTIAL_REQUIRED: "AUDIT_CREDENTIAL_REQUIRED",
|
|
2209
2136
|
AUDIT_REQUEST_TOO_LARGE: "AUDIT_REQUEST_TOO_LARGE",
|
|
2210
2137
|
AUDIT_INVALID_JSON: "AUDIT_INVALID_JSON",
|
|
2138
|
+
AUDIT_REQUEST_TIMEOUT: "AUDIT_REQUEST_TIMEOUT",
|
|
2211
2139
|
AUDIT_INVALID_CREDENTIAL: "AUDIT_INVALID_CREDENTIAL",
|
|
2212
2140
|
AUDIT_RATE_LIMITED: "AUDIT_RATE_LIMITED",
|
|
2213
2141
|
AUDIT_INVALID_SUBMISSION: "AUDIT_INVALID_SUBMISSION",
|
|
@@ -2406,6 +2334,7 @@ const ERROR_MESSAGES = {
|
|
|
2406
2334
|
[INTERNAL_ERRORS.DELETE_FAILED]: "Failed to delete project",
|
|
2407
2335
|
[INTERNAL_ERRORS.PARTITION_RETIREMENT_IN_PROGRESS]: "The project data is being archived. Retry shortly.",
|
|
2408
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",
|
|
2409
2338
|
[SESSION_ERRORS.SESSION_NOT_FOUND]: "Session not found",
|
|
2410
2339
|
[SESSION_ERRORS.SESSION_EXPIRED]: "Session has expired",
|
|
2411
2340
|
[SESSION_ERRORS.SESSION_INVALID]: "Session is invalid",
|
|
@@ -2430,6 +2359,7 @@ const ERROR_MESSAGES = {
|
|
|
2430
2359
|
[API_ERRORS.RESPONSE_TOO_LARGE]: "Response exceeds maximum size",
|
|
2431
2360
|
[API_ERRORS.REQUEST_TOO_LARGE]: "Request exceeds maximum size",
|
|
2432
2361
|
[API_ERRORS.ENDPOINT_RETIRED]: "This endpoint has been retired",
|
|
2362
|
+
[API_ERRORS.VERDICT_NOT_STORED]: "The verdict could not be stored",
|
|
2433
2363
|
[BILLING_ERRORS.LIMIT_EXCEEDED]: "Billing limit exceeded",
|
|
2434
2364
|
[BILLING_ERRORS.BILLING_SUSPENDED]: "Account billing suspended",
|
|
2435
2365
|
[BILLING_ERRORS.BILLING_GRACE_PERIOD]: "Account in billing grace period",
|
|
@@ -2486,6 +2416,7 @@ const ERROR_MESSAGES = {
|
|
|
2486
2416
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_PROOF_VALIDATION_ERROR]: "Proof validation failed",
|
|
2487
2417
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_INSUFFICIENT_SCOPES]: "Missing required scopes",
|
|
2488
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",
|
|
2489
2420
|
[BOUNCER_LOWERCASE_ERRORS.GRANT_PREDATES_ISSUANCE_CORE]: "The grant predates the issuance core; authorize again",
|
|
2490
2421
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_INVALID_HTTP_REGISTRATION]: "Invalid or unsupported native HTTP registration",
|
|
2491
2422
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_POLICY_REVISION_MISMATCH]: "The registered tool protection revision is not the one served to this project",
|
|
@@ -2516,6 +2447,7 @@ const ERROR_MESSAGES = {
|
|
|
2516
2447
|
[AUDIT_ERRORS.AUDIT_CREDENTIAL_REQUIRED]: "A source-bound audit ingest credential is required",
|
|
2517
2448
|
[AUDIT_ERRORS.AUDIT_REQUEST_TOO_LARGE]: "Audit submission exceeds 6291456 bytes",
|
|
2518
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",
|
|
2519
2451
|
[AUDIT_ERRORS.AUDIT_INVALID_CREDENTIAL]: "Invalid audit ingest credential",
|
|
2520
2452
|
[AUDIT_ERRORS.AUDIT_RATE_LIMITED]: "Audit ingest rate limit exceeded",
|
|
2521
2453
|
[AUDIT_ERRORS.AUDIT_INVALID_SUBMISSION]: "Invalid audit recorder submission envelope",
|
|
@@ -2649,6 +2581,7 @@ const ERROR_STATUS_CODES = {
|
|
|
2649
2581
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_FORBIDDEN]: 403,
|
|
2650
2582
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_AGENT_DENIED]: 403,
|
|
2651
2583
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_INSUFFICIENT_SCOPES]: 403,
|
|
2584
|
+
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_AUTHORIZATION_TOO_WEAK]: 403,
|
|
2652
2585
|
[BOUNCER_LOWERCASE_ERRORS.GRANT_PREDATES_ISSUANCE_CORE]: 409,
|
|
2653
2586
|
[BOUNCER_LOWERCASE_ERRORS.LOWERCASE_POLICY_REVISION_MISMATCH]: 409,
|
|
2654
2587
|
[AUDIT_PROTOCOL_ERRORS.AUDIT_UNAUTHORIZED_SUBMISSION]: 403,
|
|
@@ -2692,6 +2625,8 @@ const ERROR_STATUS_CODES = {
|
|
|
2692
2625
|
[GATEWAY_VAULT_ERRORS.CREDENTIALS_NOT_CONFIGURED]: 404,
|
|
2693
2626
|
[VAULT_ERRORS.NO_AGENT_KEY]: 404,
|
|
2694
2627
|
[API_ERRORS.METHOD_NOT_ALLOWED]: 405,
|
|
2628
|
+
[AUDIT_ERRORS.AUDIT_REQUEST_TIMEOUT]: 408,
|
|
2629
|
+
[INTERNAL_ERRORS.REQUEST_TIMEOUT]: 408,
|
|
2695
2630
|
[RESOURCE_ERRORS.CONFLICT]: 409,
|
|
2696
2631
|
[AUDIT_PROTOCOL_ERRORS.AUDIT_LEDGER_MISMATCH]: 409,
|
|
2697
2632
|
[AUDIT_PROTOCOL_ERRORS.AUDIT_EPOCH_MISMATCH]: 409,
|
|
@@ -2756,7 +2691,8 @@ const ERROR_STATUS_CODES = {
|
|
|
2756
2691
|
[AUDIT_PROTOCOL_ERRORS.AUDIT_APPEND_CONFLICT_EXHAUSTED]: 503,
|
|
2757
2692
|
[KYAOS_PROTOCOL_ERRORS.KYAOS_SLASH_AUTHORIZATION_HOST_UNAVAILABLE]: 503,
|
|
2758
2693
|
[KYAOS_PROTOCOL_ERRORS.KYAOS_SLASH_POLICY_UNAVAILABLE]: 503,
|
|
2759
|
-
[NETWORK_ERRORS.TIMEOUT]: 504
|
|
2694
|
+
[NETWORK_ERRORS.TIMEOUT]: 504,
|
|
2695
|
+
[API_ERRORS.VERDICT_NOT_STORED]: 504
|
|
2760
2696
|
};
|
|
2761
2697
|
/**
|
|
2762
2698
|
* Create a standardized error object
|
|
@@ -2903,6 +2839,23 @@ const DETECTION_LIMITS = {
|
|
|
2903
2839
|
cacheTTL: 3600,
|
|
2904
2840
|
maxConcurrentDetections: 1e3
|
|
2905
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
|
+
};
|
|
2906
2859
|
/**
|
|
2907
2860
|
* Database Limits
|
|
2908
2861
|
*/
|
|
@@ -3238,14 +3191,22 @@ const BehavioralAnalysisSchema = object({
|
|
|
3238
3191
|
* API request schemas
|
|
3239
3192
|
*/
|
|
3240
3193
|
/**
|
|
3241
|
-
* 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.
|
|
3242
3203
|
*/
|
|
3243
3204
|
const DetectionRequestSchema = object({
|
|
3244
3205
|
userAgent: string(),
|
|
3245
3206
|
ipAddress: string().optional(),
|
|
3246
3207
|
headers: record(string(), string()).optional(),
|
|
3247
3208
|
url: string().optional(),
|
|
3248
|
-
method: string().optional(),
|
|
3209
|
+
method: string().max(DETECTION_REQUEST_LIMITS.method).optional(),
|
|
3249
3210
|
behavioralData: BehavioralDataSchema.optional(),
|
|
3250
3211
|
options: object({
|
|
3251
3212
|
mode: _enum([
|
|
@@ -5145,7 +5106,8 @@ const KNOWN_PATTERN_BY_NAME_OR_ID = buildKnownPatternLookup(KNOWN_AGENT_PATTERNS
|
|
|
5145
5106
|
* {@link TrafficTaxonomyBucket}. An unidentified agent (`agent_type` null,
|
|
5146
5107
|
* stored as 'Unknown' by the rollup) falls to the class fallback, so an
|
|
5147
5108
|
* `ai_agent`-classed unidentified row counts as an AI agent and a
|
|
5148
|
-
* `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.
|
|
5149
5111
|
*/
|
|
5150
5112
|
function classifyAgentTaxonomy(agentType, detectionClass) {
|
|
5151
5113
|
if (detectionClass === "human") return "human";
|
|
@@ -5197,6 +5159,134 @@ const UserSchema = object({
|
|
|
5197
5159
|
createdAt: date$1(),
|
|
5198
5160
|
updatedAt: date$1()
|
|
5199
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
|
+
});
|
|
5200
5290
|
/**
|
|
5201
5291
|
* Project Settings
|
|
5202
5292
|
*/
|
|
@@ -5211,6 +5301,17 @@ const ProjectSettingsSchema = object({
|
|
|
5211
5301
|
webhookUrl: string().url().optional(),
|
|
5212
5302
|
webhookSecret: string().optional(),
|
|
5213
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(),
|
|
5214
5315
|
postureOrigins: array(string()).optional(),
|
|
5215
5316
|
postureReportPaths: array(string()).optional(),
|
|
5216
5317
|
beaconIngestMode: _enum(["origin", "worker"]).optional()
|
|
@@ -5564,7 +5665,6 @@ const OAuth2ProviderSchema = BaseAuthProviderSchema.extend({
|
|
|
5564
5665
|
*
|
|
5565
5666
|
* Supports:
|
|
5566
5667
|
* - JSON token responses (JWT, Bearer tokens)
|
|
5567
|
-
* - Cookie-based sessions (like HardwareWorld)
|
|
5568
5668
|
* - Custom response validation
|
|
5569
5669
|
*/
|
|
5570
5670
|
const CredentialProviderSchema = BaseAuthProviderSchema.extend({
|
|
@@ -5598,8 +5698,8 @@ const CredentialProviderSchema = BaseAuthProviderSchema.extend({
|
|
|
5598
5698
|
apiHeaders: record(string(), string()).optional(),
|
|
5599
5699
|
consentOverrides: object({
|
|
5600
5700
|
branding: object({
|
|
5601
|
-
primaryColor: string().regex(hexColorRegex, "Color must be a valid hex color
|
|
5602
|
-
secondaryColor: string().regex(hexColorRegex, "Color must be a valid hex color
|
|
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(),
|
|
5603
5703
|
logoUrl: httpUrlSchema(500).optional(),
|
|
5604
5704
|
companyName: string().max(255).optional(),
|
|
5605
5705
|
theme: _enum([
|
|
@@ -5664,16 +5764,34 @@ const CRISPBudgetSchema = object({
|
|
|
5664
5764
|
/**
|
|
5665
5765
|
* Consent Branding Configuration
|
|
5666
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();
|
|
5667
5773
|
const ConsentBrandingSchema = object({
|
|
5668
|
-
primaryColor: string().regex(hexColorRegex, "Color must be a valid hex color
|
|
5669
|
-
secondaryColor: string().regex(hexColorRegex, "Color must be a valid hex color
|
|
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(),
|
|
5670
5776
|
logoUrl: httpUrlSchema(500).optional(),
|
|
5671
5777
|
companyName: string().max(255).optional(),
|
|
5672
5778
|
theme: _enum([
|
|
5673
5779
|
"light",
|
|
5674
5780
|
"dark",
|
|
5675
5781
|
"auto"
|
|
5676
|
-
]).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()
|
|
5677
5795
|
});
|
|
5678
5796
|
/**
|
|
5679
5797
|
* Consent Terms Configuration
|
|
@@ -5822,10 +5940,20 @@ const MAX_SCOPE_LABELS = 50;
|
|
|
5822
5940
|
* scope grantable (`allowedScopesFor` does not read it) and carries no Cedar.
|
|
5823
5941
|
*/
|
|
5824
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`);
|
|
5825
5952
|
/**
|
|
5826
5953
|
* Full Consent Configuration
|
|
5827
5954
|
*/
|
|
5828
5955
|
const ConsentConfigSchema = object({
|
|
5956
|
+
chooseThenProveEnabled: boolean$1().optional(),
|
|
5829
5957
|
branding: ConsentBrandingSchema.optional(),
|
|
5830
5958
|
terms: ConsentTermsSchema.optional(),
|
|
5831
5959
|
ui: ConsentUISchema.optional(),
|
|
@@ -5841,7 +5969,8 @@ const ConsentConfigSchema = object({
|
|
|
5841
5969
|
inactivityDays: number$1().int().min(1).max(3650).optional(),
|
|
5842
5970
|
authorizationHost: string().min(1).max(255).optional(),
|
|
5843
5971
|
signInCopy: ConsentSignInCopySchema.optional(),
|
|
5844
|
-
scopeLabels: ConsentScopeLabelsSchema.optional()
|
|
5972
|
+
scopeLabels: ConsentScopeLabelsSchema.optional(),
|
|
5973
|
+
assuranceNotes: ConsentAssuranceNotesSchema.optional()
|
|
5845
5974
|
});
|
|
5846
5975
|
/**
|
|
5847
5976
|
* Bouncer Config (for GET response)
|
|
@@ -6423,6 +6552,17 @@ const UpdateProjectSchema = object({
|
|
|
6423
6552
|
webhookUrl: string().url().optional(),
|
|
6424
6553
|
webhookSecret: string().optional(),
|
|
6425
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(),
|
|
6426
6566
|
postureOrigins: PostureOriginsSchema.optional(),
|
|
6427
6567
|
postureReportPaths: PostureReportPathsSchema.optional()
|
|
6428
6568
|
}).optional()
|
|
@@ -6746,8 +6886,6 @@ const HomeRailRollupsRequestSchema = object({ organizationId: OrganizationIdSche
|
|
|
6746
6886
|
//#region src/api/signal-exposure.ts
|
|
6747
6887
|
/**
|
|
6748
6888
|
* Detection signal exposure: the wire shape of the "full signal set"
|
|
6749
|
-
* block on the `/api/v1/enforce` detection response (KYA-1107, "Adobe
|
|
6750
|
-
* Golden Snapshot").
|
|
6751
6889
|
*
|
|
6752
6890
|
* Every enforce detection payload carries these fields in addition to the
|
|
6753
6891
|
* condensed summary fields. Additive only: consumers must ignore keys they
|
|
@@ -7404,7 +7542,11 @@ const HeartbeatResponseSchema = object({
|
|
|
7404
7542
|
ack: literal(true),
|
|
7405
7543
|
/** Pending commands for the compute process to execute */
|
|
7406
7544
|
commands: array(ComputeCommandSchema).default([]),
|
|
7407
|
-
/**
|
|
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
|
+
*/
|
|
7408
7550
|
configUpdatedAt: string().datetime().optional()
|
|
7409
7551
|
});
|
|
7410
7552
|
/**
|
|
@@ -8286,7 +8428,12 @@ function isLegitimateCategory(category) {
|
|
|
8286
8428
|
].includes(category);
|
|
8287
8429
|
}
|
|
8288
8430
|
/**
|
|
8289
|
-
*
|
|
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.
|
|
8290
8437
|
*/
|
|
8291
8438
|
function getCategoryColor(category) {
|
|
8292
8439
|
return {
|
|
@@ -8519,12 +8666,17 @@ const INSTALLATION_TYPES = [
|
|
|
8519
8666
|
"dns_gateway",
|
|
8520
8667
|
"beacon"
|
|
8521
8668
|
];
|
|
8522
|
-
/**
|
|
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
|
+
*/
|
|
8523
8674
|
const TRAFFIC_TAXONOMY_BUCKETS = [
|
|
8524
8675
|
"human",
|
|
8525
8676
|
"ai_agent",
|
|
8526
8677
|
"ai_crawler",
|
|
8527
|
-
"other_automation"
|
|
8678
|
+
"other_automation",
|
|
8679
|
+
"unidentified"
|
|
8528
8680
|
];
|
|
8529
8681
|
/** Order is precedence: a user matching several rules is attributed to the first. */
|
|
8530
8682
|
const EXCLUSION_BUCKETS = [
|
|
@@ -8584,14 +8736,20 @@ const ADMIN_TRUSTED_METRICS = [
|
|
|
8584
8736
|
* row, none of its members is a counted person (`no_counted_members`).
|
|
8585
8737
|
*/
|
|
8586
8738
|
const ADMIN_ORG_EXCLUSION_REASONS = ["test_org", "no_counted_members"];
|
|
8587
|
-
/**
|
|
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
|
+
*/
|
|
8588
8745
|
const ADMIN_ACCOUNT_STATUSES = [
|
|
8589
8746
|
"counted",
|
|
8747
|
+
"invited",
|
|
8590
8748
|
...EXCLUSION_BUCKETS,
|
|
8591
8749
|
...ADMIN_ORG_EXCLUSION_REASONS
|
|
8592
8750
|
];
|
|
8593
8751
|
/** GET /api/admin/overview/accounts query. */
|
|
8594
|
-
/** Drill-down status filter: everyone, any exclusion, or one status. */
|
|
8752
|
+
/** Drill-down status filter: everyone, any exclusion (never `invited`), or one status. */
|
|
8595
8753
|
const ADMIN_ACCOUNTS_STATUS_FILTERS = [
|
|
8596
8754
|
"all",
|
|
8597
8755
|
"excluded",
|
|
@@ -8608,6 +8766,191 @@ const adminAccountsQuerySchema = object({
|
|
|
8608
8766
|
status: _enum(ADMIN_ACCOUNTS_STATUS_FILTERS).default("all")
|
|
8609
8767
|
});
|
|
8610
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
|
+
|
|
8611
8954
|
//#endregion
|
|
8612
8955
|
//#region src/utils/agent-runtime-label.ts
|
|
8613
8956
|
/**
|
|
@@ -9920,7 +10263,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9920
10263
|
"lastUpdated": "2025-01-10T00:00:00Z"
|
|
9921
10264
|
}
|
|
9922
10265
|
],
|
|
9923
|
-
"hash": "
|
|
10266
|
+
"hash": "7d7efc9019a20794764cb9977b744c7a8c31386b5ee0567dde81fd42f61f294e"
|
|
9924
10267
|
},
|
|
9925
10268
|
"rules": {
|
|
9926
10269
|
"userAgents": {
|
|
@@ -9976,7 +10319,8 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9976
10319
|
"patterns": [
|
|
9977
10320
|
"facebookexternalhit",
|
|
9978
10321
|
"facebookcatalog",
|
|
9979
|
-
"FacebookBot"
|
|
10322
|
+
"FacebookBot",
|
|
10323
|
+
"meta-externalads"
|
|
9980
10324
|
],
|
|
9981
10325
|
"confidence": .9,
|
|
9982
10326
|
"description": "Meta/Facebook web crawlers for link previews and training",
|
|
@@ -9995,7 +10339,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9995
10339
|
"category": "scraper"
|
|
9996
10340
|
},
|
|
9997
10341
|
"bytedance_crawler": {
|
|
9998
|
-
"patterns": ["Bytespider", "
|
|
10342
|
+
"patterns": ["Bytespider", "@bytedance.com"],
|
|
9999
10343
|
"confidence": .85,
|
|
10000
10344
|
"description": "ByteDance/TikTok web crawler",
|
|
10001
10345
|
"category": "scraper"
|
|
@@ -10247,7 +10591,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10247
10591
|
"category": "ai_assistant"
|
|
10248
10592
|
},
|
|
10249
10593
|
"meta_ai": {
|
|
10250
|
-
"patterns": ["Meta-ExternalAgent"],
|
|
10594
|
+
"patterns": ["Meta-ExternalAgent", "Meta-ExternalFetcher"],
|
|
10251
10595
|
"confidence": .95,
|
|
10252
10596
|
"category": "scraper",
|
|
10253
10597
|
"description": "Meta AI assistant"
|
|
@@ -10284,7 +10628,9 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10284
10628
|
"Mediapartners-Google",
|
|
10285
10629
|
"Google-InspectionTool",
|
|
10286
10630
|
"GoogleOther",
|
|
10287
|
-
"Google-Read-Aloud"
|
|
10631
|
+
"Google-Read-Aloud",
|
|
10632
|
+
"Google-Site-Verification",
|
|
10633
|
+
"Google-CWS"
|
|
10288
10634
|
],
|
|
10289
10635
|
"confidence": .95,
|
|
10290
10636
|
"description": "Google search crawler and related bots",
|
|
@@ -10308,7 +10654,7 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10308
10654
|
"duckduckgo": {
|
|
10309
10655
|
"patterns": [
|
|
10310
10656
|
"DuckDuckBot",
|
|
10311
|
-
"
|
|
10657
|
+
"DuckAssistBot",
|
|
10312
10658
|
"DuckDuckGo-Favicons-Bot",
|
|
10313
10659
|
"DuckDuckGoImageProxy"
|
|
10314
10660
|
],
|
|
@@ -10366,7 +10712,6 @@ var require_merged_rules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10366
10712
|
},
|
|
10367
10713
|
"sogoubot": {
|
|
10368
10714
|
"patterns": [
|
|
10369
|
-
"Sogou",
|
|
10370
10715
|
"Sogou web spider",
|
|
10371
10716
|
"Sogou inst spider",
|
|
10372
10717
|
"Sogou spider"
|
|
@@ -13476,11 +13821,221 @@ const CliPairingExchangeDataSchema = object({
|
|
|
13476
13821
|
dashboardUrl: string().url()
|
|
13477
13822
|
}).strict();
|
|
13478
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
|
+
|
|
13479
14034
|
//#endregion
|
|
13480
14035
|
//#region src/index.ts
|
|
13481
14036
|
const VERSION = "0.1.0";
|
|
13482
14037
|
const PACKAGE_NAME = "@kya-os/checkpoint-shared";
|
|
13483
14038
|
|
|
13484
14039
|
//#endregion
|
|
13485
|
-
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, 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, 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, readBodyBounded, readPostureReportPathsSetting, readableText, reconstructConfidenceFromEvidence, refineClaudeDisplayLabel, refineSessionGrainClaudeLabel, requestCarriesDelegationProof, requestDeclaresBody, requestPresentedCredential, requestPresentsKyaSignature, 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 };
|
|
13486
14041
|
//# sourceMappingURL=index.mjs.map
|