@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.d.ts
CHANGED
|
@@ -1,84 +1,21 @@
|
|
|
1
1
|
import { A as ZodString, B as $strip, C as ZodNullable, D as ZodPipe, E as ZodOptional, F as ZodError, I as output, L as $loose, M as ZodType, N as ZodUnion, O as ZodPrefault, P as ZodUnknown, R as $partial, S as ZodNull, T as ZodObject, a as input, b as ZodIntersection, c as ZodAny, d as ZodCatch, f as ZodCustom, g as ZodEnum, h as ZodDiscriminatedUnion, i as ZodCoercedNumber, j as ZodTransform, k as ZodRecord, l as ZodArray, m as ZodDefault, n as ZodCoercedBoolean, o as ZodRawShape, p as ZodDate, r as ZodCoercedDate, s as ZodSchema, t as external_d_exports, u as ZodBoolean, v as ZodIPv4, w as ZodNumber, x as ZodLiteral, y as ZodIPv6, z as $strict } from "./external-m3Kmafwj.js";
|
|
2
2
|
import { AGENT_CATALOG, AgentCatalogEntry, AgentCatalogTier } from "./agent-catalog.js";
|
|
3
|
-
import { a as
|
|
3
|
+
import { a as ClientIpSource, c as ResolveClientIpInput, d as normalizeClientIp, f as parseIpv6, h as resolveObservedClientAddress, i as ClientIpResolution, l as compareForwardedChainShadow, m as resolveForwardedChainShadow, n as ClientIpHeaderValue, o as ClientIpTrustPolicy, p as resolveClientIp, r as ClientIpHeaders, s as ObservedClientAddressResolution, t as ClientAddressShadow, u as compressIpv6 } from "./client-ip-8KneiMK0.js";
|
|
4
4
|
import { AUTH_DOMAIN, defaultSignInHost, defaultSignInHostLabel, isDefaultSignInHostLabel, isDnsLabel, isUnderAuthDomain, withoutTrailingDots } from "./default-sign-in-host.js";
|
|
5
5
|
import { t as RULESET_HASH_REGEX } from "./ruleset-hash-IRN5eI9H.js";
|
|
6
6
|
import { A as ACCEPT_CHALLENGE_HEADER, B as VERDICT_COOKIE_NAME, C as buildDelegationBearerHeader, D as buildDelegationInstructions, E as buildDelegationChallengeHeader, F as BLOCKED_PATH, H as deriveVerdict, I as ResponseShape, L as classifyResponseShape, M as FetcherHeaderInput, N as selectBodyReadable200, O as deriveDelegationPickupUri, P as serveBodyReadable200, R as acceptsHtml, S as buildChallengeWire, T as buildDelegationChallengeEnvelope, U as encodeVerdictCookie, V as Verdict, _ as DelegationChallengeBody, a as ResolveBotSignalsInput, b as DelegationChallengeWireInput, c as ChallengeContextFailureEvent, d as resolveChallengeContext, f as ApprovalQuorumChallengeWireInput, g as ChallengeWireKind, h as ChallengeWireInput, i as CloudflareRequestCf, j as ChallengeEnvelopeMode, k as generateDelegationSid, l as DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, m as ChallengeWireErrorCode, n as BotSignalsSource, o as resolveBotSignals, p as ChallengeWireError, r as BotSignalsTrustPolicy, s as ChallengeContextFailure, t as BotSignalsResolution, u as ResolveChallengeContextOptions, v as DelegationChallengeEnvelope, w as buildDelegationChallengeBody, x as HeaderEntry, y as DelegationChallengeEnvelopeMode, z as RenderedResponseLike } from "./index-Cdv_FH0H.js";
|
|
7
7
|
import { n as KYA_HTTP_ERROR_STATUS, r as KyaHttpErrorCode, t as KYA_HTTP_ERROR } from "./kya-http-error-codes-C14E4gi3.js";
|
|
8
8
|
import { n as normalizeChallengeType, t as isEngineEnforcing } from "./engine-enforcing-DiOclGqf.js";
|
|
9
9
|
import { A as PolicyMetadataSchema, B as ThresholdConfigSchema, C as InstructPayload, D as PolicyConfig, E as PolicyConditionSchema, F as RuleMetadata, I as RuleMetadataSchema, L as SuggestedAction, M as PolicyRuleSchema, N as RedirectTarget, O as PolicyConfigSchema, P as RedirectTargetSchema, R as SuggestedActionSchema, S as EnforcementModeSchema, T as PolicyCondition, V as safeParsePolicyConfig, _ as DenyListEntry, a as BlockReason, b as EnforcementActionSchema, c as ChallengeParamsSchema, f as ConditionOperatorSchema, g as DecisionSchema, h as Decision, i as AssuranceTierSchema, j as PolicyRule, k as PolicyMetadata, m as ConditionValueSchema, n as AllowListEntrySchema, o as BlockReasonSchema, p as ConditionValue, r as AssuranceTier, s as ChallengeParams, t as AllowListEntry, u as ConditionFieldSchema, v as DenyListEntrySchema, w as InstructPayloadSchema, z as ThresholdConfig } from "./schemas-DZa1ouGs.js";
|
|
10
|
-
import { a as
|
|
11
|
-
import { a as
|
|
12
|
-
import {
|
|
10
|
+
import { a as ProxyCollectionStateSchema, i as ProxyCollectionState, n as ProxyAssertion, r as ProxyAssertionSchema, t as mapProxyAssertions } from "./proxy-assertion-mapping-DhAynFqG.js";
|
|
11
|
+
import { a as mapDetectionToReasonCodes, c as DetectionReasonCode, i as formatReasonCodesHeader, n as MAX_REASON_CODES_ON_WIRE, o as reasonCodeForSignalSource, r as ReasonCodeDetectionFacts, s as DETECTION_REASON_CODES, t as MAX_REASON_CODES_HEADER_BYTES } from "./detection-reason-mapping-BemDaDED.js";
|
|
12
|
+
import { a as testPattern, i as findMatchingPattern, n as VALIDATION_PATTERNS, o as testPatterns, r as extractMatch, t as UUID_PATTERN } from "./patterns-CdTh7LU2.js";
|
|
13
|
+
import { C as isKyaOsWireMethod, S as isKyaOsHandshakeMethod, T as normalizeWireMethod, _ as VerificationMethod, a as BodyReadOptions, b as getVerificationRiskLevel, c as KYA_SIGNED_BODY_MAX_BYTES, d as requestCarriesDelegationProof, f as requestDeclaresBody, g as KYA_OS_WIRE_METHODS, h as KYA_OS_HANDSHAKE_METHODS, i as relayedRequestTarget, l as readBodyBounded, m as requestPresentsKyaSignature, n as SID_ATTRIBUTABLE_RESULT, o as BoundedBody, p as requestPresentedCredential, r as ANONYMOUS_PRINCIPAL_DID, s as DeadlineBoundedBody, t as REGISTERED_SID_MAX_LENGTH, u as DELEGATION_PROOF_HEADERS, v as getVerificationMethodDescription, w as normalizeHandshakeMethod, x as isHighConfidenceVerification, y as getVerificationReliability } from "./registered-sid-BgDhdj2l.js";
|
|
13
14
|
import { A as NO_EVIDENCE_EQUALITY_TERM, C as pathLiteralsInBlock, D as statementApplies, E as parseCedarStatements, F as FAIL_CLOSED_HEADERS, I as FAIL_CLOSED_STATUS, M as withNoEvidenceExclusion, N as matchPath, O as statementId, P as FAIL_CLOSED_BODY, S as pathHasUnnarrowedDenyRuleFor, T as ProbeClass, _ as requiredScopesForRequest, a as ApprovalQuorum, b as analyzePolicySource, c as BESPOKE_POLICY_IDS, d as isBespokePolicyId, f as isNonNavigablePolicyId, g as ByteBoundedMemo, h as decisionPolicyId, i as validateStepUpQuorum, j as NO_EVIDENCE_EXCLUSION_TERM, k as NO_EVIDENCE_CATEGORY, m as DecisionLike, n as StepUpQuorumCheck, o as approvalQuorumForRequest, p as nonNavigablePolicyLabel, r as StepUpQuorumLike, s as BASELINE_ALLOW_POLICY_ID, t as InvalidStepUpReason, u as bespokePolicyLabel, v as PolicyHazardAnalysis, w as splitCedarBlocks, x as blockEqualityLiterals, y as RequestFacts } from "./step-up-Bz12gYKT.js";
|
|
14
|
-
import { a as
|
|
15
|
+
import { a as PolicyFetcherConfig, c as isPolicyUnavailableError, i as PolicyFetcher, n as PolicyAuthError, o as PolicyUnavailableError, r as PolicyCacheAdapter, s as isPolicyAuthError, t as CachedPolicy } from "./fetcher-DCr920hx.js";
|
|
16
|
+
import { i as TIMEZONE_COUNTRY_MAP, n as checkTimezoneCountryContradiction, r as resolveTimezoneCountry, t as TimezoneContradictionResult } from "./timezone-country-B6PkDyNP.js";
|
|
15
17
|
import { JWK } from "jose";
|
|
16
18
|
import { AuthMode, ConsentProviderType, CredentialProviderConfig, IProviderRegistry, OAuthProviderConfig, ProviderAuthType, ProviderConfig, ProviderDefinition as ProviderRegistryDefinition, RegistryLogger } from "@kya-os/provider-registry";
|
|
17
|
-
//#region src/core/network-assertions.d.ts
|
|
18
|
-
export declare const ProxyCollectionStateSchema: ZodEnum<{
|
|
19
|
-
current: "current";
|
|
20
|
-
unavailable: "unavailable";
|
|
21
|
-
stale: "stale";
|
|
22
|
-
unsupported: "unsupported";
|
|
23
|
-
conflicting: "conflicting";
|
|
24
|
-
insufficient_support: "insufficient_support";
|
|
25
|
-
}>;
|
|
26
|
-
export type ProxyCollectionState = output<typeof ProxyCollectionStateSchema>;
|
|
27
|
-
export declare const ProxyAssertionSchema: ZodObject<{
|
|
28
|
-
kind: ZodString;
|
|
29
|
-
source: ZodString;
|
|
30
|
-
subjectScope: ZodLiteral<"request_egress">;
|
|
31
|
-
membership: ZodEnum<{
|
|
32
|
-
absent: "absent";
|
|
33
|
-
unknown: "unknown";
|
|
34
|
-
present: "present";
|
|
35
|
-
}>;
|
|
36
|
-
evidenceGrade: ZodEnum<{
|
|
37
|
-
confirmed: "confirmed";
|
|
38
|
-
vendor_reported: "vendor_reported";
|
|
39
|
-
}>;
|
|
40
|
-
collectionState: ZodEnum<{
|
|
41
|
-
current: "current";
|
|
42
|
-
unavailable: "unavailable";
|
|
43
|
-
stale: "stale";
|
|
44
|
-
unsupported: "unsupported";
|
|
45
|
-
conflicting: "conflicting";
|
|
46
|
-
insufficient_support: "insufficient_support";
|
|
47
|
-
}>;
|
|
48
|
-
observedAt: ZodNullable<ZodNumber>;
|
|
49
|
-
expiresAt: ZodNullable<ZodNumber>;
|
|
50
|
-
membershipConfidence: ZodNullable<ZodNumber>;
|
|
51
|
-
sourceReliability: ZodNullable<ZodNumber>;
|
|
52
|
-
fraudProbability: ZodNullable<ZodNumber>;
|
|
53
|
-
proxyClass: ZodOptional<ZodEnum<{
|
|
54
|
-
unknown: "unknown";
|
|
55
|
-
datacenter: "datacenter";
|
|
56
|
-
}>>;
|
|
57
|
-
}, $strict>;
|
|
58
|
-
export type ProxyAssertion = output<typeof ProxyAssertionSchema>;
|
|
59
|
-
export declare function mapProxyAssertions(proxyAssertions: readonly ProxyAssertion[], nowSeconds: number, collectionState: ProxyCollectionState, compatibility?: 'confirmed_current' | 'maxmind_legacy'): {
|
|
60
|
-
proxy: {
|
|
61
|
-
isProxy: boolean;
|
|
62
|
-
proxyType: "unknown" | "datacenter" | "vpn" | "tor" | "residential_proxy";
|
|
63
|
-
confidence: number;
|
|
64
|
-
} | undefined;
|
|
65
|
-
proxyAssertions: readonly {
|
|
66
|
-
kind: string;
|
|
67
|
-
source: string;
|
|
68
|
-
subjectScope: "request_egress";
|
|
69
|
-
membership: "absent" | "unknown" | "present";
|
|
70
|
-
evidenceGrade: "confirmed" | "vendor_reported";
|
|
71
|
-
collectionState: "current" | "unavailable" | "stale" | "unsupported" | "conflicting" | "insufficient_support";
|
|
72
|
-
observedAt: number | null;
|
|
73
|
-
expiresAt: number | null;
|
|
74
|
-
membershipConfidence: number | null;
|
|
75
|
-
sourceReliability: number | null;
|
|
76
|
-
fraudProbability: number | null;
|
|
77
|
-
proxyClass?: "unknown" | "datacenter" | undefined;
|
|
78
|
-
}[];
|
|
79
|
-
proxyCollectionState: "current" | "unavailable" | "stale" | "unsupported" | "conflicting" | "insufficient_support";
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
82
19
|
//#region src/core/detection.d.ts
|
|
83
20
|
export declare const DetectionClassSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
84
21
|
type: ZodLiteral<"Human">;
|
|
@@ -151,8 +88,8 @@ export declare const DetectionSignalSchema: ZodObject<{
|
|
|
151
88
|
signalType: ZodEnum<{
|
|
152
89
|
behavioral: "behavioral";
|
|
153
90
|
pattern: "pattern";
|
|
154
|
-
signature: "signature";
|
|
155
91
|
network: "network";
|
|
92
|
+
signature: "signature";
|
|
156
93
|
fingerprint: "fingerprint";
|
|
157
94
|
}>;
|
|
158
95
|
confidence: ZodNumber;
|
|
@@ -213,43 +150,72 @@ export declare const EngineInfoSchema: ZodObject<{
|
|
|
213
150
|
export type EngineInfo = output<typeof EngineInfoSchema>;
|
|
214
151
|
export declare const RoutingTypeSchema: ZodEnum<{
|
|
215
152
|
unknown: "unknown";
|
|
153
|
+
datacenter: "datacenter";
|
|
216
154
|
residential: "residential";
|
|
217
155
|
mobile: "mobile";
|
|
218
|
-
datacenter: "datacenter";
|
|
219
156
|
hosting: "hosting";
|
|
220
157
|
}>;
|
|
221
158
|
export type RoutingType = output<typeof RoutingTypeSchema>;
|
|
222
159
|
export declare const ProxyTypeSchema: ZodEnum<{
|
|
223
160
|
unknown: "unknown";
|
|
224
161
|
datacenter: "datacenter";
|
|
225
|
-
vpn: "vpn";
|
|
226
162
|
tor: "tor";
|
|
163
|
+
vpn: "vpn";
|
|
227
164
|
residential_proxy: "residential_proxy";
|
|
228
165
|
}>;
|
|
229
166
|
export type ProxyType = output<typeof ProxyTypeSchema>;
|
|
167
|
+
export declare const ReportedProxyTypeSchema: ZodEnum<{
|
|
168
|
+
tor: "tor";
|
|
169
|
+
vpn: "vpn";
|
|
170
|
+
residential: "residential";
|
|
171
|
+
hosting: "hosting";
|
|
172
|
+
}>;
|
|
173
|
+
export type ReportedProxyType = output<typeof ReportedProxyTypeSchema>;
|
|
174
|
+
export declare function reportedProxyType(proxyType: ProxyType): ReportedProxyType | undefined;
|
|
175
|
+
export declare const IpRoutingTypeSchema: ZodEnum<{
|
|
176
|
+
fixed: "fixed";
|
|
177
|
+
datacenter: "datacenter";
|
|
178
|
+
cellular: "cellular";
|
|
179
|
+
satellite: "satellite";
|
|
180
|
+
anonymizer: "anonymizer";
|
|
181
|
+
}>;
|
|
182
|
+
export type IpRoutingType = output<typeof IpRoutingTypeSchema>;
|
|
230
183
|
export declare const ProxyInfoSchema: ZodObject<{
|
|
231
184
|
isProxy: ZodBoolean;
|
|
232
185
|
proxyIp: ZodOptional<ZodString>;
|
|
233
186
|
proxyType: ZodEnum<{
|
|
234
187
|
unknown: "unknown";
|
|
235
188
|
datacenter: "datacenter";
|
|
236
|
-
vpn: "vpn";
|
|
237
189
|
tor: "tor";
|
|
190
|
+
vpn: "vpn";
|
|
238
191
|
residential_proxy: "residential_proxy";
|
|
239
192
|
}>;
|
|
240
193
|
lastDetected: ZodOptional<ZodNumber>;
|
|
241
194
|
confidence: ZodNumber;
|
|
242
195
|
}, $strip>;
|
|
243
196
|
export type ProxyInfo = output<typeof ProxyInfoSchema>;
|
|
197
|
+
export declare const IpReputationSchema: ZodObject<{
|
|
198
|
+
attackSource: ZodOptional<ZodBoolean>;
|
|
199
|
+
spamSource: ZodOptional<ZodBoolean>;
|
|
200
|
+
lists: ZodArray<ZodString>;
|
|
201
|
+
asOf: ZodNumber;
|
|
202
|
+
}, $strip>;
|
|
203
|
+
export type IpReputation = output<typeof IpReputationSchema>;
|
|
204
|
+
export declare const IpEventCountsSchema: ZodObject<{
|
|
205
|
+
lastHour: ZodNumber;
|
|
206
|
+
lastDay: ZodNumber;
|
|
207
|
+
asOf: ZodNumber;
|
|
208
|
+
}, $strip>;
|
|
209
|
+
export type IpEventCounts = output<typeof IpEventCountsSchema>;
|
|
244
210
|
export declare const NetworkContextSchema: ZodObject<{
|
|
245
211
|
trueIp: ZodOptional<ZodString>;
|
|
246
212
|
asn: ZodOptional<ZodNumber>;
|
|
247
213
|
isp: ZodOptional<ZodString>;
|
|
248
214
|
routingType: ZodEnum<{
|
|
249
215
|
unknown: "unknown";
|
|
216
|
+
datacenter: "datacenter";
|
|
250
217
|
residential: "residential";
|
|
251
218
|
mobile: "mobile";
|
|
252
|
-
datacenter: "datacenter";
|
|
253
219
|
hosting: "hosting";
|
|
254
220
|
}>;
|
|
255
221
|
proxy: ZodOptional<ZodObject<{
|
|
@@ -258,8 +224,8 @@ export declare const NetworkContextSchema: ZodObject<{
|
|
|
258
224
|
proxyType: ZodEnum<{
|
|
259
225
|
unknown: "unknown";
|
|
260
226
|
datacenter: "datacenter";
|
|
261
|
-
vpn: "vpn";
|
|
262
227
|
tor: "tor";
|
|
228
|
+
vpn: "vpn";
|
|
263
229
|
residential_proxy: "residential_proxy";
|
|
264
230
|
}>;
|
|
265
231
|
lastDetected: ZodOptional<ZodNumber>;
|
|
@@ -304,6 +270,19 @@ export declare const NetworkContextSchema: ZodObject<{
|
|
|
304
270
|
conflicting: "conflicting";
|
|
305
271
|
insufficient_support: "insufficient_support";
|
|
306
272
|
}>>;
|
|
273
|
+
ipRoutingType: ZodOptional<ZodEnum<{
|
|
274
|
+
fixed: "fixed";
|
|
275
|
+
datacenter: "datacenter";
|
|
276
|
+
cellular: "cellular";
|
|
277
|
+
satellite: "satellite";
|
|
278
|
+
anonymizer: "anonymizer";
|
|
279
|
+
}>>;
|
|
280
|
+
ipReputation: ZodOptional<ZodObject<{
|
|
281
|
+
attackSource: ZodOptional<ZodBoolean>;
|
|
282
|
+
spamSource: ZodOptional<ZodBoolean>;
|
|
283
|
+
lists: ZodArray<ZodString>;
|
|
284
|
+
asOf: ZodNumber;
|
|
285
|
+
}, $strip>>;
|
|
307
286
|
}, $strip>;
|
|
308
287
|
export type NetworkContext = output<typeof NetworkContextSchema>;
|
|
309
288
|
export declare const DetectionDetailSchema: ZodObject<{
|
|
@@ -373,8 +352,8 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
373
352
|
signalType: ZodEnum<{
|
|
374
353
|
behavioral: "behavioral";
|
|
375
354
|
pattern: "pattern";
|
|
376
|
-
signature: "signature";
|
|
377
355
|
network: "network";
|
|
356
|
+
signature: "signature";
|
|
378
357
|
fingerprint: "fingerprint";
|
|
379
358
|
}>;
|
|
380
359
|
confidence: ZodNumber;
|
|
@@ -415,10 +394,10 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
415
394
|
behavioral: "behavioral";
|
|
416
395
|
error: "error";
|
|
417
396
|
pattern: "pattern";
|
|
397
|
+
network: "network";
|
|
418
398
|
kyaos_handshake: "kyaos_handshake";
|
|
419
399
|
mcp_i_handshake: "mcp_i_handshake";
|
|
420
400
|
signature: "signature";
|
|
421
|
-
network: "network";
|
|
422
401
|
"kya-http": "kya-http";
|
|
423
402
|
"kya-http-delegated": "kya-http-delegated";
|
|
424
403
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -485,6 +464,8 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
485
464
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
486
465
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
487
466
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
467
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
468
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
488
469
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
489
470
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
490
471
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -562,8 +543,8 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
562
543
|
signalType: ZodEnum<{
|
|
563
544
|
behavioral: "behavioral";
|
|
564
545
|
pattern: "pattern";
|
|
565
|
-
signature: "signature";
|
|
566
546
|
network: "network";
|
|
547
|
+
signature: "signature";
|
|
567
548
|
fingerprint: "fingerprint";
|
|
568
549
|
}>;
|
|
569
550
|
confidence: ZodNumber;
|
|
@@ -604,10 +585,10 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
604
585
|
behavioral: "behavioral";
|
|
605
586
|
error: "error";
|
|
606
587
|
pattern: "pattern";
|
|
588
|
+
network: "network";
|
|
607
589
|
kyaos_handshake: "kyaos_handshake";
|
|
608
590
|
mcp_i_handshake: "mcp_i_handshake";
|
|
609
591
|
signature: "signature";
|
|
610
|
-
network: "network";
|
|
611
592
|
"kya-http": "kya-http";
|
|
612
593
|
"kya-http-delegated": "kya-http-delegated";
|
|
613
594
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -674,6 +655,8 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
674
655
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
675
656
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
676
657
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
658
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
659
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
677
660
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
678
661
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
679
662
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -1032,8 +1015,8 @@ export declare const VerdictEvidenceSchema: ZodObject<{
|
|
|
1032
1015
|
plane: ZodEnum<{
|
|
1033
1016
|
behavioral: "behavioral";
|
|
1034
1017
|
pattern: "pattern";
|
|
1035
|
-
signature: "signature";
|
|
1036
1018
|
network: "network";
|
|
1019
|
+
signature: "signature";
|
|
1037
1020
|
fingerprint: "fingerprint";
|
|
1038
1021
|
}>;
|
|
1039
1022
|
weight: ZodNumber;
|
|
@@ -1070,6 +1053,8 @@ export declare const DetectionReasonCodeSchema: ZodEnum<{
|
|
|
1070
1053
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
1071
1054
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
1072
1055
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
1056
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
1057
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
1073
1058
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
1074
1059
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
1075
1060
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -1098,38 +1083,15 @@ export declare const SUSPICIOUS_HEADERS: {
|
|
|
1098
1083
|
};
|
|
1099
1084
|
//#endregion
|
|
1100
1085
|
//#region src/constants/bots.d.ts
|
|
1101
|
-
export
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
unknown_bot: "unknown_bot";
|
|
1110
|
-
}>;
|
|
1111
|
-
export type BotType = output<typeof BotTypeSchema>;
|
|
1112
|
-
export declare const TRUSTED_BOTS: string[];
|
|
1113
|
-
export declare const BotPatternSchema: ZodObject<{
|
|
1114
|
-
id: ZodString;
|
|
1115
|
-
type: ZodEnum<{
|
|
1116
|
-
search_engine: "search_engine";
|
|
1117
|
-
social_media: "social_media";
|
|
1118
|
-
monitoring: "monitoring";
|
|
1119
|
-
scraper: "scraper";
|
|
1120
|
-
seo_tool: "seo_tool";
|
|
1121
|
-
crawler: "crawler";
|
|
1122
|
-
security_scanner: "security_scanner";
|
|
1123
|
-
unknown_bot: "unknown_bot";
|
|
1124
|
-
}>;
|
|
1125
|
-
name: ZodString;
|
|
1126
|
-
patterns: ZodArray<ZodString>;
|
|
1127
|
-
confidence: ZodDefault<ZodNumber>;
|
|
1128
|
-
}, $strip>;
|
|
1129
|
-
export type BotPattern = output<typeof BotPatternSchema>;
|
|
1086
|
+
export type BotType = 'search_engine' | 'social_media' | 'seo_tool' | 'crawler' | 'scraper' | 'monitoring' | 'security_scanner' | 'unknown_bot';
|
|
1087
|
+
export interface BotPattern {
|
|
1088
|
+
id: string;
|
|
1089
|
+
type: BotType;
|
|
1090
|
+
name: string;
|
|
1091
|
+
patterns: string[];
|
|
1092
|
+
confidence: number;
|
|
1093
|
+
}
|
|
1130
1094
|
export declare const TRADITIONAL_BOT_PATTERNS: BotPattern[];
|
|
1131
|
-
export declare function isTraditionalBot(userAgent: string): boolean;
|
|
1132
|
-
export declare function getBotType(userAgent: string): BotType | null;
|
|
1133
1095
|
//#endregion
|
|
1134
1096
|
//#region src/constants/delegation.d.ts
|
|
1135
1097
|
export declare const ATTESTED_BEARER_MAX_TTL_SECONDS = 900;
|
|
@@ -1226,6 +1188,7 @@ export declare const INTERNAL_ERRORS: {
|
|
|
1226
1188
|
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
1227
1189
|
readonly PARTITION_RETIREMENT_IN_PROGRESS: "PARTITION_RETIREMENT_IN_PROGRESS";
|
|
1228
1190
|
readonly FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED";
|
|
1191
|
+
readonly REQUEST_TIMEOUT: "REQUEST_TIMEOUT";
|
|
1229
1192
|
};
|
|
1230
1193
|
export declare const SESSION_ERRORS: {
|
|
1231
1194
|
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
@@ -1256,6 +1219,7 @@ export declare const API_ERRORS: {
|
|
|
1256
1219
|
readonly RESPONSE_TOO_LARGE: "API_RESPONSE_TOO_LARGE";
|
|
1257
1220
|
readonly REQUEST_TOO_LARGE: "API_REQUEST_TOO_LARGE";
|
|
1258
1221
|
readonly ENDPOINT_RETIRED: "API_ENDPOINT_RETIRED";
|
|
1222
|
+
readonly VERDICT_NOT_STORED: "VERDICT_NOT_STORED";
|
|
1259
1223
|
};
|
|
1260
1224
|
export declare const BILLING_ERRORS: {
|
|
1261
1225
|
readonly LIMIT_EXCEEDED: "LIMIT_EXCEEDED";
|
|
@@ -1328,6 +1292,7 @@ export declare const BOUNCER_LOWERCASE_ERRORS: {
|
|
|
1328
1292
|
readonly LOWERCASE_PROOF_VALIDATION_ERROR: "proof_validation_error";
|
|
1329
1293
|
readonly LOWERCASE_INSUFFICIENT_SCOPES: "insufficient_scopes";
|
|
1330
1294
|
readonly LOWERCASE_DELEGATION_VALIDATION_ERROR: "delegation_validation_error";
|
|
1295
|
+
readonly LOWERCASE_AUTHORIZATION_TOO_WEAK: "authorization_too_weak";
|
|
1331
1296
|
readonly GRANT_PREDATES_ISSUANCE_CORE: "grant_predates_issuance_core";
|
|
1332
1297
|
readonly LOWERCASE_INVALID_HTTP_REGISTRATION: "invalid_http_registration";
|
|
1333
1298
|
readonly LOWERCASE_POLICY_REVISION_MISMATCH: "policy_revision_mismatch";
|
|
@@ -1364,6 +1329,7 @@ export declare const AUDIT_ERRORS: {
|
|
|
1364
1329
|
readonly AUDIT_CREDENTIAL_REQUIRED: "AUDIT_CREDENTIAL_REQUIRED";
|
|
1365
1330
|
readonly AUDIT_REQUEST_TOO_LARGE: "AUDIT_REQUEST_TOO_LARGE";
|
|
1366
1331
|
readonly AUDIT_INVALID_JSON: "AUDIT_INVALID_JSON";
|
|
1332
|
+
readonly AUDIT_REQUEST_TIMEOUT: "AUDIT_REQUEST_TIMEOUT";
|
|
1367
1333
|
readonly AUDIT_INVALID_CREDENTIAL: "AUDIT_INVALID_CREDENTIAL";
|
|
1368
1334
|
readonly AUDIT_RATE_LIMITED: "AUDIT_RATE_LIMITED";
|
|
1369
1335
|
readonly AUDIT_INVALID_SUBMISSION: "AUDIT_INVALID_SUBMISSION";
|
|
@@ -1483,6 +1449,7 @@ export declare const ERROR_CODES: {
|
|
|
1483
1449
|
readonly AUDIT_CREDENTIAL_REQUIRED: "AUDIT_CREDENTIAL_REQUIRED";
|
|
1484
1450
|
readonly AUDIT_REQUEST_TOO_LARGE: "AUDIT_REQUEST_TOO_LARGE";
|
|
1485
1451
|
readonly AUDIT_INVALID_JSON: "AUDIT_INVALID_JSON";
|
|
1452
|
+
readonly AUDIT_REQUEST_TIMEOUT: "AUDIT_REQUEST_TIMEOUT";
|
|
1486
1453
|
readonly AUDIT_INVALID_CREDENTIAL: "AUDIT_INVALID_CREDENTIAL";
|
|
1487
1454
|
readonly AUDIT_RATE_LIMITED: "AUDIT_RATE_LIMITED";
|
|
1488
1455
|
readonly AUDIT_INVALID_SUBMISSION: "AUDIT_INVALID_SUBMISSION";
|
|
@@ -1534,6 +1501,7 @@ export declare const ERROR_CODES: {
|
|
|
1534
1501
|
readonly LOWERCASE_PROOF_VALIDATION_ERROR: "proof_validation_error";
|
|
1535
1502
|
readonly LOWERCASE_INSUFFICIENT_SCOPES: "insufficient_scopes";
|
|
1536
1503
|
readonly LOWERCASE_DELEGATION_VALIDATION_ERROR: "delegation_validation_error";
|
|
1504
|
+
readonly LOWERCASE_AUTHORIZATION_TOO_WEAK: "authorization_too_weak";
|
|
1537
1505
|
readonly GRANT_PREDATES_ISSUANCE_CORE: "grant_predates_issuance_core";
|
|
1538
1506
|
readonly LOWERCASE_INVALID_HTTP_REGISTRATION: "invalid_http_registration";
|
|
1539
1507
|
readonly LOWERCASE_POLICY_REVISION_MISMATCH: "policy_revision_mismatch";
|
|
@@ -1577,6 +1545,7 @@ export declare const ERROR_CODES: {
|
|
|
1577
1545
|
readonly RESPONSE_TOO_LARGE: "API_RESPONSE_TOO_LARGE";
|
|
1578
1546
|
readonly REQUEST_TOO_LARGE: "API_REQUEST_TOO_LARGE";
|
|
1579
1547
|
readonly ENDPOINT_RETIRED: "API_ENDPOINT_RETIRED";
|
|
1548
|
+
readonly VERDICT_NOT_STORED: "VERDICT_NOT_STORED";
|
|
1580
1549
|
readonly PIXEL_NOT_FOUND: "PIXEL_NOT_FOUND";
|
|
1581
1550
|
readonly PIXEL_DISABLED: "PIXEL_DISABLED";
|
|
1582
1551
|
readonly PIXEL_CONFIGURATION_ERROR: "PIXEL_CONFIGURATION_ERROR";
|
|
@@ -1606,6 +1575,7 @@ export declare const ERROR_CODES: {
|
|
|
1606
1575
|
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
1607
1576
|
readonly PARTITION_RETIREMENT_IN_PROGRESS: "PARTITION_RETIREMENT_IN_PROGRESS";
|
|
1608
1577
|
readonly FLY_CLEANUP_FAILED: "FLY_CLEANUP_FAILED";
|
|
1578
|
+
readonly REQUEST_TIMEOUT: "REQUEST_TIMEOUT";
|
|
1609
1579
|
readonly CONNECTION_FAILED: "NETWORK_CONNECTION_FAILED";
|
|
1610
1580
|
readonly TIMEOUT: "NETWORK_TIMEOUT";
|
|
1611
1581
|
readonly DNS_RESOLUTION_FAILED: "NETWORK_DNS_FAILED";
|
|
@@ -1699,6 +1669,92 @@ export declare const UserSchema: ZodObject<{
|
|
|
1699
1669
|
updatedAt: ZodDate;
|
|
1700
1670
|
}, $strip>;
|
|
1701
1671
|
export type User = output<typeof UserSchema>;
|
|
1672
|
+
export declare const RequestFlagLabelMatrixEntrySchema: ZodObject<{
|
|
1673
|
+
flag: ZodString;
|
|
1674
|
+
clientId: ZodOptional<ZodString>;
|
|
1675
|
+
tier: ZodOptional<ZodString>;
|
|
1676
|
+
label: ZodBoolean;
|
|
1677
|
+
weight: ZodOptional<ZodNumber>;
|
|
1678
|
+
minAccountAddresses: ZodOptional<ZodNumber>;
|
|
1679
|
+
}, $strip>;
|
|
1680
|
+
export type RequestFlagLabelMatrixEntry = output<typeof RequestFlagLabelMatrixEntrySchema>;
|
|
1681
|
+
export declare const RequestFlagLabelMatrixSchema: ZodArray<ZodObject<{
|
|
1682
|
+
flag: ZodString;
|
|
1683
|
+
clientId: ZodOptional<ZodString>;
|
|
1684
|
+
tier: ZodOptional<ZodString>;
|
|
1685
|
+
label: ZodBoolean;
|
|
1686
|
+
weight: ZodOptional<ZodNumber>;
|
|
1687
|
+
minAccountAddresses: ZodOptional<ZodNumber>;
|
|
1688
|
+
}, $strip>>;
|
|
1689
|
+
export declare const REQUEST_LABELLING_FLAGS: readonly ["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", "account_three_state", "account_two_jump", "shared_clock_slot", "stable_minute_offset", "aligned_minute_batch", "chrome_without_hints_or_language_on_hosting", "stale_safari_16_business_hosting", "library_ua_on_web_client", "automation_ua_on_web_client", "truncated_browser_ua", "safari_without_priority_business_hosting", "mobile_app_new_account_abroad", "team_trial_new_account", "round_the_clock", "many_templates", "template_minute_arc", "linked_rare_header", "app_ua_on_web", "session_age_96h", "signup_cohort_abroad", "wave_template_young_account", "guest_scatter", "ua_new", "ua_young", "email_fan"];
|
|
1690
|
+
export type RequestLabellingFlag = (typeof REQUEST_LABELLING_FLAGS)[number];
|
|
1691
|
+
export declare const REQUEST_FLAG_KINDS: readonly ["behaviour", "header-template", "address"];
|
|
1692
|
+
export type RequestFlagKind = (typeof REQUEST_FLAG_KINDS)[number];
|
|
1693
|
+
export declare const REQUEST_LABELLING_FLAG_KINDS: Readonly<Record<RequestLabellingFlag, RequestFlagKind>>;
|
|
1694
|
+
export declare const RequestFlagLabelMatrixWriteSchema: ZodArray<ZodObject<{
|
|
1695
|
+
clientId: ZodOptional<ZodString>;
|
|
1696
|
+
tier: ZodOptional<ZodString>;
|
|
1697
|
+
label: ZodBoolean;
|
|
1698
|
+
weight: ZodOptional<ZodNumber>;
|
|
1699
|
+
minAccountAddresses: ZodOptional<ZodNumber>;
|
|
1700
|
+
flag: ZodEnum<{
|
|
1701
|
+
page_load_on_json_post: "page_load_on_json_post";
|
|
1702
|
+
client_hint_contradiction: "client_hint_contradiction";
|
|
1703
|
+
upgrade_insecure_requests_on_json_post: "upgrade_insecure_requests_on_json_post";
|
|
1704
|
+
account_network_rotation: "account_network_rotation";
|
|
1705
|
+
account_impossible_travel: "account_impossible_travel";
|
|
1706
|
+
pre_zstd_headers_on_modern_chrome: "pre_zstd_headers_on_modern_chrome";
|
|
1707
|
+
grease_brand_mismatch: "grease_brand_mismatch";
|
|
1708
|
+
bare_product_agent_template: "bare_product_agent_template";
|
|
1709
|
+
missing_ua_gzip_chrome: "missing_ua_gzip_chrome";
|
|
1710
|
+
gzip_only_hinted_chrome: "gzip_only_hinted_chrome";
|
|
1711
|
+
zh_cn_cross_site_windows_chrome: "zh_cn_cross_site_windows_chrome";
|
|
1712
|
+
country_spread: "country_spread";
|
|
1713
|
+
old_chrome: "old_chrome";
|
|
1714
|
+
shared_network: "shared_network";
|
|
1715
|
+
minute_aligned: "minute_aligned";
|
|
1716
|
+
account_hour_volume: "account_hour_volume";
|
|
1717
|
+
account_convicted: "account_convicted";
|
|
1718
|
+
network_convicted: "network_convicted";
|
|
1719
|
+
no_human_proof: "no_human_proof";
|
|
1720
|
+
device_type_contradiction: "device_type_contradiction";
|
|
1721
|
+
pool_address: "pool_address";
|
|
1722
|
+
ip_convicted: "ip_convicted";
|
|
1723
|
+
account_many_apps: "account_many_apps";
|
|
1724
|
+
account_rapid_country_rotation: "account_rapid_country_rotation";
|
|
1725
|
+
account_many_countries: "account_many_countries";
|
|
1726
|
+
gzip_only_browser_with_evidence: "gzip_only_browser_with_evidence";
|
|
1727
|
+
account_three_state: "account_three_state";
|
|
1728
|
+
account_two_jump: "account_two_jump";
|
|
1729
|
+
shared_clock_slot: "shared_clock_slot";
|
|
1730
|
+
stable_minute_offset: "stable_minute_offset";
|
|
1731
|
+
aligned_minute_batch: "aligned_minute_batch";
|
|
1732
|
+
chrome_without_hints_or_language_on_hosting: "chrome_without_hints_or_language_on_hosting";
|
|
1733
|
+
stale_safari_16_business_hosting: "stale_safari_16_business_hosting";
|
|
1734
|
+
library_ua_on_web_client: "library_ua_on_web_client";
|
|
1735
|
+
automation_ua_on_web_client: "automation_ua_on_web_client";
|
|
1736
|
+
truncated_browser_ua: "truncated_browser_ua";
|
|
1737
|
+
safari_without_priority_business_hosting: "safari_without_priority_business_hosting";
|
|
1738
|
+
mobile_app_new_account_abroad: "mobile_app_new_account_abroad";
|
|
1739
|
+
team_trial_new_account: "team_trial_new_account";
|
|
1740
|
+
round_the_clock: "round_the_clock";
|
|
1741
|
+
many_templates: "many_templates";
|
|
1742
|
+
template_minute_arc: "template_minute_arc";
|
|
1743
|
+
linked_rare_header: "linked_rare_header";
|
|
1744
|
+
app_ua_on_web: "app_ua_on_web";
|
|
1745
|
+
session_age_96h: "session_age_96h";
|
|
1746
|
+
signup_cohort_abroad: "signup_cohort_abroad";
|
|
1747
|
+
wave_template_young_account: "wave_template_young_account";
|
|
1748
|
+
guest_scatter: "guest_scatter";
|
|
1749
|
+
ua_new: "ua_new";
|
|
1750
|
+
ua_young: "ua_young";
|
|
1751
|
+
email_fan: "email_fan";
|
|
1752
|
+
}>;
|
|
1753
|
+
}, $strip>>;
|
|
1754
|
+
export declare const EventCountLimitsSettingSchema: ZodObject<{
|
|
1755
|
+
lastHour: ZodOptional<ZodNumber>;
|
|
1756
|
+
lastDay: ZodOptional<ZodNumber>;
|
|
1757
|
+
}, $strip>;
|
|
1702
1758
|
export declare const ProjectSettingsSchema: ZodObject<{
|
|
1703
1759
|
blockOnHighConfidence: ZodDefault<ZodBoolean>;
|
|
1704
1760
|
confidenceThreshold: ZodDefault<ZodNumber>;
|
|
@@ -1710,6 +1766,27 @@ export declare const ProjectSettingsSchema: ZodObject<{
|
|
|
1710
1766
|
webhookUrl: ZodOptional<ZodString>;
|
|
1711
1767
|
webhookSecret: ZodOptional<ZodString>;
|
|
1712
1768
|
beaconRateLimitPerMinute: ZodOptional<ZodNumber>;
|
|
1769
|
+
rateLimitExempt: ZodOptional<ZodBoolean>;
|
|
1770
|
+
requestFlagLabel: ZodOptional<ZodBoolean>;
|
|
1771
|
+
requestFlagTwoJumpShadow: ZodOptional<ZodBoolean>;
|
|
1772
|
+
requestFlagOwnClients: ZodOptional<ZodArray<ZodString>>;
|
|
1773
|
+
requestFlagWebClients: ZodOptional<ZodArray<ZodString>>;
|
|
1774
|
+
requestFlagSizedClients: ZodOptional<ZodArray<ZodString>>;
|
|
1775
|
+
requestFlagControlClients: ZodOptional<ZodArray<ZodString>>;
|
|
1776
|
+
requestFlagBrowserRelayClients: ZodOptional<ZodArray<ZodString>>;
|
|
1777
|
+
requestFlagMobileAppClients: ZodOptional<ZodArray<ZodString>>;
|
|
1778
|
+
requestFlagLabelMatrix: ZodOptional<ZodArray<ZodObject<{
|
|
1779
|
+
flag: ZodString;
|
|
1780
|
+
clientId: ZodOptional<ZodString>;
|
|
1781
|
+
tier: ZodOptional<ZodString>;
|
|
1782
|
+
label: ZodBoolean;
|
|
1783
|
+
weight: ZodOptional<ZodNumber>;
|
|
1784
|
+
minAccountAddresses: ZodOptional<ZodNumber>;
|
|
1785
|
+
}, $strip>>>;
|
|
1786
|
+
eventCountLimits: ZodOptional<ZodObject<{
|
|
1787
|
+
lastHour: ZodOptional<ZodNumber>;
|
|
1788
|
+
lastDay: ZodOptional<ZodNumber>;
|
|
1789
|
+
}, $strip>>;
|
|
1713
1790
|
postureOrigins: ZodOptional<ZodArray<ZodString>>;
|
|
1714
1791
|
postureReportPaths: ZodOptional<ZodArray<ZodString>>;
|
|
1715
1792
|
beaconIngestMode: ZodOptional<ZodEnum<{
|
|
@@ -1735,6 +1812,27 @@ export declare const ProjectSchema: ZodObject<{
|
|
|
1735
1812
|
webhookUrl: ZodOptional<ZodString>;
|
|
1736
1813
|
webhookSecret: ZodOptional<ZodString>;
|
|
1737
1814
|
beaconRateLimitPerMinute: ZodOptional<ZodNumber>;
|
|
1815
|
+
rateLimitExempt: ZodOptional<ZodBoolean>;
|
|
1816
|
+
requestFlagLabel: ZodOptional<ZodBoolean>;
|
|
1817
|
+
requestFlagTwoJumpShadow: ZodOptional<ZodBoolean>;
|
|
1818
|
+
requestFlagOwnClients: ZodOptional<ZodArray<ZodString>>;
|
|
1819
|
+
requestFlagWebClients: ZodOptional<ZodArray<ZodString>>;
|
|
1820
|
+
requestFlagSizedClients: ZodOptional<ZodArray<ZodString>>;
|
|
1821
|
+
requestFlagControlClients: ZodOptional<ZodArray<ZodString>>;
|
|
1822
|
+
requestFlagBrowserRelayClients: ZodOptional<ZodArray<ZodString>>;
|
|
1823
|
+
requestFlagMobileAppClients: ZodOptional<ZodArray<ZodString>>;
|
|
1824
|
+
requestFlagLabelMatrix: ZodOptional<ZodArray<ZodObject<{
|
|
1825
|
+
flag: ZodString;
|
|
1826
|
+
clientId: ZodOptional<ZodString>;
|
|
1827
|
+
tier: ZodOptional<ZodString>;
|
|
1828
|
+
label: ZodBoolean;
|
|
1829
|
+
weight: ZodOptional<ZodNumber>;
|
|
1830
|
+
minAccountAddresses: ZodOptional<ZodNumber>;
|
|
1831
|
+
}, $strip>>>;
|
|
1832
|
+
eventCountLimits: ZodOptional<ZodObject<{
|
|
1833
|
+
lastHour: ZodOptional<ZodNumber>;
|
|
1834
|
+
lastDay: ZodOptional<ZodNumber>;
|
|
1835
|
+
}, $strip>>;
|
|
1738
1836
|
postureOrigins: ZodOptional<ZodArray<ZodString>>;
|
|
1739
1837
|
postureReportPaths: ZodOptional<ZodArray<ZodString>>;
|
|
1740
1838
|
beaconIngestMode: ZodOptional<ZodEnum<{
|
|
@@ -1929,6 +2027,19 @@ export declare const DETECTION_LIMITS: {
|
|
|
1929
2027
|
readonly cacheTTL: 3600;
|
|
1930
2028
|
readonly maxConcurrentDetections: 1000;
|
|
1931
2029
|
};
|
|
2030
|
+
export declare const DETECTION_REQUEST_LIMITS: {
|
|
2031
|
+
readonly userAgent: 2048;
|
|
2032
|
+
readonly url: 8192;
|
|
2033
|
+
readonly method: 16;
|
|
2034
|
+
readonly requestId: 128;
|
|
2035
|
+
readonly headerCount: 100;
|
|
2036
|
+
readonly headerName: 256;
|
|
2037
|
+
readonly headerValue: 8192;
|
|
2038
|
+
readonly headerBytes: 32768;
|
|
2039
|
+
readonly behavioralEvents: 2000;
|
|
2040
|
+
readonly eventKey: 64;
|
|
2041
|
+
readonly eventTarget: 1024;
|
|
2042
|
+
};
|
|
1932
2043
|
export declare const DATABASE_LIMITS: {
|
|
1933
2044
|
readonly maxQueryResults: 10000;
|
|
1934
2045
|
readonly maxBulkInsertSize: 1000;
|
|
@@ -2323,8 +2434,8 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
2323
2434
|
signalType: ZodEnum<{
|
|
2324
2435
|
behavioral: "behavioral";
|
|
2325
2436
|
pattern: "pattern";
|
|
2326
|
-
signature: "signature";
|
|
2327
2437
|
network: "network";
|
|
2438
|
+
signature: "signature";
|
|
2328
2439
|
fingerprint: "fingerprint";
|
|
2329
2440
|
}>;
|
|
2330
2441
|
confidence: ZodNumber;
|
|
@@ -2365,10 +2476,10 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
2365
2476
|
behavioral: "behavioral";
|
|
2366
2477
|
error: "error";
|
|
2367
2478
|
pattern: "pattern";
|
|
2479
|
+
network: "network";
|
|
2368
2480
|
kyaos_handshake: "kyaos_handshake";
|
|
2369
2481
|
mcp_i_handshake: "mcp_i_handshake";
|
|
2370
2482
|
signature: "signature";
|
|
2371
|
-
network: "network";
|
|
2372
2483
|
"kya-http": "kya-http";
|
|
2373
2484
|
"kya-http-delegated": "kya-http-delegated";
|
|
2374
2485
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -2435,6 +2546,8 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
2435
2546
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
2436
2547
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
2437
2548
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
2549
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
2550
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
2438
2551
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
2439
2552
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
2440
2553
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -2541,8 +2654,8 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
2541
2654
|
signalType: ZodEnum<{
|
|
2542
2655
|
behavioral: "behavioral";
|
|
2543
2656
|
pattern: "pattern";
|
|
2544
|
-
signature: "signature";
|
|
2545
2657
|
network: "network";
|
|
2658
|
+
signature: "signature";
|
|
2546
2659
|
fingerprint: "fingerprint";
|
|
2547
2660
|
}>;
|
|
2548
2661
|
confidence: ZodNumber;
|
|
@@ -2583,10 +2696,10 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
2583
2696
|
behavioral: "behavioral";
|
|
2584
2697
|
error: "error";
|
|
2585
2698
|
pattern: "pattern";
|
|
2699
|
+
network: "network";
|
|
2586
2700
|
kyaos_handshake: "kyaos_handshake";
|
|
2587
2701
|
mcp_i_handshake: "mcp_i_handshake";
|
|
2588
2702
|
signature: "signature";
|
|
2589
|
-
network: "network";
|
|
2590
2703
|
"kya-http": "kya-http";
|
|
2591
2704
|
"kya-http-delegated": "kya-http-delegated";
|
|
2592
2705
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -2653,6 +2766,8 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
2653
2766
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
2654
2767
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
2655
2768
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
2769
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
2770
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
2656
2771
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
2657
2772
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
2658
2773
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -2723,8 +2838,8 @@ export declare const EventTrackingRequestSchema: ZodObject<{
|
|
|
2723
2838
|
timestamp: ZodOptional<ZodString>;
|
|
2724
2839
|
referrer: ZodOptional<ZodString>;
|
|
2725
2840
|
method: ZodOptional<ZodEnum<{
|
|
2726
|
-
POST: "POST";
|
|
2727
2841
|
GET: "GET";
|
|
2842
|
+
POST: "POST";
|
|
2728
2843
|
PUT: "PUT";
|
|
2729
2844
|
DELETE: "DELETE";
|
|
2730
2845
|
PATCH: "PATCH";
|
|
@@ -2951,8 +3066,8 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
2951
3066
|
signalType: ZodEnum<{
|
|
2952
3067
|
behavioral: "behavioral";
|
|
2953
3068
|
pattern: "pattern";
|
|
2954
|
-
signature: "signature";
|
|
2955
3069
|
network: "network";
|
|
3070
|
+
signature: "signature";
|
|
2956
3071
|
fingerprint: "fingerprint";
|
|
2957
3072
|
}>;
|
|
2958
3073
|
confidence: ZodNumber;
|
|
@@ -2993,10 +3108,10 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
2993
3108
|
behavioral: "behavioral";
|
|
2994
3109
|
error: "error";
|
|
2995
3110
|
pattern: "pattern";
|
|
3111
|
+
network: "network";
|
|
2996
3112
|
kyaos_handshake: "kyaos_handshake";
|
|
2997
3113
|
mcp_i_handshake: "mcp_i_handshake";
|
|
2998
3114
|
signature: "signature";
|
|
2999
|
-
network: "network";
|
|
3000
3115
|
"kya-http": "kya-http";
|
|
3001
3116
|
"kya-http-delegated": "kya-http-delegated";
|
|
3002
3117
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -3063,6 +3178,8 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
3063
3178
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
3064
3179
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
3065
3180
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
3181
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
3182
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
3066
3183
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
3067
3184
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
3068
3185
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -3096,8 +3213,8 @@ export declare const BatchEventRequestSchema: ZodObject<{
|
|
|
3096
3213
|
timestamp: ZodOptional<ZodString>;
|
|
3097
3214
|
referrer: ZodOptional<ZodString>;
|
|
3098
3215
|
method: ZodOptional<ZodEnum<{
|
|
3099
|
-
POST: "POST";
|
|
3100
3216
|
GET: "GET";
|
|
3217
|
+
POST: "POST";
|
|
3101
3218
|
PUT: "PUT";
|
|
3102
3219
|
DELETE: "DELETE";
|
|
3103
3220
|
PATCH: "PATCH";
|
|
@@ -3333,8 +3450,8 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
3333
3450
|
signalType: ZodEnum<{
|
|
3334
3451
|
behavioral: "behavioral";
|
|
3335
3452
|
pattern: "pattern";
|
|
3336
|
-
signature: "signature";
|
|
3337
3453
|
network: "network";
|
|
3454
|
+
signature: "signature";
|
|
3338
3455
|
fingerprint: "fingerprint";
|
|
3339
3456
|
}>;
|
|
3340
3457
|
confidence: ZodNumber;
|
|
@@ -3375,10 +3492,10 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
3375
3492
|
behavioral: "behavioral";
|
|
3376
3493
|
error: "error";
|
|
3377
3494
|
pattern: "pattern";
|
|
3495
|
+
network: "network";
|
|
3378
3496
|
kyaos_handshake: "kyaos_handshake";
|
|
3379
3497
|
mcp_i_handshake: "mcp_i_handshake";
|
|
3380
3498
|
signature: "signature";
|
|
3381
|
-
network: "network";
|
|
3382
3499
|
"kya-http": "kya-http";
|
|
3383
3500
|
"kya-http-delegated": "kya-http-delegated";
|
|
3384
3501
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -3445,6 +3562,8 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
3445
3562
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
3446
3563
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
3447
3564
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
3565
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
3566
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
3448
3567
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
3449
3568
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
3450
3569
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -4596,7 +4715,6 @@ export declare const TaskStandingAdmissionRequestSchema: ZodObject<{
|
|
|
4596
4715
|
}, $strict>;
|
|
4597
4716
|
export type TaskStandingAdmissionRequest = output<typeof TaskStandingAdmissionRequestSchema>;
|
|
4598
4717
|
export declare const TaskStandingAdmissionReceiptBaseSchema: ZodObject<{
|
|
4599
|
-
taskId: ZodString;
|
|
4600
4718
|
ownerEpoch: ZodNumber;
|
|
4601
4719
|
capabilities: ZodArray<ZodEnum<{
|
|
4602
4720
|
"task.execute": "task.execute";
|
|
@@ -4612,6 +4730,7 @@ export declare const TaskStandingAdmissionReceiptBaseSchema: ZodObject<{
|
|
|
4612
4730
|
maxRequestBytes: ZodNumber;
|
|
4613
4731
|
reservedCostMicrousd: ZodNumber;
|
|
4614
4732
|
}, $strict>>;
|
|
4733
|
+
taskId: ZodString;
|
|
4615
4734
|
repository: ZodString;
|
|
4616
4735
|
sourceRevision: ZodNumber;
|
|
4617
4736
|
baseSha: ZodString;
|
|
@@ -4640,7 +4759,6 @@ export declare const TaskStandingAdmissionReceiptBaseSchema: ZodObject<{
|
|
|
4640
4759
|
credentialExport: ZodLiteral<false>;
|
|
4641
4760
|
}, $strict>;
|
|
4642
4761
|
export declare const TaskStandingAdmissionSchema: ZodObject<{
|
|
4643
|
-
taskId: ZodString;
|
|
4644
4762
|
ownerEpoch: ZodNumber;
|
|
4645
4763
|
capabilities: ZodArray<ZodEnum<{
|
|
4646
4764
|
"task.execute": "task.execute";
|
|
@@ -4656,6 +4774,7 @@ export declare const TaskStandingAdmissionSchema: ZodObject<{
|
|
|
4656
4774
|
maxRequestBytes: ZodNumber;
|
|
4657
4775
|
reservedCostMicrousd: ZodNumber;
|
|
4658
4776
|
}, $strict>>;
|
|
4777
|
+
taskId: ZodString;
|
|
4659
4778
|
repository: ZodString;
|
|
4660
4779
|
sourceRevision: ZodNumber;
|
|
4661
4780
|
baseSha: ZodString;
|
|
@@ -5395,6 +5514,79 @@ export declare const UpdateProjectSchema: ZodObject<{
|
|
|
5395
5514
|
webhookUrl: ZodOptional<ZodString>;
|
|
5396
5515
|
webhookSecret: ZodOptional<ZodString>;
|
|
5397
5516
|
beaconRateLimitPerMinute: ZodOptional<ZodNumber>;
|
|
5517
|
+
rateLimitExempt: ZodOptional<ZodBoolean>;
|
|
5518
|
+
requestFlagLabel: ZodOptional<ZodBoolean>;
|
|
5519
|
+
requestFlagTwoJumpShadow: ZodOptional<ZodBoolean>;
|
|
5520
|
+
requestFlagOwnClients: ZodOptional<ZodArray<ZodString>>;
|
|
5521
|
+
requestFlagWebClients: ZodOptional<ZodArray<ZodString>>;
|
|
5522
|
+
requestFlagSizedClients: ZodOptional<ZodArray<ZodString>>;
|
|
5523
|
+
requestFlagControlClients: ZodOptional<ZodArray<ZodString>>;
|
|
5524
|
+
requestFlagBrowserRelayClients: ZodOptional<ZodArray<ZodString>>;
|
|
5525
|
+
requestFlagMobileAppClients: ZodOptional<ZodArray<ZodString>>;
|
|
5526
|
+
requestFlagLabelMatrix: ZodOptional<ZodArray<ZodObject<{
|
|
5527
|
+
clientId: ZodOptional<ZodString>;
|
|
5528
|
+
tier: ZodOptional<ZodString>;
|
|
5529
|
+
label: ZodBoolean;
|
|
5530
|
+
weight: ZodOptional<ZodNumber>;
|
|
5531
|
+
minAccountAddresses: ZodOptional<ZodNumber>;
|
|
5532
|
+
flag: ZodEnum<{
|
|
5533
|
+
page_load_on_json_post: "page_load_on_json_post";
|
|
5534
|
+
client_hint_contradiction: "client_hint_contradiction";
|
|
5535
|
+
upgrade_insecure_requests_on_json_post: "upgrade_insecure_requests_on_json_post";
|
|
5536
|
+
account_network_rotation: "account_network_rotation";
|
|
5537
|
+
account_impossible_travel: "account_impossible_travel";
|
|
5538
|
+
pre_zstd_headers_on_modern_chrome: "pre_zstd_headers_on_modern_chrome";
|
|
5539
|
+
grease_brand_mismatch: "grease_brand_mismatch";
|
|
5540
|
+
bare_product_agent_template: "bare_product_agent_template";
|
|
5541
|
+
missing_ua_gzip_chrome: "missing_ua_gzip_chrome";
|
|
5542
|
+
gzip_only_hinted_chrome: "gzip_only_hinted_chrome";
|
|
5543
|
+
zh_cn_cross_site_windows_chrome: "zh_cn_cross_site_windows_chrome";
|
|
5544
|
+
country_spread: "country_spread";
|
|
5545
|
+
old_chrome: "old_chrome";
|
|
5546
|
+
shared_network: "shared_network";
|
|
5547
|
+
minute_aligned: "minute_aligned";
|
|
5548
|
+
account_hour_volume: "account_hour_volume";
|
|
5549
|
+
account_convicted: "account_convicted";
|
|
5550
|
+
network_convicted: "network_convicted";
|
|
5551
|
+
no_human_proof: "no_human_proof";
|
|
5552
|
+
device_type_contradiction: "device_type_contradiction";
|
|
5553
|
+
pool_address: "pool_address";
|
|
5554
|
+
ip_convicted: "ip_convicted";
|
|
5555
|
+
account_many_apps: "account_many_apps";
|
|
5556
|
+
account_rapid_country_rotation: "account_rapid_country_rotation";
|
|
5557
|
+
account_many_countries: "account_many_countries";
|
|
5558
|
+
gzip_only_browser_with_evidence: "gzip_only_browser_with_evidence";
|
|
5559
|
+
account_three_state: "account_three_state";
|
|
5560
|
+
account_two_jump: "account_two_jump";
|
|
5561
|
+
shared_clock_slot: "shared_clock_slot";
|
|
5562
|
+
stable_minute_offset: "stable_minute_offset";
|
|
5563
|
+
aligned_minute_batch: "aligned_minute_batch";
|
|
5564
|
+
chrome_without_hints_or_language_on_hosting: "chrome_without_hints_or_language_on_hosting";
|
|
5565
|
+
stale_safari_16_business_hosting: "stale_safari_16_business_hosting";
|
|
5566
|
+
library_ua_on_web_client: "library_ua_on_web_client";
|
|
5567
|
+
automation_ua_on_web_client: "automation_ua_on_web_client";
|
|
5568
|
+
truncated_browser_ua: "truncated_browser_ua";
|
|
5569
|
+
safari_without_priority_business_hosting: "safari_without_priority_business_hosting";
|
|
5570
|
+
mobile_app_new_account_abroad: "mobile_app_new_account_abroad";
|
|
5571
|
+
team_trial_new_account: "team_trial_new_account";
|
|
5572
|
+
round_the_clock: "round_the_clock";
|
|
5573
|
+
many_templates: "many_templates";
|
|
5574
|
+
template_minute_arc: "template_minute_arc";
|
|
5575
|
+
linked_rare_header: "linked_rare_header";
|
|
5576
|
+
app_ua_on_web: "app_ua_on_web";
|
|
5577
|
+
session_age_96h: "session_age_96h";
|
|
5578
|
+
signup_cohort_abroad: "signup_cohort_abroad";
|
|
5579
|
+
wave_template_young_account: "wave_template_young_account";
|
|
5580
|
+
guest_scatter: "guest_scatter";
|
|
5581
|
+
ua_new: "ua_new";
|
|
5582
|
+
ua_young: "ua_young";
|
|
5583
|
+
email_fan: "email_fan";
|
|
5584
|
+
}>;
|
|
5585
|
+
}, $strip>>>;
|
|
5586
|
+
eventCountLimits: ZodOptional<ZodObject<{
|
|
5587
|
+
lastHour: ZodOptional<ZodNumber>;
|
|
5588
|
+
lastDay: ZodOptional<ZodNumber>;
|
|
5589
|
+
}, $strip>>;
|
|
5398
5590
|
postureOrigins: ZodOptional<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
5399
5591
|
postureReportPaths: ZodOptional<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
5400
5592
|
}, $strip>>;
|
|
@@ -6217,8 +6409,8 @@ export declare const DetectionSignalExposureSchema: ZodObject<{
|
|
|
6217
6409
|
signalType: ZodEnum<{
|
|
6218
6410
|
behavioral: "behavioral";
|
|
6219
6411
|
pattern: "pattern";
|
|
6220
|
-
signature: "signature";
|
|
6221
6412
|
network: "network";
|
|
6413
|
+
signature: "signature";
|
|
6222
6414
|
fingerprint: "fingerprint";
|
|
6223
6415
|
}>;
|
|
6224
6416
|
confidence: ZodNumber;
|
|
@@ -6252,6 +6444,8 @@ export declare const DetectionSignalExposureSchema: ZodObject<{
|
|
|
6252
6444
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
6253
6445
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
6254
6446
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
6447
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
6448
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
6255
6449
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
6256
6450
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
6257
6451
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -6988,8 +7182,8 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
6988
7182
|
signalType: ZodEnum<{
|
|
6989
7183
|
behavioral: "behavioral";
|
|
6990
7184
|
pattern: "pattern";
|
|
6991
|
-
signature: "signature";
|
|
6992
7185
|
network: "network";
|
|
7186
|
+
signature: "signature";
|
|
6993
7187
|
fingerprint: "fingerprint";
|
|
6994
7188
|
}>;
|
|
6995
7189
|
confidence: ZodNumber;
|
|
@@ -7030,10 +7224,10 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
7030
7224
|
behavioral: "behavioral";
|
|
7031
7225
|
error: "error";
|
|
7032
7226
|
pattern: "pattern";
|
|
7227
|
+
network: "network";
|
|
7033
7228
|
kyaos_handshake: "kyaos_handshake";
|
|
7034
7229
|
mcp_i_handshake: "mcp_i_handshake";
|
|
7035
7230
|
signature: "signature";
|
|
7036
|
-
network: "network";
|
|
7037
7231
|
"kya-http": "kya-http";
|
|
7038
7232
|
"kya-http-delegated": "kya-http-delegated";
|
|
7039
7233
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -7100,6 +7294,8 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
7100
7294
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
7101
7295
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
7102
7296
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
7297
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
7298
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
7103
7299
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
7104
7300
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
7105
7301
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -7758,8 +7954,8 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
7758
7954
|
signalType: ZodEnum<{
|
|
7759
7955
|
behavioral: "behavioral";
|
|
7760
7956
|
pattern: "pattern";
|
|
7761
|
-
signature: "signature";
|
|
7762
7957
|
network: "network";
|
|
7958
|
+
signature: "signature";
|
|
7763
7959
|
fingerprint: "fingerprint";
|
|
7764
7960
|
}>;
|
|
7765
7961
|
confidence: ZodNumber;
|
|
@@ -7800,10 +7996,10 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
7800
7996
|
behavioral: "behavioral";
|
|
7801
7997
|
error: "error";
|
|
7802
7998
|
pattern: "pattern";
|
|
7999
|
+
network: "network";
|
|
7803
8000
|
kyaos_handshake: "kyaos_handshake";
|
|
7804
8001
|
mcp_i_handshake: "mcp_i_handshake";
|
|
7805
8002
|
signature: "signature";
|
|
7806
|
-
network: "network";
|
|
7807
8003
|
"kya-http": "kya-http";
|
|
7808
8004
|
"kya-http-delegated": "kya-http-delegated";
|
|
7809
8005
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -7870,6 +8066,8 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
7870
8066
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
7871
8067
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
7872
8068
|
"detection/client-headless-escalation-signal": "detection/client-headless-escalation-signal";
|
|
8069
|
+
"detection/automation-default-viewport": "detection/automation-default-viewport";
|
|
8070
|
+
"detection/client-interaction-human": "detection/client-interaction-human";
|
|
7873
8071
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
7874
8072
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
7875
8073
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -8949,10 +9147,10 @@ export declare const auditLogQuerySchema: ZodObject<{
|
|
|
8949
9147
|
adminId: ZodOptional<ZodString>;
|
|
8950
9148
|
action: ZodOptional<ZodString>;
|
|
8951
9149
|
targetType: ZodOptional<ZodEnum<{
|
|
8952
|
-
organization: "organization";
|
|
8953
9150
|
user: "user";
|
|
8954
9151
|
system: "system";
|
|
8955
9152
|
project: "project";
|
|
9153
|
+
organization: "organization";
|
|
8956
9154
|
}>>;
|
|
8957
9155
|
startDate: ZodOptional<ZodString>;
|
|
8958
9156
|
endDate: ZodOptional<ZodString>;
|
|
@@ -9089,6 +9287,7 @@ export interface AdminExecutiveSummaryResponse {
|
|
|
9089
9287
|
projects: number;
|
|
9090
9288
|
users: number;
|
|
9091
9289
|
usersExcluded: number;
|
|
9290
|
+
usersInvited: number;
|
|
9092
9291
|
signupsInPeriod: number;
|
|
9093
9292
|
newOrgsInPeriod: number;
|
|
9094
9293
|
};
|
|
@@ -9511,6 +9710,16 @@ export interface AgentActivityData {
|
|
|
9511
9710
|
start: string;
|
|
9512
9711
|
end: string;
|
|
9513
9712
|
};
|
|
9713
|
+
sessionFacts?: AgentSessionFacts;
|
|
9714
|
+
}
|
|
9715
|
+
export interface AgentSessionFacts {
|
|
9716
|
+
firstSeen: string;
|
|
9717
|
+
clientDid?: string;
|
|
9718
|
+
sources?: {
|
|
9719
|
+
pixel: boolean;
|
|
9720
|
+
bouncer: boolean;
|
|
9721
|
+
gateway: boolean;
|
|
9722
|
+
};
|
|
9514
9723
|
}
|
|
9515
9724
|
export type AgentActivityResult = AgentActivityData;
|
|
9516
9725
|
export type IdentifiedTier = 'named' | 'pseudo' | 'did' | 'network' | 'unattributed' | 'anonymous';
|
|
@@ -9595,7 +9804,7 @@ export interface AgentHumansTimeseriesResult {
|
|
|
9595
9804
|
end: string;
|
|
9596
9805
|
};
|
|
9597
9806
|
}
|
|
9598
|
-
export type ActivityLens = 'bots' | 'ai' | 'humans' | 'blocked';
|
|
9807
|
+
export type ActivityLens = 'bots' | 'ai' | 'humans' | 'blocked' | 'unclassified';
|
|
9599
9808
|
export interface OutcomeMix {
|
|
9600
9809
|
allowed: number;
|
|
9601
9810
|
blocked: number;
|
|
@@ -9817,7 +10026,7 @@ export declare const INSTALLATION_KINDS: readonly ["agent", "pixel", "middleware
|
|
|
9817
10026
|
export type InstallationKind = (typeof INSTALLATION_KINDS)[number];
|
|
9818
10027
|
export declare const INSTALLATION_TYPES: readonly ["pixel", "middleware_node", "middleware_dotnet", "middleware_jvm", "middleware_android", "middleware_ios", "middleware_no_traffic", "dns_gateway", "beacon"];
|
|
9819
10028
|
export type InstallationType = (typeof INSTALLATION_TYPES)[number];
|
|
9820
|
-
export declare const TRAFFIC_TAXONOMY_BUCKETS: readonly ["human", "ai_agent", "ai_crawler", "other_automation"];
|
|
10029
|
+
export declare const TRAFFIC_TAXONOMY_BUCKETS: readonly ["human", "ai_agent", "ai_crawler", "other_automation", "unidentified"];
|
|
9821
10030
|
export type TrafficTaxonomyBucket = (typeof TRAFFIC_TAXONOMY_BUCKETS)[number];
|
|
9822
10031
|
export declare const EXCLUSION_BUCKETS: readonly ["vouched", "internal_team", "test_pattern", "shopify_review", "cohort"];
|
|
9823
10032
|
export type ExclusionBucket = (typeof EXCLUSION_BUCKETS)[number];
|
|
@@ -9835,6 +10044,8 @@ export interface AdminOverviewLadder {
|
|
|
9835
10044
|
emailsCollected: AdminDelta;
|
|
9836
10045
|
users: AdminDelta;
|
|
9837
10046
|
signedInProxy: AdminDelta;
|
|
10047
|
+
setupCompleted: AdminDelta;
|
|
10048
|
+
wentLive: AdminDelta;
|
|
9838
10049
|
onboarded: AdminDelta;
|
|
9839
10050
|
activated: AdminDelta;
|
|
9840
10051
|
}
|
|
@@ -9953,6 +10164,28 @@ export interface ExclusionAuditRow {
|
|
|
9953
10164
|
users: number;
|
|
9954
10165
|
organizations: number;
|
|
9955
10166
|
}
|
|
10167
|
+
export interface AdminCohortExportCounts {
|
|
10168
|
+
rows: number;
|
|
10169
|
+
rowsWithEmail: number;
|
|
10170
|
+
distinctEmails: number;
|
|
10171
|
+
dropped: {
|
|
10172
|
+
noEmail: number;
|
|
10173
|
+
notEmailShaped: number;
|
|
10174
|
+
duplicate: number;
|
|
10175
|
+
};
|
|
10176
|
+
}
|
|
10177
|
+
export interface AdminCohortReconcile {
|
|
10178
|
+
source: 'amplitude' | 'stale_cache';
|
|
10179
|
+
syncedAt: string;
|
|
10180
|
+
emails: number;
|
|
10181
|
+
export: AdminCohortExportCounts | null;
|
|
10182
|
+
matches: {
|
|
10183
|
+
excludedByCohort: number;
|
|
10184
|
+
excludedByOtherRule: number;
|
|
10185
|
+
leadsOnly: number;
|
|
10186
|
+
noMatch: number;
|
|
10187
|
+
};
|
|
10188
|
+
}
|
|
9956
10189
|
export interface AdminOverviewList<T> {
|
|
9957
10190
|
rows: T[];
|
|
9958
10191
|
total: number;
|
|
@@ -9977,6 +10210,7 @@ export interface AdminOverviewLists {
|
|
|
9977
10210
|
pixelInstallations: AdminOverviewList<PixelInstallationRow>;
|
|
9978
10211
|
leads: AdminOverviewList<LeadRow>;
|
|
9979
10212
|
exclusionAudit: ExclusionAuditRow[];
|
|
10213
|
+
cohortReconcile?: AdminCohortReconcile | null;
|
|
9980
10214
|
}
|
|
9981
10215
|
export interface AdminOverviewMeta {
|
|
9982
10216
|
generatedAt: string;
|
|
@@ -10006,11 +10240,12 @@ export interface AdminOverviewMeta {
|
|
|
10006
10240
|
export declare const ADMIN_TRUSTED_METRICS: readonly ["emailsCollected", "users", "signedIn", "onboarded", "activated", "activeUsers", "peopleInOrgs", "installedOrgs"];
|
|
10007
10241
|
export type AdminTrustedMetric = (typeof ADMIN_TRUSTED_METRICS)[number];
|
|
10008
10242
|
export declare const ADMIN_ORG_EXCLUSION_REASONS: readonly ["test_org", "no_counted_members"];
|
|
10009
|
-
export declare const ADMIN_ACCOUNT_STATUSES: readonly ["counted", "vouched", "internal_team", "test_pattern", "shopify_review", "cohort", "test_org", "no_counted_members"];
|
|
10243
|
+
export declare const ADMIN_ACCOUNT_STATUSES: readonly ["counted", "invited", "vouched", "internal_team", "test_pattern", "shopify_review", "cohort", "test_org", "no_counted_members"];
|
|
10010
10244
|
export type AdminAccountStatus = (typeof ADMIN_ACCOUNT_STATUSES)[number];
|
|
10011
10245
|
export interface AdminCountSplit {
|
|
10012
10246
|
counted: number;
|
|
10013
10247
|
excluded: number;
|
|
10248
|
+
invited?: number;
|
|
10014
10249
|
}
|
|
10015
10250
|
export interface AdminDailyActive {
|
|
10016
10251
|
date: string;
|
|
@@ -10029,7 +10264,7 @@ export interface AdminOverviewAccounts {
|
|
|
10029
10264
|
splits: Record<AdminTrustedMetric, AdminCountSplit | null>;
|
|
10030
10265
|
activeUsers: AdminActiveUsersSummary;
|
|
10031
10266
|
}
|
|
10032
|
-
export declare const ADMIN_ACCOUNTS_STATUS_FILTERS: readonly ["all", "excluded", "counted", "vouched", "internal_team", "test_pattern", "shopify_review", "cohort", "test_org", "no_counted_members"];
|
|
10267
|
+
export declare const ADMIN_ACCOUNTS_STATUS_FILTERS: readonly ["all", "excluded", "counted", "invited", "vouched", "internal_team", "test_pattern", "shopify_review", "cohort", "test_org", "no_counted_members"];
|
|
10033
10268
|
export type AdminAccountsStatusFilter = (typeof ADMIN_ACCOUNTS_STATUS_FILTERS)[number];
|
|
10034
10269
|
export declare const adminAccountsQuerySchema: ZodObject<{
|
|
10035
10270
|
metric: ZodEnum<{
|
|
@@ -10057,6 +10292,7 @@ export declare const adminAccountsQuerySchema: ZodObject<{
|
|
|
10057
10292
|
test_org: "test_org";
|
|
10058
10293
|
no_counted_members: "no_counted_members";
|
|
10059
10294
|
counted: "counted";
|
|
10295
|
+
invited: "invited";
|
|
10060
10296
|
excluded: "excluded";
|
|
10061
10297
|
}>>;
|
|
10062
10298
|
}, $strip>;
|
|
@@ -10153,7 +10389,28 @@ export declare function normalizeDetectionClassEnum(value: unknown): DetectionCl
|
|
|
10153
10389
|
export declare const REPORT_AI_CRAWLER_NAMES: readonly string[];
|
|
10154
10390
|
export declare const REPORT_AI_AGENT_NAMES: readonly string[];
|
|
10155
10391
|
export declare function buildKnownPatternLookup(patterns: readonly AgentPattern[]): ReadonlyMap<string, AgentPattern>;
|
|
10156
|
-
export declare function classifyAgentTaxonomy(agentType: string | null | undefined, detectionClass: DetectionClassEnum | string | null | undefined): TrafficTaxonomyBucket
|
|
10392
|
+
export declare function classifyAgentTaxonomy(agentType: string | null | undefined, detectionClass: DetectionClassEnum | string | null | undefined): Exclude<TrafficTaxonomyBucket, 'unidentified'>;
|
|
10393
|
+
//#endregion
|
|
10394
|
+
//#region src/session-velocity-partition.d.ts
|
|
10395
|
+
export declare const SESSION_VELOCITY_BUCKET_SECONDS = 300;
|
|
10396
|
+
export declare const SESSION_VELOCITY_BUCKET_MS: number;
|
|
10397
|
+
export declare const SESSION_VELOCITY_PARTITIONS = 32;
|
|
10398
|
+
export declare const SESSION_VELOCITY_SKETCH_ROWS = 4;
|
|
10399
|
+
export declare const SESSION_VELOCITY_SKETCH_COLUMN_HEX_DIGITS = 3;
|
|
10400
|
+
export declare const SESSION_VELOCITY_SKETCH_COLUMNS: number;
|
|
10401
|
+
export declare const SESSION_VELOCITY_SKETCH_COUNTER_MAX = 65535;
|
|
10402
|
+
export declare const SESSION_VELOCITY_WRITE_COUNTER_INDEX: number;
|
|
10403
|
+
export declare const SESSION_VELOCITY_EXPIRY_SKEW_SECONDS = 30;
|
|
10404
|
+
export declare const VELOCITY_ESCALATION_FLOORS: {
|
|
10405
|
+
requestCount: number;
|
|
10406
|
+
requestsPerMinute: number;
|
|
10407
|
+
};
|
|
10408
|
+
export declare function sessionVelocityBucket(nowMs: number): number;
|
|
10409
|
+
export declare function sessionVelocityBucketStart(nowMs: number): number;
|
|
10410
|
+
export declare function sessionVelocityExpirySeconds(nowMs: number, bucketMs?: number, skewSeconds?: number): number;
|
|
10411
|
+
export declare function verdictShardIndexFor(projectId: string, sessionId: string, count: number): number;
|
|
10412
|
+
export declare function sessionVelocityPartition(projectId: string, sessionId: string): number;
|
|
10413
|
+
export declare function sessionVelocitySketchCells(clientHash: string, hexDigits?: number, columns?: number): number[];
|
|
10157
10414
|
//#endregion
|
|
10158
10415
|
//#region src/utils/agent-runtime-label.d.ts
|
|
10159
10416
|
export declare function isClaudeProductLabel(displayName: string | null | undefined): boolean;
|
|
@@ -10811,6 +11068,12 @@ export declare const ConsentBrandingSchema: ZodObject<{
|
|
|
10811
11068
|
dark: "dark";
|
|
10812
11069
|
auto: "auto";
|
|
10813
11070
|
}>>;
|
|
11071
|
+
surfaceColor: ZodOptional<ZodString>;
|
|
11072
|
+
panelColor: ZodOptional<ZodString>;
|
|
11073
|
+
borderColor: ZodOptional<ZodString>;
|
|
11074
|
+
textColor: ZodOptional<ZodString>;
|
|
11075
|
+
mutedTextColor: ZodOptional<ZodString>;
|
|
11076
|
+
focusColor: ZodOptional<ZodString>;
|
|
10814
11077
|
}, $strip>;
|
|
10815
11078
|
type ConsentBranding = output<typeof ConsentBrandingSchema>;
|
|
10816
11079
|
export declare const ConsentTermsSchema: ZodObject<{
|
|
@@ -10850,8 +11113,8 @@ export declare const ConsentCapabilitySchema: ZodObject<{
|
|
|
10850
11113
|
key: "key";
|
|
10851
11114
|
search: "search";
|
|
10852
11115
|
user: "user";
|
|
10853
|
-
send: "send";
|
|
10854
11116
|
package: "package";
|
|
11117
|
+
send: "send";
|
|
10855
11118
|
tools: "tools";
|
|
10856
11119
|
cart: "cart";
|
|
10857
11120
|
card: "card";
|
|
@@ -10885,8 +11148,8 @@ export declare const ConsentCapabilityGroupSchema: ZodObject<{
|
|
|
10885
11148
|
key: "key";
|
|
10886
11149
|
search: "search";
|
|
10887
11150
|
user: "user";
|
|
10888
|
-
send: "send";
|
|
10889
11151
|
package: "package";
|
|
11152
|
+
send: "send";
|
|
10890
11153
|
tools: "tools";
|
|
10891
11154
|
cart: "cart";
|
|
10892
11155
|
card: "card";
|
|
@@ -10940,7 +11203,9 @@ export declare const ConsentSignInCopySchema: ZodObject<{
|
|
|
10940
11203
|
}, $strip>>;
|
|
10941
11204
|
}, $strip>;
|
|
10942
11205
|
export declare const ConsentScopeLabelsSchema: ZodRecord<ZodString, ZodString>;
|
|
11206
|
+
export declare const ConsentAssuranceNotesSchema: ZodRecord<ZodString, ZodString>;
|
|
10943
11207
|
export declare const ConsentConfigSchema: ZodObject<{
|
|
11208
|
+
chooseThenProveEnabled: ZodOptional<ZodBoolean>;
|
|
10944
11209
|
branding: ZodOptional<ZodObject<{
|
|
10945
11210
|
primaryColor: ZodOptional<ZodString>;
|
|
10946
11211
|
secondaryColor: ZodOptional<ZodString>;
|
|
@@ -10951,6 +11216,12 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
10951
11216
|
dark: "dark";
|
|
10952
11217
|
auto: "auto";
|
|
10953
11218
|
}>>;
|
|
11219
|
+
surfaceColor: ZodOptional<ZodString>;
|
|
11220
|
+
panelColor: ZodOptional<ZodString>;
|
|
11221
|
+
borderColor: ZodOptional<ZodString>;
|
|
11222
|
+
textColor: ZodOptional<ZodString>;
|
|
11223
|
+
mutedTextColor: ZodOptional<ZodString>;
|
|
11224
|
+
focusColor: ZodOptional<ZodString>;
|
|
10954
11225
|
}, $strip>>;
|
|
10955
11226
|
terms: ZodOptional<ZodObject<{
|
|
10956
11227
|
url: ZodOptional<ZodString>;
|
|
@@ -11000,8 +11271,8 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
11000
11271
|
key: "key";
|
|
11001
11272
|
search: "search";
|
|
11002
11273
|
user: "user";
|
|
11003
|
-
send: "send";
|
|
11004
11274
|
package: "package";
|
|
11275
|
+
send: "send";
|
|
11005
11276
|
tools: "tools";
|
|
11006
11277
|
cart: "cart";
|
|
11007
11278
|
card: "card";
|
|
@@ -11059,6 +11330,7 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
11059
11330
|
}, $strip>>;
|
|
11060
11331
|
}, $strip>>;
|
|
11061
11332
|
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11333
|
+
assuranceNotes: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11062
11334
|
}, $strip>;
|
|
11063
11335
|
type ConsentConfig = output<typeof ConsentConfigSchema>;
|
|
11064
11336
|
export declare const BouncerConfigSchema: ZodObject<{
|
|
@@ -11206,6 +11478,7 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11206
11478
|
lastScopesSync: ZodOptional<ZodNullable<ZodString>>;
|
|
11207
11479
|
delegationExpirationDays: ZodDefault<ZodNumber>;
|
|
11208
11480
|
consentConfig: ZodOptional<ZodObject<{
|
|
11481
|
+
chooseThenProveEnabled: ZodOptional<ZodBoolean>;
|
|
11209
11482
|
branding: ZodOptional<ZodObject<{
|
|
11210
11483
|
primaryColor: ZodOptional<ZodString>;
|
|
11211
11484
|
secondaryColor: ZodOptional<ZodString>;
|
|
@@ -11216,6 +11489,12 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11216
11489
|
dark: "dark";
|
|
11217
11490
|
auto: "auto";
|
|
11218
11491
|
}>>;
|
|
11492
|
+
surfaceColor: ZodOptional<ZodString>;
|
|
11493
|
+
panelColor: ZodOptional<ZodString>;
|
|
11494
|
+
borderColor: ZodOptional<ZodString>;
|
|
11495
|
+
textColor: ZodOptional<ZodString>;
|
|
11496
|
+
mutedTextColor: ZodOptional<ZodString>;
|
|
11497
|
+
focusColor: ZodOptional<ZodString>;
|
|
11219
11498
|
}, $strip>>;
|
|
11220
11499
|
terms: ZodOptional<ZodObject<{
|
|
11221
11500
|
url: ZodOptional<ZodString>;
|
|
@@ -11265,8 +11544,8 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11265
11544
|
key: "key";
|
|
11266
11545
|
search: "search";
|
|
11267
11546
|
user: "user";
|
|
11268
|
-
send: "send";
|
|
11269
11547
|
package: "package";
|
|
11548
|
+
send: "send";
|
|
11270
11549
|
tools: "tools";
|
|
11271
11550
|
cart: "cart";
|
|
11272
11551
|
card: "card";
|
|
@@ -11324,6 +11603,7 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11324
11603
|
}, $strip>>;
|
|
11325
11604
|
}, $strip>>;
|
|
11326
11605
|
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11606
|
+
assuranceNotes: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11327
11607
|
}, $strip>>;
|
|
11328
11608
|
discoveredTools: ZodDefault<ZodRecord<ZodString, ZodUnknown>>;
|
|
11329
11609
|
mcpServerUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -11364,6 +11644,7 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11364
11644
|
}>>;
|
|
11365
11645
|
delegationExpirationDays: ZodOptional<ZodNumber>;
|
|
11366
11646
|
consentConfig: ZodOptional<ZodObject<{
|
|
11647
|
+
chooseThenProveEnabled: ZodOptional<ZodBoolean>;
|
|
11367
11648
|
branding: ZodOptional<ZodObject<{
|
|
11368
11649
|
primaryColor: ZodOptional<ZodString>;
|
|
11369
11650
|
secondaryColor: ZodOptional<ZodString>;
|
|
@@ -11374,6 +11655,12 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11374
11655
|
dark: "dark";
|
|
11375
11656
|
auto: "auto";
|
|
11376
11657
|
}>>;
|
|
11658
|
+
surfaceColor: ZodOptional<ZodString>;
|
|
11659
|
+
panelColor: ZodOptional<ZodString>;
|
|
11660
|
+
borderColor: ZodOptional<ZodString>;
|
|
11661
|
+
textColor: ZodOptional<ZodString>;
|
|
11662
|
+
mutedTextColor: ZodOptional<ZodString>;
|
|
11663
|
+
focusColor: ZodOptional<ZodString>;
|
|
11377
11664
|
}, $strip>>;
|
|
11378
11665
|
terms: ZodOptional<ZodObject<{
|
|
11379
11666
|
url: ZodOptional<ZodString>;
|
|
@@ -11423,8 +11710,8 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11423
11710
|
key: "key";
|
|
11424
11711
|
search: "search";
|
|
11425
11712
|
user: "user";
|
|
11426
|
-
send: "send";
|
|
11427
11713
|
package: "package";
|
|
11714
|
+
send: "send";
|
|
11428
11715
|
tools: "tools";
|
|
11429
11716
|
cart: "cart";
|
|
11430
11717
|
card: "card";
|
|
@@ -11482,6 +11769,7 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11482
11769
|
}, $strip>>;
|
|
11483
11770
|
}, $strip>>;
|
|
11484
11771
|
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11772
|
+
assuranceNotes: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11485
11773
|
}, $strip>>;
|
|
11486
11774
|
mcpServerUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
11487
11775
|
isEnabled: ZodOptional<ZodBoolean>;
|
|
@@ -13781,7 +14069,6 @@ export declare const TaskGrantAdmissionRequestSchema: ZodObject<{
|
|
|
13781
14069
|
}, $strict>;
|
|
13782
14070
|
export type TaskGrantAdmissionRequest = output<typeof TaskGrantAdmissionRequestSchema>;
|
|
13783
14071
|
export declare const TaskGrantAdmissionSchema: ZodObject<{
|
|
13784
|
-
taskId: ZodString;
|
|
13785
14072
|
ownerEpoch: ZodNumber;
|
|
13786
14073
|
capabilities: ZodArray<ZodEnum<{
|
|
13787
14074
|
"task.execute": "task.execute";
|
|
@@ -13797,6 +14084,7 @@ export declare const TaskGrantAdmissionSchema: ZodObject<{
|
|
|
13797
14084
|
maxRequestBytes: ZodNumber;
|
|
13798
14085
|
reservedCostMicrousd: ZodNumber;
|
|
13799
14086
|
}, $strict>>;
|
|
14087
|
+
taskId: ZodString;
|
|
13800
14088
|
repository: ZodString;
|
|
13801
14089
|
sourceRevision: ZodNumber;
|
|
13802
14090
|
baseSha: ZodString;
|
|
@@ -14977,6 +15265,174 @@ export type CliPairingApprovedClaim = output<typeof CliPairingApprovedClaimSchem
|
|
|
14977
15265
|
export type CliPairingExchangeRequest = output<typeof CliPairingExchangeRequestSchema>;
|
|
14978
15266
|
export type CliPairingPrivateStatusData = output<typeof CliPairingPrivateStatusDataSchema>;
|
|
14979
15267
|
//#endregion
|
|
15268
|
+
//#region src/verdict-dictionaries.d.ts
|
|
15269
|
+
export declare const VERDICT_DICTIONARIES: {
|
|
15270
|
+
readonly 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\"}}";
|
|
15271
|
+
readonly 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}}}";
|
|
15272
|
+
readonly 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\"";
|
|
15273
|
+
readonly s2: "{\"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\",\"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";
|
|
15274
|
+
};
|
|
15275
|
+
export type VerdictDictionaryId = keyof typeof VERDICT_DICTIONARIES;
|
|
15276
|
+
export declare function isVerdictDictionaryId(id: string): id is VerdictDictionaryId;
|
|
15277
|
+
//#endregion
|
|
15278
|
+
//#region src/request-flag-registry.d.ts
|
|
15279
|
+
export declare const REQUEST_FLAG_BITS_VERSION = 1;
|
|
15280
|
+
export declare const REQUEST_FLAG_REGISTRY: readonly ["page_load_on_json_post", "client_hint_contradiction", "browser_headers_without_user_agent", "hosting_on_unpaid_tier", "pre_zstd_headers_on_modern_chrome", "account_three_state", "account_two_jump", "shared_clock_slot", "stable_minute_offset", "aligned_minute_batch", "account_state_rotation", "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", "sec_fetch_user_on_background_request", "hosting_old_profile_fingerprint", "no_human_proof", "guest_cors_population", "native_handoff_after_forged_web_editor", "device_type_contradiction", "served_bot_memory", "geo_witness_memory", "dispersed_burst", "account_high_call_volume", "paired_account_coordination", "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_convicted", "network_convicted", "pool_address", "ip_convicted", "account_many_apps", "account_rapid_country_rotation", "account_many_countries", "account_hour_volume", "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", "many_templates", "stale_safari_16", "mobile_app_on_hosting", "ua_new", "ua_young", "email_fan", "heavy_days", "country_days", "night_days", "net_pingpong", "lang_3way", "net24_days_15", "interleave_country_30m", "night_16_50", "sibling_client", "guest_scatter", "burst_5", "app_ua_on_web", "session_age_96h", "bare_lang_chromium", "rapid_pairs", "young_paid_business_hosting_heavy_8", "safari_26_without_priority", "old_account_abroad_new_country", "rtc16_two_days", "rtc20_prior_carry_7d", "template_majority_b_95", "same_template_3_clients", "two_operators_10s", "script_defaults_browser_ua", "agent_carry_web", "sync_group3", "aged_batch_lang", "two_addresses_10s", "flip_ladder", "flip_ua_10s", "storage_access_header", "account_all_new", "node_defaults_browser_ua", "oprot3", "oprot4", "oprotapp3", "noreuse4", "noreuse3", "apps4", "wnoreuse5"];
|
|
15281
|
+
export type RegisteredRequestFlag = (typeof REQUEST_FLAG_REGISTRY)[number];
|
|
15282
|
+
//#endregion
|
|
15283
|
+
//#region src/request-flag-bits.d.ts
|
|
15284
|
+
export declare const REQUEST_FLAG_BITS_FIELD = "request_flag_bits";
|
|
15285
|
+
export declare const UNKNOWN_FLAG_BIT_PREFIX = "bit:";
|
|
15286
|
+
export interface PackedRequestFlags {
|
|
15287
|
+
bits: string;
|
|
15288
|
+
rest: string[];
|
|
15289
|
+
}
|
|
15290
|
+
export type UnpackedRequestFlags = {
|
|
15291
|
+
flags: string[];
|
|
15292
|
+
} | {
|
|
15293
|
+
failure: 'corrupt';
|
|
15294
|
+
} | {
|
|
15295
|
+
failure: 'version';
|
|
15296
|
+
version: number;
|
|
15297
|
+
};
|
|
15298
|
+
export declare function packRequestFlags(flags: readonly string[]): PackedRequestFlags;
|
|
15299
|
+
export declare function unpackRequestFlags(bits: string): UnpackedRequestFlags;
|
|
15300
|
+
//#endregion
|
|
15301
|
+
//#region src/verdict-rules/bounds.d.ts
|
|
15302
|
+
export declare const VERDICT_RULES_BOUNDS: {
|
|
15303
|
+
readonly greatCircleKm: 20040;
|
|
15304
|
+
readonly shadowMemoryMs: 7200000;
|
|
15305
|
+
readonly shadowHistoryMs: 3600000;
|
|
15306
|
+
readonly shadowTimeoutMs: 75;
|
|
15307
|
+
readonly shadowWriteDeadlineMs: 150;
|
|
15308
|
+
readonly shadowClockSkewMs: 5000;
|
|
15309
|
+
readonly shadowObservations: 12;
|
|
15310
|
+
readonly minutePeriodMs: 60000;
|
|
15311
|
+
readonly twoJumpPriorAgeMs: 3600000;
|
|
15312
|
+
readonly schedulerAccounts: 64;
|
|
15313
|
+
readonly schedulerReorderToleranceMs: 1000;
|
|
15314
|
+
readonly schedulerPatternSlackMs: 10000;
|
|
15315
|
+
};
|
|
15316
|
+
//#endregion
|
|
15317
|
+
//#region src/verdict-rules/schema.d.ts
|
|
15318
|
+
declare const verdictRulesSchema: ZodObject<{
|
|
15319
|
+
schema: ZodLiteral<1>;
|
|
15320
|
+
version: ZodNumber;
|
|
15321
|
+
tuning: ZodObject<{
|
|
15322
|
+
currentChromeMajor: ZodNumber;
|
|
15323
|
+
oldChromeMajorLag: ZodNumber;
|
|
15324
|
+
bareTemplateMinCalls: ZodNumber;
|
|
15325
|
+
bareTemplateMinAddresses: ZodNumber;
|
|
15326
|
+
accountHourVolumeCalls: ZodNumber;
|
|
15327
|
+
behaviourIpCount: ZodNumber;
|
|
15328
|
+
spreadWindowCalls: ZodNumber;
|
|
15329
|
+
spreadWindowCountries: ZodNumber;
|
|
15330
|
+
networksInHourMin: ZodNumber;
|
|
15331
|
+
clientAppsMin: ZodNumber;
|
|
15332
|
+
poolAppsMin: ZodNumber;
|
|
15333
|
+
rapidCountryMin: ZodNumber;
|
|
15334
|
+
manyCountriesMin: ZodNumber;
|
|
15335
|
+
highCallVolumeLine: ZodNumber;
|
|
15336
|
+
minuteAlignedWindowMs: ZodNumber;
|
|
15337
|
+
webEditorHandoffWindowMs: ZodNumber;
|
|
15338
|
+
minuteAlignedWeight: ZodNumber;
|
|
15339
|
+
accountHistoryBandMedium: ZodNumber;
|
|
15340
|
+
accountHistoryBandHigh: ZodNumber;
|
|
15341
|
+
countryWeights: ZodObject<{
|
|
15342
|
+
two: ZodNumber;
|
|
15343
|
+
three: ZodNumber;
|
|
15344
|
+
}, $strict>;
|
|
15345
|
+
rotationDistanceKm: ZodNumber;
|
|
15346
|
+
rotationGapMs: ZodNumber;
|
|
15347
|
+
rotationIspCount: ZodNumber;
|
|
15348
|
+
stateApartKm: ZodNumber;
|
|
15349
|
+
twoJumpLegKm: ZodNumber;
|
|
15350
|
+
twoJumpPriorMaxAgeMs: ZodNumber;
|
|
15351
|
+
minuteBatch: ZodObject<{
|
|
15352
|
+
memoryMs: ZodNumber;
|
|
15353
|
+
timeoutMs: ZodNumber;
|
|
15354
|
+
observations: ZodNumber;
|
|
15355
|
+
spanMs: ZodNumber;
|
|
15356
|
+
}, $strict>;
|
|
15357
|
+
minutePhase: ZodObject<{
|
|
15358
|
+
clockSkewMs: ZodNumber;
|
|
15359
|
+
memoryMs: ZodNumber;
|
|
15360
|
+
timeoutMs: ZodNumber;
|
|
15361
|
+
observations: ZodNumber;
|
|
15362
|
+
spanMs: ZodNumber;
|
|
15363
|
+
}, $strict>;
|
|
15364
|
+
scheduler: ZodObject<{
|
|
15365
|
+
memoryMs: ZodNumber;
|
|
15366
|
+
timeoutMs: ZodNumber;
|
|
15367
|
+
reorderToleranceMs: ZodNumber;
|
|
15368
|
+
clockSkewMs: ZodNumber;
|
|
15369
|
+
burstGapMs: ZodNumber;
|
|
15370
|
+
burstSpanMs: ZodNumber;
|
|
15371
|
+
burstMinAccounts: ZodNumber;
|
|
15372
|
+
periodToleranceMs: ZodNumber;
|
|
15373
|
+
coreMinAccounts: ZodNumber;
|
|
15374
|
+
}, $strict>;
|
|
15375
|
+
publicAccessPointAccounts: ZodNumber;
|
|
15376
|
+
networkAccountWeights: ZodObject<{
|
|
15377
|
+
fixed_line: ZodObject<{
|
|
15378
|
+
publicAccessPoint: ZodNumber;
|
|
15379
|
+
steps: ZodArray<ZodObject<{
|
|
15380
|
+
accounts: ZodNumber;
|
|
15381
|
+
weight: ZodNumber;
|
|
15382
|
+
}, $strict>>;
|
|
15383
|
+
}, $strict>;
|
|
15384
|
+
unrouted_isp: ZodObject<{
|
|
15385
|
+
publicAccessPoint: ZodNumber;
|
|
15386
|
+
steps: ZodArray<ZodObject<{
|
|
15387
|
+
accounts: ZodNumber;
|
|
15388
|
+
weight: ZodNumber;
|
|
15389
|
+
}, $strict>>;
|
|
15390
|
+
}, $strict>;
|
|
15391
|
+
hosting: ZodObject<{
|
|
15392
|
+
publicAccessPoint: ZodNumber;
|
|
15393
|
+
steps: ZodArray<ZodObject<{
|
|
15394
|
+
accounts: ZodNumber;
|
|
15395
|
+
weight: ZodNumber;
|
|
15396
|
+
}, $strict>>;
|
|
15397
|
+
}, $strict>;
|
|
15398
|
+
}, $strict>;
|
|
15399
|
+
headerContradictionWeights: ZodObject<{
|
|
15400
|
+
page_load_on_json_post: ZodNumber;
|
|
15401
|
+
client_hint_contradiction: ZodNumber;
|
|
15402
|
+
browser_headers_without_user_agent: ZodNumber;
|
|
15403
|
+
hosting_on_unpaid_tier: ZodNumber;
|
|
15404
|
+
pre_zstd_headers_on_modern_chrome: ZodNumber;
|
|
15405
|
+
}, $strict>;
|
|
15406
|
+
populationFloorWeight: ZodNumber;
|
|
15407
|
+
ja4VersionMismatchWeight: ZodNumber;
|
|
15408
|
+
velocityEscalationFloors: ZodObject<{
|
|
15409
|
+
requestCount: ZodNumber;
|
|
15410
|
+
requestsPerMinute: ZodNumber;
|
|
15411
|
+
}, $strict>;
|
|
15412
|
+
zstdAndPriorityFromMajor: ZodNumber;
|
|
15413
|
+
greaseMajorRange: ZodObject<{
|
|
15414
|
+
from: ZodNumber;
|
|
15415
|
+
to: ZodNumber;
|
|
15416
|
+
}, $strict>;
|
|
15417
|
+
missingUaGzipChromeMinimumMajor: ZodNumber;
|
|
15418
|
+
establishedAgeDays: ZodNumber;
|
|
15419
|
+
newAccountAgeDays: ZodNumber;
|
|
15420
|
+
maxAccountAgeDays: ZodNumber;
|
|
15421
|
+
}, $strict>;
|
|
15422
|
+
}, $strict>;
|
|
15423
|
+
type VerdictRules = output<typeof verdictRulesSchema>;
|
|
15424
|
+
type VerdictRulesTuning = VerdictRules['tuning'];
|
|
15425
|
+
//#endregion
|
|
15426
|
+
//#region src/verdict-rules/compiled.d.ts
|
|
15427
|
+
export interface CompiledRules {
|
|
15428
|
+
readonly source: 'embedded';
|
|
15429
|
+
readonly version: number;
|
|
15430
|
+
readonly tuning: Readonly<VerdictRulesTuning>;
|
|
15431
|
+
}
|
|
15432
|
+
export declare const compileEmbeddedVerdictRules: (rules: VerdictRules) => CompiledRules;
|
|
15433
|
+
export declare const embeddedVerdictRules: CompiledRules;
|
|
15434
|
+
export declare const embeddedVerdictRulesSha256: string;
|
|
15435
|
+
//#endregion
|
|
14980
15436
|
//#region src/index.d.ts
|
|
14981
15437
|
export type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]; };
|
|
14982
15438
|
export type Nullable<T> = T | null;
|
|
@@ -14989,5 +15445,5 @@ export type AsyncResult<T, E = Error> = Promise<{
|
|
|
14989
15445
|
export declare const VERSION = "0.1.0";
|
|
14990
15446
|
export declare const PACKAGE_NAME = "@kya-os/checkpoint-shared";
|
|
14991
15447
|
//#endregion
|
|
14992
|
-
export { ACCEPT_CHALLENGE_HEADER, AGENT_CATALOG, ANONYMOUS_PRINCIPAL_DID, AUTH_DOMAIN, AgentCatalogEntry, AgentCatalogTier, type AllowListEntry, AllowListEntrySchema, type ApprovalQuorum, type ApprovalQuorumChallengeWireInput, type AssuranceTier, AssuranceTierSchema, type AuthMode, type AuthorizationMode, BASELINE_ALLOW_POLICY_ID, BESPOKE_POLICY_IDS, BLOCKED_PATH,
|
|
15448
|
+
export { ACCEPT_CHALLENGE_HEADER, AGENT_CATALOG, ANONYMOUS_PRINCIPAL_DID, AUTH_DOMAIN, AgentCatalogEntry, AgentCatalogTier, type AllowListEntry, AllowListEntrySchema, type ApprovalQuorum, type ApprovalQuorumChallengeWireInput, type AssuranceTier, AssuranceTierSchema, type AuthMode, type AuthorizationMode, BASELINE_ALLOW_POLICY_ID, BESPOKE_POLICY_IDS, BLOCKED_PATH, type BlockReason, BlockReasonSchema, BodyReadOptions, BotSignalsResolution, BotSignalsSource, BotSignalsTrustPolicy, type BouncerConfig, type BouncerOutcome, BoundedBody, ByteBoundedMemo, type CachedPolicy, type ChallengeContextFailure, type ChallengeContextFailureEvent, type ChallengeEnvelopeMode, type ChallengeParams, ChallengeParamsSchema, ChallengeWireError, type ChallengeWireErrorCode, type ChallengeWireInput, type ChallengeWireKind, ClientAddressShadow, ClientIpHeaderValue, ClientIpHeaders, ClientIpResolution, ClientIpSource, ClientIpTrustPolicy, CloudflareRequestCf, type ConditionField, ConditionFieldSchema, type ConditionOperator, ConditionOperatorSchema, type ConditionValue, ConditionValueSchema, type ConfiguredProvider, type ConsentBranding, type ConsentCapabilityGroup, type ConsentConfig, type ConsentConfigMetadata, type ConsentPolicyResponse, type ConsentPolicyRiskLevel, type ConsentProviderType, type ConsentTerms, type ConsentUI, type CredentialProvider, type CredentialProviderConfig, DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, DELEGATION_PROOF_HEADERS, DETECTION_REASON_CODES, DeadlineBoundedBody, type Decision, type DecisionLike, DecisionSchema, type DelegationChallengeBody, type DelegationChallengeEnvelope, type DelegationChallengeEnvelopeMode, type DelegationChallengeWireInput, type DelegationLifecycle, type DelegationLifecycleAuditReference, type DelegationLifecycleHuman, type DenyListEntry, DenyListEntrySchema, DetectionReasonCode, type EnforcementAction, EnforcementActionSchema, type EnforcementMode, EnforcementModeSchema, FAIL_CLOSED_BODY, FAIL_CLOSED_HEADERS, FAIL_CLOSED_STATUS, type FetcherHeaderInput, type FingerprintAnalysis, type FingerprintResponse, type GatewayConfig, type GatewayConnectedAgent, type GatewayConnectionsSummary, type GatewayToolCall, type HeaderEntry, type IProviderRegistry, type InstructPayload, InstructPayloadSchema, type InvalidStepUpReason, KYA_HTTP_ERROR, KYA_HTTP_ERROR_STATUS, KYA_OS_HANDSHAKE_METHODS, KYA_OS_WIRE_METHODS, KYA_SIGNED_BODY_MAX_BYTES, KyaHttpErrorCode, type LintFinding, MAX_REASON_CODES_HEADER_BYTES, MAX_REASON_CODES_ON_WIRE, type McpIPayload, NO_EVIDENCE_CATEGORY, NO_EVIDENCE_EQUALITY_TERM, NO_EVIDENCE_EXCLUSION_TERM, type NetworkTiming, type NextRouteContext, type OAuth2Provider, type OAuthClient, type OAuthProviderConfig, type OAuthProviderMetadata, type OAuthProviderType, ObservedClientAddressResolution, type OptionalNextRouteContext, PolicyAuthError, type PolicyCacheAdapter, type PolicyCondition, PolicyConditionSchema, type PolicyConfig, PolicyConfigSchema, PolicyFetcher, type PolicyFetcherConfig, type PolicyHazardAnalysis, type PolicyMetadata, PolicyMetadataSchema, type PolicyRule, PolicyRuleSchema, PolicyUnavailableError, type ProbeClass, type ProviderAuthType, type ProviderConfig, type ProviderRegistryDefinition, type ProvidersResponse, ProxyAssertion, ProxyAssertionSchema, ProxyCollectionState, ProxyCollectionStateSchema, REGISTERED_SID_MAX_LENGTH, RULESET_HASH_REGEX, ReasonCodeDetectionFacts, type RedirectTarget, RedirectTargetSchema, type RefreshScopesRequest, type RegistryLogger, type RenderedResponseLike, type RequestFacts, type ResetPasswordData, ResolveBotSignalsInput, type ResolveChallengeContextOptions, ResolveClientIpInput, type ResponseShape, type RouteParamValue, type RouteParams, type RouteParamsFromContext, type RuleMetadata, RuleMetadataSchema, SID_ATTRIBUTABLE_RESULT, type Scope, type StaleVendorDetail, type StepUpQuorumCheck, type StepUpQuorumLike, type SuggestedAction, SuggestedActionSchema, TIMEZONE_COUNTRY_MAP, type TLSFingerprint, type ThresholdConfig, ThresholdConfigSchema, TimezoneContradictionResult, UUID_PATTERN, type UpdateBouncerConfig, type UpstreamServer, VALIDATION_PATTERNS, VERDICT_COOKIE_NAME, type VendorFreshnessInput, type Verdict, VerificationMethod, acceptsHtml, analyzePolicySource, approvalQuorumForRequest, bespokePolicyLabel, blockEqualityLiterals, buildChallengeWire, buildDelegationBearerHeader, buildDelegationChallengeBody, buildDelegationChallengeEnvelope, buildDelegationChallengeHeader, buildDelegationInstructions, checkTimezoneCountryContradiction, classifyResponseShape, compareForwardedChainShadow, compressIpv6, decisionPolicyId, defaultSignInHost, defaultSignInHostLabel, deriveDelegationPickupUri, deriveVerdict, encodeVerdictCookie, extractMatch, findMatchingPattern, formatReasonCodesHeader, generateDelegationSid, getVerificationMethodDescription, getVerificationReliability, getVerificationRiskLevel, isBespokePolicyId, isDefaultSignInHostLabel, isDnsLabel, isEngineEnforcing, isHighConfidenceVerification, isKyaOsHandshakeMethod, isKyaOsWireMethod, isNonNavigablePolicyId, isPolicyAuthError, isPolicyUnavailableError, isUnderAuthDomain, mapDetectionToReasonCodes, mapProxyAssertions, matchPath, nonNavigablePolicyLabel, normalizeChallengeType, normalizeClientIp, normalizeHandshakeMethod, normalizeWireMethod, parseCedarStatements, parseIpv6, pathHasUnnarrowedDenyRuleFor, pathLiteralsInBlock, readBodyBounded, reasonCodeForSignalSource, relayedRequestTarget, requestCarriesDelegationProof, requestDeclaresBody, requestPresentedCredential, requestPresentsKyaSignature, requiredScopesForRequest, resolveBotSignals, resolveChallengeContext, resolveClientIp, resolveForwardedChainShadow, resolveObservedClientAddress, resolveTimezoneCountry, safeParsePolicyConfig, selectBodyReadable200, serveBodyReadable200, splitCedarBlocks, statementApplies, statementId, testPattern, testPatterns, validateStepUpQuorum, withNoEvidenceExclusion, withoutTrailingDots };
|
|
14993
15449
|
//# sourceMappingURL=index.d.ts.map
|