@kya-os/checkpoint-shared 1.5.2 → 1.7.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 +98 -1
- package/dist/beacon-types/index.d.mts +12 -1
- package/dist/beacon-types/index.d.mts.map +1 -1
- package/dist/beacon-types/index.d.ts +12 -1
- package/dist/beacon-types/index.d.ts.map +1 -1
- package/dist/beacon-types/index.js +18 -1
- package/dist/beacon-types/index.mjs +18 -2
- package/dist/beacon-types/index.mjs.map +1 -1
- package/dist/{browser-posture-D4j2a5gi.d.ts → browser-posture-B8YiPa5c.d.ts} +6 -6
- package/dist/{browser-posture-D4j2a5gi.d.ts.map → browser-posture-B8YiPa5c.d.ts.map} +1 -1
- package/dist/{browser-posture-DVoHMHjY.d.mts → browser-posture-BLhw-MON.d.mts} +6 -6
- package/dist/{browser-posture-DVoHMHjY.d.mts.map → browser-posture-BLhw-MON.d.mts.map} +1 -1
- package/dist/browser-posture-cookie.js +1 -1
- package/dist/browser-posture-cookie.mjs +1 -1
- package/dist/browser-posture-cookie.mjs.map +1 -1
- package/dist/browser-posture-proof.d.mts +2 -2
- package/dist/browser-posture-proof.d.mts.map +1 -1
- package/dist/browser-posture-proof.d.ts +2 -2
- package/dist/browser-posture-proof.d.ts.map +1 -1
- package/dist/browser-posture-proof.js +43 -2
- package/dist/browser-posture-proof.mjs +43 -2
- package/dist/browser-posture-proof.mjs.map +1 -1
- package/dist/browser-posture.d.mts +1 -1
- package/dist/browser-posture.d.ts +1 -1
- package/dist/browser-posture.js +3 -3
- package/dist/browser-posture.mjs +3 -3
- package/dist/browser-posture.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 +86 -51
- package/dist/canonical-signer/index.mjs +86 -51
- package/dist/canonical-signer/index.mjs.map +1 -1
- package/dist/clearance.d.mts +1 -1
- package/dist/clearance.d.ts +1 -1
- package/dist/clearance.js +2 -2
- package/dist/clearance.mjs +2 -2
- package/dist/client-ip-DFamiNoz.d.mts +34 -0
- package/dist/client-ip-DFamiNoz.d.mts.map +1 -0
- package/dist/client-ip-DFamiNoz.d.ts +34 -0
- package/dist/client-ip-DFamiNoz.d.ts.map +1 -0
- package/dist/client-ip.d.mts +2 -0
- package/dist/client-ip.d.ts +2 -0
- package/dist/client-ip.js +7 -0
- package/dist/client-ip.mjs +3 -0
- package/dist/errors/index.d.mts +17 -0
- package/dist/errors/index.d.mts.map +1 -1
- package/dist/errors/index.d.ts +17 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +75 -3
- package/dist/errors/index.mjs +75 -3
- package/dist/errors/index.mjs.map +1 -1
- package/dist/{external-Ct8j_hto.d.ts → external-B7WI9FyQ.d.mts} +2 -2
- package/dist/{external-Ct8j_hto.d.mts.map → external-B7WI9FyQ.d.mts.map} +1 -1
- package/dist/{external-Ct8j_hto.d.mts → external-B7WI9FyQ.d.ts} +2 -2
- package/dist/{external-Ct8j_hto.d.ts.map → external-B7WI9FyQ.d.ts.map} +1 -1
- package/dist/gateway-client-ip.d.mts +1 -1
- package/dist/gateway-client-ip.d.ts +1 -1
- package/dist/gateway-client-ip.js +1 -1
- package/dist/gateway-client-ip.mjs +1 -1
- package/dist/host-adapter/index.d.mts +2 -0
- package/dist/host-adapter/index.d.ts +2 -0
- package/dist/host-adapter/index.js +23 -0
- package/dist/host-adapter/index.mjs +3 -0
- package/dist/host-adapter-C-4IxmqM.mjs +540 -0
- package/dist/host-adapter-C-4IxmqM.mjs.map +1 -0
- package/dist/host-adapter-CwW9YB0U.js +694 -0
- package/dist/index-B7rTovHa.d.mts +707 -0
- package/dist/index-B7rTovHa.d.mts.map +1 -0
- package/dist/index-HaqfPtaL.d.ts +707 -0
- package/dist/index-HaqfPtaL.d.ts.map +1 -0
- package/dist/index.d.mts +742 -937
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +742 -937
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +758 -1193
- package/dist/index.mjs +659 -1148
- package/dist/index.mjs.map +1 -1
- package/dist/kya-http-error-codes-7ewV5RuK.d.mts +29 -0
- package/dist/kya-http-error-codes-7ewV5RuK.d.mts.map +1 -0
- package/dist/kya-http-error-codes-7ewV5RuK.d.ts +29 -0
- package/dist/kya-http-error-codes-7ewV5RuK.d.ts.map +1 -0
- package/dist/kya-http-error-codes-C2JiWPsi.mjs +73 -0
- package/dist/kya-http-error-codes-C2JiWPsi.mjs.map +1 -0
- package/dist/kya-http-error-codes-UYb1zpGM.js +83 -0
- package/dist/kya-http.d.mts +3 -0
- package/dist/kya-http.d.ts +3 -0
- package/dist/kya-http.js +11 -0
- package/dist/kya-http.mjs +4 -0
- package/dist/mcpi/approval-grant/index.d.mts.map +1 -1
- package/dist/mcpi/approval-grant/index.d.ts.map +1 -1
- package/dist/mcpi/approval-grant/index.js +10 -1
- package/dist/mcpi/approval-grant/index.mjs +10 -1
- package/dist/mcpi/approval-grant/index.mjs.map +1 -1
- package/dist/mcpi/dashboard-config/index.d.mts +3 -2
- package/dist/mcpi/dashboard-config/index.d.mts.map +1 -1
- package/dist/mcpi/dashboard-config/index.d.ts +3 -2
- package/dist/mcpi/dashboard-config/index.d.ts.map +1 -1
- package/dist/policy/enforcement.d.mts +2 -0
- package/dist/policy/enforcement.d.ts +2 -0
- package/dist/policy/enforcement.js +15 -0
- package/dist/policy/enforcement.mjs +3 -0
- package/dist/{posture-origins-Dl7i8j93.mjs → posture-origins-Ba83O0cD.mjs} +3 -3
- package/dist/posture-origins-Ba83O0cD.mjs.map +1 -0
- package/dist/{posture-origins-CEm83u4D.js → posture-origins-CdVOdiMT.js} +7 -1
- package/dist/{project-verification-key-CgSVX9_m.mjs → project-verification-key-66N4edKn.mjs} +2 -2
- package/dist/{project-verification-key-CgSVX9_m.mjs.map → project-verification-key-66N4edKn.mjs.map} +1 -1
- package/dist/{project-verification-key-C3L5rd8a.js → project-verification-key-BccT12tQ.js} +1 -1
- package/dist/registered-sid-D3g-gZQF.d.mts +11 -0
- package/dist/registered-sid-D3g-gZQF.d.mts.map +1 -0
- package/dist/registered-sid-D3g-gZQF.d.ts +11 -0
- package/dist/registered-sid-D3g-gZQF.d.ts.map +1 -0
- package/dist/registered-sid-eLCNZvIF.js +170 -0
- package/dist/registered-sid-hUl-bvM5.mjs +142 -0
- package/dist/registered-sid-hUl-bvM5.mjs.map +1 -0
- package/dist/{schemas-DxY-dk9y.mjs → schemas-7qodsG-Z.mjs} +49 -2
- package/dist/schemas-7qodsG-Z.mjs.map +1 -0
- package/dist/{schemas-BmjNLAE7.js → schemas-YhagYDx_.js} +59 -0
- package/dist/step-up-BjP--hG-.d.mts +114 -0
- package/dist/step-up-BjP--hG-.d.mts.map +1 -0
- package/dist/step-up-BjP--hG-.d.ts +114 -0
- package/dist/step-up-BjP--hG-.d.ts.map +1 -0
- package/dist/step-up-C2d8C20x.js +1697 -0
- package/dist/step-up-COlmWJN8.mjs +1513 -0
- package/dist/step-up-COlmWJN8.mjs.map +1 -0
- package/fixtures/cli-registration.v2.json +115 -0
- package/fixtures/detection/reason-codes.json +1 -1
- package/fixtures/kya-http/README.md +34 -26
- package/fixtures/kya-http/protected-resource-metadata.full.json +14 -5
- package/fixtures/kya-http/protected-resource-metadata.invalid-issuer.json +51 -0
- package/fixtures/kya-http/protected-resource-metadata.no-issuer.json +32 -0
- package/fixtures/reviewer-grant-revocation.v1.json +285 -0
- package/package.json +26 -4
- package/dist/posture-origins-Dl7i8j93.mjs.map +0 -1
- package/dist/schemas-DxY-dk9y.mjs.map +0 -1
- package/fixtures/kya-http/protected-resource-metadata.global.json +0 -28
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,76 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as ZodRecord, B as $strict, C as ZodNull, D as ZodOptional, E as ZodObject, F as ZodUnknown, I as ZodError, L as output, M as ZodTransform, N as ZodType, O as ZodPipe, P as ZodUnion, R as $loose, S as ZodNever, T as ZodNumber, V as $strip, 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 ZodString, k as ZodPrefault, 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 ZodNullable, x as ZodLiteral, y as ZodIPv6, z as $partial } from "./external-B7WI9FyQ.mjs";
|
|
2
|
+
import { a as ClientIpTrustPolicy, c as normalizeClientIp, i as ClientIpSource, l as parseIpv6, n as ClientIpHeaders, o as ResolveClientIpInput, r as ClientIpResolution, s as compressIpv6, t as ClientIpHeaderValue, u as resolveClientIp } from "./client-ip-DFamiNoz.mjs";
|
|
3
|
+
import { $ as PolicyMetadata, A as ChallengeParams, B as EnforcementActionSchema, C as generateDelegationSid, Ct as classifyResponseShape, D as AssuranceTierSchema, Dt as Verdict, E as AssuranceTier, Et as VERDICT_COOKIE_NAME, F as ConditionValueSchema, G as PolicyConditionSchema, H as InstructPayload, I as Decision, J as PolicyEvaluationContext, K as PolicyConfig, L as DecisionSchema, M as ConditionFieldSchema, N as ConditionOperatorSchema, O as BlockReason, Ot as deriveVerdict, P as ConditionValue, Q as PolicyMatchTypeSchema, R as DenyListEntry, S as deriveDelegationPickupUri, St as ResponseShape, T as AllowListEntrySchema, Tt as RenderedResponseLike, U as InstructPayloadSchema, V as EnforcementModeSchema, W as PolicyCondition, X as PolicyEvaluationResult, Y as PolicyEvaluationContextSchema, Z as PolicyEvaluationResultSchema, _ as buildDelegationBearerHeader, _t as ChallengeEnvelopeMode, a as resolveChallengeContext, at as RuleMetadata, b as buildDelegationChallengeHeader, bt as serveBodyReadable200, c as ChallengeWireErrorCode, ct as SuggestedAction, d as DelegationChallengeBody, dt as ThresholdConfigSchema, et as PolicyMetadataSchema, f as DelegationChallengeEnvelope, ft as normalizeChallengeType, g as buildChallengeWire, gt as ACCEPT_CHALLENGE_HEADER, h as HeaderEntry, ht as safeParsePolicyConfig, i as ResolveChallengeContextOptions, it as RedirectTargetSchema, j as ChallengeParamsSchema, k as BlockReasonSchema, kt as encodeVerdictCookie, l as ChallengeWireInput, lt as SuggestedActionSchema, m as DelegationChallengeWireInput, mt as parsePolicyConfig, n as ChallengeContextFailureEvent, nt as PolicyRuleSchema, o as ApprovalQuorumChallengeWireInput, ot as RuleMetadataSchema, p as DelegationChallengeEnvelopeMode, pt as parseEvaluationContext, q as PolicyConfigSchema, r as DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, rt as RedirectTarget, s as ChallengeWireError, st as StrictEnforcementActionSchema, t as ChallengeContextFailure, tt as PolicyRule, u as ChallengeWireKind, ut as ThresholdConfig, v as buildDelegationChallengeBody, vt as FetcherHeaderInput, w as AllowListEntry, wt as acceptsHtml, x as buildDelegationInstructions, xt as BLOCKED_PATH, y as buildDelegationChallengeEnvelope, yt as selectBodyReadable200, z as DenyListEntrySchema } from "./index-B7rTovHa.mjs";
|
|
4
|
+
import { n as KYA_HTTP_ERROR_STATUS, r as KyaHttpErrorCode, t as KYA_HTTP_ERROR } from "./kya-http-error-codes-7ewV5RuK.mjs";
|
|
5
|
+
import { A as FAIL_CLOSED_HEADERS, C as statementApplies, D as NO_EVIDENCE_EXCLUSION_TERM, E as NO_EVIDENCE_EQUALITY_TERM, M as isEngineEnforcing, O as withNoEvidenceExclusion, S as parseCedarStatements, T as NO_EVIDENCE_CATEGORY, _ as pathHasUnnarrowedDenyRule, a as ApprovalQuorum, b as splitCedarBlocks, c as decisionPolicyId, d as RequestFacts, f as analyzePolicySource, g as pathHasExplicitDenyRuleFor, h as isUnnarrowedDenyBlock, i as validateStepUpQuorum, j as FAIL_CLOSED_STATUS, k as FAIL_CLOSED_BODY, l as requiredScopesForRequest, m as isForbidBlock, n as StepUpQuorumCheck, o as approvalQuorumForRequest, p as blockEqualityLiterals, r as StepUpQuorumLike, s as DecisionLike, t as InvalidStepUpReason, u as PolicyHazardAnalysis, v as pathHasUnnarrowedDenyRuleFor, w as statementId, x as ProbeClass, y as pathLiteralsInBlock } from "./step-up-BjP--hG-.mjs";
|
|
6
|
+
import { a as requestPresentedCredential, i as requestCarriesDelegationProof, n as SID_ATTRIBUTABLE_RESULT, r as DELEGATION_PROOF_HEADERS, t as REGISTERED_SID_MAX_LENGTH } from "./registered-sid-D3g-gZQF.mjs";
|
|
2
7
|
import { AUTH_MODES, AuthMode, ConsentProviderType, CredentialProviderConfig, CredentialProviderConfigSchema, IProviderRegistry, OAuthProviderConfig, OAuthProviderConfigSchema, PROVIDER_AUTH_TYPES, ProviderAuthType, ProviderConfig, ProviderConfigSchema, ProviderDefinition as ProviderRegistryDefinition, ProviderDefinitionSchema as ProviderRegistryDefinitionSchema, RegistryLogger, validateProviderConfig, validateProviderDefinition } from "@kya-os/provider-registry";
|
|
3
8
|
import { JWK } from "jose";
|
|
9
|
+
//#region src/core/network-assertions.d.ts
|
|
10
|
+
export declare const ProxyCollectionStateSchema: ZodEnum<{
|
|
11
|
+
current: "current";
|
|
12
|
+
unavailable: "unavailable";
|
|
13
|
+
stale: "stale";
|
|
14
|
+
unsupported: "unsupported";
|
|
15
|
+
conflicting: "conflicting";
|
|
16
|
+
insufficient_support: "insufficient_support";
|
|
17
|
+
}>;
|
|
18
|
+
export type ProxyCollectionState = output<typeof ProxyCollectionStateSchema>;
|
|
19
|
+
export declare const ProxyAssertionSchema: ZodObject<{
|
|
20
|
+
kind: ZodString;
|
|
21
|
+
source: ZodString;
|
|
22
|
+
subjectScope: ZodLiteral<"request_egress">;
|
|
23
|
+
membership: ZodEnum<{
|
|
24
|
+
absent: "absent";
|
|
25
|
+
unknown: "unknown";
|
|
26
|
+
present: "present";
|
|
27
|
+
}>;
|
|
28
|
+
evidenceGrade: ZodEnum<{
|
|
29
|
+
confirmed: "confirmed";
|
|
30
|
+
vendor_reported: "vendor_reported";
|
|
31
|
+
}>;
|
|
32
|
+
collectionState: ZodEnum<{
|
|
33
|
+
current: "current";
|
|
34
|
+
unavailable: "unavailable";
|
|
35
|
+
stale: "stale";
|
|
36
|
+
unsupported: "unsupported";
|
|
37
|
+
conflicting: "conflicting";
|
|
38
|
+
insufficient_support: "insufficient_support";
|
|
39
|
+
}>;
|
|
40
|
+
observedAt: ZodNullable<ZodNumber>;
|
|
41
|
+
expiresAt: ZodNullable<ZodNumber>;
|
|
42
|
+
membershipConfidence: ZodNullable<ZodNumber>;
|
|
43
|
+
sourceReliability: ZodNullable<ZodNumber>;
|
|
44
|
+
fraudProbability: ZodNullable<ZodNumber>;
|
|
45
|
+
proxyClass: ZodOptional<ZodEnum<{
|
|
46
|
+
unknown: "unknown";
|
|
47
|
+
datacenter: "datacenter";
|
|
48
|
+
}>>;
|
|
49
|
+
}, $strict>;
|
|
50
|
+
export type ProxyAssertion = output<typeof ProxyAssertionSchema>;
|
|
51
|
+
export declare function mapProxyAssertions(proxyAssertions: readonly ProxyAssertion[], nowSeconds: number, collectionState: ProxyCollectionState, compatibility?: 'confirmed_current' | 'maxmind_legacy'): {
|
|
52
|
+
proxy: {
|
|
53
|
+
isProxy: boolean;
|
|
54
|
+
proxyType: "unknown" | "datacenter" | "vpn" | "tor" | "residential_proxy";
|
|
55
|
+
confidence: number;
|
|
56
|
+
} | undefined;
|
|
57
|
+
proxyAssertions: readonly {
|
|
58
|
+
kind: string;
|
|
59
|
+
source: string;
|
|
60
|
+
subjectScope: "request_egress";
|
|
61
|
+
membership: "absent" | "unknown" | "present";
|
|
62
|
+
evidenceGrade: "confirmed" | "vendor_reported";
|
|
63
|
+
collectionState: "current" | "unavailable" | "stale" | "unsupported" | "conflicting" | "insufficient_support";
|
|
64
|
+
observedAt: number | null;
|
|
65
|
+
expiresAt: number | null;
|
|
66
|
+
membershipConfidence: number | null;
|
|
67
|
+
sourceReliability: number | null;
|
|
68
|
+
fraudProbability: number | null;
|
|
69
|
+
proxyClass?: "unknown" | "datacenter" | undefined;
|
|
70
|
+
}[];
|
|
71
|
+
proxyCollectionState: "current" | "unavailable" | "stale" | "unsupported" | "conflicting" | "insufficient_support";
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
4
74
|
//#region src/core/detection.d.ts
|
|
5
75
|
export declare const DetectionClassSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
6
76
|
type: ZodLiteral<"Human">;
|
|
@@ -18,11 +88,11 @@ export declare const DetectionClassSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
|
18
88
|
Custom: "Custom";
|
|
19
89
|
}>>;
|
|
20
90
|
purpose: ZodOptional<ZodEnum<{
|
|
91
|
+
Other: "Other";
|
|
21
92
|
Testing: "Testing";
|
|
22
93
|
Scraping: "Scraping";
|
|
23
94
|
Monitoring: "Monitoring";
|
|
24
95
|
Analytics: "Analytics";
|
|
25
|
-
Other: "Other";
|
|
26
96
|
}>>;
|
|
27
97
|
}, $strip>, ZodObject<{
|
|
28
98
|
type: ZodLiteral<"Bot">;
|
|
@@ -86,10 +156,19 @@ export interface CheckpointSession {
|
|
|
86
156
|
[key: string]: unknown;
|
|
87
157
|
}
|
|
88
158
|
export type AgentShieldSession = CheckpointSession;
|
|
159
|
+
export interface CheckpointEvents {
|
|
160
|
+
detection: (result: DetectionResult, context?: CheckpointEventContext) => void;
|
|
161
|
+
'agent.detected': (result: DetectionResult, context?: CheckpointEventContext) => void;
|
|
162
|
+
'agent.blocked': (result: DetectionResult, context?: CheckpointEventContext) => void;
|
|
163
|
+
'agent.allowed': (result: DetectionResult, context?: CheckpointEventContext) => void;
|
|
164
|
+
'agent.session.started': (result: DetectionResult, context?: CheckpointEventContext) => void;
|
|
165
|
+
'agent.session.continued': (session: CheckpointSession, context?: CheckpointEventContext) => void;
|
|
166
|
+
error: (error: Error, context?: CheckpointEventContext) => void;
|
|
167
|
+
}
|
|
89
168
|
export declare const DetectionSignalSchema: ZodObject<{
|
|
90
169
|
signalType: ZodEnum<{
|
|
91
|
-
pattern: "pattern";
|
|
92
170
|
behavioral: "behavioral";
|
|
171
|
+
pattern: "pattern";
|
|
93
172
|
signature: "signature";
|
|
94
173
|
network: "network";
|
|
95
174
|
fingerprint: "fingerprint";
|
|
@@ -204,6 +283,45 @@ export declare const NetworkContextSchema: ZodObject<{
|
|
|
204
283
|
lastDetected: ZodOptional<ZodNumber>;
|
|
205
284
|
confidence: ZodNumber;
|
|
206
285
|
}, $strip>>;
|
|
286
|
+
proxyAssertions: ZodOptional<ZodArray<ZodObject<{
|
|
287
|
+
kind: ZodString;
|
|
288
|
+
source: ZodString;
|
|
289
|
+
subjectScope: ZodLiteral<"request_egress">;
|
|
290
|
+
membership: ZodEnum<{
|
|
291
|
+
absent: "absent";
|
|
292
|
+
unknown: "unknown";
|
|
293
|
+
present: "present";
|
|
294
|
+
}>;
|
|
295
|
+
evidenceGrade: ZodEnum<{
|
|
296
|
+
confirmed: "confirmed";
|
|
297
|
+
vendor_reported: "vendor_reported";
|
|
298
|
+
}>;
|
|
299
|
+
collectionState: ZodEnum<{
|
|
300
|
+
current: "current";
|
|
301
|
+
unavailable: "unavailable";
|
|
302
|
+
stale: "stale";
|
|
303
|
+
unsupported: "unsupported";
|
|
304
|
+
conflicting: "conflicting";
|
|
305
|
+
insufficient_support: "insufficient_support";
|
|
306
|
+
}>;
|
|
307
|
+
observedAt: ZodNullable<ZodNumber>;
|
|
308
|
+
expiresAt: ZodNullable<ZodNumber>;
|
|
309
|
+
membershipConfidence: ZodNullable<ZodNumber>;
|
|
310
|
+
sourceReliability: ZodNullable<ZodNumber>;
|
|
311
|
+
fraudProbability: ZodNullable<ZodNumber>;
|
|
312
|
+
proxyClass: ZodOptional<ZodEnum<{
|
|
313
|
+
unknown: "unknown";
|
|
314
|
+
datacenter: "datacenter";
|
|
315
|
+
}>>;
|
|
316
|
+
}, $strict>>>;
|
|
317
|
+
proxyCollectionState: ZodOptional<ZodEnum<{
|
|
318
|
+
current: "current";
|
|
319
|
+
unavailable: "unavailable";
|
|
320
|
+
stale: "stale";
|
|
321
|
+
unsupported: "unsupported";
|
|
322
|
+
conflicting: "conflicting";
|
|
323
|
+
insufficient_support: "insufficient_support";
|
|
324
|
+
}>>;
|
|
207
325
|
}, $strip>;
|
|
208
326
|
export type NetworkContext = output<typeof NetworkContextSchema>;
|
|
209
327
|
export declare const DetectionDetailSchema: ZodObject<{
|
|
@@ -232,11 +350,11 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
232
350
|
Custom: "Custom";
|
|
233
351
|
}>>;
|
|
234
352
|
purpose: ZodOptional<ZodEnum<{
|
|
353
|
+
Other: "Other";
|
|
235
354
|
Testing: "Testing";
|
|
236
355
|
Scraping: "Scraping";
|
|
237
356
|
Monitoring: "Monitoring";
|
|
238
357
|
Analytics: "Analytics";
|
|
239
|
-
Other: "Other";
|
|
240
358
|
}>>;
|
|
241
359
|
}, $strip>, ZodObject<{
|
|
242
360
|
type: ZodLiteral<"Bot">;
|
|
@@ -268,8 +386,8 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
268
386
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
269
387
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
270
388
|
signalType: ZodEnum<{
|
|
271
|
-
pattern: "pattern";
|
|
272
389
|
behavioral: "behavioral";
|
|
390
|
+
pattern: "pattern";
|
|
273
391
|
signature: "signature";
|
|
274
392
|
network: "network";
|
|
275
393
|
fingerprint: "fingerprint";
|
|
@@ -309,9 +427,9 @@ export declare const DetectionDetailSchema: ZodObject<{
|
|
|
309
427
|
botType: ZodOptional<ZodString>;
|
|
310
428
|
agentType: ZodOptional<ZodString>;
|
|
311
429
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
430
|
+
behavioral: "behavioral";
|
|
312
431
|
error: "error";
|
|
313
432
|
pattern: "pattern";
|
|
314
|
-
behavioral: "behavioral";
|
|
315
433
|
signature: "signature";
|
|
316
434
|
network: "network";
|
|
317
435
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -418,11 +536,11 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
418
536
|
Custom: "Custom";
|
|
419
537
|
}>>;
|
|
420
538
|
purpose: ZodOptional<ZodEnum<{
|
|
539
|
+
Other: "Other";
|
|
421
540
|
Testing: "Testing";
|
|
422
541
|
Scraping: "Scraping";
|
|
423
542
|
Monitoring: "Monitoring";
|
|
424
543
|
Analytics: "Analytics";
|
|
425
|
-
Other: "Other";
|
|
426
544
|
}>>;
|
|
427
545
|
}, $strip>, ZodObject<{
|
|
428
546
|
type: ZodLiteral<"Bot">;
|
|
@@ -454,8 +572,8 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
454
572
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
455
573
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
456
574
|
signalType: ZodEnum<{
|
|
457
|
-
pattern: "pattern";
|
|
458
575
|
behavioral: "behavioral";
|
|
576
|
+
pattern: "pattern";
|
|
459
577
|
signature: "signature";
|
|
460
578
|
network: "network";
|
|
461
579
|
fingerprint: "fingerprint";
|
|
@@ -495,9 +613,9 @@ export declare const DetectionResultSchema: ZodObject<{
|
|
|
495
613
|
botType: ZodOptional<ZodString>;
|
|
496
614
|
agentType: ZodOptional<ZodString>;
|
|
497
615
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
616
|
+
behavioral: "behavioral";
|
|
498
617
|
error: "error";
|
|
499
618
|
pattern: "pattern";
|
|
500
|
-
behavioral: "behavioral";
|
|
501
619
|
signature: "signature";
|
|
502
620
|
network: "network";
|
|
503
621
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -924,8 +1042,8 @@ export declare function riskScoreColumnValue(metadata: unknown): string | null;
|
|
|
924
1042
|
export declare const VerdictEvidenceSchema: ZodObject<{
|
|
925
1043
|
signal: ZodString;
|
|
926
1044
|
plane: ZodEnum<{
|
|
927
|
-
pattern: "pattern";
|
|
928
1045
|
behavioral: "behavioral";
|
|
1046
|
+
pattern: "pattern";
|
|
929
1047
|
signature: "signature";
|
|
930
1048
|
network: "network";
|
|
931
1049
|
fingerprint: "fingerprint";
|
|
@@ -1156,11 +1274,11 @@ export declare const MiddlewareSessionConfigSchema: ZodObject<{
|
|
|
1156
1274
|
}, $strip>;
|
|
1157
1275
|
export type MiddlewareSessionConfig = output<typeof MiddlewareSessionConfigSchema>;
|
|
1158
1276
|
export declare const MiddlewareActionSchema: ZodEnum<{
|
|
1277
|
+
allow: "allow";
|
|
1159
1278
|
block: "block";
|
|
1160
1279
|
redirect: "redirect";
|
|
1161
|
-
rewrite: "rewrite";
|
|
1162
|
-
allow: "allow";
|
|
1163
1280
|
log: "log";
|
|
1281
|
+
rewrite: "rewrite";
|
|
1164
1282
|
}>;
|
|
1165
1283
|
export type MiddlewareAction = output<typeof MiddlewareActionSchema>;
|
|
1166
1284
|
export declare const ResponseActionSchema: ZodObject<{
|
|
@@ -1405,11 +1523,11 @@ export declare const MiddlewareSessionDataSchema: ZodObject<{
|
|
|
1405
1523
|
export type MiddlewareSessionData = output<typeof MiddlewareSessionDataSchema>;
|
|
1406
1524
|
export declare const MiddlewareConfigSchema: ZodObject<{
|
|
1407
1525
|
action: ZodDefault<ZodEnum<{
|
|
1526
|
+
allow: "allow";
|
|
1408
1527
|
block: "block";
|
|
1409
1528
|
redirect: "redirect";
|
|
1410
|
-
rewrite: "rewrite";
|
|
1411
|
-
allow: "allow";
|
|
1412
1529
|
log: "log";
|
|
1530
|
+
rewrite: "rewrite";
|
|
1413
1531
|
}>>;
|
|
1414
1532
|
session: ZodOptional<ZodObject<{
|
|
1415
1533
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -1723,7 +1841,7 @@ export type NewProject = Omit<Project, 'id' | 'friendlyId' | 'createdAt' | 'upda
|
|
|
1723
1841
|
export declare const PixelConfigurationSchema: ZodObject<{
|
|
1724
1842
|
enabled: ZodDefault<ZodBoolean>;
|
|
1725
1843
|
skipPaths: ZodDefault<ZodArray<ZodString>>;
|
|
1726
|
-
allowedDomains: ZodDefault<ZodArray<ZodString
|
|
1844
|
+
allowedDomains: ZodDefault<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
1727
1845
|
blockedAgents: ZodDefault<ZodArray<ZodString>>;
|
|
1728
1846
|
batchSize: ZodDefault<ZodNumber>;
|
|
1729
1847
|
flushInterval: ZodDefault<ZodNumber>;
|
|
@@ -1740,7 +1858,7 @@ export declare const PixelSchema: ZodObject<{
|
|
|
1740
1858
|
configuration: ZodPrefault<ZodObject<{
|
|
1741
1859
|
enabled: ZodDefault<ZodBoolean>;
|
|
1742
1860
|
skipPaths: ZodDefault<ZodArray<ZodString>>;
|
|
1743
|
-
allowedDomains: ZodDefault<ZodArray<ZodString
|
|
1861
|
+
allowedDomains: ZodDefault<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
1744
1862
|
blockedAgents: ZodDefault<ZodArray<ZodString>>;
|
|
1745
1863
|
batchSize: ZodDefault<ZodNumber>;
|
|
1746
1864
|
flushInterval: ZodDefault<ZodNumber>;
|
|
@@ -1949,11 +2067,11 @@ export declare const PixelEventSchema: ZodObject<{
|
|
|
1949
2067
|
Custom: "Custom";
|
|
1950
2068
|
}>>;
|
|
1951
2069
|
purpose: ZodOptional<ZodEnum<{
|
|
2070
|
+
Other: "Other";
|
|
1952
2071
|
Testing: "Testing";
|
|
1953
2072
|
Scraping: "Scraping";
|
|
1954
2073
|
Monitoring: "Monitoring";
|
|
1955
2074
|
Analytics: "Analytics";
|
|
1956
|
-
Other: "Other";
|
|
1957
2075
|
}>>;
|
|
1958
2076
|
}, $strip>, ZodObject<{
|
|
1959
2077
|
type: ZodLiteral<"Bot">;
|
|
@@ -1985,8 +2103,8 @@ export declare const PixelEventSchema: ZodObject<{
|
|
|
1985
2103
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
1986
2104
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
1987
2105
|
signalType: ZodEnum<{
|
|
1988
|
-
pattern: "pattern";
|
|
1989
2106
|
behavioral: "behavioral";
|
|
2107
|
+
pattern: "pattern";
|
|
1990
2108
|
signature: "signature";
|
|
1991
2109
|
network: "network";
|
|
1992
2110
|
fingerprint: "fingerprint";
|
|
@@ -2026,9 +2144,9 @@ export declare const PixelEventSchema: ZodObject<{
|
|
|
2026
2144
|
botType: ZodOptional<ZodString>;
|
|
2027
2145
|
agentType: ZodOptional<ZodString>;
|
|
2028
2146
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
2147
|
+
behavioral: "behavioral";
|
|
2029
2148
|
error: "error";
|
|
2030
2149
|
pattern: "pattern";
|
|
2031
|
-
behavioral: "behavioral";
|
|
2032
2150
|
signature: "signature";
|
|
2033
2151
|
network: "network";
|
|
2034
2152
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -2190,11 +2308,11 @@ export declare const BatchPixelEventRequestSchema: ZodObject<{
|
|
|
2190
2308
|
Custom: "Custom";
|
|
2191
2309
|
}>>;
|
|
2192
2310
|
purpose: ZodOptional<ZodEnum<{
|
|
2311
|
+
Other: "Other";
|
|
2193
2312
|
Testing: "Testing";
|
|
2194
2313
|
Scraping: "Scraping";
|
|
2195
2314
|
Monitoring: "Monitoring";
|
|
2196
2315
|
Analytics: "Analytics";
|
|
2197
|
-
Other: "Other";
|
|
2198
2316
|
}>>;
|
|
2199
2317
|
}, $strip>, ZodObject<{
|
|
2200
2318
|
type: ZodLiteral<"Bot">;
|
|
@@ -2226,8 +2344,8 @@ export declare const BatchPixelEventRequestSchema: ZodObject<{
|
|
|
2226
2344
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
2227
2345
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
2228
2346
|
signalType: ZodEnum<{
|
|
2229
|
-
pattern: "pattern";
|
|
2230
2347
|
behavioral: "behavioral";
|
|
2348
|
+
pattern: "pattern";
|
|
2231
2349
|
signature: "signature";
|
|
2232
2350
|
network: "network";
|
|
2233
2351
|
fingerprint: "fingerprint";
|
|
@@ -2267,9 +2385,9 @@ export declare const BatchPixelEventRequestSchema: ZodObject<{
|
|
|
2267
2385
|
botType: ZodOptional<ZodString>;
|
|
2268
2386
|
agentType: ZodOptional<ZodString>;
|
|
2269
2387
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
2388
|
+
behavioral: "behavioral";
|
|
2270
2389
|
error: "error";
|
|
2271
2390
|
pattern: "pattern";
|
|
2272
|
-
behavioral: "behavioral";
|
|
2273
2391
|
signature: "signature";
|
|
2274
2392
|
network: "network";
|
|
2275
2393
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -2650,11 +2768,11 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
2650
2768
|
Custom: "Custom";
|
|
2651
2769
|
}>>;
|
|
2652
2770
|
purpose: ZodOptional<ZodEnum<{
|
|
2771
|
+
Other: "Other";
|
|
2653
2772
|
Testing: "Testing";
|
|
2654
2773
|
Scraping: "Scraping";
|
|
2655
2774
|
Monitoring: "Monitoring";
|
|
2656
2775
|
Analytics: "Analytics";
|
|
2657
|
-
Other: "Other";
|
|
2658
2776
|
}>>;
|
|
2659
2777
|
}, $strip>, ZodObject<{
|
|
2660
2778
|
type: ZodLiteral<"Bot">;
|
|
@@ -2686,8 +2804,8 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
2686
2804
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
2687
2805
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
2688
2806
|
signalType: ZodEnum<{
|
|
2689
|
-
pattern: "pattern";
|
|
2690
2807
|
behavioral: "behavioral";
|
|
2808
|
+
pattern: "pattern";
|
|
2691
2809
|
signature: "signature";
|
|
2692
2810
|
network: "network";
|
|
2693
2811
|
fingerprint: "fingerprint";
|
|
@@ -2727,9 +2845,9 @@ export declare const PixelTrackingResponseSchema: ZodObject<{
|
|
|
2727
2845
|
botType: ZodOptional<ZodString>;
|
|
2728
2846
|
agentType: ZodOptional<ZodString>;
|
|
2729
2847
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
2848
|
+
behavioral: "behavioral";
|
|
2730
2849
|
error: "error";
|
|
2731
2850
|
pattern: "pattern";
|
|
2732
|
-
behavioral: "behavioral";
|
|
2733
2851
|
signature: "signature";
|
|
2734
2852
|
network: "network";
|
|
2735
2853
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -2887,9 +3005,9 @@ export type PixelSession = output<typeof PixelSessionSchema>;
|
|
|
2887
3005
|
export declare const PixelVerificationStatusSchema: ZodObject<{
|
|
2888
3006
|
status: ZodEnum<{
|
|
2889
3007
|
verified: "verified";
|
|
2890
|
-
failed: "failed";
|
|
2891
3008
|
partial: "partial";
|
|
2892
3009
|
pending: "pending";
|
|
3010
|
+
failed: "failed";
|
|
2893
3011
|
}>;
|
|
2894
3012
|
message: ZodString;
|
|
2895
3013
|
verified: ZodBoolean;
|
|
@@ -2920,8 +3038,8 @@ export type DetectionViewType = output<typeof DetectionViewTypeSchema>;
|
|
|
2920
3038
|
export declare const DetectionStatusSchema: ZodEnum<{
|
|
2921
3039
|
error: "error";
|
|
2922
3040
|
success: "success";
|
|
2923
|
-
failed: "failed";
|
|
2924
3041
|
partial: "partial";
|
|
3042
|
+
failed: "failed";
|
|
2925
3043
|
}>;
|
|
2926
3044
|
export type DetectionStatus = output<typeof DetectionStatusSchema>;
|
|
2927
3045
|
export declare const DetectionErrorDetailsSchema: ZodObject<{
|
|
@@ -2993,11 +3111,11 @@ export declare const SessionDataSchema: ZodObject<{
|
|
|
2993
3111
|
Custom: "Custom";
|
|
2994
3112
|
}>>;
|
|
2995
3113
|
purpose: ZodOptional<ZodEnum<{
|
|
3114
|
+
Other: "Other";
|
|
2996
3115
|
Testing: "Testing";
|
|
2997
3116
|
Scraping: "Scraping";
|
|
2998
3117
|
Monitoring: "Monitoring";
|
|
2999
3118
|
Analytics: "Analytics";
|
|
3000
|
-
Other: "Other";
|
|
3001
3119
|
}>>;
|
|
3002
3120
|
}, $strip>, ZodObject<{
|
|
3003
3121
|
type: ZodLiteral<"Bot">;
|
|
@@ -3029,8 +3147,8 @@ export declare const SessionDataSchema: ZodObject<{
|
|
|
3029
3147
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
3030
3148
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
3031
3149
|
signalType: ZodEnum<{
|
|
3032
|
-
pattern: "pattern";
|
|
3033
3150
|
behavioral: "behavioral";
|
|
3151
|
+
pattern: "pattern";
|
|
3034
3152
|
signature: "signature";
|
|
3035
3153
|
network: "network";
|
|
3036
3154
|
fingerprint: "fingerprint";
|
|
@@ -3070,9 +3188,9 @@ export declare const SessionDataSchema: ZodObject<{
|
|
|
3070
3188
|
botType: ZodOptional<ZodString>;
|
|
3071
3189
|
agentType: ZodOptional<ZodString>;
|
|
3072
3190
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
3191
|
+
behavioral: "behavioral";
|
|
3073
3192
|
error: "error";
|
|
3074
3193
|
pattern: "pattern";
|
|
3075
|
-
behavioral: "behavioral";
|
|
3076
3194
|
signature: "signature";
|
|
3077
3195
|
network: "network";
|
|
3078
3196
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -3218,11 +3336,11 @@ export declare const SessionUpdateRequestSchema: ZodObject<{
|
|
|
3218
3336
|
Custom: "Custom";
|
|
3219
3337
|
}>>;
|
|
3220
3338
|
purpose: ZodOptional<ZodEnum<{
|
|
3339
|
+
Other: "Other";
|
|
3221
3340
|
Testing: "Testing";
|
|
3222
3341
|
Scraping: "Scraping";
|
|
3223
3342
|
Monitoring: "Monitoring";
|
|
3224
3343
|
Analytics: "Analytics";
|
|
3225
|
-
Other: "Other";
|
|
3226
3344
|
}>>;
|
|
3227
3345
|
}, $strip>, ZodObject<{
|
|
3228
3346
|
type: ZodLiteral<"Bot">;
|
|
@@ -3254,8 +3372,8 @@ export declare const SessionUpdateRequestSchema: ZodObject<{
|
|
|
3254
3372
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
3255
3373
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
3256
3374
|
signalType: ZodEnum<{
|
|
3257
|
-
pattern: "pattern";
|
|
3258
3375
|
behavioral: "behavioral";
|
|
3376
|
+
pattern: "pattern";
|
|
3259
3377
|
signature: "signature";
|
|
3260
3378
|
network: "network";
|
|
3261
3379
|
fingerprint: "fingerprint";
|
|
@@ -3295,9 +3413,9 @@ export declare const SessionUpdateRequestSchema: ZodObject<{
|
|
|
3295
3413
|
botType: ZodOptional<ZodString>;
|
|
3296
3414
|
agentType: ZodOptional<ZodString>;
|
|
3297
3415
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
3416
|
+
behavioral: "behavioral";
|
|
3298
3417
|
error: "error";
|
|
3299
3418
|
pattern: "pattern";
|
|
3300
|
-
behavioral: "behavioral";
|
|
3301
3419
|
signature: "signature";
|
|
3302
3420
|
network: "network";
|
|
3303
3421
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -3646,8 +3764,8 @@ export declare const MessagePrioritySchema: ZodEnum<{
|
|
|
3646
3764
|
}>;
|
|
3647
3765
|
export type MessagePriority = output<typeof MessagePrioritySchema>;
|
|
3648
3766
|
export declare const WorkerActionSchema: ZodEnum<{
|
|
3649
|
-
error: "error";
|
|
3650
3767
|
status: "status";
|
|
3768
|
+
error: "error";
|
|
3651
3769
|
config: "config";
|
|
3652
3770
|
init: "init";
|
|
3653
3771
|
process: "process";
|
|
@@ -3657,8 +3775,8 @@ export declare const WorkerActionSchema: ZodEnum<{
|
|
|
3657
3775
|
}>;
|
|
3658
3776
|
export type WorkerAction = output<typeof WorkerActionSchema>;
|
|
3659
3777
|
export declare const WorkerMessageTypeSchema: ZodEnum<{
|
|
3660
|
-
error: "error";
|
|
3661
3778
|
status: "status";
|
|
3779
|
+
error: "error";
|
|
3662
3780
|
request: "request";
|
|
3663
3781
|
response: "response";
|
|
3664
3782
|
heartbeat: "heartbeat";
|
|
@@ -3667,15 +3785,15 @@ export type WorkerMessageType = output<typeof WorkerMessageTypeSchema>;
|
|
|
3667
3785
|
export declare const WorkerMessageSchema: ZodObject<{
|
|
3668
3786
|
id: ZodString;
|
|
3669
3787
|
type: ZodEnum<{
|
|
3670
|
-
error: "error";
|
|
3671
3788
|
status: "status";
|
|
3789
|
+
error: "error";
|
|
3672
3790
|
request: "request";
|
|
3673
3791
|
response: "response";
|
|
3674
3792
|
heartbeat: "heartbeat";
|
|
3675
3793
|
}>;
|
|
3676
3794
|
action: ZodEnum<{
|
|
3677
|
-
error: "error";
|
|
3678
3795
|
status: "status";
|
|
3796
|
+
error: "error";
|
|
3679
3797
|
config: "config";
|
|
3680
3798
|
init: "init";
|
|
3681
3799
|
process: "process";
|
|
@@ -4096,11 +4214,11 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
4096
4214
|
Custom: "Custom";
|
|
4097
4215
|
}>>;
|
|
4098
4216
|
purpose: ZodOptional<ZodEnum<{
|
|
4217
|
+
Other: "Other";
|
|
4099
4218
|
Testing: "Testing";
|
|
4100
4219
|
Scraping: "Scraping";
|
|
4101
4220
|
Monitoring: "Monitoring";
|
|
4102
4221
|
Analytics: "Analytics";
|
|
4103
|
-
Other: "Other";
|
|
4104
4222
|
}>>;
|
|
4105
4223
|
}, $strip>, ZodObject<{
|
|
4106
4224
|
type: ZodLiteral<"Bot">;
|
|
@@ -4132,8 +4250,8 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
4132
4250
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
4133
4251
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
4134
4252
|
signalType: ZodEnum<{
|
|
4135
|
-
pattern: "pattern";
|
|
4136
4253
|
behavioral: "behavioral";
|
|
4254
|
+
pattern: "pattern";
|
|
4137
4255
|
signature: "signature";
|
|
4138
4256
|
network: "network";
|
|
4139
4257
|
fingerprint: "fingerprint";
|
|
@@ -4173,9 +4291,9 @@ export declare const DetectionResponseSchema: ZodObject<{
|
|
|
4173
4291
|
botType: ZodOptional<ZodString>;
|
|
4174
4292
|
agentType: ZodOptional<ZodString>;
|
|
4175
4293
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
4294
|
+
behavioral: "behavioral";
|
|
4176
4295
|
error: "error";
|
|
4177
4296
|
pattern: "pattern";
|
|
4178
|
-
behavioral: "behavioral";
|
|
4179
4297
|
signature: "signature";
|
|
4180
4298
|
network: "network";
|
|
4181
4299
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -4311,11 +4429,11 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
4311
4429
|
Custom: "Custom";
|
|
4312
4430
|
}>>;
|
|
4313
4431
|
purpose: ZodOptional<ZodEnum<{
|
|
4432
|
+
Other: "Other";
|
|
4314
4433
|
Testing: "Testing";
|
|
4315
4434
|
Scraping: "Scraping";
|
|
4316
4435
|
Monitoring: "Monitoring";
|
|
4317
4436
|
Analytics: "Analytics";
|
|
4318
|
-
Other: "Other";
|
|
4319
4437
|
}>>;
|
|
4320
4438
|
}, $strip>, ZodObject<{
|
|
4321
4439
|
type: ZodLiteral<"Bot">;
|
|
@@ -4347,8 +4465,8 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
4347
4465
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
4348
4466
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
4349
4467
|
signalType: ZodEnum<{
|
|
4350
|
-
pattern: "pattern";
|
|
4351
4468
|
behavioral: "behavioral";
|
|
4469
|
+
pattern: "pattern";
|
|
4352
4470
|
signature: "signature";
|
|
4353
4471
|
network: "network";
|
|
4354
4472
|
fingerprint: "fingerprint";
|
|
@@ -4388,9 +4506,9 @@ export declare const BatchDetectionResponseSchema: ZodObject<{
|
|
|
4388
4506
|
botType: ZodOptional<ZodString>;
|
|
4389
4507
|
agentType: ZodOptional<ZodString>;
|
|
4390
4508
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
4509
|
+
behavioral: "behavioral";
|
|
4391
4510
|
error: "error";
|
|
4392
4511
|
pattern: "pattern";
|
|
4393
|
-
behavioral: "behavioral";
|
|
4394
4512
|
signature: "signature";
|
|
4395
4513
|
network: "network";
|
|
4396
4514
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -4531,8 +4649,8 @@ export declare const EventTrackingRequestSchema: ZodObject<{
|
|
|
4531
4649
|
timestamp: ZodOptional<ZodString>;
|
|
4532
4650
|
referrer: ZodOptional<ZodString>;
|
|
4533
4651
|
method: ZodOptional<ZodEnum<{
|
|
4534
|
-
GET: "GET";
|
|
4535
4652
|
POST: "POST";
|
|
4653
|
+
GET: "GET";
|
|
4536
4654
|
PUT: "PUT";
|
|
4537
4655
|
DELETE: "DELETE";
|
|
4538
4656
|
PATCH: "PATCH";
|
|
@@ -4714,11 +4832,11 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
4714
4832
|
Custom: "Custom";
|
|
4715
4833
|
}>>;
|
|
4716
4834
|
purpose: ZodOptional<ZodEnum<{
|
|
4835
|
+
Other: "Other";
|
|
4717
4836
|
Testing: "Testing";
|
|
4718
4837
|
Scraping: "Scraping";
|
|
4719
4838
|
Monitoring: "Monitoring";
|
|
4720
4839
|
Analytics: "Analytics";
|
|
4721
|
-
Other: "Other";
|
|
4722
4840
|
}>>;
|
|
4723
4841
|
}, $strip>, ZodObject<{
|
|
4724
4842
|
type: ZodLiteral<"Bot">;
|
|
@@ -4750,8 +4868,8 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
4750
4868
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
4751
4869
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
4752
4870
|
signalType: ZodEnum<{
|
|
4753
|
-
pattern: "pattern";
|
|
4754
4871
|
behavioral: "behavioral";
|
|
4872
|
+
pattern: "pattern";
|
|
4755
4873
|
signature: "signature";
|
|
4756
4874
|
network: "network";
|
|
4757
4875
|
fingerprint: "fingerprint";
|
|
@@ -4791,9 +4909,9 @@ export declare const EventTrackingResponseSchema: ZodObject<{
|
|
|
4791
4909
|
botType: ZodOptional<ZodString>;
|
|
4792
4910
|
agentType: ZodOptional<ZodString>;
|
|
4793
4911
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
4912
|
+
behavioral: "behavioral";
|
|
4794
4913
|
error: "error";
|
|
4795
4914
|
pattern: "pattern";
|
|
4796
|
-
behavioral: "behavioral";
|
|
4797
4915
|
signature: "signature";
|
|
4798
4916
|
network: "network";
|
|
4799
4917
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -4897,8 +5015,8 @@ export declare const BatchEventRequestSchema: ZodObject<{
|
|
|
4897
5015
|
timestamp: ZodOptional<ZodString>;
|
|
4898
5016
|
referrer: ZodOptional<ZodString>;
|
|
4899
5017
|
method: ZodOptional<ZodEnum<{
|
|
4900
|
-
GET: "GET";
|
|
4901
5018
|
POST: "POST";
|
|
5019
|
+
GET: "GET";
|
|
4902
5020
|
PUT: "PUT";
|
|
4903
5021
|
DELETE: "DELETE";
|
|
4904
5022
|
PATCH: "PATCH";
|
|
@@ -5089,11 +5207,11 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
5089
5207
|
Custom: "Custom";
|
|
5090
5208
|
}>>;
|
|
5091
5209
|
purpose: ZodOptional<ZodEnum<{
|
|
5210
|
+
Other: "Other";
|
|
5092
5211
|
Testing: "Testing";
|
|
5093
5212
|
Scraping: "Scraping";
|
|
5094
5213
|
Monitoring: "Monitoring";
|
|
5095
5214
|
Analytics: "Analytics";
|
|
5096
|
-
Other: "Other";
|
|
5097
5215
|
}>>;
|
|
5098
5216
|
}, $strip>, ZodObject<{
|
|
5099
5217
|
type: ZodLiteral<"Bot">;
|
|
@@ -5125,8 +5243,8 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
5125
5243
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
5126
5244
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
5127
5245
|
signalType: ZodEnum<{
|
|
5128
|
-
pattern: "pattern";
|
|
5129
5246
|
behavioral: "behavioral";
|
|
5247
|
+
pattern: "pattern";
|
|
5130
5248
|
signature: "signature";
|
|
5131
5249
|
network: "network";
|
|
5132
5250
|
fingerprint: "fingerprint";
|
|
@@ -5166,9 +5284,9 @@ export declare const BatchEventResponseSchema: ZodObject<{
|
|
|
5166
5284
|
botType: ZodOptional<ZodString>;
|
|
5167
5285
|
agentType: ZodOptional<ZodString>;
|
|
5168
5286
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
5287
|
+
behavioral: "behavioral";
|
|
5169
5288
|
error: "error";
|
|
5170
5289
|
pattern: "pattern";
|
|
5171
|
-
behavioral: "behavioral";
|
|
5172
5290
|
signature: "signature";
|
|
5173
5291
|
network: "network";
|
|
5174
5292
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -5625,11 +5743,11 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
5625
5743
|
Custom: "Custom";
|
|
5626
5744
|
}>>;
|
|
5627
5745
|
purpose: ZodOptional<ZodEnum<{
|
|
5746
|
+
Other: "Other";
|
|
5628
5747
|
Testing: "Testing";
|
|
5629
5748
|
Scraping: "Scraping";
|
|
5630
5749
|
Monitoring: "Monitoring";
|
|
5631
5750
|
Analytics: "Analytics";
|
|
5632
|
-
Other: "Other";
|
|
5633
5751
|
}>>;
|
|
5634
5752
|
}, $strip>, ZodObject<{
|
|
5635
5753
|
type: ZodLiteral<"Bot">;
|
|
@@ -5661,8 +5779,8 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
5661
5779
|
detectedPatterns: ZodOptional<ZodArray<ZodString>>;
|
|
5662
5780
|
signals: ZodDefault<ZodArray<ZodObject<{
|
|
5663
5781
|
signalType: ZodEnum<{
|
|
5664
|
-
pattern: "pattern";
|
|
5665
5782
|
behavioral: "behavioral";
|
|
5783
|
+
pattern: "pattern";
|
|
5666
5784
|
signature: "signature";
|
|
5667
5785
|
network: "network";
|
|
5668
5786
|
fingerprint: "fingerprint";
|
|
@@ -5702,9 +5820,9 @@ export declare const DetectionEventSchema: ZodObject<{
|
|
|
5702
5820
|
botType: ZodOptional<ZodString>;
|
|
5703
5821
|
agentType: ZodOptional<ZodString>;
|
|
5704
5822
|
verificationMethod: ZodOptional<ZodEnum<{
|
|
5823
|
+
behavioral: "behavioral";
|
|
5705
5824
|
error: "error";
|
|
5706
5825
|
pattern: "pattern";
|
|
5707
|
-
behavioral: "behavioral";
|
|
5708
5826
|
signature: "signature";
|
|
5709
5827
|
network: "network";
|
|
5710
5828
|
mcp_i_handshake: "mcp_i_handshake";
|
|
@@ -5811,9 +5929,9 @@ export declare const StatsUpdateEventSchema: ZodObject<{
|
|
|
5811
5929
|
projectId: ZodOptional<ZodString>;
|
|
5812
5930
|
data: ZodObject<{
|
|
5813
5931
|
period: ZodEnum<{
|
|
5932
|
+
minute: "minute";
|
|
5814
5933
|
hour: "hour";
|
|
5815
5934
|
day: "day";
|
|
5816
|
-
minute: "minute";
|
|
5817
5935
|
}>;
|
|
5818
5936
|
totalRequests: ZodNumber;
|
|
5819
5937
|
agentsDetected: ZodNumber;
|
|
@@ -6539,11 +6657,11 @@ export interface FingerprintTestResponse {
|
|
|
6539
6657
|
//#region src/types/fingerprint.d.ts
|
|
6540
6658
|
export declare const IntegrationTypeSchema: ZodEnum<{
|
|
6541
6659
|
wasm: "wasm";
|
|
6660
|
+
express: "express";
|
|
6542
6661
|
pixel: "pixel";
|
|
6543
6662
|
middleware: "middleware";
|
|
6544
6663
|
beacon: "beacon";
|
|
6545
6664
|
noscript: "noscript";
|
|
6546
|
-
express: "express";
|
|
6547
6665
|
edge: "edge";
|
|
6548
6666
|
}>;
|
|
6549
6667
|
export type IntegrationType = output<typeof IntegrationTypeSchema>;
|
|
@@ -6662,11 +6780,11 @@ export declare const CollectedDataSchema: ZodObject<{
|
|
|
6662
6780
|
testId: ZodOptional<ZodString>;
|
|
6663
6781
|
integrationType: ZodEnum<{
|
|
6664
6782
|
wasm: "wasm";
|
|
6783
|
+
express: "express";
|
|
6665
6784
|
pixel: "pixel";
|
|
6666
6785
|
middleware: "middleware";
|
|
6667
6786
|
beacon: "beacon";
|
|
6668
6787
|
noscript: "noscript";
|
|
6669
|
-
express: "express";
|
|
6670
6788
|
edge: "edge";
|
|
6671
6789
|
}>;
|
|
6672
6790
|
timestamp: ZodDate;
|
|
@@ -6784,11 +6902,11 @@ export declare const CollectedDataSchema: ZodObject<{
|
|
|
6784
6902
|
detectionResults: ZodOptional<ZodObject<{
|
|
6785
6903
|
wouldDetectAs: ZodOptional<ZodRecord<ZodEnum<{
|
|
6786
6904
|
wasm: "wasm";
|
|
6905
|
+
express: "express";
|
|
6787
6906
|
pixel: "pixel";
|
|
6788
6907
|
middleware: "middleware";
|
|
6789
6908
|
beacon: "beacon";
|
|
6790
6909
|
noscript: "noscript";
|
|
6791
|
-
express: "express";
|
|
6792
6910
|
edge: "edge";
|
|
6793
6911
|
}> & $partial, ZodObject<{
|
|
6794
6912
|
isAgent: ZodBoolean;
|
|
@@ -6810,8 +6928,8 @@ export declare const DetectionRuleSchema: ZodObject<{
|
|
|
6810
6928
|
name: ZodString;
|
|
6811
6929
|
description: ZodString;
|
|
6812
6930
|
category: ZodEnum<{
|
|
6813
|
-
pattern: "pattern";
|
|
6814
6931
|
behavioral: "behavioral";
|
|
6932
|
+
pattern: "pattern";
|
|
6815
6933
|
signature: "signature";
|
|
6816
6934
|
network: "network";
|
|
6817
6935
|
fingerprint: "fingerprint";
|
|
@@ -6820,13 +6938,13 @@ export declare const DetectionRuleSchema: ZodObject<{
|
|
|
6820
6938
|
field: ZodString;
|
|
6821
6939
|
operator: ZodEnum<{
|
|
6822
6940
|
in: "in";
|
|
6823
|
-
range: "range";
|
|
6824
|
-
matches: "matches";
|
|
6825
6941
|
equals: "equals";
|
|
6826
6942
|
notEquals: "notEquals";
|
|
6827
6943
|
contains: "contains";
|
|
6828
6944
|
notContains: "notContains";
|
|
6945
|
+
matches: "matches";
|
|
6829
6946
|
notIn: "notIn";
|
|
6947
|
+
range: "range";
|
|
6830
6948
|
exists: "exists";
|
|
6831
6949
|
notExists: "notExists";
|
|
6832
6950
|
}>;
|
|
@@ -6839,11 +6957,11 @@ export declare const DetectionRuleSchema: ZodObject<{
|
|
|
6839
6957
|
priority: ZodDefault<ZodNumber>;
|
|
6840
6958
|
applicableIntegrations: ZodArray<ZodEnum<{
|
|
6841
6959
|
wasm: "wasm";
|
|
6960
|
+
express: "express";
|
|
6842
6961
|
pixel: "pixel";
|
|
6843
6962
|
middleware: "middleware";
|
|
6844
6963
|
beacon: "beacon";
|
|
6845
6964
|
noscript: "noscript";
|
|
6846
|
-
express: "express";
|
|
6847
6965
|
edge: "edge";
|
|
6848
6966
|
}>>;
|
|
6849
6967
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -6887,8 +7005,8 @@ export declare const AgentProfileSchema: ZodObject<{
|
|
|
6887
7005
|
name: ZodString;
|
|
6888
7006
|
description: ZodString;
|
|
6889
7007
|
category: ZodEnum<{
|
|
6890
|
-
pattern: "pattern";
|
|
6891
7008
|
behavioral: "behavioral";
|
|
7009
|
+
pattern: "pattern";
|
|
6892
7010
|
signature: "signature";
|
|
6893
7011
|
network: "network";
|
|
6894
7012
|
fingerprint: "fingerprint";
|
|
@@ -6897,13 +7015,13 @@ export declare const AgentProfileSchema: ZodObject<{
|
|
|
6897
7015
|
field: ZodString;
|
|
6898
7016
|
operator: ZodEnum<{
|
|
6899
7017
|
in: "in";
|
|
6900
|
-
range: "range";
|
|
6901
|
-
matches: "matches";
|
|
6902
7018
|
equals: "equals";
|
|
6903
7019
|
notEquals: "notEquals";
|
|
6904
7020
|
contains: "contains";
|
|
6905
7021
|
notContains: "notContains";
|
|
7022
|
+
matches: "matches";
|
|
6906
7023
|
notIn: "notIn";
|
|
7024
|
+
range: "range";
|
|
6907
7025
|
exists: "exists";
|
|
6908
7026
|
notExists: "notExists";
|
|
6909
7027
|
}>;
|
|
@@ -6916,11 +7034,11 @@ export declare const AgentProfileSchema: ZodObject<{
|
|
|
6916
7034
|
priority: ZodDefault<ZodNumber>;
|
|
6917
7035
|
applicableIntegrations: ZodArray<ZodEnum<{
|
|
6918
7036
|
wasm: "wasm";
|
|
7037
|
+
express: "express";
|
|
6919
7038
|
pixel: "pixel";
|
|
6920
7039
|
middleware: "middleware";
|
|
6921
7040
|
beacon: "beacon";
|
|
6922
7041
|
noscript: "noscript";
|
|
6923
|
-
express: "express";
|
|
6924
7042
|
edge: "edge";
|
|
6925
7043
|
}>>;
|
|
6926
7044
|
enabled: ZodDefault<ZodBoolean>;
|
|
@@ -7003,11 +7121,11 @@ export declare const FingerprintSearchQuerySchema: ZodObject<{
|
|
|
7003
7121
|
vendor: ZodOptional<ZodString>;
|
|
7004
7122
|
integrationType: ZodOptional<ZodEnum<{
|
|
7005
7123
|
wasm: "wasm";
|
|
7124
|
+
express: "express";
|
|
7006
7125
|
pixel: "pixel";
|
|
7007
7126
|
middleware: "middleware";
|
|
7008
7127
|
beacon: "beacon";
|
|
7009
7128
|
noscript: "noscript";
|
|
7010
|
-
express: "express";
|
|
7011
7129
|
edge: "edge";
|
|
7012
7130
|
}>>;
|
|
7013
7131
|
profileId: ZodOptional<ZodString>;
|
|
@@ -7034,11 +7152,11 @@ export declare const DetectionTestResultSchema: ZodObject<{
|
|
|
7034
7152
|
timestamp: ZodDate;
|
|
7035
7153
|
results: ZodRecord<ZodEnum<{
|
|
7036
7154
|
wasm: "wasm";
|
|
7155
|
+
express: "express";
|
|
7037
7156
|
pixel: "pixel";
|
|
7038
7157
|
middleware: "middleware";
|
|
7039
7158
|
beacon: "beacon";
|
|
7040
7159
|
noscript: "noscript";
|
|
7041
|
-
express: "express";
|
|
7042
7160
|
edge: "edge";
|
|
7043
7161
|
}> & $partial, ZodObject<{
|
|
7044
7162
|
isAgent: ZodBoolean;
|
|
@@ -7068,11 +7186,11 @@ export declare const CollectFingerprintRequestSchema: ZodObject<{
|
|
|
7068
7186
|
testId: ZodOptional<ZodString>;
|
|
7069
7187
|
integrationType: ZodEnum<{
|
|
7070
7188
|
wasm: "wasm";
|
|
7189
|
+
express: "express";
|
|
7071
7190
|
pixel: "pixel";
|
|
7072
7191
|
middleware: "middleware";
|
|
7073
7192
|
beacon: "beacon";
|
|
7074
7193
|
noscript: "noscript";
|
|
7075
|
-
express: "express";
|
|
7076
7194
|
edge: "edge";
|
|
7077
7195
|
}>;
|
|
7078
7196
|
data: ZodAny;
|
|
@@ -7109,11 +7227,11 @@ export declare const TestDetectionRequestSchema: ZodObject<{
|
|
|
7109
7227
|
fingerprintId: ZodString;
|
|
7110
7228
|
integrationTypes: ZodOptional<ZodArray<ZodEnum<{
|
|
7111
7229
|
wasm: "wasm";
|
|
7230
|
+
express: "express";
|
|
7112
7231
|
pixel: "pixel";
|
|
7113
7232
|
middleware: "middleware";
|
|
7114
7233
|
beacon: "beacon";
|
|
7115
7234
|
noscript: "noscript";
|
|
7116
|
-
express: "express";
|
|
7117
7235
|
edge: "edge";
|
|
7118
7236
|
}>>>;
|
|
7119
7237
|
}, $strip>;
|
|
@@ -7859,9 +7977,11 @@ export interface AdminOrganizationSessionAnalytics {
|
|
|
7859
7977
|
aiAgentSessions: number;
|
|
7860
7978
|
botSessions: number;
|
|
7861
7979
|
humanSessions: number;
|
|
7980
|
+
incompleteDataSessions?: number;
|
|
7862
7981
|
aiAgentPercentage: number;
|
|
7863
7982
|
botPercentage: number;
|
|
7864
7983
|
humanPercentage: number;
|
|
7984
|
+
incompleteDataPercentage?: number;
|
|
7865
7985
|
};
|
|
7866
7986
|
patterns: {
|
|
7867
7987
|
peakHours: unknown[];
|
|
@@ -7884,6 +8004,7 @@ export interface AdminSessionIndustryAverages {
|
|
|
7884
8004
|
aiAgentPercentage: number;
|
|
7885
8005
|
botPercentage: number;
|
|
7886
8006
|
humanPercentage: number;
|
|
8007
|
+
incompleteDataPercentage?: number;
|
|
7887
8008
|
};
|
|
7888
8009
|
}
|
|
7889
8010
|
export interface AdminSessionAnomaly {
|
|
@@ -8698,7 +8819,7 @@ export declare const TRAFFIC_TAXONOMY_BUCKETS: readonly ["human", "ai_agent", "a
|
|
|
8698
8819
|
export type TrafficTaxonomyBucket = (typeof TRAFFIC_TAXONOMY_BUCKETS)[number];
|
|
8699
8820
|
export declare const EXCLUSION_BUCKETS: readonly ["vouched", "internal_team", "test_pattern", "shopify_review", "cohort"];
|
|
8700
8821
|
export type ExclusionBucket = (typeof EXCLUSION_BUCKETS)[number];
|
|
8701
|
-
export declare const ADMIN_OVERVIEW_SECTIONS: readonly ["ladder", "installations", "traffic", "lists", "hiAi"];
|
|
8822
|
+
export declare const ADMIN_OVERVIEW_SECTIONS: readonly ["ladder", "installations", "traffic", "lists", "hiAi", "accounts"];
|
|
8702
8823
|
export type AdminOverviewSection = (typeof ADMIN_OVERVIEW_SECTIONS)[number];
|
|
8703
8824
|
export declare const ADMIN_OVERVIEW_CACHE_STATUSES: readonly ["hit", "stale", "miss", "bypass"];
|
|
8704
8825
|
export type AdminOverviewCacheStatus = (typeof ADMIN_OVERVIEW_CACHE_STATUSES)[number];
|
|
@@ -8871,12 +8992,127 @@ export interface AdminOverviewMeta {
|
|
|
8871
8992
|
};
|
|
8872
8993
|
durationsMs: Partial<Record<AdminOverviewSection | 'total', number>>;
|
|
8873
8994
|
}
|
|
8995
|
+
export declare const ADMIN_TRUSTED_METRICS: readonly ["emailsCollected", "users", "signedIn", "onboarded", "activated", "activeUsers", "peopleInOrgs", "installedOrgs"];
|
|
8996
|
+
export type AdminTrustedMetric = (typeof ADMIN_TRUSTED_METRICS)[number];
|
|
8997
|
+
export declare const ADMIN_ORG_EXCLUSION_REASONS: readonly ["test_org", "no_counted_members"];
|
|
8998
|
+
export type AdminOrgExclusionReason = (typeof ADMIN_ORG_EXCLUSION_REASONS)[number];
|
|
8999
|
+
export declare const ADMIN_ACCOUNT_STATUSES: readonly ["counted", "vouched", "internal_team", "test_pattern", "shopify_review", "cohort", "test_org", "no_counted_members"];
|
|
9000
|
+
export type AdminAccountStatus = (typeof ADMIN_ACCOUNT_STATUSES)[number];
|
|
9001
|
+
export interface AdminCountSplit {
|
|
9002
|
+
counted: number;
|
|
9003
|
+
excluded: number;
|
|
9004
|
+
}
|
|
9005
|
+
export interface AdminDailyActive {
|
|
9006
|
+
date: string;
|
|
9007
|
+
counted: number;
|
|
9008
|
+
excluded: number;
|
|
9009
|
+
}
|
|
9010
|
+
export interface AdminActiveUsersSummary {
|
|
9011
|
+
available: boolean;
|
|
9012
|
+
dailyAverage: {
|
|
9013
|
+
counted: number;
|
|
9014
|
+
excluded: number;
|
|
9015
|
+
} | null;
|
|
9016
|
+
daily: AdminDailyActive[];
|
|
9017
|
+
}
|
|
9018
|
+
export interface AdminOverviewAccounts {
|
|
9019
|
+
splits: Record<AdminTrustedMetric, AdminCountSplit | null>;
|
|
9020
|
+
activeUsers: AdminActiveUsersSummary;
|
|
9021
|
+
}
|
|
9022
|
+
export declare const ADMIN_ACCOUNTS_STATUS_FILTERS: readonly ["all", "excluded", "counted", "vouched", "internal_team", "test_pattern", "shopify_review", "cohort", "test_org", "no_counted_members"];
|
|
9023
|
+
export type AdminAccountsStatusFilter = (typeof ADMIN_ACCOUNTS_STATUS_FILTERS)[number];
|
|
9024
|
+
export declare const adminAccountsQuerySchema: ZodObject<{
|
|
9025
|
+
metric: ZodEnum<{
|
|
9026
|
+
emailsCollected: "emailsCollected";
|
|
9027
|
+
users: "users";
|
|
9028
|
+
signedIn: "signedIn";
|
|
9029
|
+
onboarded: "onboarded";
|
|
9030
|
+
activated: "activated";
|
|
9031
|
+
activeUsers: "activeUsers";
|
|
9032
|
+
peopleInOrgs: "peopleInOrgs";
|
|
9033
|
+
installedOrgs: "installedOrgs";
|
|
9034
|
+
}>;
|
|
9035
|
+
window: ZodDefault<ZodEnum<{
|
|
9036
|
+
"7d": "7d";
|
|
9037
|
+
"30d": "30d";
|
|
9038
|
+
"90d": "90d";
|
|
9039
|
+
}>>;
|
|
9040
|
+
status: ZodDefault<ZodEnum<{
|
|
9041
|
+
all: "all";
|
|
9042
|
+
vouched: "vouched";
|
|
9043
|
+
internal_team: "internal_team";
|
|
9044
|
+
test_pattern: "test_pattern";
|
|
9045
|
+
shopify_review: "shopify_review";
|
|
9046
|
+
cohort: "cohort";
|
|
9047
|
+
test_org: "test_org";
|
|
9048
|
+
no_counted_members: "no_counted_members";
|
|
9049
|
+
counted: "counted";
|
|
9050
|
+
excluded: "excluded";
|
|
9051
|
+
}>>;
|
|
9052
|
+
}, $strip>;
|
|
9053
|
+
export type AdminAccountsQuery = output<typeof adminAccountsQuerySchema>;
|
|
9054
|
+
export interface AdminAccountActivity {
|
|
9055
|
+
dashboardActiveDays: number | null;
|
|
9056
|
+
lastDashboardDay: string | null;
|
|
9057
|
+
lastActionAt: string | null;
|
|
9058
|
+
projects: number;
|
|
9059
|
+
detections30d: number;
|
|
9060
|
+
apiKeyLastUsedAt: string | null;
|
|
9061
|
+
}
|
|
9062
|
+
export interface AdminPersonRow {
|
|
9063
|
+
subject: 'person';
|
|
9064
|
+
id: string;
|
|
9065
|
+
email: string;
|
|
9066
|
+
name: string | null;
|
|
9067
|
+
organizationId: string | null;
|
|
9068
|
+
organizationName: string | null;
|
|
9069
|
+
status: AdminAccountStatus;
|
|
9070
|
+
createdAt: string;
|
|
9071
|
+
lastActiveAt: string | null;
|
|
9072
|
+
activity: AdminAccountActivity;
|
|
9073
|
+
}
|
|
9074
|
+
export interface AdminLeadRow {
|
|
9075
|
+
subject: 'lead';
|
|
9076
|
+
id: string;
|
|
9077
|
+
email: string;
|
|
9078
|
+
status: AdminAccountStatus;
|
|
9079
|
+
createdAt: string;
|
|
9080
|
+
}
|
|
9081
|
+
export interface AdminOrgRow {
|
|
9082
|
+
subject: 'org';
|
|
9083
|
+
id: string;
|
|
9084
|
+
name: string;
|
|
9085
|
+
status: AdminAccountStatus;
|
|
9086
|
+
members: AdminCountSplit;
|
|
9087
|
+
createdAt: string;
|
|
9088
|
+
lastActiveAt: string | null;
|
|
9089
|
+
activity: AdminAccountActivity;
|
|
9090
|
+
}
|
|
9091
|
+
export type AdminAccountRow = AdminPersonRow | AdminLeadRow | AdminOrgRow;
|
|
9092
|
+
export interface AdminAccountsResponse {
|
|
9093
|
+
metric: AdminTrustedMetric;
|
|
9094
|
+
window: AdminOverviewWindow;
|
|
9095
|
+
available: boolean;
|
|
9096
|
+
rows: AdminAccountRow[];
|
|
9097
|
+
status: AdminAccountsStatusFilter;
|
|
9098
|
+
total: number;
|
|
9099
|
+
matching: number;
|
|
9100
|
+
split: AdminCountSplit;
|
|
9101
|
+
byStatus: Partial<Record<AdminAccountStatus, number>>;
|
|
9102
|
+
truncated: boolean;
|
|
9103
|
+
dashboardActivity: {
|
|
9104
|
+
available: boolean;
|
|
9105
|
+
};
|
|
9106
|
+
warnings: string[];
|
|
9107
|
+
generatedAt: string;
|
|
9108
|
+
}
|
|
8874
9109
|
export interface AdminOverviewResponse {
|
|
8875
9110
|
ladder: AdminOverviewLadder;
|
|
8876
9111
|
installations: AdminOverviewInstallations;
|
|
8877
9112
|
traffic: AdminOverviewTraffic;
|
|
8878
9113
|
lists: AdminOverviewLists;
|
|
8879
9114
|
hiAi: AdminOverviewHiAi;
|
|
9115
|
+
accounts: AdminOverviewAccounts;
|
|
8880
9116
|
meta: AdminOverviewMeta;
|
|
8881
9117
|
}
|
|
8882
9118
|
//#endregion
|
|
@@ -8962,7 +9198,6 @@ export declare const DEFAULT_ENV_VARS: {
|
|
|
8962
9198
|
readonly AGENTSHIELD_SECRET_KEY: "";
|
|
8963
9199
|
readonly AGENTSHIELD_PIXEL_ID: "";
|
|
8964
9200
|
readonly AGENTSHIELD_API_ENDPOINT: "https://api.agentshield.ai";
|
|
8965
|
-
readonly AGENTSHIELD_WASM_PATH: "/wasm/agentshield_wasm_bg.wasm";
|
|
8966
9201
|
readonly AGENTSHIELD_CACHE_TTL: "3600";
|
|
8967
9202
|
readonly AGENTSHIELD_DEBUG: "false";
|
|
8968
9203
|
readonly AGENTSHIELD_LOG_LEVEL: "info";
|
|
@@ -9131,6 +9366,8 @@ export declare const BARE_ERRORS: {
|
|
|
9131
9366
|
readonly BARE_INVALID_DATE_RANGE: "INVALID_DATE_RANGE";
|
|
9132
9367
|
readonly BARE_INVALID_DATE: "INVALID_DATE";
|
|
9133
9368
|
readonly BARE_UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
9369
|
+
readonly BARE_NOT_FOUND: "NOT_FOUND";
|
|
9370
|
+
readonly BARE_FORBIDDEN: "FORBIDDEN";
|
|
9134
9371
|
};
|
|
9135
9372
|
export declare const LOWERCASE_ERRORS: {
|
|
9136
9373
|
readonly LOWERCASE_INVALID_JSON: "invalid_json";
|
|
@@ -9240,7 +9477,41 @@ export declare const KYAOS_PROTOCOL_ERRORS: {
|
|
|
9240
9477
|
readonly KYAOS_SLASH_SESSION_MISMATCH: "kyaos/session-mismatch";
|
|
9241
9478
|
readonly KYAOS_SLASH_POLICY_UNAVAILABLE: "kyaos/policy-unavailable";
|
|
9242
9479
|
};
|
|
9480
|
+
export declare const GATEWAY_VAULT_ERRORS: {
|
|
9481
|
+
readonly MALFORMED_REQUEST_BODY: "MALFORMED_REQUEST_BODY";
|
|
9482
|
+
readonly GATEWAY_NOT_CONFIGURED: "GATEWAY_NOT_CONFIGURED";
|
|
9483
|
+
readonly INVALID_ASSERTION: "INVALID_ASSERTION";
|
|
9484
|
+
readonly INVALID_SIGNATURE: "INVALID_SIGNATURE";
|
|
9485
|
+
readonly ASSERTION_EXPIRED: "ASSERTION_EXPIRED";
|
|
9486
|
+
readonly ASSERTION_REPLAYED: "ASSERTION_REPLAYED";
|
|
9487
|
+
readonly PROJECT_MISMATCH: "PROJECT_MISMATCH";
|
|
9488
|
+
readonly ISSUER_MISMATCH: "ISSUER_MISMATCH";
|
|
9489
|
+
readonly USER_DID_MISMATCH: "USER_DID_MISMATCH";
|
|
9490
|
+
readonly TOOL_NAME_MISMATCH: "TOOL_NAME_MISMATCH";
|
|
9491
|
+
readonly SESSION_ID_MISMATCH: "SESSION_ID_MISMATCH";
|
|
9492
|
+
readonly NOT_AUTHORIZED: "NOT_AUTHORIZED";
|
|
9493
|
+
readonly CREDENTIALS_NOT_CONFIGURED: "CREDENTIALS_NOT_CONFIGURED";
|
|
9494
|
+
readonly OAUTH_EXPIRED: "OAUTH_EXPIRED";
|
|
9495
|
+
};
|
|
9496
|
+
export declare const VAULT_ERRORS: {
|
|
9497
|
+
readonly NO_AGENT_KEY: "NO_AGENT_KEY";
|
|
9498
|
+
};
|
|
9243
9499
|
export declare const ERROR_CODES: {
|
|
9500
|
+
readonly NO_AGENT_KEY: "NO_AGENT_KEY";
|
|
9501
|
+
readonly MALFORMED_REQUEST_BODY: "MALFORMED_REQUEST_BODY";
|
|
9502
|
+
readonly GATEWAY_NOT_CONFIGURED: "GATEWAY_NOT_CONFIGURED";
|
|
9503
|
+
readonly INVALID_ASSERTION: "INVALID_ASSERTION";
|
|
9504
|
+
readonly INVALID_SIGNATURE: "INVALID_SIGNATURE";
|
|
9505
|
+
readonly ASSERTION_EXPIRED: "ASSERTION_EXPIRED";
|
|
9506
|
+
readonly ASSERTION_REPLAYED: "ASSERTION_REPLAYED";
|
|
9507
|
+
readonly PROJECT_MISMATCH: "PROJECT_MISMATCH";
|
|
9508
|
+
readonly ISSUER_MISMATCH: "ISSUER_MISMATCH";
|
|
9509
|
+
readonly USER_DID_MISMATCH: "USER_DID_MISMATCH";
|
|
9510
|
+
readonly TOOL_NAME_MISMATCH: "TOOL_NAME_MISMATCH";
|
|
9511
|
+
readonly SESSION_ID_MISMATCH: "SESSION_ID_MISMATCH";
|
|
9512
|
+
readonly NOT_AUTHORIZED: "NOT_AUTHORIZED";
|
|
9513
|
+
readonly CREDENTIALS_NOT_CONFIGURED: "CREDENTIALS_NOT_CONFIGURED";
|
|
9514
|
+
readonly OAUTH_EXPIRED: "OAUTH_EXPIRED";
|
|
9244
9515
|
readonly KYAOS_SLASH_ISSUER_FORBIDDEN: "kyaos/issuer-forbidden";
|
|
9245
9516
|
readonly KYAOS_SLASH_PROFILE_VIOLATION: "kyaos/profile-violation";
|
|
9246
9517
|
readonly KYAOS_SLASH_INVALID_SESSION: "kyaos/invalid-session";
|
|
@@ -9344,6 +9615,8 @@ export declare const ERROR_CODES: {
|
|
|
9344
9615
|
readonly BARE_INVALID_DATE_RANGE: "INVALID_DATE_RANGE";
|
|
9345
9616
|
readonly BARE_INVALID_DATE: "INVALID_DATE";
|
|
9346
9617
|
readonly BARE_UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
9618
|
+
readonly BARE_NOT_FOUND: "NOT_FOUND";
|
|
9619
|
+
readonly BARE_FORBIDDEN: "FORBIDDEN";
|
|
9347
9620
|
readonly MISSING_USER_IDENTIFIER: "MISSING_USER_IDENTIFIER";
|
|
9348
9621
|
readonly USER_NOT_FOUND: "USER_NOT_FOUND";
|
|
9349
9622
|
readonly NO_ORGANIZATION: "NO_ORGANIZATION";
|
|
@@ -9954,10 +10227,10 @@ export declare const LinearActivityObservationSummarySchema: ZodObject<{
|
|
|
9954
10227
|
result: ZodEnum<{
|
|
9955
10228
|
absent: "absent";
|
|
9956
10229
|
rejected: "rejected";
|
|
10230
|
+
unavailable: "unavailable";
|
|
9957
10231
|
delivered: "delivered";
|
|
9958
10232
|
uncertain: "uncertain";
|
|
9959
10233
|
mismatch: "mismatch";
|
|
9960
|
-
unavailable: "unavailable";
|
|
9961
10234
|
}>;
|
|
9962
10235
|
observedAt: ZodString;
|
|
9963
10236
|
httpStatus: ZodNullable<ZodNumber>;
|
|
@@ -9998,10 +10271,10 @@ export declare const LinearObsoleteActivitySchema: ZodObject<{
|
|
|
9998
10271
|
result: ZodEnum<{
|
|
9999
10272
|
absent: "absent";
|
|
10000
10273
|
rejected: "rejected";
|
|
10274
|
+
unavailable: "unavailable";
|
|
10001
10275
|
delivered: "delivered";
|
|
10002
10276
|
uncertain: "uncertain";
|
|
10003
10277
|
mismatch: "mismatch";
|
|
10004
|
-
unavailable: "unavailable";
|
|
10005
10278
|
}>;
|
|
10006
10279
|
observedAt: ZodString;
|
|
10007
10280
|
httpStatus: ZodNullable<ZodNumber>;
|
|
@@ -10044,10 +10317,10 @@ export declare const LinearObsoleteActivityListSchema: ZodObject<{
|
|
|
10044
10317
|
result: ZodEnum<{
|
|
10045
10318
|
absent: "absent";
|
|
10046
10319
|
rejected: "rejected";
|
|
10320
|
+
unavailable: "unavailable";
|
|
10047
10321
|
delivered: "delivered";
|
|
10048
10322
|
uncertain: "uncertain";
|
|
10049
10323
|
mismatch: "mismatch";
|
|
10050
|
-
unavailable: "unavailable";
|
|
10051
10324
|
}>;
|
|
10052
10325
|
observedAt: ZodString;
|
|
10053
10326
|
httpStatus: ZodNullable<ZodNumber>;
|
|
@@ -10758,9 +11031,9 @@ export declare const FleetPullRequestReceiptSchema: ZodObject<{
|
|
|
10758
11031
|
}, $strict>;
|
|
10759
11032
|
export declare const TaskMailboxResultSchema: ZodObject<{
|
|
10760
11033
|
outcome: ZodEnum<{
|
|
10761
|
-
failed: "failed";
|
|
10762
11034
|
cancelled: "cancelled";
|
|
10763
11035
|
completed: "completed";
|
|
11036
|
+
failed: "failed";
|
|
10764
11037
|
}>;
|
|
10765
11038
|
artifact: ZodOptional<ZodObject<{
|
|
10766
11039
|
schema: ZodLiteral<"kya.fleet.pull-request.v1">;
|
|
@@ -10979,9 +11252,9 @@ export declare const TaskStandingActionSchema: ZodObject<{
|
|
|
10979
11252
|
kind: ZodLiteral<"task.finish">;
|
|
10980
11253
|
outcome: ZodEnum<{
|
|
10981
11254
|
unknown: "unknown";
|
|
10982
|
-
failed: "failed";
|
|
10983
11255
|
cancelled: "cancelled";
|
|
10984
11256
|
completed: "completed";
|
|
11257
|
+
failed: "failed";
|
|
10985
11258
|
}>;
|
|
10986
11259
|
}, $strict>, ZodObject<{
|
|
10987
11260
|
kind: ZodLiteral<"github.commit">;
|
|
@@ -11013,9 +11286,9 @@ export declare const TaskStandingReconcileSchema: ZodObject<{
|
|
|
11013
11286
|
kind: ZodLiteral<"task.finish">;
|
|
11014
11287
|
outcome: ZodEnum<{
|
|
11015
11288
|
unknown: "unknown";
|
|
11016
|
-
failed: "failed";
|
|
11017
11289
|
cancelled: "cancelled";
|
|
11018
11290
|
completed: "completed";
|
|
11291
|
+
failed: "failed";
|
|
11019
11292
|
}>;
|
|
11020
11293
|
}, $strict>, ZodObject<{
|
|
11021
11294
|
kind: ZodLiteral<"github.commit">;
|
|
@@ -11446,7 +11719,7 @@ export declare const PixelsBulkCreateItemSchema: ZodObject<{
|
|
|
11446
11719
|
domain: ZodOptional<ZodString>;
|
|
11447
11720
|
isActive: ZodDefault<ZodBoolean>;
|
|
11448
11721
|
configuration: ZodOptional<ZodObject<{
|
|
11449
|
-
allowedDomains: ZodDefault<ZodArray<ZodString
|
|
11722
|
+
allowedDomains: ZodDefault<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
11450
11723
|
collectBehavioral: ZodDefault<ZodBoolean>;
|
|
11451
11724
|
enableFingerprinting: ZodDefault<ZodBoolean>;
|
|
11452
11725
|
enableSessionTracking: ZodDefault<ZodBoolean>;
|
|
@@ -11459,7 +11732,7 @@ export declare const PixelsBulkUpdateItemSchema: ZodObject<{
|
|
|
11459
11732
|
domain: ZodOptional<ZodString>;
|
|
11460
11733
|
isActive: ZodOptional<ZodBoolean>;
|
|
11461
11734
|
configuration: ZodOptional<ZodObject<{
|
|
11462
|
-
allowedDomains: ZodOptional<ZodArray<ZodString
|
|
11735
|
+
allowedDomains: ZodOptional<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
11463
11736
|
collectBehavioral: ZodOptional<ZodBoolean>;
|
|
11464
11737
|
enableFingerprinting: ZodOptional<ZodBoolean>;
|
|
11465
11738
|
enableSessionTracking: ZodOptional<ZodBoolean>;
|
|
@@ -11492,7 +11765,7 @@ export declare const PixelsBulkRequestSchema: ZodIntersection<ZodObject<{
|
|
|
11492
11765
|
domain: ZodOptional<ZodString>;
|
|
11493
11766
|
isActive: ZodDefault<ZodBoolean>;
|
|
11494
11767
|
configuration: ZodOptional<ZodObject<{
|
|
11495
|
-
allowedDomains: ZodDefault<ZodArray<ZodString
|
|
11768
|
+
allowedDomains: ZodDefault<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
11496
11769
|
collectBehavioral: ZodDefault<ZodBoolean>;
|
|
11497
11770
|
enableFingerprinting: ZodDefault<ZodBoolean>;
|
|
11498
11771
|
enableSessionTracking: ZodDefault<ZodBoolean>;
|
|
@@ -11507,7 +11780,7 @@ export declare const PixelsBulkRequestSchema: ZodIntersection<ZodObject<{
|
|
|
11507
11780
|
domain: ZodOptional<ZodString>;
|
|
11508
11781
|
isActive: ZodOptional<ZodBoolean>;
|
|
11509
11782
|
configuration: ZodOptional<ZodObject<{
|
|
11510
|
-
allowedDomains: ZodOptional<ZodArray<ZodString
|
|
11783
|
+
allowedDomains: ZodOptional<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
11511
11784
|
collectBehavioral: ZodOptional<ZodBoolean>;
|
|
11512
11785
|
enableFingerprinting: ZodOptional<ZodBoolean>;
|
|
11513
11786
|
enableSessionTracking: ZodOptional<ZodBoolean>;
|
|
@@ -11692,7 +11965,7 @@ export declare const CreatePixelSchema: ZodObject<{
|
|
|
11692
11965
|
configuration: ZodOptional<ZodObject<{
|
|
11693
11966
|
enabled: ZodDefault<ZodBoolean>;
|
|
11694
11967
|
skipPaths: ZodDefault<ZodArray<ZodString>>;
|
|
11695
|
-
allowedDomains: ZodDefault<ZodArray<ZodString
|
|
11968
|
+
allowedDomains: ZodDefault<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
11696
11969
|
blockedAgents: ZodDefault<ZodArray<ZodString>>;
|
|
11697
11970
|
batchSize: ZodDefault<ZodNumber>;
|
|
11698
11971
|
flushInterval: ZodDefault<ZodNumber>;
|
|
@@ -11709,7 +11982,7 @@ export declare const UpdatePixelSchema: ZodObject<{
|
|
|
11709
11982
|
configuration: ZodOptional<ZodObject<{
|
|
11710
11983
|
enabled: ZodDefault<ZodBoolean>;
|
|
11711
11984
|
skipPaths: ZodDefault<ZodArray<ZodString>>;
|
|
11712
|
-
allowedDomains: ZodDefault<ZodArray<ZodString
|
|
11985
|
+
allowedDomains: ZodDefault<ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>>;
|
|
11713
11986
|
blockedAgents: ZodDefault<ZodArray<ZodString>>;
|
|
11714
11987
|
batchSize: ZodDefault<ZodNumber>;
|
|
11715
11988
|
flushInterval: ZodDefault<ZodNumber>;
|
|
@@ -11766,11 +12039,53 @@ export declare const MarketplaceSourceSchema: ZodEnum<{
|
|
|
11766
12039
|
}>;
|
|
11767
12040
|
export type MarketplaceSource = output<typeof MarketplaceSourceSchema>;
|
|
11768
12041
|
export declare const ProvisioningModeSchema: ZodEnum<{
|
|
11769
|
-
observe: "observe";
|
|
11770
12042
|
enforce: "enforce";
|
|
12043
|
+
observe: "observe";
|
|
11771
12044
|
}>;
|
|
11772
12045
|
export type ProvisioningMode = output<typeof ProvisioningModeSchema>;
|
|
12046
|
+
export declare const ProvisioningIdentityProofSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
12047
|
+
type: ZodLiteral<"vercel-oidc">;
|
|
12048
|
+
token: ZodString;
|
|
12049
|
+
}, $strip>, ZodObject<{
|
|
12050
|
+
type: ZodLiteral<"railway-oauth">;
|
|
12051
|
+
accessToken: ZodString;
|
|
12052
|
+
}, $strip>, ZodObject<{
|
|
12053
|
+
type: ZodLiteral<"checkpoint-account-link">;
|
|
12054
|
+
token: ZodString;
|
|
12055
|
+
}, $strip>], "type">;
|
|
12056
|
+
export type ProvisioningIdentityProof = output<typeof ProvisioningIdentityProofSchema>;
|
|
12057
|
+
export declare const ProvisioningAccountLinkRequestSchema: ZodObject<{
|
|
12058
|
+
source: ZodEnum<{
|
|
12059
|
+
vercel: "vercel";
|
|
12060
|
+
shopify: "shopify";
|
|
12061
|
+
netlify: "netlify";
|
|
12062
|
+
railway: "railway";
|
|
12063
|
+
shopware: "shopware";
|
|
12064
|
+
mixer: "mixer";
|
|
12065
|
+
}>;
|
|
12066
|
+
externalId: ZodString;
|
|
12067
|
+
resourceId: ZodOptional<ZodString>;
|
|
12068
|
+
}, $strip>;
|
|
12069
|
+
export type ProvisioningAccountLinkRequest = output<typeof ProvisioningAccountLinkRequestSchema>;
|
|
12070
|
+
export declare const ProvisioningAccountLinkResponseSchema: ZodObject<{
|
|
12071
|
+
identityProof: ZodObject<{
|
|
12072
|
+
type: ZodLiteral<"checkpoint-account-link">;
|
|
12073
|
+
token: ZodString;
|
|
12074
|
+
}, $strip>;
|
|
12075
|
+
expiresIn: ZodLiteral<600>;
|
|
12076
|
+
}, $strip>;
|
|
12077
|
+
export type ProvisioningAccountLinkResponse = output<typeof ProvisioningAccountLinkResponseSchema>;
|
|
11773
12078
|
export declare const ProvisionKeyRequestSchema: ZodObject<{
|
|
12079
|
+
identityProof: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
12080
|
+
type: ZodLiteral<"vercel-oidc">;
|
|
12081
|
+
token: ZodString;
|
|
12082
|
+
}, $strip>, ZodObject<{
|
|
12083
|
+
type: ZodLiteral<"railway-oauth">;
|
|
12084
|
+
accessToken: ZodString;
|
|
12085
|
+
}, $strip>, ZodObject<{
|
|
12086
|
+
type: ZodLiteral<"checkpoint-account-link">;
|
|
12087
|
+
token: ZodString;
|
|
12088
|
+
}, $strip>], "type">>;
|
|
11774
12089
|
source: ZodEnum<{
|
|
11775
12090
|
vercel: "vercel";
|
|
11776
12091
|
shopify: "shopify";
|
|
@@ -11787,8 +12102,8 @@ export declare const ProvisionKeyRequestSchema: ZodObject<{
|
|
|
11787
12102
|
name: ZodOptional<ZodString>;
|
|
11788
12103
|
}, $strip>;
|
|
11789
12104
|
mode: ZodDefault<ZodEnum<{
|
|
11790
|
-
observe: "observe";
|
|
11791
12105
|
enforce: "enforce";
|
|
12106
|
+
observe: "observe";
|
|
11792
12107
|
}>>;
|
|
11793
12108
|
organizationId: ZodOptional<ZodString>;
|
|
11794
12109
|
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
|
|
@@ -11803,6 +12118,16 @@ export declare const ProvisionKeyResponseSchema: ZodObject<{
|
|
|
11803
12118
|
}, $strip>;
|
|
11804
12119
|
export type ProvisionKeyResponse = output<typeof ProvisionKeyResponseSchema>;
|
|
11805
12120
|
export declare const SsoLinkRequestSchema: ZodObject<{
|
|
12121
|
+
identityProof: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
12122
|
+
type: ZodLiteral<"vercel-oidc">;
|
|
12123
|
+
token: ZodString;
|
|
12124
|
+
}, $strip>, ZodObject<{
|
|
12125
|
+
type: ZodLiteral<"railway-oauth">;
|
|
12126
|
+
accessToken: ZodString;
|
|
12127
|
+
}, $strip>, ZodObject<{
|
|
12128
|
+
type: ZodLiteral<"checkpoint-account-link">;
|
|
12129
|
+
token: ZodString;
|
|
12130
|
+
}, $strip>], "type">>;
|
|
11806
12131
|
source: ZodEnum<{
|
|
11807
12132
|
vercel: "vercel";
|
|
11808
12133
|
shopify: "shopify";
|
|
@@ -11853,13 +12178,33 @@ export declare const ProvisioningOrganizationSummarySchema: ZodObject<{
|
|
|
11853
12178
|
}, $strip>;
|
|
11854
12179
|
export type ProvisioningOrganizationSummary = output<typeof ProvisioningOrganizationSummarySchema>;
|
|
11855
12180
|
export declare const ListProvisioningOrganizationsRequestSchema: ZodObject<{
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
12181
|
+
source: ZodOptional<ZodEnum<{
|
|
12182
|
+
vercel: "vercel";
|
|
12183
|
+
shopify: "shopify";
|
|
12184
|
+
netlify: "netlify";
|
|
12185
|
+
railway: "railway";
|
|
12186
|
+
shopware: "shopware";
|
|
12187
|
+
mixer: "mixer";
|
|
12188
|
+
}>>;
|
|
12189
|
+
externalId: ZodOptional<ZodString>;
|
|
12190
|
+
resourceId: ZodOptional<ZodString>;
|
|
12191
|
+
identityProof: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
12192
|
+
type: ZodLiteral<"vercel-oidc">;
|
|
12193
|
+
token: ZodString;
|
|
12194
|
+
}, $strip>, ZodObject<{
|
|
12195
|
+
type: ZodLiteral<"railway-oauth">;
|
|
12196
|
+
accessToken: ZodString;
|
|
12197
|
+
}, $strip>, ZodObject<{
|
|
12198
|
+
type: ZodLiteral<"checkpoint-account-link">;
|
|
12199
|
+
token: ZodString;
|
|
12200
|
+
}, $strip>], "type">>;
|
|
12201
|
+
email: ZodString;
|
|
12202
|
+
}, $strip>;
|
|
12203
|
+
export type ListProvisioningOrganizationsRequest = output<typeof ListProvisioningOrganizationsRequestSchema>;
|
|
12204
|
+
export declare const ListProvisioningOrganizationsResponseSchema: ZodObject<{
|
|
12205
|
+
organizations: ZodArray<ZodObject<{
|
|
12206
|
+
id: ZodString;
|
|
12207
|
+
name: ZodString;
|
|
11863
12208
|
slug: ZodString;
|
|
11864
12209
|
role: ZodEnum<{
|
|
11865
12210
|
admin: "admin";
|
|
@@ -11869,6 +12214,26 @@ export declare const ListProvisioningOrganizationsResponseSchema: ZodObject<{
|
|
|
11869
12214
|
}, $strip>;
|
|
11870
12215
|
export type ListProvisioningOrganizationsResponse = output<typeof ListProvisioningOrganizationsResponseSchema>;
|
|
11871
12216
|
export declare const CreateProvisioningOrganizationRequestSchema: ZodObject<{
|
|
12217
|
+
source: ZodOptional<ZodEnum<{
|
|
12218
|
+
vercel: "vercel";
|
|
12219
|
+
shopify: "shopify";
|
|
12220
|
+
netlify: "netlify";
|
|
12221
|
+
railway: "railway";
|
|
12222
|
+
shopware: "shopware";
|
|
12223
|
+
mixer: "mixer";
|
|
12224
|
+
}>>;
|
|
12225
|
+
externalId: ZodOptional<ZodString>;
|
|
12226
|
+
resourceId: ZodOptional<ZodString>;
|
|
12227
|
+
identityProof: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
12228
|
+
type: ZodLiteral<"vercel-oidc">;
|
|
12229
|
+
token: ZodString;
|
|
12230
|
+
}, $strip>, ZodObject<{
|
|
12231
|
+
type: ZodLiteral<"railway-oauth">;
|
|
12232
|
+
accessToken: ZodString;
|
|
12233
|
+
}, $strip>, ZodObject<{
|
|
12234
|
+
type: ZodLiteral<"checkpoint-account-link">;
|
|
12235
|
+
token: ZodString;
|
|
12236
|
+
}, $strip>], "type">>;
|
|
11872
12237
|
email: ZodString;
|
|
11873
12238
|
name: ZodPipe<ZodString, ZodTransform<string, string>>;
|
|
11874
12239
|
slug: ZodOptional<ZodString>;
|
|
@@ -12148,6 +12513,7 @@ export type AnalyticsOverview = {
|
|
|
12148
12513
|
uniqueHumanSessions?: number;
|
|
12149
12514
|
uniqueBotSessions?: number;
|
|
12150
12515
|
uniqueAIAgentSessions?: number;
|
|
12516
|
+
uniqueIncompleteDataSessions?: number;
|
|
12151
12517
|
mostActiveHour?: {
|
|
12152
12518
|
hour: number;
|
|
12153
12519
|
detections: number;
|
|
@@ -12322,6 +12688,11 @@ export type DashboardStatsResponse = {
|
|
|
12322
12688
|
value: number;
|
|
12323
12689
|
}>;
|
|
12324
12690
|
};
|
|
12691
|
+
sessionBreakdown?: {
|
|
12692
|
+
botSessions: number;
|
|
12693
|
+
humanSessions: number;
|
|
12694
|
+
incompleteDataSessions: number;
|
|
12695
|
+
};
|
|
12325
12696
|
uniqueAgents?: DashboardStatItem;
|
|
12326
12697
|
uniqueUsers?: DashboardStatItem;
|
|
12327
12698
|
};
|
|
@@ -12618,8 +12989,8 @@ export declare const PublicApiHeadersSchema: ZodObject<{
|
|
|
12618
12989
|
export declare const DetectionSignalExposureSchema: ZodObject<{
|
|
12619
12990
|
signals: ZodArray<ZodObject<{
|
|
12620
12991
|
signalType: ZodEnum<{
|
|
12621
|
-
pattern: "pattern";
|
|
12622
12992
|
behavioral: "behavioral";
|
|
12993
|
+
pattern: "pattern";
|
|
12623
12994
|
signature: "signature";
|
|
12624
12995
|
network: "network";
|
|
12625
12996
|
fingerprint: "fingerprint";
|
|
@@ -12678,6 +13049,46 @@ export declare const DetectionSignalExposureSchema: ZodObject<{
|
|
|
12678
13049
|
}, $strip>;
|
|
12679
13050
|
export type DetectionSignalExposure = output<typeof DetectionSignalExposureSchema>;
|
|
12680
13051
|
//#endregion
|
|
13052
|
+
//#region src/api/delegation-lifecycle.d.ts
|
|
13053
|
+
interface DelegationLifecycleHuman {
|
|
13054
|
+
displayName: string | null;
|
|
13055
|
+
email: string | null;
|
|
13056
|
+
emailVerified: boolean;
|
|
13057
|
+
provider: string | null;
|
|
13058
|
+
source: 'linked_oauth_account' | 'grant' | 'unidentified';
|
|
13059
|
+
}
|
|
13060
|
+
interface DelegationLifecycleAuditReference {
|
|
13061
|
+
ledgerId: string;
|
|
13062
|
+
ledgerEpochId: string;
|
|
13063
|
+
sequence: string;
|
|
13064
|
+
eventId: string;
|
|
13065
|
+
entryDigest: string;
|
|
13066
|
+
}
|
|
13067
|
+
interface DelegationLifecycle {
|
|
13068
|
+
projectId: string;
|
|
13069
|
+
delegationId: string;
|
|
13070
|
+
human: DelegationLifecycleHuman;
|
|
13071
|
+
grant: {
|
|
13072
|
+
userDid: string | null;
|
|
13073
|
+
agentDid: string;
|
|
13074
|
+
status: string;
|
|
13075
|
+
issuedAt: string;
|
|
13076
|
+
expiresAt: string | null;
|
|
13077
|
+
revokedAt: string | null;
|
|
13078
|
+
scopes: string[];
|
|
13079
|
+
};
|
|
13080
|
+
issuance: {
|
|
13081
|
+
status: 'recorded' | 'missing' | 'invalid_reference';
|
|
13082
|
+
reference: DelegationLifecycleAuditReference | null;
|
|
13083
|
+
};
|
|
13084
|
+
actions: {
|
|
13085
|
+
count: number;
|
|
13086
|
+
latestAt: string | null;
|
|
13087
|
+
truncated: boolean;
|
|
13088
|
+
};
|
|
13089
|
+
gaps: string[];
|
|
13090
|
+
}
|
|
13091
|
+
//#endregion
|
|
12681
13092
|
//#region src/api/fingerprint.d.ts
|
|
12682
13093
|
declare const ClientDetectionSchema$1: ZodObject<{
|
|
12683
13094
|
webdriver: ZodOptional<ZodBoolean>;
|
|
@@ -13111,6 +13522,7 @@ export declare const ShopifyStatsResponseSchema: ZodObject<{
|
|
|
13111
13522
|
allowedRequests: ZodNumber;
|
|
13112
13523
|
crawlerSessions: ZodOptional<ZodNumber>;
|
|
13113
13524
|
humanSessions: ZodOptional<ZodNumber>;
|
|
13525
|
+
unidentifiedSessions: ZodOptional<ZodNumber>;
|
|
13114
13526
|
threatLevel: ZodEnum<{
|
|
13115
13527
|
low: "low";
|
|
13116
13528
|
medium: "medium";
|
|
@@ -13896,38 +14308,6 @@ export declare function claudeRuntimeLabel(userAgent: string | null | undefined,
|
|
|
13896
14308
|
export declare function refineClaudeDisplayLabel<T extends string | null | undefined>(displayName: T, userAgent: string | null | undefined, runtimeSurface?: string | null): T | string;
|
|
13897
14309
|
export declare function refineSessionGrainClaudeLabel<T extends string | null | undefined>(displayName: T, runtimeSurface: string | null | undefined): T | string;
|
|
13898
14310
|
//#endregion
|
|
13899
|
-
//#region src/utils/client-ip.d.ts
|
|
13900
|
-
export type ClientIpSource = 'explicit' | 'cf-connecting-ip' | 'x-vercel-forwarded-for' | 'x-forwarded-for' | 'x-real-ip' | 'framework' | 'socket' | 'none';
|
|
13901
|
-
export interface ClientIpResolution {
|
|
13902
|
-
ip: string | null;
|
|
13903
|
-
source: ClientIpSource;
|
|
13904
|
-
trusted: boolean;
|
|
13905
|
-
}
|
|
13906
|
-
export type ClientIpTrustPolicy = {
|
|
13907
|
-
platform: 'vercel';
|
|
13908
|
-
} | {
|
|
13909
|
-
platform: 'cloudflare';
|
|
13910
|
-
} | {
|
|
13911
|
-
platform: 'trusted-proxy';
|
|
13912
|
-
trustedHops: number;
|
|
13913
|
-
} | {
|
|
13914
|
-
platform: 'direct';
|
|
13915
|
-
};
|
|
13916
|
-
export type ClientIpHeaderValue = string | readonly string[] | undefined;
|
|
13917
|
-
export type ClientIpHeaders = Headers | Record<string, ClientIpHeaderValue>;
|
|
13918
|
-
export interface ResolveClientIpInput {
|
|
13919
|
-
headers: ClientIpHeaders;
|
|
13920
|
-
directAddress?: string | null;
|
|
13921
|
-
frameworkAddress?: string | null;
|
|
13922
|
-
explicitAddress?: string | null;
|
|
13923
|
-
explicitAddressTrusted?: boolean;
|
|
13924
|
-
policy: ClientIpTrustPolicy;
|
|
13925
|
-
}
|
|
13926
|
-
export declare function parseIpv6(value: string): number[] | null;
|
|
13927
|
-
export declare function compressIpv6(groups: number[]): string;
|
|
13928
|
-
export declare function normalizeClientIp(raw: string | null | undefined): string | null;
|
|
13929
|
-
export declare function resolveClientIp(input: ResolveClientIpInput): ClientIpResolution;
|
|
13930
|
-
//#endregion
|
|
13931
14311
|
//#region src/utils/bot-signals.d.ts
|
|
13932
14312
|
export type BotSignalsSource = 'cloudflare-bot-management' | 'explicit' | 'none';
|
|
13933
14313
|
export interface BotSignalsResolution {
|
|
@@ -13968,6 +14348,27 @@ export declare function resolveBotSignals(input: ResolveBotSignalsInput): BotSig
|
|
|
13968
14348
|
export declare const ipAddressSchema: ZodUnion<readonly [ZodIPv4, ZodIPv6]>;
|
|
13969
14349
|
export declare const callbackSchema: ZodCustom<(...args: never[]) => unknown, (...args: never[]) => unknown>;
|
|
13970
14350
|
//#endregion
|
|
14351
|
+
//#region src/utils/allowed-domains.d.ts
|
|
14352
|
+
export declare const MAX_ALLOWED_DOMAIN_LENGTH = 300;
|
|
14353
|
+
export declare const MAX_ALLOWED_DOMAINS = 1000;
|
|
14354
|
+
export declare function normalizeAllowedDomainForWrite(entry: string): {
|
|
14355
|
+
ok: true;
|
|
14356
|
+
value: string;
|
|
14357
|
+
} | {
|
|
14358
|
+
ok: false;
|
|
14359
|
+
error: string;
|
|
14360
|
+
};
|
|
14361
|
+
export declare function normalizeStoredAllowedDomain(entry: unknown): string | undefined;
|
|
14362
|
+
export declare function hostMatchesAllowedDomains(hostname: string, allowedDomains: unknown[]): boolean;
|
|
14363
|
+
export declare function normalizeAllowedDomainList(entries: readonly string[]): {
|
|
14364
|
+
values: string[];
|
|
14365
|
+
errors: Array<{
|
|
14366
|
+
index: number;
|
|
14367
|
+
message: string;
|
|
14368
|
+
}>;
|
|
14369
|
+
};
|
|
14370
|
+
export declare const AllowedDomainsSchema: ZodPipe<ZodArray<ZodString>, ZodTransform<string[], string[]>>;
|
|
14371
|
+
//#endregion
|
|
13971
14372
|
//#region src/utils/correlation-id.d.ts
|
|
13972
14373
|
export declare const CORRELATION_ID_HEADER = "x-kya-correlation-id";
|
|
13973
14374
|
export declare const CorrelationIdSchema: ZodString;
|
|
@@ -14660,8 +15061,8 @@ export declare const ConsentCapabilitySchema: ZodObject<{
|
|
|
14660
15061
|
label: ZodString;
|
|
14661
15062
|
description: ZodString;
|
|
14662
15063
|
icon: ZodEnum<{
|
|
14663
|
-
key: "key";
|
|
14664
15064
|
user: "user";
|
|
15065
|
+
key: "key";
|
|
14665
15066
|
search: "search";
|
|
14666
15067
|
send: "send";
|
|
14667
15068
|
package: "package";
|
|
@@ -14696,8 +15097,8 @@ export declare const ConsentCapabilityGroupSchema: ZodObject<{
|
|
|
14696
15097
|
label: ZodString;
|
|
14697
15098
|
description: ZodString;
|
|
14698
15099
|
icon: ZodEnum<{
|
|
14699
|
-
key: "key";
|
|
14700
15100
|
user: "user";
|
|
15101
|
+
key: "key";
|
|
14701
15102
|
search: "search";
|
|
14702
15103
|
send: "send";
|
|
14703
15104
|
package: "package";
|
|
@@ -14735,6 +15136,27 @@ export declare const ConsentAgentMetadataSchema: ZodObject<{
|
|
|
14735
15136
|
connectedAt: ZodOptional<ZodString>;
|
|
14736
15137
|
}, $strip>;
|
|
14737
15138
|
type ConsentAgentMetadata = output<typeof ConsentAgentMetadataSchema>;
|
|
15139
|
+
export declare const ConsentInputCopySchema: ZodObject<{
|
|
15140
|
+
label: ZodOptional<ZodString>;
|
|
15141
|
+
hint: ZodOptional<ZodString>;
|
|
15142
|
+
}, $strip>;
|
|
15143
|
+
export declare const ConsentSignInCopySchema: ZodObject<{
|
|
15144
|
+
email: ZodOptional<ZodObject<{
|
|
15145
|
+
label: ZodOptional<ZodString>;
|
|
15146
|
+
hint: ZodOptional<ZodString>;
|
|
15147
|
+
}, $strip>>;
|
|
15148
|
+
password: ZodOptional<ZodObject<{
|
|
15149
|
+
label: ZodOptional<ZodString>;
|
|
15150
|
+
hint: ZodOptional<ZodString>;
|
|
15151
|
+
}, $strip>>;
|
|
15152
|
+
rpps: ZodOptional<ZodObject<{
|
|
15153
|
+
label: ZodOptional<ZodString>;
|
|
15154
|
+
hint: ZodOptional<ZodString>;
|
|
15155
|
+
prompt: ZodOptional<ZodString>;
|
|
15156
|
+
}, $strip>>;
|
|
15157
|
+
}, $strip>;
|
|
15158
|
+
type ConsentSignInCopy = output<typeof ConsentSignInCopySchema>;
|
|
15159
|
+
export declare const ConsentScopeLabelsSchema: ZodRecord<ZodString, ZodString>;
|
|
14738
15160
|
export declare const ConsentConfigSchema: ZodObject<{
|
|
14739
15161
|
branding: ZodOptional<ZodObject<{
|
|
14740
15162
|
primaryColor: ZodOptional<ZodString>;
|
|
@@ -14792,8 +15214,8 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
14792
15214
|
label: ZodString;
|
|
14793
15215
|
description: ZodString;
|
|
14794
15216
|
icon: ZodEnum<{
|
|
14795
|
-
key: "key";
|
|
14796
15217
|
user: "user";
|
|
15218
|
+
key: "key";
|
|
14797
15219
|
search: "search";
|
|
14798
15220
|
send: "send";
|
|
14799
15221
|
package: "package";
|
|
@@ -14838,6 +15260,22 @@ export declare const ConsentConfigSchema: ZodObject<{
|
|
|
14838
15260
|
revocationPath: ZodOptional<ZodString>;
|
|
14839
15261
|
inactivityDays: ZodOptional<ZodNumber>;
|
|
14840
15262
|
authorizationHost: ZodOptional<ZodString>;
|
|
15263
|
+
signInCopy: ZodOptional<ZodObject<{
|
|
15264
|
+
email: ZodOptional<ZodObject<{
|
|
15265
|
+
label: ZodOptional<ZodString>;
|
|
15266
|
+
hint: ZodOptional<ZodString>;
|
|
15267
|
+
}, $strip>>;
|
|
15268
|
+
password: ZodOptional<ZodObject<{
|
|
15269
|
+
label: ZodOptional<ZodString>;
|
|
15270
|
+
hint: ZodOptional<ZodString>;
|
|
15271
|
+
}, $strip>>;
|
|
15272
|
+
rpps: ZodOptional<ZodObject<{
|
|
15273
|
+
label: ZodOptional<ZodString>;
|
|
15274
|
+
hint: ZodOptional<ZodString>;
|
|
15275
|
+
prompt: ZodOptional<ZodString>;
|
|
15276
|
+
}, $strip>>;
|
|
15277
|
+
}, $strip>>;
|
|
15278
|
+
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
14841
15279
|
}, $strip>;
|
|
14842
15280
|
type ConsentConfig = output<typeof ConsentConfigSchema>;
|
|
14843
15281
|
export declare const ToolConsentOverridesSchema: ZodOptional<ZodObject<{
|
|
@@ -15060,8 +15498,8 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
15060
15498
|
label: ZodString;
|
|
15061
15499
|
description: ZodString;
|
|
15062
15500
|
icon: ZodEnum<{
|
|
15063
|
-
key: "key";
|
|
15064
15501
|
user: "user";
|
|
15502
|
+
key: "key";
|
|
15065
15503
|
search: "search";
|
|
15066
15504
|
send: "send";
|
|
15067
15505
|
package: "package";
|
|
@@ -15106,6 +15544,22 @@ export declare const BouncerConfigSchema: ZodObject<{
|
|
|
15106
15544
|
revocationPath: ZodOptional<ZodString>;
|
|
15107
15545
|
inactivityDays: ZodOptional<ZodNumber>;
|
|
15108
15546
|
authorizationHost: ZodOptional<ZodString>;
|
|
15547
|
+
signInCopy: ZodOptional<ZodObject<{
|
|
15548
|
+
email: ZodOptional<ZodObject<{
|
|
15549
|
+
label: ZodOptional<ZodString>;
|
|
15550
|
+
hint: ZodOptional<ZodString>;
|
|
15551
|
+
}, $strip>>;
|
|
15552
|
+
password: ZodOptional<ZodObject<{
|
|
15553
|
+
label: ZodOptional<ZodString>;
|
|
15554
|
+
hint: ZodOptional<ZodString>;
|
|
15555
|
+
}, $strip>>;
|
|
15556
|
+
rpps: ZodOptional<ZodObject<{
|
|
15557
|
+
label: ZodOptional<ZodString>;
|
|
15558
|
+
hint: ZodOptional<ZodString>;
|
|
15559
|
+
prompt: ZodOptional<ZodString>;
|
|
15560
|
+
}, $strip>>;
|
|
15561
|
+
}, $strip>>;
|
|
15562
|
+
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
15109
15563
|
}, $strip>>;
|
|
15110
15564
|
discoveredTools: ZodDefault<ZodRecord<ZodString, ZodUnknown>>;
|
|
15111
15565
|
mcpServerUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -15202,8 +15656,8 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
15202
15656
|
label: ZodString;
|
|
15203
15657
|
description: ZodString;
|
|
15204
15658
|
icon: ZodEnum<{
|
|
15205
|
-
key: "key";
|
|
15206
15659
|
user: "user";
|
|
15660
|
+
key: "key";
|
|
15207
15661
|
search: "search";
|
|
15208
15662
|
send: "send";
|
|
15209
15663
|
package: "package";
|
|
@@ -15248,6 +15702,22 @@ export declare const UpdateBouncerConfigSchema: ZodObject<{
|
|
|
15248
15702
|
revocationPath: ZodOptional<ZodString>;
|
|
15249
15703
|
inactivityDays: ZodOptional<ZodNumber>;
|
|
15250
15704
|
authorizationHost: ZodOptional<ZodString>;
|
|
15705
|
+
signInCopy: ZodOptional<ZodObject<{
|
|
15706
|
+
email: ZodOptional<ZodObject<{
|
|
15707
|
+
label: ZodOptional<ZodString>;
|
|
15708
|
+
hint: ZodOptional<ZodString>;
|
|
15709
|
+
}, $strip>>;
|
|
15710
|
+
password: ZodOptional<ZodObject<{
|
|
15711
|
+
label: ZodOptional<ZodString>;
|
|
15712
|
+
hint: ZodOptional<ZodString>;
|
|
15713
|
+
}, $strip>>;
|
|
15714
|
+
rpps: ZodOptional<ZodObject<{
|
|
15715
|
+
label: ZodOptional<ZodString>;
|
|
15716
|
+
hint: ZodOptional<ZodString>;
|
|
15717
|
+
prompt: ZodOptional<ZodString>;
|
|
15718
|
+
}, $strip>>;
|
|
15719
|
+
}, $strip>>;
|
|
15720
|
+
scopeLabels: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
15251
15721
|
}, $strip>>;
|
|
15252
15722
|
mcpServerUrl: ZodOptional<ZodNullable<ZodString>>;
|
|
15253
15723
|
isEnabled: ZodOptional<ZodBoolean>;
|
|
@@ -15323,8 +15793,8 @@ export declare const BouncerProofSchema: ZodObject<{
|
|
|
15323
15793
|
type BouncerProof = output<typeof BouncerProofSchema>;
|
|
15324
15794
|
export declare const DelegationPollingStatusSchema: ZodObject<{
|
|
15325
15795
|
status: ZodEnum<{
|
|
15326
|
-
error: "error";
|
|
15327
15796
|
expired: "expired";
|
|
15797
|
+
error: "error";
|
|
15328
15798
|
pending: "pending";
|
|
15329
15799
|
completed: "completed";
|
|
15330
15800
|
}>;
|
|
@@ -15466,6 +15936,41 @@ export declare function isSupportedAuthType(authType: ProviderAuthType): authTyp
|
|
|
15466
15936
|
export declare function fromProviderRegistryFormat(provider: ProviderRegistryDefinition): ProviderDefinition;
|
|
15467
15937
|
export declare function fromProviderRegistryFormatSafe(provider: ProviderRegistryDefinition): ProviderDefinition | null;
|
|
15468
15938
|
//#endregion
|
|
15939
|
+
//#region src/schemas/consent-policy-endpoint.d.ts
|
|
15940
|
+
export declare const ConsentPolicyRiskLevelSchema: ZodEnum<{
|
|
15941
|
+
low: "low";
|
|
15942
|
+
medium: "medium";
|
|
15943
|
+
high: "high";
|
|
15944
|
+
critical: "critical";
|
|
15945
|
+
}>;
|
|
15946
|
+
type ConsentPolicyRiskLevel = output<typeof ConsentPolicyRiskLevelSchema>;
|
|
15947
|
+
export declare const ConsentPolicyCapabilitySchema: ZodObject<{
|
|
15948
|
+
scope: ZodString;
|
|
15949
|
+
defaultOn: ZodBoolean;
|
|
15950
|
+
riskLevel: ZodEnum<{
|
|
15951
|
+
low: "low";
|
|
15952
|
+
medium: "medium";
|
|
15953
|
+
high: "high";
|
|
15954
|
+
critical: "critical";
|
|
15955
|
+
}>;
|
|
15956
|
+
}, $strict>;
|
|
15957
|
+
export declare const ConsentPolicyResponseSchema: ZodObject<{
|
|
15958
|
+
allowedScopes: ZodOptional<ZodArray<ZodString>>;
|
|
15959
|
+
maxGrantSeconds: ZodOptional<ZodNumber>;
|
|
15960
|
+
capabilities: ZodOptional<ZodArray<ZodObject<{
|
|
15961
|
+
scope: ZodString;
|
|
15962
|
+
defaultOn: ZodBoolean;
|
|
15963
|
+
riskLevel: ZodEnum<{
|
|
15964
|
+
low: "low";
|
|
15965
|
+
medium: "medium";
|
|
15966
|
+
high: "high";
|
|
15967
|
+
critical: "critical";
|
|
15968
|
+
}>;
|
|
15969
|
+
}, $strict>>>;
|
|
15970
|
+
etag: ZodString;
|
|
15971
|
+
}, $strict>;
|
|
15972
|
+
type ConsentPolicyResponse = output<typeof ConsentPolicyResponseSchema>;
|
|
15973
|
+
//#endregion
|
|
15469
15974
|
//#region src/schemas/gateway.d.ts
|
|
15470
15975
|
export declare function isPrivateOrReservedHost(hostname: string): boolean;
|
|
15471
15976
|
export declare const safeUrl: ZodString;
|
|
@@ -15481,8 +15986,8 @@ export declare const upstreamServerSchema: ZodObject<{
|
|
|
15481
15986
|
}>>;
|
|
15482
15987
|
authType: ZodDefault<ZodEnum<{
|
|
15483
15988
|
none: "none";
|
|
15484
|
-
vault: "vault";
|
|
15485
15989
|
static: "static";
|
|
15990
|
+
vault: "vault";
|
|
15486
15991
|
}>>;
|
|
15487
15992
|
envVarNames: ZodOptional<ZodArray<ZodString>>;
|
|
15488
15993
|
staticHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
@@ -15529,7 +16034,6 @@ export declare const upstreamServerSchema: ZodObject<{
|
|
|
15529
16034
|
type UpstreamServer = output<typeof upstreamServerSchema>;
|
|
15530
16035
|
export declare const upstreamServerInputSchema: ZodObject<{
|
|
15531
16036
|
url: ZodString;
|
|
15532
|
-
projectId: ZodOptional<ZodNullable<ZodString>>;
|
|
15533
16037
|
name: ZodString;
|
|
15534
16038
|
enabled: ZodDefault<ZodBoolean>;
|
|
15535
16039
|
authorizationHost: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -15539,8 +16043,8 @@ export declare const upstreamServerInputSchema: ZodObject<{
|
|
|
15539
16043
|
}>>;
|
|
15540
16044
|
authType: ZodDefault<ZodEnum<{
|
|
15541
16045
|
none: "none";
|
|
15542
|
-
vault: "vault";
|
|
15543
16046
|
static: "static";
|
|
16047
|
+
vault: "vault";
|
|
15544
16048
|
}>>;
|
|
15545
16049
|
envVarNames: ZodOptional<ZodArray<ZodString>>;
|
|
15546
16050
|
staticHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
@@ -15600,8 +16104,8 @@ export declare const gatewayConfigSchema: ZodObject<{
|
|
|
15600
16104
|
}>>;
|
|
15601
16105
|
authType: ZodDefault<ZodEnum<{
|
|
15602
16106
|
none: "none";
|
|
15603
|
-
vault: "vault";
|
|
15604
16107
|
static: "static";
|
|
16108
|
+
vault: "vault";
|
|
15605
16109
|
}>>;
|
|
15606
16110
|
envVarNames: ZodOptional<ZodArray<ZodString>>;
|
|
15607
16111
|
staticHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
@@ -15681,7 +16185,6 @@ export declare const gatewayConfigInputSchema: ZodObject<{
|
|
|
15681
16185
|
fleetEndpoint: ZodOptional<ZodString>;
|
|
15682
16186
|
upstreamServers: ZodDefault<ZodArray<ZodObject<{
|
|
15683
16187
|
url: ZodString;
|
|
15684
|
-
projectId: ZodOptional<ZodNullable<ZodString>>;
|
|
15685
16188
|
name: ZodString;
|
|
15686
16189
|
enabled: ZodDefault<ZodBoolean>;
|
|
15687
16190
|
authorizationHost: ZodOptional<ZodNullable<ZodString>>;
|
|
@@ -15691,8 +16194,8 @@ export declare const gatewayConfigInputSchema: ZodObject<{
|
|
|
15691
16194
|
}>>;
|
|
15692
16195
|
authType: ZodDefault<ZodEnum<{
|
|
15693
16196
|
none: "none";
|
|
15694
|
-
vault: "vault";
|
|
15695
16197
|
static: "static";
|
|
16198
|
+
vault: "vault";
|
|
15696
16199
|
}>>;
|
|
15697
16200
|
envVarNames: ZodOptional<ZodArray<ZodString>>;
|
|
15698
16201
|
staticHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
@@ -15838,9 +16341,9 @@ export declare const AnalyticsAgentSourcesQuerySchema: ZodObject<{
|
|
|
15838
16341
|
}>>>;
|
|
15839
16342
|
limit: ZodDefault<ZodOptional<ZodCoercedNumber<unknown>>>;
|
|
15840
16343
|
sortBy: ZodDefault<ZodOptional<ZodEnum<{
|
|
15841
|
-
count: "count";
|
|
15842
16344
|
name: "name";
|
|
15843
16345
|
confidence: "confidence";
|
|
16346
|
+
count: "count";
|
|
15844
16347
|
}>>>;
|
|
15845
16348
|
order: ZodDefault<ZodOptional<ZodEnum<{
|
|
15846
16349
|
asc: "asc";
|
|
@@ -16300,592 +16803,6 @@ export declare class StaleVendorRangesError extends Error {
|
|
|
16300
16803
|
}
|
|
16301
16804
|
export declare function assertVendorRangesFresh(vendors: VendorFreshnessInput[], now: Date, maxAgeMs?: number): void;
|
|
16302
16805
|
//#endregion
|
|
16303
|
-
//#region src/policy/schemas.d.ts
|
|
16304
|
-
export declare const EnforcementActionSchema: ZodEnum<{
|
|
16305
|
-
block: "block";
|
|
16306
|
-
redirect: "redirect";
|
|
16307
|
-
allow: "allow";
|
|
16308
|
-
log: "log";
|
|
16309
|
-
challenge: "challenge";
|
|
16310
|
-
permit: "permit";
|
|
16311
|
-
instruct: "instruct";
|
|
16312
|
-
}>;
|
|
16313
|
-
export declare const StrictEnforcementActionSchema: ZodEnum<{
|
|
16314
|
-
block: "block";
|
|
16315
|
-
redirect: "redirect";
|
|
16316
|
-
challenge: "challenge";
|
|
16317
|
-
permit: "permit";
|
|
16318
|
-
instruct: "instruct";
|
|
16319
|
-
}>;
|
|
16320
|
-
export declare const EnforcementModeSchema: ZodEnum<{
|
|
16321
|
-
observe: "observe";
|
|
16322
|
-
enforce: "enforce";
|
|
16323
|
-
}>;
|
|
16324
|
-
export declare const BlockReasonSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
16325
|
-
kind: ZodLiteral<"Revoked">;
|
|
16326
|
-
}, $strip>, ZodObject<{
|
|
16327
|
-
kind: ZodLiteral<"InvalidSignature">;
|
|
16328
|
-
}, $strip>, ZodObject<{
|
|
16329
|
-
kind: ZodLiteral<"Unauthenticated">;
|
|
16330
|
-
}, $strip>, ZodObject<{
|
|
16331
|
-
kind: ZodLiteral<"Expired">;
|
|
16332
|
-
}, $strip>, ZodObject<{
|
|
16333
|
-
kind: ZodLiteral<"OutOfScope">;
|
|
16334
|
-
requested: ZodString;
|
|
16335
|
-
granted: ZodArray<ZodString>;
|
|
16336
|
-
}, $strip>, ZodObject<{
|
|
16337
|
-
kind: ZodLiteral<"LowReputation">;
|
|
16338
|
-
score: ZodNumber;
|
|
16339
|
-
threshold: ZodNumber;
|
|
16340
|
-
}, $strip>, ZodObject<{
|
|
16341
|
-
kind: ZodLiteral<"PolicyDenied">;
|
|
16342
|
-
detail: ZodString;
|
|
16343
|
-
policyId: ZodOptional<ZodString>;
|
|
16344
|
-
}, $strip>, ZodObject<{
|
|
16345
|
-
kind: ZodLiteral<"AgentAttribution">;
|
|
16346
|
-
vendor: ZodString;
|
|
16347
|
-
tier: ZodNumber;
|
|
16348
|
-
confidence: ZodNumber;
|
|
16349
|
-
}, $strip>, ZodObject<{
|
|
16350
|
-
kind: ZodLiteral<"ParseError">;
|
|
16351
|
-
detail: ZodString;
|
|
16352
|
-
}, $strip>, ZodObject<{
|
|
16353
|
-
kind: ZodLiteral<"Tier3UAMatch">;
|
|
16354
|
-
pattern_id: ZodString;
|
|
16355
|
-
pattern_kind: ZodString;
|
|
16356
|
-
confidence: ZodNumber;
|
|
16357
|
-
}, $strip>], "kind">;
|
|
16358
|
-
type BlockReason = output<typeof BlockReasonSchema>;
|
|
16359
|
-
export declare const AssuranceTierSchema: ZodEnum<{
|
|
16360
|
-
registered: "registered";
|
|
16361
|
-
anonymous: "anonymous";
|
|
16362
|
-
"attested-bearer": "attested-bearer";
|
|
16363
|
-
"key-bound": "key-bound";
|
|
16364
|
-
delegated: "delegated";
|
|
16365
|
-
}>;
|
|
16366
|
-
type AssuranceTier = output<typeof AssuranceTierSchema>;
|
|
16367
|
-
export declare const ChallengeParamsSchema: ZodObject<{
|
|
16368
|
-
nonce: ZodString;
|
|
16369
|
-
audience: ZodString;
|
|
16370
|
-
expiresAt: ZodNumber;
|
|
16371
|
-
algorithmsAccepted: ZodArray<ZodString>;
|
|
16372
|
-
minAssurance: ZodOptional<ZodEnum<{
|
|
16373
|
-
registered: "registered";
|
|
16374
|
-
anonymous: "anonymous";
|
|
16375
|
-
"attested-bearer": "attested-bearer";
|
|
16376
|
-
"key-bound": "key-bound";
|
|
16377
|
-
delegated: "delegated";
|
|
16378
|
-
}>>;
|
|
16379
|
-
policyId: ZodOptional<ZodString>;
|
|
16380
|
-
challengeType: ZodOptional<ZodString>;
|
|
16381
|
-
}, $strip>;
|
|
16382
|
-
type ChallengeParams = output<typeof ChallengeParamsSchema>;
|
|
16383
|
-
export declare function normalizeChallengeType(challengeType: string | undefined): 'delegation' | 'browser_integrity' | 'human_step_up';
|
|
16384
|
-
export declare const RedirectTargetSchema: ZodObject<{
|
|
16385
|
-
url: ZodString;
|
|
16386
|
-
reason: ZodString;
|
|
16387
|
-
state: ZodOptional<ZodString>;
|
|
16388
|
-
policyId: ZodOptional<ZodString>;
|
|
16389
|
-
}, $strip>;
|
|
16390
|
-
type RedirectTarget = output<typeof RedirectTargetSchema>;
|
|
16391
|
-
export declare const SuggestedActionSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
16392
|
-
kind: ZodLiteral<"UseDifferentScope">;
|
|
16393
|
-
scope: ZodString;
|
|
16394
|
-
}, $strip>, ZodObject<{
|
|
16395
|
-
kind: ZodLiteral<"UpdateRequestField">;
|
|
16396
|
-
field: ZodString;
|
|
16397
|
-
acceptedValues: ZodArray<ZodString>;
|
|
16398
|
-
}, $strip>, ZodObject<{
|
|
16399
|
-
kind: ZodLiteral<"UpgradeProtocolVersion">;
|
|
16400
|
-
version: ZodString;
|
|
16401
|
-
}, $strip>, ZodObject<{
|
|
16402
|
-
kind: ZodLiteral<"Other">;
|
|
16403
|
-
code: ZodString;
|
|
16404
|
-
detail: ZodString;
|
|
16405
|
-
}, $strip>], "kind">;
|
|
16406
|
-
type SuggestedAction = output<typeof SuggestedActionSchema>;
|
|
16407
|
-
export declare const InstructPayloadSchema: ZodObject<{
|
|
16408
|
-
problem: ZodString;
|
|
16409
|
-
title: ZodString;
|
|
16410
|
-
suggestedActions: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
|
|
16411
|
-
kind: ZodLiteral<"UseDifferentScope">;
|
|
16412
|
-
scope: ZodString;
|
|
16413
|
-
}, $strip>, ZodObject<{
|
|
16414
|
-
kind: ZodLiteral<"UpdateRequestField">;
|
|
16415
|
-
field: ZodString;
|
|
16416
|
-
acceptedValues: ZodArray<ZodString>;
|
|
16417
|
-
}, $strip>, ZodObject<{
|
|
16418
|
-
kind: ZodLiteral<"UpgradeProtocolVersion">;
|
|
16419
|
-
version: ZodString;
|
|
16420
|
-
}, $strip>, ZodObject<{
|
|
16421
|
-
kind: ZodLiteral<"Other">;
|
|
16422
|
-
code: ZodString;
|
|
16423
|
-
detail: ZodString;
|
|
16424
|
-
}, $strip>], "kind">>;
|
|
16425
|
-
policyId: ZodOptional<ZodString>;
|
|
16426
|
-
}, $strip>;
|
|
16427
|
-
type InstructPayload = output<typeof InstructPayloadSchema>;
|
|
16428
|
-
export declare const DecisionSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
16429
|
-
kind: ZodLiteral<"Permit">;
|
|
16430
|
-
policyId: ZodOptional<ZodString>;
|
|
16431
|
-
}, $strip>, ZodObject<{
|
|
16432
|
-
kind: ZodLiteral<"Block">;
|
|
16433
|
-
reason: ZodDiscriminatedUnion<[ZodObject<{
|
|
16434
|
-
kind: ZodLiteral<"Revoked">;
|
|
16435
|
-
}, $strip>, ZodObject<{
|
|
16436
|
-
kind: ZodLiteral<"InvalidSignature">;
|
|
16437
|
-
}, $strip>, ZodObject<{
|
|
16438
|
-
kind: ZodLiteral<"Unauthenticated">;
|
|
16439
|
-
}, $strip>, ZodObject<{
|
|
16440
|
-
kind: ZodLiteral<"Expired">;
|
|
16441
|
-
}, $strip>, ZodObject<{
|
|
16442
|
-
kind: ZodLiteral<"OutOfScope">;
|
|
16443
|
-
requested: ZodString;
|
|
16444
|
-
granted: ZodArray<ZodString>;
|
|
16445
|
-
}, $strip>, ZodObject<{
|
|
16446
|
-
kind: ZodLiteral<"LowReputation">;
|
|
16447
|
-
score: ZodNumber;
|
|
16448
|
-
threshold: ZodNumber;
|
|
16449
|
-
}, $strip>, ZodObject<{
|
|
16450
|
-
kind: ZodLiteral<"PolicyDenied">;
|
|
16451
|
-
detail: ZodString;
|
|
16452
|
-
policyId: ZodOptional<ZodString>;
|
|
16453
|
-
}, $strip>, ZodObject<{
|
|
16454
|
-
kind: ZodLiteral<"AgentAttribution">;
|
|
16455
|
-
vendor: ZodString;
|
|
16456
|
-
tier: ZodNumber;
|
|
16457
|
-
confidence: ZodNumber;
|
|
16458
|
-
}, $strip>, ZodObject<{
|
|
16459
|
-
kind: ZodLiteral<"ParseError">;
|
|
16460
|
-
detail: ZodString;
|
|
16461
|
-
}, $strip>, ZodObject<{
|
|
16462
|
-
kind: ZodLiteral<"Tier3UAMatch">;
|
|
16463
|
-
pattern_id: ZodString;
|
|
16464
|
-
pattern_kind: ZodString;
|
|
16465
|
-
confidence: ZodNumber;
|
|
16466
|
-
}, $strip>], "kind">;
|
|
16467
|
-
}, $strip>, ZodObject<{
|
|
16468
|
-
kind: ZodLiteral<"Challenge">;
|
|
16469
|
-
params: ZodObject<{
|
|
16470
|
-
nonce: ZodString;
|
|
16471
|
-
audience: ZodString;
|
|
16472
|
-
expiresAt: ZodNumber;
|
|
16473
|
-
algorithmsAccepted: ZodArray<ZodString>;
|
|
16474
|
-
minAssurance: ZodOptional<ZodEnum<{
|
|
16475
|
-
registered: "registered";
|
|
16476
|
-
anonymous: "anonymous";
|
|
16477
|
-
"attested-bearer": "attested-bearer";
|
|
16478
|
-
"key-bound": "key-bound";
|
|
16479
|
-
delegated: "delegated";
|
|
16480
|
-
}>>;
|
|
16481
|
-
policyId: ZodOptional<ZodString>;
|
|
16482
|
-
challengeType: ZodOptional<ZodString>;
|
|
16483
|
-
}, $strip>;
|
|
16484
|
-
}, $strip>, ZodObject<{
|
|
16485
|
-
kind: ZodLiteral<"Redirect">;
|
|
16486
|
-
target: ZodObject<{
|
|
16487
|
-
url: ZodString;
|
|
16488
|
-
reason: ZodString;
|
|
16489
|
-
state: ZodOptional<ZodString>;
|
|
16490
|
-
policyId: ZodOptional<ZodString>;
|
|
16491
|
-
}, $strip>;
|
|
16492
|
-
}, $strip>, ZodObject<{
|
|
16493
|
-
kind: ZodLiteral<"Instruct">;
|
|
16494
|
-
payload: ZodObject<{
|
|
16495
|
-
problem: ZodString;
|
|
16496
|
-
title: ZodString;
|
|
16497
|
-
suggestedActions: ZodArray<ZodDiscriminatedUnion<[ZodObject<{
|
|
16498
|
-
kind: ZodLiteral<"UseDifferentScope">;
|
|
16499
|
-
scope: ZodString;
|
|
16500
|
-
}, $strip>, ZodObject<{
|
|
16501
|
-
kind: ZodLiteral<"UpdateRequestField">;
|
|
16502
|
-
field: ZodString;
|
|
16503
|
-
acceptedValues: ZodArray<ZodString>;
|
|
16504
|
-
}, $strip>, ZodObject<{
|
|
16505
|
-
kind: ZodLiteral<"UpgradeProtocolVersion">;
|
|
16506
|
-
version: ZodString;
|
|
16507
|
-
}, $strip>, ZodObject<{
|
|
16508
|
-
kind: ZodLiteral<"Other">;
|
|
16509
|
-
code: ZodString;
|
|
16510
|
-
detail: ZodString;
|
|
16511
|
-
}, $strip>], "kind">>;
|
|
16512
|
-
policyId: ZodOptional<ZodString>;
|
|
16513
|
-
}, $strip>;
|
|
16514
|
-
}, $strip>], "kind">;
|
|
16515
|
-
type Decision = output<typeof DecisionSchema>;
|
|
16516
|
-
export declare const ThresholdConfigSchema: ZodObject<{
|
|
16517
|
-
confidenceThreshold: ZodDefault<ZodNumber>;
|
|
16518
|
-
confidenceAction: ZodDefault<ZodEnum<{
|
|
16519
|
-
block: "block";
|
|
16520
|
-
redirect: "redirect";
|
|
16521
|
-
allow: "allow";
|
|
16522
|
-
log: "log";
|
|
16523
|
-
challenge: "challenge";
|
|
16524
|
-
permit: "permit";
|
|
16525
|
-
instruct: "instruct";
|
|
16526
|
-
}>>;
|
|
16527
|
-
minReputationScore: ZodDefault<ZodNumber>;
|
|
16528
|
-
lowReputationAction: ZodDefault<ZodEnum<{
|
|
16529
|
-
block: "block";
|
|
16530
|
-
redirect: "redirect";
|
|
16531
|
-
allow: "allow";
|
|
16532
|
-
log: "log";
|
|
16533
|
-
challenge: "challenge";
|
|
16534
|
-
permit: "permit";
|
|
16535
|
-
instruct: "instruct";
|
|
16536
|
-
}>>;
|
|
16537
|
-
trustedReputationThreshold: ZodDefault<ZodNumber>;
|
|
16538
|
-
trustSignedRequests: ZodDefault<ZodBoolean>;
|
|
16539
|
-
}, $strip>;
|
|
16540
|
-
export declare const DenyListEntrySchema: ZodObject<{
|
|
16541
|
-
clientDid: ZodOptional<ZodString>;
|
|
16542
|
-
agentDid: ZodOptional<ZodString>;
|
|
16543
|
-
clientName: ZodOptional<ZodString>;
|
|
16544
|
-
agentType: ZodOptional<ZodString>;
|
|
16545
|
-
reason: ZodOptional<ZodString>;
|
|
16546
|
-
blockedAt: ZodOptional<ZodString>;
|
|
16547
|
-
addedBy: ZodOptional<ZodString>;
|
|
16548
|
-
active: ZodDefault<ZodBoolean>;
|
|
16549
|
-
expiresAt: ZodOptional<ZodString>;
|
|
16550
|
-
}, $strip>;
|
|
16551
|
-
export declare const AllowListEntrySchema: ZodObject<{
|
|
16552
|
-
clientDid: ZodOptional<ZodString>;
|
|
16553
|
-
agentDid: ZodOptional<ZodString>;
|
|
16554
|
-
clientName: ZodOptional<ZodString>;
|
|
16555
|
-
agentType: ZodOptional<ZodString>;
|
|
16556
|
-
reason: ZodOptional<ZodString>;
|
|
16557
|
-
addedAt: ZodOptional<ZodString>;
|
|
16558
|
-
addedBy: ZodOptional<ZodString>;
|
|
16559
|
-
}, $strip>;
|
|
16560
|
-
export declare const ConditionOperatorSchema: ZodEnum<{
|
|
16561
|
-
in: "in";
|
|
16562
|
-
matches: "matches";
|
|
16563
|
-
equals: "equals";
|
|
16564
|
-
notEquals: "notEquals";
|
|
16565
|
-
contains: "contains";
|
|
16566
|
-
notContains: "notContains";
|
|
16567
|
-
startsWith: "startsWith";
|
|
16568
|
-
endsWith: "endsWith";
|
|
16569
|
-
greaterThan: "greaterThan";
|
|
16570
|
-
lessThan: "lessThan";
|
|
16571
|
-
greaterThanOrEquals: "greaterThanOrEquals";
|
|
16572
|
-
lessThanOrEquals: "lessThanOrEquals";
|
|
16573
|
-
notIn: "notIn";
|
|
16574
|
-
}>;
|
|
16575
|
-
export declare const ConditionFieldSchema: ZodEnum<{
|
|
16576
|
-
path: "path";
|
|
16577
|
-
origin: "origin";
|
|
16578
|
-
confidence: "confidence";
|
|
16579
|
-
agentType: "agentType";
|
|
16580
|
-
userAgent: "userAgent";
|
|
16581
|
-
method: "method";
|
|
16582
|
-
riskLevel: "riskLevel";
|
|
16583
|
-
agentName: "agentName";
|
|
16584
|
-
agentDid: "agentDid";
|
|
16585
|
-
clientDid: "clientDid";
|
|
16586
|
-
agentVendor: "agentVendor";
|
|
16587
|
-
reputationScore: "reputationScore";
|
|
16588
|
-
signatureVerified: "signatureVerified";
|
|
16589
|
-
isAuthenticated: "isAuthenticated";
|
|
16590
|
-
hasValidDelegation: "hasValidDelegation";
|
|
16591
|
-
}>;
|
|
16592
|
-
export declare const ConditionValueSchema: ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>;
|
|
16593
|
-
export declare const PolicyConditionSchema: ZodObject<{
|
|
16594
|
-
field: ZodEnum<{
|
|
16595
|
-
path: "path";
|
|
16596
|
-
origin: "origin";
|
|
16597
|
-
confidence: "confidence";
|
|
16598
|
-
agentType: "agentType";
|
|
16599
|
-
userAgent: "userAgent";
|
|
16600
|
-
method: "method";
|
|
16601
|
-
riskLevel: "riskLevel";
|
|
16602
|
-
agentName: "agentName";
|
|
16603
|
-
agentDid: "agentDid";
|
|
16604
|
-
clientDid: "clientDid";
|
|
16605
|
-
agentVendor: "agentVendor";
|
|
16606
|
-
reputationScore: "reputationScore";
|
|
16607
|
-
signatureVerified: "signatureVerified";
|
|
16608
|
-
isAuthenticated: "isAuthenticated";
|
|
16609
|
-
hasValidDelegation: "hasValidDelegation";
|
|
16610
|
-
}>;
|
|
16611
|
-
operator: ZodEnum<{
|
|
16612
|
-
in: "in";
|
|
16613
|
-
matches: "matches";
|
|
16614
|
-
equals: "equals";
|
|
16615
|
-
notEquals: "notEquals";
|
|
16616
|
-
contains: "contains";
|
|
16617
|
-
notContains: "notContains";
|
|
16618
|
-
startsWith: "startsWith";
|
|
16619
|
-
endsWith: "endsWith";
|
|
16620
|
-
greaterThan: "greaterThan";
|
|
16621
|
-
lessThan: "lessThan";
|
|
16622
|
-
greaterThanOrEquals: "greaterThanOrEquals";
|
|
16623
|
-
lessThanOrEquals: "lessThanOrEquals";
|
|
16624
|
-
notIn: "notIn";
|
|
16625
|
-
}>;
|
|
16626
|
-
value: ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>;
|
|
16627
|
-
caseInsensitive: ZodOptional<ZodBoolean>;
|
|
16628
|
-
}, $strip>;
|
|
16629
|
-
export declare const RuleMetadataSchema: ZodObject<{
|
|
16630
|
-
createdAt: ZodOptional<ZodString>;
|
|
16631
|
-
updatedAt: ZodOptional<ZodString>;
|
|
16632
|
-
createdBy: ZodOptional<ZodString>;
|
|
16633
|
-
}, $strip>;
|
|
16634
|
-
export declare const PolicyRuleSchema: ZodObject<{
|
|
16635
|
-
id: ZodString;
|
|
16636
|
-
name: ZodString;
|
|
16637
|
-
description: ZodOptional<ZodString>;
|
|
16638
|
-
priority: ZodDefault<ZodNumber>;
|
|
16639
|
-
conditions: ZodArray<ZodObject<{
|
|
16640
|
-
field: ZodEnum<{
|
|
16641
|
-
path: "path";
|
|
16642
|
-
origin: "origin";
|
|
16643
|
-
confidence: "confidence";
|
|
16644
|
-
agentType: "agentType";
|
|
16645
|
-
userAgent: "userAgent";
|
|
16646
|
-
method: "method";
|
|
16647
|
-
riskLevel: "riskLevel";
|
|
16648
|
-
agentName: "agentName";
|
|
16649
|
-
agentDid: "agentDid";
|
|
16650
|
-
clientDid: "clientDid";
|
|
16651
|
-
agentVendor: "agentVendor";
|
|
16652
|
-
reputationScore: "reputationScore";
|
|
16653
|
-
signatureVerified: "signatureVerified";
|
|
16654
|
-
isAuthenticated: "isAuthenticated";
|
|
16655
|
-
hasValidDelegation: "hasValidDelegation";
|
|
16656
|
-
}>;
|
|
16657
|
-
operator: ZodEnum<{
|
|
16658
|
-
in: "in";
|
|
16659
|
-
matches: "matches";
|
|
16660
|
-
equals: "equals";
|
|
16661
|
-
notEquals: "notEquals";
|
|
16662
|
-
contains: "contains";
|
|
16663
|
-
notContains: "notContains";
|
|
16664
|
-
startsWith: "startsWith";
|
|
16665
|
-
endsWith: "endsWith";
|
|
16666
|
-
greaterThan: "greaterThan";
|
|
16667
|
-
lessThan: "lessThan";
|
|
16668
|
-
greaterThanOrEquals: "greaterThanOrEquals";
|
|
16669
|
-
lessThanOrEquals: "lessThanOrEquals";
|
|
16670
|
-
notIn: "notIn";
|
|
16671
|
-
}>;
|
|
16672
|
-
value: ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>;
|
|
16673
|
-
caseInsensitive: ZodOptional<ZodBoolean>;
|
|
16674
|
-
}, $strip>>;
|
|
16675
|
-
action: ZodEnum<{
|
|
16676
|
-
block: "block";
|
|
16677
|
-
redirect: "redirect";
|
|
16678
|
-
allow: "allow";
|
|
16679
|
-
log: "log";
|
|
16680
|
-
challenge: "challenge";
|
|
16681
|
-
permit: "permit";
|
|
16682
|
-
instruct: "instruct";
|
|
16683
|
-
}>;
|
|
16684
|
-
redirectUrl: ZodOptional<ZodString>;
|
|
16685
|
-
message: ZodOptional<ZodString>;
|
|
16686
|
-
enabled: ZodDefault<ZodBoolean>;
|
|
16687
|
-
metadata: ZodOptional<ZodObject<{
|
|
16688
|
-
createdAt: ZodOptional<ZodString>;
|
|
16689
|
-
updatedAt: ZodOptional<ZodString>;
|
|
16690
|
-
createdBy: ZodOptional<ZodString>;
|
|
16691
|
-
}, $strip>>;
|
|
16692
|
-
}, $strip>;
|
|
16693
|
-
export declare const PolicyMetadataSchema: ZodObject<{
|
|
16694
|
-
lastUpdated: ZodOptional<ZodString>;
|
|
16695
|
-
updatedBy: ZodOptional<ZodString>;
|
|
16696
|
-
policyId: ZodOptional<ZodString>;
|
|
16697
|
-
}, $strip>;
|
|
16698
|
-
export declare const PolicyConfigSchema: ZodObject<{
|
|
16699
|
-
version: ZodDefault<ZodString>;
|
|
16700
|
-
enabled: ZodDefault<ZodBoolean>;
|
|
16701
|
-
defaultAction: ZodDefault<ZodEnum<{
|
|
16702
|
-
block: "block";
|
|
16703
|
-
redirect: "redirect";
|
|
16704
|
-
allow: "allow";
|
|
16705
|
-
log: "log";
|
|
16706
|
-
challenge: "challenge";
|
|
16707
|
-
permit: "permit";
|
|
16708
|
-
instruct: "instruct";
|
|
16709
|
-
}>>;
|
|
16710
|
-
redirectUrl: ZodOptional<ZodString>;
|
|
16711
|
-
thresholds: ZodPrefault<ZodObject<{
|
|
16712
|
-
confidenceThreshold: ZodDefault<ZodNumber>;
|
|
16713
|
-
confidenceAction: ZodDefault<ZodEnum<{
|
|
16714
|
-
block: "block";
|
|
16715
|
-
redirect: "redirect";
|
|
16716
|
-
allow: "allow";
|
|
16717
|
-
log: "log";
|
|
16718
|
-
challenge: "challenge";
|
|
16719
|
-
permit: "permit";
|
|
16720
|
-
instruct: "instruct";
|
|
16721
|
-
}>>;
|
|
16722
|
-
minReputationScore: ZodDefault<ZodNumber>;
|
|
16723
|
-
lowReputationAction: ZodDefault<ZodEnum<{
|
|
16724
|
-
block: "block";
|
|
16725
|
-
redirect: "redirect";
|
|
16726
|
-
allow: "allow";
|
|
16727
|
-
log: "log";
|
|
16728
|
-
challenge: "challenge";
|
|
16729
|
-
permit: "permit";
|
|
16730
|
-
instruct: "instruct";
|
|
16731
|
-
}>>;
|
|
16732
|
-
trustedReputationThreshold: ZodDefault<ZodNumber>;
|
|
16733
|
-
trustSignedRequests: ZodDefault<ZodBoolean>;
|
|
16734
|
-
}, $strip>>;
|
|
16735
|
-
denyList: ZodDefault<ZodArray<ZodObject<{
|
|
16736
|
-
clientDid: ZodOptional<ZodString>;
|
|
16737
|
-
agentDid: ZodOptional<ZodString>;
|
|
16738
|
-
clientName: ZodOptional<ZodString>;
|
|
16739
|
-
agentType: ZodOptional<ZodString>;
|
|
16740
|
-
reason: ZodOptional<ZodString>;
|
|
16741
|
-
blockedAt: ZodOptional<ZodString>;
|
|
16742
|
-
addedBy: ZodOptional<ZodString>;
|
|
16743
|
-
active: ZodDefault<ZodBoolean>;
|
|
16744
|
-
expiresAt: ZodOptional<ZodString>;
|
|
16745
|
-
}, $strip>>>;
|
|
16746
|
-
allowList: ZodDefault<ZodArray<ZodObject<{
|
|
16747
|
-
clientDid: ZodOptional<ZodString>;
|
|
16748
|
-
agentDid: ZodOptional<ZodString>;
|
|
16749
|
-
clientName: ZodOptional<ZodString>;
|
|
16750
|
-
agentType: ZodOptional<ZodString>;
|
|
16751
|
-
reason: ZodOptional<ZodString>;
|
|
16752
|
-
addedAt: ZodOptional<ZodString>;
|
|
16753
|
-
addedBy: ZodOptional<ZodString>;
|
|
16754
|
-
}, $strip>>>;
|
|
16755
|
-
rules: ZodDefault<ZodArray<ZodObject<{
|
|
16756
|
-
id: ZodString;
|
|
16757
|
-
name: ZodString;
|
|
16758
|
-
description: ZodOptional<ZodString>;
|
|
16759
|
-
priority: ZodDefault<ZodNumber>;
|
|
16760
|
-
conditions: ZodArray<ZodObject<{
|
|
16761
|
-
field: ZodEnum<{
|
|
16762
|
-
path: "path";
|
|
16763
|
-
origin: "origin";
|
|
16764
|
-
confidence: "confidence";
|
|
16765
|
-
agentType: "agentType";
|
|
16766
|
-
userAgent: "userAgent";
|
|
16767
|
-
method: "method";
|
|
16768
|
-
riskLevel: "riskLevel";
|
|
16769
|
-
agentName: "agentName";
|
|
16770
|
-
agentDid: "agentDid";
|
|
16771
|
-
clientDid: "clientDid";
|
|
16772
|
-
agentVendor: "agentVendor";
|
|
16773
|
-
reputationScore: "reputationScore";
|
|
16774
|
-
signatureVerified: "signatureVerified";
|
|
16775
|
-
isAuthenticated: "isAuthenticated";
|
|
16776
|
-
hasValidDelegation: "hasValidDelegation";
|
|
16777
|
-
}>;
|
|
16778
|
-
operator: ZodEnum<{
|
|
16779
|
-
in: "in";
|
|
16780
|
-
matches: "matches";
|
|
16781
|
-
equals: "equals";
|
|
16782
|
-
notEquals: "notEquals";
|
|
16783
|
-
contains: "contains";
|
|
16784
|
-
notContains: "notContains";
|
|
16785
|
-
startsWith: "startsWith";
|
|
16786
|
-
endsWith: "endsWith";
|
|
16787
|
-
greaterThan: "greaterThan";
|
|
16788
|
-
lessThan: "lessThan";
|
|
16789
|
-
greaterThanOrEquals: "greaterThanOrEquals";
|
|
16790
|
-
lessThanOrEquals: "lessThanOrEquals";
|
|
16791
|
-
notIn: "notIn";
|
|
16792
|
-
}>;
|
|
16793
|
-
value: ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>;
|
|
16794
|
-
caseInsensitive: ZodOptional<ZodBoolean>;
|
|
16795
|
-
}, $strip>>;
|
|
16796
|
-
action: ZodEnum<{
|
|
16797
|
-
block: "block";
|
|
16798
|
-
redirect: "redirect";
|
|
16799
|
-
allow: "allow";
|
|
16800
|
-
log: "log";
|
|
16801
|
-
challenge: "challenge";
|
|
16802
|
-
permit: "permit";
|
|
16803
|
-
instruct: "instruct";
|
|
16804
|
-
}>;
|
|
16805
|
-
redirectUrl: ZodOptional<ZodString>;
|
|
16806
|
-
message: ZodOptional<ZodString>;
|
|
16807
|
-
enabled: ZodDefault<ZodBoolean>;
|
|
16808
|
-
metadata: ZodOptional<ZodObject<{
|
|
16809
|
-
createdAt: ZodOptional<ZodString>;
|
|
16810
|
-
updatedAt: ZodOptional<ZodString>;
|
|
16811
|
-
createdBy: ZodOptional<ZodString>;
|
|
16812
|
-
}, $strip>>;
|
|
16813
|
-
}, $strip>>>;
|
|
16814
|
-
excludedPaths: ZodDefault<ZodArray<ZodString>>;
|
|
16815
|
-
includedPaths: ZodOptional<ZodArray<ZodString>>;
|
|
16816
|
-
metadata: ZodOptional<ZodObject<{
|
|
16817
|
-
lastUpdated: ZodOptional<ZodString>;
|
|
16818
|
-
updatedBy: ZodOptional<ZodString>;
|
|
16819
|
-
policyId: ZodOptional<ZodString>;
|
|
16820
|
-
}, $strip>>;
|
|
16821
|
-
policySourceText: ZodOptional<ZodNullable<ZodString>>;
|
|
16822
|
-
policyLanguage: ZodOptional<ZodNullable<ZodString>>;
|
|
16823
|
-
policySourceHash: ZodOptional<ZodNullable<ZodString>>;
|
|
16824
|
-
engineEnforcementEnabled: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
16825
|
-
trustedDelegationRoots: ZodOptional<ZodArray<ZodString>>;
|
|
16826
|
-
}, $strip>;
|
|
16827
|
-
export declare const PolicyEvaluationContextSchema: ZodObject<{
|
|
16828
|
-
agentType: ZodOptional<ZodString>;
|
|
16829
|
-
agentName: ZodOptional<ZodString>;
|
|
16830
|
-
agentVendor: ZodOptional<ZodString>;
|
|
16831
|
-
clientDid: ZodOptional<ZodString>;
|
|
16832
|
-
agentDid: ZodOptional<ZodString>;
|
|
16833
|
-
confidence: ZodOptional<ZodNumber>;
|
|
16834
|
-
reputationScore: ZodOptional<ZodNumber>;
|
|
16835
|
-
riskLevel: ZodOptional<ZodString>;
|
|
16836
|
-
path: ZodOptional<ZodString>;
|
|
16837
|
-
method: ZodOptional<ZodString>;
|
|
16838
|
-
origin: ZodOptional<ZodString>;
|
|
16839
|
-
userAgent: ZodOptional<ZodString>;
|
|
16840
|
-
signatureVerified: ZodDefault<ZodBoolean>;
|
|
16841
|
-
isAuthenticated: ZodDefault<ZodBoolean>;
|
|
16842
|
-
hasValidDelegation: ZodDefault<ZodBoolean>;
|
|
16843
|
-
}, $strip>;
|
|
16844
|
-
export declare const PolicyMatchTypeSchema: ZodEnum<{
|
|
16845
|
-
default: "default";
|
|
16846
|
-
rule: "rule";
|
|
16847
|
-
threshold: "threshold";
|
|
16848
|
-
"allow-list": "allow-list";
|
|
16849
|
-
"deny-list": "deny-list";
|
|
16850
|
-
}>;
|
|
16851
|
-
export declare const PolicyEvaluationResultSchema: ZodObject<{
|
|
16852
|
-
action: ZodEnum<{
|
|
16853
|
-
block: "block";
|
|
16854
|
-
redirect: "redirect";
|
|
16855
|
-
allow: "allow";
|
|
16856
|
-
log: "log";
|
|
16857
|
-
challenge: "challenge";
|
|
16858
|
-
permit: "permit";
|
|
16859
|
-
instruct: "instruct";
|
|
16860
|
-
}>;
|
|
16861
|
-
reason: ZodString;
|
|
16862
|
-
ruleId: ZodOptional<ZodString>;
|
|
16863
|
-
ruleName: ZodOptional<ZodString>;
|
|
16864
|
-
redirectUrl: ZodOptional<ZodString>;
|
|
16865
|
-
message: ZodOptional<ZodString>;
|
|
16866
|
-
matchType: ZodEnum<{
|
|
16867
|
-
default: "default";
|
|
16868
|
-
rule: "rule";
|
|
16869
|
-
threshold: "threshold";
|
|
16870
|
-
"allow-list": "allow-list";
|
|
16871
|
-
"deny-list": "deny-list";
|
|
16872
|
-
}>;
|
|
16873
|
-
}, $strip>;
|
|
16874
|
-
type ThresholdConfig = output<typeof ThresholdConfigSchema>;
|
|
16875
|
-
type DenyListEntry = output<typeof DenyListEntrySchema>;
|
|
16876
|
-
type AllowListEntry = output<typeof AllowListEntrySchema>;
|
|
16877
|
-
type ConditionValue = output<typeof ConditionValueSchema>;
|
|
16878
|
-
type PolicyCondition = output<typeof PolicyConditionSchema>;
|
|
16879
|
-
type RuleMetadata = output<typeof RuleMetadataSchema>;
|
|
16880
|
-
type PolicyRule = output<typeof PolicyRuleSchema>;
|
|
16881
|
-
type PolicyMetadata = output<typeof PolicyMetadataSchema>;
|
|
16882
|
-
type PolicyConfig = output<typeof PolicyConfigSchema>;
|
|
16883
|
-
type PolicyEvaluationContext = output<typeof PolicyEvaluationContextSchema>;
|
|
16884
|
-
type PolicyEvaluationResult = output<typeof PolicyEvaluationResultSchema>;
|
|
16885
|
-
export declare function parsePolicyConfig(data: unknown): PolicyConfig;
|
|
16886
|
-
export declare function safeParsePolicyConfig(data: unknown): PolicyConfig | null;
|
|
16887
|
-
export declare function parseEvaluationContext(data: unknown): PolicyEvaluationContext;
|
|
16888
|
-
//#endregion
|
|
16889
16806
|
//#region src/policy/constants.d.ts
|
|
16890
16807
|
export declare const ENFORCEMENT_ACTIONS: {
|
|
16891
16808
|
readonly PERMIT: "permit";
|
|
@@ -16980,41 +16897,14 @@ export declare const CURRENT_POLICY_VERSION = "1.0.0";
|
|
|
16980
16897
|
export declare function evaluatePolicy(policy: PolicyConfig, context: PolicyEvaluationContext): PolicyEvaluationResult;
|
|
16981
16898
|
export declare function matchPath(path: string, pattern: string): boolean;
|
|
16982
16899
|
//#endregion
|
|
16983
|
-
//#region src/policy/
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
export declare function splitCedarBlocks(cedar: string): string[];
|
|
16991
|
-
export declare function blockEqualityLiterals(block: string, attr: string): string[];
|
|
16992
|
-
export declare function isForbidBlock(block: string): boolean;
|
|
16993
|
-
export declare function isUnnarrowedDenyBlock(block: string): boolean;
|
|
16994
|
-
export declare function pathHasUnnarrowedDenyRule(cedar: string, path: string): boolean;
|
|
16995
|
-
//#endregion
|
|
16996
|
-
//#region src/policy/required-scopes.d.ts
|
|
16997
|
-
export declare function requiredScopesForRequest(policySource: string | null | undefined, request?: RequestFacts): string[];
|
|
16998
|
-
//#endregion
|
|
16999
|
-
//#region src/policy/decision-policy-id.d.ts
|
|
17000
|
-
interface DecisionLike {
|
|
17001
|
-
kind: string;
|
|
17002
|
-
policyId?: string;
|
|
17003
|
-
reason?: {
|
|
17004
|
-
kind: string;
|
|
17005
|
-
policyId?: string;
|
|
17006
|
-
};
|
|
17007
|
-
params?: {
|
|
17008
|
-
policyId?: string;
|
|
17009
|
-
};
|
|
17010
|
-
target?: {
|
|
17011
|
-
policyId?: string;
|
|
17012
|
-
};
|
|
17013
|
-
payload?: {
|
|
17014
|
-
policyId?: string;
|
|
17015
|
-
};
|
|
16900
|
+
//#region src/policy/byte-bounded-memo.d.ts
|
|
16901
|
+
export declare class ByteBoundedMemo<V> {
|
|
16902
|
+
private readonly budgetBytes;
|
|
16903
|
+
private readonly entries;
|
|
16904
|
+
private used;
|
|
16905
|
+
constructor(budgetBytes: number);
|
|
16906
|
+
remember(key: string, bytes: number, make: () => V): V;
|
|
17016
16907
|
}
|
|
17017
|
-
export declare function decisionPolicyId(decision: DecisionLike): string | undefined;
|
|
17018
16908
|
//#endregion
|
|
17019
16909
|
//#region src/policy/bespoke-policy.d.ts
|
|
17020
16910
|
export declare const BESPOKE_POLICY_IDS: {
|
|
@@ -17036,33 +16926,13 @@ interface LintFinding {
|
|
|
17036
16926
|
message: string;
|
|
17037
16927
|
}
|
|
17038
16928
|
export declare function lintUnnarrowedDenyRules(cedar: string): LintFinding[];
|
|
16929
|
+
export declare function lintMissingBaselinePermit(cedar: string): LintFinding[];
|
|
17039
16930
|
//#endregion
|
|
17040
16931
|
//#region src/policy/cedar-string.d.ts
|
|
17041
16932
|
export declare function escapeCedarString(value: string): string;
|
|
17042
16933
|
export declare function unescapeCedarString(value: string): string;
|
|
17043
16934
|
export declare function cedarQuotedValueRegExp(prefixSource: string, flags?: string): RegExp;
|
|
17044
16935
|
//#endregion
|
|
17045
|
-
//#region src/policy/approval-quorum.d.ts
|
|
17046
|
-
interface ApprovalQuorum {
|
|
17047
|
-
n: number;
|
|
17048
|
-
approvers: string[];
|
|
17049
|
-
}
|
|
17050
|
-
export declare function approvalQuorumForRequest(policySource: string | null | undefined, request?: RequestFacts): ApprovalQuorum | null;
|
|
17051
|
-
//#endregion
|
|
17052
|
-
//#region src/policy/step-up.d.ts
|
|
17053
|
-
interface StepUpQuorumLike {
|
|
17054
|
-
n: number;
|
|
17055
|
-
approvers: string[];
|
|
17056
|
-
}
|
|
17057
|
-
type InvalidStepUpReason = 'invalid_step_up_quorum' | 'step_up_no_approvers';
|
|
17058
|
-
type StepUpQuorumCheck = {
|
|
17059
|
-
ok: true;
|
|
17060
|
-
} | {
|
|
17061
|
-
ok: false;
|
|
17062
|
-
reason: InvalidStepUpReason;
|
|
17063
|
-
};
|
|
17064
|
-
export declare function validateStepUpQuorum(quorum: StepUpQuorumLike): StepUpQuorumCheck;
|
|
17065
|
-
//#endregion
|
|
17066
16936
|
//#region src/policy/fetcher.d.ts
|
|
17067
16937
|
interface PolicyCacheAdapter {
|
|
17068
16938
|
get(key: string): Promise<string | null>;
|
|
@@ -17125,149 +16995,6 @@ export declare function createEvaluationContext(options: {
|
|
|
17125
16995
|
userAgent?: string;
|
|
17126
16996
|
}): PolicyEvaluationContext;
|
|
17127
16997
|
//#endregion
|
|
17128
|
-
//#region src/host-adapter/verdict-cookie.d.ts
|
|
17129
|
-
interface RenderedResponseLike {
|
|
17130
|
-
status: number | null;
|
|
17131
|
-
headers: Record<string, string>;
|
|
17132
|
-
}
|
|
17133
|
-
export declare const VERDICT_COOKIE_NAME = "__checkpoint_verdict";
|
|
17134
|
-
type Verdict = 'allowed' | 'denied' | 'redirected';
|
|
17135
|
-
export declare function deriveVerdict(rendered: RenderedResponseLike): Verdict;
|
|
17136
|
-
export declare function encodeVerdictCookie(rendered: RenderedResponseLike): string;
|
|
17137
|
-
//#endregion
|
|
17138
|
-
//#region src/host-adapter/content-negotiation.d.ts
|
|
17139
|
-
export declare function acceptsHtml(input: Headers | Record<string, string | string[] | undefined> | string | undefined): boolean;
|
|
17140
|
-
//#endregion
|
|
17141
|
-
//#region src/host-adapter/decision-mapping.d.ts
|
|
17142
|
-
export declare const BLOCKED_PATH = "/blocked";
|
|
17143
|
-
type ResponseShape = 'pass-through' | 'redirect' | 'html-block' | 'json-block';
|
|
17144
|
-
export declare function classifyResponseShape(rendered: RenderedResponseLike, clientAcceptsHtml: boolean): ResponseShape;
|
|
17145
|
-
//#endregion
|
|
17146
|
-
//#region src/host-adapter/fetcher-envelope.d.ts
|
|
17147
|
-
type FetcherHeaderInput = Headers | Record<string, string | string[] | undefined> | undefined;
|
|
17148
|
-
export declare const ACCEPT_CHALLENGE_HEADER = "kya-accept-challenge";
|
|
17149
|
-
export declare function serveBodyReadable200(headers: FetcherHeaderInput, detectionClass: unknown, isAgent: boolean): boolean;
|
|
17150
|
-
type ChallengeEnvelopeMode = 'spec-401' | 'negotiated' | 'always-200';
|
|
17151
|
-
export declare function selectBodyReadable200(mode: ChallengeEnvelopeMode, headers: FetcherHeaderInput, detectionClass: unknown, isAgent: boolean): boolean;
|
|
17152
|
-
//#endregion
|
|
17153
|
-
//#region src/mcpi/kya-http-error-codes.d.ts
|
|
17154
|
-
export declare const KYA_HTTP_ERROR: {
|
|
17155
|
-
readonly MISSING_SIGNATURE: "kyaos/missing-signature";
|
|
17156
|
-
readonly INVALID_SIGNATURE: "kyaos/invalid-signature";
|
|
17157
|
-
readonly EXPIRED: "kyaos/expired";
|
|
17158
|
-
readonly REPLAY: "kyaos/replay";
|
|
17159
|
-
readonly DID_UNRESOLVABLE: "kyaos/did-unresolvable";
|
|
17160
|
-
readonly AUTHORIZATION_REQUIRED: "kyaos/authorization-required";
|
|
17161
|
-
readonly PROFILE_VIOLATION: "kyaos/profile-violation";
|
|
17162
|
-
readonly DELEGATION_REVOKED: "kyaos/delegation-revoked";
|
|
17163
|
-
readonly SCOPE_INSUFFICIENT: "kyaos/scope-insufficient";
|
|
17164
|
-
readonly CHAIN_BROKEN: "kyaos/chain-broken";
|
|
17165
|
-
readonly HOLDER_MISMATCH: "kyaos/holder-mismatch";
|
|
17166
|
-
readonly AUDIENCE_MISMATCH: "kyaos/audience-mismatch";
|
|
17167
|
-
readonly SESSION_MISMATCH: "kyaos/session-mismatch";
|
|
17168
|
-
readonly PICKUP_PINNED: "kyaos/pickup-pinned";
|
|
17169
|
-
readonly ASSURANCE_INSUFFICIENT: "kyaos/assurance-insufficient";
|
|
17170
|
-
readonly STATUS_PENDING: "kyaos/status-pending";
|
|
17171
|
-
readonly AUTHORIZATION_HOST_UNAVAILABLE: "kyaos/authorization-host-unavailable";
|
|
17172
|
-
readonly REPLAY_STATE_UNAVAILABLE: "kyaos/replay-state-unavailable";
|
|
17173
|
-
readonly REPLAY_CAPACITY: "kyaos/replay-capacity";
|
|
17174
|
-
readonly INVALID_SESSION: "kyaos/invalid-session";
|
|
17175
|
-
readonly PICKUP_EXPIRED: "kyaos/pickup-expired";
|
|
17176
|
-
};
|
|
17177
|
-
export type KyaHttpErrorCode = (typeof KYA_HTTP_ERROR)[keyof typeof KYA_HTTP_ERROR];
|
|
17178
|
-
export declare const KYA_HTTP_ERROR_STATUS: Readonly<Record<KyaHttpErrorCode, number>>;
|
|
17179
|
-
//#endregion
|
|
17180
|
-
//#region src/host-adapter/challenge-wire.d.ts
|
|
17181
|
-
type HeaderEntry = readonly [name: string, value: string];
|
|
17182
|
-
type ChallengeWireKind = 'delegation' | 'approval_quorum';
|
|
17183
|
-
interface ChallengeWireInputBase {
|
|
17184
|
-
realm: string;
|
|
17185
|
-
sid: string;
|
|
17186
|
-
consentUri: string;
|
|
17187
|
-
pickupUri: string;
|
|
17188
|
-
requiredScopes?: readonly string[];
|
|
17189
|
-
pollIntervalS?: number;
|
|
17190
|
-
challengeProof: unknown;
|
|
17191
|
-
minAssurance?: AssuranceTier;
|
|
17192
|
-
}
|
|
17193
|
-
interface DelegationChallengeWireInput extends ChallengeWireInputBase {
|
|
17194
|
-
kind?: 'delegation';
|
|
17195
|
-
resourceMetadataUri: string;
|
|
17196
|
-
}
|
|
17197
|
-
interface ApprovalQuorumChallengeWireInput extends ChallengeWireInputBase {
|
|
17198
|
-
kind: 'approval_quorum';
|
|
17199
|
-
quorum: number;
|
|
17200
|
-
actionNonce: string;
|
|
17201
|
-
}
|
|
17202
|
-
type ChallengeWireInput = DelegationChallengeWireInput | ApprovalQuorumChallengeWireInput;
|
|
17203
|
-
interface CommonChallengeKyaos {
|
|
17204
|
-
sid: string;
|
|
17205
|
-
consent_uri: string;
|
|
17206
|
-
pickup_uri: string;
|
|
17207
|
-
required_scopes?: string[];
|
|
17208
|
-
min_assurance?: AssuranceTier;
|
|
17209
|
-
poll_interval_s: number;
|
|
17210
|
-
challenge_proof: unknown;
|
|
17211
|
-
}
|
|
17212
|
-
interface DelegationChallengeKyaos extends CommonChallengeKyaos {
|
|
17213
|
-
action: {
|
|
17214
|
-
type: 'delegation';
|
|
17215
|
-
consent_uri: string;
|
|
17216
|
-
pickup_uri: string;
|
|
17217
|
-
poll_interval_s: number;
|
|
17218
|
-
pin: {
|
|
17219
|
-
header: 'X-KYA-Pickup-Token';
|
|
17220
|
-
};
|
|
17221
|
-
retry: {
|
|
17222
|
-
header: 'Authorization';
|
|
17223
|
-
scheme: 'Bearer';
|
|
17224
|
-
value_from: 'delegation';
|
|
17225
|
-
};
|
|
17226
|
-
};
|
|
17227
|
-
}
|
|
17228
|
-
interface ApprovalQuorumChallengeKyaos extends CommonChallengeKyaos {
|
|
17229
|
-
kind: 'approval_quorum';
|
|
17230
|
-
quorum: number;
|
|
17231
|
-
action_nonce: string;
|
|
17232
|
-
}
|
|
17233
|
-
interface DelegationChallengeBody {
|
|
17234
|
-
error: typeof KYA_HTTP_ERROR.AUTHORIZATION_REQUIRED;
|
|
17235
|
-
kyaos: DelegationChallengeKyaos | ApprovalQuorumChallengeKyaos;
|
|
17236
|
-
instructions: string;
|
|
17237
|
-
}
|
|
17238
|
-
interface DelegationChallengeEnvelope {
|
|
17239
|
-
status: 401 | 200;
|
|
17240
|
-
headers: HeaderEntry[];
|
|
17241
|
-
body: DelegationChallengeBody;
|
|
17242
|
-
}
|
|
17243
|
-
type DelegationChallengeEnvelopeMode = 'spec-401' | 'fetcher-200';
|
|
17244
|
-
type ChallengeWireErrorCode = 'invalid-realm' | 'invalid-sid' | 'invalid-uri' | 'invalid-scope' | 'invalid-assurance' | 'invalid-interval' | 'invalid-proof' | 'invalid-kind' | 'invalid-quorum' | 'invalid-action-nonce' | 'unsupported-envelope';
|
|
17245
|
-
export declare class ChallengeWireError extends TypeError {
|
|
17246
|
-
readonly code: ChallengeWireErrorCode;
|
|
17247
|
-
constructor(code: ChallengeWireErrorCode, message: string);
|
|
17248
|
-
}
|
|
17249
|
-
export declare function generateDelegationSid(): string;
|
|
17250
|
-
export declare function deriveDelegationPickupUri(consentUri: string, sid: string): string;
|
|
17251
|
-
export declare function buildDelegationChallengeHeader(input: ChallengeWireInput): string;
|
|
17252
|
-
export declare function buildDelegationBearerHeader(realm: string): string;
|
|
17253
|
-
export declare function buildDelegationInstructions(consentUri: string, pickupUri: string, pollIntervalS: number): string;
|
|
17254
|
-
export declare function buildDelegationChallengeBody(input: ChallengeWireInput): DelegationChallengeBody;
|
|
17255
|
-
export declare function buildDelegationChallengeEnvelope(input: ChallengeWireInput, mode?: DelegationChallengeEnvelopeMode): DelegationChallengeEnvelope;
|
|
17256
|
-
export declare const buildChallengeWire: typeof buildDelegationChallengeEnvelope;
|
|
17257
|
-
//#endregion
|
|
17258
|
-
//#region src/host-adapter/challenge-context.d.ts
|
|
17259
|
-
export declare const DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS = 3000;
|
|
17260
|
-
type ChallengeContextFailure = 'timeout' | 'resolver-error' | 'invalid-context';
|
|
17261
|
-
interface ChallengeContextFailureEvent {
|
|
17262
|
-
reason: ChallengeContextFailure;
|
|
17263
|
-
message: string;
|
|
17264
|
-
}
|
|
17265
|
-
interface ResolveChallengeContextOptions {
|
|
17266
|
-
timeoutMs?: number;
|
|
17267
|
-
onFailure?: (event: ChallengeContextFailureEvent) => void;
|
|
17268
|
-
}
|
|
17269
|
-
export declare function resolveChallengeContext<TContext>(resolver: ((context: TContext) => ChallengeWireInput | undefined | Promise<ChallengeWireInput | undefined>) | undefined, context: TContext, options?: ResolveChallengeContextOptions): Promise<ChallengeWireInput | undefined>;
|
|
17270
|
-
//#endregion
|
|
17271
16998
|
//#region src/wire/vault.d.ts
|
|
17272
16999
|
export declare const vaultResolveMetaSchema: ZodObject<{
|
|
17273
17000
|
orgSlug: ZodOptional<ZodString>;
|
|
@@ -17404,10 +17131,6 @@ export declare function resolveTrustedDelegationRoots(org: {
|
|
|
17404
17131
|
}): string[];
|
|
17405
17132
|
export declare function deriveMcpiUserDid(slug: string, userId: string): string;
|
|
17406
17133
|
//#endregion
|
|
17407
|
-
//#region src/mcpi/delegation-headers.d.ts
|
|
17408
|
-
export declare const DELEGATION_PROOF_HEADERS: readonly ["kya-os-delegation-credential", "kya-delegation"];
|
|
17409
|
-
export declare function requestCarriesDelegationProof(headers: Headers | Record<string, unknown> | null | undefined): boolean;
|
|
17410
|
-
//#endregion
|
|
17411
17134
|
//#region src/mcpi/principal.d.ts
|
|
17412
17135
|
export declare const ANONYMOUS_PRINCIPAL_DID = "did:web:kya.vouched.id:principals:anonymous";
|
|
17413
17136
|
export declare const MCP_CLIENT_DID_HOST = "knowthat.ai";
|
|
@@ -17439,8 +17162,6 @@ export declare const DelegationVerifiedBySchema: ZodEnum<{
|
|
|
17439
17162
|
checkpoint: "checkpoint";
|
|
17440
17163
|
}>;
|
|
17441
17164
|
export type DelegationVerifiedBy = output<typeof DelegationVerifiedBySchema>;
|
|
17442
|
-
export declare const REGISTERED_SID_MAX_LENGTH = 100;
|
|
17443
|
-
export declare const SID_ATTRIBUTABLE_RESULT: "verified";
|
|
17444
17165
|
export declare const ReportedDelegationSchema: ZodObject<{
|
|
17445
17166
|
jti: ZodOptional<ZodString>;
|
|
17446
17167
|
sid: ZodOptional<ZodString>;
|
|
@@ -17996,8 +17717,8 @@ export declare const ParentIntegrationStatusSchema: ZodObject<{
|
|
|
17996
17717
|
evidence: ZodNullable<ZodString>;
|
|
17997
17718
|
}, $strict>>;
|
|
17998
17719
|
state: ZodEnum<{
|
|
17999
|
-
partial: "partial";
|
|
18000
17720
|
stale: "stale";
|
|
17721
|
+
partial: "partial";
|
|
18001
17722
|
not_started: "not_started";
|
|
18002
17723
|
awaiting_integration: "awaiting_integration";
|
|
18003
17724
|
satisfied: "satisfied";
|
|
@@ -19066,18 +18787,18 @@ export declare const TaskGrantHolderListRequestSchema: ZodObject<{
|
|
|
19066
18787
|
//#region src/api/identity-provisioning.d.ts
|
|
19067
18788
|
export declare const IdentityObservationSchema: ZodObject<{
|
|
19068
18789
|
state: ZodEnum<{
|
|
18790
|
+
unavailable: "unavailable";
|
|
19069
18791
|
healthy: "healthy";
|
|
19070
18792
|
unhealthy: "unhealthy";
|
|
19071
|
-
unavailable: "unavailable";
|
|
19072
18793
|
not_observed: "not_observed";
|
|
19073
18794
|
}>;
|
|
19074
18795
|
observedAt: ZodNullable<ZodString>;
|
|
19075
18796
|
}, $strict>;
|
|
19076
18797
|
export declare const RegistryAuthorityStateSchema: ZodEnum<{
|
|
19077
|
-
|
|
18798
|
+
matches: "matches";
|
|
19078
18799
|
unavailable: "unavailable";
|
|
18800
|
+
not_found: "not_found";
|
|
19079
18801
|
not_observed: "not_observed";
|
|
19080
|
-
matches: "matches";
|
|
19081
18802
|
differs: "differs";
|
|
19082
18803
|
deactivated: "deactivated";
|
|
19083
18804
|
}>;
|
|
@@ -19099,10 +18820,10 @@ export declare const ProjectIdentitySchema: ZodObject<{
|
|
|
19099
18820
|
}, $strict>>;
|
|
19100
18821
|
authoritative: ZodObject<{
|
|
19101
18822
|
state: ZodEnum<{
|
|
19102
|
-
|
|
18823
|
+
matches: "matches";
|
|
19103
18824
|
unavailable: "unavailable";
|
|
18825
|
+
not_found: "not_found";
|
|
19104
18826
|
not_observed: "not_observed";
|
|
19105
|
-
matches: "matches";
|
|
19106
18827
|
differs: "differs";
|
|
19107
18828
|
deactivated: "deactivated";
|
|
19108
18829
|
}>;
|
|
@@ -19124,9 +18845,9 @@ export declare const ProjectIdentitySchema: ZodObject<{
|
|
|
19124
18845
|
configured: ZodBoolean;
|
|
19125
18846
|
observed: ZodObject<{
|
|
19126
18847
|
state: ZodEnum<{
|
|
18848
|
+
unavailable: "unavailable";
|
|
19127
18849
|
healthy: "healthy";
|
|
19128
18850
|
unhealthy: "unhealthy";
|
|
19129
|
-
unavailable: "unavailable";
|
|
19130
18851
|
not_observed: "not_observed";
|
|
19131
18852
|
}>;
|
|
19132
18853
|
observedAt: ZodNullable<ZodString>;
|
|
@@ -19810,6 +19531,90 @@ export declare const TrackingReadinessSchema: ZodObject<{
|
|
|
19810
19531
|
}, $strict>>;
|
|
19811
19532
|
}, $strict>;
|
|
19812
19533
|
//#endregion
|
|
19534
|
+
//#region src/api/cli-registration.d.ts
|
|
19535
|
+
export declare const CLI_PAIRING_PROTOCOL_VERSION: 2;
|
|
19536
|
+
export declare const CLI_PAIRING_UPGRADE_MESSAGE = "Upgrade the KYA-OS CLI and run checkpoint init again. This pairing requires independent terminal proof.";
|
|
19537
|
+
export declare const CliPairingProofSchema: ZodString;
|
|
19538
|
+
export declare const CLI_PAIRING_FRAMEWORKS: readonly ["nextjs", "express", "static", "unknown"];
|
|
19539
|
+
export declare const CliPairingRegisterRequestSchema: ZodObject<{
|
|
19540
|
+
protocolVersion: ZodLiteral<2>;
|
|
19541
|
+
exchangeChallenge: ZodString;
|
|
19542
|
+
domainHint: ZodOptional<ZodString>;
|
|
19543
|
+
repoName: ZodOptional<ZodString>;
|
|
19544
|
+
framework: ZodOptional<ZodEnum<{
|
|
19545
|
+
unknown: "unknown";
|
|
19546
|
+
nextjs: "nextjs";
|
|
19547
|
+
express: "express";
|
|
19548
|
+
static: "static";
|
|
19549
|
+
}>>;
|
|
19550
|
+
}, $strict>;
|
|
19551
|
+
export declare const CliPairingApprovedClaimSchema: ZodObject<{
|
|
19552
|
+
userId: ZodString;
|
|
19553
|
+
organizationId: ZodString;
|
|
19554
|
+
projectId: ZodString;
|
|
19555
|
+
}, $strict>;
|
|
19556
|
+
export declare const CliPairingClaimSchema: ZodObject<{
|
|
19557
|
+
userId: ZodString;
|
|
19558
|
+
userEmail: ZodString;
|
|
19559
|
+
userName: ZodNullable<ZodString>;
|
|
19560
|
+
organizationId: ZodString;
|
|
19561
|
+
organizationName: ZodString;
|
|
19562
|
+
organizationSlug: ZodNullable<ZodString>;
|
|
19563
|
+
projectId: ZodString;
|
|
19564
|
+
projectName: ZodString;
|
|
19565
|
+
projectDomain: ZodNullable<ZodString>;
|
|
19566
|
+
}, $strict>;
|
|
19567
|
+
export declare const CliPairingExchangeRequestSchema: ZodObject<{
|
|
19568
|
+
protocolVersion: ZodLiteral<2>;
|
|
19569
|
+
registrationId: ZodString;
|
|
19570
|
+
exchangeVerifier: ZodString;
|
|
19571
|
+
approvedClaim: ZodObject<{
|
|
19572
|
+
userId: ZodString;
|
|
19573
|
+
organizationId: ZodString;
|
|
19574
|
+
projectId: ZodString;
|
|
19575
|
+
}, $strict>;
|
|
19576
|
+
}, $strict>;
|
|
19577
|
+
export declare const CliPairingRegisterDataSchema: ZodObject<{
|
|
19578
|
+
protocolVersion: ZodLiteral<2>;
|
|
19579
|
+
registrationId: ZodString;
|
|
19580
|
+
claimToken: ZodString;
|
|
19581
|
+
claimUrl: ZodString;
|
|
19582
|
+
confirmationCode: ZodString;
|
|
19583
|
+
expiresAt: ZodString;
|
|
19584
|
+
}, $strict>;
|
|
19585
|
+
export declare const CliPairingPrivateStatusDataSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
19586
|
+
protocolVersion: ZodLiteral<2>;
|
|
19587
|
+
status: ZodLiteral<"pending">;
|
|
19588
|
+
claimed: ZodNull;
|
|
19589
|
+
}, $strict>, ZodObject<{
|
|
19590
|
+
protocolVersion: ZodLiteral<2>;
|
|
19591
|
+
status: ZodLiteral<"claimed">;
|
|
19592
|
+
claimed: ZodObject<{
|
|
19593
|
+
userId: ZodString;
|
|
19594
|
+
userEmail: ZodString;
|
|
19595
|
+
userName: ZodNullable<ZodString>;
|
|
19596
|
+
organizationId: ZodString;
|
|
19597
|
+
organizationName: ZodString;
|
|
19598
|
+
organizationSlug: ZodNullable<ZodString>;
|
|
19599
|
+
projectId: ZodString;
|
|
19600
|
+
projectName: ZodString;
|
|
19601
|
+
projectDomain: ZodNullable<ZodString>;
|
|
19602
|
+
}, $strict>;
|
|
19603
|
+
}, $strict>], "status">;
|
|
19604
|
+
export declare const CliPairingExchangeDataSchema: ZodObject<{
|
|
19605
|
+
protocolVersion: ZodLiteral<2>;
|
|
19606
|
+
userId: ZodString;
|
|
19607
|
+
projectId: ZodString;
|
|
19608
|
+
organizationId: ZodString;
|
|
19609
|
+
friendlyId: ZodNullable<ZodString>;
|
|
19610
|
+
apiKey: ZodString;
|
|
19611
|
+
dashboardUrl: ZodString;
|
|
19612
|
+
}, $strict>;
|
|
19613
|
+
export type CliPairingClaim = output<typeof CliPairingClaimSchema>;
|
|
19614
|
+
export type CliPairingApprovedClaim = output<typeof CliPairingApprovedClaimSchema>;
|
|
19615
|
+
export type CliPairingExchangeRequest = output<typeof CliPairingExchangeRequestSchema>;
|
|
19616
|
+
export type CliPairingPrivateStatusData = output<typeof CliPairingPrivateStatusDataSchema>;
|
|
19617
|
+
//#endregion
|
|
19813
19618
|
//#region src/index.d.ts
|
|
19814
19619
|
export type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]; };
|
|
19815
19620
|
export type Nullable<T> = T | null;
|
|
@@ -19822,5 +19627,5 @@ export type AsyncResult<T, E = Error> = Promise<{
|
|
|
19822
19627
|
export declare const VERSION = "0.1.0";
|
|
19823
19628
|
export declare const PACKAGE_NAME = "@kya-os/checkpoint-shared";
|
|
19824
19629
|
//#endregion
|
|
19825
|
-
export { AUTH_MODES, type AddUpdateProviderRequest, type AdminQueryParams, type AgentSourceDistribution, AgentTypeSchema as WasmAgentTypeSchema, type AllowListEntry, type AnalyticsAgentSourcesQuery, type AnalyticsAgentTypesQuery, type AnalyticsChartData, type AnalyticsExportQuery, type AnalyticsQuery, type AnalyticsRealtimeQuery, type AnalyticsRouteContext, type AnalyticsRouteHandler, type AnalyticsSessionsQuery, type AnalyticsSessionsResponse, type AnalyticsSummary as AnalyticsSessionsSummary, AnalyticsSummarySchema as AnalyticsSessionsSummarySchema, AnalyticsSummary$1 as AnalyticsSummary, AnalyticsSummarySchema$1 as AnalyticsSummarySchema, type AnalyticsTimeSeries, type ApiErrorCode, type ApiKeyRouteContext, type ApiKeyRouteHandler, type ApiMethod, type PaginationParams as ApiPaginationParams, type ApiRouteMetadata, type ApprovalQuorum, type ApprovalQuorumChallengeWireInput, type AssuranceTier, type AuthMode, type AuthProviderType, type AuthProviderTypeInput, type AuthenticatedRouteContext, type AuthenticatedRouteHandler, type AuthorizationMode, type BaseAuthProvider, type BaseRouteContext, type BatchResponse, type BlockReason, type BouncerConfig, type BouncerOutcome, type BouncerProof, type CRISPBudget, type CachedPolicy, type ChallengeContextFailure, type ChallengeContextFailureEvent, type ChallengeEnvelopeMode, type ChallengeParams, type ChallengeWireErrorCode, type ChallengeWireInput, type ChallengeWireKind, type ChangePasswordData, type ConditionField, type ConditionOperator, type ConditionValue, type ConfiguredProvider, type ConsentAgentMetadata, type ConsentBranding, type ConsentCapability, type ConsentCapabilityGroup, type ConsentConfig, type ConsentConfigMetadata, type ConsentProviderType, type ConsentTerms, type ConsentUI, type CreatedResponse, type CredentialProvider, type CredentialProviderConfig, CredentialProviderConfigSchema, type DateRangeParams, type Decision, type DecisionLike, type Delegation, type DelegationChallengeBody, type DelegationChallengeEnvelope, type DelegationChallengeEnvelopeMode, type DelegationChallengeWireInput, type DelegationPollingStatus, type DelegationStatus, type DeletedResponse, type DenyListEntry, type DetectionRouteContext, type DetectionRouteHandler, type EnforcementAction, type EnforcementMode, type EnhancedFingerprintResponse, type ExportParams, type FetcherHeaderInput, type FingerprintAnalysis, type ClientDetection$1 as FingerprintClientDetection, ClientDetectionSchema$1 as FingerprintClientDetectionSchema, type FingerprintDetectRequest, type FingerprintResponse, type ForgotPasswordData, type GatewayConfig, type GatewayConnectedAgent, type GatewayConnectionsSummary, type GatewayToolCall, type GrowthBatchRequest, type GrowthConfigurationReset, type GrowthConfigurationThresholds, type GrowthConfigurationUpdate, type GrowthOpportunitiesQuery, type GrowthOpportunityUpdate, type HeaderEntry, type HttpStatus, type IProviderRegistry, type InstructPayload, type InvalidStepUpReason, type LegacyAuthProviderType, type LintFinding, type ListResponse, type McpIPayload, type MiddlewareContext, type NetworkTiming, type NextRouteContext, type OAuth2Provider, type OAuthClient, type OAuthConnectionStatus, type OAuthMode, type OAuthProviderConfig, OAuthProviderConfigSchema, type OAuthProviderMetadata, type OAuthProviderType, type OAuthProvidersMap, type OAuthTokensResponse, type OptionalNextRouteContext, type OrganizationRouteContext, type OrganizationRouteHandler, PROVIDER_AUTH_TYPES, type PaginationMeta, PaginationParams$1 as PaginationParams, type PaginationResponse as PublicPaginationResponse, PaginationResponseSchema as PublicPaginationResponseSchema, type PerformanceRecalculationRequest, type PixelRouteContext, type PixelRouteHandler, type PolicyCacheAdapter, type PolicyCondition, type PolicyConfig, type PolicyEvaluationContext, type PolicyEvaluationResult, type PolicyFetcherConfig, type PolicyMatchType, type PolicyMetadata, type PolicyRule, type ProjectRouteContext, type ProjectRouteHandler, type ProviderAuthType, type ProviderConfig, ProviderConfigSchema, type ProviderDefinition, type ProviderRegistryDefinition, ProviderRegistryDefinitionSchema, type ProvidersResponse, type RateLimitErrorResponse, type RecommendationGeneration, type RecommendationQuery, type RedirectTarget, type RefreshScopesRequest, type RegistryLogger, type RenderedResponseLike, type RequestFacts, type ResetPasswordData, type ResolveChallengeContextOptions, type ResponseMeta, type ResponseShape, type RouteConfig, type RouteHandler, type RouteParamValue, type RouteParams, type RouteParamsFromContext, type RuleMetadata, type Scope, type SearchParams, type AgentTypeDistribution$1 as SharedAgentTypeDistribution, AgentTypeDistributionSchema as SharedAgentTypeDistributionSchema, type ApiResponse$1 as SharedApiResponse, type ConfidenceDistribution as SharedConfidenceDistribution, ConfidenceDistributionSchema as SharedConfidenceDistributionSchema, type ErrorResponse$1 as SharedErrorResponse, type ExportResponse as SharedExportResponse, type PaginatedResponse$1 as SharedPaginatedResponse, type SuccessResponse as SharedSuccessResponse, type SignInData, type SignUpData, type StaleVendorDetail, type StepUpQuorumCheck, type StepUpQuorumLike, SuccessResponse$1 as SuccessResponse, type SuggestedAction, type SupportedProviderAuthType, type TLSFingerprint, type ThresholdConfig, type ToolConsentOverrides, type UpdateBouncerConfig, type UpdatedResponse, type UpstreamServer, type UserRouteContext, type UserRouteHandler, type ValidationErrorDetail, type ValidationErrorResponse, type VendorFreshnessInput, type Verdict, type VerifyEmailData, validateProviderConfig, validateProviderDefinition };
|
|
19630
|
+
export { ACCEPT_CHALLENGE_HEADER, AUTH_MODES, type AddUpdateProviderRequest, type AdminQueryParams, type AgentSourceDistribution, AgentTypeSchema as WasmAgentTypeSchema, type AllowListEntry, AllowListEntrySchema, type AnalyticsAgentSourcesQuery, type AnalyticsAgentTypesQuery, type AnalyticsChartData, type AnalyticsExportQuery, type AnalyticsQuery, type AnalyticsRealtimeQuery, type AnalyticsRouteContext, type AnalyticsRouteHandler, type AnalyticsSessionsQuery, type AnalyticsSessionsResponse, type AnalyticsSummary as AnalyticsSessionsSummary, AnalyticsSummarySchema as AnalyticsSessionsSummarySchema, AnalyticsSummary$1 as AnalyticsSummary, AnalyticsSummarySchema$1 as AnalyticsSummarySchema, type AnalyticsTimeSeries, type ApiErrorCode, type ApiKeyRouteContext, type ApiKeyRouteHandler, type ApiMethod, type PaginationParams as ApiPaginationParams, type ApiRouteMetadata, type ApprovalQuorum, type ApprovalQuorumChallengeWireInput, type AssuranceTier, AssuranceTierSchema, type AuthMode, type AuthProviderType, type AuthProviderTypeInput, type AuthenticatedRouteContext, type AuthenticatedRouteHandler, type AuthorizationMode, BLOCKED_PATH, type BaseAuthProvider, type BaseRouteContext, type BatchResponse, type BlockReason, BlockReasonSchema, type BouncerConfig, type BouncerOutcome, type BouncerProof, type CRISPBudget, type CachedPolicy, type ChallengeContextFailure, type ChallengeContextFailureEvent, type ChallengeEnvelopeMode, type ChallengeParams, ChallengeParamsSchema, ChallengeWireError, type ChallengeWireErrorCode, type ChallengeWireInput, type ChallengeWireKind, type ChangePasswordData, ClientIpHeaderValue, ClientIpHeaders, ClientIpResolution, ClientIpSource, ClientIpTrustPolicy, type ConditionField, ConditionFieldSchema, type ConditionOperator, ConditionOperatorSchema, type ConditionValue, ConditionValueSchema, type ConfiguredProvider, type ConsentAgentMetadata, type ConsentBranding, type ConsentCapability, type ConsentCapabilityGroup, type ConsentConfig, type ConsentConfigMetadata, type ConsentPolicyResponse, type ConsentPolicyRiskLevel, type ConsentProviderType, type ConsentSignInCopy, type ConsentTerms, type ConsentUI, type CreatedResponse, type CredentialProvider, type CredentialProviderConfig, CredentialProviderConfigSchema, DEFAULT_CHALLENGE_CONTEXT_TIMEOUT_MS, DELEGATION_PROOF_HEADERS, type DateRangeParams, type Decision, type DecisionLike, DecisionSchema, type Delegation, type DelegationChallengeBody, type DelegationChallengeEnvelope, type DelegationChallengeEnvelopeMode, type DelegationChallengeWireInput, type DelegationLifecycle, type DelegationLifecycleAuditReference, type DelegationLifecycleHuman, type DelegationPollingStatus, type DelegationStatus, type DeletedResponse, type DenyListEntry, DenyListEntrySchema, type DetectionRouteContext, type DetectionRouteHandler, type EnforcementAction, EnforcementActionSchema, type EnforcementMode, EnforcementModeSchema, type EnhancedFingerprintResponse, type ExportParams, FAIL_CLOSED_BODY, FAIL_CLOSED_HEADERS, FAIL_CLOSED_STATUS, type FetcherHeaderInput, type FingerprintAnalysis, type ClientDetection$1 as FingerprintClientDetection, ClientDetectionSchema$1 as FingerprintClientDetectionSchema, type FingerprintDetectRequest, type FingerprintResponse, type ForgotPasswordData, type GatewayConfig, type GatewayConnectedAgent, type GatewayConnectionsSummary, type GatewayToolCall, type GrowthBatchRequest, type GrowthConfigurationReset, type GrowthConfigurationThresholds, type GrowthConfigurationUpdate, type GrowthOpportunitiesQuery, type GrowthOpportunityUpdate, type HeaderEntry, type HttpStatus, type IProviderRegistry, type InstructPayload, InstructPayloadSchema, type InvalidStepUpReason, KYA_HTTP_ERROR, KYA_HTTP_ERROR_STATUS, KyaHttpErrorCode, type LegacyAuthProviderType, type LintFinding, type ListResponse, type McpIPayload, type MiddlewareContext, NO_EVIDENCE_CATEGORY, NO_EVIDENCE_EQUALITY_TERM, NO_EVIDENCE_EXCLUSION_TERM, type NetworkTiming, type NextRouteContext, type OAuth2Provider, type OAuthClient, type OAuthConnectionStatus, type OAuthMode, type OAuthProviderConfig, OAuthProviderConfigSchema, type OAuthProviderMetadata, type OAuthProviderType, type OAuthProvidersMap, type OAuthTokensResponse, type OptionalNextRouteContext, type OrganizationRouteContext, type OrganizationRouteHandler, PROVIDER_AUTH_TYPES, type PaginationMeta, PaginationParams$1 as PaginationParams, type PaginationResponse as PublicPaginationResponse, PaginationResponseSchema as PublicPaginationResponseSchema, type PerformanceRecalculationRequest, type PixelRouteContext, type PixelRouteHandler, type PolicyCacheAdapter, type PolicyCondition, PolicyConditionSchema, type PolicyConfig, PolicyConfigSchema, type PolicyEvaluationContext, PolicyEvaluationContextSchema, type PolicyEvaluationResult, PolicyEvaluationResultSchema, type PolicyFetcherConfig, type PolicyHazardAnalysis, type PolicyMatchType, PolicyMatchTypeSchema, type PolicyMetadata, PolicyMetadataSchema, type PolicyRule, PolicyRuleSchema, type ProbeClass, type ProjectRouteContext, type ProjectRouteHandler, type ProviderAuthType, type ProviderConfig, ProviderConfigSchema, type ProviderDefinition, type ProviderRegistryDefinition, ProviderRegistryDefinitionSchema, type ProvidersResponse, REGISTERED_SID_MAX_LENGTH, type RateLimitErrorResponse, type RecommendationGeneration, type RecommendationQuery, type RedirectTarget, RedirectTargetSchema, type RefreshScopesRequest, type RegistryLogger, type RenderedResponseLike, type RequestFacts, type ResetPasswordData, type ResolveChallengeContextOptions, ResolveClientIpInput, type ResponseMeta, type ResponseShape, type RouteConfig, type RouteHandler, type RouteParamValue, type RouteParams, type RouteParamsFromContext, type RuleMetadata, RuleMetadataSchema, SID_ATTRIBUTABLE_RESULT, type Scope, type SearchParams, type AgentTypeDistribution$1 as SharedAgentTypeDistribution, AgentTypeDistributionSchema as SharedAgentTypeDistributionSchema, type ApiResponse$1 as SharedApiResponse, type ConfidenceDistribution as SharedConfidenceDistribution, ConfidenceDistributionSchema as SharedConfidenceDistributionSchema, type ErrorResponse$1 as SharedErrorResponse, type ExportResponse as SharedExportResponse, type PaginatedResponse$1 as SharedPaginatedResponse, type SuccessResponse as SharedSuccessResponse, type SignInData, type SignUpData, type StaleVendorDetail, type StepUpQuorumCheck, type StepUpQuorumLike, StrictEnforcementActionSchema, SuccessResponse$1 as SuccessResponse, type SuggestedAction, SuggestedActionSchema, type SupportedProviderAuthType, type TLSFingerprint, type ThresholdConfig, ThresholdConfigSchema, type ToolConsentOverrides, type UpdateBouncerConfig, type UpdatedResponse, type UpstreamServer, type UserRouteContext, type UserRouteHandler, VERDICT_COOKIE_NAME, type ValidationErrorDetail, type ValidationErrorResponse, type VendorFreshnessInput, type Verdict, type VerifyEmailData, acceptsHtml, analyzePolicySource, approvalQuorumForRequest, blockEqualityLiterals, buildChallengeWire, buildDelegationBearerHeader, buildDelegationChallengeBody, buildDelegationChallengeEnvelope, buildDelegationChallengeHeader, buildDelegationInstructions, classifyResponseShape, compressIpv6, decisionPolicyId, deriveDelegationPickupUri, deriveVerdict, encodeVerdictCookie, generateDelegationSid, isEngineEnforcing, isForbidBlock, isUnnarrowedDenyBlock, normalizeChallengeType, normalizeClientIp, parseCedarStatements, parseEvaluationContext, parseIpv6, parsePolicyConfig, pathHasExplicitDenyRuleFor, pathHasUnnarrowedDenyRule, pathHasUnnarrowedDenyRuleFor, pathLiteralsInBlock, requestCarriesDelegationProof, requestPresentedCredential, requiredScopesForRequest, resolveChallengeContext, resolveClientIp, safeParsePolicyConfig, selectBodyReadable200, serveBodyReadable200, splitCedarBlocks, statementApplies, statementId, validateProviderConfig, validateProviderDefinition, validateStepUpQuorum, withNoEvidenceExclusion };
|
|
19826
19631
|
//# sourceMappingURL=index.d.mts.map
|