@c4a/context 0.6.18 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/README.zh-CN.md +5 -5
- package/codeIndexPlan.d.ts +84 -0
- package/contracts.d.ts +2 -1
- package/docs/README.md +7 -0
- package/docs/README.zh-CN.md +5 -0
- package/docs/getting-started.md +12 -12
- package/docs/guides/agent-guide.md +18 -9
- package/docs/guides/code-indexer-skill-authoring.md +124 -0
- package/docs/guides/indexer-provider-and-customization.md +140 -0
- package/docs/guides/lark-resources.md +7 -0
- package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
- package/docs/guides/package-outputs.md +3 -3
- package/docs/reference/code-extractors.md +7 -6
- package/docs/reference/indexer-provider-protocol.md +819 -0
- package/docs/reference/package-templates.md +18 -10
- package/docs/reference/project-api.md +49 -24
- package/index.d.ts +48 -2
- package/index.js +28239 -3948
- package/indexerAgentStepProtocol.d.ts +9391 -0
- package/indexerArtifactDependencies.d.ts +689 -0
- package/indexerArtifactPolicy.d.ts +335 -0
- package/indexerArtifactResult.d.ts +2010 -0
- package/indexerAuditFacts.d.ts +66 -0
- package/indexerAuditOverrideReadiness.d.ts +27 -0
- package/indexerAuditProtocol.d.ts +238 -0
- package/indexerAuditRevision.d.ts +726 -0
- package/indexerAuditRevisionActions.d.ts +236 -0
- package/indexerAuthoringFixture.d.ts +152 -0
- package/indexerBaseQuestionAmendment.d.ts +2403 -0
- package/indexerBenchmark.d.ts +1062 -0
- package/indexerCandidateCompile.d.ts +801 -0
- package/indexerCapabilityGroupEvidence.d.ts +129 -0
- package/indexerCatalogFallback.d.ts +1262 -0
- package/indexerCollectionMapping.d.ts +75 -0
- package/indexerContentLayers.d.ts +137 -0
- package/indexerControlledInvocation.d.ts +512 -0
- package/indexerControlledProgram.d.ts +12535 -0
- package/indexerCoreExports.d.ts +21 -0
- package/indexerCustomizationDraft.d.ts +13800 -0
- package/indexerCustomizationLadder.d.ts +103 -0
- package/indexerDependencyView.d.ts +1610 -0
- package/indexerEvidenceAdapterResult.d.ts +504 -0
- package/indexerExampleDecision.d.ts +1606 -0
- package/indexerExampleIdentity.d.ts +132 -0
- package/indexerExampleIdentityAudit.d.ts +70 -0
- package/indexerExampleLinkageAudit.d.ts +80 -0
- package/indexerGeneratedAuthoringAudit.d.ts +208 -0
- package/indexerIncrementalImpact.d.ts +221 -0
- package/indexerInventoryDisposition.d.ts +443 -0
- package/indexerLayerComposition.d.ts +1652 -0
- package/indexerLayoutChange.d.ts +329 -0
- package/indexerLayoutProposalSet.d.ts +447 -0
- package/indexerLayoutResolver.d.ts +342 -0
- package/indexerLayoutTransition.d.ts +247 -0
- package/indexerLifecycle.d.ts +53 -0
- package/indexerMainLifecycle.d.ts +258 -0
- package/indexerMainRunLedger.d.ts +888 -0
- package/indexerMainRunProtocol.d.ts +6471 -0
- package/indexerMainWorkset.d.ts +2141 -0
- package/indexerMaterialAnswer.d.ts +738 -0
- package/indexerMaterialAnswerActualization.d.ts +91 -0
- package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
- package/indexerMaterialAnswerFlow.d.ts +63 -0
- package/indexerMaterialAnswerLayout.d.ts +76 -0
- package/indexerMaterialAnswerReview.d.ts +217 -0
- package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
- package/indexerMaterialAnswerRunLedger.d.ts +918 -0
- package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
- package/indexerMaterialGapLedger.d.ts +3111 -0
- package/indexerMaterialQuestionExclusion.d.ts +129 -0
- package/indexerMaterialQuestionWorkset.d.ts +508 -0
- package/indexerNavigationArtifactGraph.d.ts +5 -0
- package/indexerNavigationArtifactPlan.d.ts +39 -0
- package/indexerOverlayQuestionAmendment.d.ts +2551 -0
- package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
- package/indexerOverlayTrust.d.ts +1425 -0
- package/indexerParserCoordinate.d.ts +222 -0
- package/indexerParserFactView.d.ts +503 -0
- package/indexerPartitionConvergence.d.ts +496 -0
- package/indexerPartitionPlan.d.ts +919 -0
- package/indexerPartitionStrategyResolution.d.ts +594 -0
- package/indexerPhysicalArtifactAudit.d.ts +247 -0
- package/indexerPhysicalArtifactManifest.d.ts +449 -0
- package/indexerPlannedMaterialAnswer.d.ts +116 -0
- package/indexerPostAuthorComposition.d.ts +2000 -0
- package/indexerPostAuthorRunLedger.d.ts +1972 -0
- package/indexerPrimaryProjection.d.ts +262 -0
- package/indexerProfileContract.d.ts +3034 -0
- package/indexerProfileMetricAudit.d.ts +218 -0
- package/indexerProgramExecutionAuthorization.d.ts +227 -0
- package/indexerProgramRunProtocol.d.ts +7642 -0
- package/indexerProjectProposal.d.ts +2807 -0
- package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
- package/indexerProjectedArtifactPlan.d.ts +217 -0
- package/indexerProtocolCommon.d.ts +29 -0
- package/indexerProvider.d.ts +2573 -0
- package/indexerProviderComposition.d.ts +1357 -0
- package/indexerProviderContractReferences.d.ts +13 -0
- package/indexerProviderProfileResolution.d.ts +20 -0
- package/indexerProviderResolution.d.ts +752 -0
- package/indexerProviderResolutionAction.d.ts +678 -0
- package/indexerProviderRouting.d.ts +3909 -0
- package/indexerProviderSelectionProposal.d.ts +3311 -0
- package/indexerQuestionAuthority.d.ts +419 -0
- package/indexerReaderTargetInventory.d.ts +161 -0
- package/indexerReferenceOnlyAudit.d.ts +90 -0
- package/indexerRegistry.d.ts +3019 -0
- package/indexerRequirementComparison.d.ts +44 -0
- package/indexerRequirementConfirmation.d.ts +1193 -0
- package/indexerRequirementLifecycle.d.ts +3314 -0
- package/indexerRestrictedSelector.d.ts +63 -0
- package/indexerResultReconciliation.d.ts +6844 -0
- package/indexerResultReconciliationRun.d.ts +15 -0
- package/indexerRunEnvelope.d.ts +384 -0
- package/indexerRunProtocolCommon.d.ts +21 -0
- package/indexerSharedArtifactFingerprint.d.ts +33 -0
- package/indexerStructuredDeclaration.d.ts +513 -0
- package/indexerSubjectCatalog.d.ts +230 -0
- package/indexerSubjectIdentity.d.ts +19 -0
- package/indexerSubjectKeyAuthority.d.ts +785 -0
- package/indexerTemplateRendering.d.ts +485 -0
- package/indexerToolSnapshot.d.ts +431 -0
- package/indexerWorksetRead.d.ts +287 -0
- package/package.json +1 -1
- package/phases.d.ts +11 -9
- package/templates/package-templates/kb/AGENTS.md +1 -1
- package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
- package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
- package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const indexerRequirementQuestionBindingSchema: z.ZodObject<{
|
|
3
|
+
ref: z.ZodString;
|
|
4
|
+
authority: z.ZodObject<{
|
|
5
|
+
kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
digest: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
10
|
+
ref: string;
|
|
11
|
+
digest: string;
|
|
12
|
+
}, {
|
|
13
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
14
|
+
ref: string;
|
|
15
|
+
digest: string;
|
|
16
|
+
}>;
|
|
17
|
+
contract_version: z.ZodNumber;
|
|
18
|
+
contract_digest: z.ZodString;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
ref: string;
|
|
21
|
+
authority: {
|
|
22
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
23
|
+
ref: string;
|
|
24
|
+
digest: string;
|
|
25
|
+
};
|
|
26
|
+
contract_version: number;
|
|
27
|
+
contract_digest: string;
|
|
28
|
+
}, {
|
|
29
|
+
ref: string;
|
|
30
|
+
authority: {
|
|
31
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
32
|
+
ref: string;
|
|
33
|
+
digest: string;
|
|
34
|
+
};
|
|
35
|
+
contract_version: number;
|
|
36
|
+
contract_digest: string;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const indexerQuestionEvidenceContractSchema: z.ZodEffects<z.ZodObject<{
|
|
39
|
+
accepted_kinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
|
|
40
|
+
minimum_items: z.ZodNumber;
|
|
41
|
+
minimum_distinct_sources: z.ZodNumber;
|
|
42
|
+
provenance_constraints: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
protocol: z.ZodLiteral<"context.indexer.selector/v1">;
|
|
44
|
+
expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
|
|
45
|
+
}, "strict", z.ZodTypeAny, {
|
|
46
|
+
protocol: "context.indexer.selector/v1";
|
|
47
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
48
|
+
}, {
|
|
49
|
+
protocol: "context.indexer.selector/v1";
|
|
50
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
51
|
+
}>>;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
54
|
+
minimum_items: number;
|
|
55
|
+
minimum_distinct_sources: number;
|
|
56
|
+
provenance_constraints?: {
|
|
57
|
+
protocol: "context.indexer.selector/v1";
|
|
58
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
59
|
+
} | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
62
|
+
minimum_items: number;
|
|
63
|
+
minimum_distinct_sources: number;
|
|
64
|
+
provenance_constraints?: {
|
|
65
|
+
protocol: "context.indexer.selector/v1";
|
|
66
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
67
|
+
} | undefined;
|
|
68
|
+
}>, {
|
|
69
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
70
|
+
minimum_items: number;
|
|
71
|
+
minimum_distinct_sources: number;
|
|
72
|
+
provenance_constraints?: {
|
|
73
|
+
protocol: "context.indexer.selector/v1";
|
|
74
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
75
|
+
} | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
78
|
+
minimum_items: number;
|
|
79
|
+
minimum_distinct_sources: number;
|
|
80
|
+
provenance_constraints?: {
|
|
81
|
+
protocol: "context.indexer.selector/v1";
|
|
82
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
83
|
+
} | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
export declare const indexerResolvedMaterialQuestionSchema: z.ZodObject<{
|
|
86
|
+
ref: z.ZodString;
|
|
87
|
+
authority: z.ZodObject<{
|
|
88
|
+
kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
|
|
89
|
+
ref: z.ZodString;
|
|
90
|
+
digest: z.ZodString;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
93
|
+
ref: string;
|
|
94
|
+
digest: string;
|
|
95
|
+
}, {
|
|
96
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
97
|
+
ref: string;
|
|
98
|
+
digest: string;
|
|
99
|
+
}>;
|
|
100
|
+
contract_version: z.ZodNumber;
|
|
101
|
+
contract_digest: z.ZodString;
|
|
102
|
+
semantic: z.ZodEffects<z.ZodString, string, string>;
|
|
103
|
+
coverage_domain: z.ZodEffects<z.ZodString, string, string>;
|
|
104
|
+
target_domain_ref: z.ZodEffects<z.ZodString, string, string>;
|
|
105
|
+
target_selector: z.ZodObject<{
|
|
106
|
+
protocol: z.ZodLiteral<"context.indexer.selector/v1">;
|
|
107
|
+
expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
|
|
108
|
+
}, "strict", z.ZodTypeAny, {
|
|
109
|
+
protocol: "context.indexer.selector/v1";
|
|
110
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
111
|
+
}, {
|
|
112
|
+
protocol: "context.indexer.selector/v1";
|
|
113
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
114
|
+
}>;
|
|
115
|
+
evidence_contract: z.ZodEffects<z.ZodObject<{
|
|
116
|
+
accepted_kinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
|
|
117
|
+
minimum_items: z.ZodNumber;
|
|
118
|
+
minimum_distinct_sources: z.ZodNumber;
|
|
119
|
+
provenance_constraints: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
protocol: z.ZodLiteral<"context.indexer.selector/v1">;
|
|
121
|
+
expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
|
|
122
|
+
}, "strict", z.ZodTypeAny, {
|
|
123
|
+
protocol: "context.indexer.selector/v1";
|
|
124
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
125
|
+
}, {
|
|
126
|
+
protocol: "context.indexer.selector/v1";
|
|
127
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
128
|
+
}>>;
|
|
129
|
+
}, "strict", z.ZodTypeAny, {
|
|
130
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
131
|
+
minimum_items: number;
|
|
132
|
+
minimum_distinct_sources: number;
|
|
133
|
+
provenance_constraints?: {
|
|
134
|
+
protocol: "context.indexer.selector/v1";
|
|
135
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
136
|
+
} | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
139
|
+
minimum_items: number;
|
|
140
|
+
minimum_distinct_sources: number;
|
|
141
|
+
provenance_constraints?: {
|
|
142
|
+
protocol: "context.indexer.selector/v1";
|
|
143
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
144
|
+
} | undefined;
|
|
145
|
+
}>, {
|
|
146
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
147
|
+
minimum_items: number;
|
|
148
|
+
minimum_distinct_sources: number;
|
|
149
|
+
provenance_constraints?: {
|
|
150
|
+
protocol: "context.indexer.selector/v1";
|
|
151
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
152
|
+
} | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
155
|
+
minimum_items: number;
|
|
156
|
+
minimum_distinct_sources: number;
|
|
157
|
+
provenance_constraints?: {
|
|
158
|
+
protocol: "context.indexer.selector/v1";
|
|
159
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
160
|
+
} | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
allowed_exclusion_reason_codes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
163
|
+
}, "strict", z.ZodTypeAny, {
|
|
164
|
+
ref: string;
|
|
165
|
+
authority: {
|
|
166
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
167
|
+
ref: string;
|
|
168
|
+
digest: string;
|
|
169
|
+
};
|
|
170
|
+
contract_version: number;
|
|
171
|
+
contract_digest: string;
|
|
172
|
+
semantic: string;
|
|
173
|
+
coverage_domain: string;
|
|
174
|
+
target_domain_ref: string;
|
|
175
|
+
target_selector: {
|
|
176
|
+
protocol: "context.indexer.selector/v1";
|
|
177
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
178
|
+
};
|
|
179
|
+
evidence_contract: {
|
|
180
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
181
|
+
minimum_items: number;
|
|
182
|
+
minimum_distinct_sources: number;
|
|
183
|
+
provenance_constraints?: {
|
|
184
|
+
protocol: "context.indexer.selector/v1";
|
|
185
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
186
|
+
} | undefined;
|
|
187
|
+
};
|
|
188
|
+
allowed_exclusion_reason_codes?: string[] | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
ref: string;
|
|
191
|
+
authority: {
|
|
192
|
+
kind: "cli-base-contract" | "verified-contract-overlay";
|
|
193
|
+
ref: string;
|
|
194
|
+
digest: string;
|
|
195
|
+
};
|
|
196
|
+
contract_version: number;
|
|
197
|
+
contract_digest: string;
|
|
198
|
+
semantic: string;
|
|
199
|
+
coverage_domain: string;
|
|
200
|
+
target_domain_ref: string;
|
|
201
|
+
target_selector: {
|
|
202
|
+
protocol: "context.indexer.selector/v1";
|
|
203
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
204
|
+
};
|
|
205
|
+
evidence_contract: {
|
|
206
|
+
accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
|
|
207
|
+
minimum_items: number;
|
|
208
|
+
minimum_distinct_sources: number;
|
|
209
|
+
provenance_constraints?: {
|
|
210
|
+
protocol: "context.indexer.selector/v1";
|
|
211
|
+
expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
|
|
212
|
+
} | undefined;
|
|
213
|
+
};
|
|
214
|
+
allowed_exclusion_reason_codes?: string[] | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
export type IndexerRequirementQuestionBinding = z.infer<typeof indexerRequirementQuestionBindingSchema>;
|
|
217
|
+
export type IndexerResolvedMaterialQuestion = z.infer<typeof indexerResolvedMaterialQuestionSchema>;
|
|
218
|
+
export type IndexerQuestionEvidenceContract = z.infer<typeof indexerQuestionEvidenceContractSchema>;
|
|
219
|
+
export declare function indexerResolvedMaterialQuestionDigest(question: Omit<IndexerResolvedMaterialQuestion, "contract_digest">): string;
|
|
220
|
+
export declare function validateIndexerResolvedMaterialQuestion(input: {
|
|
221
|
+
binding: unknown;
|
|
222
|
+
resolved_question: unknown;
|
|
223
|
+
allowed_selector_fact_paths: ReadonlySet<string>;
|
|
224
|
+
coverage_domain_state: "required" | "optional" | "out-of-scope";
|
|
225
|
+
}): IndexerResolvedMaterialQuestion;
|
|
226
|
+
declare const questionTargetInventoryItemSchema: z.ZodObject<{
|
|
227
|
+
target_ref: z.ZodString;
|
|
228
|
+
target_domain_ref: z.ZodEffects<z.ZodString, string, string>;
|
|
229
|
+
requirement_ref: z.ZodString;
|
|
230
|
+
owner_cell_ref: z.ZodString;
|
|
231
|
+
source_ref: z.ZodString;
|
|
232
|
+
module_ref: z.ZodNullable<z.ZodString>;
|
|
233
|
+
subject_key: z.ZodObject<{
|
|
234
|
+
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
235
|
+
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
236
|
+
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
237
|
+
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
238
|
+
}, "strict", z.ZodTypeAny, {
|
|
239
|
+
kind: string;
|
|
240
|
+
protocol: "context.subject-key/v1";
|
|
241
|
+
namespace: string;
|
|
242
|
+
local_key: string;
|
|
243
|
+
}, {
|
|
244
|
+
kind: string;
|
|
245
|
+
protocol: "context.subject-key/v1";
|
|
246
|
+
namespace: string;
|
|
247
|
+
local_key: string;
|
|
248
|
+
}>;
|
|
249
|
+
node_ref: z.ZodString;
|
|
250
|
+
canonical_fact_slice_digest: z.ZodString;
|
|
251
|
+
}, "strict", z.ZodTypeAny, {
|
|
252
|
+
source_ref: string;
|
|
253
|
+
requirement_ref: string;
|
|
254
|
+
target_ref: string;
|
|
255
|
+
module_ref: string | null;
|
|
256
|
+
target_domain_ref: string;
|
|
257
|
+
subject_key: {
|
|
258
|
+
kind: string;
|
|
259
|
+
protocol: "context.subject-key/v1";
|
|
260
|
+
namespace: string;
|
|
261
|
+
local_key: string;
|
|
262
|
+
};
|
|
263
|
+
node_ref: string;
|
|
264
|
+
owner_cell_ref: string;
|
|
265
|
+
canonical_fact_slice_digest: string;
|
|
266
|
+
}, {
|
|
267
|
+
source_ref: string;
|
|
268
|
+
requirement_ref: string;
|
|
269
|
+
target_ref: string;
|
|
270
|
+
module_ref: string | null;
|
|
271
|
+
target_domain_ref: string;
|
|
272
|
+
subject_key: {
|
|
273
|
+
kind: string;
|
|
274
|
+
protocol: "context.subject-key/v1";
|
|
275
|
+
namespace: string;
|
|
276
|
+
local_key: string;
|
|
277
|
+
};
|
|
278
|
+
node_ref: string;
|
|
279
|
+
owner_cell_ref: string;
|
|
280
|
+
canonical_fact_slice_digest: string;
|
|
281
|
+
}>;
|
|
282
|
+
export declare const indexerQuestionTargetInventorySchema: z.ZodObject<{
|
|
283
|
+
protocol: z.ZodLiteral<"context.indexer.question-target-inventory/v1">;
|
|
284
|
+
inventory_digest: z.ZodString;
|
|
285
|
+
requirement_set_digest: z.ZodString;
|
|
286
|
+
profile_contract_digests: z.ZodArray<z.ZodString, "many">;
|
|
287
|
+
source_inventory_digests: z.ZodArray<z.ZodString, "many">;
|
|
288
|
+
items: z.ZodArray<z.ZodObject<{
|
|
289
|
+
target_ref: z.ZodString;
|
|
290
|
+
target_domain_ref: z.ZodEffects<z.ZodString, string, string>;
|
|
291
|
+
requirement_ref: z.ZodString;
|
|
292
|
+
owner_cell_ref: z.ZodString;
|
|
293
|
+
source_ref: z.ZodString;
|
|
294
|
+
module_ref: z.ZodNullable<z.ZodString>;
|
|
295
|
+
subject_key: z.ZodObject<{
|
|
296
|
+
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
297
|
+
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
298
|
+
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
299
|
+
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
300
|
+
}, "strict", z.ZodTypeAny, {
|
|
301
|
+
kind: string;
|
|
302
|
+
protocol: "context.subject-key/v1";
|
|
303
|
+
namespace: string;
|
|
304
|
+
local_key: string;
|
|
305
|
+
}, {
|
|
306
|
+
kind: string;
|
|
307
|
+
protocol: "context.subject-key/v1";
|
|
308
|
+
namespace: string;
|
|
309
|
+
local_key: string;
|
|
310
|
+
}>;
|
|
311
|
+
node_ref: z.ZodString;
|
|
312
|
+
canonical_fact_slice_digest: z.ZodString;
|
|
313
|
+
}, "strict", z.ZodTypeAny, {
|
|
314
|
+
source_ref: string;
|
|
315
|
+
requirement_ref: string;
|
|
316
|
+
target_ref: string;
|
|
317
|
+
module_ref: string | null;
|
|
318
|
+
target_domain_ref: string;
|
|
319
|
+
subject_key: {
|
|
320
|
+
kind: string;
|
|
321
|
+
protocol: "context.subject-key/v1";
|
|
322
|
+
namespace: string;
|
|
323
|
+
local_key: string;
|
|
324
|
+
};
|
|
325
|
+
node_ref: string;
|
|
326
|
+
owner_cell_ref: string;
|
|
327
|
+
canonical_fact_slice_digest: string;
|
|
328
|
+
}, {
|
|
329
|
+
source_ref: string;
|
|
330
|
+
requirement_ref: string;
|
|
331
|
+
target_ref: string;
|
|
332
|
+
module_ref: string | null;
|
|
333
|
+
target_domain_ref: string;
|
|
334
|
+
subject_key: {
|
|
335
|
+
kind: string;
|
|
336
|
+
protocol: "context.subject-key/v1";
|
|
337
|
+
namespace: string;
|
|
338
|
+
local_key: string;
|
|
339
|
+
};
|
|
340
|
+
node_ref: string;
|
|
341
|
+
owner_cell_ref: string;
|
|
342
|
+
canonical_fact_slice_digest: string;
|
|
343
|
+
}>, "many">;
|
|
344
|
+
}, "strict", z.ZodTypeAny, {
|
|
345
|
+
protocol: "context.indexer.question-target-inventory/v1";
|
|
346
|
+
inventory_digest: string;
|
|
347
|
+
requirement_set_digest: string;
|
|
348
|
+
items: {
|
|
349
|
+
source_ref: string;
|
|
350
|
+
requirement_ref: string;
|
|
351
|
+
target_ref: string;
|
|
352
|
+
module_ref: string | null;
|
|
353
|
+
target_domain_ref: string;
|
|
354
|
+
subject_key: {
|
|
355
|
+
kind: string;
|
|
356
|
+
protocol: "context.subject-key/v1";
|
|
357
|
+
namespace: string;
|
|
358
|
+
local_key: string;
|
|
359
|
+
};
|
|
360
|
+
node_ref: string;
|
|
361
|
+
owner_cell_ref: string;
|
|
362
|
+
canonical_fact_slice_digest: string;
|
|
363
|
+
}[];
|
|
364
|
+
profile_contract_digests: string[];
|
|
365
|
+
source_inventory_digests: string[];
|
|
366
|
+
}, {
|
|
367
|
+
protocol: "context.indexer.question-target-inventory/v1";
|
|
368
|
+
inventory_digest: string;
|
|
369
|
+
requirement_set_digest: string;
|
|
370
|
+
items: {
|
|
371
|
+
source_ref: string;
|
|
372
|
+
requirement_ref: string;
|
|
373
|
+
target_ref: string;
|
|
374
|
+
module_ref: string | null;
|
|
375
|
+
target_domain_ref: string;
|
|
376
|
+
subject_key: {
|
|
377
|
+
kind: string;
|
|
378
|
+
protocol: "context.subject-key/v1";
|
|
379
|
+
namespace: string;
|
|
380
|
+
local_key: string;
|
|
381
|
+
};
|
|
382
|
+
node_ref: string;
|
|
383
|
+
owner_cell_ref: string;
|
|
384
|
+
canonical_fact_slice_digest: string;
|
|
385
|
+
}[];
|
|
386
|
+
profile_contract_digests: string[];
|
|
387
|
+
source_inventory_digests: string[];
|
|
388
|
+
}>;
|
|
389
|
+
export type IndexerQuestionTargetInventoryItem = z.infer<typeof questionTargetInventoryItemSchema>;
|
|
390
|
+
export type IndexerQuestionTargetInventory = z.infer<typeof indexerQuestionTargetInventorySchema>;
|
|
391
|
+
export declare function indexerQuestionSubjectTargetRef(input: {
|
|
392
|
+
target_domain_ref: string;
|
|
393
|
+
owner_cell_ref: string;
|
|
394
|
+
subject_key: unknown;
|
|
395
|
+
}): string;
|
|
396
|
+
export declare function indexerQuestionTargetItemDigest(item: IndexerQuestionTargetInventoryItem): string;
|
|
397
|
+
export declare function indexerQuestionTargetInventoryDigest(value: Omit<IndexerQuestionTargetInventory, "inventory_digest">): string;
|
|
398
|
+
export declare function buildIndexerQuestionTargetInventory(input: {
|
|
399
|
+
requirement_set_digest: string;
|
|
400
|
+
profile_contract_digests: readonly string[];
|
|
401
|
+
source_inventory_digests: readonly string[];
|
|
402
|
+
items: readonly Omit<IndexerQuestionTargetInventoryItem, "target_ref" | "node_ref">[];
|
|
403
|
+
}): IndexerQuestionTargetInventory;
|
|
404
|
+
export declare function validateIndexerQuestionTargetInventory(value: unknown): IndexerQuestionTargetInventory;
|
|
405
|
+
export declare function indexerMaterialQuestionKey(input: {
|
|
406
|
+
owner_cell_ref: string;
|
|
407
|
+
question_contract_digest: string;
|
|
408
|
+
question_subject_target_ref: string;
|
|
409
|
+
}): string;
|
|
410
|
+
export declare function indexerQuestionTargetSetDigest(questionKeys: readonly string[]): string;
|
|
411
|
+
export declare function indexerQuestionSetDigest(questions: readonly IndexerResolvedMaterialQuestion[]): string;
|
|
412
|
+
export declare function indexerQuestionRevisionDigest(input: {
|
|
413
|
+
question_contract_digest: string;
|
|
414
|
+
question_key: string;
|
|
415
|
+
owner_cell_digest: string;
|
|
416
|
+
question_target_item_digest: string;
|
|
417
|
+
answer_landing_dependency_digest?: string;
|
|
418
|
+
}): string;
|
|
419
|
+
export {};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const INDEXER_READER_TARGET_AUTHORITATIVE_OBSERVATIONS: readonly ["declaration", "public-export", "contract-declaration", "runtime-registration", "approved-subject", "partition-subject"];
|
|
3
|
+
export declare const INDEXER_READER_TARGET_REFERENCE_OBSERVATIONS: readonly ["symbol-reference", "import-alias", "re-export-alias", "internal-helper-reference", "lightweight-evidence"];
|
|
4
|
+
export declare const INDEXER_READER_TARGET_OBSERVATION_KINDS: readonly ["declaration", "public-export", "contract-declaration", "runtime-registration", "approved-subject", "partition-subject", "symbol-reference", "import-alias", "re-export-alias", "internal-helper-reference", "lightweight-evidence"];
|
|
5
|
+
declare const readerTargetIdentityObservationSchema: z.ZodObject<{
|
|
6
|
+
observation_ref: z.ZodString;
|
|
7
|
+
canonical_identity_ref: z.ZodString;
|
|
8
|
+
observation_kind: z.ZodEnum<["declaration", "public-export", "contract-declaration", "runtime-registration", "approved-subject", "partition-subject", "symbol-reference", "import-alias", "re-export-alias", "internal-helper-reference", "lightweight-evidence"]>;
|
|
9
|
+
source_ref: z.ZodString;
|
|
10
|
+
module_ref: z.ZodNullable<z.ZodString>;
|
|
11
|
+
content_digest: z.ZodString;
|
|
12
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
}, "strict", z.ZodTypeAny, {
|
|
14
|
+
source_ref: string;
|
|
15
|
+
evidence_refs: string[];
|
|
16
|
+
module_ref: string | null;
|
|
17
|
+
content_digest: string;
|
|
18
|
+
observation_ref: string;
|
|
19
|
+
canonical_identity_ref: string;
|
|
20
|
+
observation_kind: "lightweight-evidence" | "declaration" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
|
|
21
|
+
}, {
|
|
22
|
+
source_ref: string;
|
|
23
|
+
evidence_refs: string[];
|
|
24
|
+
module_ref: string | null;
|
|
25
|
+
content_digest: string;
|
|
26
|
+
observation_ref: string;
|
|
27
|
+
canonical_identity_ref: string;
|
|
28
|
+
observation_kind: "lightweight-evidence" | "declaration" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
|
|
29
|
+
}>;
|
|
30
|
+
export declare const indexerReaderTargetFactInventorySchema: z.ZodObject<{
|
|
31
|
+
protocol: z.ZodLiteral<"context.indexer.reader-target-fact-inventory/v1">;
|
|
32
|
+
source_scope_digest: z.ZodString;
|
|
33
|
+
observations: z.ZodArray<z.ZodObject<{
|
|
34
|
+
observation_ref: z.ZodString;
|
|
35
|
+
canonical_identity_ref: z.ZodString;
|
|
36
|
+
observation_kind: z.ZodEnum<["declaration", "public-export", "contract-declaration", "runtime-registration", "approved-subject", "partition-subject", "symbol-reference", "import-alias", "re-export-alias", "internal-helper-reference", "lightweight-evidence"]>;
|
|
37
|
+
source_ref: z.ZodString;
|
|
38
|
+
module_ref: z.ZodNullable<z.ZodString>;
|
|
39
|
+
content_digest: z.ZodString;
|
|
40
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
41
|
+
}, "strict", z.ZodTypeAny, {
|
|
42
|
+
source_ref: string;
|
|
43
|
+
evidence_refs: string[];
|
|
44
|
+
module_ref: string | null;
|
|
45
|
+
content_digest: string;
|
|
46
|
+
observation_ref: string;
|
|
47
|
+
canonical_identity_ref: string;
|
|
48
|
+
observation_kind: "lightweight-evidence" | "declaration" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
|
|
49
|
+
}, {
|
|
50
|
+
source_ref: string;
|
|
51
|
+
evidence_refs: string[];
|
|
52
|
+
module_ref: string | null;
|
|
53
|
+
content_digest: string;
|
|
54
|
+
observation_ref: string;
|
|
55
|
+
canonical_identity_ref: string;
|
|
56
|
+
observation_kind: "lightweight-evidence" | "declaration" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
|
|
57
|
+
}>, "many">;
|
|
58
|
+
inventory_digest: z.ZodString;
|
|
59
|
+
}, "strict", z.ZodTypeAny, {
|
|
60
|
+
protocol: "context.indexer.reader-target-fact-inventory/v1";
|
|
61
|
+
inventory_digest: string;
|
|
62
|
+
source_scope_digest: string;
|
|
63
|
+
observations: {
|
|
64
|
+
source_ref: string;
|
|
65
|
+
evidence_refs: string[];
|
|
66
|
+
module_ref: string | null;
|
|
67
|
+
content_digest: string;
|
|
68
|
+
observation_ref: string;
|
|
69
|
+
canonical_identity_ref: string;
|
|
70
|
+
observation_kind: "lightweight-evidence" | "declaration" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
|
|
71
|
+
}[];
|
|
72
|
+
}, {
|
|
73
|
+
protocol: "context.indexer.reader-target-fact-inventory/v1";
|
|
74
|
+
inventory_digest: string;
|
|
75
|
+
source_scope_digest: string;
|
|
76
|
+
observations: {
|
|
77
|
+
source_ref: string;
|
|
78
|
+
evidence_refs: string[];
|
|
79
|
+
module_ref: string | null;
|
|
80
|
+
content_digest: string;
|
|
81
|
+
observation_ref: string;
|
|
82
|
+
canonical_identity_ref: string;
|
|
83
|
+
observation_kind: "lightweight-evidence" | "declaration" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
|
|
84
|
+
}[];
|
|
85
|
+
}>;
|
|
86
|
+
export declare const indexerReaderTargetProjectionSchema: z.ZodObject<{
|
|
87
|
+
protocol: z.ZodLiteral<"context.indexer.reader-target-projection/v1">;
|
|
88
|
+
artifact_set_digest: z.ZodString;
|
|
89
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
90
|
+
reader_target_ref: z.ZodString;
|
|
91
|
+
canonical_identity_ref: z.ZodString;
|
|
92
|
+
target_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
93
|
+
landing_refs: z.ZodArray<z.ZodString, "many">;
|
|
94
|
+
}, "strict", z.ZodTypeAny, {
|
|
95
|
+
canonical_identity_ref: string;
|
|
96
|
+
reader_target_ref: string;
|
|
97
|
+
target_kind: string;
|
|
98
|
+
landing_refs: string[];
|
|
99
|
+
}, {
|
|
100
|
+
canonical_identity_ref: string;
|
|
101
|
+
reader_target_ref: string;
|
|
102
|
+
target_kind: string;
|
|
103
|
+
landing_refs: string[];
|
|
104
|
+
}>, "many">;
|
|
105
|
+
projection_digest: z.ZodString;
|
|
106
|
+
}, "strict", z.ZodTypeAny, {
|
|
107
|
+
protocol: "context.indexer.reader-target-projection/v1";
|
|
108
|
+
targets: {
|
|
109
|
+
canonical_identity_ref: string;
|
|
110
|
+
reader_target_ref: string;
|
|
111
|
+
target_kind: string;
|
|
112
|
+
landing_refs: string[];
|
|
113
|
+
}[];
|
|
114
|
+
projection_digest: string;
|
|
115
|
+
artifact_set_digest: string;
|
|
116
|
+
}, {
|
|
117
|
+
protocol: "context.indexer.reader-target-projection/v1";
|
|
118
|
+
targets: {
|
|
119
|
+
canonical_identity_ref: string;
|
|
120
|
+
reader_target_ref: string;
|
|
121
|
+
target_kind: string;
|
|
122
|
+
landing_refs: string[];
|
|
123
|
+
}[];
|
|
124
|
+
projection_digest: string;
|
|
125
|
+
artifact_set_digest: string;
|
|
126
|
+
}>;
|
|
127
|
+
export type IndexerReaderTargetObservation = z.infer<typeof readerTargetIdentityObservationSchema>;
|
|
128
|
+
export type IndexerReaderTargetFactInventory = z.infer<typeof indexerReaderTargetFactInventorySchema>;
|
|
129
|
+
export type IndexerReaderTargetProjection = z.infer<typeof indexerReaderTargetProjectionSchema>;
|
|
130
|
+
export interface IndexerReaderTargetObservationInput {
|
|
131
|
+
canonical_identity_ref: string;
|
|
132
|
+
observation_kind: typeof INDEXER_READER_TARGET_OBSERVATION_KINDS[number];
|
|
133
|
+
source_ref: string;
|
|
134
|
+
module_ref: string | null;
|
|
135
|
+
content_digest: string;
|
|
136
|
+
evidence_refs: readonly string[];
|
|
137
|
+
}
|
|
138
|
+
export interface IndexerReaderTargetProjectionInput {
|
|
139
|
+
canonical_identity_ref: string;
|
|
140
|
+
target_kind: string;
|
|
141
|
+
landing_refs: readonly string[];
|
|
142
|
+
}
|
|
143
|
+
export declare function indexerReaderTargetRef(canonicalIdentityRef: string): string;
|
|
144
|
+
export declare function indexerReaderTargetObservationRef(input: Omit<IndexerReaderTargetObservation, "observation_ref" | "evidence_refs">): string;
|
|
145
|
+
export declare function indexerReaderTargetFactInventoryDigest(value: Omit<IndexerReaderTargetFactInventory, "inventory_digest">): string;
|
|
146
|
+
export declare function buildIndexerReaderTargetFactInventory(input: {
|
|
147
|
+
source_scope_digest: string;
|
|
148
|
+
observations: readonly IndexerReaderTargetObservationInput[];
|
|
149
|
+
}): IndexerReaderTargetFactInventory;
|
|
150
|
+
export declare function validateIndexerReaderTargetFactInventory(input: {
|
|
151
|
+
value: unknown;
|
|
152
|
+
expected_source_scope_digest?: string;
|
|
153
|
+
known_evidence_refs?: readonly string[];
|
|
154
|
+
}): IndexerReaderTargetFactInventory;
|
|
155
|
+
export declare function indexerReaderTargetProjectionDigest(value: Omit<IndexerReaderTargetProjection, "projection_digest">): string;
|
|
156
|
+
export declare function buildIndexerReaderTargetProjection(input: {
|
|
157
|
+
artifact_set_digest: string;
|
|
158
|
+
targets: readonly IndexerReaderTargetProjectionInput[];
|
|
159
|
+
}): IndexerReaderTargetProjection;
|
|
160
|
+
export declare function validateIndexerReaderTargetProjection(valueInput: unknown): IndexerReaderTargetProjection;
|
|
161
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const indexerReferenceOnlyReaderTargetAuditSchema: z.ZodObject<{
|
|
3
|
+
protocol: z.ZodLiteral<"context.indexer.reference-only-reader-target-audit/v1">;
|
|
4
|
+
fact_inventory_digest: z.ZodString;
|
|
5
|
+
target_projection_digest: z.ZodString;
|
|
6
|
+
target_count: z.ZodNumber;
|
|
7
|
+
authoritative_target_count: z.ZodNumber;
|
|
8
|
+
reference_only_target_count: z.ZodNumber;
|
|
9
|
+
unsubstantiated_target_count: z.ZodNumber;
|
|
10
|
+
authoritative_target_refs: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
reference_only_target_refs: z.ZodArray<z.ZodString, "many">;
|
|
12
|
+
unsubstantiated_target_refs: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
metric: z.ZodObject<{
|
|
14
|
+
metric_id: z.ZodLiteral<"reference-only-reader-targets">;
|
|
15
|
+
unit: z.ZodLiteral<"count">;
|
|
16
|
+
actual: z.ZodNumber;
|
|
17
|
+
denominator: z.ZodNumber;
|
|
18
|
+
target_refs: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
target_refs: string[];
|
|
21
|
+
denominator: number;
|
|
22
|
+
unit: "count";
|
|
23
|
+
metric_id: "reference-only-reader-targets";
|
|
24
|
+
actual: number;
|
|
25
|
+
}, {
|
|
26
|
+
target_refs: string[];
|
|
27
|
+
denominator: number;
|
|
28
|
+
unit: "count";
|
|
29
|
+
metric_id: "reference-only-reader-targets";
|
|
30
|
+
actual: number;
|
|
31
|
+
}>;
|
|
32
|
+
pass: z.ZodBoolean;
|
|
33
|
+
audit_digest: z.ZodString;
|
|
34
|
+
}, "strict", z.ZodTypeAny, {
|
|
35
|
+
protocol: "context.indexer.reference-only-reader-target-audit/v1";
|
|
36
|
+
audit_digest: string;
|
|
37
|
+
pass: boolean;
|
|
38
|
+
fact_inventory_digest: string;
|
|
39
|
+
target_projection_digest: string;
|
|
40
|
+
target_count: number;
|
|
41
|
+
authoritative_target_count: number;
|
|
42
|
+
reference_only_target_count: number;
|
|
43
|
+
unsubstantiated_target_count: number;
|
|
44
|
+
authoritative_target_refs: string[];
|
|
45
|
+
reference_only_target_refs: string[];
|
|
46
|
+
unsubstantiated_target_refs: string[];
|
|
47
|
+
metric: {
|
|
48
|
+
target_refs: string[];
|
|
49
|
+
denominator: number;
|
|
50
|
+
unit: "count";
|
|
51
|
+
metric_id: "reference-only-reader-targets";
|
|
52
|
+
actual: number;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
protocol: "context.indexer.reference-only-reader-target-audit/v1";
|
|
56
|
+
audit_digest: string;
|
|
57
|
+
pass: boolean;
|
|
58
|
+
fact_inventory_digest: string;
|
|
59
|
+
target_projection_digest: string;
|
|
60
|
+
target_count: number;
|
|
61
|
+
authoritative_target_count: number;
|
|
62
|
+
reference_only_target_count: number;
|
|
63
|
+
unsubstantiated_target_count: number;
|
|
64
|
+
authoritative_target_refs: string[];
|
|
65
|
+
reference_only_target_refs: string[];
|
|
66
|
+
unsubstantiated_target_refs: string[];
|
|
67
|
+
metric: {
|
|
68
|
+
target_refs: string[];
|
|
69
|
+
denominator: number;
|
|
70
|
+
unit: "count";
|
|
71
|
+
metric_id: "reference-only-reader-targets";
|
|
72
|
+
actual: number;
|
|
73
|
+
};
|
|
74
|
+
}>;
|
|
75
|
+
export type IndexerReferenceOnlyReaderTargetAudit = z.infer<typeof indexerReferenceOnlyReaderTargetAuditSchema>;
|
|
76
|
+
export declare function indexerReferenceOnlyReaderTargetAuditDigest(value: Omit<IndexerReferenceOnlyReaderTargetAudit, "audit_digest">): string;
|
|
77
|
+
export declare function buildIndexerReferenceOnlyReaderTargetAudit(input: {
|
|
78
|
+
fact_inventory: unknown;
|
|
79
|
+
target_projection: unknown;
|
|
80
|
+
}): IndexerReferenceOnlyReaderTargetAudit;
|
|
81
|
+
export declare function validateIndexerReferenceOnlyReaderTargetAudit(input: {
|
|
82
|
+
value: unknown;
|
|
83
|
+
fact_inventory: unknown;
|
|
84
|
+
target_projection: unknown;
|
|
85
|
+
}): IndexerReferenceOnlyReaderTargetAudit;
|
|
86
|
+
export declare function assertNoReferenceOnlyReaderTargets(input: {
|
|
87
|
+
value: unknown;
|
|
88
|
+
fact_inventory: unknown;
|
|
89
|
+
target_projection: unknown;
|
|
90
|
+
}): IndexerReferenceOnlyReaderTargetAudit;
|