@davesheffer/hunch 1.31.0 → 1.32.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/README.md +3 -6
- package/dist/cli/automaticReviewMemory.d.ts +13 -0
- package/dist/cli/dna.d.ts +2 -0
- package/dist/cli/index.d.ts +16 -0
- package/dist/cli/index.js +602 -43
- package/dist/cli/integrations.d.ts +2 -0
- package/dist/cli/integrations.js +5 -2
- package/dist/cli/invocation.d.ts +35 -0
- package/dist/cli/preflight.d.ts +1 -0
- package/dist/cli/reviewMemory.d.ts +4 -0
- package/dist/cli/reviewMemoryProvider.d.ts +14 -0
- package/dist/cli/serve.d.ts +2 -0
- package/dist/cli/taskReport.d.ts +6 -0
- package/dist/cli/taskReport.js +124 -0
- package/dist/cli/update.d.ts +14 -0
- package/dist/client/state.d.ts +248 -0
- package/dist/client/state.js +2 -0
- package/dist/constitution/adapters.d.ts +29 -0
- package/dist/constitution/behaviorAttestationBinding.d.ts +3 -0
- package/dist/constitution/behaviorEvaluator.d.ts +8 -0
- package/dist/constitution/behaviorProof.d.ts +9 -0
- package/dist/constitution/behaviorWorkspace.d.ts +25 -0
- package/dist/constitution/bootstrap.d.ts +30 -0
- package/dist/constitution/canonical.d.ts +15 -0
- package/dist/constitution/card.d.ts +58 -0
- package/dist/constitution/compiler.d.ts +52 -0
- package/dist/constitution/composition.d.ts +10 -0
- package/dist/constitution/corpus.d.ts +7 -0
- package/dist/constitution/correctionPolicyMaterializer.d.ts +57 -0
- package/dist/constitution/delta.d.ts +4 -0
- package/dist/constitution/disposition.d.ts +20 -0
- package/dist/constitution/evaluator.d.ts +47 -0
- package/dist/constitution/experiment.d.ts +466 -0
- package/dist/constitution/experimentRunner.d.ts +7 -0
- package/dist/constitution/g2.d.ts +209 -0
- package/dist/constitution/g2BehaviorAttestation.d.ts +45 -0
- package/dist/constitution/g2BehaviorCandidates.d.ts +123 -0
- package/dist/constitution/g2BehaviorDependencies.d.ts +83 -0
- package/dist/constitution/g2BehaviorMaterialization.d.ts +77 -0
- package/dist/constitution/g2BehaviorPolicyMaterializer.d.ts +48 -0
- package/dist/constitution/g2CandidateAttestation.d.ts +43 -0
- package/dist/constitution/g2Candidates.d.ts +80 -0
- package/dist/constitution/g2Drills.d.ts +33 -0
- package/dist/constitution/g3.d.ts +311 -0
- package/dist/constitution/g3Conformance.d.ts +33 -0
- package/dist/constitution/lifecycle.d.ts +25 -0
- package/dist/constitution/mutation.d.ts +15 -0
- package/dist/constitution/nodeTestEvidence.d.ts +13 -0
- package/dist/constitution/plan.d.ts +18 -0
- package/dist/constitution/policyRuntime.d.ts +5 -0
- package/dist/constitution/proof.d.ts +11 -0
- package/dist/constitution/repairPolicies.d.ts +34 -0
- package/dist/constitution/replacementFreeGit.d.ts +14 -0
- package/dist/constitution/replay.d.ts +40 -0
- package/dist/constitution/replayCache.d.ts +14 -0
- package/dist/constitution/replayWorker.d.ts +1 -0
- package/dist/constitution/repository.d.ts +129 -0
- package/dist/constitution/safeCheckout.d.ts +9 -0
- package/dist/constitution/schema.d.ts +1763 -0
- package/dist/constitution/scorecard.d.ts +219 -0
- package/dist/constitution/service.d.ts +398 -0
- package/dist/constitution/shadow.d.ts +54 -0
- package/dist/constitution/sourceMutation.d.ts +15 -0
- package/dist/constitution/staticGraphBaseline.d.ts +13 -0
- package/dist/constitution/structural.d.ts +64 -0
- package/dist/core/agenthook.d.ts +63 -0
- package/dist/core/agenthook.js +1 -0
- package/dist/core/automaticReviewMemory.d.ts +60 -0
- package/dist/core/autoreview.d.ts +66 -0
- package/dist/core/canonicalOrder.d.ts +3 -0
- package/dist/core/capturetoken.d.ts +19 -0
- package/dist/core/changeIdentity.d.ts +22 -0
- package/dist/core/changeProof.d.ts +14 -0
- package/dist/core/checkreport.d.ts +140 -0
- package/dist/core/commitrepair.d.ts +171 -0
- package/dist/core/commitrepair.js +238 -0
- package/dist/core/compare.d.ts +21 -0
- package/dist/core/config.d.ts +20 -0
- package/dist/core/conformance.d.ts +35 -0
- package/dist/core/constraintmatch.d.ts +54 -0
- package/dist/core/correction.d.ts +42 -0
- package/dist/core/correctionStage.d.ts +224 -0
- package/dist/core/declarationClusters.d.ts +149 -0
- package/dist/core/delivery.d.ts +110 -0
- package/dist/core/docanchors.d.ts +32 -0
- package/dist/core/docscan.d.ts +26 -0
- package/dist/core/drift.d.ts +13 -0
- package/dist/core/drift.js +31 -1
- package/dist/core/dupdetect.d.ts +43 -0
- package/dist/core/escalations.d.ts +129 -0
- package/dist/core/escalations.js +165 -0
- package/dist/core/events.d.ts +29 -0
- package/dist/core/evidenceMap.d.ts +164 -0
- package/dist/core/externalImports.d.ts +8 -0
- package/dist/core/format.d.ts +13 -0
- package/dist/core/glob.d.ts +9 -0
- package/dist/core/groundingLag.d.ts +84 -0
- package/dist/core/groundingLag.js +16 -2
- package/dist/core/groundingMerge.d.ts +15 -0
- package/dist/core/groundingMerge.js +95 -0
- package/dist/core/hookcache.d.ts +10 -0
- package/dist/core/hookpolicy.d.ts +47 -0
- package/dist/core/ids.d.ts +36 -0
- package/dist/core/importReview.d.ts +30 -0
- package/dist/core/io.d.ts +23 -0
- package/dist/core/jsonc.d.ts +4 -0
- package/dist/core/landscapeAdoption.d.ts +66 -0
- package/dist/core/landscapeDelivery.d.ts +76 -0
- package/dist/core/memorylog.d.ts +37 -0
- package/dist/core/migrate.d.ts +28 -0
- package/dist/core/outcomeExperience.d.ts +89 -0
- package/dist/core/overlaySafety.d.ts +24 -0
- package/dist/core/overlaySafety.js +7 -1
- package/dist/core/paths.d.ts +31 -0
- package/dist/core/pipeline.d.ts +289 -0
- package/dist/core/premises.d.ts +43 -0
- package/dist/core/provenance.d.ts +21 -0
- package/dist/core/publication.d.ts +54 -0
- package/dist/core/refrepair.d.ts +24 -0
- package/dist/core/refrepair.js +1 -1
- package/dist/core/relativeImports.d.ts +11 -0
- package/dist/core/repair.d.ts +44 -0
- package/dist/core/repairqueue.d.ts +40 -0
- package/dist/core/repairqueue.js +133 -0
- package/dist/core/reviewMemory.d.ts +40 -0
- package/dist/core/reviewqueue.d.ts +54 -0
- package/dist/core/safeRepoFile.d.ts +20 -0
- package/dist/core/served.d.ts +57 -0
- package/dist/core/served.js +14 -0
- package/dist/core/stateContract.d.ts +979 -0
- package/dist/core/stateContract.js +87 -4
- package/dist/core/stateDelivery.d.ts +78 -0
- package/dist/core/stateRecords.d.ts +383 -0
- package/dist/core/stateRecords.js +16 -1
- package/dist/core/stats.d.ts +88 -0
- package/dist/core/strictgate.d.ts +33 -0
- package/dist/core/taskReport.d.ts +226 -0
- package/dist/core/taskReport.js +514 -0
- package/dist/core/taskReportCapture.d.ts +8 -0
- package/dist/core/taskReportCapture.js +36 -0
- package/dist/core/taskReportEvidence.d.ts +26 -0
- package/dist/core/taskReportEvidence.js +268 -0
- package/dist/core/taskReportHook.d.ts +20 -0
- package/dist/core/taskReportHook.js +76 -0
- package/dist/core/taskReportPaths.d.ts +3 -0
- package/dist/core/taskReportPaths.js +23 -0
- package/dist/core/taskReportPublic.d.ts +31 -0
- package/dist/core/taskReportPublic.js +45 -0
- package/dist/core/taskReportRender.d.ts +6 -0
- package/dist/core/taskReportRender.js +97 -0
- package/dist/core/topics.d.ts +73 -0
- package/dist/core/types.d.ts +1239 -0
- package/dist/core/version.d.ts +10 -0
- package/dist/eval/guards.d.ts +45 -0
- package/dist/eval/harness.d.ts +58 -0
- package/dist/extractors/adrImport.d.ts +59 -0
- package/dist/extractors/comments.d.ts +7 -0
- package/dist/extractors/correctionSources.d.ts +11 -0
- package/dist/extractors/diff.d.ts +40 -0
- package/dist/extractors/git.d.ts +304 -0
- package/dist/extractors/git.js +208 -20
- package/dist/extractors/helm.d.ts +31 -0
- package/dist/extractors/indexer.d.ts +55 -0
- package/dist/extractors/landscapeDiscovery.d.ts +41 -0
- package/dist/extractors/languages.d.ts +77 -0
- package/dist/extractors/nativeTreeSitter.d.ts +16 -0
- package/dist/extractors/parse.d.ts +54 -0
- package/dist/extractors/php.d.ts +26 -0
- package/dist/extractors/repoSource.d.ts +53 -0
- package/dist/extractors/testreport.d.ts +36 -0
- package/dist/integrations/ciAction.d.ts +8 -0
- package/dist/integrations/claudeConfig.d.ts +44 -0
- package/dist/integrations/claudemd.d.ts +13 -0
- package/dist/integrations/claudemd.js +11 -2
- package/dist/integrations/gitignore.d.ts +16 -0
- package/dist/integrations/gitignore.js +7 -0
- package/dist/integrations/health.d.ts +74 -0
- package/dist/integrations/hooks.d.ts +41 -0
- package/dist/integrations/hooks.js +92 -66
- package/dist/integrations/madrExport.d.ts +39 -0
- package/dist/integrations/madrManifest.d.ts +69 -0
- package/dist/integrations/mergeDriver.d.ts +3 -0
- package/dist/integrations/mergeDriver.js +25 -8
- package/dist/integrations/probe.d.ts +4 -0
- package/dist/integrations/providers.d.ts +103 -0
- package/dist/integrations/scaffold.d.ts +29 -0
- package/dist/integrations/sync.d.ts +30 -0
- package/dist/integrations/sync.js +3 -2
- package/dist/integrations/team.d.ts +70 -0
- package/dist/integrations/worktree.d.ts +8 -0
- package/dist/mcp/roots.d.ts +16 -0
- package/dist/mcp/server.d.ts +36 -0
- package/dist/mcp/server.js +114 -25
- package/dist/mcp/taskReportTools.d.ts +3 -0
- package/dist/mcp/taskReportTools.js +106 -0
- package/dist/serve/app.d.ts +36 -0
- package/dist/serve/app.js +20 -0
- package/dist/serve/config.d.ts +100 -0
- package/dist/serve/writelock.d.ts +22 -0
- package/dist/store/changeLedger.d.ts +132 -0
- package/dist/store/changeLedger.js +40 -9
- package/dist/store/compact.d.ts +33 -0
- package/dist/store/db.d.ts +9 -0
- package/dist/store/embedder.d.ts +32 -0
- package/dist/store/hunchStore.d.ts +624 -0
- package/dist/store/hunchStore.js +13 -5
- package/dist/store/jsonStore.d.ts +125 -0
- package/dist/store/jsonStore.js +15 -0
- package/dist/store/merge.d.ts +39 -0
- package/dist/store/privateMigrate.d.ts +24 -0
- package/dist/store/replay.d.ts +56 -0
- package/dist/store/schema.d.ts +17 -0
- package/dist/store/stateBinding.d.ts +145 -0
- package/dist/store/stateBinding.js +110 -15
- package/dist/store/stateCapture.d.ts +15 -0
- package/dist/store/stateCapture.js +145 -0
- package/dist/synthesis/cliAdapter.d.ts +22 -0
- package/dist/synthesis/initiator.d.ts +13 -0
- package/dist/synthesis/provider.d.ts +307 -0
- package/dist/synthesis/synthesize.d.ts +117 -0
- package/dist/synthesis/tripwires.d.ts +9 -0
- package/dist/taskReports.d.ts +76 -0
- package/dist/taskReports.js +67 -0
- package/dist/wiki/adopt.d.ts +22 -0
- package/dist/wiki/graph.d.ts +87 -0
- package/dist/wiki/wiki.d.ts +242 -0
- package/package.json +6 -5
- package/server.json +2 -2
|
@@ -0,0 +1,1763 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const POLICY_IR_VERSION = 1;
|
|
3
|
+
export declare const POLICY_EVALUATOR: {
|
|
4
|
+
readonly name: "hunch-graph-policy";
|
|
5
|
+
readonly version: "1.3.0";
|
|
6
|
+
};
|
|
7
|
+
export declare const MUTATION_ENGINE: {
|
|
8
|
+
readonly name: "hunch-static-graph-controls";
|
|
9
|
+
readonly version: "5";
|
|
10
|
+
};
|
|
11
|
+
export declare const EXECUTABLE_BEHAVIOR_IR_VERSION = 2;
|
|
12
|
+
/** Source-gated correction policies deliberately use an IR unknown to pre-Matrix
|
|
13
|
+
* clients. Those clients then reject the artifact instead of loading it without
|
|
14
|
+
* understanding (and potentially bypassing) its activation gate. */
|
|
15
|
+
export declare const CORRECTION_POLICY_IR_VERSION = 3;
|
|
16
|
+
export declare const BEHAVIOR_POLICY_EVALUATOR: {
|
|
17
|
+
readonly name: "hunch-executable-behavior";
|
|
18
|
+
readonly version: "1.0.0";
|
|
19
|
+
};
|
|
20
|
+
export declare const BEHAVIOR_MUTATION_ENGINE: {
|
|
21
|
+
readonly name: "hunch-behavior-controls";
|
|
22
|
+
readonly version: "1";
|
|
23
|
+
};
|
|
24
|
+
export declare const DataClassSchema: z.ZodEnum<{
|
|
25
|
+
public: "public";
|
|
26
|
+
private: "private";
|
|
27
|
+
secret: "secret";
|
|
28
|
+
}>;
|
|
29
|
+
export type DataClass = z.infer<typeof DataClassSchema>;
|
|
30
|
+
export declare const StructuralSymbolRefSchema: z.ZodObject<{
|
|
31
|
+
file: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
kind: z.ZodEnum<{
|
|
34
|
+
function: "function";
|
|
35
|
+
type: "type";
|
|
36
|
+
enum: "enum";
|
|
37
|
+
file: "file";
|
|
38
|
+
method: "method";
|
|
39
|
+
class: "class";
|
|
40
|
+
interface: "interface";
|
|
41
|
+
trait: "trait";
|
|
42
|
+
variable: "variable";
|
|
43
|
+
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type StructuralSymbolRef = z.infer<typeof StructuralSymbolRefSchema>;
|
|
46
|
+
export declare const StructuralCallRefSchema: z.ZodObject<{
|
|
47
|
+
file: z.ZodString;
|
|
48
|
+
caller: z.ZodString;
|
|
49
|
+
callee: z.ZodString;
|
|
50
|
+
member: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type StructuralCallRef = z.infer<typeof StructuralCallRefSchema>;
|
|
53
|
+
export declare const StructuralImportRefSchema: z.ZodObject<{
|
|
54
|
+
file: z.ZodString;
|
|
55
|
+
specifier: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type StructuralImportRef = z.infer<typeof StructuralImportRefSchema>;
|
|
58
|
+
export declare const StructuralDeltaSchema: z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
before_commit: z.ZodString;
|
|
61
|
+
after_commit: z.ZodString;
|
|
62
|
+
files: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
63
|
+
symbols: z.ZodObject<{
|
|
64
|
+
added: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
65
|
+
file: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
kind: z.ZodEnum<{
|
|
68
|
+
function: "function";
|
|
69
|
+
type: "type";
|
|
70
|
+
enum: "enum";
|
|
71
|
+
file: "file";
|
|
72
|
+
method: "method";
|
|
73
|
+
class: "class";
|
|
74
|
+
interface: "interface";
|
|
75
|
+
trait: "trait";
|
|
76
|
+
variable: "variable";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
80
|
+
file: z.ZodString;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
kind: z.ZodEnum<{
|
|
83
|
+
function: "function";
|
|
84
|
+
type: "type";
|
|
85
|
+
enum: "enum";
|
|
86
|
+
file: "file";
|
|
87
|
+
method: "method";
|
|
88
|
+
class: "class";
|
|
89
|
+
interface: "interface";
|
|
90
|
+
trait: "trait";
|
|
91
|
+
variable: "variable";
|
|
92
|
+
}>;
|
|
93
|
+
}, z.core.$strip>>>;
|
|
94
|
+
moved: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
95
|
+
from: z.ZodString;
|
|
96
|
+
to: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
kind: z.ZodEnum<{
|
|
99
|
+
function: "function";
|
|
100
|
+
type: "type";
|
|
101
|
+
enum: "enum";
|
|
102
|
+
file: "file";
|
|
103
|
+
method: "method";
|
|
104
|
+
class: "class";
|
|
105
|
+
interface: "interface";
|
|
106
|
+
trait: "trait";
|
|
107
|
+
variable: "variable";
|
|
108
|
+
}>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
calls: z.ZodObject<{
|
|
112
|
+
added: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
113
|
+
file: z.ZodString;
|
|
114
|
+
caller: z.ZodString;
|
|
115
|
+
callee: z.ZodString;
|
|
116
|
+
member: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
+
}, z.core.$strip>>>;
|
|
118
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
119
|
+
file: z.ZodString;
|
|
120
|
+
caller: z.ZodString;
|
|
121
|
+
callee: z.ZodString;
|
|
122
|
+
member: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
}, z.core.$strip>>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
imports: z.ZodObject<{
|
|
126
|
+
added: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
127
|
+
file: z.ZodString;
|
|
128
|
+
specifier: z.ZodString;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
|
+
file: z.ZodString;
|
|
132
|
+
specifier: z.ZodString;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
content_hash: z.ZodString;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
export type StructuralDelta = z.infer<typeof StructuralDeltaSchema>;
|
|
138
|
+
export declare const CandidateAlternativeSchema: z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
basis: z.ZodString;
|
|
141
|
+
reason: z.ZodString;
|
|
142
|
+
assertion_hash: z.ZodString;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
export type CandidateAlternative = z.infer<typeof CandidateAlternativeSchema>;
|
|
145
|
+
export declare const PolicyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
146
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
147
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
148
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
export type PolicyScope = z.infer<typeof PolicyScopeSchema>;
|
|
151
|
+
export declare const CandidateContextSchema: z.ZodDefault<z.ZodObject<{
|
|
152
|
+
alternatives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
153
|
+
id: z.ZodString;
|
|
154
|
+
basis: z.ZodString;
|
|
155
|
+
reason: z.ZodString;
|
|
156
|
+
assertion_hash: z.ZodString;
|
|
157
|
+
}, z.core.$strict>>>;
|
|
158
|
+
uncertainty: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
159
|
+
conflicts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
160
|
+
incumbent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
scope_suggestion: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
162
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
163
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
164
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
165
|
+
}, z.core.$strip>>>>;
|
|
166
|
+
counterexamples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
export type CandidateContext = z.infer<typeof CandidateContextSchema>;
|
|
169
|
+
export declare const EvidenceEventSchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
kind: z.ZodEnum<{
|
|
172
|
+
commit: "commit";
|
|
173
|
+
review: "review";
|
|
174
|
+
decision: "decision";
|
|
175
|
+
revert: "revert";
|
|
176
|
+
correction: "correction";
|
|
177
|
+
incident: "incident";
|
|
178
|
+
bug_fix: "bug_fix";
|
|
179
|
+
test_failure: "test_failure";
|
|
180
|
+
instruction: "instruction";
|
|
181
|
+
}>;
|
|
182
|
+
occurred_at: z.ZodString;
|
|
183
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
184
|
+
repository: z.ZodString;
|
|
185
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
186
|
+
files: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
|
+
symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
188
|
+
text_ref: z.ZodOptional<z.ZodString>;
|
|
189
|
+
diff_ref: z.ZodOptional<z.ZodString>;
|
|
190
|
+
related_records: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
191
|
+
data_class: z.ZodEnum<{
|
|
192
|
+
public: "public";
|
|
193
|
+
private: "private";
|
|
194
|
+
secret: "secret";
|
|
195
|
+
}>;
|
|
196
|
+
content_hash: z.ZodString;
|
|
197
|
+
structural_delta: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
before_commit: z.ZodString;
|
|
200
|
+
after_commit: z.ZodString;
|
|
201
|
+
files: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
202
|
+
symbols: z.ZodObject<{
|
|
203
|
+
added: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
204
|
+
file: z.ZodString;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
kind: z.ZodEnum<{
|
|
207
|
+
function: "function";
|
|
208
|
+
type: "type";
|
|
209
|
+
enum: "enum";
|
|
210
|
+
file: "file";
|
|
211
|
+
method: "method";
|
|
212
|
+
class: "class";
|
|
213
|
+
interface: "interface";
|
|
214
|
+
trait: "trait";
|
|
215
|
+
variable: "variable";
|
|
216
|
+
}>;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
218
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
219
|
+
file: z.ZodString;
|
|
220
|
+
name: z.ZodString;
|
|
221
|
+
kind: z.ZodEnum<{
|
|
222
|
+
function: "function";
|
|
223
|
+
type: "type";
|
|
224
|
+
enum: "enum";
|
|
225
|
+
file: "file";
|
|
226
|
+
method: "method";
|
|
227
|
+
class: "class";
|
|
228
|
+
interface: "interface";
|
|
229
|
+
trait: "trait";
|
|
230
|
+
variable: "variable";
|
|
231
|
+
}>;
|
|
232
|
+
}, z.core.$strip>>>;
|
|
233
|
+
moved: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
234
|
+
from: z.ZodString;
|
|
235
|
+
to: z.ZodString;
|
|
236
|
+
name: z.ZodString;
|
|
237
|
+
kind: z.ZodEnum<{
|
|
238
|
+
function: "function";
|
|
239
|
+
type: "type";
|
|
240
|
+
enum: "enum";
|
|
241
|
+
file: "file";
|
|
242
|
+
method: "method";
|
|
243
|
+
class: "class";
|
|
244
|
+
interface: "interface";
|
|
245
|
+
trait: "trait";
|
|
246
|
+
variable: "variable";
|
|
247
|
+
}>;
|
|
248
|
+
}, z.core.$strip>>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
calls: z.ZodObject<{
|
|
251
|
+
added: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
252
|
+
file: z.ZodString;
|
|
253
|
+
caller: z.ZodString;
|
|
254
|
+
callee: z.ZodString;
|
|
255
|
+
member: z.ZodDefault<z.ZodBoolean>;
|
|
256
|
+
}, z.core.$strip>>>;
|
|
257
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
258
|
+
file: z.ZodString;
|
|
259
|
+
caller: z.ZodString;
|
|
260
|
+
callee: z.ZodString;
|
|
261
|
+
member: z.ZodDefault<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strip>>>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
imports: z.ZodObject<{
|
|
265
|
+
added: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
file: z.ZodString;
|
|
267
|
+
specifier: z.ZodString;
|
|
268
|
+
}, z.core.$strip>>>;
|
|
269
|
+
removed: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
270
|
+
file: z.ZodString;
|
|
271
|
+
specifier: z.ZodString;
|
|
272
|
+
}, z.core.$strip>>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
content_hash: z.ZodString;
|
|
275
|
+
}, z.core.$strict>>;
|
|
276
|
+
compiler: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
status: z.ZodEnum<{
|
|
278
|
+
conflicted: "conflicted";
|
|
279
|
+
eligible: "eligible";
|
|
280
|
+
compiled: "compiled";
|
|
281
|
+
covered: "covered";
|
|
282
|
+
uncompilable: "uncompilable";
|
|
283
|
+
}>;
|
|
284
|
+
policy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
286
|
+
alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
basis: z.ZodString;
|
|
289
|
+
reason: z.ZodString;
|
|
290
|
+
assertion_hash: z.ZodString;
|
|
291
|
+
}, z.core.$strict>>>;
|
|
292
|
+
uncertainty: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
293
|
+
conflicts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
294
|
+
incumbent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
scope_suggestion: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
296
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
297
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
298
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
299
|
+
}, z.core.$strip>>>>;
|
|
300
|
+
counterexamples: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
provenance: z.ZodObject<{
|
|
303
|
+
source: z.ZodString;
|
|
304
|
+
confidence: z.ZodNumber;
|
|
305
|
+
evidence: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
306
|
+
last_verified: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$loose>;
|
|
309
|
+
export type EvidenceEvent = z.infer<typeof EvidenceEventSchema>;
|
|
310
|
+
export declare const EvidenceImportItemSchema: z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
kind: z.ZodEnum<{
|
|
313
|
+
commit: "commit";
|
|
314
|
+
review: "review";
|
|
315
|
+
decision: "decision";
|
|
316
|
+
instruction: "instruction";
|
|
317
|
+
}>;
|
|
318
|
+
occurred_at: z.ZodString;
|
|
319
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
320
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
321
|
+
files: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
322
|
+
symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
323
|
+
text: z.ZodOptional<z.ZodString>;
|
|
324
|
+
text_ref: z.ZodOptional<z.ZodString>;
|
|
325
|
+
related_records: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
326
|
+
data_class: z.ZodDefault<z.ZodEnum<{
|
|
327
|
+
public: "public";
|
|
328
|
+
private: "private";
|
|
329
|
+
secret: "secret";
|
|
330
|
+
}>>;
|
|
331
|
+
maintainer_confirmed: z.ZodDefault<z.ZodBoolean>;
|
|
332
|
+
}, z.core.$strict>;
|
|
333
|
+
export type EvidenceImportItem = z.infer<typeof EvidenceImportItemSchema>;
|
|
334
|
+
export declare const EvidenceImportSchema: z.ZodObject<{
|
|
335
|
+
version: z.ZodLiteral<1>;
|
|
336
|
+
source: z.ZodEnum<{
|
|
337
|
+
pr_export: "pr_export";
|
|
338
|
+
review_export: "review_export";
|
|
339
|
+
conversation_export: "conversation_export";
|
|
340
|
+
}>;
|
|
341
|
+
items: z.ZodArray<z.ZodObject<{
|
|
342
|
+
id: z.ZodString;
|
|
343
|
+
kind: z.ZodEnum<{
|
|
344
|
+
commit: "commit";
|
|
345
|
+
review: "review";
|
|
346
|
+
decision: "decision";
|
|
347
|
+
instruction: "instruction";
|
|
348
|
+
}>;
|
|
349
|
+
occurred_at: z.ZodString;
|
|
350
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
351
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
352
|
+
files: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
353
|
+
symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
354
|
+
text: z.ZodOptional<z.ZodString>;
|
|
355
|
+
text_ref: z.ZodOptional<z.ZodString>;
|
|
356
|
+
related_records: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
357
|
+
data_class: z.ZodDefault<z.ZodEnum<{
|
|
358
|
+
public: "public";
|
|
359
|
+
private: "private";
|
|
360
|
+
secret: "secret";
|
|
361
|
+
}>>;
|
|
362
|
+
maintainer_confirmed: z.ZodDefault<z.ZodBoolean>;
|
|
363
|
+
}, z.core.$strict>>;
|
|
364
|
+
}, z.core.$strict>;
|
|
365
|
+
export type EvidenceImport = z.infer<typeof EvidenceImportSchema>;
|
|
366
|
+
export declare const PolicyStateSchema: z.ZodEnum<{
|
|
367
|
+
observed: "observed";
|
|
368
|
+
stale: "stale";
|
|
369
|
+
retired: "retired";
|
|
370
|
+
proposed: "proposed";
|
|
371
|
+
rejected: "rejected";
|
|
372
|
+
superseded: "superseded";
|
|
373
|
+
compiled: "compiled";
|
|
374
|
+
uncompilable: "uncompilable";
|
|
375
|
+
drafted: "drafted";
|
|
376
|
+
validating: "validating";
|
|
377
|
+
active_advisory: "active_advisory";
|
|
378
|
+
active_blocking: "active_blocking";
|
|
379
|
+
repaired: "repaired";
|
|
380
|
+
}>;
|
|
381
|
+
export type PolicyState = z.infer<typeof PolicyStateSchema>;
|
|
382
|
+
export declare const PolicySelectorSchema: z.ZodObject<{
|
|
383
|
+
selector: z.ZodString;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
export type PolicySelector = z.infer<typeof PolicySelectorSchema>;
|
|
386
|
+
export declare const PolicyRelationSchema: z.ZodObject<{
|
|
387
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
388
|
+
depends_on: "depends_on";
|
|
389
|
+
calls: "calls";
|
|
390
|
+
imports: "imports";
|
|
391
|
+
contains: "contains";
|
|
392
|
+
}>>>;
|
|
393
|
+
transitive: z.ZodDefault<z.ZodBoolean>;
|
|
394
|
+
max_depth: z.ZodDefault<z.ZodNumber>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
export type PolicyRelation = z.infer<typeof PolicyRelationSchema>;
|
|
397
|
+
export declare const PolicyAssertionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
398
|
+
kind: z.ZodLiteral<"exists">;
|
|
399
|
+
subject: z.ZodObject<{
|
|
400
|
+
selector: z.ZodString;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
403
|
+
kind: z.ZodEnum<{
|
|
404
|
+
reaches: "reaches";
|
|
405
|
+
"not-reaches": "not-reaches";
|
|
406
|
+
}>;
|
|
407
|
+
subject: z.ZodObject<{
|
|
408
|
+
selector: z.ZodString;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
relation: z.ZodObject<{
|
|
411
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
412
|
+
depends_on: "depends_on";
|
|
413
|
+
calls: "calls";
|
|
414
|
+
imports: "imports";
|
|
415
|
+
contains: "contains";
|
|
416
|
+
}>>>;
|
|
417
|
+
transitive: z.ZodDefault<z.ZodBoolean>;
|
|
418
|
+
max_depth: z.ZodDefault<z.ZodNumber>;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
object: z.ZodObject<{
|
|
421
|
+
selector: z.ZodString;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
424
|
+
kind: z.ZodLiteral<"must-pass-through">;
|
|
425
|
+
subject: z.ZodObject<{
|
|
426
|
+
selector: z.ZodString;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
relation: z.ZodObject<{
|
|
429
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
430
|
+
depends_on: "depends_on";
|
|
431
|
+
calls: "calls";
|
|
432
|
+
imports: "imports";
|
|
433
|
+
contains: "contains";
|
|
434
|
+
}>>>;
|
|
435
|
+
transitive: z.ZodDefault<z.ZodBoolean>;
|
|
436
|
+
max_depth: z.ZodDefault<z.ZodNumber>;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
via: z.ZodObject<{
|
|
439
|
+
selector: z.ZodString;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
object: z.ZodObject<{
|
|
442
|
+
selector: z.ZodString;
|
|
443
|
+
}, z.core.$strip>;
|
|
444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
445
|
+
kind: z.ZodLiteral<"executable-behavior">;
|
|
446
|
+
test: z.ZodObject<{
|
|
447
|
+
file: z.ZodString;
|
|
448
|
+
name: z.ZodString;
|
|
449
|
+
source_commit: z.ZodString;
|
|
450
|
+
source_hash: z.ZodString;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
runner: z.ZodEnum<{
|
|
453
|
+
"node-test": "node-test";
|
|
454
|
+
"node-test-tsx": "node-test-tsx";
|
|
455
|
+
}>;
|
|
456
|
+
attestation: z.ZodObject<{
|
|
457
|
+
id: z.ZodString;
|
|
458
|
+
content_hash: z.ZodString;
|
|
459
|
+
candidate_id: z.ZodString;
|
|
460
|
+
candidate_hash: z.ZodString;
|
|
461
|
+
replay_id: z.ZodString;
|
|
462
|
+
replay_hash: z.ZodString;
|
|
463
|
+
}, z.core.$strict>;
|
|
464
|
+
dependency_snapshot_ids: z.ZodArray<z.ZodString>;
|
|
465
|
+
timeout_ms: z.ZodNumber;
|
|
466
|
+
}, z.core.$strict>], "kind">;
|
|
467
|
+
export type PolicyAssertion = z.infer<typeof PolicyAssertionSchema>;
|
|
468
|
+
export declare const PolicyAuditEventSchema: z.ZodObject<{
|
|
469
|
+
action: z.ZodEnum<{
|
|
470
|
+
retired: "retired";
|
|
471
|
+
rejected: "rejected";
|
|
472
|
+
compiled: "compiled";
|
|
473
|
+
repaired: "repaired";
|
|
474
|
+
enriched: "enriched";
|
|
475
|
+
linked_exception: "linked_exception";
|
|
476
|
+
proved: "proved";
|
|
477
|
+
approved_advisory: "approved_advisory";
|
|
478
|
+
approved_blocking: "approved_blocking";
|
|
479
|
+
demoted: "demoted";
|
|
480
|
+
withdrawn: "withdrawn";
|
|
481
|
+
}>;
|
|
482
|
+
actor_kind: z.ZodEnum<{
|
|
483
|
+
system: "system";
|
|
484
|
+
human: "human";
|
|
485
|
+
}>;
|
|
486
|
+
actor: z.ZodString;
|
|
487
|
+
at: z.ZodString;
|
|
488
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
489
|
+
proof: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
export type PolicyAuditEvent = z.infer<typeof PolicyAuditEventSchema>;
|
|
492
|
+
export declare const PolicyAuthoritySchema: z.ZodObject<{
|
|
493
|
+
kind: z.ZodLiteral<"human">;
|
|
494
|
+
actor: z.ZodString;
|
|
495
|
+
event: z.ZodString;
|
|
496
|
+
at: z.ZodString;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
export type PolicyAuthority = z.infer<typeof PolicyAuthoritySchema>;
|
|
499
|
+
export declare const PolicyActivationGateSchema: z.ZodObject<{
|
|
500
|
+
kind: z.ZodLiteral<"source_currentness">;
|
|
501
|
+
status: z.ZodLiteral<"blocked">;
|
|
502
|
+
reason: z.ZodString;
|
|
503
|
+
}, z.core.$strict>;
|
|
504
|
+
export type PolicyActivationGate = z.infer<typeof PolicyActivationGateSchema>;
|
|
505
|
+
export declare const PolicySpecSchema: z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
topic: z.ZodString;
|
|
508
|
+
origin: z.ZodDefault<z.ZodEnum<{
|
|
509
|
+
generic: "generic";
|
|
510
|
+
correction_md1a: "correction_md1a";
|
|
511
|
+
}>>;
|
|
512
|
+
ir_version: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
513
|
+
revision: z.ZodNumber;
|
|
514
|
+
state: z.ZodEnum<{
|
|
515
|
+
observed: "observed";
|
|
516
|
+
stale: "stale";
|
|
517
|
+
retired: "retired";
|
|
518
|
+
proposed: "proposed";
|
|
519
|
+
rejected: "rejected";
|
|
520
|
+
superseded: "superseded";
|
|
521
|
+
compiled: "compiled";
|
|
522
|
+
uncompilable: "uncompilable";
|
|
523
|
+
drafted: "drafted";
|
|
524
|
+
validating: "validating";
|
|
525
|
+
active_advisory: "active_advisory";
|
|
526
|
+
active_blocking: "active_blocking";
|
|
527
|
+
repaired: "repaired";
|
|
528
|
+
}>;
|
|
529
|
+
statement: z.ZodString;
|
|
530
|
+
rationale: z.ZodDefault<z.ZodString>;
|
|
531
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
532
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
533
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
534
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
assertion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
537
|
+
kind: z.ZodLiteral<"exists">;
|
|
538
|
+
subject: z.ZodObject<{
|
|
539
|
+
selector: z.ZodString;
|
|
540
|
+
}, z.core.$strip>;
|
|
541
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
542
|
+
kind: z.ZodEnum<{
|
|
543
|
+
reaches: "reaches";
|
|
544
|
+
"not-reaches": "not-reaches";
|
|
545
|
+
}>;
|
|
546
|
+
subject: z.ZodObject<{
|
|
547
|
+
selector: z.ZodString;
|
|
548
|
+
}, z.core.$strip>;
|
|
549
|
+
relation: z.ZodObject<{
|
|
550
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
551
|
+
depends_on: "depends_on";
|
|
552
|
+
calls: "calls";
|
|
553
|
+
imports: "imports";
|
|
554
|
+
contains: "contains";
|
|
555
|
+
}>>>;
|
|
556
|
+
transitive: z.ZodDefault<z.ZodBoolean>;
|
|
557
|
+
max_depth: z.ZodDefault<z.ZodNumber>;
|
|
558
|
+
}, z.core.$strip>;
|
|
559
|
+
object: z.ZodObject<{
|
|
560
|
+
selector: z.ZodString;
|
|
561
|
+
}, z.core.$strip>;
|
|
562
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
563
|
+
kind: z.ZodLiteral<"must-pass-through">;
|
|
564
|
+
subject: z.ZodObject<{
|
|
565
|
+
selector: z.ZodString;
|
|
566
|
+
}, z.core.$strip>;
|
|
567
|
+
relation: z.ZodObject<{
|
|
568
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
569
|
+
depends_on: "depends_on";
|
|
570
|
+
calls: "calls";
|
|
571
|
+
imports: "imports";
|
|
572
|
+
contains: "contains";
|
|
573
|
+
}>>>;
|
|
574
|
+
transitive: z.ZodDefault<z.ZodBoolean>;
|
|
575
|
+
max_depth: z.ZodDefault<z.ZodNumber>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
via: z.ZodObject<{
|
|
578
|
+
selector: z.ZodString;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
object: z.ZodObject<{
|
|
581
|
+
selector: z.ZodString;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
+
kind: z.ZodLiteral<"executable-behavior">;
|
|
585
|
+
test: z.ZodObject<{
|
|
586
|
+
file: z.ZodString;
|
|
587
|
+
name: z.ZodString;
|
|
588
|
+
source_commit: z.ZodString;
|
|
589
|
+
source_hash: z.ZodString;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
runner: z.ZodEnum<{
|
|
592
|
+
"node-test": "node-test";
|
|
593
|
+
"node-test-tsx": "node-test-tsx";
|
|
594
|
+
}>;
|
|
595
|
+
attestation: z.ZodObject<{
|
|
596
|
+
id: z.ZodString;
|
|
597
|
+
content_hash: z.ZodString;
|
|
598
|
+
candidate_id: z.ZodString;
|
|
599
|
+
candidate_hash: z.ZodString;
|
|
600
|
+
replay_id: z.ZodString;
|
|
601
|
+
replay_hash: z.ZodString;
|
|
602
|
+
}, z.core.$strict>;
|
|
603
|
+
dependency_snapshot_ids: z.ZodArray<z.ZodString>;
|
|
604
|
+
timeout_ms: z.ZodNumber;
|
|
605
|
+
}, z.core.$strict>], "kind">;
|
|
606
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
607
|
+
advisory: "advisory";
|
|
608
|
+
warning: "warning";
|
|
609
|
+
blocking: "blocking";
|
|
610
|
+
}>>;
|
|
611
|
+
surfaces: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
612
|
+
ci: "ci";
|
|
613
|
+
pre_edit: "pre_edit";
|
|
614
|
+
pre_commit: "pre_commit";
|
|
615
|
+
mcp: "mcp";
|
|
616
|
+
cli: "cli";
|
|
617
|
+
}>>>;
|
|
618
|
+
authority: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
619
|
+
kind: z.ZodLiteral<"human">;
|
|
620
|
+
actor: z.ZodString;
|
|
621
|
+
event: z.ZodString;
|
|
622
|
+
at: z.ZodString;
|
|
623
|
+
}, z.core.$strip>>>;
|
|
624
|
+
activation_gate: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
625
|
+
kind: z.ZodLiteral<"source_currentness">;
|
|
626
|
+
status: z.ZodLiteral<"blocked">;
|
|
627
|
+
reason: z.ZodString;
|
|
628
|
+
}, z.core.$strict>>>;
|
|
629
|
+
evidence: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
630
|
+
proof: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
631
|
+
reversal_conditions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
632
|
+
supersedes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
633
|
+
superseded_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
634
|
+
exception_of: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
635
|
+
valid_from: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
636
|
+
valid_to: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
637
|
+
data_class: z.ZodDefault<z.ZodEnum<{
|
|
638
|
+
public: "public";
|
|
639
|
+
private: "private";
|
|
640
|
+
secret: "secret";
|
|
641
|
+
}>>;
|
|
642
|
+
limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
643
|
+
candidate: z.ZodDefault<z.ZodObject<{
|
|
644
|
+
alternatives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
645
|
+
id: z.ZodString;
|
|
646
|
+
basis: z.ZodString;
|
|
647
|
+
reason: z.ZodString;
|
|
648
|
+
assertion_hash: z.ZodString;
|
|
649
|
+
}, z.core.$strict>>>;
|
|
650
|
+
uncertainty: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
651
|
+
conflicts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
652
|
+
incumbent: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
scope_suggestion: z.ZodDefault<z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
654
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
655
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
656
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
657
|
+
}, z.core.$strip>>>>;
|
|
658
|
+
counterexamples: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
legacy_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
661
|
+
audit: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
662
|
+
action: z.ZodEnum<{
|
|
663
|
+
retired: "retired";
|
|
664
|
+
rejected: "rejected";
|
|
665
|
+
compiled: "compiled";
|
|
666
|
+
repaired: "repaired";
|
|
667
|
+
enriched: "enriched";
|
|
668
|
+
linked_exception: "linked_exception";
|
|
669
|
+
proved: "proved";
|
|
670
|
+
approved_advisory: "approved_advisory";
|
|
671
|
+
approved_blocking: "approved_blocking";
|
|
672
|
+
demoted: "demoted";
|
|
673
|
+
withdrawn: "withdrawn";
|
|
674
|
+
}>;
|
|
675
|
+
actor_kind: z.ZodEnum<{
|
|
676
|
+
system: "system";
|
|
677
|
+
human: "human";
|
|
678
|
+
}>;
|
|
679
|
+
actor: z.ZodString;
|
|
680
|
+
at: z.ZodString;
|
|
681
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
682
|
+
proof: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
683
|
+
}, z.core.$strip>>>;
|
|
684
|
+
created_at: z.ZodString;
|
|
685
|
+
updated_at: z.ZodString;
|
|
686
|
+
provenance: z.ZodObject<{
|
|
687
|
+
source: z.ZodString;
|
|
688
|
+
confidence: z.ZodNumber;
|
|
689
|
+
evidence: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
690
|
+
last_verified: z.ZodOptional<z.ZodString>;
|
|
691
|
+
}, z.core.$strip>;
|
|
692
|
+
}, z.core.$loose>;
|
|
693
|
+
export type PolicySpec = z.infer<typeof PolicySpecSchema>;
|
|
694
|
+
export declare const PolicyCompositionMemberSchema: z.ZodObject<{
|
|
695
|
+
policy_id: z.ZodString;
|
|
696
|
+
policy_hash: z.ZodString;
|
|
697
|
+
exception_of: z.ZodString;
|
|
698
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
699
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
700
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
701
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
702
|
+
}, z.core.$strip>>;
|
|
703
|
+
}, z.core.$strict>;
|
|
704
|
+
export declare const PolicyCompositionBindingSchema: z.ZodObject<{
|
|
705
|
+
kind: z.ZodLiteral<"parent_with_exceptions">;
|
|
706
|
+
root_policy_id: z.ZodString;
|
|
707
|
+
root_policy_hash: z.ZodString;
|
|
708
|
+
members: z.ZodArray<z.ZodObject<{
|
|
709
|
+
policy_id: z.ZodString;
|
|
710
|
+
policy_hash: z.ZodString;
|
|
711
|
+
exception_of: z.ZodString;
|
|
712
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
713
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
714
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
715
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
716
|
+
}, z.core.$strip>>;
|
|
717
|
+
}, z.core.$strict>>;
|
|
718
|
+
composite_hash: z.ZodString;
|
|
719
|
+
}, z.core.$strict>;
|
|
720
|
+
export type PolicyCompositionBinding = z.infer<typeof PolicyCompositionBindingSchema>;
|
|
721
|
+
export declare const PolicyEvaluationResultSchema: z.ZodEnum<{
|
|
722
|
+
unknown: "unknown";
|
|
723
|
+
error: "error";
|
|
724
|
+
satisfied: "satisfied";
|
|
725
|
+
violated: "violated";
|
|
726
|
+
not_applicable: "not_applicable";
|
|
727
|
+
}>;
|
|
728
|
+
export type PolicyEvaluationResult = z.infer<typeof PolicyEvaluationResultSchema>;
|
|
729
|
+
export declare const BehaviorExecutionSchema: z.ZodObject<{
|
|
730
|
+
commit: z.ZodString;
|
|
731
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
732
|
+
kind: z.ZodEnum<{
|
|
733
|
+
staged: "staged";
|
|
734
|
+
working: "working";
|
|
735
|
+
}>;
|
|
736
|
+
base_commit: z.ZodString;
|
|
737
|
+
snapshot_hash: z.ZodString;
|
|
738
|
+
files: z.ZodArray<z.ZodString>;
|
|
739
|
+
}, z.core.$strict>>;
|
|
740
|
+
test: z.ZodObject<{
|
|
741
|
+
file: z.ZodString;
|
|
742
|
+
name: z.ZodString;
|
|
743
|
+
source_hash: z.ZodString;
|
|
744
|
+
}, z.core.$strict>;
|
|
745
|
+
runner: z.ZodEnum<{
|
|
746
|
+
"node-test": "node-test";
|
|
747
|
+
"node-test-tsx": "node-test-tsx";
|
|
748
|
+
}>;
|
|
749
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
750
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
751
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
752
|
+
passed: "passed";
|
|
753
|
+
failed: "failed";
|
|
754
|
+
}>>;
|
|
755
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
756
|
+
execution_hash: z.ZodString;
|
|
757
|
+
}, z.core.$strict>;
|
|
758
|
+
export type BehaviorExecution = z.infer<typeof BehaviorExecutionSchema>;
|
|
759
|
+
export declare const ProofFixtureRefSchema: z.ZodObject<{
|
|
760
|
+
kind: z.ZodEnum<{
|
|
761
|
+
commit: "commit";
|
|
762
|
+
event: "event";
|
|
763
|
+
fixture: "fixture";
|
|
764
|
+
mutation: "mutation";
|
|
765
|
+
}>;
|
|
766
|
+
ref: z.ZodString;
|
|
767
|
+
label: z.ZodString;
|
|
768
|
+
expected: z.ZodEnum<{
|
|
769
|
+
unknown: "unknown";
|
|
770
|
+
error: "error";
|
|
771
|
+
satisfied: "satisfied";
|
|
772
|
+
violated: "violated";
|
|
773
|
+
not_applicable: "not_applicable";
|
|
774
|
+
}>;
|
|
775
|
+
attestation: z.ZodOptional<z.ZodObject<{
|
|
776
|
+
actor: z.ZodString;
|
|
777
|
+
reason: z.ZodString;
|
|
778
|
+
}, z.core.$strict>>;
|
|
779
|
+
}, z.core.$strip>;
|
|
780
|
+
export type ProofFixtureRef = z.infer<typeof ProofFixtureRefSchema>;
|
|
781
|
+
export declare const ProofCorpusInputSchema: z.ZodObject<{
|
|
782
|
+
known_bad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
783
|
+
ref: z.ZodString;
|
|
784
|
+
label: z.ZodString;
|
|
785
|
+
}, z.core.$strict>>>;
|
|
786
|
+
known_good: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
787
|
+
ref: z.ZodString;
|
|
788
|
+
label: z.ZodString;
|
|
789
|
+
attestation: z.ZodOptional<z.ZodObject<{
|
|
790
|
+
actor: z.ZodString;
|
|
791
|
+
reason: z.ZodString;
|
|
792
|
+
}, z.core.$strict>>;
|
|
793
|
+
}, z.core.$strict>>>;
|
|
794
|
+
}, z.core.$strict>;
|
|
795
|
+
export type ProofCorpusInput = z.infer<typeof ProofCorpusInputSchema>;
|
|
796
|
+
export declare const ProofCorpusSchema: z.ZodObject<{
|
|
797
|
+
id: z.ZodString;
|
|
798
|
+
content_hash: z.ZodString;
|
|
799
|
+
policy_id: z.ZodString;
|
|
800
|
+
policy_hash: z.ZodString;
|
|
801
|
+
repository: z.ZodString;
|
|
802
|
+
data_class: z.ZodEnum<{
|
|
803
|
+
public: "public";
|
|
804
|
+
private: "private";
|
|
805
|
+
secret: "secret";
|
|
806
|
+
}>;
|
|
807
|
+
known_bad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
808
|
+
kind: z.ZodLiteral<"commit">;
|
|
809
|
+
ref: z.ZodString;
|
|
810
|
+
label: z.ZodString;
|
|
811
|
+
expected: z.ZodLiteral<"violated">;
|
|
812
|
+
}, z.core.$strict>>>;
|
|
813
|
+
known_good: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
814
|
+
kind: z.ZodLiteral<"commit">;
|
|
815
|
+
ref: z.ZodString;
|
|
816
|
+
label: z.ZodString;
|
|
817
|
+
expected: z.ZodLiteral<"satisfied">;
|
|
818
|
+
attestation: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
actor: z.ZodString;
|
|
820
|
+
reason: z.ZodString;
|
|
821
|
+
}, z.core.$strict>>;
|
|
822
|
+
}, z.core.$strict>>>;
|
|
823
|
+
created_at: z.ZodString;
|
|
824
|
+
}, z.core.$strict>;
|
|
825
|
+
export type ProofCorpus = z.infer<typeof ProofCorpusSchema>;
|
|
826
|
+
export declare const ProofPlanSchema: z.ZodObject<{
|
|
827
|
+
id: z.ZodString;
|
|
828
|
+
content_hash: z.ZodString;
|
|
829
|
+
policy_id: z.ZodString;
|
|
830
|
+
policy_candidate_hash: z.ZodString;
|
|
831
|
+
repository: z.ZodString;
|
|
832
|
+
data_class: z.ZodEnum<{
|
|
833
|
+
public: "public";
|
|
834
|
+
private: "private";
|
|
835
|
+
secret: "secret";
|
|
836
|
+
}>;
|
|
837
|
+
source_commit: z.ZodString;
|
|
838
|
+
valid_from_commit: z.ZodString;
|
|
839
|
+
evaluator: z.ZodObject<{
|
|
840
|
+
name: z.ZodString;
|
|
841
|
+
version: z.ZodString;
|
|
842
|
+
}, z.core.$strip>;
|
|
843
|
+
mutation_engine: z.ZodOptional<z.ZodObject<{
|
|
844
|
+
name: z.ZodString;
|
|
845
|
+
version: z.ZodString;
|
|
846
|
+
}, z.core.$strip>>;
|
|
847
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
848
|
+
kind: z.ZodLiteral<"parent_with_exceptions">;
|
|
849
|
+
root_policy_id: z.ZodString;
|
|
850
|
+
root_policy_hash: z.ZodString;
|
|
851
|
+
members: z.ZodArray<z.ZodObject<{
|
|
852
|
+
policy_id: z.ZodString;
|
|
853
|
+
policy_hash: z.ZodString;
|
|
854
|
+
exception_of: z.ZodString;
|
|
855
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
856
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
857
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
858
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
859
|
+
}, z.core.$strip>>;
|
|
860
|
+
}, z.core.$strict>>;
|
|
861
|
+
composite_hash: z.ZodString;
|
|
862
|
+
}, z.core.$strict>>;
|
|
863
|
+
corpus_manifest: z.ZodOptional<z.ZodObject<{
|
|
864
|
+
id: z.ZodString;
|
|
865
|
+
content_hash: z.ZodString;
|
|
866
|
+
}, z.core.$strict>>;
|
|
867
|
+
corpus: z.ZodObject<{
|
|
868
|
+
current_baseline: z.ZodObject<{
|
|
869
|
+
kind: z.ZodEnum<{
|
|
870
|
+
commit: "commit";
|
|
871
|
+
event: "event";
|
|
872
|
+
fixture: "fixture";
|
|
873
|
+
mutation: "mutation";
|
|
874
|
+
}>;
|
|
875
|
+
ref: z.ZodString;
|
|
876
|
+
label: z.ZodString;
|
|
877
|
+
expected: z.ZodEnum<{
|
|
878
|
+
unknown: "unknown";
|
|
879
|
+
error: "error";
|
|
880
|
+
satisfied: "satisfied";
|
|
881
|
+
violated: "violated";
|
|
882
|
+
not_applicable: "not_applicable";
|
|
883
|
+
}>;
|
|
884
|
+
attestation: z.ZodOptional<z.ZodObject<{
|
|
885
|
+
actor: z.ZodString;
|
|
886
|
+
reason: z.ZodString;
|
|
887
|
+
}, z.core.$strict>>;
|
|
888
|
+
}, z.core.$strip>;
|
|
889
|
+
accepted_history: z.ZodObject<{
|
|
890
|
+
from: z.ZodString;
|
|
891
|
+
to: z.ZodString;
|
|
892
|
+
first_parent: z.ZodDefault<z.ZodBoolean>;
|
|
893
|
+
max_commits: z.ZodNumber;
|
|
894
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
known_bad: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
897
|
+
kind: z.ZodEnum<{
|
|
898
|
+
commit: "commit";
|
|
899
|
+
event: "event";
|
|
900
|
+
fixture: "fixture";
|
|
901
|
+
mutation: "mutation";
|
|
902
|
+
}>;
|
|
903
|
+
ref: z.ZodString;
|
|
904
|
+
label: z.ZodString;
|
|
905
|
+
expected: z.ZodEnum<{
|
|
906
|
+
unknown: "unknown";
|
|
907
|
+
error: "error";
|
|
908
|
+
satisfied: "satisfied";
|
|
909
|
+
violated: "violated";
|
|
910
|
+
not_applicable: "not_applicable";
|
|
911
|
+
}>;
|
|
912
|
+
attestation: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
actor: z.ZodString;
|
|
914
|
+
reason: z.ZodString;
|
|
915
|
+
}, z.core.$strict>>;
|
|
916
|
+
}, z.core.$strip>>>;
|
|
917
|
+
known_good: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
918
|
+
kind: z.ZodEnum<{
|
|
919
|
+
commit: "commit";
|
|
920
|
+
event: "event";
|
|
921
|
+
fixture: "fixture";
|
|
922
|
+
mutation: "mutation";
|
|
923
|
+
}>;
|
|
924
|
+
ref: z.ZodString;
|
|
925
|
+
label: z.ZodString;
|
|
926
|
+
expected: z.ZodEnum<{
|
|
927
|
+
unknown: "unknown";
|
|
928
|
+
error: "error";
|
|
929
|
+
satisfied: "satisfied";
|
|
930
|
+
violated: "violated";
|
|
931
|
+
not_applicable: "not_applicable";
|
|
932
|
+
}>;
|
|
933
|
+
attestation: z.ZodOptional<z.ZodObject<{
|
|
934
|
+
actor: z.ZodString;
|
|
935
|
+
reason: z.ZodString;
|
|
936
|
+
}, z.core.$strict>>;
|
|
937
|
+
}, z.core.$strip>>>;
|
|
938
|
+
}, z.core.$strip>;
|
|
939
|
+
mutations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
940
|
+
operator: z.ZodString;
|
|
941
|
+
base: z.ZodString;
|
|
942
|
+
expected: z.ZodEnum<{
|
|
943
|
+
unknown: "unknown";
|
|
944
|
+
error: "error";
|
|
945
|
+
satisfied: "satisfied";
|
|
946
|
+
violated: "violated";
|
|
947
|
+
not_applicable: "not_applicable";
|
|
948
|
+
}>;
|
|
949
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
950
|
+
}, z.core.$strip>>>;
|
|
951
|
+
budgets: z.ZodObject<{
|
|
952
|
+
max_commits: z.ZodNumber;
|
|
953
|
+
max_mutations: z.ZodNumber;
|
|
954
|
+
max_minutes: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>;
|
|
956
|
+
expected: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
957
|
+
leg: z.ZodEnum<{
|
|
958
|
+
known_bad: "known_bad";
|
|
959
|
+
known_good: "known_good";
|
|
960
|
+
current_baseline: "current_baseline";
|
|
961
|
+
accepted_history: "accepted_history";
|
|
962
|
+
mutations: "mutations";
|
|
963
|
+
}>;
|
|
964
|
+
result: z.ZodOptional<z.ZodEnum<{
|
|
965
|
+
unknown: "unknown";
|
|
966
|
+
error: "error";
|
|
967
|
+
satisfied: "satisfied";
|
|
968
|
+
violated: "violated";
|
|
969
|
+
not_applicable: "not_applicable";
|
|
970
|
+
}>>;
|
|
971
|
+
classification_required: z.ZodDefault<z.ZodBoolean>;
|
|
972
|
+
}, z.core.$strip>>>;
|
|
973
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
974
|
+
limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
975
|
+
created_at: z.ZodString;
|
|
976
|
+
}, z.core.$strict>;
|
|
977
|
+
export type ProofPlan = z.infer<typeof ProofPlanSchema>;
|
|
978
|
+
export declare const PolicyEvaluationSchema: z.ZodObject<{
|
|
979
|
+
policy_id: z.ZodString;
|
|
980
|
+
policy_revision: z.ZodNumber;
|
|
981
|
+
result: z.ZodEnum<{
|
|
982
|
+
unknown: "unknown";
|
|
983
|
+
error: "error";
|
|
984
|
+
satisfied: "satisfied";
|
|
985
|
+
violated: "violated";
|
|
986
|
+
not_applicable: "not_applicable";
|
|
987
|
+
}>;
|
|
988
|
+
evaluator: z.ZodObject<{
|
|
989
|
+
name: z.ZodString;
|
|
990
|
+
version: z.ZodString;
|
|
991
|
+
}, z.core.$strip>;
|
|
992
|
+
repository: z.ZodObject<{
|
|
993
|
+
base: z.ZodOptional<z.ZodString>;
|
|
994
|
+
head: z.ZodString;
|
|
995
|
+
graph_hash: z.ZodString;
|
|
996
|
+
}, z.core.$strip>;
|
|
997
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
998
|
+
file: z.ZodString;
|
|
999
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1000
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
relation_path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1002
|
+
}, z.core.$strip>>;
|
|
1003
|
+
explanation: z.ZodString;
|
|
1004
|
+
evidence_refs: z.ZodArray<z.ZodString>;
|
|
1005
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
commit: z.ZodString;
|
|
1007
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1008
|
+
kind: z.ZodEnum<{
|
|
1009
|
+
staged: "staged";
|
|
1010
|
+
working: "working";
|
|
1011
|
+
}>;
|
|
1012
|
+
base_commit: z.ZodString;
|
|
1013
|
+
snapshot_hash: z.ZodString;
|
|
1014
|
+
files: z.ZodArray<z.ZodString>;
|
|
1015
|
+
}, z.core.$strict>>;
|
|
1016
|
+
test: z.ZodObject<{
|
|
1017
|
+
file: z.ZodString;
|
|
1018
|
+
name: z.ZodString;
|
|
1019
|
+
source_hash: z.ZodString;
|
|
1020
|
+
}, z.core.$strict>;
|
|
1021
|
+
runner: z.ZodEnum<{
|
|
1022
|
+
"node-test": "node-test";
|
|
1023
|
+
"node-test-tsx": "node-test-tsx";
|
|
1024
|
+
}>;
|
|
1025
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1027
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1028
|
+
passed: "passed";
|
|
1029
|
+
failed: "failed";
|
|
1030
|
+
}>>;
|
|
1031
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
execution_hash: z.ZodString;
|
|
1033
|
+
}, z.core.$strict>>;
|
|
1034
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1035
|
+
kind: z.ZodLiteral<"parent_with_exceptions">;
|
|
1036
|
+
root_policy_id: z.ZodString;
|
|
1037
|
+
root_policy_hash: z.ZodString;
|
|
1038
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1039
|
+
policy_id: z.ZodString;
|
|
1040
|
+
policy_hash: z.ZodString;
|
|
1041
|
+
exception_of: z.ZodString;
|
|
1042
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
1043
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1044
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1045
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1046
|
+
}, z.core.$strip>>;
|
|
1047
|
+
}, z.core.$strict>>;
|
|
1048
|
+
composite_hash: z.ZodString;
|
|
1049
|
+
selected_policy_id: z.ZodString;
|
|
1050
|
+
applicable_policy_ids: z.ZodArray<z.ZodString>;
|
|
1051
|
+
member_evaluation_hashes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1052
|
+
}, z.core.$strict>>;
|
|
1053
|
+
deterministic_hash: z.ZodString;
|
|
1054
|
+
}, z.core.$strip>;
|
|
1055
|
+
export type PolicyEvaluation = z.infer<typeof PolicyEvaluationSchema>;
|
|
1056
|
+
export declare const ProofClassSchema: z.ZodEnum<{
|
|
1057
|
+
P0: "P0";
|
|
1058
|
+
P1: "P1";
|
|
1059
|
+
P2: "P2";
|
|
1060
|
+
P3: "P3";
|
|
1061
|
+
P4: "P4";
|
|
1062
|
+
P5: "P5";
|
|
1063
|
+
}>;
|
|
1064
|
+
export type ProofClass = z.infer<typeof ProofClassSchema>;
|
|
1065
|
+
export declare const EvaluationSummarySchema: z.ZodObject<{
|
|
1066
|
+
total: z.ZodNumber;
|
|
1067
|
+
satisfied: z.ZodNumber;
|
|
1068
|
+
violated: z.ZodNumber;
|
|
1069
|
+
not_applicable: z.ZodNumber;
|
|
1070
|
+
unknown: z.ZodNumber;
|
|
1071
|
+
error: z.ZodNumber;
|
|
1072
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1073
|
+
}, z.core.$strip>;
|
|
1074
|
+
export type EvaluationSummary = z.infer<typeof EvaluationSummarySchema>;
|
|
1075
|
+
export declare const ReplayReceiptSchema: z.ZodObject<{
|
|
1076
|
+
leg: z.ZodEnum<{
|
|
1077
|
+
known_bad: "known_bad";
|
|
1078
|
+
known_good: "known_good";
|
|
1079
|
+
current_baseline: "current_baseline";
|
|
1080
|
+
accepted_history: "accepted_history";
|
|
1081
|
+
}>;
|
|
1082
|
+
commit: z.ZodString;
|
|
1083
|
+
expected: z.ZodOptional<z.ZodEnum<{
|
|
1084
|
+
unknown: "unknown";
|
|
1085
|
+
error: "error";
|
|
1086
|
+
satisfied: "satisfied";
|
|
1087
|
+
violated: "violated";
|
|
1088
|
+
not_applicable: "not_applicable";
|
|
1089
|
+
}>>;
|
|
1090
|
+
policy_hash: z.ZodString;
|
|
1091
|
+
evaluator: z.ZodObject<{
|
|
1092
|
+
name: z.ZodString;
|
|
1093
|
+
version: z.ZodString;
|
|
1094
|
+
}, z.core.$strip>;
|
|
1095
|
+
result: z.ZodEnum<{
|
|
1096
|
+
unknown: "unknown";
|
|
1097
|
+
error: "error";
|
|
1098
|
+
satisfied: "satisfied";
|
|
1099
|
+
violated: "violated";
|
|
1100
|
+
not_applicable: "not_applicable";
|
|
1101
|
+
}>;
|
|
1102
|
+
graph_hash: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
evaluation_hash: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1106
|
+
commit: z.ZodString;
|
|
1107
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1108
|
+
kind: z.ZodEnum<{
|
|
1109
|
+
staged: "staged";
|
|
1110
|
+
working: "working";
|
|
1111
|
+
}>;
|
|
1112
|
+
base_commit: z.ZodString;
|
|
1113
|
+
snapshot_hash: z.ZodString;
|
|
1114
|
+
files: z.ZodArray<z.ZodString>;
|
|
1115
|
+
}, z.core.$strict>>;
|
|
1116
|
+
test: z.ZodObject<{
|
|
1117
|
+
file: z.ZodString;
|
|
1118
|
+
name: z.ZodString;
|
|
1119
|
+
source_hash: z.ZodString;
|
|
1120
|
+
}, z.core.$strict>;
|
|
1121
|
+
runner: z.ZodEnum<{
|
|
1122
|
+
"node-test": "node-test";
|
|
1123
|
+
"node-test-tsx": "node-test-tsx";
|
|
1124
|
+
}>;
|
|
1125
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1127
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1128
|
+
passed: "passed";
|
|
1129
|
+
failed: "failed";
|
|
1130
|
+
}>>;
|
|
1131
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
execution_hash: z.ZodString;
|
|
1133
|
+
}, z.core.$strict>>;
|
|
1134
|
+
deterministic_hash: z.ZodString;
|
|
1135
|
+
}, z.core.$strict>;
|
|
1136
|
+
export type ReplayReceipt = z.infer<typeof ReplayReceiptSchema>;
|
|
1137
|
+
export declare const HistoryDispositionClassificationSchema: z.ZodEnum<{
|
|
1138
|
+
true_positive_actionable: "true_positive_actionable";
|
|
1139
|
+
true_positive_accepted_exception: "true_positive_accepted_exception";
|
|
1140
|
+
false_positive_selector: "false_positive_selector";
|
|
1141
|
+
false_positive_semantics: "false_positive_semantics";
|
|
1142
|
+
false_positive_stale: "false_positive_stale";
|
|
1143
|
+
unknown_insufficient_parser: "unknown_insufficient_parser";
|
|
1144
|
+
}>;
|
|
1145
|
+
export type HistoryDispositionClassification = z.infer<typeof HistoryDispositionClassificationSchema>;
|
|
1146
|
+
export declare const HistoryDispositionSchema: z.ZodObject<{
|
|
1147
|
+
id: z.ZodString;
|
|
1148
|
+
content_hash: z.ZodString;
|
|
1149
|
+
policy_id: z.ZodString;
|
|
1150
|
+
proof_id: z.ZodString;
|
|
1151
|
+
policy_hash: z.ZodString;
|
|
1152
|
+
plan_hash: z.ZodString;
|
|
1153
|
+
commit: z.ZodString;
|
|
1154
|
+
receipt_hash: z.ZodString;
|
|
1155
|
+
classification: z.ZodEnum<{
|
|
1156
|
+
true_positive_actionable: "true_positive_actionable";
|
|
1157
|
+
true_positive_accepted_exception: "true_positive_accepted_exception";
|
|
1158
|
+
false_positive_selector: "false_positive_selector";
|
|
1159
|
+
false_positive_semantics: "false_positive_semantics";
|
|
1160
|
+
false_positive_stale: "false_positive_stale";
|
|
1161
|
+
unknown_insufficient_parser: "unknown_insufficient_parser";
|
|
1162
|
+
}>;
|
|
1163
|
+
actor: z.ZodString;
|
|
1164
|
+
reason: z.ZodString;
|
|
1165
|
+
supersedes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1166
|
+
data_class: z.ZodEnum<{
|
|
1167
|
+
public: "public";
|
|
1168
|
+
private: "private";
|
|
1169
|
+
secret: "secret";
|
|
1170
|
+
}>;
|
|
1171
|
+
created_at: z.ZodString;
|
|
1172
|
+
}, z.core.$strict>;
|
|
1173
|
+
export type HistoryDisposition = z.infer<typeof HistoryDispositionSchema>;
|
|
1174
|
+
export declare const ShadowEvaluationRecordSchema: z.ZodObject<{
|
|
1175
|
+
record_type: z.ZodLiteral<"evaluation">;
|
|
1176
|
+
id: z.ZodString;
|
|
1177
|
+
content_hash: z.ZodString;
|
|
1178
|
+
policy_id: z.ZodString;
|
|
1179
|
+
proof_id: z.ZodString;
|
|
1180
|
+
policy_hash: z.ZodString;
|
|
1181
|
+
plan_hash: z.ZodString;
|
|
1182
|
+
evaluation: z.ZodObject<{
|
|
1183
|
+
policy_id: z.ZodString;
|
|
1184
|
+
policy_revision: z.ZodNumber;
|
|
1185
|
+
result: z.ZodEnum<{
|
|
1186
|
+
unknown: "unknown";
|
|
1187
|
+
error: "error";
|
|
1188
|
+
satisfied: "satisfied";
|
|
1189
|
+
violated: "violated";
|
|
1190
|
+
not_applicable: "not_applicable";
|
|
1191
|
+
}>;
|
|
1192
|
+
evaluator: z.ZodObject<{
|
|
1193
|
+
name: z.ZodString;
|
|
1194
|
+
version: z.ZodString;
|
|
1195
|
+
}, z.core.$strip>;
|
|
1196
|
+
repository: z.ZodObject<{
|
|
1197
|
+
base: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
head: z.ZodString;
|
|
1199
|
+
graph_hash: z.ZodString;
|
|
1200
|
+
}, z.core.$strip>;
|
|
1201
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
1202
|
+
file: z.ZodString;
|
|
1203
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
relation_path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1206
|
+
}, z.core.$strip>>;
|
|
1207
|
+
explanation: z.ZodString;
|
|
1208
|
+
evidence_refs: z.ZodArray<z.ZodString>;
|
|
1209
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1210
|
+
commit: z.ZodString;
|
|
1211
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1212
|
+
kind: z.ZodEnum<{
|
|
1213
|
+
staged: "staged";
|
|
1214
|
+
working: "working";
|
|
1215
|
+
}>;
|
|
1216
|
+
base_commit: z.ZodString;
|
|
1217
|
+
snapshot_hash: z.ZodString;
|
|
1218
|
+
files: z.ZodArray<z.ZodString>;
|
|
1219
|
+
}, z.core.$strict>>;
|
|
1220
|
+
test: z.ZodObject<{
|
|
1221
|
+
file: z.ZodString;
|
|
1222
|
+
name: z.ZodString;
|
|
1223
|
+
source_hash: z.ZodString;
|
|
1224
|
+
}, z.core.$strict>;
|
|
1225
|
+
runner: z.ZodEnum<{
|
|
1226
|
+
"node-test": "node-test";
|
|
1227
|
+
"node-test-tsx": "node-test-tsx";
|
|
1228
|
+
}>;
|
|
1229
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1231
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1232
|
+
passed: "passed";
|
|
1233
|
+
failed: "failed";
|
|
1234
|
+
}>>;
|
|
1235
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
execution_hash: z.ZodString;
|
|
1237
|
+
}, z.core.$strict>>;
|
|
1238
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1239
|
+
kind: z.ZodLiteral<"parent_with_exceptions">;
|
|
1240
|
+
root_policy_id: z.ZodString;
|
|
1241
|
+
root_policy_hash: z.ZodString;
|
|
1242
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1243
|
+
policy_id: z.ZodString;
|
|
1244
|
+
policy_hash: z.ZodString;
|
|
1245
|
+
exception_of: z.ZodString;
|
|
1246
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
1247
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1248
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1249
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1250
|
+
}, z.core.$strip>>;
|
|
1251
|
+
}, z.core.$strict>>;
|
|
1252
|
+
composite_hash: z.ZodString;
|
|
1253
|
+
selected_policy_id: z.ZodString;
|
|
1254
|
+
applicable_policy_ids: z.ZodArray<z.ZodString>;
|
|
1255
|
+
member_evaluation_hashes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1256
|
+
}, z.core.$strict>>;
|
|
1257
|
+
deterministic_hash: z.ZodString;
|
|
1258
|
+
}, z.core.$strip>;
|
|
1259
|
+
also_detected_by: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1260
|
+
latency_ms: z.ZodNumber;
|
|
1261
|
+
data_class: z.ZodEnum<{
|
|
1262
|
+
public: "public";
|
|
1263
|
+
private: "private";
|
|
1264
|
+
secret: "secret";
|
|
1265
|
+
}>;
|
|
1266
|
+
observed_at: z.ZodString;
|
|
1267
|
+
}, z.core.$strict>;
|
|
1268
|
+
export type ShadowEvaluationRecord = z.infer<typeof ShadowEvaluationRecordSchema>;
|
|
1269
|
+
export declare const ShadowDispositionSchema: z.ZodObject<{
|
|
1270
|
+
record_type: z.ZodLiteral<"disposition">;
|
|
1271
|
+
id: z.ZodString;
|
|
1272
|
+
content_hash: z.ZodString;
|
|
1273
|
+
shadow_id: z.ZodString;
|
|
1274
|
+
policy_id: z.ZodString;
|
|
1275
|
+
proof_id: z.ZodString;
|
|
1276
|
+
policy_hash: z.ZodString;
|
|
1277
|
+
evaluation_hash: z.ZodString;
|
|
1278
|
+
classification: z.ZodEnum<{
|
|
1279
|
+
true_positive_actionable: "true_positive_actionable";
|
|
1280
|
+
true_positive_accepted_exception: "true_positive_accepted_exception";
|
|
1281
|
+
false_positive_selector: "false_positive_selector";
|
|
1282
|
+
false_positive_semantics: "false_positive_semantics";
|
|
1283
|
+
false_positive_stale: "false_positive_stale";
|
|
1284
|
+
unknown_insufficient_parser: "unknown_insufficient_parser";
|
|
1285
|
+
}>;
|
|
1286
|
+
actor: z.ZodString;
|
|
1287
|
+
reason: z.ZodString;
|
|
1288
|
+
supersedes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1289
|
+
data_class: z.ZodEnum<{
|
|
1290
|
+
public: "public";
|
|
1291
|
+
private: "private";
|
|
1292
|
+
secret: "secret";
|
|
1293
|
+
}>;
|
|
1294
|
+
created_at: z.ZodString;
|
|
1295
|
+
}, z.core.$strict>;
|
|
1296
|
+
export type ShadowDisposition = z.infer<typeof ShadowDispositionSchema>;
|
|
1297
|
+
export declare const ShadowRecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1298
|
+
record_type: z.ZodLiteral<"evaluation">;
|
|
1299
|
+
id: z.ZodString;
|
|
1300
|
+
content_hash: z.ZodString;
|
|
1301
|
+
policy_id: z.ZodString;
|
|
1302
|
+
proof_id: z.ZodString;
|
|
1303
|
+
policy_hash: z.ZodString;
|
|
1304
|
+
plan_hash: z.ZodString;
|
|
1305
|
+
evaluation: z.ZodObject<{
|
|
1306
|
+
policy_id: z.ZodString;
|
|
1307
|
+
policy_revision: z.ZodNumber;
|
|
1308
|
+
result: z.ZodEnum<{
|
|
1309
|
+
unknown: "unknown";
|
|
1310
|
+
error: "error";
|
|
1311
|
+
satisfied: "satisfied";
|
|
1312
|
+
violated: "violated";
|
|
1313
|
+
not_applicable: "not_applicable";
|
|
1314
|
+
}>;
|
|
1315
|
+
evaluator: z.ZodObject<{
|
|
1316
|
+
name: z.ZodString;
|
|
1317
|
+
version: z.ZodString;
|
|
1318
|
+
}, z.core.$strip>;
|
|
1319
|
+
repository: z.ZodObject<{
|
|
1320
|
+
base: z.ZodOptional<z.ZodString>;
|
|
1321
|
+
head: z.ZodString;
|
|
1322
|
+
graph_hash: z.ZodString;
|
|
1323
|
+
}, z.core.$strip>;
|
|
1324
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
1325
|
+
file: z.ZodString;
|
|
1326
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1327
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
relation_path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1329
|
+
}, z.core.$strip>>;
|
|
1330
|
+
explanation: z.ZodString;
|
|
1331
|
+
evidence_refs: z.ZodArray<z.ZodString>;
|
|
1332
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1333
|
+
commit: z.ZodString;
|
|
1334
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1335
|
+
kind: z.ZodEnum<{
|
|
1336
|
+
staged: "staged";
|
|
1337
|
+
working: "working";
|
|
1338
|
+
}>;
|
|
1339
|
+
base_commit: z.ZodString;
|
|
1340
|
+
snapshot_hash: z.ZodString;
|
|
1341
|
+
files: z.ZodArray<z.ZodString>;
|
|
1342
|
+
}, z.core.$strict>>;
|
|
1343
|
+
test: z.ZodObject<{
|
|
1344
|
+
file: z.ZodString;
|
|
1345
|
+
name: z.ZodString;
|
|
1346
|
+
source_hash: z.ZodString;
|
|
1347
|
+
}, z.core.$strict>;
|
|
1348
|
+
runner: z.ZodEnum<{
|
|
1349
|
+
"node-test": "node-test";
|
|
1350
|
+
"node-test-tsx": "node-test-tsx";
|
|
1351
|
+
}>;
|
|
1352
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1354
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1355
|
+
passed: "passed";
|
|
1356
|
+
failed: "failed";
|
|
1357
|
+
}>>;
|
|
1358
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1359
|
+
execution_hash: z.ZodString;
|
|
1360
|
+
}, z.core.$strict>>;
|
|
1361
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1362
|
+
kind: z.ZodLiteral<"parent_with_exceptions">;
|
|
1363
|
+
root_policy_id: z.ZodString;
|
|
1364
|
+
root_policy_hash: z.ZodString;
|
|
1365
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1366
|
+
policy_id: z.ZodString;
|
|
1367
|
+
policy_hash: z.ZodString;
|
|
1368
|
+
exception_of: z.ZodString;
|
|
1369
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
1370
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1371
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1372
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1373
|
+
}, z.core.$strip>>;
|
|
1374
|
+
}, z.core.$strict>>;
|
|
1375
|
+
composite_hash: z.ZodString;
|
|
1376
|
+
selected_policy_id: z.ZodString;
|
|
1377
|
+
applicable_policy_ids: z.ZodArray<z.ZodString>;
|
|
1378
|
+
member_evaluation_hashes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1379
|
+
}, z.core.$strict>>;
|
|
1380
|
+
deterministic_hash: z.ZodString;
|
|
1381
|
+
}, z.core.$strip>;
|
|
1382
|
+
also_detected_by: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1383
|
+
latency_ms: z.ZodNumber;
|
|
1384
|
+
data_class: z.ZodEnum<{
|
|
1385
|
+
public: "public";
|
|
1386
|
+
private: "private";
|
|
1387
|
+
secret: "secret";
|
|
1388
|
+
}>;
|
|
1389
|
+
observed_at: z.ZodString;
|
|
1390
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1391
|
+
record_type: z.ZodLiteral<"disposition">;
|
|
1392
|
+
id: z.ZodString;
|
|
1393
|
+
content_hash: z.ZodString;
|
|
1394
|
+
shadow_id: z.ZodString;
|
|
1395
|
+
policy_id: z.ZodString;
|
|
1396
|
+
proof_id: z.ZodString;
|
|
1397
|
+
policy_hash: z.ZodString;
|
|
1398
|
+
evaluation_hash: z.ZodString;
|
|
1399
|
+
classification: z.ZodEnum<{
|
|
1400
|
+
true_positive_actionable: "true_positive_actionable";
|
|
1401
|
+
true_positive_accepted_exception: "true_positive_accepted_exception";
|
|
1402
|
+
false_positive_selector: "false_positive_selector";
|
|
1403
|
+
false_positive_semantics: "false_positive_semantics";
|
|
1404
|
+
false_positive_stale: "false_positive_stale";
|
|
1405
|
+
unknown_insufficient_parser: "unknown_insufficient_parser";
|
|
1406
|
+
}>;
|
|
1407
|
+
actor: z.ZodString;
|
|
1408
|
+
reason: z.ZodString;
|
|
1409
|
+
supersedes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1410
|
+
data_class: z.ZodEnum<{
|
|
1411
|
+
public: "public";
|
|
1412
|
+
private: "private";
|
|
1413
|
+
secret: "secret";
|
|
1414
|
+
}>;
|
|
1415
|
+
created_at: z.ZodString;
|
|
1416
|
+
}, z.core.$strict>], "record_type">;
|
|
1417
|
+
export type ShadowRecord = z.infer<typeof ShadowRecordSchema>;
|
|
1418
|
+
export declare const MutationReceiptSchema: z.ZodObject<{
|
|
1419
|
+
id: z.ZodString;
|
|
1420
|
+
kind: z.ZodEnum<{
|
|
1421
|
+
primary: "primary";
|
|
1422
|
+
control: "control";
|
|
1423
|
+
}>;
|
|
1424
|
+
operator: z.ZodString;
|
|
1425
|
+
required: z.ZodBoolean;
|
|
1426
|
+
engine: z.ZodObject<{
|
|
1427
|
+
name: z.ZodString;
|
|
1428
|
+
version: z.ZodString;
|
|
1429
|
+
}, z.core.$strip>;
|
|
1430
|
+
policy_hash: z.ZodString;
|
|
1431
|
+
base_commit: z.ZodString;
|
|
1432
|
+
base_graph_hash: z.ZodString;
|
|
1433
|
+
mutated_graph_hash: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
expected: z.ZodEnum<{
|
|
1435
|
+
unknown: "unknown";
|
|
1436
|
+
error: "error";
|
|
1437
|
+
satisfied: "satisfied";
|
|
1438
|
+
violated: "violated";
|
|
1439
|
+
not_applicable: "not_applicable";
|
|
1440
|
+
}>;
|
|
1441
|
+
result: z.ZodEnum<{
|
|
1442
|
+
unknown: "unknown";
|
|
1443
|
+
error: "error";
|
|
1444
|
+
satisfied: "satisfied";
|
|
1445
|
+
violated: "violated";
|
|
1446
|
+
not_applicable: "not_applicable";
|
|
1447
|
+
}>;
|
|
1448
|
+
passed: z.ZodBoolean;
|
|
1449
|
+
parseability: z.ZodEnum<{
|
|
1450
|
+
not_applicable: "not_applicable";
|
|
1451
|
+
parseable: "parseable";
|
|
1452
|
+
unparseable: "unparseable";
|
|
1453
|
+
}>;
|
|
1454
|
+
graph_diff: z.ZodObject<{
|
|
1455
|
+
added_symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1456
|
+
removed_symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1457
|
+
added_edges: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1458
|
+
removed_edges: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1459
|
+
}, z.core.$strict>;
|
|
1460
|
+
parser_control: z.ZodOptional<z.ZodObject<{
|
|
1461
|
+
source_hash: z.ZodString;
|
|
1462
|
+
observed_target_calls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1463
|
+
observed_target_imports: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1464
|
+
}, z.core.$strict>>;
|
|
1465
|
+
source_patch: z.ZodOptional<z.ZodObject<{
|
|
1466
|
+
files: z.ZodArray<z.ZodString>;
|
|
1467
|
+
diff: z.ZodString;
|
|
1468
|
+
diff_hash: z.ZodString;
|
|
1469
|
+
}, z.core.$strict>>;
|
|
1470
|
+
evaluation_hash: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1473
|
+
commit: z.ZodString;
|
|
1474
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1475
|
+
kind: z.ZodEnum<{
|
|
1476
|
+
staged: "staged";
|
|
1477
|
+
working: "working";
|
|
1478
|
+
}>;
|
|
1479
|
+
base_commit: z.ZodString;
|
|
1480
|
+
snapshot_hash: z.ZodString;
|
|
1481
|
+
files: z.ZodArray<z.ZodString>;
|
|
1482
|
+
}, z.core.$strict>>;
|
|
1483
|
+
test: z.ZodObject<{
|
|
1484
|
+
file: z.ZodString;
|
|
1485
|
+
name: z.ZodString;
|
|
1486
|
+
source_hash: z.ZodString;
|
|
1487
|
+
}, z.core.$strict>;
|
|
1488
|
+
runner: z.ZodEnum<{
|
|
1489
|
+
"node-test": "node-test";
|
|
1490
|
+
"node-test-tsx": "node-test-tsx";
|
|
1491
|
+
}>;
|
|
1492
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1493
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1494
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1495
|
+
passed: "passed";
|
|
1496
|
+
failed: "failed";
|
|
1497
|
+
}>>;
|
|
1498
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1499
|
+
execution_hash: z.ZodString;
|
|
1500
|
+
}, z.core.$strict>>;
|
|
1501
|
+
deterministic_hash: z.ZodString;
|
|
1502
|
+
}, z.core.$strict>;
|
|
1503
|
+
export type MutationReceipt = z.infer<typeof MutationReceiptSchema>;
|
|
1504
|
+
export declare const PolicyProofSchema: z.ZodObject<{
|
|
1505
|
+
id: z.ZodString;
|
|
1506
|
+
plan_hash: z.ZodString;
|
|
1507
|
+
policy_hash: z.ZodString;
|
|
1508
|
+
evaluator: z.ZodObject<{
|
|
1509
|
+
name: z.ZodString;
|
|
1510
|
+
version: z.ZodString;
|
|
1511
|
+
}, z.core.$strip>;
|
|
1512
|
+
mutation_engine: z.ZodOptional<z.ZodObject<{
|
|
1513
|
+
name: z.ZodString;
|
|
1514
|
+
version: z.ZodString;
|
|
1515
|
+
}, z.core.$strip>>;
|
|
1516
|
+
composition: z.ZodOptional<z.ZodObject<{
|
|
1517
|
+
kind: z.ZodLiteral<"parent_with_exceptions">;
|
|
1518
|
+
root_policy_id: z.ZodString;
|
|
1519
|
+
root_policy_hash: z.ZodString;
|
|
1520
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1521
|
+
policy_id: z.ZodString;
|
|
1522
|
+
policy_hash: z.ZodString;
|
|
1523
|
+
exception_of: z.ZodString;
|
|
1524
|
+
scope: z.ZodDefault<z.ZodObject<{
|
|
1525
|
+
repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1526
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1527
|
+
components: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1528
|
+
}, z.core.$strip>>;
|
|
1529
|
+
}, z.core.$strict>>;
|
|
1530
|
+
composite_hash: z.ZodString;
|
|
1531
|
+
}, z.core.$strict>>;
|
|
1532
|
+
generated_at: z.ZodString;
|
|
1533
|
+
current: z.ZodObject<{
|
|
1534
|
+
total: z.ZodNumber;
|
|
1535
|
+
satisfied: z.ZodNumber;
|
|
1536
|
+
violated: z.ZodNumber;
|
|
1537
|
+
not_applicable: z.ZodNumber;
|
|
1538
|
+
unknown: z.ZodNumber;
|
|
1539
|
+
error: z.ZodNumber;
|
|
1540
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1541
|
+
}, z.core.$strip>;
|
|
1542
|
+
known_bad: z.ZodObject<{
|
|
1543
|
+
total: z.ZodNumber;
|
|
1544
|
+
satisfied: z.ZodNumber;
|
|
1545
|
+
violated: z.ZodNumber;
|
|
1546
|
+
not_applicable: z.ZodNumber;
|
|
1547
|
+
unknown: z.ZodNumber;
|
|
1548
|
+
error: z.ZodNumber;
|
|
1549
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1550
|
+
}, z.core.$strip>;
|
|
1551
|
+
known_good: z.ZodObject<{
|
|
1552
|
+
total: z.ZodNumber;
|
|
1553
|
+
satisfied: z.ZodNumber;
|
|
1554
|
+
violated: z.ZodNumber;
|
|
1555
|
+
not_applicable: z.ZodNumber;
|
|
1556
|
+
unknown: z.ZodNumber;
|
|
1557
|
+
error: z.ZodNumber;
|
|
1558
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1559
|
+
}, z.core.$strip>;
|
|
1560
|
+
accepted_history: z.ZodObject<{
|
|
1561
|
+
total: z.ZodNumber;
|
|
1562
|
+
satisfied: z.ZodNumber;
|
|
1563
|
+
violated: z.ZodNumber;
|
|
1564
|
+
not_applicable: z.ZodNumber;
|
|
1565
|
+
unknown: z.ZodNumber;
|
|
1566
|
+
error: z.ZodNumber;
|
|
1567
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1568
|
+
classified_hits: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1569
|
+
}, z.core.$strip>;
|
|
1570
|
+
mutations: z.ZodObject<{
|
|
1571
|
+
total: z.ZodNumber;
|
|
1572
|
+
satisfied: z.ZodNumber;
|
|
1573
|
+
violated: z.ZodNumber;
|
|
1574
|
+
not_applicable: z.ZodNumber;
|
|
1575
|
+
unknown: z.ZodNumber;
|
|
1576
|
+
error: z.ZodNumber;
|
|
1577
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1578
|
+
operator_coverage: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1579
|
+
}, z.core.$strip>;
|
|
1580
|
+
replay_receipts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1581
|
+
leg: z.ZodEnum<{
|
|
1582
|
+
known_bad: "known_bad";
|
|
1583
|
+
known_good: "known_good";
|
|
1584
|
+
current_baseline: "current_baseline";
|
|
1585
|
+
accepted_history: "accepted_history";
|
|
1586
|
+
}>;
|
|
1587
|
+
commit: z.ZodString;
|
|
1588
|
+
expected: z.ZodOptional<z.ZodEnum<{
|
|
1589
|
+
unknown: "unknown";
|
|
1590
|
+
error: "error";
|
|
1591
|
+
satisfied: "satisfied";
|
|
1592
|
+
violated: "violated";
|
|
1593
|
+
not_applicable: "not_applicable";
|
|
1594
|
+
}>>;
|
|
1595
|
+
policy_hash: z.ZodString;
|
|
1596
|
+
evaluator: z.ZodObject<{
|
|
1597
|
+
name: z.ZodString;
|
|
1598
|
+
version: z.ZodString;
|
|
1599
|
+
}, z.core.$strip>;
|
|
1600
|
+
result: z.ZodEnum<{
|
|
1601
|
+
unknown: "unknown";
|
|
1602
|
+
error: "error";
|
|
1603
|
+
satisfied: "satisfied";
|
|
1604
|
+
violated: "violated";
|
|
1605
|
+
not_applicable: "not_applicable";
|
|
1606
|
+
}>;
|
|
1607
|
+
graph_hash: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
evaluation_hash: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1611
|
+
commit: z.ZodString;
|
|
1612
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1613
|
+
kind: z.ZodEnum<{
|
|
1614
|
+
staged: "staged";
|
|
1615
|
+
working: "working";
|
|
1616
|
+
}>;
|
|
1617
|
+
base_commit: z.ZodString;
|
|
1618
|
+
snapshot_hash: z.ZodString;
|
|
1619
|
+
files: z.ZodArray<z.ZodString>;
|
|
1620
|
+
}, z.core.$strict>>;
|
|
1621
|
+
test: z.ZodObject<{
|
|
1622
|
+
file: z.ZodString;
|
|
1623
|
+
name: z.ZodString;
|
|
1624
|
+
source_hash: z.ZodString;
|
|
1625
|
+
}, z.core.$strict>;
|
|
1626
|
+
runner: z.ZodEnum<{
|
|
1627
|
+
"node-test": "node-test";
|
|
1628
|
+
"node-test-tsx": "node-test-tsx";
|
|
1629
|
+
}>;
|
|
1630
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1631
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1632
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1633
|
+
passed: "passed";
|
|
1634
|
+
failed: "failed";
|
|
1635
|
+
}>>;
|
|
1636
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1637
|
+
execution_hash: z.ZodString;
|
|
1638
|
+
}, z.core.$strict>>;
|
|
1639
|
+
deterministic_hash: z.ZodString;
|
|
1640
|
+
}, z.core.$strict>>>;
|
|
1641
|
+
mutation_receipts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1642
|
+
id: z.ZodString;
|
|
1643
|
+
kind: z.ZodEnum<{
|
|
1644
|
+
primary: "primary";
|
|
1645
|
+
control: "control";
|
|
1646
|
+
}>;
|
|
1647
|
+
operator: z.ZodString;
|
|
1648
|
+
required: z.ZodBoolean;
|
|
1649
|
+
engine: z.ZodObject<{
|
|
1650
|
+
name: z.ZodString;
|
|
1651
|
+
version: z.ZodString;
|
|
1652
|
+
}, z.core.$strip>;
|
|
1653
|
+
policy_hash: z.ZodString;
|
|
1654
|
+
base_commit: z.ZodString;
|
|
1655
|
+
base_graph_hash: z.ZodString;
|
|
1656
|
+
mutated_graph_hash: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
expected: z.ZodEnum<{
|
|
1658
|
+
unknown: "unknown";
|
|
1659
|
+
error: "error";
|
|
1660
|
+
satisfied: "satisfied";
|
|
1661
|
+
violated: "violated";
|
|
1662
|
+
not_applicable: "not_applicable";
|
|
1663
|
+
}>;
|
|
1664
|
+
result: z.ZodEnum<{
|
|
1665
|
+
unknown: "unknown";
|
|
1666
|
+
error: "error";
|
|
1667
|
+
satisfied: "satisfied";
|
|
1668
|
+
violated: "violated";
|
|
1669
|
+
not_applicable: "not_applicable";
|
|
1670
|
+
}>;
|
|
1671
|
+
passed: z.ZodBoolean;
|
|
1672
|
+
parseability: z.ZodEnum<{
|
|
1673
|
+
not_applicable: "not_applicable";
|
|
1674
|
+
parseable: "parseable";
|
|
1675
|
+
unparseable: "unparseable";
|
|
1676
|
+
}>;
|
|
1677
|
+
graph_diff: z.ZodObject<{
|
|
1678
|
+
added_symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1679
|
+
removed_symbols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1680
|
+
added_edges: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1681
|
+
removed_edges: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1682
|
+
}, z.core.$strict>;
|
|
1683
|
+
parser_control: z.ZodOptional<z.ZodObject<{
|
|
1684
|
+
source_hash: z.ZodString;
|
|
1685
|
+
observed_target_calls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1686
|
+
observed_target_imports: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1687
|
+
}, z.core.$strict>>;
|
|
1688
|
+
source_patch: z.ZodOptional<z.ZodObject<{
|
|
1689
|
+
files: z.ZodArray<z.ZodString>;
|
|
1690
|
+
diff: z.ZodString;
|
|
1691
|
+
diff_hash: z.ZodString;
|
|
1692
|
+
}, z.core.$strict>>;
|
|
1693
|
+
evaluation_hash: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
behavior: z.ZodOptional<z.ZodObject<{
|
|
1696
|
+
commit: z.ZodString;
|
|
1697
|
+
workspace: z.ZodOptional<z.ZodObject<{
|
|
1698
|
+
kind: z.ZodEnum<{
|
|
1699
|
+
staged: "staged";
|
|
1700
|
+
working: "working";
|
|
1701
|
+
}>;
|
|
1702
|
+
base_commit: z.ZodString;
|
|
1703
|
+
snapshot_hash: z.ZodString;
|
|
1704
|
+
files: z.ZodArray<z.ZodString>;
|
|
1705
|
+
}, z.core.$strict>>;
|
|
1706
|
+
test: z.ZodObject<{
|
|
1707
|
+
file: z.ZodString;
|
|
1708
|
+
name: z.ZodString;
|
|
1709
|
+
source_hash: z.ZodString;
|
|
1710
|
+
}, z.core.$strict>;
|
|
1711
|
+
runner: z.ZodEnum<{
|
|
1712
|
+
"node-test": "node-test";
|
|
1713
|
+
"node-test-tsx": "node-test-tsx";
|
|
1714
|
+
}>;
|
|
1715
|
+
dependency_snapshot_id: z.ZodOptional<z.ZodString>;
|
|
1716
|
+
exit_code: z.ZodNullable<z.ZodNumber>;
|
|
1717
|
+
selected_event: z.ZodNullable<z.ZodEnum<{
|
|
1718
|
+
passed: "passed";
|
|
1719
|
+
failed: "failed";
|
|
1720
|
+
}>>;
|
|
1721
|
+
error_code: z.ZodOptional<z.ZodString>;
|
|
1722
|
+
execution_hash: z.ZodString;
|
|
1723
|
+
}, z.core.$strict>>;
|
|
1724
|
+
deterministic_hash: z.ZodString;
|
|
1725
|
+
}, z.core.$strict>>>;
|
|
1726
|
+
mutation_controls: z.ZodDefault<z.ZodObject<{
|
|
1727
|
+
total: z.ZodNumber;
|
|
1728
|
+
passed: z.ZodNumber;
|
|
1729
|
+
failed: z.ZodNumber;
|
|
1730
|
+
receipt_hashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1731
|
+
}, z.core.$strict>>;
|
|
1732
|
+
project_checks: z.ZodDefault<z.ZodObject<{
|
|
1733
|
+
build: z.ZodDefault<z.ZodEnum<{
|
|
1734
|
+
error: "error";
|
|
1735
|
+
passed: "passed";
|
|
1736
|
+
failed: "failed";
|
|
1737
|
+
not_run: "not_run";
|
|
1738
|
+
}>>;
|
|
1739
|
+
test: z.ZodDefault<z.ZodEnum<{
|
|
1740
|
+
error: "error";
|
|
1741
|
+
passed: "passed";
|
|
1742
|
+
failed: "failed";
|
|
1743
|
+
not_run: "not_run";
|
|
1744
|
+
}>>;
|
|
1745
|
+
required_for_evaluator_sensitivity: z.ZodDefault<z.ZodBoolean>;
|
|
1746
|
+
}, z.core.$strict>>;
|
|
1747
|
+
limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1748
|
+
proof_class: z.ZodEnum<{
|
|
1749
|
+
P0: "P0";
|
|
1750
|
+
P1: "P1";
|
|
1751
|
+
P2: "P2";
|
|
1752
|
+
P3: "P3";
|
|
1753
|
+
P4: "P4";
|
|
1754
|
+
P5: "P5";
|
|
1755
|
+
}>;
|
|
1756
|
+
artifact_hashes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1757
|
+
data_class: z.ZodEnum<{
|
|
1758
|
+
public: "public";
|
|
1759
|
+
private: "private";
|
|
1760
|
+
secret: "secret";
|
|
1761
|
+
}>;
|
|
1762
|
+
}, z.core.$loose>;
|
|
1763
|
+
export type PolicyProof = z.infer<typeof PolicyProofSchema>;
|