@c4a/context 0.7.8 → 0.7.10-alpha.1
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/articleStructure.d.ts +254 -0
- package/docs/guides/agent-dialogue.md +6 -5
- package/docs/guides/agent-guide.md +11 -5
- package/docs/guides/code-indexer-skill-authoring.md +76 -178
- package/docs/guides/indexer-provider-and-customization.md +93 -398
- package/docs/guides/indexer-skill-creation.md +107 -97
- package/docs/guides/knowledge-updates.md +137 -18
- package/docs/guides/markdown-indexer-skill-authoring.md +57 -134
- package/docs/guides/package-outputs.md +213 -47
- package/docs/reference/indexer-provider-protocol.md +71 -102
- package/docs/reference/package-templates.md +39 -65
- package/docs/reference/project-api.md +53 -0
- package/docs/reference/template-variables.md +2 -3
- package/index.d.ts +11 -11
- package/index.js +5826 -8062
- package/indexerAgentStepProtocol.d.ts +0 -910
- package/indexerApprovedKnowledge.d.ts +98 -359
- package/indexerArticlePlan.d.ts +3 -26
- package/indexerArtifact.d.ts +201 -70
- package/indexerArtifactPolicy.d.ts +4 -22
- package/indexerArtifactResult.d.ts +240 -888
- package/indexerAuthoringFixture.d.ts +0 -13
- package/indexerBenchmark.d.ts +2 -2
- package/indexerCandidateCompile.d.ts +123 -167
- package/indexerCatalogFallback.d.ts +32 -374
- package/indexerCollectionMapping.d.ts +2 -2
- package/indexerContentLayers.d.ts +187 -41
- package/indexerContractOverlay.d.ts +30 -44
- package/indexerControlledInvocation.d.ts +6 -6
- package/indexerControlledProgram.d.ts +959 -3020
- package/indexerDependencyView.d.ts +96 -96
- package/indexerEffectiveArtifact.d.ts +381 -242
- package/indexerExampleDecision.d.ts +134 -134
- package/indexerExampleIdentity.d.ts +6 -6
- package/indexerExampleIdentityAudit.d.ts +6 -6
- package/indexerInventoryDisposition.d.ts +0 -39
- package/indexerLayerComposition.d.ts +1378 -852
- package/indexerLayoutChange.d.ts +24 -33
- package/indexerLayoutProposalSet.d.ts +143 -137
- package/indexerLayoutResolver.d.ts +116 -101
- package/indexerLayoutTransition.d.ts +6 -6
- package/indexerMainLifecycle.d.ts +1 -11
- package/indexerMainRunLedger.d.ts +0 -14
- package/indexerMainRunProtocol.d.ts +806 -2530
- package/indexerMainWorkset.d.ts +0 -1212
- package/indexerNavigationArtifactPlan.d.ts +2 -2
- package/indexerOverlayQuestionApplyProposal.d.ts +0 -4
- package/indexerParserCoordinate.d.ts +2 -2
- package/indexerParserExecutionPlan.d.ts +42 -42
- package/indexerPartitionPlan.d.ts +24 -354
- package/indexerPhysicalArtifactManifest.d.ts +12 -27
- package/indexerPostAuthorComposition.d.ts +2 -253
- package/indexerPostAuthorRunLedger.d.ts +860 -562
- package/indexerPrimaryProjection.d.ts +2 -2
- package/indexerPrimaryResultView.d.ts +0 -318
- package/indexerProfileContract.d.ts +200 -549
- package/indexerProgramExecutionAuthorization.d.ts +4 -4
- package/indexerProgramRunProtocol.d.ts +806 -2527
- package/indexerProjectProposal.d.ts +8 -8
- package/indexerProjectedArtifactFanOutAudit.d.ts +8 -8
- package/indexerProjectedArtifactPlan.d.ts +0 -9
- package/indexerProtocolHash.d.ts +2 -0
- package/indexerProvider.d.ts +76 -318
- package/indexerProviderComposition.d.ts +16 -42
- package/indexerQuestionAuthority.d.ts +2 -82
- package/indexerReaderTargetInventory.d.ts +6 -6
- package/indexerRegistry.d.ts +606 -0
- package/indexerRequirementLifecycle.d.ts +6 -6
- package/indexerResultReconciliation.d.ts +35 -149
- package/indexerSemanticInput.d.ts +10926 -5665
- package/indexerStructuredDeclaration.d.ts +24 -24
- package/indexerTemplateRendering.d.ts +239 -113
- package/{readingStructure.d.ts → knowledgeMap.d.ts} +21 -21
- package/package.json +1 -1
- package/packageSite.d.ts +25 -0
- package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +13 -16
- package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +9 -9
- package/indexerArtifactDependencies.d.ts +0 -693
- package/indexerCompositionFactDependencies.d.ts +0 -16
- package/indexerExampleFactDependencies.d.ts +0 -17
- package/indexerIncrementalImpact.d.ts +0 -221
- package/indexerKnowledgeDependency.d.ts +0 -46
- package/indexerSubjectCatalog.d.ts +0 -230
- package/indexerSubjectKeyAuthority.d.ts +0 -786
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { IndexerArtifactResult } from "./indexerArtifactResult.js";
|
|
2
|
-
import { type IndexerAuthorDependencyView } from "./indexerDependencyView.js";
|
|
3
|
-
import type { IndexerMainAuthorWorkset } from "./indexerMainWorkset.js";
|
|
4
|
-
/** An Agent can identify a scenario in supplied source. This only attests its
|
|
5
|
-
* source coordinates and identity; it does not verify the example's behavior. */
|
|
6
|
-
export declare function exampleFactDependencies(input: {
|
|
7
|
-
workset: IndexerMainAuthorWorkset;
|
|
8
|
-
dependency_view: IndexerAuthorDependencyView;
|
|
9
|
-
result: IndexerArtifactResult;
|
|
10
|
-
}): {
|
|
11
|
-
node_ref: string;
|
|
12
|
-
kind: "selected-fact";
|
|
13
|
-
fact_ref: string;
|
|
14
|
-
fact_digest: string;
|
|
15
|
-
source_span_node_refs: string[];
|
|
16
|
-
targets: never[];
|
|
17
|
-
}[];
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const indexerIncrementalImpactReportSchema: z.ZodObject<{
|
|
3
|
-
protocol: z.ZodLiteral<"context.indexer.incremental-impact-report/v1">;
|
|
4
|
-
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
-
logical_unit_ref: z.ZodString;
|
|
6
|
-
previous_run_envelope_digest: z.ZodString;
|
|
7
|
-
current_run_envelope_digest: z.ZodString;
|
|
8
|
-
previous_dependency_view_digest: z.ZodString;
|
|
9
|
-
current_dependency_view_digest: z.ZodString;
|
|
10
|
-
previous_dependency_set_digest: z.ZodString;
|
|
11
|
-
envelope_changes: z.ZodArray<z.ZodObject<{
|
|
12
|
-
field: z.ZodString;
|
|
13
|
-
previous_value: z.ZodNullable<z.ZodString>;
|
|
14
|
-
current_value: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, "strict", z.ZodTypeAny, {
|
|
16
|
-
field: string;
|
|
17
|
-
previous_value: string | null;
|
|
18
|
-
current_value: string | null;
|
|
19
|
-
}, {
|
|
20
|
-
field: string;
|
|
21
|
-
previous_value: string | null;
|
|
22
|
-
current_value: string | null;
|
|
23
|
-
}>, "many">;
|
|
24
|
-
dependency_changes: z.ZodArray<z.ZodObject<{
|
|
25
|
-
node_ref: z.ZodString;
|
|
26
|
-
polarity: z.ZodEnum<["positive", "negative"]>;
|
|
27
|
-
kind: z.ZodString;
|
|
28
|
-
change: z.ZodEnum<["added", "removed", "changed"]>;
|
|
29
|
-
previous_dependency_ref: z.ZodNullable<z.ZodString>;
|
|
30
|
-
current_dependency_ref: z.ZodNullable<z.ZodString>;
|
|
31
|
-
affected_artifact_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
32
|
-
affected_sections: z.ZodArray<z.ZodObject<{
|
|
33
|
-
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
34
|
-
section_key: z.ZodEffects<z.ZodString, string, string>;
|
|
35
|
-
}, "strict", z.ZodTypeAny, {
|
|
36
|
-
section_key: string;
|
|
37
|
-
artifact_id: string;
|
|
38
|
-
}, {
|
|
39
|
-
section_key: string;
|
|
40
|
-
artifact_id: string;
|
|
41
|
-
}>, "many">;
|
|
42
|
-
}, "strict", z.ZodTypeAny, {
|
|
43
|
-
kind: string;
|
|
44
|
-
node_ref: string;
|
|
45
|
-
polarity: "positive" | "negative";
|
|
46
|
-
change: "changed" | "added" | "removed";
|
|
47
|
-
previous_dependency_ref: string | null;
|
|
48
|
-
current_dependency_ref: string | null;
|
|
49
|
-
affected_artifact_ids: string[];
|
|
50
|
-
affected_sections: {
|
|
51
|
-
section_key: string;
|
|
52
|
-
artifact_id: string;
|
|
53
|
-
}[];
|
|
54
|
-
}, {
|
|
55
|
-
kind: string;
|
|
56
|
-
node_ref: string;
|
|
57
|
-
polarity: "positive" | "negative";
|
|
58
|
-
change: "changed" | "added" | "removed";
|
|
59
|
-
previous_dependency_ref: string | null;
|
|
60
|
-
current_dependency_ref: string | null;
|
|
61
|
-
affected_artifact_ids: string[];
|
|
62
|
-
affected_sections: {
|
|
63
|
-
section_key: string;
|
|
64
|
-
artifact_id: string;
|
|
65
|
-
}[];
|
|
66
|
-
}>, "many">;
|
|
67
|
-
artifacts: z.ZodArray<z.ZodObject<{
|
|
68
|
-
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
-
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
70
|
-
state: z.ZodEnum<["current", "stale"]>;
|
|
71
|
-
changed_node_refs: z.ZodArray<z.ZodString, "many">;
|
|
72
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
73
|
-
section_key: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
-
state: z.ZodEnum<["current", "stale"]>;
|
|
75
|
-
changed_node_refs: z.ZodArray<z.ZodString, "many">;
|
|
76
|
-
}, "strict", z.ZodTypeAny, {
|
|
77
|
-
section_key: string;
|
|
78
|
-
state: "current" | "stale";
|
|
79
|
-
changed_node_refs: string[];
|
|
80
|
-
}, {
|
|
81
|
-
section_key: string;
|
|
82
|
-
state: "current" | "stale";
|
|
83
|
-
changed_node_refs: string[];
|
|
84
|
-
}>, "many">;
|
|
85
|
-
}, "strict", z.ZodTypeAny, {
|
|
86
|
-
artifact_kind: string;
|
|
87
|
-
artifact_id: string;
|
|
88
|
-
sections: {
|
|
89
|
-
section_key: string;
|
|
90
|
-
state: "current" | "stale";
|
|
91
|
-
changed_node_refs: string[];
|
|
92
|
-
}[];
|
|
93
|
-
state: "current" | "stale";
|
|
94
|
-
changed_node_refs: string[];
|
|
95
|
-
}, {
|
|
96
|
-
artifact_kind: string;
|
|
97
|
-
artifact_id: string;
|
|
98
|
-
sections: {
|
|
99
|
-
section_key: string;
|
|
100
|
-
state: "current" | "stale";
|
|
101
|
-
changed_node_refs: string[];
|
|
102
|
-
}[];
|
|
103
|
-
state: "current" | "stale";
|
|
104
|
-
changed_node_refs: string[];
|
|
105
|
-
}>, "many">;
|
|
106
|
-
logical_unit_state: z.ZodEnum<["current", "stale"]>;
|
|
107
|
-
current_artifact_count: z.ZodNumber;
|
|
108
|
-
stale_artifact_count: z.ZodNumber;
|
|
109
|
-
current_section_count: z.ZodNumber;
|
|
110
|
-
stale_section_count: z.ZodNumber;
|
|
111
|
-
recompute_scope: z.ZodEnum<["none", "artifact-sections", "logical-unit-empty"]>;
|
|
112
|
-
} & {
|
|
113
|
-
report_digest: z.ZodString;
|
|
114
|
-
}, "strict", z.ZodTypeAny, {
|
|
115
|
-
protocol: "context.indexer.incremental-impact-report/v1";
|
|
116
|
-
artifacts: {
|
|
117
|
-
artifact_kind: string;
|
|
118
|
-
artifact_id: string;
|
|
119
|
-
sections: {
|
|
120
|
-
section_key: string;
|
|
121
|
-
state: "current" | "stale";
|
|
122
|
-
changed_node_refs: string[];
|
|
123
|
-
}[];
|
|
124
|
-
state: "current" | "stale";
|
|
125
|
-
changed_node_refs: string[];
|
|
126
|
-
}[];
|
|
127
|
-
indexer_id: string;
|
|
128
|
-
report_digest: string;
|
|
129
|
-
logical_unit_ref: string;
|
|
130
|
-
previous_run_envelope_digest: string;
|
|
131
|
-
current_run_envelope_digest: string;
|
|
132
|
-
previous_dependency_view_digest: string;
|
|
133
|
-
current_dependency_view_digest: string;
|
|
134
|
-
previous_dependency_set_digest: string;
|
|
135
|
-
envelope_changes: {
|
|
136
|
-
field: string;
|
|
137
|
-
previous_value: string | null;
|
|
138
|
-
current_value: string | null;
|
|
139
|
-
}[];
|
|
140
|
-
dependency_changes: {
|
|
141
|
-
kind: string;
|
|
142
|
-
node_ref: string;
|
|
143
|
-
polarity: "positive" | "negative";
|
|
144
|
-
change: "changed" | "added" | "removed";
|
|
145
|
-
previous_dependency_ref: string | null;
|
|
146
|
-
current_dependency_ref: string | null;
|
|
147
|
-
affected_artifact_ids: string[];
|
|
148
|
-
affected_sections: {
|
|
149
|
-
section_key: string;
|
|
150
|
-
artifact_id: string;
|
|
151
|
-
}[];
|
|
152
|
-
}[];
|
|
153
|
-
logical_unit_state: "current" | "stale";
|
|
154
|
-
current_artifact_count: number;
|
|
155
|
-
stale_artifact_count: number;
|
|
156
|
-
current_section_count: number;
|
|
157
|
-
stale_section_count: number;
|
|
158
|
-
recompute_scope: "none" | "artifact-sections" | "logical-unit-empty";
|
|
159
|
-
}, {
|
|
160
|
-
protocol: "context.indexer.incremental-impact-report/v1";
|
|
161
|
-
artifacts: {
|
|
162
|
-
artifact_kind: string;
|
|
163
|
-
artifact_id: string;
|
|
164
|
-
sections: {
|
|
165
|
-
section_key: string;
|
|
166
|
-
state: "current" | "stale";
|
|
167
|
-
changed_node_refs: string[];
|
|
168
|
-
}[];
|
|
169
|
-
state: "current" | "stale";
|
|
170
|
-
changed_node_refs: string[];
|
|
171
|
-
}[];
|
|
172
|
-
indexer_id: string;
|
|
173
|
-
report_digest: string;
|
|
174
|
-
logical_unit_ref: string;
|
|
175
|
-
previous_run_envelope_digest: string;
|
|
176
|
-
current_run_envelope_digest: string;
|
|
177
|
-
previous_dependency_view_digest: string;
|
|
178
|
-
current_dependency_view_digest: string;
|
|
179
|
-
previous_dependency_set_digest: string;
|
|
180
|
-
envelope_changes: {
|
|
181
|
-
field: string;
|
|
182
|
-
previous_value: string | null;
|
|
183
|
-
current_value: string | null;
|
|
184
|
-
}[];
|
|
185
|
-
dependency_changes: {
|
|
186
|
-
kind: string;
|
|
187
|
-
node_ref: string;
|
|
188
|
-
polarity: "positive" | "negative";
|
|
189
|
-
change: "changed" | "added" | "removed";
|
|
190
|
-
previous_dependency_ref: string | null;
|
|
191
|
-
current_dependency_ref: string | null;
|
|
192
|
-
affected_artifact_ids: string[];
|
|
193
|
-
affected_sections: {
|
|
194
|
-
section_key: string;
|
|
195
|
-
artifact_id: string;
|
|
196
|
-
}[];
|
|
197
|
-
}[];
|
|
198
|
-
logical_unit_state: "current" | "stale";
|
|
199
|
-
current_artifact_count: number;
|
|
200
|
-
stale_artifact_count: number;
|
|
201
|
-
current_section_count: number;
|
|
202
|
-
stale_section_count: number;
|
|
203
|
-
recompute_scope: "none" | "artifact-sections" | "logical-unit-empty";
|
|
204
|
-
}>;
|
|
205
|
-
export type IndexerIncrementalImpactReport = z.infer<typeof indexerIncrementalImpactReportSchema>;
|
|
206
|
-
export declare function indexerIncrementalImpactReportDigest(value: Omit<IndexerIncrementalImpactReport, "report_digest">): string;
|
|
207
|
-
export declare function buildIndexerIncrementalImpactReport(input: {
|
|
208
|
-
previous_run_envelope: unknown;
|
|
209
|
-
previous_dependency_view: unknown;
|
|
210
|
-
previous_dependency_set: unknown;
|
|
211
|
-
current_run_envelope: unknown;
|
|
212
|
-
current_dependency_view: unknown;
|
|
213
|
-
}): IndexerIncrementalImpactReport;
|
|
214
|
-
export declare function validateIndexerIncrementalImpactReport(input: {
|
|
215
|
-
report: unknown;
|
|
216
|
-
previous_run_envelope: unknown;
|
|
217
|
-
previous_dependency_view: unknown;
|
|
218
|
-
previous_dependency_set: unknown;
|
|
219
|
-
current_run_envelope: unknown;
|
|
220
|
-
current_dependency_view: unknown;
|
|
221
|
-
}): IndexerIncrementalImpactReport;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/** Supporting knowledge is referenced by identity, never copied into the
|
|
3
|
-
* primary inventory ownership of a second topic. */
|
|
4
|
-
export declare const indexerKnowledgeDependencySchema: z.ZodObject<{
|
|
5
|
-
artifact_ref: z.ZodString;
|
|
6
|
-
section_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
-
required: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
required: boolean;
|
|
10
|
-
artifact_ref: string;
|
|
11
|
-
section_refs: string[];
|
|
12
|
-
}, {
|
|
13
|
-
artifact_ref: string;
|
|
14
|
-
required?: boolean | undefined;
|
|
15
|
-
section_refs?: string[] | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
export type IndexerKnowledgeDependency = z.infer<typeof indexerKnowledgeDependencySchema>;
|
|
18
|
-
export interface IndexerKnowledgeDependencyNode {
|
|
19
|
-
artifact_ref: string;
|
|
20
|
-
dependencies: readonly IndexerKnowledgeDependency[];
|
|
21
|
-
}
|
|
22
|
-
export declare class IndexerKnowledgeDependencyCycleError extends TypeError {
|
|
23
|
-
readonly artifact_refs: readonly string[];
|
|
24
|
-
constructor(artifact_refs: readonly string[]);
|
|
25
|
-
}
|
|
26
|
-
/** Missing dependencies may be produced later. Cycles cannot become ready by
|
|
27
|
-
* waiting, so reject them before any Author is scheduled. */
|
|
28
|
-
export declare function validateIndexerKnowledgeDependencyGraph(nodes: readonly IndexerKnowledgeDependencyNode[]): void;
|
|
29
|
-
export declare const indexerKnowledgeDependencyVersionSchema: z.ZodObject<{
|
|
30
|
-
artifact_ref: z.ZodString;
|
|
31
|
-
approved_content_digest: z.ZodString;
|
|
32
|
-
projection_digest: z.ZodString;
|
|
33
|
-
}, "strict", z.ZodTypeAny, {
|
|
34
|
-
artifact_ref: string;
|
|
35
|
-
approved_content_digest: string;
|
|
36
|
-
projection_digest: string;
|
|
37
|
-
}, {
|
|
38
|
-
artifact_ref: string;
|
|
39
|
-
approved_content_digest: string;
|
|
40
|
-
projection_digest: string;
|
|
41
|
-
}>;
|
|
42
|
-
export type IndexerKnowledgeDependencyVersion = z.infer<typeof indexerKnowledgeDependencyVersionSchema>;
|
|
43
|
-
export declare function indexerKnowledgeDependencyFingerprint(versions: readonly IndexerKnowledgeDependencyVersion[]): string;
|
|
44
|
-
/** A changed or removed dependency invalidates transitive readers as well.
|
|
45
|
-
* This returns identities for the existing update flow, not another queue. */
|
|
46
|
-
export declare function impactedIndexerKnowledgeArticles(nodes: readonly IndexerKnowledgeDependencyNode[], changed: ReadonlySet<string>): string[];
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type IndexerTargetResolutionView } from "./indexerMainWorkset.js";
|
|
3
|
-
declare const approvedSubjectSchema: z.ZodObject<{
|
|
4
|
-
node_ref: z.ZodString;
|
|
5
|
-
subject_key: z.ZodObject<{
|
|
6
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
7
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
-
}, "strict", z.ZodTypeAny, {
|
|
11
|
-
kind: string;
|
|
12
|
-
namespace: string;
|
|
13
|
-
protocol: "context.subject-key/v1";
|
|
14
|
-
local_key: string;
|
|
15
|
-
}, {
|
|
16
|
-
kind: string;
|
|
17
|
-
namespace: string;
|
|
18
|
-
protocol: "context.subject-key/v1";
|
|
19
|
-
local_key: string;
|
|
20
|
-
}>;
|
|
21
|
-
}, "strict", z.ZodTypeAny, {
|
|
22
|
-
subject_key: {
|
|
23
|
-
kind: string;
|
|
24
|
-
namespace: string;
|
|
25
|
-
protocol: "context.subject-key/v1";
|
|
26
|
-
local_key: string;
|
|
27
|
-
};
|
|
28
|
-
node_ref: string;
|
|
29
|
-
}, {
|
|
30
|
-
subject_key: {
|
|
31
|
-
kind: string;
|
|
32
|
-
namespace: string;
|
|
33
|
-
protocol: "context.subject-key/v1";
|
|
34
|
-
local_key: string;
|
|
35
|
-
};
|
|
36
|
-
node_ref: string;
|
|
37
|
-
}>;
|
|
38
|
-
declare const partitionSubjectSchema: z.ZodObject<{
|
|
39
|
-
partition_workset_digest: z.ZodString;
|
|
40
|
-
partition_plan_digest: z.ZodString;
|
|
41
|
-
group_key: z.ZodString;
|
|
42
|
-
node_ref: z.ZodString;
|
|
43
|
-
subject_key: z.ZodObject<{
|
|
44
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
45
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
46
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
48
|
-
}, "strict", z.ZodTypeAny, {
|
|
49
|
-
kind: string;
|
|
50
|
-
namespace: string;
|
|
51
|
-
protocol: "context.subject-key/v1";
|
|
52
|
-
local_key: string;
|
|
53
|
-
}, {
|
|
54
|
-
kind: string;
|
|
55
|
-
namespace: string;
|
|
56
|
-
protocol: "context.subject-key/v1";
|
|
57
|
-
local_key: string;
|
|
58
|
-
}>;
|
|
59
|
-
}, "strict", z.ZodTypeAny, {
|
|
60
|
-
subject_key: {
|
|
61
|
-
kind: string;
|
|
62
|
-
namespace: string;
|
|
63
|
-
protocol: "context.subject-key/v1";
|
|
64
|
-
local_key: string;
|
|
65
|
-
};
|
|
66
|
-
node_ref: string;
|
|
67
|
-
group_key: string;
|
|
68
|
-
partition_workset_digest: string;
|
|
69
|
-
partition_plan_digest: string;
|
|
70
|
-
}, {
|
|
71
|
-
subject_key: {
|
|
72
|
-
kind: string;
|
|
73
|
-
namespace: string;
|
|
74
|
-
protocol: "context.subject-key/v1";
|
|
75
|
-
local_key: string;
|
|
76
|
-
};
|
|
77
|
-
node_ref: string;
|
|
78
|
-
group_key: string;
|
|
79
|
-
partition_workset_digest: string;
|
|
80
|
-
partition_plan_digest: string;
|
|
81
|
-
}>;
|
|
82
|
-
export declare const indexerSubjectCatalogSchema: z.ZodObject<{
|
|
83
|
-
protocol: z.ZodLiteral<"context.indexer.subject-catalog/v1">;
|
|
84
|
-
requirement_ref: z.ZodString;
|
|
85
|
-
subject_key_schema_digest: z.ZodString;
|
|
86
|
-
approved_subject_set_digest: z.ZodString;
|
|
87
|
-
partition_subject_set_digest: z.ZodString;
|
|
88
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
89
|
-
subject_key: z.ZodObject<{
|
|
90
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
91
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
92
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
93
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
94
|
-
}, "strict", z.ZodTypeAny, {
|
|
95
|
-
kind: string;
|
|
96
|
-
namespace: string;
|
|
97
|
-
protocol: "context.subject-key/v1";
|
|
98
|
-
local_key: string;
|
|
99
|
-
}, {
|
|
100
|
-
kind: string;
|
|
101
|
-
namespace: string;
|
|
102
|
-
protocol: "context.subject-key/v1";
|
|
103
|
-
local_key: string;
|
|
104
|
-
}>;
|
|
105
|
-
node_refs: z.ZodArray<z.ZodString, "many">;
|
|
106
|
-
origin_refs: z.ZodArray<z.ZodString, "many">;
|
|
107
|
-
}, "strict", z.ZodTypeAny, {
|
|
108
|
-
subject_key: {
|
|
109
|
-
kind: string;
|
|
110
|
-
namespace: string;
|
|
111
|
-
protocol: "context.subject-key/v1";
|
|
112
|
-
local_key: string;
|
|
113
|
-
};
|
|
114
|
-
node_refs: string[];
|
|
115
|
-
origin_refs: string[];
|
|
116
|
-
}, {
|
|
117
|
-
subject_key: {
|
|
118
|
-
kind: string;
|
|
119
|
-
namespace: string;
|
|
120
|
-
protocol: "context.subject-key/v1";
|
|
121
|
-
local_key: string;
|
|
122
|
-
};
|
|
123
|
-
node_refs: string[];
|
|
124
|
-
origin_refs: string[];
|
|
125
|
-
}>, "many">;
|
|
126
|
-
catalog_digest: z.ZodString;
|
|
127
|
-
}, "strict", z.ZodTypeAny, {
|
|
128
|
-
entries: {
|
|
129
|
-
subject_key: {
|
|
130
|
-
kind: string;
|
|
131
|
-
namespace: string;
|
|
132
|
-
protocol: "context.subject-key/v1";
|
|
133
|
-
local_key: string;
|
|
134
|
-
};
|
|
135
|
-
node_refs: string[];
|
|
136
|
-
origin_refs: string[];
|
|
137
|
-
}[];
|
|
138
|
-
protocol: "context.indexer.subject-catalog/v1";
|
|
139
|
-
requirement_ref: string;
|
|
140
|
-
subject_key_schema_digest: string;
|
|
141
|
-
approved_subject_set_digest: string;
|
|
142
|
-
partition_subject_set_digest: string;
|
|
143
|
-
catalog_digest: string;
|
|
144
|
-
}, {
|
|
145
|
-
entries: {
|
|
146
|
-
subject_key: {
|
|
147
|
-
kind: string;
|
|
148
|
-
namespace: string;
|
|
149
|
-
protocol: "context.subject-key/v1";
|
|
150
|
-
local_key: string;
|
|
151
|
-
};
|
|
152
|
-
node_refs: string[];
|
|
153
|
-
origin_refs: string[];
|
|
154
|
-
}[];
|
|
155
|
-
protocol: "context.indexer.subject-catalog/v1";
|
|
156
|
-
requirement_ref: string;
|
|
157
|
-
subject_key_schema_digest: string;
|
|
158
|
-
approved_subject_set_digest: string;
|
|
159
|
-
partition_subject_set_digest: string;
|
|
160
|
-
catalog_digest: string;
|
|
161
|
-
}>;
|
|
162
|
-
export type IndexerApprovedSubject = z.infer<typeof approvedSubjectSchema>;
|
|
163
|
-
export type IndexerPartitionSubject = z.infer<typeof partitionSubjectSchema>;
|
|
164
|
-
export type IndexerSubjectCatalog = z.infer<typeof indexerSubjectCatalogSchema>;
|
|
165
|
-
type CatalogPayload = Omit<IndexerSubjectCatalog, "catalog_digest">;
|
|
166
|
-
export declare function indexerSubjectCatalogDigest(value: CatalogPayload): string;
|
|
167
|
-
export declare function buildIndexerSubjectCatalog(input: {
|
|
168
|
-
requirement_ref: string;
|
|
169
|
-
subject_key_schema_digest: string;
|
|
170
|
-
approved_subjects: readonly unknown[];
|
|
171
|
-
partition_subjects: readonly unknown[];
|
|
172
|
-
}): IndexerSubjectCatalog;
|
|
173
|
-
export declare function validateIndexerSubjectCatalog(value: unknown): IndexerSubjectCatalog;
|
|
174
|
-
export declare function indexerTargetQueryRef(input: {
|
|
175
|
-
subject_intent: "enrich-or-independent";
|
|
176
|
-
subject_key: unknown;
|
|
177
|
-
subject_key_schema_digest: string;
|
|
178
|
-
}): string;
|
|
179
|
-
export declare const indexerTargetResolutionViewSetSchema: z.ZodObject<{
|
|
180
|
-
protocol: z.ZodLiteral<"context.indexer.target-resolution-view-set/v1">;
|
|
181
|
-
catalog_digest: z.ZodString;
|
|
182
|
-
items: z.ZodArray<z.ZodObject<{
|
|
183
|
-
group_ref: z.ZodString;
|
|
184
|
-
query_ref: z.ZodString;
|
|
185
|
-
view_digest: z.ZodString;
|
|
186
|
-
}, "strict", z.ZodTypeAny, {
|
|
187
|
-
view_digest: string;
|
|
188
|
-
query_ref: string;
|
|
189
|
-
group_ref: string;
|
|
190
|
-
}, {
|
|
191
|
-
view_digest: string;
|
|
192
|
-
query_ref: string;
|
|
193
|
-
group_ref: string;
|
|
194
|
-
}>, "many">;
|
|
195
|
-
view_set_digest: z.ZodString;
|
|
196
|
-
}, "strict", z.ZodTypeAny, {
|
|
197
|
-
protocol: "context.indexer.target-resolution-view-set/v1";
|
|
198
|
-
items: {
|
|
199
|
-
view_digest: string;
|
|
200
|
-
query_ref: string;
|
|
201
|
-
group_ref: string;
|
|
202
|
-
}[];
|
|
203
|
-
catalog_digest: string;
|
|
204
|
-
view_set_digest: string;
|
|
205
|
-
}, {
|
|
206
|
-
protocol: "context.indexer.target-resolution-view-set/v1";
|
|
207
|
-
items: {
|
|
208
|
-
view_digest: string;
|
|
209
|
-
query_ref: string;
|
|
210
|
-
group_ref: string;
|
|
211
|
-
}[];
|
|
212
|
-
catalog_digest: string;
|
|
213
|
-
view_set_digest: string;
|
|
214
|
-
}>;
|
|
215
|
-
export type IndexerTargetResolutionViewSet = z.infer<typeof indexerTargetResolutionViewSetSchema>;
|
|
216
|
-
export declare function buildIndexerTargetResolutionViews(input: {
|
|
217
|
-
catalog: unknown;
|
|
218
|
-
queries: readonly {
|
|
219
|
-
group_ref: string;
|
|
220
|
-
subject_intent: "enrich-or-independent";
|
|
221
|
-
subject_key: unknown;
|
|
222
|
-
}[];
|
|
223
|
-
}): {
|
|
224
|
-
views: Array<{
|
|
225
|
-
group_ref: string;
|
|
226
|
-
view: IndexerTargetResolutionView;
|
|
227
|
-
}>;
|
|
228
|
-
view_set: IndexerTargetResolutionViewSet;
|
|
229
|
-
};
|
|
230
|
-
export {};
|