@native-knowledge/knowledge-sdk 0.0.0-stage → 0.1.0-rc.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/LICENSE +21 -0
- package/README.md +46 -2
- package/dist/index.js +6577 -0
- package/dist/types/contracts/artifact.d.ts +120 -0
- package/dist/types/contracts/collection-control.d.ts +160 -0
- package/dist/types/contracts/collection.d.ts +263 -0
- package/dist/types/contracts/common.d.ts +17 -0
- package/dist/types/contracts/currentness.d.ts +477 -0
- package/dist/types/contracts/event.d.ts +60 -0
- package/dist/types/contracts/evidence.d.ts +202 -0
- package/dist/types/contracts/index.d.ts +55 -0
- package/dist/types/contracts/material-capability.d.ts +88 -0
- package/dist/types/contracts/material-carrier.d.ts +104 -0
- package/dist/types/contracts/material-context.d.ts +28 -0
- package/dist/types/contracts/material-read.d.ts +152 -0
- package/dist/types/contracts/observation.d.ts +75 -0
- package/dist/types/contracts/persistence.d.ts +370 -0
- package/dist/types/contracts/project-intent.d.ts +218 -0
- package/dist/types/contracts/projection.d.ts +380 -0
- package/dist/types/contracts/public-reference.d.ts +237 -0
- package/dist/types/contracts/reference-record.d.ts +124 -0
- package/dist/types/contracts/remote-file.d.ts +128 -0
- package/dist/types/contracts/resource-scope.d.ts +40 -0
- package/dist/types/contracts/resource-transfer.d.ts +24 -0
- package/dist/types/contracts/review-packet.d.ts +274 -0
- package/dist/types/contracts/review-plane.d.ts +90 -0
- package/dist/types/contracts/rich-document.d.ts +641 -0
- package/dist/types/contracts/runtime-compatibility.d.ts +22 -0
- package/dist/types/contracts/runtime.d.ts +59 -0
- package/dist/types/contracts/scheduler.d.ts +348 -0
- package/dist/types/contracts/signal.d.ts +113 -0
- package/dist/types/contracts/source-governance.d.ts +375 -0
- package/dist/types/contracts/source.d.ts +62 -0
- package/dist/types/contracts/tenant-budget.d.ts +59 -0
- package/dist/types/contracts/tenant-collection-request.d.ts +209 -0
- package/dist/types/contracts/tenant-collection.d.ts +199 -0
- package/dist/types/contracts/tenant-currentness.d.ts +117 -0
- package/dist/types/contracts/tenant-management.d.ts +286 -0
- package/dist/types/contracts/tenant-material-api.d.ts +584 -0
- package/dist/types/contracts/tenant-pdf-text.d.ts +27 -0
- package/dist/types/contracts/tenant-project-control.d.ts +94 -0
- package/dist/types/contracts/tenant-public-reference.d.ts +179 -0
- package/dist/types/contracts/tenant-resource-api.d.ts +738 -0
- package/dist/types/contracts/tenant-resource.d.ts +298 -0
- package/dist/types/contracts/tenant-rich-document.d.ts +317 -0
- package/dist/types/contracts/tenant-source-binding.d.ts +44 -0
- package/dist/types/contracts/tenant-source-bridge.d.ts +70 -0
- package/dist/types/contracts/tenant-source-cutover.d.ts +226 -0
- package/dist/types/contracts/tenant-source-document.d.ts +163 -0
- package/dist/types/contracts/tenant-source-lease.d.ts +1 -0
- package/dist/types/contracts/tenant-source.d.ts +223 -0
- package/dist/types/contracts/tenant-web-collection.d.ts +287 -0
- package/dist/types/contracts/tenant-web-content-plan.d.ts +86 -0
- package/dist/types/contracts/tenant-web-content-result.d.ts +63 -0
- package/dist/types/contracts/tenant-web-content.d.ts +383 -0
- package/dist/types/contracts/tenant-web-crawl.d.ts +310 -0
- package/dist/types/contracts/tenant-web-dynamic.d.ts +698 -0
- package/dist/types/contracts/tenant-web-results.d.ts +66 -0
- package/dist/types/contracts/tenant-web-workflow.d.ts +494 -0
- package/dist/types/sdk/agent-entry.d.ts +291 -0
- package/dist/types/sdk/agent-guidance-error.d.ts +15 -0
- package/dist/types/sdk/index.d.ts +289 -0
- package/dist/types/sdk/material-stream.d.ts +18 -0
- package/dist/types/sdk/oauth.d.ts +268 -0
- package/dist/types/sdk/resource-integrity.d.ts +21 -0
- package/dist/types/sdk/resource.d.ts +88 -0
- package/dist/types/sdk/tenant-management.d.ts +240 -0
- package/dist/types/sdk/tenant-project.d.ts +57 -0
- package/dist/types/sdk/tenant-runtime.d.ts +174 -0
- package/dist/types/sdk/tenant-web-content.d.ts +44 -0
- package/dist/types/sdk/tenant-web-crawl.d.ts +42 -0
- package/dist/types/sdk/tenant-web-dynamic.d.ts +42 -0
- package/dist/types/sdk/tenant-web-workflow.d.ts +43 -0
- package/dist/types/sdk/tenant-web.d.ts +42 -0
- package/dist/types/sdk/tenant-workspace.d.ts +36 -0
- package/dist/types/sdk/transport.d.ts +16 -0
- package/dist/types/serving-contracts/agent-catalog.d.ts +70 -0
- package/dist/types/serving-contracts/agent-entry.d.ts +13148 -0
- package/dist/types/serving-contracts/agent-guidance-shapes.d.ts +263 -0
- package/dist/types/serving-contracts/agent-input-hints.d.ts +24 -0
- package/dist/types/serving-contracts/body-search.d.ts +231 -0
- package/dist/types/serving-contracts/consumer.d.ts +989 -0
- package/dist/types/serving-contracts/core.d.ts +333 -0
- package/dist/types/serving-contracts/http.d.ts +2874 -0
- package/dist/types/serving-contracts/index.d.ts +23 -0
- package/dist/types/serving-contracts/management.d.ts +424 -0
- package/dist/types/serving-contracts/material-capabilities.d.ts +508 -0
- package/dist/types/serving-contracts/material-index-status.d.ts +55 -0
- package/dist/types/serving-contracts/mcp.d.ts +2218 -0
- package/dist/types/serving-contracts/tenant-governance.d.ts +236 -0
- package/dist/types/serving-contracts/tenant-management.d.ts +6276 -0
- package/dist/types/serving-contracts/tenant-project.d.ts +7550 -0
- package/dist/types/serving-contracts/tenant-runtime.d.ts +9674 -0
- package/dist/types/serving-contracts/tenant-web-content.d.ts +4606 -0
- package/dist/types/serving-contracts/tenant-web-crawl.d.ts +2958 -0
- package/dist/types/serving-contracts/tenant-web-dynamic.d.ts +3902 -0
- package/dist/types/serving-contracts/tenant-web-workflow.d.ts +5750 -0
- package/dist/types/serving-contracts/tenant-web.d.ts +6418 -0
- package/dist/types/serving-contracts/tenant-workspace.d.ts +6451 -0
- package/dist/types/serving-contracts/workflow.d.ts +439 -0
- package/package.json +34 -4
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const observationKindSchema: z.ZodEnum<{
|
|
3
|
+
SOURCE_FAILURE: "SOURCE_FAILURE";
|
|
4
|
+
OTHER: "OTHER";
|
|
5
|
+
SOURCE_CHANGE: "SOURCE_CHANGE";
|
|
6
|
+
WORLD_SIGNAL: "WORLD_SIGNAL";
|
|
7
|
+
BUSINESS_FEEDBACK: "BUSINESS_FEEDBACK";
|
|
8
|
+
AGENT_EVALUATION: "AGENT_EVALUATION";
|
|
9
|
+
CONTENT_FEEDBACK: "CONTENT_FEEDBACK";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const observationSchema: z.ZodObject<{
|
|
12
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
13
|
+
observationId: z.ZodString;
|
|
14
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
16
|
+
kind: z.ZodEnum<{
|
|
17
|
+
SOURCE_FAILURE: "SOURCE_FAILURE";
|
|
18
|
+
OTHER: "OTHER";
|
|
19
|
+
SOURCE_CHANGE: "SOURCE_CHANGE";
|
|
20
|
+
WORLD_SIGNAL: "WORLD_SIGNAL";
|
|
21
|
+
BUSINESS_FEEDBACK: "BUSINESS_FEEDBACK";
|
|
22
|
+
AGENT_EVALUATION: "AGENT_EVALUATION";
|
|
23
|
+
CONTENT_FEEDBACK: "CONTENT_FEEDBACK";
|
|
24
|
+
}>;
|
|
25
|
+
observedAt: z.ZodISODateTime;
|
|
26
|
+
expiresAt: z.ZodOptional<z.ZodISODateTime>;
|
|
27
|
+
evidenceRefs: z.ZodArray<z.ZodString>;
|
|
28
|
+
payloadHash: z.ZodOptional<z.ZodString>;
|
|
29
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
export declare const signalLaneSchema: z.ZodEnum<{
|
|
32
|
+
OTHER: "OTHER";
|
|
33
|
+
DEMAND: "DEMAND";
|
|
34
|
+
PAIN: "PAIN";
|
|
35
|
+
COMMERCIAL: "COMMERCIAL";
|
|
36
|
+
}>;
|
|
37
|
+
export declare const velocityStateSchema: z.ZodEnum<{
|
|
38
|
+
UNKNOWN: "UNKNOWN";
|
|
39
|
+
NEW: "NEW";
|
|
40
|
+
RISING: "RISING";
|
|
41
|
+
STABLE: "STABLE";
|
|
42
|
+
FALLING: "FALLING";
|
|
43
|
+
REAPPEARED: "REAPPEARED";
|
|
44
|
+
}>;
|
|
45
|
+
export declare const signalObservationSchema: z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
47
|
+
observationId: z.ZodString;
|
|
48
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
49
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
50
|
+
observedAt: z.ZodISODateTime;
|
|
51
|
+
evidenceRefs: z.ZodArray<z.ZodString>;
|
|
52
|
+
signalFamily: z.ZodString;
|
|
53
|
+
subject: z.ZodString;
|
|
54
|
+
lanes: z.ZodArray<z.ZodEnum<{
|
|
55
|
+
OTHER: "OTHER";
|
|
56
|
+
DEMAND: "DEMAND";
|
|
57
|
+
PAIN: "PAIN";
|
|
58
|
+
COMMERCIAL: "COMMERCIAL";
|
|
59
|
+
}>>;
|
|
60
|
+
velocity: z.ZodEnum<{
|
|
61
|
+
UNKNOWN: "UNKNOWN";
|
|
62
|
+
NEW: "NEW";
|
|
63
|
+
RISING: "RISING";
|
|
64
|
+
STABLE: "STABLE";
|
|
65
|
+
FALLING: "FALLING";
|
|
66
|
+
REAPPEARED: "REAPPEARED";
|
|
67
|
+
}>;
|
|
68
|
+
attentionScore: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
sourceCount: z.ZodNumber;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
export type ObservationKind = z.infer<typeof observationKindSchema>;
|
|
72
|
+
export type Observation = z.infer<typeof observationSchema>;
|
|
73
|
+
export type SignalLane = z.infer<typeof signalLaneSchema>;
|
|
74
|
+
export type VelocityState = z.infer<typeof velocityStateSchema>;
|
|
75
|
+
export type SignalObservation = z.infer<typeof signalObservationSchema>;
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const portableRelativePathSchema: z.ZodString;
|
|
3
|
+
export declare const sourceSetRegistryHashSchema: z.ZodObject<{
|
|
4
|
+
acquisitionSourceId: z.ZodString;
|
|
5
|
+
relativePath: z.ZodString;
|
|
6
|
+
contentHash: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export declare const sourceSetItemBindingSchema: z.ZodObject<{
|
|
9
|
+
acquisitionSourceId: z.ZodString;
|
|
10
|
+
concreteSourceId: z.ZodString;
|
|
11
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
12
|
+
access: z.ZodEnum<{
|
|
13
|
+
PUBLIC: "PUBLIC";
|
|
14
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
15
|
+
TENANT: "TENANT";
|
|
16
|
+
INTERNAL: "INTERNAL";
|
|
17
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
18
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
19
|
+
UNKNOWN: "UNKNOWN";
|
|
20
|
+
}>;
|
|
21
|
+
declaredGitSha: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export declare const sourceSetItemSchema: z.ZodObject<{
|
|
24
|
+
itemId: z.ZodString;
|
|
25
|
+
kind: z.ZodEnum<{
|
|
26
|
+
FILE: "FILE";
|
|
27
|
+
WEB: "WEB";
|
|
28
|
+
}>;
|
|
29
|
+
logicalSourceRef: z.ZodString;
|
|
30
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
31
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
32
|
+
acquisitionSourceId: z.ZodString;
|
|
33
|
+
concreteSourceId: z.ZodString;
|
|
34
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
35
|
+
access: z.ZodEnum<{
|
|
36
|
+
PUBLIC: "PUBLIC";
|
|
37
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
38
|
+
TENANT: "TENANT";
|
|
39
|
+
INTERNAL: "INTERNAL";
|
|
40
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
41
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
42
|
+
UNKNOWN: "UNKNOWN";
|
|
43
|
+
}>;
|
|
44
|
+
declaredGitSha: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$strict>>;
|
|
46
|
+
contentPolicy: z.ZodEnum<{
|
|
47
|
+
"public-excerpt": "public-excerpt";
|
|
48
|
+
"metadata-only": "metadata-only";
|
|
49
|
+
}>;
|
|
50
|
+
cadenceMs: z.ZodNumber;
|
|
51
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
52
|
+
rootBinding: z.ZodNullable<z.ZodString>;
|
|
53
|
+
relativePath: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export declare const sourceSetLogicalSourceSchema: z.ZodObject<{
|
|
56
|
+
logicalSourceId: z.ZodString;
|
|
57
|
+
familyId: z.ZodString;
|
|
58
|
+
declaredState: z.ZodEnum<{
|
|
59
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
60
|
+
CONFIGURED: "CONFIGURED";
|
|
61
|
+
PENDING_DISCOVERY: "PENDING_DISCOVERY";
|
|
62
|
+
KNOWN_MISSING: "KNOWN_MISSING";
|
|
63
|
+
NEED_AUTHORIZED_SOURCE: "NEED_AUTHORIZED_SOURCE";
|
|
64
|
+
DEFERRED: "DEFERRED";
|
|
65
|
+
RETIRED: "RETIRED";
|
|
66
|
+
}>;
|
|
67
|
+
locator: z.ZodNullable<z.ZodString>;
|
|
68
|
+
acquisitionSourceIds: z.ZodArray<z.ZodString>;
|
|
69
|
+
itemIds: z.ZodArray<z.ZodString>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
export declare const sourceSetSnapshotSchema: z.ZodObject<{
|
|
72
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
73
|
+
sourceSetId: z.ZodString;
|
|
74
|
+
sourceSetRef: z.ZodString;
|
|
75
|
+
projectKey: z.ZodString;
|
|
76
|
+
programRevision: z.ZodString;
|
|
77
|
+
acquisitionConfigHash: z.ZodString;
|
|
78
|
+
sourceUniverseHash: z.ZodNullable<z.ZodString>;
|
|
79
|
+
registryHashes: z.ZodArray<z.ZodObject<{
|
|
80
|
+
acquisitionSourceId: z.ZodString;
|
|
81
|
+
relativePath: z.ZodString;
|
|
82
|
+
contentHash: z.ZodString;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
items: z.ZodArray<z.ZodObject<{
|
|
85
|
+
itemId: z.ZodString;
|
|
86
|
+
kind: z.ZodEnum<{
|
|
87
|
+
FILE: "FILE";
|
|
88
|
+
WEB: "WEB";
|
|
89
|
+
}>;
|
|
90
|
+
logicalSourceRef: z.ZodString;
|
|
91
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
92
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
93
|
+
acquisitionSourceId: z.ZodString;
|
|
94
|
+
concreteSourceId: z.ZodString;
|
|
95
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
96
|
+
access: z.ZodEnum<{
|
|
97
|
+
PUBLIC: "PUBLIC";
|
|
98
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
99
|
+
TENANT: "TENANT";
|
|
100
|
+
INTERNAL: "INTERNAL";
|
|
101
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
102
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
103
|
+
UNKNOWN: "UNKNOWN";
|
|
104
|
+
}>;
|
|
105
|
+
declaredGitSha: z.ZodNullable<z.ZodString>;
|
|
106
|
+
}, z.core.$strict>>;
|
|
107
|
+
contentPolicy: z.ZodEnum<{
|
|
108
|
+
"public-excerpt": "public-excerpt";
|
|
109
|
+
"metadata-only": "metadata-only";
|
|
110
|
+
}>;
|
|
111
|
+
cadenceMs: z.ZodNumber;
|
|
112
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
113
|
+
rootBinding: z.ZodNullable<z.ZodString>;
|
|
114
|
+
relativePath: z.ZodNullable<z.ZodString>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
logicalSources: z.ZodArray<z.ZodObject<{
|
|
117
|
+
logicalSourceId: z.ZodString;
|
|
118
|
+
familyId: z.ZodString;
|
|
119
|
+
declaredState: z.ZodEnum<{
|
|
120
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
121
|
+
CONFIGURED: "CONFIGURED";
|
|
122
|
+
PENDING_DISCOVERY: "PENDING_DISCOVERY";
|
|
123
|
+
KNOWN_MISSING: "KNOWN_MISSING";
|
|
124
|
+
NEED_AUTHORIZED_SOURCE: "NEED_AUTHORIZED_SOURCE";
|
|
125
|
+
DEFERRED: "DEFERRED";
|
|
126
|
+
RETIRED: "RETIRED";
|
|
127
|
+
}>;
|
|
128
|
+
locator: z.ZodNullable<z.ZodString>;
|
|
129
|
+
acquisitionSourceIds: z.ZodArray<z.ZodString>;
|
|
130
|
+
itemIds: z.ZodArray<z.ZodString>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
export declare const sourceSetPointerSchema: z.ZodObject<{
|
|
134
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
135
|
+
projectKey: z.ZodString;
|
|
136
|
+
sourceSetId: z.ZodString;
|
|
137
|
+
sourceSetRef: z.ZodString;
|
|
138
|
+
manifestRelativePath: z.ZodString;
|
|
139
|
+
updatedAt: z.ZodISODateTime;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
export declare const libraryProjectionSchema: z.ZodObject<{
|
|
142
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
143
|
+
projectionId: z.ZodString;
|
|
144
|
+
projectKey: z.ZodString;
|
|
145
|
+
subjectType: z.ZodEnum<{
|
|
146
|
+
EVIDENCE: "EVIDENCE";
|
|
147
|
+
ARTIFACT: "ARTIFACT";
|
|
148
|
+
}>;
|
|
149
|
+
subjectRef: z.ZodString;
|
|
150
|
+
contentHash: z.ZodString;
|
|
151
|
+
mediaType: z.ZodString;
|
|
152
|
+
byteLength: z.ZodNumber;
|
|
153
|
+
relativePath: z.ZodString;
|
|
154
|
+
manifestRelativePath: z.ZodString;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
export declare const deliverySupportProofSchema: z.ZodObject<{
|
|
157
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
158
|
+
supportState: z.ZodString;
|
|
159
|
+
semanticHash: z.ZodString;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
export declare const deliveryConsumerRequestSchema: z.ZodObject<{
|
|
162
|
+
mediaType: z.ZodString;
|
|
163
|
+
contentHash: z.ZodString;
|
|
164
|
+
byteLength: z.ZodNumber;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
export declare const knowledgeDeliveryEnvelopeSchema: z.ZodObject<{
|
|
167
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
168
|
+
deliveryId: z.ZodString;
|
|
169
|
+
producerProjectKey: z.ZodString;
|
|
170
|
+
producerProjectRef: z.ZodOptional<z.ZodString>;
|
|
171
|
+
consumerKey: z.ZodString;
|
|
172
|
+
artifactRef: z.ZodString;
|
|
173
|
+
artifactKind: z.ZodEnum<{
|
|
174
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
175
|
+
RESEARCH: "RESEARCH";
|
|
176
|
+
REVIEW: "REVIEW";
|
|
177
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
178
|
+
INSIGHT: "INSIGHT";
|
|
179
|
+
}>;
|
|
180
|
+
artifactAccess: z.ZodEnum<{
|
|
181
|
+
PUBLIC: "PUBLIC";
|
|
182
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
183
|
+
TENANT: "TENANT";
|
|
184
|
+
INTERNAL: "INTERNAL";
|
|
185
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
186
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
187
|
+
UNKNOWN: "UNKNOWN";
|
|
188
|
+
}>;
|
|
189
|
+
contentHash: z.ZodString;
|
|
190
|
+
mediaType: z.ZodString;
|
|
191
|
+
byteLength: z.ZodNumber;
|
|
192
|
+
libraryPath: z.ZodString;
|
|
193
|
+
observedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
194
|
+
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
195
|
+
support: z.ZodNullable<z.ZodObject<{
|
|
196
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
197
|
+
supportState: z.ZodString;
|
|
198
|
+
semanticHash: z.ZodString;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
consumerRequest: z.ZodNullable<z.ZodObject<{
|
|
201
|
+
mediaType: z.ZodString;
|
|
202
|
+
contentHash: z.ZodString;
|
|
203
|
+
byteLength: z.ZodNumber;
|
|
204
|
+
}, z.core.$strict>>;
|
|
205
|
+
createdAt: z.ZodISODateTime;
|
|
206
|
+
}, z.core.$strict>;
|
|
207
|
+
export declare const knowledgeDeliveryClaimSchema: z.ZodObject<{
|
|
208
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
209
|
+
deliveryId: z.ZodString;
|
|
210
|
+
producerProjectKey: z.ZodString;
|
|
211
|
+
producerProjectRef: z.ZodOptional<z.ZodString>;
|
|
212
|
+
consumerKey: z.ZodString;
|
|
213
|
+
claimId: z.ZodString;
|
|
214
|
+
workerId: z.ZodString;
|
|
215
|
+
claimedAt: z.ZodISODateTime;
|
|
216
|
+
expiresAt: z.ZodISODateTime;
|
|
217
|
+
}, z.core.$strict>;
|
|
218
|
+
export declare const knowledgeDeliveryOutcomeSchema: z.ZodEnum<{
|
|
219
|
+
BLOCKED: "BLOCKED";
|
|
220
|
+
DELIVERED: "DELIVERED";
|
|
221
|
+
FAILED_RETRYABLE: "FAILED_RETRYABLE";
|
|
222
|
+
FAILED_TERMINAL: "FAILED_TERMINAL";
|
|
223
|
+
}>;
|
|
224
|
+
export declare const knowledgeDeliveryReceiptSchema: z.ZodObject<{
|
|
225
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
226
|
+
deliveryId: z.ZodString;
|
|
227
|
+
producerProjectKey: z.ZodString;
|
|
228
|
+
producerProjectRef: z.ZodOptional<z.ZodString>;
|
|
229
|
+
consumerKey: z.ZodString;
|
|
230
|
+
artifactRef: z.ZodString;
|
|
231
|
+
contentHash: z.ZodString;
|
|
232
|
+
outcome: z.ZodEnum<{
|
|
233
|
+
BLOCKED: "BLOCKED";
|
|
234
|
+
DELIVERED: "DELIVERED";
|
|
235
|
+
FAILED_RETRYABLE: "FAILED_RETRYABLE";
|
|
236
|
+
FAILED_TERMINAL: "FAILED_TERMINAL";
|
|
237
|
+
}>;
|
|
238
|
+
attempts: z.ZodNumber;
|
|
239
|
+
deliveredAt: z.ZodISODateTime;
|
|
240
|
+
nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
|
|
241
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
242
|
+
consumerResponseHash: z.ZodNullable<z.ZodString>;
|
|
243
|
+
message: z.ZodNullable<z.ZodString>;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
export declare const distributionConsumerSchema: z.ZodObject<{
|
|
246
|
+
consumerKey: z.ZodString;
|
|
247
|
+
enabled: z.ZodBoolean;
|
|
248
|
+
artifactKinds: z.ZodArray<z.ZodEnum<{
|
|
249
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
250
|
+
RESEARCH: "RESEARCH";
|
|
251
|
+
REVIEW: "REVIEW";
|
|
252
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
253
|
+
INSIGHT: "INSIGHT";
|
|
254
|
+
}>>;
|
|
255
|
+
acceptedAccess: z.ZodArray<z.ZodEnum<{
|
|
256
|
+
PUBLIC: "PUBLIC";
|
|
257
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
258
|
+
TENANT: "TENANT";
|
|
259
|
+
INTERNAL: "INTERNAL";
|
|
260
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
261
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
262
|
+
UNKNOWN: "UNKNOWN";
|
|
263
|
+
}>>;
|
|
264
|
+
supportPolicy: z.ZodEnum<{
|
|
265
|
+
NONE: "NONE";
|
|
266
|
+
REQUIRE_ALLOW: "REQUIRE_ALLOW";
|
|
267
|
+
}>;
|
|
268
|
+
adapter: z.ZodString;
|
|
269
|
+
}, z.core.$strict>;
|
|
270
|
+
export declare const distributionConfigSchema: z.ZodObject<{
|
|
271
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
272
|
+
projectKey: z.ZodString;
|
|
273
|
+
consumers: z.ZodArray<z.ZodObject<{
|
|
274
|
+
consumerKey: z.ZodString;
|
|
275
|
+
enabled: z.ZodBoolean;
|
|
276
|
+
artifactKinds: z.ZodArray<z.ZodEnum<{
|
|
277
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
278
|
+
RESEARCH: "RESEARCH";
|
|
279
|
+
REVIEW: "REVIEW";
|
|
280
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
281
|
+
INSIGHT: "INSIGHT";
|
|
282
|
+
}>>;
|
|
283
|
+
acceptedAccess: z.ZodArray<z.ZodEnum<{
|
|
284
|
+
PUBLIC: "PUBLIC";
|
|
285
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
286
|
+
TENANT: "TENANT";
|
|
287
|
+
INTERNAL: "INTERNAL";
|
|
288
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
289
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
290
|
+
UNKNOWN: "UNKNOWN";
|
|
291
|
+
}>>;
|
|
292
|
+
supportPolicy: z.ZodEnum<{
|
|
293
|
+
NONE: "NONE";
|
|
294
|
+
REQUIRE_ALLOW: "REQUIRE_ALLOW";
|
|
295
|
+
}>;
|
|
296
|
+
adapter: z.ZodString;
|
|
297
|
+
}, z.core.$strict>>;
|
|
298
|
+
}, z.core.$strict>;
|
|
299
|
+
export type SourceSetSnapshot = z.infer<typeof sourceSetSnapshotSchema>;
|
|
300
|
+
export type SourceSetPointer = z.infer<typeof sourceSetPointerSchema>;
|
|
301
|
+
export type LibraryProjection = z.infer<typeof libraryProjectionSchema>;
|
|
302
|
+
export type KnowledgeDeliveryEnvelope = z.infer<typeof knowledgeDeliveryEnvelopeSchema>;
|
|
303
|
+
export type KnowledgeDeliveryClaim = z.infer<typeof knowledgeDeliveryClaimSchema>;
|
|
304
|
+
export type KnowledgeDeliveryReceipt = z.infer<typeof knowledgeDeliveryReceiptSchema>;
|
|
305
|
+
export type KnowledgeDeliveryOutcome = z.infer<typeof knowledgeDeliveryOutcomeSchema>;
|
|
306
|
+
export type DistributionConfig = z.infer<typeof distributionConfigSchema>;
|
|
307
|
+
export declare const durableEvidenceManifestSchema: z.ZodObject<{
|
|
308
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
309
|
+
projectKey: z.ZodString;
|
|
310
|
+
evidenceRef: z.ZodString;
|
|
311
|
+
evidence: z.ZodObject<{
|
|
312
|
+
recoveryProvenance: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
mode: z.ZodLiteral<"REUSED_PRIOR_EVIDENCE">;
|
|
314
|
+
originEvidenceRef: z.ZodString;
|
|
315
|
+
originProjectRef: z.ZodString;
|
|
316
|
+
originSourceRevisionRef: z.ZodString;
|
|
317
|
+
originRuntimeNodeId: z.ZodString;
|
|
318
|
+
handoffReceiptRef: z.ZodString;
|
|
319
|
+
}, z.core.$strict>>;
|
|
320
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
322
|
+
method: z.ZodLiteral<"POST">;
|
|
323
|
+
bodyContentHash: z.ZodString;
|
|
324
|
+
bodyMediaType: z.ZodLiteral<"application/x-www-form-urlencoded">;
|
|
325
|
+
bodyByteLength: z.ZodNumber;
|
|
326
|
+
}, z.core.$strict>>;
|
|
327
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
328
|
+
evidenceId: z.ZodString;
|
|
329
|
+
sourceId: z.ZodString;
|
|
330
|
+
sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
331
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
332
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
333
|
+
collector: z.ZodObject<{
|
|
334
|
+
collectorId: z.ZodString;
|
|
335
|
+
version: z.ZodString;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
contentHash: z.ZodString;
|
|
338
|
+
observedAt: z.ZodISODateTime;
|
|
339
|
+
runtimeNodeId: z.ZodString;
|
|
340
|
+
access: z.ZodEnum<{
|
|
341
|
+
PUBLIC: "PUBLIC";
|
|
342
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
343
|
+
TENANT: "TENANT";
|
|
344
|
+
INTERNAL: "INTERNAL";
|
|
345
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
346
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
347
|
+
UNKNOWN: "UNKNOWN";
|
|
348
|
+
}>;
|
|
349
|
+
canonicalUri: z.ZodOptional<z.ZodString>;
|
|
350
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
351
|
+
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
sourceSetRef: z.ZodOptional<z.ZodString>;
|
|
353
|
+
sourceItemId: z.ZodOptional<z.ZodString>;
|
|
354
|
+
sourceRevisionRef: z.ZodOptional<z.ZodString>;
|
|
355
|
+
collectionBatchRef: z.ZodOptional<z.ZodString>;
|
|
356
|
+
collectionTaskId: z.ZodOptional<z.ZodString>;
|
|
357
|
+
reviewHints: z.ZodOptional<z.ZodObject<{
|
|
358
|
+
pageRanges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
359
|
+
startPage: z.ZodNumber;
|
|
360
|
+
endPage: z.ZodNumber;
|
|
361
|
+
}, z.core.$strict>>>;
|
|
362
|
+
timeRanges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
363
|
+
startMs: z.ZodNumber;
|
|
364
|
+
endMs: z.ZodNumber;
|
|
365
|
+
}, z.core.$strict>>>;
|
|
366
|
+
frameTimestampsMs: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
}, z.core.$strict>;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
export type DurableEvidenceManifest = z.infer<typeof durableEvidenceManifestSchema>;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Attribution for an Agent-native Knowledge write. This is provenance, not an
|
|
4
|
+
* authorization decision. agentId is deliberately nullable because humans,
|
|
5
|
+
* schedulers and migrations may write without an Agent identity.
|
|
6
|
+
*/
|
|
7
|
+
export declare const knowledgeActorContextSchema: z.ZodObject<{
|
|
8
|
+
tenantId: z.ZodString;
|
|
9
|
+
userId: z.ZodString;
|
|
10
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export declare const projectIntentScopeSchema: z.ZodObject<{
|
|
13
|
+
scopeId: z.ZodString;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
description: z.ZodString;
|
|
16
|
+
sourceRequirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
|
+
sourceFamilies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18
|
+
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export declare const projectIdentitySchema: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
summary: z.ZodString;
|
|
23
|
+
domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
24
|
+
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export declare const projectIntentBasisSchema: z.ZodObject<{
|
|
27
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
28
|
+
projectKey: z.ZodString;
|
|
29
|
+
actor: z.ZodObject<{
|
|
30
|
+
tenantId: z.ZodString;
|
|
31
|
+
userId: z.ZodString;
|
|
32
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
projectIdentity: z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
summary: z.ZodString;
|
|
37
|
+
domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
38
|
+
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
41
|
+
scopeId: z.ZodString;
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
description: z.ZodString;
|
|
44
|
+
sourceRequirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
45
|
+
sourceFamilies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
|
+
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
}, z.core.$strict>>>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
export declare const projectIntentSnapshotSchema: z.ZodObject<{
|
|
50
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
51
|
+
projectKey: z.ZodString;
|
|
52
|
+
actor: z.ZodObject<{
|
|
53
|
+
tenantId: z.ZodString;
|
|
54
|
+
userId: z.ZodString;
|
|
55
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
projectIdentity: z.ZodObject<{
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
summary: z.ZodString;
|
|
60
|
+
domains: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
61
|
+
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
|
+
scopeId: z.ZodString;
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
description: z.ZodString;
|
|
67
|
+
sourceRequirements: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
|
+
sourceFamilies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
69
|
+
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$strict>>>;
|
|
71
|
+
projectRef: z.ZodString;
|
|
72
|
+
revisionId: z.ZodString;
|
|
73
|
+
revisionRef: z.ZodString;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export declare const projectIntentPointerSchema: z.ZodObject<{
|
|
76
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
77
|
+
projectKey: z.ZodString;
|
|
78
|
+
tenantId: z.ZodString;
|
|
79
|
+
projectRef: z.ZodString;
|
|
80
|
+
revisionId: z.ZodString;
|
|
81
|
+
revisionRef: z.ZodString;
|
|
82
|
+
manifestRelativePath: z.ZodString;
|
|
83
|
+
updatedAt: z.ZodISODateTime;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export declare const collectionRefreshSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
mode: z.ZodLiteral<"MANUAL">;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
+
mode: z.ZodLiteral<"INTERVAL">;
|
|
89
|
+
intervalSeconds: z.ZodNumber;
|
|
90
|
+
}, z.core.$strict>], "mode">;
|
|
91
|
+
export declare const acquisitionTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
|
+
kind: z.ZodLiteral<"URL">;
|
|
93
|
+
locator: z.ZodURL;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"FILE">;
|
|
96
|
+
rootBinding: z.ZodString;
|
|
97
|
+
relativePath: z.ZodString;
|
|
98
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"EXECUTOR">;
|
|
100
|
+
executorId: z.ZodString;
|
|
101
|
+
bindingRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
|
|
103
|
+
}, z.core.$strict>], "kind">;
|
|
104
|
+
export declare const projectSourceBasisSchema: z.ZodObject<{
|
|
105
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
106
|
+
projectKey: z.ZodString;
|
|
107
|
+
actor: z.ZodObject<{
|
|
108
|
+
tenantId: z.ZodString;
|
|
109
|
+
userId: z.ZodString;
|
|
110
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"URL">;
|
|
114
|
+
locator: z.ZodURL;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
kind: z.ZodLiteral<"FILE">;
|
|
117
|
+
rootBinding: z.ZodString;
|
|
118
|
+
relativePath: z.ZodString;
|
|
119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"EXECUTOR">;
|
|
121
|
+
executorId: z.ZodString;
|
|
122
|
+
bindingRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
|
|
124
|
+
}, z.core.$strict>], "kind">;
|
|
125
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
126
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
127
|
+
PUBLIC: "PUBLIC";
|
|
128
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
129
|
+
TENANT: "TENANT";
|
|
130
|
+
INTERNAL: "INTERNAL";
|
|
131
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
132
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
133
|
+
UNKNOWN: "UNKNOWN";
|
|
134
|
+
}>>;
|
|
135
|
+
scopeIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
136
|
+
sourceFamilies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
137
|
+
purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
refresh: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
139
|
+
mode: z.ZodLiteral<"MANUAL">;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
mode: z.ZodLiteral<"INTERVAL">;
|
|
142
|
+
intervalSeconds: z.ZodNumber;
|
|
143
|
+
}, z.core.$strict>], "mode">>;
|
|
144
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
export declare const projectSourceSnapshotSchema: z.ZodObject<{
|
|
147
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
148
|
+
projectKey: z.ZodString;
|
|
149
|
+
actor: z.ZodObject<{
|
|
150
|
+
tenantId: z.ZodString;
|
|
151
|
+
userId: z.ZodString;
|
|
152
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
155
|
+
kind: z.ZodLiteral<"URL">;
|
|
156
|
+
locator: z.ZodURL;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"FILE">;
|
|
159
|
+
rootBinding: z.ZodString;
|
|
160
|
+
relativePath: z.ZodString;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
162
|
+
kind: z.ZodLiteral<"EXECUTOR">;
|
|
163
|
+
executorId: z.ZodString;
|
|
164
|
+
bindingRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
165
|
+
parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
|
|
166
|
+
}, z.core.$strict>], "kind">;
|
|
167
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
PUBLIC: "PUBLIC";
|
|
170
|
+
PUBLIC_METADATA: "PUBLIC_METADATA";
|
|
171
|
+
TENANT: "TENANT";
|
|
172
|
+
INTERNAL: "INTERNAL";
|
|
173
|
+
FDE_INTERNAL: "FDE_INTERNAL";
|
|
174
|
+
ACCESS_CONTROLLED: "ACCESS_CONTROLLED";
|
|
175
|
+
UNKNOWN: "UNKNOWN";
|
|
176
|
+
}>>;
|
|
177
|
+
scopeIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
178
|
+
sourceFamilies: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
179
|
+
purpose: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
refresh: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
+
mode: z.ZodLiteral<"MANUAL">;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
mode: z.ZodLiteral<"INTERVAL">;
|
|
184
|
+
intervalSeconds: z.ZodNumber;
|
|
185
|
+
}, z.core.$strict>], "mode">>;
|
|
186
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
187
|
+
projectRef: z.ZodString;
|
|
188
|
+
projectIntentRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
targetId: z.ZodString;
|
|
190
|
+
sourceId: z.ZodString;
|
|
191
|
+
revisionId: z.ZodString;
|
|
192
|
+
sourceRef: z.ZodString;
|
|
193
|
+
revisionRef: z.ZodString;
|
|
194
|
+
}, z.core.$strict>;
|
|
195
|
+
export declare const projectSourcePointerSchema: z.ZodObject<{
|
|
196
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
197
|
+
projectKey: z.ZodString;
|
|
198
|
+
projectRef: z.ZodString;
|
|
199
|
+
projectIntentRef: z.ZodNullable<z.ZodString>;
|
|
200
|
+
sourceId: z.ZodString;
|
|
201
|
+
targetId: z.ZodString;
|
|
202
|
+
sourceRef: z.ZodString;
|
|
203
|
+
revisionId: z.ZodString;
|
|
204
|
+
revisionRef: z.ZodString;
|
|
205
|
+
manifestRelativePath: z.ZodString;
|
|
206
|
+
updatedAt: z.ZodISODateTime;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
export type KnowledgeActorContext = z.infer<typeof knowledgeActorContextSchema>;
|
|
209
|
+
export type ProjectIntentScope = z.infer<typeof projectIntentScopeSchema>;
|
|
210
|
+
export type ProjectIdentity = z.infer<typeof projectIdentitySchema>;
|
|
211
|
+
export type ProjectIntentBasis = z.infer<typeof projectIntentBasisSchema>;
|
|
212
|
+
export type ProjectIntentSnapshot = z.infer<typeof projectIntentSnapshotSchema>;
|
|
213
|
+
export type ProjectIntentPointer = z.infer<typeof projectIntentPointerSchema>;
|
|
214
|
+
export type CollectionRefresh = z.infer<typeof collectionRefreshSchema>;
|
|
215
|
+
export type AcquisitionTarget = z.infer<typeof acquisitionTargetSchema>;
|
|
216
|
+
export type ProjectSourceBasis = z.infer<typeof projectSourceBasisSchema>;
|
|
217
|
+
export type ProjectSourceSnapshot = z.infer<typeof projectSourceSnapshotSchema>;
|
|
218
|
+
export type ProjectSourcePointer = z.infer<typeof projectSourcePointerSchema>;
|