@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,380 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const driveRelativePathSchema: z.ZodString;
|
|
3
|
+
export declare const driveArtifactProjectionSchema: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
5
|
+
projectionType: z.ZodLiteral<"GOOGLE_DRIVE">;
|
|
6
|
+
projectionId: z.ZodString;
|
|
7
|
+
relativePath: z.ZodString;
|
|
8
|
+
projectKey: z.ZodString;
|
|
9
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
10
|
+
artifactRef: z.ZodString;
|
|
11
|
+
identityRef: z.ZodString;
|
|
12
|
+
contentHash: z.ZodString;
|
|
13
|
+
mediaType: z.ZodString;
|
|
14
|
+
byteLength: z.ZodNumber;
|
|
15
|
+
artifactKind: z.ZodEnum<{
|
|
16
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
17
|
+
RESEARCH: "RESEARCH";
|
|
18
|
+
REVIEW: "REVIEW";
|
|
19
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
20
|
+
INSIGHT: "INSIGHT";
|
|
21
|
+
}>;
|
|
22
|
+
artifactStatus: z.ZodEnum<{
|
|
23
|
+
GENERATED: "GENERATED";
|
|
24
|
+
DRAFT: "DRAFT";
|
|
25
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
26
|
+
REWORK_REQUIRED: "REWORK_REQUIRED";
|
|
27
|
+
APPROVED: "APPROVED";
|
|
28
|
+
REJECTED: "REJECTED";
|
|
29
|
+
SUPERSEDED: "SUPERSEDED";
|
|
30
|
+
}>;
|
|
31
|
+
artifactVersion: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export declare const driveReviewPlaneProjectionSchema: z.ZodObject<{
|
|
34
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
35
|
+
projectionType: z.ZodLiteral<"GOOGLE_DRIVE_REVIEW">;
|
|
36
|
+
projectionId: z.ZodString;
|
|
37
|
+
relativePath: z.ZodString;
|
|
38
|
+
workspaceRoot: z.ZodString;
|
|
39
|
+
reviewStage: z.ZodEnum<{
|
|
40
|
+
REVIEWED: "REVIEWED";
|
|
41
|
+
PROGRAM: "PROGRAM";
|
|
42
|
+
INBOX: "INBOX";
|
|
43
|
+
USER_APPROVED: "USER_APPROVED";
|
|
44
|
+
PROMOTION_RECEIPTS: "PROMOTION_RECEIPTS";
|
|
45
|
+
GUIDES: "GUIDES";
|
|
46
|
+
REJECTED_SUPERSEDED: "REJECTED_SUPERSEDED";
|
|
47
|
+
}>;
|
|
48
|
+
projectKey: z.ZodString;
|
|
49
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
50
|
+
artifactRef: z.ZodString;
|
|
51
|
+
identityRef: z.ZodString;
|
|
52
|
+
contentHash: z.ZodString;
|
|
53
|
+
mediaType: z.ZodString;
|
|
54
|
+
byteLength: z.ZodNumber;
|
|
55
|
+
artifactKind: z.ZodEnum<{
|
|
56
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
57
|
+
RESEARCH: "RESEARCH";
|
|
58
|
+
REVIEW: "REVIEW";
|
|
59
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
60
|
+
INSIGHT: "INSIGHT";
|
|
61
|
+
}>;
|
|
62
|
+
artifactStatus: z.ZodEnum<{
|
|
63
|
+
GENERATED: "GENERATED";
|
|
64
|
+
DRAFT: "DRAFT";
|
|
65
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
66
|
+
REWORK_REQUIRED: "REWORK_REQUIRED";
|
|
67
|
+
APPROVED: "APPROVED";
|
|
68
|
+
REJECTED: "REJECTED";
|
|
69
|
+
SUPERSEDED: "SUPERSEDED";
|
|
70
|
+
}>;
|
|
71
|
+
artifactVersion: z.ZodNumber;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
export declare const driveUploadProjectionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
74
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
75
|
+
projectionType: z.ZodLiteral<"GOOGLE_DRIVE">;
|
|
76
|
+
projectionId: z.ZodString;
|
|
77
|
+
relativePath: z.ZodString;
|
|
78
|
+
projectKey: z.ZodString;
|
|
79
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
80
|
+
artifactRef: z.ZodString;
|
|
81
|
+
identityRef: z.ZodString;
|
|
82
|
+
contentHash: z.ZodString;
|
|
83
|
+
mediaType: z.ZodString;
|
|
84
|
+
byteLength: z.ZodNumber;
|
|
85
|
+
artifactKind: z.ZodEnum<{
|
|
86
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
87
|
+
RESEARCH: "RESEARCH";
|
|
88
|
+
REVIEW: "REVIEW";
|
|
89
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
90
|
+
INSIGHT: "INSIGHT";
|
|
91
|
+
}>;
|
|
92
|
+
artifactStatus: z.ZodEnum<{
|
|
93
|
+
GENERATED: "GENERATED";
|
|
94
|
+
DRAFT: "DRAFT";
|
|
95
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
96
|
+
REWORK_REQUIRED: "REWORK_REQUIRED";
|
|
97
|
+
APPROVED: "APPROVED";
|
|
98
|
+
REJECTED: "REJECTED";
|
|
99
|
+
SUPERSEDED: "SUPERSEDED";
|
|
100
|
+
}>;
|
|
101
|
+
artifactVersion: z.ZodNumber;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
104
|
+
projectionType: z.ZodLiteral<"GOOGLE_DRIVE_REVIEW">;
|
|
105
|
+
projectionId: z.ZodString;
|
|
106
|
+
relativePath: z.ZodString;
|
|
107
|
+
workspaceRoot: z.ZodString;
|
|
108
|
+
reviewStage: z.ZodEnum<{
|
|
109
|
+
REVIEWED: "REVIEWED";
|
|
110
|
+
PROGRAM: "PROGRAM";
|
|
111
|
+
INBOX: "INBOX";
|
|
112
|
+
USER_APPROVED: "USER_APPROVED";
|
|
113
|
+
PROMOTION_RECEIPTS: "PROMOTION_RECEIPTS";
|
|
114
|
+
GUIDES: "GUIDES";
|
|
115
|
+
REJECTED_SUPERSEDED: "REJECTED_SUPERSEDED";
|
|
116
|
+
}>;
|
|
117
|
+
projectKey: z.ZodString;
|
|
118
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
119
|
+
artifactRef: z.ZodString;
|
|
120
|
+
identityRef: z.ZodString;
|
|
121
|
+
contentHash: z.ZodString;
|
|
122
|
+
mediaType: z.ZodString;
|
|
123
|
+
byteLength: z.ZodNumber;
|
|
124
|
+
artifactKind: z.ZodEnum<{
|
|
125
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
126
|
+
RESEARCH: "RESEARCH";
|
|
127
|
+
REVIEW: "REVIEW";
|
|
128
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
129
|
+
INSIGHT: "INSIGHT";
|
|
130
|
+
}>;
|
|
131
|
+
artifactStatus: z.ZodEnum<{
|
|
132
|
+
GENERATED: "GENERATED";
|
|
133
|
+
DRAFT: "DRAFT";
|
|
134
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
135
|
+
REWORK_REQUIRED: "REWORK_REQUIRED";
|
|
136
|
+
APPROVED: "APPROVED";
|
|
137
|
+
REJECTED: "REJECTED";
|
|
138
|
+
SUPERSEDED: "SUPERSEDED";
|
|
139
|
+
}>;
|
|
140
|
+
artifactVersion: z.ZodNumber;
|
|
141
|
+
}, z.core.$strict>]>;
|
|
142
|
+
export declare const driveProviderIdSchema: z.ZodString;
|
|
143
|
+
export declare const driveProviderDeliverySchema: z.ZodObject<{
|
|
144
|
+
provider: z.ZodLiteral<"GOOGLE_DRIVE">;
|
|
145
|
+
fileId: z.ZodString;
|
|
146
|
+
mimeType: z.ZodString;
|
|
147
|
+
byteLength: z.ZodNumber;
|
|
148
|
+
md5Checksum: z.ZodString;
|
|
149
|
+
version: z.ZodNullable<z.ZodString>;
|
|
150
|
+
modifiedTime: z.ZodNullable<z.ZodISODateTime>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
export declare const driveDeliveryReceiptSchema: z.ZodObject<{
|
|
153
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
154
|
+
projectionId: z.ZodString;
|
|
155
|
+
projectKey: z.ZodString;
|
|
156
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
157
|
+
artifactRef: z.ZodString;
|
|
158
|
+
contentHash: z.ZodString;
|
|
159
|
+
relativePath: z.ZodString;
|
|
160
|
+
deliveredAt: z.ZodISODateTime;
|
|
161
|
+
provider: z.ZodObject<{
|
|
162
|
+
provider: z.ZodLiteral<"GOOGLE_DRIVE">;
|
|
163
|
+
fileId: z.ZodString;
|
|
164
|
+
mimeType: z.ZodString;
|
|
165
|
+
byteLength: z.ZodNumber;
|
|
166
|
+
md5Checksum: z.ZodString;
|
|
167
|
+
version: z.ZodNullable<z.ZodString>;
|
|
168
|
+
modifiedTime: z.ZodNullable<z.ZodISODateTime>;
|
|
169
|
+
}, z.core.$strict>;
|
|
170
|
+
}, z.core.$strict>;
|
|
171
|
+
export declare const driveUploadFolderBindingSchema: z.ZodObject<{
|
|
172
|
+
relativePath: z.ZodString;
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
parentFileId: z.ZodString;
|
|
175
|
+
fileId: z.ZodString;
|
|
176
|
+
disposition: z.ZodEnum<{
|
|
177
|
+
EXISTING: "EXISTING";
|
|
178
|
+
RESERVED: "RESERVED";
|
|
179
|
+
}>;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
export declare const driveUploadFileBindingSchema: z.ZodObject<{
|
|
182
|
+
name: z.ZodString;
|
|
183
|
+
parentFileId: z.ZodString;
|
|
184
|
+
fileId: z.ZodString;
|
|
185
|
+
disposition: z.ZodEnum<{
|
|
186
|
+
EXISTING: "EXISTING";
|
|
187
|
+
RESERVED: "RESERVED";
|
|
188
|
+
}>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export declare const driveUploadIntentSchema: z.ZodObject<{
|
|
191
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
192
|
+
projectionId: z.ZodString;
|
|
193
|
+
projectKey: z.ZodString;
|
|
194
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
195
|
+
artifactRef: z.ZodString;
|
|
196
|
+
contentHash: z.ZodString;
|
|
197
|
+
relativePath: z.ZodString;
|
|
198
|
+
rootParentFolderId: z.ZodString;
|
|
199
|
+
sharedDriveId: z.ZodNullable<z.ZodString>;
|
|
200
|
+
reservedAt: z.ZodISODateTime;
|
|
201
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
202
|
+
relativePath: z.ZodString;
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
parentFileId: z.ZodString;
|
|
205
|
+
fileId: z.ZodString;
|
|
206
|
+
disposition: z.ZodEnum<{
|
|
207
|
+
EXISTING: "EXISTING";
|
|
208
|
+
RESERVED: "RESERVED";
|
|
209
|
+
}>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
file: z.ZodObject<{
|
|
212
|
+
name: z.ZodString;
|
|
213
|
+
parentFileId: z.ZodString;
|
|
214
|
+
fileId: z.ZodString;
|
|
215
|
+
disposition: z.ZodEnum<{
|
|
216
|
+
EXISTING: "EXISTING";
|
|
217
|
+
RESERVED: "RESERVED";
|
|
218
|
+
}>;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
export declare const driveProjectionOutboxEntrySchema: z.ZodObject<{
|
|
222
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
223
|
+
deliveryId: z.ZodString;
|
|
224
|
+
state: z.ZodEnum<{
|
|
225
|
+
PENDING: "PENDING";
|
|
226
|
+
BLOCKED: "BLOCKED";
|
|
227
|
+
DELIVERED: "DELIVERED";
|
|
228
|
+
FAILED_RETRYABLE: "FAILED_RETRYABLE";
|
|
229
|
+
FAILED_TERMINAL: "FAILED_TERMINAL";
|
|
230
|
+
}>;
|
|
231
|
+
projection: z.ZodUnion<readonly [z.ZodObject<{
|
|
232
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
233
|
+
projectionType: z.ZodLiteral<"GOOGLE_DRIVE">;
|
|
234
|
+
projectionId: z.ZodString;
|
|
235
|
+
relativePath: z.ZodString;
|
|
236
|
+
projectKey: z.ZodString;
|
|
237
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
238
|
+
artifactRef: z.ZodString;
|
|
239
|
+
identityRef: z.ZodString;
|
|
240
|
+
contentHash: z.ZodString;
|
|
241
|
+
mediaType: z.ZodString;
|
|
242
|
+
byteLength: z.ZodNumber;
|
|
243
|
+
artifactKind: z.ZodEnum<{
|
|
244
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
245
|
+
RESEARCH: "RESEARCH";
|
|
246
|
+
REVIEW: "REVIEW";
|
|
247
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
248
|
+
INSIGHT: "INSIGHT";
|
|
249
|
+
}>;
|
|
250
|
+
artifactStatus: z.ZodEnum<{
|
|
251
|
+
GENERATED: "GENERATED";
|
|
252
|
+
DRAFT: "DRAFT";
|
|
253
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
254
|
+
REWORK_REQUIRED: "REWORK_REQUIRED";
|
|
255
|
+
APPROVED: "APPROVED";
|
|
256
|
+
REJECTED: "REJECTED";
|
|
257
|
+
SUPERSEDED: "SUPERSEDED";
|
|
258
|
+
}>;
|
|
259
|
+
artifactVersion: z.ZodNumber;
|
|
260
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
261
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
262
|
+
projectionType: z.ZodLiteral<"GOOGLE_DRIVE_REVIEW">;
|
|
263
|
+
projectionId: z.ZodString;
|
|
264
|
+
relativePath: z.ZodString;
|
|
265
|
+
workspaceRoot: z.ZodString;
|
|
266
|
+
reviewStage: z.ZodEnum<{
|
|
267
|
+
REVIEWED: "REVIEWED";
|
|
268
|
+
PROGRAM: "PROGRAM";
|
|
269
|
+
INBOX: "INBOX";
|
|
270
|
+
USER_APPROVED: "USER_APPROVED";
|
|
271
|
+
PROMOTION_RECEIPTS: "PROMOTION_RECEIPTS";
|
|
272
|
+
GUIDES: "GUIDES";
|
|
273
|
+
REJECTED_SUPERSEDED: "REJECTED_SUPERSEDED";
|
|
274
|
+
}>;
|
|
275
|
+
projectKey: z.ZodString;
|
|
276
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
277
|
+
artifactRef: z.ZodString;
|
|
278
|
+
identityRef: z.ZodString;
|
|
279
|
+
contentHash: z.ZodString;
|
|
280
|
+
mediaType: z.ZodString;
|
|
281
|
+
byteLength: z.ZodNumber;
|
|
282
|
+
artifactKind: z.ZodEnum<{
|
|
283
|
+
SIGNAL_GENERATION: "SIGNAL_GENERATION";
|
|
284
|
+
RESEARCH: "RESEARCH";
|
|
285
|
+
REVIEW: "REVIEW";
|
|
286
|
+
KNOWLEDGE: "KNOWLEDGE";
|
|
287
|
+
INSIGHT: "INSIGHT";
|
|
288
|
+
}>;
|
|
289
|
+
artifactStatus: z.ZodEnum<{
|
|
290
|
+
GENERATED: "GENERATED";
|
|
291
|
+
DRAFT: "DRAFT";
|
|
292
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
293
|
+
REWORK_REQUIRED: "REWORK_REQUIRED";
|
|
294
|
+
APPROVED: "APPROVED";
|
|
295
|
+
REJECTED: "REJECTED";
|
|
296
|
+
SUPERSEDED: "SUPERSEDED";
|
|
297
|
+
}>;
|
|
298
|
+
artifactVersion: z.ZodNumber;
|
|
299
|
+
}, z.core.$strict>]>;
|
|
300
|
+
outboxDirectory: z.ZodString;
|
|
301
|
+
descriptorPath: z.ZodString;
|
|
302
|
+
payloadPath: z.ZodString;
|
|
303
|
+
uploadIntentPath: z.ZodNullable<z.ZodString>;
|
|
304
|
+
uploadIntent: z.ZodNullable<z.ZodObject<{
|
|
305
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
306
|
+
projectionId: z.ZodString;
|
|
307
|
+
projectKey: z.ZodString;
|
|
308
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
309
|
+
artifactRef: z.ZodString;
|
|
310
|
+
contentHash: z.ZodString;
|
|
311
|
+
relativePath: z.ZodString;
|
|
312
|
+
rootParentFolderId: z.ZodString;
|
|
313
|
+
sharedDriveId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
reservedAt: z.ZodISODateTime;
|
|
315
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
316
|
+
relativePath: z.ZodString;
|
|
317
|
+
name: z.ZodString;
|
|
318
|
+
parentFileId: z.ZodString;
|
|
319
|
+
fileId: z.ZodString;
|
|
320
|
+
disposition: z.ZodEnum<{
|
|
321
|
+
EXISTING: "EXISTING";
|
|
322
|
+
RESERVED: "RESERVED";
|
|
323
|
+
}>;
|
|
324
|
+
}, z.core.$strict>>;
|
|
325
|
+
file: z.ZodObject<{
|
|
326
|
+
name: z.ZodString;
|
|
327
|
+
parentFileId: z.ZodString;
|
|
328
|
+
fileId: z.ZodString;
|
|
329
|
+
disposition: z.ZodEnum<{
|
|
330
|
+
EXISTING: "EXISTING";
|
|
331
|
+
RESERVED: "RESERVED";
|
|
332
|
+
}>;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
deliveryPath: z.ZodNullable<z.ZodString>;
|
|
336
|
+
delivery: z.ZodNullable<z.ZodObject<{
|
|
337
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
338
|
+
projectionId: z.ZodString;
|
|
339
|
+
projectKey: z.ZodString;
|
|
340
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
341
|
+
artifactRef: z.ZodString;
|
|
342
|
+
contentHash: z.ZodString;
|
|
343
|
+
relativePath: z.ZodString;
|
|
344
|
+
deliveredAt: z.ZodISODateTime;
|
|
345
|
+
provider: z.ZodObject<{
|
|
346
|
+
provider: z.ZodLiteral<"GOOGLE_DRIVE">;
|
|
347
|
+
fileId: z.ZodString;
|
|
348
|
+
mimeType: z.ZodString;
|
|
349
|
+
byteLength: z.ZodNumber;
|
|
350
|
+
md5Checksum: z.ZodString;
|
|
351
|
+
version: z.ZodNullable<z.ZodString>;
|
|
352
|
+
modifiedTime: z.ZodNullable<z.ZodISODateTime>;
|
|
353
|
+
}, z.core.$strict>;
|
|
354
|
+
}, z.core.$strict>>;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
export declare const driveProjectionStagingReceiptSchema: z.ZodObject<{
|
|
357
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
358
|
+
deliveryId: z.ZodString;
|
|
359
|
+
projectionId: z.ZodString;
|
|
360
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
361
|
+
artifactRef: z.ZodString;
|
|
362
|
+
contentHash: z.ZodString;
|
|
363
|
+
relativePath: z.ZodString;
|
|
364
|
+
runtimeNodeId: z.ZodString;
|
|
365
|
+
stagedAt: z.ZodISODateTime;
|
|
366
|
+
outboxDirectory: z.ZodString;
|
|
367
|
+
descriptorPath: z.ZodString;
|
|
368
|
+
payloadPath: z.ZodString;
|
|
369
|
+
reused: z.ZodBoolean;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
export type DriveArtifactProjection = z.infer<typeof driveArtifactProjectionSchema>;
|
|
372
|
+
export type DriveReviewPlaneProjection = z.infer<typeof driveReviewPlaneProjectionSchema>;
|
|
373
|
+
export type DriveUploadProjection = z.infer<typeof driveUploadProjectionSchema>;
|
|
374
|
+
export type DriveProviderDelivery = z.infer<typeof driveProviderDeliverySchema>;
|
|
375
|
+
export type DriveUploadFolderBinding = z.infer<typeof driveUploadFolderBindingSchema>;
|
|
376
|
+
export type DriveUploadFileBinding = z.infer<typeof driveUploadFileBindingSchema>;
|
|
377
|
+
export type DriveUploadIntent = z.infer<typeof driveUploadIntentSchema>;
|
|
378
|
+
export type DriveDeliveryReceipt = z.infer<typeof driveDeliveryReceiptSchema>;
|
|
379
|
+
export type DriveProjectionStagingReceipt = z.infer<typeof driveProjectionStagingReceiptSchema>;
|
|
380
|
+
export type DriveProjectionOutboxEntry = z.infer<typeof driveProjectionOutboxEntrySchema>;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const publicReferenceCatalogueScopeSchema: z.ZodObject<{
|
|
3
|
+
countryCode: z.ZodString;
|
|
4
|
+
topicKey: z.ZodString;
|
|
5
|
+
scopeRef: z.ZodString;
|
|
6
|
+
coverage: z.ZodEnum<{
|
|
7
|
+
PARTIAL: "PARTIAL";
|
|
8
|
+
OBSERVED: "OBSERVED";
|
|
9
|
+
}>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export declare const publicReferenceApprovedSourceSchema: z.ZodObject<{
|
|
12
|
+
sourceRef: z.ZodString;
|
|
13
|
+
contentHash: z.ZodString;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export declare const publicReferenceLegacyReviewSchema: z.ZodObject<{
|
|
16
|
+
authority: z.ZodLiteral<"AUTHORIZED_PUBLISHER">;
|
|
17
|
+
reviewedAt: z.ZodISODateTime;
|
|
18
|
+
note: z.ZodString;
|
|
19
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
20
|
+
sourceRef: z.ZodString;
|
|
21
|
+
contentHash: z.ZodString;
|
|
22
|
+
}, z.core.$strict>>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
export declare const publicReferencePolicySchema: z.ZodObject<{
|
|
25
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
26
|
+
policyId: z.ZodString;
|
|
27
|
+
revision: z.ZodNumber;
|
|
28
|
+
enabled: z.ZodBoolean;
|
|
29
|
+
sourceProjectKey: z.ZodString;
|
|
30
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
31
|
+
corpusKey: z.ZodString;
|
|
32
|
+
catalogue: z.ZodObject<{
|
|
33
|
+
countryCode: z.ZodString;
|
|
34
|
+
topicKey: z.ZodString;
|
|
35
|
+
scopeRef: z.ZodString;
|
|
36
|
+
coverage: z.ZodEnum<{
|
|
37
|
+
PARTIAL: "PARTIAL";
|
|
38
|
+
OBSERVED: "OBSERVED";
|
|
39
|
+
}>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
recordTypes: z.ZodArray<z.ZodString>;
|
|
42
|
+
authorities: z.ZodArray<z.ZodString>;
|
|
43
|
+
minimumRecordCount: z.ZodNumber;
|
|
44
|
+
maximumAssessmentAgeSeconds: z.ZodNumber;
|
|
45
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
46
|
+
collectorId: z.ZodString;
|
|
47
|
+
sourceIds: z.ZodArray<z.ZodString>;
|
|
48
|
+
origin: z.ZodString;
|
|
49
|
+
pathPrefixes: z.ZodArray<z.ZodString>;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
export declare const publicReferenceMachineReviewSchema: z.ZodObject<{
|
|
54
|
+
authority: z.ZodLiteral<"POLICY_ENGINE">;
|
|
55
|
+
reviewedAt: z.ZodISODateTime;
|
|
56
|
+
note: z.ZodLiteral<"DETERMINISTIC_PUBLIC_SOURCE_VALIDATION">;
|
|
57
|
+
validationRule: z.ZodLiteral<"public-reference.policy.v1">;
|
|
58
|
+
policyId: z.ZodString;
|
|
59
|
+
policyRevision: z.ZodNumber;
|
|
60
|
+
policyDigest: z.ZodString;
|
|
61
|
+
executorRevision: z.ZodString;
|
|
62
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
63
|
+
sourceRef: z.ZodString;
|
|
64
|
+
contentHash: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
export declare const publicReferenceReviewSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
68
|
+
authority: z.ZodLiteral<"AUTHORIZED_PUBLISHER">;
|
|
69
|
+
reviewedAt: z.ZodISODateTime;
|
|
70
|
+
note: z.ZodString;
|
|
71
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
72
|
+
sourceRef: z.ZodString;
|
|
73
|
+
contentHash: z.ZodString;
|
|
74
|
+
}, z.core.$strict>>;
|
|
75
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
|
+
authority: z.ZodLiteral<"POLICY_ENGINE">;
|
|
77
|
+
reviewedAt: z.ZodISODateTime;
|
|
78
|
+
note: z.ZodLiteral<"DETERMINISTIC_PUBLIC_SOURCE_VALIDATION">;
|
|
79
|
+
validationRule: z.ZodLiteral<"public-reference.policy.v1">;
|
|
80
|
+
policyId: z.ZodString;
|
|
81
|
+
policyRevision: z.ZodNumber;
|
|
82
|
+
policyDigest: z.ZodString;
|
|
83
|
+
executorRevision: z.ZodString;
|
|
84
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
85
|
+
sourceRef: z.ZodString;
|
|
86
|
+
contentHash: z.ZodString;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
}, z.core.$strict>]>;
|
|
89
|
+
export type PublicReferencePolicy = z.infer<typeof publicReferencePolicySchema>;
|
|
90
|
+
export declare const publicReferencePublishInputSchema: z.ZodObject<{
|
|
91
|
+
publicationKey: z.ZodString;
|
|
92
|
+
corpusKey: z.ZodString;
|
|
93
|
+
releaseId: z.ZodString;
|
|
94
|
+
recordsContentHash: z.ZodString;
|
|
95
|
+
catalogue: z.ZodObject<{
|
|
96
|
+
countryCode: z.ZodString;
|
|
97
|
+
topicKey: z.ZodString;
|
|
98
|
+
scopeRef: z.ZodString;
|
|
99
|
+
coverage: z.ZodEnum<{
|
|
100
|
+
PARTIAL: "PARTIAL";
|
|
101
|
+
OBSERVED: "OBSERVED";
|
|
102
|
+
}>;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
review: z.ZodUnion<readonly [z.ZodObject<{
|
|
105
|
+
authority: z.ZodLiteral<"AUTHORIZED_PUBLISHER">;
|
|
106
|
+
reviewedAt: z.ZodISODateTime;
|
|
107
|
+
note: z.ZodString;
|
|
108
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
109
|
+
sourceRef: z.ZodString;
|
|
110
|
+
contentHash: z.ZodString;
|
|
111
|
+
}, z.core.$strict>>;
|
|
112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
113
|
+
authority: z.ZodLiteral<"POLICY_ENGINE">;
|
|
114
|
+
reviewedAt: z.ZodISODateTime;
|
|
115
|
+
note: z.ZodLiteral<"DETERMINISTIC_PUBLIC_SOURCE_VALIDATION">;
|
|
116
|
+
validationRule: z.ZodLiteral<"public-reference.policy.v1">;
|
|
117
|
+
policyId: z.ZodString;
|
|
118
|
+
policyRevision: z.ZodNumber;
|
|
119
|
+
policyDigest: z.ZodString;
|
|
120
|
+
executorRevision: z.ZodString;
|
|
121
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
122
|
+
sourceRef: z.ZodString;
|
|
123
|
+
contentHash: z.ZodString;
|
|
124
|
+
}, z.core.$strict>>;
|
|
125
|
+
}, z.core.$strict>]>;
|
|
126
|
+
}, z.core.$strict>;
|
|
127
|
+
export declare const publicReferenceWithdrawInputSchema: z.ZodObject<{
|
|
128
|
+
publicationRef: z.ZodString;
|
|
129
|
+
reason: z.ZodString;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
export declare const publicReferencePublicationBasisSchema: z.ZodObject<{
|
|
132
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
133
|
+
visibility: z.ZodLiteral<"PUBLIC_REFERENCE">;
|
|
134
|
+
sourceProjectKey: z.ZodString;
|
|
135
|
+
corpusKey: z.ZodString;
|
|
136
|
+
sourceReleaseId: z.ZodString;
|
|
137
|
+
sourceReleaseRef: z.ZodString;
|
|
138
|
+
recordsContentHash: z.ZodString;
|
|
139
|
+
recordsByteLength: z.ZodNumber;
|
|
140
|
+
recordCount: z.ZodNumber;
|
|
141
|
+
recordTypes: z.ZodArray<z.ZodString>;
|
|
142
|
+
sourceCreatedAt: z.ZodISODateTime;
|
|
143
|
+
catalogue: z.ZodObject<{
|
|
144
|
+
countryCode: z.ZodString;
|
|
145
|
+
topicKey: z.ZodString;
|
|
146
|
+
scopeRef: z.ZodString;
|
|
147
|
+
coverage: z.ZodEnum<{
|
|
148
|
+
PARTIAL: "PARTIAL";
|
|
149
|
+
OBSERVED: "OBSERVED";
|
|
150
|
+
}>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
review: z.ZodUnion<readonly [z.ZodObject<{
|
|
153
|
+
authority: z.ZodLiteral<"AUTHORIZED_PUBLISHER">;
|
|
154
|
+
reviewedAt: z.ZodISODateTime;
|
|
155
|
+
note: z.ZodString;
|
|
156
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
157
|
+
sourceRef: z.ZodString;
|
|
158
|
+
contentHash: z.ZodString;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
authority: z.ZodLiteral<"POLICY_ENGINE">;
|
|
162
|
+
reviewedAt: z.ZodISODateTime;
|
|
163
|
+
note: z.ZodLiteral<"DETERMINISTIC_PUBLIC_SOURCE_VALIDATION">;
|
|
164
|
+
validationRule: z.ZodLiteral<"public-reference.policy.v1">;
|
|
165
|
+
policyId: z.ZodString;
|
|
166
|
+
policyRevision: z.ZodNumber;
|
|
167
|
+
policyDigest: z.ZodString;
|
|
168
|
+
executorRevision: z.ZodString;
|
|
169
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
170
|
+
sourceRef: z.ZodString;
|
|
171
|
+
contentHash: z.ZodString;
|
|
172
|
+
}, z.core.$strict>>;
|
|
173
|
+
}, z.core.$strict>]>;
|
|
174
|
+
publishedAt: z.ZodISODateTime;
|
|
175
|
+
checkedAt: z.ZodISODateTime;
|
|
176
|
+
validUntil: z.ZodISODateTime;
|
|
177
|
+
}, z.core.$strict>;
|
|
178
|
+
export declare const publicReferencePublicationSchema: z.ZodObject<{
|
|
179
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
180
|
+
visibility: z.ZodLiteral<"PUBLIC_REFERENCE">;
|
|
181
|
+
sourceProjectKey: z.ZodString;
|
|
182
|
+
corpusKey: z.ZodString;
|
|
183
|
+
sourceReleaseId: z.ZodString;
|
|
184
|
+
sourceReleaseRef: z.ZodString;
|
|
185
|
+
recordsContentHash: z.ZodString;
|
|
186
|
+
recordsByteLength: z.ZodNumber;
|
|
187
|
+
recordCount: z.ZodNumber;
|
|
188
|
+
recordTypes: z.ZodArray<z.ZodString>;
|
|
189
|
+
sourceCreatedAt: z.ZodISODateTime;
|
|
190
|
+
catalogue: z.ZodObject<{
|
|
191
|
+
countryCode: z.ZodString;
|
|
192
|
+
topicKey: z.ZodString;
|
|
193
|
+
scopeRef: z.ZodString;
|
|
194
|
+
coverage: z.ZodEnum<{
|
|
195
|
+
PARTIAL: "PARTIAL";
|
|
196
|
+
OBSERVED: "OBSERVED";
|
|
197
|
+
}>;
|
|
198
|
+
}, z.core.$strict>;
|
|
199
|
+
review: z.ZodUnion<readonly [z.ZodObject<{
|
|
200
|
+
authority: z.ZodLiteral<"AUTHORIZED_PUBLISHER">;
|
|
201
|
+
reviewedAt: z.ZodISODateTime;
|
|
202
|
+
note: z.ZodString;
|
|
203
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
204
|
+
sourceRef: z.ZodString;
|
|
205
|
+
contentHash: z.ZodString;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
208
|
+
authority: z.ZodLiteral<"POLICY_ENGINE">;
|
|
209
|
+
reviewedAt: z.ZodISODateTime;
|
|
210
|
+
note: z.ZodLiteral<"DETERMINISTIC_PUBLIC_SOURCE_VALIDATION">;
|
|
211
|
+
validationRule: z.ZodLiteral<"public-reference.policy.v1">;
|
|
212
|
+
policyId: z.ZodString;
|
|
213
|
+
policyRevision: z.ZodNumber;
|
|
214
|
+
policyDigest: z.ZodString;
|
|
215
|
+
executorRevision: z.ZodString;
|
|
216
|
+
approvedSources: z.ZodArray<z.ZodObject<{
|
|
217
|
+
sourceRef: z.ZodString;
|
|
218
|
+
contentHash: z.ZodString;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
}, z.core.$strict>]>;
|
|
221
|
+
publishedAt: z.ZodISODateTime;
|
|
222
|
+
checkedAt: z.ZodISODateTime;
|
|
223
|
+
validUntil: z.ZodISODateTime;
|
|
224
|
+
publicationId: z.ZodString;
|
|
225
|
+
publicationRef: z.ZodString;
|
|
226
|
+
}, z.core.$strict>;
|
|
227
|
+
export declare const publicReferenceCatalogueQuerySchema: z.ZodObject<{
|
|
228
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
229
|
+
topicKey: z.ZodOptional<z.ZodString>;
|
|
230
|
+
after: z.ZodOptional<z.ZodString>;
|
|
231
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
export type PublicReferencePublishInput = z.infer<typeof publicReferencePublishInputSchema>;
|
|
234
|
+
export type PublicReferencePublicationBasis = z.infer<typeof publicReferencePublicationBasisSchema>;
|
|
235
|
+
export type PublicReferencePublication = z.infer<typeof publicReferencePublicationSchema>;
|
|
236
|
+
export type PublicReferenceCatalogueQuery = z.infer<typeof publicReferenceCatalogueQuerySchema>;
|
|
237
|
+
export declare function publicReferencePublicationBasis(value: PublicReferencePublication): PublicReferencePublicationBasis;
|