@spotpatch/shared 1.8.0 → 1.10.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/dist/chunk-2LVIH7OA.js +75 -0
- package/dist/chunk-2LVIH7OA.js.map +1 -0
- package/dist/chunk-MOGITGPP.js +431 -0
- package/dist/chunk-MOGITGPP.js.map +1 -0
- package/dist/chunk-RK46Y7LD.js +34 -0
- package/dist/chunk-RK46Y7LD.js.map +1 -0
- package/dist/chunk-ZCG3DLSW.js +28 -0
- package/dist/chunk-ZCG3DLSW.js.map +1 -0
- package/dist/data-flow-runtime-BMm3F-eV.d.cts +658 -0
- package/dist/data-flow-runtime-Dp-xznQW.d.ts +658 -0
- package/dist/data-flow-runtime.cjs +78 -0
- package/dist/data-flow-runtime.cjs.map +1 -0
- package/dist/data-flow-runtime.d.cts +3 -0
- package/dist/data-flow-runtime.d.ts +3 -0
- package/dist/data-flow-runtime.js +13 -0
- package/dist/data-flow-runtime.js.map +1 -0
- package/dist/endpoints-BT-Bl1WS.d.cts +20 -0
- package/dist/endpoints-BT-Bl1WS.d.ts +20 -0
- package/dist/external-agent-node.cjs +692 -0
- package/dist/external-agent-node.cjs.map +1 -0
- package/dist/external-agent-node.d.cts +556 -0
- package/dist/external-agent-node.d.ts +556 -0
- package/dist/external-agent-node.js +210 -0
- package/dist/external-agent-node.js.map +1 -0
- package/dist/external-handoff-CWoooqhp.d.cts +720 -0
- package/dist/external-handoff-CWoooqhp.d.ts +720 -0
- package/dist/external-handoff-browser.cjs +163 -0
- package/dist/external-handoff-browser.cjs.map +1 -0
- package/dist/external-handoff-browser.d.cts +32 -0
- package/dist/external-handoff-browser.d.ts +32 -0
- package/dist/external-handoff-browser.js +58 -0
- package/dist/external-handoff-browser.js.map +1 -0
- package/dist/index.cjs +938 -154
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +212 -110
- package/dist/index.d.ts +212 -110
- package/dist/index.js +616 -302
- package/dist/index.js.map +1 -1
- package/package.json +45 -2
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
import './endpoints-BT-Bl1WS.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const DATA_FLOW_SCHEMA_VERSION: 1;
|
|
5
|
+
|
|
6
|
+
declare const DEFAULT_DATA_FLOW_LIMITS: Readonly<{
|
|
7
|
+
readonly observationMaxEntries: 100;
|
|
8
|
+
readonly observationMaxBytes: number;
|
|
9
|
+
readonly observationTtlMs: 300000;
|
|
10
|
+
readonly protocolRequestMaxBytes: number;
|
|
11
|
+
readonly reportMaxBytes: number;
|
|
12
|
+
readonly reportMaxEvidence: 200;
|
|
13
|
+
readonly reportMaxDiagnostics: 256;
|
|
14
|
+
readonly capabilityMaxReasons: 64;
|
|
15
|
+
readonly graphMaxDepth: 5;
|
|
16
|
+
readonly graphMaxModules: 50;
|
|
17
|
+
readonly graphMaxCallsites: 100;
|
|
18
|
+
readonly analysisTimeoutMs: 2000;
|
|
19
|
+
readonly reportMaxFields: 100;
|
|
20
|
+
}>;
|
|
21
|
+
type DataFlowLimits = Readonly<{
|
|
22
|
+
[Key in keyof typeof DEFAULT_DATA_FLOW_LIMITS]: number;
|
|
23
|
+
}>;
|
|
24
|
+
declare const DATA_FLOW_URL_QUERY_KEY_LIMIT: 100;
|
|
25
|
+
declare const DEFAULT_RUNTIME_DATA_FLOW_LIMITS: Readonly<{
|
|
26
|
+
observationMaxEntries: 100;
|
|
27
|
+
observationMaxBytes: number;
|
|
28
|
+
observationTtlMs: 300000;
|
|
29
|
+
reportMaxBytes: number;
|
|
30
|
+
}>;
|
|
31
|
+
type RuntimeDataFlowLimits = Readonly<{
|
|
32
|
+
[Key in keyof typeof DEFAULT_RUNTIME_DATA_FLOW_LIMITS]: number;
|
|
33
|
+
}>;
|
|
34
|
+
|
|
35
|
+
declare const DATA_FLOW_EXECUTION_STATES: readonly ["observed", "declared-not-observed", "not-applicable", "unknown"];
|
|
36
|
+
declare const DATA_FLOW_PROOF_STATES: readonly ["proven", "candidate", "unavailable", "conflict"];
|
|
37
|
+
declare const DATA_FLOW_ASSOCIATION_KINDS: readonly ["direct", "transitive", "upstream", "possible", "unassigned", "unknown"];
|
|
38
|
+
declare const DATA_FLOW_FRESHNESS_STATES: readonly ["current", "stale-source", "stale-route", "expired"];
|
|
39
|
+
declare const DATA_FLOW_DIAGNOSTIC_CODES: readonly ["DATA_FLOW_CAPABILITY_DISABLED", "DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE", "DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK", "DATA_FLOW_SOURCE_UNAVAILABLE", "DATA_FLOW_SOURCE_STALE", "DATA_FLOW_ANALYSIS_TIMEOUT", "DATA_FLOW_ANALYSIS_TRUNCATED", "DATA_FLOW_ANALYSIS_UNRESOLVED_CALL", "DATA_FLOW_OBSERVATION_UNASSIGNED", "DATA_FLOW_OBSERVATION_DROPPED", "DATA_FLOW_REDACTION_APPLIED", "DATA_FLOW_AI_DISABLED"];
|
|
40
|
+
type ExecutionState = (typeof DATA_FLOW_EXECUTION_STATES)[number];
|
|
41
|
+
type ProofState = (typeof DATA_FLOW_PROOF_STATES)[number];
|
|
42
|
+
type AssociationKind = (typeof DATA_FLOW_ASSOCIATION_KINDS)[number];
|
|
43
|
+
type FreshnessState = (typeof DATA_FLOW_FRESHNESS_STATES)[number];
|
|
44
|
+
type DataFlowDiagnosticCode = (typeof DATA_FLOW_DIAGNOSTIC_CODES)[number];
|
|
45
|
+
interface RuntimeDataFlowConfig {
|
|
46
|
+
readonly enabled: boolean;
|
|
47
|
+
readonly runtime: "dispatch";
|
|
48
|
+
readonly limits: RuntimeDataFlowLimits;
|
|
49
|
+
}
|
|
50
|
+
interface DataFlowCapabilityReason {
|
|
51
|
+
readonly code: DataFlowDiagnosticCode;
|
|
52
|
+
readonly retryable: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface DataFlowCapability {
|
|
55
|
+
readonly enabled: boolean;
|
|
56
|
+
readonly staticAnalysis: "available" | "partial" | "unavailable";
|
|
57
|
+
readonly runtimeObservation: "dispatch-only";
|
|
58
|
+
readonly responseShape: "consumed-fields-only";
|
|
59
|
+
readonly aiAssistance: "disabled";
|
|
60
|
+
readonly reasons: readonly DataFlowCapabilityReason[];
|
|
61
|
+
}
|
|
62
|
+
interface EvidenceSourceRef {
|
|
63
|
+
readonly fileId: string;
|
|
64
|
+
readonly displayPath: string;
|
|
65
|
+
readonly line: number;
|
|
66
|
+
readonly column: number;
|
|
67
|
+
readonly sourceVersion: string;
|
|
68
|
+
}
|
|
69
|
+
interface EvidenceRef {
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly kind: "source-anchor" | "import-resolution" | "symbol-edge" | "trigger-edge" | "call-edge" | "data-binding" | "adapter-rule" | "runtime-observation" | "runtime-reference" | "diagnostic";
|
|
72
|
+
readonly source?: EvidenceSourceRef;
|
|
73
|
+
readonly adapter?: Readonly<{
|
|
74
|
+
id: string;
|
|
75
|
+
version: string;
|
|
76
|
+
}>;
|
|
77
|
+
readonly summaryKey: string;
|
|
78
|
+
}
|
|
79
|
+
interface DataFlowDiagnostic {
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly code: DataFlowDiagnosticCode;
|
|
82
|
+
readonly severity: "info" | "warning" | "error";
|
|
83
|
+
readonly retryable: boolean;
|
|
84
|
+
readonly evidenceIds: readonly string[];
|
|
85
|
+
}
|
|
86
|
+
interface SanitizedObservedUrl {
|
|
87
|
+
readonly origin?: string;
|
|
88
|
+
readonly pathname: string;
|
|
89
|
+
readonly queryKeys: readonly string[];
|
|
90
|
+
}
|
|
91
|
+
interface DataParameter {
|
|
92
|
+
readonly path: string;
|
|
93
|
+
readonly position: "path" | "query" | "body" | "header" | "cookie" | "variable" | "form" | "unknown";
|
|
94
|
+
readonly type?: string;
|
|
95
|
+
readonly source?: string;
|
|
96
|
+
readonly condition?: string;
|
|
97
|
+
readonly sensitive: boolean;
|
|
98
|
+
readonly valueState: "not-collected";
|
|
99
|
+
readonly evidenceIds: readonly string[];
|
|
100
|
+
}
|
|
101
|
+
interface DataResponseDescriptor {
|
|
102
|
+
readonly consumedFields: readonly string[];
|
|
103
|
+
}
|
|
104
|
+
interface RequestOrigin {
|
|
105
|
+
readonly componentSourceId?: string;
|
|
106
|
+
readonly triggerCallsiteId?: string;
|
|
107
|
+
readonly requestCallsiteId: string;
|
|
108
|
+
readonly sourceVersion: string;
|
|
109
|
+
}
|
|
110
|
+
interface DataDependency {
|
|
111
|
+
readonly id: string;
|
|
112
|
+
readonly kind: "http" | "graphql" | "rpc" | "server-action" | "unknown";
|
|
113
|
+
readonly direction: "read" | "write" | "read-write" | "unknown";
|
|
114
|
+
readonly execution: ExecutionState;
|
|
115
|
+
readonly proof: ProofState;
|
|
116
|
+
readonly association: AssociationKind;
|
|
117
|
+
readonly method?: string;
|
|
118
|
+
readonly operation?: string;
|
|
119
|
+
readonly url?: SanitizedObservedUrl;
|
|
120
|
+
readonly parameters: readonly DataParameter[];
|
|
121
|
+
readonly response: DataResponseDescriptor;
|
|
122
|
+
readonly origin?: RequestOrigin;
|
|
123
|
+
readonly suppliedBindings: readonly string[];
|
|
124
|
+
readonly locationIds: readonly string[];
|
|
125
|
+
readonly evidenceIds: readonly string[];
|
|
126
|
+
readonly observationIds: readonly string[];
|
|
127
|
+
}
|
|
128
|
+
interface NetworkObservation {
|
|
129
|
+
readonly schemaVersion: typeof DATA_FLOW_SCHEMA_VERSION;
|
|
130
|
+
readonly id: string;
|
|
131
|
+
readonly pageEpoch: string;
|
|
132
|
+
readonly routeEpoch: string;
|
|
133
|
+
readonly requestCallsiteId?: string;
|
|
134
|
+
readonly invocationId?: string;
|
|
135
|
+
readonly componentSourceId?: string;
|
|
136
|
+
readonly triggerCallsiteId?: string;
|
|
137
|
+
readonly sourceVersion?: string;
|
|
138
|
+
readonly transport: "fetch" | "trpc" | "xhr";
|
|
139
|
+
readonly method: string;
|
|
140
|
+
readonly operation?: string;
|
|
141
|
+
readonly url: SanitizedObservedUrl;
|
|
142
|
+
readonly outcome: "dispatched";
|
|
143
|
+
readonly freshness: FreshnessState;
|
|
144
|
+
readonly diagnosticIds: readonly string[];
|
|
145
|
+
}
|
|
146
|
+
interface AnalysisBaseline {
|
|
147
|
+
readonly registryEpoch: string;
|
|
148
|
+
readonly analyzerVersion: string;
|
|
149
|
+
readonly adapterSetHash: string;
|
|
150
|
+
readonly analyzedSourceVersions: readonly string[];
|
|
151
|
+
}
|
|
152
|
+
interface ReportCompleteness {
|
|
153
|
+
readonly complete: boolean;
|
|
154
|
+
readonly visitedModules: number;
|
|
155
|
+
readonly visitedCallsites: number;
|
|
156
|
+
readonly frontierCount: number;
|
|
157
|
+
readonly truncatedBy?: "depth" | "modules" | "callsites" | "bytes" | "timeout";
|
|
158
|
+
}
|
|
159
|
+
interface ComponentIdentity {
|
|
160
|
+
readonly componentSourceId?: string;
|
|
161
|
+
readonly displayName?: string;
|
|
162
|
+
readonly source: EvidenceSourceRef;
|
|
163
|
+
}
|
|
164
|
+
interface ComponentDataFlowReport {
|
|
165
|
+
readonly schemaVersion: typeof DATA_FLOW_SCHEMA_VERSION;
|
|
166
|
+
readonly reportId: string;
|
|
167
|
+
readonly baseline: AnalysisBaseline;
|
|
168
|
+
readonly capability: DataFlowCapability;
|
|
169
|
+
readonly component: ComponentIdentity;
|
|
170
|
+
readonly dependencies: readonly DataDependency[];
|
|
171
|
+
readonly evidence: readonly EvidenceRef[];
|
|
172
|
+
readonly diagnostics: readonly DataFlowDiagnostic[];
|
|
173
|
+
readonly completeness: ReportCompleteness;
|
|
174
|
+
}
|
|
175
|
+
interface PageDataFlowReport {
|
|
176
|
+
readonly schemaVersion: typeof DATA_FLOW_SCHEMA_VERSION;
|
|
177
|
+
readonly reportId: string;
|
|
178
|
+
readonly baseline: AnalysisBaseline;
|
|
179
|
+
readonly capability: DataFlowCapability;
|
|
180
|
+
readonly dependencies: readonly DataDependency[];
|
|
181
|
+
readonly evidence: readonly EvidenceRef[];
|
|
182
|
+
readonly diagnostics: readonly DataFlowDiagnostic[];
|
|
183
|
+
readonly completeness: ReportCompleteness;
|
|
184
|
+
}
|
|
185
|
+
declare const dataDependencySchema: z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
kind: z.ZodEnum<{
|
|
188
|
+
unknown: "unknown";
|
|
189
|
+
http: "http";
|
|
190
|
+
graphql: "graphql";
|
|
191
|
+
rpc: "rpc";
|
|
192
|
+
"server-action": "server-action";
|
|
193
|
+
}>;
|
|
194
|
+
direction: z.ZodEnum<{
|
|
195
|
+
unknown: "unknown";
|
|
196
|
+
read: "read";
|
|
197
|
+
write: "write";
|
|
198
|
+
"read-write": "read-write";
|
|
199
|
+
}>;
|
|
200
|
+
execution: z.ZodEnum<{
|
|
201
|
+
observed: "observed";
|
|
202
|
+
"declared-not-observed": "declared-not-observed";
|
|
203
|
+
"not-applicable": "not-applicable";
|
|
204
|
+
unknown: "unknown";
|
|
205
|
+
}>;
|
|
206
|
+
proof: z.ZodEnum<{
|
|
207
|
+
proven: "proven";
|
|
208
|
+
candidate: "candidate";
|
|
209
|
+
unavailable: "unavailable";
|
|
210
|
+
conflict: "conflict";
|
|
211
|
+
}>;
|
|
212
|
+
association: z.ZodEnum<{
|
|
213
|
+
unknown: "unknown";
|
|
214
|
+
direct: "direct";
|
|
215
|
+
transitive: "transitive";
|
|
216
|
+
upstream: "upstream";
|
|
217
|
+
possible: "possible";
|
|
218
|
+
unassigned: "unassigned";
|
|
219
|
+
}>;
|
|
220
|
+
method: z.ZodOptional<z.ZodString>;
|
|
221
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
222
|
+
url: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
224
|
+
pathname: z.ZodString;
|
|
225
|
+
queryKeys: z.ZodArray<z.ZodString>;
|
|
226
|
+
}, z.core.$strict>>;
|
|
227
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
228
|
+
path: z.ZodString;
|
|
229
|
+
position: z.ZodEnum<{
|
|
230
|
+
unknown: "unknown";
|
|
231
|
+
path: "path";
|
|
232
|
+
query: "query";
|
|
233
|
+
body: "body";
|
|
234
|
+
header: "header";
|
|
235
|
+
cookie: "cookie";
|
|
236
|
+
variable: "variable";
|
|
237
|
+
form: "form";
|
|
238
|
+
}>;
|
|
239
|
+
type: z.ZodOptional<z.ZodString>;
|
|
240
|
+
source: z.ZodOptional<z.ZodString>;
|
|
241
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
242
|
+
sensitive: z.ZodBoolean;
|
|
243
|
+
valueState: z.ZodLiteral<"not-collected">;
|
|
244
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
245
|
+
}, z.core.$strict>>;
|
|
246
|
+
response: z.ZodObject<{
|
|
247
|
+
consumedFields: z.ZodArray<z.ZodString>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
251
|
+
triggerCallsiteId: z.ZodOptional<z.ZodString>;
|
|
252
|
+
requestCallsiteId: z.ZodString;
|
|
253
|
+
sourceVersion: z.ZodString;
|
|
254
|
+
}, z.core.$strict>>;
|
|
255
|
+
suppliedBindings: z.ZodArray<z.ZodString>;
|
|
256
|
+
locationIds: z.ZodArray<z.ZodString>;
|
|
257
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
258
|
+
observationIds: z.ZodArray<z.ZodString>;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
declare const networkObservationSchema: z.ZodObject<{
|
|
261
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
262
|
+
id: z.ZodString;
|
|
263
|
+
pageEpoch: z.ZodString;
|
|
264
|
+
routeEpoch: z.ZodString;
|
|
265
|
+
requestCallsiteId: z.ZodOptional<z.ZodString>;
|
|
266
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
267
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
268
|
+
triggerCallsiteId: z.ZodOptional<z.ZodString>;
|
|
269
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
270
|
+
transport: z.ZodEnum<{
|
|
271
|
+
fetch: "fetch";
|
|
272
|
+
trpc: "trpc";
|
|
273
|
+
xhr: "xhr";
|
|
274
|
+
}>;
|
|
275
|
+
method: z.ZodString;
|
|
276
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
277
|
+
url: z.ZodObject<{
|
|
278
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
279
|
+
pathname: z.ZodString;
|
|
280
|
+
queryKeys: z.ZodArray<z.ZodString>;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
outcome: z.ZodLiteral<"dispatched">;
|
|
283
|
+
freshness: z.ZodEnum<{
|
|
284
|
+
current: "current";
|
|
285
|
+
"stale-source": "stale-source";
|
|
286
|
+
"stale-route": "stale-route";
|
|
287
|
+
expired: "expired";
|
|
288
|
+
}>;
|
|
289
|
+
diagnosticIds: z.ZodArray<z.ZodString>;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
declare const componentDataFlowReportSchema: z.ZodObject<{
|
|
292
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
293
|
+
reportId: z.ZodString;
|
|
294
|
+
baseline: z.ZodObject<{
|
|
295
|
+
registryEpoch: z.ZodString;
|
|
296
|
+
analyzerVersion: z.ZodString;
|
|
297
|
+
adapterSetHash: z.ZodString;
|
|
298
|
+
analyzedSourceVersions: z.ZodArray<z.ZodString>;
|
|
299
|
+
}, z.core.$strict>;
|
|
300
|
+
capability: z.ZodObject<{
|
|
301
|
+
enabled: z.ZodBoolean;
|
|
302
|
+
staticAnalysis: z.ZodEnum<{
|
|
303
|
+
unavailable: "unavailable";
|
|
304
|
+
available: "available";
|
|
305
|
+
partial: "partial";
|
|
306
|
+
}>;
|
|
307
|
+
runtimeObservation: z.ZodLiteral<"dispatch-only">;
|
|
308
|
+
responseShape: z.ZodLiteral<"consumed-fields-only">;
|
|
309
|
+
aiAssistance: z.ZodLiteral<"disabled">;
|
|
310
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
311
|
+
code: z.ZodEnum<{
|
|
312
|
+
DATA_FLOW_CAPABILITY_DISABLED: "DATA_FLOW_CAPABILITY_DISABLED";
|
|
313
|
+
DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE: "DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE";
|
|
314
|
+
DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK: "DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK";
|
|
315
|
+
DATA_FLOW_SOURCE_UNAVAILABLE: "DATA_FLOW_SOURCE_UNAVAILABLE";
|
|
316
|
+
DATA_FLOW_SOURCE_STALE: "DATA_FLOW_SOURCE_STALE";
|
|
317
|
+
DATA_FLOW_ANALYSIS_TIMEOUT: "DATA_FLOW_ANALYSIS_TIMEOUT";
|
|
318
|
+
DATA_FLOW_ANALYSIS_TRUNCATED: "DATA_FLOW_ANALYSIS_TRUNCATED";
|
|
319
|
+
DATA_FLOW_ANALYSIS_UNRESOLVED_CALL: "DATA_FLOW_ANALYSIS_UNRESOLVED_CALL";
|
|
320
|
+
DATA_FLOW_OBSERVATION_UNASSIGNED: "DATA_FLOW_OBSERVATION_UNASSIGNED";
|
|
321
|
+
DATA_FLOW_OBSERVATION_DROPPED: "DATA_FLOW_OBSERVATION_DROPPED";
|
|
322
|
+
DATA_FLOW_REDACTION_APPLIED: "DATA_FLOW_REDACTION_APPLIED";
|
|
323
|
+
DATA_FLOW_AI_DISABLED: "DATA_FLOW_AI_DISABLED";
|
|
324
|
+
}>;
|
|
325
|
+
retryable: z.ZodBoolean;
|
|
326
|
+
}, z.core.$strict>>;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
component: z.ZodObject<{
|
|
329
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
330
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
331
|
+
source: z.ZodObject<{
|
|
332
|
+
fileId: z.ZodString;
|
|
333
|
+
displayPath: z.ZodString;
|
|
334
|
+
line: z.ZodNumber;
|
|
335
|
+
column: z.ZodNumber;
|
|
336
|
+
sourceVersion: z.ZodString;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
}, z.core.$strict>;
|
|
339
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
340
|
+
id: z.ZodString;
|
|
341
|
+
kind: z.ZodEnum<{
|
|
342
|
+
unknown: "unknown";
|
|
343
|
+
http: "http";
|
|
344
|
+
graphql: "graphql";
|
|
345
|
+
rpc: "rpc";
|
|
346
|
+
"server-action": "server-action";
|
|
347
|
+
}>;
|
|
348
|
+
direction: z.ZodEnum<{
|
|
349
|
+
unknown: "unknown";
|
|
350
|
+
read: "read";
|
|
351
|
+
write: "write";
|
|
352
|
+
"read-write": "read-write";
|
|
353
|
+
}>;
|
|
354
|
+
execution: z.ZodEnum<{
|
|
355
|
+
observed: "observed";
|
|
356
|
+
"declared-not-observed": "declared-not-observed";
|
|
357
|
+
"not-applicable": "not-applicable";
|
|
358
|
+
unknown: "unknown";
|
|
359
|
+
}>;
|
|
360
|
+
proof: z.ZodEnum<{
|
|
361
|
+
proven: "proven";
|
|
362
|
+
candidate: "candidate";
|
|
363
|
+
unavailable: "unavailable";
|
|
364
|
+
conflict: "conflict";
|
|
365
|
+
}>;
|
|
366
|
+
association: z.ZodEnum<{
|
|
367
|
+
unknown: "unknown";
|
|
368
|
+
direct: "direct";
|
|
369
|
+
transitive: "transitive";
|
|
370
|
+
upstream: "upstream";
|
|
371
|
+
possible: "possible";
|
|
372
|
+
unassigned: "unassigned";
|
|
373
|
+
}>;
|
|
374
|
+
method: z.ZodOptional<z.ZodString>;
|
|
375
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
376
|
+
url: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
378
|
+
pathname: z.ZodString;
|
|
379
|
+
queryKeys: z.ZodArray<z.ZodString>;
|
|
380
|
+
}, z.core.$strict>>;
|
|
381
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
382
|
+
path: z.ZodString;
|
|
383
|
+
position: z.ZodEnum<{
|
|
384
|
+
unknown: "unknown";
|
|
385
|
+
path: "path";
|
|
386
|
+
query: "query";
|
|
387
|
+
body: "body";
|
|
388
|
+
header: "header";
|
|
389
|
+
cookie: "cookie";
|
|
390
|
+
variable: "variable";
|
|
391
|
+
form: "form";
|
|
392
|
+
}>;
|
|
393
|
+
type: z.ZodOptional<z.ZodString>;
|
|
394
|
+
source: z.ZodOptional<z.ZodString>;
|
|
395
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
396
|
+
sensitive: z.ZodBoolean;
|
|
397
|
+
valueState: z.ZodLiteral<"not-collected">;
|
|
398
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
399
|
+
}, z.core.$strict>>;
|
|
400
|
+
response: z.ZodObject<{
|
|
401
|
+
consumedFields: z.ZodArray<z.ZodString>;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
405
|
+
triggerCallsiteId: z.ZodOptional<z.ZodString>;
|
|
406
|
+
requestCallsiteId: z.ZodString;
|
|
407
|
+
sourceVersion: z.ZodString;
|
|
408
|
+
}, z.core.$strict>>;
|
|
409
|
+
suppliedBindings: z.ZodArray<z.ZodString>;
|
|
410
|
+
locationIds: z.ZodArray<z.ZodString>;
|
|
411
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
412
|
+
observationIds: z.ZodArray<z.ZodString>;
|
|
413
|
+
}, z.core.$strict>>;
|
|
414
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
415
|
+
id: z.ZodString;
|
|
416
|
+
kind: z.ZodEnum<{
|
|
417
|
+
"source-anchor": "source-anchor";
|
|
418
|
+
"import-resolution": "import-resolution";
|
|
419
|
+
"symbol-edge": "symbol-edge";
|
|
420
|
+
"trigger-edge": "trigger-edge";
|
|
421
|
+
"call-edge": "call-edge";
|
|
422
|
+
"data-binding": "data-binding";
|
|
423
|
+
"adapter-rule": "adapter-rule";
|
|
424
|
+
"runtime-observation": "runtime-observation";
|
|
425
|
+
"runtime-reference": "runtime-reference";
|
|
426
|
+
diagnostic: "diagnostic";
|
|
427
|
+
}>;
|
|
428
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
429
|
+
fileId: z.ZodString;
|
|
430
|
+
displayPath: z.ZodString;
|
|
431
|
+
line: z.ZodNumber;
|
|
432
|
+
column: z.ZodNumber;
|
|
433
|
+
sourceVersion: z.ZodString;
|
|
434
|
+
}, z.core.$strict>>;
|
|
435
|
+
adapter: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
id: z.ZodString;
|
|
437
|
+
version: z.ZodString;
|
|
438
|
+
}, z.core.$strict>>;
|
|
439
|
+
summaryKey: z.ZodString;
|
|
440
|
+
}, z.core.$strict>>;
|
|
441
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
442
|
+
id: z.ZodString;
|
|
443
|
+
code: z.ZodEnum<{
|
|
444
|
+
DATA_FLOW_CAPABILITY_DISABLED: "DATA_FLOW_CAPABILITY_DISABLED";
|
|
445
|
+
DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE: "DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE";
|
|
446
|
+
DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK: "DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK";
|
|
447
|
+
DATA_FLOW_SOURCE_UNAVAILABLE: "DATA_FLOW_SOURCE_UNAVAILABLE";
|
|
448
|
+
DATA_FLOW_SOURCE_STALE: "DATA_FLOW_SOURCE_STALE";
|
|
449
|
+
DATA_FLOW_ANALYSIS_TIMEOUT: "DATA_FLOW_ANALYSIS_TIMEOUT";
|
|
450
|
+
DATA_FLOW_ANALYSIS_TRUNCATED: "DATA_FLOW_ANALYSIS_TRUNCATED";
|
|
451
|
+
DATA_FLOW_ANALYSIS_UNRESOLVED_CALL: "DATA_FLOW_ANALYSIS_UNRESOLVED_CALL";
|
|
452
|
+
DATA_FLOW_OBSERVATION_UNASSIGNED: "DATA_FLOW_OBSERVATION_UNASSIGNED";
|
|
453
|
+
DATA_FLOW_OBSERVATION_DROPPED: "DATA_FLOW_OBSERVATION_DROPPED";
|
|
454
|
+
DATA_FLOW_REDACTION_APPLIED: "DATA_FLOW_REDACTION_APPLIED";
|
|
455
|
+
DATA_FLOW_AI_DISABLED: "DATA_FLOW_AI_DISABLED";
|
|
456
|
+
}>;
|
|
457
|
+
severity: z.ZodEnum<{
|
|
458
|
+
info: "info";
|
|
459
|
+
warning: "warning";
|
|
460
|
+
error: "error";
|
|
461
|
+
}>;
|
|
462
|
+
retryable: z.ZodBoolean;
|
|
463
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
464
|
+
}, z.core.$strict>>;
|
|
465
|
+
completeness: z.ZodObject<{
|
|
466
|
+
complete: z.ZodBoolean;
|
|
467
|
+
visitedModules: z.ZodNumber;
|
|
468
|
+
visitedCallsites: z.ZodNumber;
|
|
469
|
+
frontierCount: z.ZodNumber;
|
|
470
|
+
truncatedBy: z.ZodOptional<z.ZodEnum<{
|
|
471
|
+
depth: "depth";
|
|
472
|
+
modules: "modules";
|
|
473
|
+
callsites: "callsites";
|
|
474
|
+
bytes: "bytes";
|
|
475
|
+
timeout: "timeout";
|
|
476
|
+
}>>;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
}, z.core.$strict>;
|
|
479
|
+
declare const pageDataFlowReportSchema: z.ZodObject<{
|
|
480
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
481
|
+
reportId: z.ZodString;
|
|
482
|
+
baseline: z.ZodObject<{
|
|
483
|
+
registryEpoch: z.ZodString;
|
|
484
|
+
analyzerVersion: z.ZodString;
|
|
485
|
+
adapterSetHash: z.ZodString;
|
|
486
|
+
analyzedSourceVersions: z.ZodArray<z.ZodString>;
|
|
487
|
+
}, z.core.$strict>;
|
|
488
|
+
capability: z.ZodObject<{
|
|
489
|
+
enabled: z.ZodBoolean;
|
|
490
|
+
staticAnalysis: z.ZodEnum<{
|
|
491
|
+
unavailable: "unavailable";
|
|
492
|
+
available: "available";
|
|
493
|
+
partial: "partial";
|
|
494
|
+
}>;
|
|
495
|
+
runtimeObservation: z.ZodLiteral<"dispatch-only">;
|
|
496
|
+
responseShape: z.ZodLiteral<"consumed-fields-only">;
|
|
497
|
+
aiAssistance: z.ZodLiteral<"disabled">;
|
|
498
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
499
|
+
code: z.ZodEnum<{
|
|
500
|
+
DATA_FLOW_CAPABILITY_DISABLED: "DATA_FLOW_CAPABILITY_DISABLED";
|
|
501
|
+
DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE: "DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE";
|
|
502
|
+
DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK: "DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK";
|
|
503
|
+
DATA_FLOW_SOURCE_UNAVAILABLE: "DATA_FLOW_SOURCE_UNAVAILABLE";
|
|
504
|
+
DATA_FLOW_SOURCE_STALE: "DATA_FLOW_SOURCE_STALE";
|
|
505
|
+
DATA_FLOW_ANALYSIS_TIMEOUT: "DATA_FLOW_ANALYSIS_TIMEOUT";
|
|
506
|
+
DATA_FLOW_ANALYSIS_TRUNCATED: "DATA_FLOW_ANALYSIS_TRUNCATED";
|
|
507
|
+
DATA_FLOW_ANALYSIS_UNRESOLVED_CALL: "DATA_FLOW_ANALYSIS_UNRESOLVED_CALL";
|
|
508
|
+
DATA_FLOW_OBSERVATION_UNASSIGNED: "DATA_FLOW_OBSERVATION_UNASSIGNED";
|
|
509
|
+
DATA_FLOW_OBSERVATION_DROPPED: "DATA_FLOW_OBSERVATION_DROPPED";
|
|
510
|
+
DATA_FLOW_REDACTION_APPLIED: "DATA_FLOW_REDACTION_APPLIED";
|
|
511
|
+
DATA_FLOW_AI_DISABLED: "DATA_FLOW_AI_DISABLED";
|
|
512
|
+
}>;
|
|
513
|
+
retryable: z.ZodBoolean;
|
|
514
|
+
}, z.core.$strict>>;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
dependencies: z.ZodArray<z.ZodObject<{
|
|
517
|
+
id: z.ZodString;
|
|
518
|
+
kind: z.ZodEnum<{
|
|
519
|
+
unknown: "unknown";
|
|
520
|
+
http: "http";
|
|
521
|
+
graphql: "graphql";
|
|
522
|
+
rpc: "rpc";
|
|
523
|
+
"server-action": "server-action";
|
|
524
|
+
}>;
|
|
525
|
+
direction: z.ZodEnum<{
|
|
526
|
+
unknown: "unknown";
|
|
527
|
+
read: "read";
|
|
528
|
+
write: "write";
|
|
529
|
+
"read-write": "read-write";
|
|
530
|
+
}>;
|
|
531
|
+
execution: z.ZodEnum<{
|
|
532
|
+
observed: "observed";
|
|
533
|
+
"declared-not-observed": "declared-not-observed";
|
|
534
|
+
"not-applicable": "not-applicable";
|
|
535
|
+
unknown: "unknown";
|
|
536
|
+
}>;
|
|
537
|
+
proof: z.ZodEnum<{
|
|
538
|
+
proven: "proven";
|
|
539
|
+
candidate: "candidate";
|
|
540
|
+
unavailable: "unavailable";
|
|
541
|
+
conflict: "conflict";
|
|
542
|
+
}>;
|
|
543
|
+
association: z.ZodEnum<{
|
|
544
|
+
unknown: "unknown";
|
|
545
|
+
direct: "direct";
|
|
546
|
+
transitive: "transitive";
|
|
547
|
+
upstream: "upstream";
|
|
548
|
+
possible: "possible";
|
|
549
|
+
unassigned: "unassigned";
|
|
550
|
+
}>;
|
|
551
|
+
method: z.ZodOptional<z.ZodString>;
|
|
552
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
553
|
+
url: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
origin: z.ZodOptional<z.ZodString>;
|
|
555
|
+
pathname: z.ZodString;
|
|
556
|
+
queryKeys: z.ZodArray<z.ZodString>;
|
|
557
|
+
}, z.core.$strict>>;
|
|
558
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
559
|
+
path: z.ZodString;
|
|
560
|
+
position: z.ZodEnum<{
|
|
561
|
+
unknown: "unknown";
|
|
562
|
+
path: "path";
|
|
563
|
+
query: "query";
|
|
564
|
+
body: "body";
|
|
565
|
+
header: "header";
|
|
566
|
+
cookie: "cookie";
|
|
567
|
+
variable: "variable";
|
|
568
|
+
form: "form";
|
|
569
|
+
}>;
|
|
570
|
+
type: z.ZodOptional<z.ZodString>;
|
|
571
|
+
source: z.ZodOptional<z.ZodString>;
|
|
572
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
573
|
+
sensitive: z.ZodBoolean;
|
|
574
|
+
valueState: z.ZodLiteral<"not-collected">;
|
|
575
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
576
|
+
}, z.core.$strict>>;
|
|
577
|
+
response: z.ZodObject<{
|
|
578
|
+
consumedFields: z.ZodArray<z.ZodString>;
|
|
579
|
+
}, z.core.$strict>;
|
|
580
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
componentSourceId: z.ZodOptional<z.ZodString>;
|
|
582
|
+
triggerCallsiteId: z.ZodOptional<z.ZodString>;
|
|
583
|
+
requestCallsiteId: z.ZodString;
|
|
584
|
+
sourceVersion: z.ZodString;
|
|
585
|
+
}, z.core.$strict>>;
|
|
586
|
+
suppliedBindings: z.ZodArray<z.ZodString>;
|
|
587
|
+
locationIds: z.ZodArray<z.ZodString>;
|
|
588
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
589
|
+
observationIds: z.ZodArray<z.ZodString>;
|
|
590
|
+
}, z.core.$strict>>;
|
|
591
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
592
|
+
id: z.ZodString;
|
|
593
|
+
kind: z.ZodEnum<{
|
|
594
|
+
"source-anchor": "source-anchor";
|
|
595
|
+
"import-resolution": "import-resolution";
|
|
596
|
+
"symbol-edge": "symbol-edge";
|
|
597
|
+
"trigger-edge": "trigger-edge";
|
|
598
|
+
"call-edge": "call-edge";
|
|
599
|
+
"data-binding": "data-binding";
|
|
600
|
+
"adapter-rule": "adapter-rule";
|
|
601
|
+
"runtime-observation": "runtime-observation";
|
|
602
|
+
"runtime-reference": "runtime-reference";
|
|
603
|
+
diagnostic: "diagnostic";
|
|
604
|
+
}>;
|
|
605
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
606
|
+
fileId: z.ZodString;
|
|
607
|
+
displayPath: z.ZodString;
|
|
608
|
+
line: z.ZodNumber;
|
|
609
|
+
column: z.ZodNumber;
|
|
610
|
+
sourceVersion: z.ZodString;
|
|
611
|
+
}, z.core.$strict>>;
|
|
612
|
+
adapter: z.ZodOptional<z.ZodObject<{
|
|
613
|
+
id: z.ZodString;
|
|
614
|
+
version: z.ZodString;
|
|
615
|
+
}, z.core.$strict>>;
|
|
616
|
+
summaryKey: z.ZodString;
|
|
617
|
+
}, z.core.$strict>>;
|
|
618
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
code: z.ZodEnum<{
|
|
621
|
+
DATA_FLOW_CAPABILITY_DISABLED: "DATA_FLOW_CAPABILITY_DISABLED";
|
|
622
|
+
DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE: "DATA_FLOW_CAPABILITY_PRELUDE_UNAVAILABLE";
|
|
623
|
+
DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK: "DATA_FLOW_CAPABILITY_UNSUPPORTED_FRAMEWORK";
|
|
624
|
+
DATA_FLOW_SOURCE_UNAVAILABLE: "DATA_FLOW_SOURCE_UNAVAILABLE";
|
|
625
|
+
DATA_FLOW_SOURCE_STALE: "DATA_FLOW_SOURCE_STALE";
|
|
626
|
+
DATA_FLOW_ANALYSIS_TIMEOUT: "DATA_FLOW_ANALYSIS_TIMEOUT";
|
|
627
|
+
DATA_FLOW_ANALYSIS_TRUNCATED: "DATA_FLOW_ANALYSIS_TRUNCATED";
|
|
628
|
+
DATA_FLOW_ANALYSIS_UNRESOLVED_CALL: "DATA_FLOW_ANALYSIS_UNRESOLVED_CALL";
|
|
629
|
+
DATA_FLOW_OBSERVATION_UNASSIGNED: "DATA_FLOW_OBSERVATION_UNASSIGNED";
|
|
630
|
+
DATA_FLOW_OBSERVATION_DROPPED: "DATA_FLOW_OBSERVATION_DROPPED";
|
|
631
|
+
DATA_FLOW_REDACTION_APPLIED: "DATA_FLOW_REDACTION_APPLIED";
|
|
632
|
+
DATA_FLOW_AI_DISABLED: "DATA_FLOW_AI_DISABLED";
|
|
633
|
+
}>;
|
|
634
|
+
severity: z.ZodEnum<{
|
|
635
|
+
info: "info";
|
|
636
|
+
warning: "warning";
|
|
637
|
+
error: "error";
|
|
638
|
+
}>;
|
|
639
|
+
retryable: z.ZodBoolean;
|
|
640
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
641
|
+
}, z.core.$strict>>;
|
|
642
|
+
completeness: z.ZodObject<{
|
|
643
|
+
complete: z.ZodBoolean;
|
|
644
|
+
visitedModules: z.ZodNumber;
|
|
645
|
+
visitedCallsites: z.ZodNumber;
|
|
646
|
+
frontierCount: z.ZodNumber;
|
|
647
|
+
truncatedBy: z.ZodOptional<z.ZodEnum<{
|
|
648
|
+
depth: "depth";
|
|
649
|
+
modules: "modules";
|
|
650
|
+
callsites: "callsites";
|
|
651
|
+
bytes: "bytes";
|
|
652
|
+
timeout: "timeout";
|
|
653
|
+
}>>;
|
|
654
|
+
}, z.core.$strict>;
|
|
655
|
+
}, z.core.$strict>;
|
|
656
|
+
declare const runtimeDataFlowConfigSchema: z.ZodType<RuntimeDataFlowConfig>;
|
|
657
|
+
|
|
658
|
+
export { type AnalysisBaseline as A, networkObservationSchema as B, type ComponentDataFlowReport as C, DATA_FLOW_ASSOCIATION_KINDS as D, type EvidenceRef as E, type FreshnessState as F, pageDataFlowReportSchema as G, runtimeDataFlowConfigSchema as H, type NetworkObservation as N, type PageDataFlowReport as P, type ReportCompleteness as R, type SanitizedObservedUrl as S, type RuntimeDataFlowConfig as a, type AssociationKind as b, type ComponentIdentity as c, DATA_FLOW_DIAGNOSTIC_CODES as d, DATA_FLOW_EXECUTION_STATES as e, DATA_FLOW_FRESHNESS_STATES as f, DATA_FLOW_PROOF_STATES as g, DATA_FLOW_SCHEMA_VERSION as h, DATA_FLOW_URL_QUERY_KEY_LIMIT as i, DEFAULT_DATA_FLOW_LIMITS as j, DEFAULT_RUNTIME_DATA_FLOW_LIMITS as k, type DataDependency as l, type DataFlowCapability as m, type DataFlowCapabilityReason as n, type DataFlowDiagnostic as o, type DataFlowDiagnosticCode as p, type DataFlowLimits as q, type DataParameter as r, type DataResponseDescriptor as s, type EvidenceSourceRef as t, type ExecutionState as u, type ProofState as v, type RequestOrigin as w, type RuntimeDataFlowLimits as x, componentDataFlowReportSchema as y, dataDependencySchema as z };
|