@kya-os/checkpoint-shared 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +113 -0
- package/README.md +1 -1
- 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 +53 -5
- package/dist/browser-posture.mjs +53 -5
- 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 +1 -0
- package/dist/deploy/index.d.mts.map +1 -1
- package/dist/deploy/index.d.ts +1 -0
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/index.js +14 -2
- package/dist/deploy/index.mjs +14 -2
- 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-D2vjr7jB.d.mts → fetcher-CTKz07jg.d.mts} +13 -3
- package/dist/fetcher-CTKz07jg.d.mts.map +1 -0
- package/dist/{fetcher-C8qvwdnA.d.ts → fetcher-DCr920hx.d.ts} +13 -3
- 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/host-adapter/index.d.mts +1 -1
- package/dist/host-adapter/index.d.ts +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-DnFsmr_o.d.ts → index-Cdv_FH0H.d.ts} +2 -2
- package/dist/{index-DnFsmr_o.d.ts.map → index-Cdv_FH0H.d.ts.map} +1 -1
- package/dist/{index-rvw5Bz-r.d.mts → index-DL_dmQBY.d.mts} +2 -2
- package/dist/{index-rvw5Bz-r.d.mts.map → index-DL_dmQBY.d.mts.map} +1 -1
- package/dist/index.d.mts +641 -169
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +641 -169
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +819 -210
- package/dist/index.mjs +765 -200
- 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 +7 -2
- 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/policy/schemas.d.mts +1 -1
- package/dist/policy/schemas.d.ts +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-D6KCaT1E.d.ts → registered-sid-BgDhdj2l.d.mts} +24 -2
- package/dist/registered-sid-BgDhdj2l.d.mts.map +1 -0
- package/dist/{registered-sid-D6KCaT1E.d.mts → registered-sid-BgDhdj2l.d.ts} +24 -2
- package/dist/registered-sid-BgDhdj2l.d.ts.map +1 -0
- package/dist/{registered-sid-DVGTSH0L.js → registered-sid-DG1tSSvl.js} +162 -4
- package/dist/{registered-sid-26hNxp6t.mjs → registered-sid-D__xiDPu.mjs} +134 -6
- package/dist/registered-sid-D__xiDPu.mjs.map +1 -0
- package/dist/{schemas-m-GqyfyO.d.mts → schemas-BhC88D1-.d.mts} +5 -5
- package/dist/{schemas-m-GqyfyO.d.mts.map → schemas-BhC88D1-.d.mts.map} +1 -1
- package/dist/{schemas-CGKHzcMV.d.ts → schemas-DZa1ouGs.d.ts} +5 -5
- package/dist/{schemas-CGKHzcMV.d.ts.map → schemas-DZa1ouGs.d.ts.map} +1 -1
- package/dist/signals/index.d.mts.map +1 -1
- package/dist/signals/index.d.ts.map +1 -1
- package/dist/signals/index.js +4 -0
- package/dist/signals/index.mjs +4 -0
- package/dist/signals/index.mjs.map +1 -1
- 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-C8qvwdnA.d.ts.map +0 -1
- package/dist/fetcher-D2vjr7jB.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-26hNxp6t.mjs.map +0 -1
- package/dist/registered-sid-D6KCaT1E.d.mts.map +0 -1
- package/dist/registered-sid-D6KCaT1E.d.ts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,84 +1,21 @@
|
|
|
1
1
|
import { AGENT_CATALOG, AgentCatalogEntry, AgentCatalogTier } from "./agent-catalog.mjs";
|
|
2
2
|
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.mjs";
|
|
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.mjs";
|
|
4
4
|
import { AUTH_DOMAIN, defaultSignInHost, defaultSignInHostLabel, isDefaultSignInHostLabel, isDnsLabel, isUnderAuthDomain, withoutTrailingDots } from "./default-sign-in-host.mjs";
|
|
5
5
|
import { t as RULESET_HASH_REGEX } from "./ruleset-hash-IRN5eI9H.mjs";
|
|
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-
|
|
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-DL_dmQBY.mjs";
|
|
7
7
|
import { n as KYA_HTTP_ERROR_STATUS, r as KyaHttpErrorCode, t as KYA_HTTP_ERROR } from "./kya-http-error-codes-C14E4gi3.mjs";
|
|
8
8
|
import { n as normalizeChallengeType, t as isEngineEnforcing } from "./engine-enforcing-DiOclGqf.mjs";
|
|
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-
|
|
10
|
-
import { a as
|
|
11
|
-
import { a as
|
|
12
|
-
import {
|
|
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-BhC88D1-.mjs";
|
|
10
|
+
import { a as ProxyCollectionStateSchema, i as ProxyCollectionState, n as ProxyAssertion, r as ProxyAssertionSchema, t as mapProxyAssertions } from "./proxy-assertion-mapping-BxhENrcY.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
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-CTKz07jg.mjs";
|
|
16
|
+
import { i as TIMEZONE_COUNTRY_MAP, n as checkTimezoneCountryContradiction, r as resolveTimezoneCountry, t as TimezoneContradictionResult } from "./timezone-country-B6PkDyNP.mjs";
|
|
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">;
|
|
@@ -149,10 +86,10 @@ export declare const RequestContextSchema: ZodObject<{
|
|
|
149
86
|
export type RequestContext = output<typeof RequestContextSchema>;
|
|
150
87
|
export declare const DetectionSignalSchema: ZodObject<{
|
|
151
88
|
signalType: ZodEnum<{
|
|
152
|
-
pattern: "pattern";
|
|
153
89
|
behavioral: "behavioral";
|
|
154
|
-
|
|
90
|
+
pattern: "pattern";
|
|
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<{
|
|
@@ -371,10 +350,10 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
371
350
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
372
351
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
373
352
|
signalType: ZodEnum<{
|
|
374
|
-
pattern: "pattern";
|
|
375
353
|
behavioral: "behavioral";
|
|
376
|
-
|
|
354
|
+
pattern: "pattern";
|
|
377
355
|
network: "network";
|
|
356
|
+
signature: "signature";
|
|
378
357
|
fingerprint: "fingerprint";
|
|
379
358
|
}>;
|
|
380
359
|
confidence: ZodNumber;
|
|
@@ -412,13 +391,13 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
412
391
|
botType: ZodOptional<ZodString>;
|
|
413
392
|
agentType: ZodOptional<ZodString>;
|
|
414
393
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
394
|
+
behavioral: "behavioral";
|
|
415
395
|
error: "error";
|
|
416
396
|
pattern: "pattern";
|
|
417
|
-
|
|
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";
|
|
@@ -560,10 +541,10 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
560
541
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
561
542
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
562
543
|
signalType: ZodEnum<{
|
|
563
|
-
pattern: "pattern";
|
|
564
544
|
behavioral: "behavioral";
|
|
565
|
-
|
|
545
|
+
pattern: "pattern";
|
|
566
546
|
network: "network";
|
|
547
|
+
signature: "signature";
|
|
567
548
|
fingerprint: "fingerprint";
|
|
568
549
|
}>;
|
|
569
550
|
confidence: ZodNumber;
|
|
@@ -601,13 +582,13 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
601
582
|
botType: ZodOptional<ZodString>;
|
|
602
583
|
agentType: ZodOptional<ZodString>;
|
|
603
584
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
585
|
+
behavioral: "behavioral";
|
|
604
586
|
error: "error";
|
|
605
587
|
pattern: "pattern";
|
|
606
|
-
|
|
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";
|
|
@@ -1030,10 +1013,10 @@ export declare function riskScoreColumnValue(metadata: unknown): string | null;
|
|
|
1030
1013
|
export declare const VerdictEvidenceSchema: ZodObject<{
|
|
1031
1014
|
signal: ZodString;
|
|
1032
1015
|
plane: ZodEnum<{
|
|
1033
|
-
pattern: "pattern";
|
|
1034
1016
|
behavioral: "behavioral";
|
|
1035
|
-
|
|
1017
|
+
pattern: "pattern";
|
|
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";
|
|
@@ -1678,9 +1648,9 @@ export declare const UserPlanSchema: ZodEnum<{
|
|
|
1678
1648
|
}>;
|
|
1679
1649
|
export type UserPlan = output<typeof UserPlanSchema>;
|
|
1680
1650
|
export declare const ApiKeyPermissionSchema: ZodEnum<{
|
|
1681
|
-
admin: "admin";
|
|
1682
1651
|
read: "read";
|
|
1683
1652
|
write: "write";
|
|
1653
|
+
admin: "admin";
|
|
1684
1654
|
forward: "forward";
|
|
1685
1655
|
}>;
|
|
1686
1656
|
export type ApiKeyPermission = output<typeof ApiKeyPermissionSchema>;
|
|
@@ -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<{
|
|
@@ -1805,9 +1903,9 @@ export declare const ApiKeySchema: ZodObject<{
|
|
|
1805
1903
|
name: ZodString;
|
|
1806
1904
|
key: ZodString;
|
|
1807
1905
|
permissions: ZodDefault<ZodArray<ZodEnum<{
|
|
1808
|
-
admin: "admin";
|
|
1809
1906
|
read: "read";
|
|
1810
1907
|
write: "write";
|
|
1908
|
+
admin: "admin";
|
|
1811
1909
|
forward: "forward";
|
|
1812
1910
|
}>>>;
|
|
1813
1911
|
rateLimits: ZodPrefault<ZodObject<{
|
|
@@ -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;
|
|
@@ -2321,10 +2432,10 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
2321
2432
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
2322
2433
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
2323
2434
|
signalType: ZodEnum<{
|
|
2324
|
-
pattern: "pattern";
|
|
2325
2435
|
behavioral: "behavioral";
|
|
2326
|
-
|
|
2436
|
+
pattern: "pattern";
|
|
2327
2437
|
network: "network";
|
|
2438
|
+
signature: "signature";
|
|
2328
2439
|
fingerprint: "fingerprint";
|
|
2329
2440
|
}>;
|
|
2330
2441
|
confidence: ZodNumber;
|
|
@@ -2362,13 +2473,13 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
2362
2473
|
botType: ZodOptional<ZodString>;
|
|
2363
2474
|
agentType: ZodOptional<ZodString>;
|
|
2364
2475
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
2476
|
+
behavioral: "behavioral";
|
|
2365
2477
|
error: "error";
|
|
2366
2478
|
pattern: "pattern";
|
|
2367
|
-
|
|
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";
|
|
@@ -2539,10 +2652,10 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
2539
2652
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
2540
2653
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
2541
2654
|
signalType: ZodEnum<{
|
|
2542
|
-
pattern: "pattern";
|
|
2543
2655
|
behavioral: "behavioral";
|
|
2544
|
-
|
|
2656
|
+
pattern: "pattern";
|
|
2545
2657
|
network: "network";
|
|
2658
|
+
signature: "signature";
|
|
2546
2659
|
fingerprint: "fingerprint";
|
|
2547
2660
|
}>;
|
|
2548
2661
|
confidence: ZodNumber;
|
|
@@ -2580,13 +2693,13 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
2580
2693
|
botType: ZodOptional<ZodString>;
|
|
2581
2694
|
agentType: ZodOptional<ZodString>;
|
|
2582
2695
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
2696
|
+
behavioral: "behavioral";
|
|
2583
2697
|
error: "error";
|
|
2584
2698
|
pattern: "pattern";
|
|
2585
|
-
|
|
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";
|
|
@@ -2832,6 +2947,8 @@ export declare const EventTrackingRequestSchema: ZodObject<{
|
|
|
2832
2947
|
keyDwellCount: ZodOptional<ZodNumber>;
|
|
2833
2948
|
keyDwellUnder5: ZodOptional<ZodNumber>;
|
|
2834
2949
|
keyDwellSumMs: ZodOptional<ZodNumber>;
|
|
2950
|
+
keyDwellCongested: ZodOptional<ZodNumber>;
|
|
2951
|
+
keyDwellStampFlat: ZodOptional<ZodNumber>;
|
|
2835
2952
|
keyGapCount: ZodOptional<ZodNumber>;
|
|
2836
2953
|
keyGapUnder5: ZodOptional<ZodNumber>;
|
|
2837
2954
|
pressCount: ZodOptional<ZodNumber>;
|
|
@@ -2839,6 +2956,8 @@ export declare const EventTrackingRequestSchema: ZodObject<{
|
|
|
2839
2956
|
pressAdjacentUnder5: ZodOptional<ZodNumber>;
|
|
2840
2957
|
pressUnder10: ZodOptional<ZodNumber>;
|
|
2841
2958
|
pressSumMs: ZodOptional<ZodNumber>;
|
|
2959
|
+
pressCongested: ZodOptional<ZodNumber>;
|
|
2960
|
+
pressStampFlat: ZodOptional<ZodNumber>;
|
|
2842
2961
|
mouseClicks: ZodOptional<ZodNumber>;
|
|
2843
2962
|
zeroTrailClicks: ZodOptional<ZodNumber>;
|
|
2844
2963
|
kinematicsVersion: ZodOptional<ZodNumber>;
|
|
@@ -2945,10 +3064,10 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
2945
3064
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
2946
3065
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
2947
3066
|
signalType: ZodEnum<{
|
|
2948
|
-
pattern: "pattern";
|
|
2949
3067
|
behavioral: "behavioral";
|
|
2950
|
-
|
|
3068
|
+
pattern: "pattern";
|
|
2951
3069
|
network: "network";
|
|
3070
|
+
signature: "signature";
|
|
2952
3071
|
fingerprint: "fingerprint";
|
|
2953
3072
|
}>;
|
|
2954
3073
|
confidence: ZodNumber;
|
|
@@ -2986,13 +3105,13 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
2986
3105
|
botType: ZodOptional<ZodString>;
|
|
2987
3106
|
agentType: ZodOptional<ZodString>;
|
|
2988
3107
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
3108
|
+
behavioral: "behavioral";
|
|
2989
3109
|
error: "error";
|
|
2990
3110
|
pattern: "pattern";
|
|
2991
|
-
|
|
3111
|
+
network: "network";
|
|
2992
3112
|
kyaos_handshake: "kyaos_handshake";
|
|
2993
3113
|
mcp_i_handshake: "mcp_i_handshake";
|
|
2994
3114
|
signature: "signature";
|
|
2995
|
-
network: "network";
|
|
2996
3115
|
"kya-http": "kya-http";
|
|
2997
3116
|
"kya-http-delegated": "kya-http-delegated";
|
|
2998
3117
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -3059,6 +3178,8 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
3059
3178
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
3060
3179
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
3061
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";
|
|
3062
3183
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
3063
3184
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
3064
3185
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -3201,6 +3322,8 @@ export declare const BatchEventRequestSchema: ZodObject<{
|
|
|
3201
3322
|
keyDwellCount: ZodOptional<ZodNumber>;
|
|
3202
3323
|
keyDwellUnder5: ZodOptional<ZodNumber>;
|
|
3203
3324
|
keyDwellSumMs: ZodOptional<ZodNumber>;
|
|
3325
|
+
keyDwellCongested: ZodOptional<ZodNumber>;
|
|
3326
|
+
keyDwellStampFlat: ZodOptional<ZodNumber>;
|
|
3204
3327
|
keyGapCount: ZodOptional<ZodNumber>;
|
|
3205
3328
|
keyGapUnder5: ZodOptional<ZodNumber>;
|
|
3206
3329
|
pressCount: ZodOptional<ZodNumber>;
|
|
@@ -3208,6 +3331,8 @@ export declare const BatchEventRequestSchema: ZodObject<{
|
|
|
3208
3331
|
pressAdjacentUnder5: ZodOptional<ZodNumber>;
|
|
3209
3332
|
pressUnder10: ZodOptional<ZodNumber>;
|
|
3210
3333
|
pressSumMs: ZodOptional<ZodNumber>;
|
|
3334
|
+
pressCongested: ZodOptional<ZodNumber>;
|
|
3335
|
+
pressStampFlat: ZodOptional<ZodNumber>;
|
|
3211
3336
|
mouseClicks: ZodOptional<ZodNumber>;
|
|
3212
3337
|
zeroTrailClicks: ZodOptional<ZodNumber>;
|
|
3213
3338
|
kinematicsVersion: ZodOptional<ZodNumber>;
|
|
@@ -3323,10 +3448,10 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
3323
3448
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
3324
3449
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
3325
3450
|
signalType: ZodEnum<{
|
|
3326
|
-
pattern: "pattern";
|
|
3327
3451
|
behavioral: "behavioral";
|
|
3328
|
-
|
|
3452
|
+
pattern: "pattern";
|
|
3329
3453
|
network: "network";
|
|
3454
|
+
signature: "signature";
|
|
3330
3455
|
fingerprint: "fingerprint";
|
|
3331
3456
|
}>;
|
|
3332
3457
|
confidence: ZodNumber;
|
|
@@ -3364,13 +3489,13 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
3364
3489
|
botType: ZodOptional<ZodString>;
|
|
3365
3490
|
agentType: ZodOptional<ZodString>;
|
|
3366
3491
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
3492
|
+
behavioral: "behavioral";
|
|
3367
3493
|
error: "error";
|
|
3368
3494
|
pattern: "pattern";
|
|
3369
|
-
|
|
3495
|
+
network: "network";
|
|
3370
3496
|
kyaos_handshake: "kyaos_handshake";
|
|
3371
3497
|
mcp_i_handshake: "mcp_i_handshake";
|
|
3372
3498
|
signature: "signature";
|
|
3373
|
-
network: "network";
|
|
3374
3499
|
"kya-http": "kya-http";
|
|
3375
3500
|
"kya-http-delegated": "kya-http-delegated";
|
|
3376
3501
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -3437,6 +3562,8 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
3437
3562
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
3438
3563
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
3439
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";
|
|
3440
3567
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
3441
3568
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
3442
3569
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -5233,9 +5360,9 @@ export declare const ApiKeysBulkCreateItemSchema: ZodObject<{
|
|
|
5233
5360
|
name: ZodString;
|
|
5234
5361
|
projectId: ZodOptional<ZodString>;
|
|
5235
5362
|
permissions: ZodDefault<ZodArray<ZodEnum<{
|
|
5236
|
-
admin: "admin";
|
|
5237
5363
|
read: "read";
|
|
5238
5364
|
write: "write";
|
|
5365
|
+
admin: "admin";
|
|
5239
5366
|
}>>>;
|
|
5240
5367
|
rateLimits: ZodOptional<ZodObject<{
|
|
5241
5368
|
requestsPerSecond: ZodOptional<ZodNumber>;
|
|
@@ -5252,9 +5379,9 @@ export declare const ApiKeysBulkUpdateItemSchema: ZodObject<{
|
|
|
5252
5379
|
id: ZodString;
|
|
5253
5380
|
name: ZodOptional<ZodString>;
|
|
5254
5381
|
permissions: ZodOptional<ZodArray<ZodEnum<{
|
|
5255
|
-
admin: "admin";
|
|
5256
5382
|
read: "read";
|
|
5257
5383
|
write: "write";
|
|
5384
|
+
admin: "admin";
|
|
5258
5385
|
}>>>;
|
|
5259
5386
|
rateLimits: ZodOptional<ZodObject<{
|
|
5260
5387
|
requestsPerSecond: ZodOptional<ZodNumber>;
|
|
@@ -5282,9 +5409,9 @@ export declare const ApiKeysBulkRequestSchema: ZodIntersection<ZodObject<{
|
|
|
5282
5409
|
name: ZodString;
|
|
5283
5410
|
projectId: ZodOptional<ZodString>;
|
|
5284
5411
|
permissions: ZodDefault<ZodArray<ZodEnum<{
|
|
5285
|
-
admin: "admin";
|
|
5286
5412
|
read: "read";
|
|
5287
5413
|
write: "write";
|
|
5414
|
+
admin: "admin";
|
|
5288
5415
|
}>>>;
|
|
5289
5416
|
rateLimits: ZodOptional<ZodObject<{
|
|
5290
5417
|
requestsPerSecond: ZodOptional<ZodNumber>;
|
|
@@ -5300,9 +5427,9 @@ export declare const ApiKeysBulkRequestSchema: ZodIntersection<ZodObject<{
|
|
|
5300
5427
|
id: ZodString;
|
|
5301
5428
|
name: ZodOptional<ZodString>;
|
|
5302
5429
|
permissions: ZodOptional<ZodArray<ZodEnum<{
|
|
5303
|
-
admin: "admin";
|
|
5304
5430
|
read: "read";
|
|
5305
5431
|
write: "write";
|
|
5432
|
+
admin: "admin";
|
|
5306
5433
|
}>>>;
|
|
5307
5434
|
rateLimits: ZodOptional<ZodObject<{
|
|
5308
5435
|
requestsPerSecond: ZodOptional<ZodNumber>;
|
|
@@ -5387,6 +5514,79 @@ export declare const UpdateProjectSchema: ZodObject<{
|
|
|
5387
5514
|
webhookUrl: ZodOptional<ZodString>;
|
|
5388
5515
|
webhookSecret: ZodOptional<ZodString>;
|
|
5389
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>>;
|
|
5390
5590
|
postureOrigins: ZodOptional<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
5391
5591
|
postureReportPaths: ZodOptional<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
5392
5592
|
}, $strip>>;
|
|
@@ -5431,9 +5631,9 @@ export declare const CreateApiKeySchema: ZodObject<{
|
|
|
5431
5631
|
name: ZodString;
|
|
5432
5632
|
projectId: ZodOptional<ZodString>;
|
|
5433
5633
|
permissions: ZodDefault<ZodArray<ZodEnum<{
|
|
5434
|
-
admin: "admin";
|
|
5435
5634
|
read: "read";
|
|
5436
5635
|
write: "write";
|
|
5636
|
+
admin: "admin";
|
|
5437
5637
|
forward: "forward";
|
|
5438
5638
|
}>>>;
|
|
5439
5639
|
rateLimits: ZodOptional<ZodObject<{
|
|
@@ -5449,9 +5649,9 @@ export type CreateApiKeyRequest = output<typeof CreateApiKeySchema>;
|
|
|
5449
5649
|
export declare const UpdateApiKeySchema: ZodObject<{
|
|
5450
5650
|
name: ZodOptional<ZodString>;
|
|
5451
5651
|
permissions: ZodOptional<ZodArray<ZodEnum<{
|
|
5452
|
-
admin: "admin";
|
|
5453
5652
|
read: "read";
|
|
5454
5653
|
write: "write";
|
|
5654
|
+
admin: "admin";
|
|
5455
5655
|
forward: "forward";
|
|
5456
5656
|
}>>>;
|
|
5457
5657
|
rateLimits: ZodOptional<ZodObject<{
|
|
@@ -5598,8 +5798,8 @@ export declare const RevokeProvisionResponseSchema: ZodObject<{
|
|
|
5598
5798
|
}, $strip>;
|
|
5599
5799
|
export type RevokeProvisionResponse = output<typeof RevokeProvisionResponseSchema>;
|
|
5600
5800
|
export declare const ProvisioningOrganizationRoleSchema: ZodEnum<{
|
|
5601
|
-
owner: "owner";
|
|
5602
5801
|
admin: "admin";
|
|
5802
|
+
owner: "owner";
|
|
5603
5803
|
}>;
|
|
5604
5804
|
export type ProvisioningOrganizationRole = output<typeof ProvisioningOrganizationRoleSchema>;
|
|
5605
5805
|
export declare const ProvisioningOrganizationSummarySchema: ZodObject<{
|
|
@@ -5607,8 +5807,8 @@ export declare const ProvisioningOrganizationSummarySchema: ZodObject<{
|
|
|
5607
5807
|
name: ZodString;
|
|
5608
5808
|
slug: ZodString;
|
|
5609
5809
|
role: ZodEnum<{
|
|
5610
|
-
owner: "owner";
|
|
5611
5810
|
admin: "admin";
|
|
5811
|
+
owner: "owner";
|
|
5612
5812
|
}>;
|
|
5613
5813
|
}, $strip>;
|
|
5614
5814
|
export type ProvisioningOrganizationSummary = output<typeof ProvisioningOrganizationSummarySchema>;
|
|
@@ -5642,8 +5842,8 @@ export declare const ListProvisioningOrganizationsResponseSchema: ZodObject<{
|
|
|
5642
5842
|
name: ZodString;
|
|
5643
5843
|
slug: ZodString;
|
|
5644
5844
|
role: ZodEnum<{
|
|
5645
|
-
owner: "owner";
|
|
5646
5845
|
admin: "admin";
|
|
5846
|
+
owner: "owner";
|
|
5647
5847
|
}>;
|
|
5648
5848
|
}, $strip>>;
|
|
5649
5849
|
}, $strip>;
|
|
@@ -5680,8 +5880,8 @@ export declare const CreateProvisioningOrganizationResponseSchema: ZodObject<{
|
|
|
5680
5880
|
name: ZodString;
|
|
5681
5881
|
slug: ZodString;
|
|
5682
5882
|
role: ZodEnum<{
|
|
5683
|
-
owner: "owner";
|
|
5684
5883
|
admin: "admin";
|
|
5884
|
+
owner: "owner";
|
|
5685
5885
|
}>;
|
|
5686
5886
|
}, $strip>;
|
|
5687
5887
|
}, $strip>;
|
|
@@ -5790,10 +5990,10 @@ export declare const ExportAnalyticsSchema: ZodObject<{
|
|
|
5790
5990
|
}>>;
|
|
5791
5991
|
sections: ZodDefault<ZodOptional<ZodArray<ZodEnum<{
|
|
5792
5992
|
confidence: "confidence";
|
|
5793
|
-
sessions: "sessions";
|
|
5794
5993
|
overview: "overview";
|
|
5795
5994
|
traffic: "traffic";
|
|
5796
5995
|
agents: "agents";
|
|
5996
|
+
sessions: "sessions";
|
|
5797
5997
|
}>>>>;
|
|
5798
5998
|
includeRawData: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
5799
5999
|
showAIAgentsOnly: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
@@ -6207,10 +6407,10 @@ export type ApiKeyWithProject = {
|
|
|
6207
6407
|
export declare const DetectionSignalExposureSchema: ZodObject<{
|
|
6208
6408
|
signals: ZodArray<ZodObject<{
|
|
6209
6409
|
signalType: ZodEnum<{
|
|
6210
|
-
pattern: "pattern";
|
|
6211
6410
|
behavioral: "behavioral";
|
|
6212
|
-
|
|
6411
|
+
pattern: "pattern";
|
|
6213
6412
|
network: "network";
|
|
6413
|
+
signature: "signature";
|
|
6214
6414
|
fingerprint: "fingerprint";
|
|
6215
6415
|
}>;
|
|
6216
6416
|
confidence: ZodNumber;
|
|
@@ -6244,6 +6444,8 @@ export declare const DetectionSignalExposureSchema: ZodObject<{
|
|
|
6244
6444
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
6245
6445
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
6246
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";
|
|
6247
6449
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
6248
6450
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
6249
6451
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -6468,8 +6670,8 @@ export declare const OrganizationSettingsSchema: ZodObject<{
|
|
|
6468
6670
|
}, $strip>;
|
|
6469
6671
|
export type OrganizationSettings = output<typeof OrganizationSettingsSchema>;
|
|
6470
6672
|
export declare const OrganizationRoleSchema: ZodEnum<{
|
|
6471
|
-
owner: "owner";
|
|
6472
6673
|
admin: "admin";
|
|
6674
|
+
owner: "owner";
|
|
6473
6675
|
member: "member";
|
|
6474
6676
|
}>;
|
|
6475
6677
|
export type OrganizationRole = output<typeof OrganizationRoleSchema>;
|
|
@@ -6978,10 +7180,10 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
6978
7180
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
6979
7181
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
6980
7182
|
signalType: ZodEnum<{
|
|
6981
|
-
pattern: "pattern";
|
|
6982
7183
|
behavioral: "behavioral";
|
|
6983
|
-
|
|
7184
|
+
pattern: "pattern";
|
|
6984
7185
|
network: "network";
|
|
7186
|
+
signature: "signature";
|
|
6985
7187
|
fingerprint: "fingerprint";
|
|
6986
7188
|
}>;
|
|
6987
7189
|
confidence: ZodNumber;
|
|
@@ -7019,13 +7221,13 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
7019
7221
|
botType: ZodOptional<ZodString>;
|
|
7020
7222
|
agentType: ZodOptional<ZodString>;
|
|
7021
7223
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
7224
|
+
behavioral: "behavioral";
|
|
7022
7225
|
error: "error";
|
|
7023
7226
|
pattern: "pattern";
|
|
7024
|
-
|
|
7227
|
+
network: "network";
|
|
7025
7228
|
kyaos_handshake: "kyaos_handshake";
|
|
7026
7229
|
mcp_i_handshake: "mcp_i_handshake";
|
|
7027
7230
|
signature: "signature";
|
|
7028
|
-
network: "network";
|
|
7029
7231
|
"kya-http": "kya-http";
|
|
7030
7232
|
"kya-http-delegated": "kya-http-delegated";
|
|
7031
7233
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -7092,6 +7294,8 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
7092
7294
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
7093
7295
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
7094
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";
|
|
7095
7299
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
7096
7300
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
7097
7301
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -7518,6 +7722,8 @@ export declare const ClientDetectionSchema: ZodObject<{
|
|
|
7518
7722
|
keyDwellCount: ZodOptional<ZodNumber>;
|
|
7519
7723
|
keyDwellUnder5: ZodOptional<ZodNumber>;
|
|
7520
7724
|
keyDwellSumMs: ZodOptional<ZodNumber>;
|
|
7725
|
+
keyDwellCongested: ZodOptional<ZodNumber>;
|
|
7726
|
+
keyDwellStampFlat: ZodOptional<ZodNumber>;
|
|
7521
7727
|
keyGapCount: ZodOptional<ZodNumber>;
|
|
7522
7728
|
keyGapUnder5: ZodOptional<ZodNumber>;
|
|
7523
7729
|
pressCount: ZodOptional<ZodNumber>;
|
|
@@ -7525,6 +7731,8 @@ export declare const ClientDetectionSchema: ZodObject<{
|
|
|
7525
7731
|
pressAdjacentUnder5: ZodOptional<ZodNumber>;
|
|
7526
7732
|
pressUnder10: ZodOptional<ZodNumber>;
|
|
7527
7733
|
pressSumMs: ZodOptional<ZodNumber>;
|
|
7734
|
+
pressCongested: ZodOptional<ZodNumber>;
|
|
7735
|
+
pressStampFlat: ZodOptional<ZodNumber>;
|
|
7528
7736
|
mouseClicks: ZodOptional<ZodNumber>;
|
|
7529
7737
|
zeroTrailClicks: ZodOptional<ZodNumber>;
|
|
7530
7738
|
kinematicsVersion: ZodOptional<ZodNumber>;
|
|
@@ -7625,6 +7833,8 @@ export declare const PixelTrackingRequestSchema: ZodObject<{
|
|
|
7625
7833
|
keyDwellCount: ZodOptional<ZodNumber>;
|
|
7626
7834
|
keyDwellUnder5: ZodOptional<ZodNumber>;
|
|
7627
7835
|
keyDwellSumMs: ZodOptional<ZodNumber>;
|
|
7836
|
+
keyDwellCongested: ZodOptional<ZodNumber>;
|
|
7837
|
+
keyDwellStampFlat: ZodOptional<ZodNumber>;
|
|
7628
7838
|
keyGapCount: ZodOptional<ZodNumber>;
|
|
7629
7839
|
keyGapUnder5: ZodOptional<ZodNumber>;
|
|
7630
7840
|
pressCount: ZodOptional<ZodNumber>;
|
|
@@ -7632,6 +7842,8 @@ export declare const PixelTrackingRequestSchema: ZodObject<{
|
|
|
7632
7842
|
pressAdjacentUnder5: ZodOptional<ZodNumber>;
|
|
7633
7843
|
pressUnder10: ZodOptional<ZodNumber>;
|
|
7634
7844
|
pressSumMs: ZodOptional<ZodNumber>;
|
|
7845
|
+
pressCongested: ZodOptional<ZodNumber>;
|
|
7846
|
+
pressStampFlat: ZodOptional<ZodNumber>;
|
|
7635
7847
|
mouseClicks: ZodOptional<ZodNumber>;
|
|
7636
7848
|
zeroTrailClicks: ZodOptional<ZodNumber>;
|
|
7637
7849
|
kinematicsVersion: ZodOptional<ZodNumber>;
|
|
@@ -7740,10 +7952,10 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
7740
7952
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
7741
7953
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
7742
7954
|
signalType: ZodEnum<{
|
|
7743
|
-
pattern: "pattern";
|
|
7744
7955
|
behavioral: "behavioral";
|
|
7745
|
-
|
|
7956
|
+
pattern: "pattern";
|
|
7746
7957
|
network: "network";
|
|
7958
|
+
signature: "signature";
|
|
7747
7959
|
fingerprint: "fingerprint";
|
|
7748
7960
|
}>;
|
|
7749
7961
|
confidence: ZodNumber;
|
|
@@ -7781,13 +7993,13 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
7781
7993
|
botType: ZodOptional<ZodString>;
|
|
7782
7994
|
agentType: ZodOptional<ZodString>;
|
|
7783
7995
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
7996
|
+
behavioral: "behavioral";
|
|
7784
7997
|
error: "error";
|
|
7785
7998
|
pattern: "pattern";
|
|
7786
|
-
|
|
7999
|
+
network: "network";
|
|
7787
8000
|
kyaos_handshake: "kyaos_handshake";
|
|
7788
8001
|
mcp_i_handshake: "mcp_i_handshake";
|
|
7789
8002
|
signature: "signature";
|
|
7790
|
-
network: "network";
|
|
7791
8003
|
"kya-http": "kya-http";
|
|
7792
8004
|
"kya-http-delegated": "kya-http-delegated";
|
|
7793
8005
|
tier1_rfc9421: "tier1_rfc9421";
|
|
@@ -7854,6 +8066,8 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
7854
8066
|
"detection/a2a-card-signal": "detection/a2a-card-signal";
|
|
7855
8067
|
"detection/scanner-misclassification-hint-signal": "detection/scanner-misclassification-hint-signal";
|
|
7856
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";
|
|
7857
8071
|
"detection/cloudflare-bot-management-signal": "detection/cloudflare-bot-management-signal";
|
|
7858
8072
|
"detection/session-velocity-signal": "detection/session-velocity-signal";
|
|
7859
8073
|
"detection/tier1-attribution-signal": "detection/tier1-attribution-signal";
|
|
@@ -8863,8 +9077,8 @@ export declare const assignmentChangeRequestSchema: ZodObject<{
|
|
|
8863
9077
|
userId: ZodString;
|
|
8864
9078
|
organizationId: ZodString;
|
|
8865
9079
|
role: ZodEnum<{
|
|
8866
|
-
owner: "owner";
|
|
8867
9080
|
admin: "admin";
|
|
9081
|
+
owner: "owner";
|
|
8868
9082
|
member: "member";
|
|
8869
9083
|
}>;
|
|
8870
9084
|
action: ZodEnum<{
|
|
@@ -8878,8 +9092,8 @@ export declare const batchAssignmentRequestSchema: ZodObject<{
|
|
|
8878
9092
|
userIds: ZodArray<ZodString>;
|
|
8879
9093
|
organizationId: ZodString;
|
|
8880
9094
|
role: ZodEnum<{
|
|
8881
|
-
owner: "owner";
|
|
8882
9095
|
admin: "admin";
|
|
9096
|
+
owner: "owner";
|
|
8883
9097
|
member: "member";
|
|
8884
9098
|
}>;
|
|
8885
9099
|
action: ZodEnum<{
|
|
@@ -9073,6 +9287,7 @@ export interface AdminExecutiveSummaryResponse {
|
|
|
9073
9287
|
projects: number;
|
|
9074
9288
|
users: number;
|
|
9075
9289
|
usersExcluded: number;
|
|
9290
|
+
usersInvited: number;
|
|
9076
9291
|
signupsInPeriod: number;
|
|
9077
9292
|
newOrgsInPeriod: number;
|
|
9078
9293
|
};
|
|
@@ -9495,6 +9710,16 @@ export interface AgentActivityData {
|
|
|
9495
9710
|
start: string;
|
|
9496
9711
|
end: string;
|
|
9497
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
|
+
};
|
|
9498
9723
|
}
|
|
9499
9724
|
export type AgentActivityResult = AgentActivityData;
|
|
9500
9725
|
export type IdentifiedTier = 'named' | 'pseudo' | 'did' | 'network' | 'unattributed' | 'anonymous';
|
|
@@ -9579,7 +9804,7 @@ export interface AgentHumansTimeseriesResult {
|
|
|
9579
9804
|
end: string;
|
|
9580
9805
|
};
|
|
9581
9806
|
}
|
|
9582
|
-
export type ActivityLens = 'bots' | 'ai' | 'humans' | 'blocked';
|
|
9807
|
+
export type ActivityLens = 'bots' | 'ai' | 'humans' | 'blocked' | 'unclassified';
|
|
9583
9808
|
export interface OutcomeMix {
|
|
9584
9809
|
allowed: number;
|
|
9585
9810
|
blocked: number;
|
|
@@ -9801,7 +10026,7 @@ export declare const INSTALLATION_KINDS: readonly ["agent", "pixel", "middleware
|
|
|
9801
10026
|
export type InstallationKind = (typeof INSTALLATION_KINDS)[number];
|
|
9802
10027
|
export declare const INSTALLATION_TYPES: readonly ["pixel", "middleware_node", "middleware_dotnet", "middleware_jvm", "middleware_android", "middleware_ios", "middleware_no_traffic", "dns_gateway", "beacon"];
|
|
9803
10028
|
export type InstallationType = (typeof INSTALLATION_TYPES)[number];
|
|
9804
|
-
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"];
|
|
9805
10030
|
export type TrafficTaxonomyBucket = (typeof TRAFFIC_TAXONOMY_BUCKETS)[number];
|
|
9806
10031
|
export declare const EXCLUSION_BUCKETS: readonly ["vouched", "internal_team", "test_pattern", "shopify_review", "cohort"];
|
|
9807
10032
|
export type ExclusionBucket = (typeof EXCLUSION_BUCKETS)[number];
|
|
@@ -9819,6 +10044,8 @@ export interface AdminOverviewLadder {
|
|
|
9819
10044
|
emailsCollected: AdminDelta;
|
|
9820
10045
|
users: AdminDelta;
|
|
9821
10046
|
signedInProxy: AdminDelta;
|
|
10047
|
+
setupCompleted: AdminDelta;
|
|
10048
|
+
wentLive: AdminDelta;
|
|
9822
10049
|
onboarded: AdminDelta;
|
|
9823
10050
|
activated: AdminDelta;
|
|
9824
10051
|
}
|
|
@@ -9937,6 +10164,28 @@ export interface ExclusionAuditRow {
|
|
|
9937
10164
|
users: number;
|
|
9938
10165
|
organizations: number;
|
|
9939
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
|
+
}
|
|
9940
10189
|
export interface AdminOverviewList<T> {
|
|
9941
10190
|
rows: T[];
|
|
9942
10191
|
total: number;
|
|
@@ -9961,6 +10210,7 @@ export interface AdminOverviewLists {
|
|
|
9961
10210
|
pixelInstallations: AdminOverviewList<PixelInstallationRow>;
|
|
9962
10211
|
leads: AdminOverviewList<LeadRow>;
|
|
9963
10212
|
exclusionAudit: ExclusionAuditRow[];
|
|
10213
|
+
cohortReconcile?: AdminCohortReconcile | null;
|
|
9964
10214
|
}
|
|
9965
10215
|
export interface AdminOverviewMeta {
|
|
9966
10216
|
generatedAt: string;
|
|
@@ -9990,11 +10240,12 @@ export interface AdminOverviewMeta {
|
|
|
9990
10240
|
export declare const ADMIN_TRUSTED_METRICS: readonly ["emailsCollected", "users", "signedIn", "onboarded", "activated", "activeUsers", "peopleInOrgs", "installedOrgs"];
|
|
9991
10241
|
export type AdminTrustedMetric = (typeof ADMIN_TRUSTED_METRICS)[number];
|
|
9992
10242
|
export declare const ADMIN_ORG_EXCLUSION_REASONS: readonly ["test_org", "no_counted_members"];
|
|
9993
|
-
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"];
|
|
9994
10244
|
export type AdminAccountStatus = (typeof ADMIN_ACCOUNT_STATUSES)[number];
|
|
9995
10245
|
export interface AdminCountSplit {
|
|
9996
10246
|
counted: number;
|
|
9997
10247
|
excluded: number;
|
|
10248
|
+
invited?: number;
|
|
9998
10249
|
}
|
|
9999
10250
|
export interface AdminDailyActive {
|
|
10000
10251
|
date: string;
|
|
@@ -10013,7 +10264,7 @@ export interface AdminOverviewAccounts {
|
|
|
10013
10264
|
splits: Record<AdminTrustedMetric, AdminCountSplit | null>;
|
|
10014
10265
|
activeUsers: AdminActiveUsersSummary;
|
|
10015
10266
|
}
|
|
10016
|
-
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"];
|
|
10017
10268
|
export type AdminAccountsStatusFilter = (typeof ADMIN_ACCOUNTS_STATUS_FILTERS)[number];
|
|
10018
10269
|
export declare const adminAccountsQuerySchema: ZodObject<{
|
|
10019
10270
|
metric: ZodEnum<{
|
|
@@ -10041,6 +10292,7 @@ export declare const adminAccountsQuerySchema: ZodObject<{
|
|
|
10041
10292
|
test_org: "test_org";
|
|
10042
10293
|
no_counted_members: "no_counted_members";
|
|
10043
10294
|
counted: "counted";
|
|
10295
|
+
invited: "invited";
|
|
10044
10296
|
excluded: "excluded";
|
|
10045
10297
|
}>>;
|
|
10046
10298
|
}, $strip>;
|
|
@@ -10137,7 +10389,28 @@ export declare function normalizeDetectionClassEnum(value: unknown): DetectionCl
|
|
|
10137
10389
|
export declare const REPORT_AI_CRAWLER_NAMES: readonly string[];
|
|
10138
10390
|
export declare const REPORT_AI_AGENT_NAMES: readonly string[];
|
|
10139
10391
|
export declare function buildKnownPatternLookup(patterns: readonly AgentPattern[]): ReadonlyMap<string, AgentPattern>;
|
|
10140
|
-
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[];
|
|
10141
10414
|
//#endregion
|
|
10142
10415
|
//#region src/utils/agent-runtime-label.d.ts
|
|
10143
10416
|
export declare function isClaudeProductLabel(displayName: string | null | undefined): boolean;
|
|
@@ -10795,6 +11068,12 @@ export declare const ConsentBrandingSchema: ZodObject<{
|
|
|
10795
11068
|
dark: "dark";
|
|
10796
11069
|
auto: "auto";
|
|
10797
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>;
|
|
10798
11077
|
}, $strip>;
|
|
10799
11078
|
type ConsentBranding = output<typeof ConsentBrandingSchema>;
|
|
10800
11079
|
export declare const ConsentTermsSchema: ZodObject<{
|
|
@@ -10924,7 +11203,9 @@ export declare const ConsentSignInCopySchema: ZodObject<{
|
|
|
10924
11203
|
}, $strip>>;
|
|
10925
11204
|
}, $strip>;
|
|
10926
11205
|
export declare const ConsentScopeLabelsSchema: ZodRecord<ZodString, ZodString>;
|
|
11206
|
+
export declare const ConsentAssuranceNotesSchema: ZodRecord<ZodString, ZodString>;
|
|
10927
11207
|
export declare const ConsentConfigSchema: ZodObject<{
|
|
11208
|
+
chooseThenProveEnabled: ZodOptional<ZodBoolean>;
|
|
10928
11209
|
branding: ZodOptional<ZodObject<{
|
|
10929
11210
|
primaryColor: ZodOptional<ZodString>;
|
|
10930
11211
|
secondaryColor: ZodOptional<ZodString>;
|
|
@@ -10935,6 +11216,12 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
10935
11216
|
dark: "dark";
|
|
10936
11217
|
auto: "auto";
|
|
10937
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>;
|
|
10938
11225
|
}, $strip>>;
|
|
10939
11226
|
terms: ZodOptional<ZodObject<{
|
|
10940
11227
|
url: ZodOptional<ZodString>;
|
|
@@ -11043,6 +11330,7 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
11043
11330
|
}, $strip>>;
|
|
11044
11331
|
}, $strip>>;
|
|
11045
11332
|
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11333
|
+
assuranceNotes: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11046
11334
|
}, $strip>;
|
|
11047
11335
|
type ConsentConfig = output<typeof ConsentConfigSchema>;
|
|
11048
11336
|
export declare const BouncerConfigSchema: ZodObject<{
|
|
@@ -11190,6 +11478,7 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11190
11478
|
lastScopesSync: ZodOptional<ZodNullable<ZodString>>;
|
|
11191
11479
|
delegationExpirationDays: ZodDefault<ZodNumber>;
|
|
11192
11480
|
consentConfig: ZodOptional<ZodObject<{
|
|
11481
|
+
chooseThenProveEnabled: ZodOptional<ZodBoolean>;
|
|
11193
11482
|
branding: ZodOptional<ZodObject<{
|
|
11194
11483
|
primaryColor: ZodOptional<ZodString>;
|
|
11195
11484
|
secondaryColor: ZodOptional<ZodString>;
|
|
@@ -11200,6 +11489,12 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11200
11489
|
dark: "dark";
|
|
11201
11490
|
auto: "auto";
|
|
11202
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>;
|
|
11203
11498
|
}, $strip>>;
|
|
11204
11499
|
terms: ZodOptional<ZodObject<{
|
|
11205
11500
|
url: ZodOptional<ZodString>;
|
|
@@ -11308,6 +11603,7 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
11308
11603
|
}, $strip>>;
|
|
11309
11604
|
}, $strip>>;
|
|
11310
11605
|
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11606
|
+
assuranceNotes: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11311
11607
|
}, $strip>>;
|
|
11312
11608
|
discoveredTools: ZodDefault<ZodRecord<ZodString, ZodUnknown>>;
|
|
11313
11609
|
mcpServerUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -11348,6 +11644,7 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11348
11644
|
}>>;
|
|
11349
11645
|
delegationExpirationDays: ZodOptional<ZodNumber>;
|
|
11350
11646
|
consentConfig: ZodOptional<ZodObject<{
|
|
11647
|
+
chooseThenProveEnabled: ZodOptional<ZodBoolean>;
|
|
11351
11648
|
branding: ZodOptional<ZodObject<{
|
|
11352
11649
|
primaryColor: ZodOptional<ZodString>;
|
|
11353
11650
|
secondaryColor: ZodOptional<ZodString>;
|
|
@@ -11358,6 +11655,12 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11358
11655
|
dark: "dark";
|
|
11359
11656
|
auto: "auto";
|
|
11360
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>;
|
|
11361
11664
|
}, $strip>>;
|
|
11362
11665
|
terms: ZodOptional<ZodObject<{
|
|
11363
11666
|
url: ZodOptional<ZodString>;
|
|
@@ -11466,6 +11769,7 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
11466
11769
|
}, $strip>>;
|
|
11467
11770
|
}, $strip>>;
|
|
11468
11771
|
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11772
|
+
assuranceNotes: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
11469
11773
|
}, $strip>>;
|
|
11470
11774
|
mcpServerUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
11471
11775
|
isEnabled: ZodOptional<ZodBoolean>;
|
|
@@ -13542,8 +13846,8 @@ export declare const ManagementConsentContextSchema: ZodObject<{
|
|
|
13542
13846
|
id: ZodString;
|
|
13543
13847
|
name: ZodString;
|
|
13544
13848
|
role: ZodEnum<{
|
|
13545
|
-
owner: "owner";
|
|
13546
13849
|
admin: "admin";
|
|
13850
|
+
owner: "owner";
|
|
13547
13851
|
member: "member";
|
|
13548
13852
|
}>;
|
|
13549
13853
|
projects: ZodArray<ZodObject<{
|
|
@@ -14961,6 +15265,174 @@ export type CliPairingApprovedClaim = output<typeof CliPairingApprovedClaimSchem
|
|
|
14961
15265
|
export type CliPairingExchangeRequest = output<typeof CliPairingExchangeRequestSchema>;
|
|
14962
15266
|
export type CliPairingPrivateStatusData = output<typeof CliPairingPrivateStatusDataSchema>;
|
|
14963
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
|
|
14964
15436
|
//#region src/index.d.ts
|
|
14965
15437
|
export type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]; };
|
|
14966
15438
|
export type Nullable<T> = T | null;
|
|
@@ -14973,5 +15445,5 @@ export type AsyncResult<T, E = Error> = Promise<{
|
|
|
14973
15445
|
export declare const VERSION = "0.1.0";
|
|
14974
15446
|
export declare const PACKAGE_NAME = "@kya-os/checkpoint-shared";
|
|
14975
15447
|
//#endregion
|
|
14976
|
-
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 };
|
|
14977
15449
|
//# sourceMappingURL=index.d.mts.map
|