@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,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const runtimeCapabilitySchema: z.ZodString;
|
|
3
|
+
export declare const runtimeNodeSchema: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
5
|
+
nodeId: z.ZodString;
|
|
6
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
7
|
+
codeRevision: z.ZodString;
|
|
8
|
+
observedAt: z.ZodISODateTime;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
export declare const workAssignmentSchema: z.ZodObject<{
|
|
11
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
12
|
+
assignmentId: z.ZodString;
|
|
13
|
+
workloadId: z.ZodString;
|
|
14
|
+
runtimeNodeId: z.ZodString;
|
|
15
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
16
|
+
revision: z.ZodNumber;
|
|
17
|
+
enabled: z.ZodBoolean;
|
|
18
|
+
effectiveFrom: z.ZodOptional<z.ZodISODateTime>;
|
|
19
|
+
effectiveUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export declare const runStatusSchema: z.ZodEnum<{
|
|
22
|
+
SUCCEEDED: "SUCCEEDED";
|
|
23
|
+
PARTIAL: "PARTIAL";
|
|
24
|
+
FAILED: "FAILED";
|
|
25
|
+
BLOCKED: "BLOCKED";
|
|
26
|
+
SKIPPED: "SKIPPED";
|
|
27
|
+
}>;
|
|
28
|
+
/** Fixed numeric diagnostics only; not a response body, URL or new finality authority. */
|
|
29
|
+
export declare function nativeAcquisitionHttpStatus(errorCode: unknown, value: unknown): number | undefined;
|
|
30
|
+
export declare const runReceiptSchema: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
32
|
+
runId: z.ZodString;
|
|
33
|
+
workloadId: z.ZodString;
|
|
34
|
+
runtimeNodeId: z.ZodString;
|
|
35
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
36
|
+
projectIntentRef: z.ZodOptional<z.ZodString>;
|
|
37
|
+
collectionBatchRef: z.ZodOptional<z.ZodString>;
|
|
38
|
+
assignmentRevision: z.ZodNumber;
|
|
39
|
+
codeRevision: z.ZodString;
|
|
40
|
+
startedAt: z.ZodISODateTime;
|
|
41
|
+
finishedAt: z.ZodISODateTime;
|
|
42
|
+
status: z.ZodEnum<{
|
|
43
|
+
SUCCEEDED: "SUCCEEDED";
|
|
44
|
+
PARTIAL: "PARTIAL";
|
|
45
|
+
FAILED: "FAILED";
|
|
46
|
+
BLOCKED: "BLOCKED";
|
|
47
|
+
SKIPPED: "SKIPPED";
|
|
48
|
+
}>;
|
|
49
|
+
inputFingerprint: z.ZodOptional<z.ZodString>;
|
|
50
|
+
outputFingerprint: z.ZodOptional<z.ZodString>;
|
|
51
|
+
evidenceCount: z.ZodNumber;
|
|
52
|
+
observationCount: z.ZodNumber;
|
|
53
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
54
|
+
acquisitionHttpStatus: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type RuntimeNode = z.infer<typeof runtimeNodeSchema>;
|
|
57
|
+
export type WorkAssignment = z.infer<typeof workAssignmentSchema>;
|
|
58
|
+
export type RunStatus = z.infer<typeof runStatusSchema>;
|
|
59
|
+
export type RunReceipt = z.infer<typeof runReceiptSchema>;
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TIPP_UNIVERSE_MAX_RESOURCE_BYTES: number;
|
|
3
|
+
export declare const schedulerInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
command: z.ZodLiteral<"business-information-collect">;
|
|
5
|
+
maxSources: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9
|
+
command: z.ZodLiteral<"pk-import-rules-project">;
|
|
10
|
+
acquireLinkedDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
documentBatch: z.ZodDefault<z.ZodNumber>;
|
|
12
|
+
maxDocumentBytes: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14
|
+
command: z.ZodLiteral<"acquisition-run">;
|
|
15
|
+
programDirectory: z.ZodString;
|
|
16
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
command: z.ZodLiteral<"collection-tick">;
|
|
19
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
20
|
+
batchLimit: z.ZodDefault<z.ZodNumber>;
|
|
21
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
command: z.ZodLiteral<"collection-projection-tick">;
|
|
24
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
26
|
+
command: z.ZodLiteral<"project-projection-tick">;
|
|
27
|
+
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
maxDependencyRows: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
maxMs: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32
|
+
command: z.ZodLiteral<"review-packet-project">;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
command: z.ZodLiteral<"auto-publication-tick">;
|
|
35
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
command: z.ZodLiteral<"public-reference-tick">;
|
|
38
|
+
policyFile: z.ZodString;
|
|
39
|
+
identityDatabase: z.ZodString;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
command: z.ZodLiteral<"feed-project">;
|
|
42
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
43
|
+
command: z.ZodLiteral<"procurement-project">;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
command: z.ZodLiteral<"pk-valuation-status-project">;
|
|
46
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
47
|
+
command: z.ZodLiteral<"pk-standards-project">;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
command: z.ZodLiteral<"cpec-project">;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
command: z.ZodLiteral<"tipp-universe-project">;
|
|
52
|
+
chapterBatch: z.ZodDefault<z.ZodNumber>;
|
|
53
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
command: z.ZodLiteral<"tipp-detail-project">;
|
|
56
|
+
detailBatch: z.ZodDefault<z.ZodNumber>;
|
|
57
|
+
detailConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
command: z.ZodLiteral<"tipp-tariff-project">;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
command: z.ZodLiteral<"tipp-regulatory-project">;
|
|
63
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
+
command: z.ZodLiteral<"pk-tariff-reconciliation-project">;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
command: z.ZodLiteral<"signal-collect">;
|
|
67
|
+
programFile: z.ZodString;
|
|
68
|
+
profile: z.ZodEnum<{
|
|
69
|
+
trends: "trends";
|
|
70
|
+
hn: "hn";
|
|
71
|
+
github: "github";
|
|
72
|
+
autocomplete: "autocomplete";
|
|
73
|
+
youtube: "youtube";
|
|
74
|
+
tiktok: "tiktok";
|
|
75
|
+
douyin: "douyin";
|
|
76
|
+
meta: "meta";
|
|
77
|
+
"deep-social": "deep-social";
|
|
78
|
+
}>;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
command: z.ZodLiteral<"signal-compose">;
|
|
81
|
+
programFile: z.ZodString;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
command: z.ZodLiteral<"customs-corpus-run">;
|
|
84
|
+
programFile: z.ZodString;
|
|
85
|
+
adapter: z.ZodEnum<{
|
|
86
|
+
"us-hts": "us-hts";
|
|
87
|
+
"us-cross": "us-cross";
|
|
88
|
+
"ca-tariff": "ca-tariff";
|
|
89
|
+
"ca-rulings": "ca-rulings";
|
|
90
|
+
"eu-ebti": "eu-ebti";
|
|
91
|
+
"pk-tariff": "pk-tariff";
|
|
92
|
+
"pk-import-sro": "pk-import-sro";
|
|
93
|
+
"pk-tax-authorities": "pk-tax-authorities";
|
|
94
|
+
"pk-classification": "pk-classification";
|
|
95
|
+
"pk-valuation": "pk-valuation";
|
|
96
|
+
"za-determinations": "za-determinations";
|
|
97
|
+
"eg-nafeza": "eg-nafeza";
|
|
98
|
+
"ae-tariff": "ae-tariff";
|
|
99
|
+
"sa-tariff": "sa-tariff";
|
|
100
|
+
"ru-eaeu": "ru-eaeu";
|
|
101
|
+
}>;
|
|
102
|
+
refreshStoredDocuments: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
refreshRemoteBundle: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
105
|
+
command: z.ZodLiteral<"location-corpus-run">;
|
|
106
|
+
programFile: z.ZodString;
|
|
107
|
+
adapter: z.ZodLiteral<"unlocode">;
|
|
108
|
+
}, z.core.$strict>], "command">;
|
|
109
|
+
export declare const scheduledWorkloadSchema: z.ZodObject<{
|
|
110
|
+
workloadId: z.ZodString;
|
|
111
|
+
projectKey: z.ZodString;
|
|
112
|
+
priority: z.ZodNumber;
|
|
113
|
+
intervalSeconds: z.ZodNumber;
|
|
114
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
assignmentFile: z.ZodString;
|
|
116
|
+
initialDueAt: z.ZodOptional<z.ZodISODateTime>;
|
|
117
|
+
invocation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
118
|
+
command: z.ZodLiteral<"business-information-collect">;
|
|
119
|
+
maxSources: z.ZodDefault<z.ZodNumber>;
|
|
120
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
121
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
+
command: z.ZodLiteral<"pk-import-rules-project">;
|
|
124
|
+
acquireLinkedDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
125
|
+
documentBatch: z.ZodDefault<z.ZodNumber>;
|
|
126
|
+
maxDocumentBytes: z.ZodDefault<z.ZodNumber>;
|
|
127
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
128
|
+
command: z.ZodLiteral<"acquisition-run">;
|
|
129
|
+
programDirectory: z.ZodString;
|
|
130
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
132
|
+
command: z.ZodLiteral<"collection-tick">;
|
|
133
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
134
|
+
batchLimit: z.ZodDefault<z.ZodNumber>;
|
|
135
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
137
|
+
command: z.ZodLiteral<"collection-projection-tick">;
|
|
138
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
139
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
140
|
+
command: z.ZodLiteral<"project-projection-tick">;
|
|
141
|
+
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
maxDependencyRows: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
maxMs: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
146
|
+
command: z.ZodLiteral<"review-packet-project">;
|
|
147
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
148
|
+
command: z.ZodLiteral<"auto-publication-tick">;
|
|
149
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
+
command: z.ZodLiteral<"public-reference-tick">;
|
|
152
|
+
policyFile: z.ZodString;
|
|
153
|
+
identityDatabase: z.ZodString;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
command: z.ZodLiteral<"feed-project">;
|
|
156
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
157
|
+
command: z.ZodLiteral<"procurement-project">;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
159
|
+
command: z.ZodLiteral<"pk-valuation-status-project">;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
command: z.ZodLiteral<"pk-standards-project">;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
command: z.ZodLiteral<"cpec-project">;
|
|
164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
+
command: z.ZodLiteral<"tipp-universe-project">;
|
|
166
|
+
chapterBatch: z.ZodDefault<z.ZodNumber>;
|
|
167
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
168
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
169
|
+
command: z.ZodLiteral<"tipp-detail-project">;
|
|
170
|
+
detailBatch: z.ZodDefault<z.ZodNumber>;
|
|
171
|
+
detailConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
174
|
+
command: z.ZodLiteral<"tipp-tariff-project">;
|
|
175
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
176
|
+
command: z.ZodLiteral<"tipp-regulatory-project">;
|
|
177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
command: z.ZodLiteral<"pk-tariff-reconciliation-project">;
|
|
179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
+
command: z.ZodLiteral<"signal-collect">;
|
|
181
|
+
programFile: z.ZodString;
|
|
182
|
+
profile: z.ZodEnum<{
|
|
183
|
+
trends: "trends";
|
|
184
|
+
hn: "hn";
|
|
185
|
+
github: "github";
|
|
186
|
+
autocomplete: "autocomplete";
|
|
187
|
+
youtube: "youtube";
|
|
188
|
+
tiktok: "tiktok";
|
|
189
|
+
douyin: "douyin";
|
|
190
|
+
meta: "meta";
|
|
191
|
+
"deep-social": "deep-social";
|
|
192
|
+
}>;
|
|
193
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
194
|
+
command: z.ZodLiteral<"signal-compose">;
|
|
195
|
+
programFile: z.ZodString;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
command: z.ZodLiteral<"customs-corpus-run">;
|
|
198
|
+
programFile: z.ZodString;
|
|
199
|
+
adapter: z.ZodEnum<{
|
|
200
|
+
"us-hts": "us-hts";
|
|
201
|
+
"us-cross": "us-cross";
|
|
202
|
+
"ca-tariff": "ca-tariff";
|
|
203
|
+
"ca-rulings": "ca-rulings";
|
|
204
|
+
"eu-ebti": "eu-ebti";
|
|
205
|
+
"pk-tariff": "pk-tariff";
|
|
206
|
+
"pk-import-sro": "pk-import-sro";
|
|
207
|
+
"pk-tax-authorities": "pk-tax-authorities";
|
|
208
|
+
"pk-classification": "pk-classification";
|
|
209
|
+
"pk-valuation": "pk-valuation";
|
|
210
|
+
"za-determinations": "za-determinations";
|
|
211
|
+
"eg-nafeza": "eg-nafeza";
|
|
212
|
+
"ae-tariff": "ae-tariff";
|
|
213
|
+
"sa-tariff": "sa-tariff";
|
|
214
|
+
"ru-eaeu": "ru-eaeu";
|
|
215
|
+
}>;
|
|
216
|
+
refreshStoredDocuments: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
refreshRemoteBundle: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
command: z.ZodLiteral<"location-corpus-run">;
|
|
220
|
+
programFile: z.ZodString;
|
|
221
|
+
adapter: z.ZodLiteral<"unlocode">;
|
|
222
|
+
}, z.core.$strict>], "command">;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
export declare const nodeSchedulerManifestSchema: z.ZodObject<{
|
|
225
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
226
|
+
nodeId: z.ZodString;
|
|
227
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
228
|
+
maxWorkloadsPerTick: z.ZodDefault<z.ZodNumber>;
|
|
229
|
+
workloads: z.ZodArray<z.ZodObject<{
|
|
230
|
+
workloadId: z.ZodString;
|
|
231
|
+
projectKey: z.ZodString;
|
|
232
|
+
priority: z.ZodNumber;
|
|
233
|
+
intervalSeconds: z.ZodNumber;
|
|
234
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
235
|
+
assignmentFile: z.ZodString;
|
|
236
|
+
initialDueAt: z.ZodOptional<z.ZodISODateTime>;
|
|
237
|
+
invocation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
|
+
command: z.ZodLiteral<"business-information-collect">;
|
|
239
|
+
maxSources: z.ZodDefault<z.ZodNumber>;
|
|
240
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
241
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
+
command: z.ZodLiteral<"pk-import-rules-project">;
|
|
244
|
+
acquireLinkedDocuments: z.ZodDefault<z.ZodBoolean>;
|
|
245
|
+
documentBatch: z.ZodDefault<z.ZodNumber>;
|
|
246
|
+
maxDocumentBytes: z.ZodDefault<z.ZodNumber>;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
command: z.ZodLiteral<"acquisition-run">;
|
|
249
|
+
programDirectory: z.ZodString;
|
|
250
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
252
|
+
command: z.ZodLiteral<"collection-tick">;
|
|
253
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
254
|
+
batchLimit: z.ZodDefault<z.ZodNumber>;
|
|
255
|
+
fileRootsFile: z.ZodOptional<z.ZodString>;
|
|
256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
+
command: z.ZodLiteral<"collection-projection-tick">;
|
|
258
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
+
command: z.ZodLiteral<"project-projection-tick">;
|
|
261
|
+
maxRows: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
maxDependencyRows: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
maxMs: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
266
|
+
command: z.ZodLiteral<"review-packet-project">;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
command: z.ZodLiteral<"auto-publication-tick">;
|
|
269
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
271
|
+
command: z.ZodLiteral<"public-reference-tick">;
|
|
272
|
+
policyFile: z.ZodString;
|
|
273
|
+
identityDatabase: z.ZodString;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
command: z.ZodLiteral<"feed-project">;
|
|
276
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
+
command: z.ZodLiteral<"procurement-project">;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
279
|
+
command: z.ZodLiteral<"pk-valuation-status-project">;
|
|
280
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
281
|
+
command: z.ZodLiteral<"pk-standards-project">;
|
|
282
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
283
|
+
command: z.ZodLiteral<"cpec-project">;
|
|
284
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
285
|
+
command: z.ZodLiteral<"tipp-universe-project">;
|
|
286
|
+
chapterBatch: z.ZodDefault<z.ZodNumber>;
|
|
287
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
289
|
+
command: z.ZodLiteral<"tipp-detail-project">;
|
|
290
|
+
detailBatch: z.ZodDefault<z.ZodNumber>;
|
|
291
|
+
detailConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
293
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
294
|
+
command: z.ZodLiteral<"tipp-tariff-project">;
|
|
295
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
296
|
+
command: z.ZodLiteral<"tipp-regulatory-project">;
|
|
297
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
298
|
+
command: z.ZodLiteral<"pk-tariff-reconciliation-project">;
|
|
299
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
300
|
+
command: z.ZodLiteral<"signal-collect">;
|
|
301
|
+
programFile: z.ZodString;
|
|
302
|
+
profile: z.ZodEnum<{
|
|
303
|
+
trends: "trends";
|
|
304
|
+
hn: "hn";
|
|
305
|
+
github: "github";
|
|
306
|
+
autocomplete: "autocomplete";
|
|
307
|
+
youtube: "youtube";
|
|
308
|
+
tiktok: "tiktok";
|
|
309
|
+
douyin: "douyin";
|
|
310
|
+
meta: "meta";
|
|
311
|
+
"deep-social": "deep-social";
|
|
312
|
+
}>;
|
|
313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
314
|
+
command: z.ZodLiteral<"signal-compose">;
|
|
315
|
+
programFile: z.ZodString;
|
|
316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
317
|
+
command: z.ZodLiteral<"customs-corpus-run">;
|
|
318
|
+
programFile: z.ZodString;
|
|
319
|
+
adapter: z.ZodEnum<{
|
|
320
|
+
"us-hts": "us-hts";
|
|
321
|
+
"us-cross": "us-cross";
|
|
322
|
+
"ca-tariff": "ca-tariff";
|
|
323
|
+
"ca-rulings": "ca-rulings";
|
|
324
|
+
"eu-ebti": "eu-ebti";
|
|
325
|
+
"pk-tariff": "pk-tariff";
|
|
326
|
+
"pk-import-sro": "pk-import-sro";
|
|
327
|
+
"pk-tax-authorities": "pk-tax-authorities";
|
|
328
|
+
"pk-classification": "pk-classification";
|
|
329
|
+
"pk-valuation": "pk-valuation";
|
|
330
|
+
"za-determinations": "za-determinations";
|
|
331
|
+
"eg-nafeza": "eg-nafeza";
|
|
332
|
+
"ae-tariff": "ae-tariff";
|
|
333
|
+
"sa-tariff": "sa-tariff";
|
|
334
|
+
"ru-eaeu": "ru-eaeu";
|
|
335
|
+
}>;
|
|
336
|
+
refreshStoredDocuments: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
refreshRemoteBundle: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
339
|
+
command: z.ZodLiteral<"location-corpus-run">;
|
|
340
|
+
programFile: z.ZodString;
|
|
341
|
+
adapter: z.ZodLiteral<"unlocode">;
|
|
342
|
+
}, z.core.$strict>], "command">;
|
|
343
|
+
}, z.core.$strict>>;
|
|
344
|
+
}, z.core.$strict>;
|
|
345
|
+
export type SchedulerInvocation = z.infer<typeof schedulerInvocationSchema>;
|
|
346
|
+
export type ScheduledWorkload = z.infer<typeof scheduledWorkloadSchema>;
|
|
347
|
+
export type NodeSchedulerManifest = z.infer<typeof nodeSchedulerManifestSchema>;
|
|
348
|
+
export declare const scheduledWorkerCommands: readonly string[];
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const signalProfileNameSchema: z.ZodEnum<{
|
|
3
|
+
trends: "trends";
|
|
4
|
+
hn: "hn";
|
|
5
|
+
github: "github";
|
|
6
|
+
autocomplete: "autocomplete";
|
|
7
|
+
youtube: "youtube";
|
|
8
|
+
tiktok: "tiktok";
|
|
9
|
+
douyin: "douyin";
|
|
10
|
+
meta: "meta";
|
|
11
|
+
"deep-social": "deep-social";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const signalSourceHealthSchema: z.ZodObject<{
|
|
14
|
+
ok: z.ZodBoolean;
|
|
15
|
+
items: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
state: z.ZodOptional<z.ZodString>;
|
|
17
|
+
note: z.ZodOptional<z.ZodString>;
|
|
18
|
+
error: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
20
|
+
export declare const signalSourceSnapshotSchema: z.ZodObject<{
|
|
21
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
22
|
+
projectKey: z.ZodString;
|
|
23
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
24
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sourceRevisionRef: z.ZodOptional<z.ZodString>;
|
|
26
|
+
sourceKey: z.ZodString;
|
|
27
|
+
profile: z.ZodEnum<{
|
|
28
|
+
trends: "trends";
|
|
29
|
+
hn: "hn";
|
|
30
|
+
github: "github";
|
|
31
|
+
autocomplete: "autocomplete";
|
|
32
|
+
youtube: "youtube";
|
|
33
|
+
tiktok: "tiktok";
|
|
34
|
+
douyin: "douyin";
|
|
35
|
+
meta: "meta";
|
|
36
|
+
"deep-social": "deep-social";
|
|
37
|
+
}>;
|
|
38
|
+
collectedAt: z.ZodISODateTime;
|
|
39
|
+
contentHash: z.ZodString;
|
|
40
|
+
evidenceId: z.ZodString;
|
|
41
|
+
signalCount: z.ZodNumber;
|
|
42
|
+
health: z.ZodObject<{
|
|
43
|
+
ok: z.ZodBoolean;
|
|
44
|
+
items: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
state: z.ZodOptional<z.ZodString>;
|
|
46
|
+
note: z.ZodOptional<z.ZodString>;
|
|
47
|
+
error: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const signalSourceAttemptSchema: z.ZodObject<{
|
|
51
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
52
|
+
projectKey: z.ZodString;
|
|
53
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
54
|
+
sourceRef: z.ZodOptional<z.ZodString>;
|
|
55
|
+
sourceRevisionRef: z.ZodOptional<z.ZodString>;
|
|
56
|
+
sourceKey: z.ZodString;
|
|
57
|
+
profile: z.ZodEnum<{
|
|
58
|
+
trends: "trends";
|
|
59
|
+
hn: "hn";
|
|
60
|
+
github: "github";
|
|
61
|
+
autocomplete: "autocomplete";
|
|
62
|
+
youtube: "youtube";
|
|
63
|
+
tiktok: "tiktok";
|
|
64
|
+
douyin: "douyin";
|
|
65
|
+
meta: "meta";
|
|
66
|
+
"deep-social": "deep-social";
|
|
67
|
+
}>;
|
|
68
|
+
lastAttemptAt: z.ZodISODateTime;
|
|
69
|
+
lastSuccessAt: z.ZodNullable<z.ZodISODateTime>;
|
|
70
|
+
success: z.ZodBoolean;
|
|
71
|
+
durationMs: z.ZodNumber;
|
|
72
|
+
state: z.ZodNullable<z.ZodString>;
|
|
73
|
+
error: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export declare const signalGenerationSchema: z.ZodObject<{
|
|
76
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
77
|
+
projectKey: z.ZodString;
|
|
78
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
79
|
+
generationKey: z.ZodString;
|
|
80
|
+
scoringProfile: z.ZodString;
|
|
81
|
+
generatedAt: z.ZodISODateTime;
|
|
82
|
+
snapshotManifest: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
83
|
+
historyBasis: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
84
|
+
contentHash: z.ZodString;
|
|
85
|
+
candidateCount: z.ZodNumber;
|
|
86
|
+
observationCount: z.ZodNumber;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
export type SignalProfileName = z.infer<typeof signalProfileNameSchema>;
|
|
89
|
+
export type SignalSourceHealth = z.infer<typeof signalSourceHealthSchema>;
|
|
90
|
+
export type SignalSourceSnapshot = z.infer<typeof signalSourceSnapshotSchema>;
|
|
91
|
+
export type SignalSourceAttempt = z.infer<typeof signalSourceAttemptSchema>;
|
|
92
|
+
export type SignalGeneration = z.infer<typeof signalGenerationSchema>;
|
|
93
|
+
export declare const signalHistoryCandidateSchema: z.ZodObject<{
|
|
94
|
+
query: z.ZodString;
|
|
95
|
+
score: z.ZodNumber;
|
|
96
|
+
sources: z.ZodArray<z.ZodString>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export declare const signalHistorySeedSchema: z.ZodObject<{
|
|
99
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
100
|
+
projectKey: z.ZodString;
|
|
101
|
+
projectRef: z.ZodOptional<z.ZodString>;
|
|
102
|
+
historyKey: z.ZodString;
|
|
103
|
+
generatedAt: z.ZodISODateTime;
|
|
104
|
+
scoringVersion: z.ZodNumber;
|
|
105
|
+
origin: z.ZodString;
|
|
106
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
107
|
+
query: z.ZodString;
|
|
108
|
+
score: z.ZodNumber;
|
|
109
|
+
sources: z.ZodArray<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
export type SignalHistoryCandidate = z.infer<typeof signalHistoryCandidateSchema>;
|
|
113
|
+
export type SignalHistorySeed = z.infer<typeof signalHistorySeedSchema>;
|