@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,66 @@
|
|
|
1
|
+
/** 结果与覆盖独立于意图受理;仅有原件/字段出处才允许声明满足要求。 */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const tenantWebFieldResultSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
state: z.ZodEnum<{
|
|
6
|
+
MISSING: "MISSING";
|
|
7
|
+
UNSUPPORTED: "UNSUPPORTED";
|
|
8
|
+
PRESENT: "PRESENT";
|
|
9
|
+
}>;
|
|
10
|
+
value: z.ZodNullable<z.ZodJSONSchema>;
|
|
11
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
12
|
+
evidenceRef: z.ZodString;
|
|
13
|
+
contentHash: z.ZodString;
|
|
14
|
+
locator: z.ZodString;
|
|
15
|
+
excerpt: z.ZodString;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export declare const tenantWebResultSchema: z.ZodObject<{
|
|
20
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
21
|
+
jobRef: z.ZodString;
|
|
22
|
+
evidenceRef: z.ZodString;
|
|
23
|
+
sourceUrl: z.ZodString;
|
|
24
|
+
contentHash: z.ZodString;
|
|
25
|
+
observedAt: z.ZodISODateTime;
|
|
26
|
+
documentRef: z.ZodNullable<z.ZodString>;
|
|
27
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
state: z.ZodEnum<{
|
|
30
|
+
MISSING: "MISSING";
|
|
31
|
+
UNSUPPORTED: "UNSUPPORTED";
|
|
32
|
+
PRESENT: "PRESENT";
|
|
33
|
+
}>;
|
|
34
|
+
value: z.ZodNullable<z.ZodJSONSchema>;
|
|
35
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
36
|
+
evidenceRef: z.ZodString;
|
|
37
|
+
contentHash: z.ZodString;
|
|
38
|
+
locator: z.ZodString;
|
|
39
|
+
excerpt: z.ZodString;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
export declare const tenantWebCoverageSchema: z.ZodObject<{
|
|
45
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
46
|
+
jobRef: z.ZodString;
|
|
47
|
+
scopeRevision: z.ZodString;
|
|
48
|
+
state: z.ZodEnum<{
|
|
49
|
+
UNKNOWN: "UNKNOWN";
|
|
50
|
+
PARTIAL: "PARTIAL";
|
|
51
|
+
COMPLETE: "COMPLETE";
|
|
52
|
+
NOT_STARTED: "NOT_STARTED";
|
|
53
|
+
}>;
|
|
54
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
discovered: z.ZodNumber;
|
|
56
|
+
acquired: z.ZodNumber;
|
|
57
|
+
extracted: z.ZodNumber;
|
|
58
|
+
registered: z.ZodNumber;
|
|
59
|
+
pending: z.ZodNumber;
|
|
60
|
+
frontierExhausted: z.ZodBoolean;
|
|
61
|
+
limitReached: z.ZodBoolean;
|
|
62
|
+
gaps: z.ZodArray<z.ZodObject<{
|
|
63
|
+
code: z.ZodString;
|
|
64
|
+
url: z.ZodNullable<z.ZodString>;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
/** S5 operational state; acquisition/content evidence and business review remain separate. */
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type TenantWebContentJob } from './tenant-web-content.js';
|
|
4
|
+
export declare const TENANT_WEB_WORKFLOW_CAPABILITY = "TENANT_WEB_WORKFLOW_V1";
|
|
5
|
+
export declare const tenantWebScheduleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
mode: z.ZodLiteral<"ONCE">;
|
|
7
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8
|
+
mode: z.ZodLiteral<"PERIODIC">;
|
|
9
|
+
intervalSeconds: z.ZodNumber;
|
|
10
|
+
}, z.core.$strict>], "mode">;
|
|
11
|
+
export declare const tenantWebWorkflowJobSchema: z.ZodObject<{
|
|
12
|
+
schemaVersion: z.ZodLiteral<5>;
|
|
13
|
+
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
mode: z.ZodLiteral<"ONCE">;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
mode: z.ZodLiteral<"PERIODIC">;
|
|
17
|
+
intervalSeconds: z.ZodNumber;
|
|
18
|
+
}, z.core.$strict>], "mode">;
|
|
19
|
+
cycle: z.ZodObject<{
|
|
20
|
+
kind: z.ZodEnum<{
|
|
21
|
+
DUE: "DUE";
|
|
22
|
+
INITIAL: "INITIAL";
|
|
23
|
+
MANUAL_REFRESH: "MANUAL_REFRESH";
|
|
24
|
+
}>;
|
|
25
|
+
rootJobRef: z.ZodString;
|
|
26
|
+
previousJobRef: z.ZodNullable<z.ZodString>;
|
|
27
|
+
ordinal: z.ZodNumber;
|
|
28
|
+
requestedEpoch: z.ZodNumber;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
contentPlan: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
32
|
+
compiler: z.ZodEnum<{
|
|
33
|
+
CALLER_PLAN_V1: "CALLER_PLAN_V1";
|
|
34
|
+
BOUNDED_LANGUAGE_V1: "BOUNDED_LANGUAGE_V1";
|
|
35
|
+
}>;
|
|
36
|
+
extractor: z.ZodObject<{
|
|
37
|
+
id: z.ZodLiteral<"native-knowledge.web-content">;
|
|
38
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
body: z.ZodBoolean;
|
|
41
|
+
tables: z.ZodBoolean;
|
|
42
|
+
links: z.ZodBoolean;
|
|
43
|
+
recordSelector: z.ZodNullable<z.ZodString>;
|
|
44
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
selector: z.ZodString;
|
|
47
|
+
value: z.ZodDefault<z.ZodEnum<{
|
|
48
|
+
TEXT: "TEXT";
|
|
49
|
+
JSON: "JSON";
|
|
50
|
+
ATTRIBUTE: "ATTRIBUTE";
|
|
51
|
+
}>>;
|
|
52
|
+
attribute: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
53
|
+
datetime: "datetime";
|
|
54
|
+
value: "value";
|
|
55
|
+
title: "title";
|
|
56
|
+
href: "href";
|
|
57
|
+
alt: "alt";
|
|
58
|
+
content: "content";
|
|
59
|
+
src: "src";
|
|
60
|
+
}>>>;
|
|
61
|
+
type: z.ZodEnum<{
|
|
62
|
+
string: "string";
|
|
63
|
+
number: "number";
|
|
64
|
+
boolean: "boolean";
|
|
65
|
+
object: "object";
|
|
66
|
+
array: "array";
|
|
67
|
+
}>;
|
|
68
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
maxRecords: z.ZodDefault<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
contentRevision: z.ZodString;
|
|
73
|
+
retainedFrom: z.ZodNullable<z.ZodString>;
|
|
74
|
+
intent: z.ZodObject<{
|
|
75
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
76
|
+
requestedSpec: z.ZodObject<{
|
|
77
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
78
|
+
render: z.ZodDefault<z.ZodObject<{
|
|
79
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
80
|
+
HTTP_ONLY: "HTTP_ONLY";
|
|
81
|
+
AUTO: "AUTO";
|
|
82
|
+
ALWAYS: "ALWAYS";
|
|
83
|
+
}>>;
|
|
84
|
+
requiredSelector: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
minTextChars: z.ZodDefault<z.ZodNumber>;
|
|
86
|
+
resourceOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
87
|
+
interaction: z.ZodDefault<z.ZodObject<{
|
|
88
|
+
kind: z.ZodEnum<{
|
|
89
|
+
NONE: "NONE";
|
|
90
|
+
NEXT_PAGE: "NEXT_PAGE";
|
|
91
|
+
LOAD_MORE: "LOAD_MORE";
|
|
92
|
+
SCROLL: "SCROLL";
|
|
93
|
+
}>;
|
|
94
|
+
selector: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
endSelector: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
url: z.ZodString;
|
|
100
|
+
scope: z.ZodObject<{
|
|
101
|
+
mode: z.ZodEnum<{
|
|
102
|
+
FEED: "FEED";
|
|
103
|
+
SINGLE_PAGE: "SINGLE_PAGE";
|
|
104
|
+
URL_LIST: "URL_LIST";
|
|
105
|
+
SITE_SECTION: "SITE_SECTION";
|
|
106
|
+
SITEMAP: "SITEMAP";
|
|
107
|
+
}>;
|
|
108
|
+
allowedOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
109
|
+
includePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
110
|
+
excludePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
111
|
+
urls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
112
|
+
followPagination: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
+
followDetailLinks: z.ZodDefault<z.ZodBoolean>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
requirements: z.ZodObject<{
|
|
116
|
+
instruction: z.ZodString;
|
|
117
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
type: z.ZodEnum<{
|
|
120
|
+
string: "string";
|
|
121
|
+
number: "number";
|
|
122
|
+
boolean: "boolean";
|
|
123
|
+
object: "object";
|
|
124
|
+
array: "array";
|
|
125
|
+
}>;
|
|
126
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
127
|
+
}, z.core.$strict>>>;
|
|
128
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
129
|
+
RAW: "RAW";
|
|
130
|
+
DOCUMENT: "DOCUMENT";
|
|
131
|
+
RECORDS: "RECORDS";
|
|
132
|
+
}>>>;
|
|
133
|
+
attachments: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
134
|
+
PDF: "PDF";
|
|
135
|
+
IMAGE: "IMAGE";
|
|
136
|
+
AUDIO: "AUDIO";
|
|
137
|
+
VIDEO: "VIDEO";
|
|
138
|
+
OTHER: "OTHER";
|
|
139
|
+
}>>>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
limits: z.ZodDefault<z.ZodObject<{
|
|
142
|
+
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
143
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
144
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
145
|
+
maxTotalBytes: z.ZodDefault<z.ZodNumber>;
|
|
146
|
+
maxRuntimeMs: z.ZodDefault<z.ZodNumber>;
|
|
147
|
+
maxInteractions: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
150
|
+
refresh: z.ZodDefault<z.ZodObject<{
|
|
151
|
+
mode: z.ZodLiteral<"ONCE">;
|
|
152
|
+
}, z.core.$strict>>;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
spec: z.ZodObject<{
|
|
155
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
156
|
+
render: z.ZodDefault<z.ZodObject<{
|
|
157
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
158
|
+
HTTP_ONLY: "HTTP_ONLY";
|
|
159
|
+
AUTO: "AUTO";
|
|
160
|
+
ALWAYS: "ALWAYS";
|
|
161
|
+
}>>;
|
|
162
|
+
requiredSelector: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
minTextChars: z.ZodDefault<z.ZodNumber>;
|
|
164
|
+
resourceOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
165
|
+
interaction: z.ZodDefault<z.ZodObject<{
|
|
166
|
+
kind: z.ZodEnum<{
|
|
167
|
+
NONE: "NONE";
|
|
168
|
+
NEXT_PAGE: "NEXT_PAGE";
|
|
169
|
+
LOAD_MORE: "LOAD_MORE";
|
|
170
|
+
SCROLL: "SCROLL";
|
|
171
|
+
}>;
|
|
172
|
+
selector: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
173
|
+
endSelector: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
url: z.ZodString;
|
|
178
|
+
scope: z.ZodObject<{
|
|
179
|
+
mode: z.ZodEnum<{
|
|
180
|
+
FEED: "FEED";
|
|
181
|
+
SINGLE_PAGE: "SINGLE_PAGE";
|
|
182
|
+
URL_LIST: "URL_LIST";
|
|
183
|
+
SITE_SECTION: "SITE_SECTION";
|
|
184
|
+
SITEMAP: "SITEMAP";
|
|
185
|
+
}>;
|
|
186
|
+
allowedOrigins: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
|
+
includePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
188
|
+
excludePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
189
|
+
urls: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
190
|
+
followPagination: z.ZodDefault<z.ZodBoolean>;
|
|
191
|
+
followDetailLinks: z.ZodDefault<z.ZodBoolean>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
requirements: z.ZodObject<{
|
|
194
|
+
instruction: z.ZodString;
|
|
195
|
+
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
type: z.ZodEnum<{
|
|
198
|
+
string: "string";
|
|
199
|
+
number: "number";
|
|
200
|
+
boolean: "boolean";
|
|
201
|
+
object: "object";
|
|
202
|
+
array: "array";
|
|
203
|
+
}>;
|
|
204
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
205
|
+
}, z.core.$strict>>>;
|
|
206
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
207
|
+
RAW: "RAW";
|
|
208
|
+
DOCUMENT: "DOCUMENT";
|
|
209
|
+
RECORDS: "RECORDS";
|
|
210
|
+
}>>>;
|
|
211
|
+
attachments: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
212
|
+
PDF: "PDF";
|
|
213
|
+
IMAGE: "IMAGE";
|
|
214
|
+
AUDIO: "AUDIO";
|
|
215
|
+
VIDEO: "VIDEO";
|
|
216
|
+
OTHER: "OTHER";
|
|
217
|
+
}>>>;
|
|
218
|
+
}, z.core.$strict>;
|
|
219
|
+
limits: z.ZodDefault<z.ZodObject<{
|
|
220
|
+
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
221
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
222
|
+
maxResourceBytes: z.ZodDefault<z.ZodNumber>;
|
|
223
|
+
maxTotalBytes: z.ZodDefault<z.ZodNumber>;
|
|
224
|
+
maxRuntimeMs: z.ZodDefault<z.ZodNumber>;
|
|
225
|
+
maxInteractions: z.ZodDefault<z.ZodNumber>;
|
|
226
|
+
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
}, z.core.$strict>>;
|
|
228
|
+
refresh: z.ZodDefault<z.ZodObject<{
|
|
229
|
+
mode: z.ZodLiteral<"ONCE">;
|
|
230
|
+
}, z.core.$strict>>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
tenantId: z.ZodString;
|
|
233
|
+
requestId: z.ZodString;
|
|
234
|
+
jobRef: z.ZodString;
|
|
235
|
+
inputRevision: z.ZodString;
|
|
236
|
+
specRevision: z.ZodString;
|
|
237
|
+
actor: z.ZodObject<{
|
|
238
|
+
tenantId: z.ZodString;
|
|
239
|
+
userId: z.ZodString;
|
|
240
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
+
type: z.ZodLiteral<"HOST">;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
type: z.ZodLiteral<"OAUTH">;
|
|
246
|
+
authorityVersion: z.ZodLiteral<2>;
|
|
247
|
+
clientId: z.ZodString;
|
|
248
|
+
grantId: z.ZodString;
|
|
249
|
+
resource: z.ZodString;
|
|
250
|
+
}, z.core.$strict>], "type">;
|
|
251
|
+
submittedAt: z.ZodISODateTime;
|
|
252
|
+
}, z.core.$strict>;
|
|
253
|
+
policy: z.ZodObject<{
|
|
254
|
+
ref: z.ZodString;
|
|
255
|
+
revision: z.ZodString;
|
|
256
|
+
acquisition: z.ZodEnum<{
|
|
257
|
+
ALLOW: "ALLOW";
|
|
258
|
+
DENY: "DENY";
|
|
259
|
+
}>;
|
|
260
|
+
propagation: z.ZodEnum<{
|
|
261
|
+
TENANT_ONLY: "TENANT_ONLY";
|
|
262
|
+
SHARE_ALLOWED: "SHARE_ALLOWED";
|
|
263
|
+
PUBLIC_ALLOWED: "PUBLIC_ALLOWED";
|
|
264
|
+
}>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
export type TenantWebWorkflowJob = z.infer<typeof tenantWebWorkflowJobSchema>;
|
|
268
|
+
export declare function tenantWebExecutableContent(job: TenantWebWorkflowJob): TenantWebContentJob;
|
|
269
|
+
export declare const tenantWebLifecycleSchema: z.ZodObject<{
|
|
270
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
271
|
+
seq: z.ZodNumber;
|
|
272
|
+
epoch: z.ZodNumber;
|
|
273
|
+
state: z.ZodEnum<{
|
|
274
|
+
ACTIVE: "ACTIVE";
|
|
275
|
+
PAUSED: "PAUSED";
|
|
276
|
+
CANCELLED: "CANCELLED";
|
|
277
|
+
}>;
|
|
278
|
+
currentJobRef: z.ZodString;
|
|
279
|
+
cycleOrdinal: z.ZodNumber;
|
|
280
|
+
lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
281
|
+
updatedAt: z.ZodISODateTime;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
export type TenantWebLifecycle = z.infer<typeof tenantWebLifecycleSchema>;
|
|
284
|
+
export declare const tenantWebControlInputSchema: z.ZodObject<{
|
|
285
|
+
jobRef: z.ZodString;
|
|
286
|
+
requestId: z.ZodString;
|
|
287
|
+
expectedEpoch: z.ZodNumber;
|
|
288
|
+
action: z.ZodEnum<{
|
|
289
|
+
PAUSE: "PAUSE";
|
|
290
|
+
RESUME: "RESUME";
|
|
291
|
+
CANCEL: "CANCEL";
|
|
292
|
+
}>;
|
|
293
|
+
}, z.core.$strict>;
|
|
294
|
+
export declare const tenantWebControlOperationSchema: z.ZodObject<{
|
|
295
|
+
actor: z.ZodObject<{
|
|
296
|
+
tenantId: z.ZodString;
|
|
297
|
+
userId: z.ZodString;
|
|
298
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
299
|
+
}, z.core.$strict>;
|
|
300
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
301
|
+
type: z.ZodLiteral<"HOST">;
|
|
302
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
303
|
+
type: z.ZodLiteral<"OAUTH">;
|
|
304
|
+
authorityVersion: z.ZodLiteral<2>;
|
|
305
|
+
clientId: z.ZodString;
|
|
306
|
+
grantId: z.ZodString;
|
|
307
|
+
resource: z.ZodString;
|
|
308
|
+
}, z.core.$strict>], "type">;
|
|
309
|
+
jobRef: z.ZodString;
|
|
310
|
+
requestId: z.ZodString;
|
|
311
|
+
expectedEpoch: z.ZodNumber;
|
|
312
|
+
action: z.ZodEnum<{
|
|
313
|
+
PAUSE: "PAUSE";
|
|
314
|
+
RESUME: "RESUME";
|
|
315
|
+
CANCEL: "CANCEL";
|
|
316
|
+
}>;
|
|
317
|
+
}, z.core.$strict>;
|
|
318
|
+
export type TenantWebControlOperation = z.infer<typeof tenantWebControlOperationSchema>;
|
|
319
|
+
export declare const tenantWebLifecycleReceiptSchema: z.ZodObject<{
|
|
320
|
+
operation: z.ZodObject<{
|
|
321
|
+
actor: z.ZodObject<{
|
|
322
|
+
tenantId: z.ZodString;
|
|
323
|
+
userId: z.ZodString;
|
|
324
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"HOST">;
|
|
328
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
329
|
+
type: z.ZodLiteral<"OAUTH">;
|
|
330
|
+
authorityVersion: z.ZodLiteral<2>;
|
|
331
|
+
clientId: z.ZodString;
|
|
332
|
+
grantId: z.ZodString;
|
|
333
|
+
resource: z.ZodString;
|
|
334
|
+
}, z.core.$strict>], "type">;
|
|
335
|
+
jobRef: z.ZodString;
|
|
336
|
+
requestId: z.ZodString;
|
|
337
|
+
expectedEpoch: z.ZodNumber;
|
|
338
|
+
action: z.ZodEnum<{
|
|
339
|
+
PAUSE: "PAUSE";
|
|
340
|
+
RESUME: "RESUME";
|
|
341
|
+
CANCEL: "CANCEL";
|
|
342
|
+
}>;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
committed: z.ZodObject<{
|
|
345
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
346
|
+
seq: z.ZodNumber;
|
|
347
|
+
epoch: z.ZodNumber;
|
|
348
|
+
state: z.ZodEnum<{
|
|
349
|
+
ACTIVE: "ACTIVE";
|
|
350
|
+
PAUSED: "PAUSED";
|
|
351
|
+
CANCELLED: "CANCELLED";
|
|
352
|
+
}>;
|
|
353
|
+
currentJobRef: z.ZodString;
|
|
354
|
+
cycleOrdinal: z.ZodNumber;
|
|
355
|
+
lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
356
|
+
updatedAt: z.ZodISODateTime;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
}, z.core.$strict>;
|
|
359
|
+
export declare const tenantWebWorkflowStatusSchema: z.ZodObject<{
|
|
360
|
+
jobRef: z.ZodString;
|
|
361
|
+
requestId: z.ZodString;
|
|
362
|
+
rootJobRef: z.ZodString;
|
|
363
|
+
executionJobRef: z.ZodString;
|
|
364
|
+
state: z.ZodEnum<{
|
|
365
|
+
PARTIAL: "PARTIAL";
|
|
366
|
+
COMPLETE: "COMPLETE";
|
|
367
|
+
PAUSED: "PAUSED";
|
|
368
|
+
QUEUED: "QUEUED";
|
|
369
|
+
RUNNING: "RUNNING";
|
|
370
|
+
CANCELLED: "CANCELLED";
|
|
371
|
+
}>;
|
|
372
|
+
control: z.ZodObject<{
|
|
373
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
374
|
+
seq: z.ZodNumber;
|
|
375
|
+
epoch: z.ZodNumber;
|
|
376
|
+
state: z.ZodEnum<{
|
|
377
|
+
ACTIVE: "ACTIVE";
|
|
378
|
+
PAUSED: "PAUSED";
|
|
379
|
+
CANCELLED: "CANCELLED";
|
|
380
|
+
}>;
|
|
381
|
+
currentJobRef: z.ZodString;
|
|
382
|
+
cycleOrdinal: z.ZodNumber;
|
|
383
|
+
lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
384
|
+
updatedAt: z.ZodISODateTime;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
cycle: z.ZodObject<{
|
|
387
|
+
kind: z.ZodEnum<{
|
|
388
|
+
DUE: "DUE";
|
|
389
|
+
INITIAL: "INITIAL";
|
|
390
|
+
MANUAL_REFRESH: "MANUAL_REFRESH";
|
|
391
|
+
}>;
|
|
392
|
+
rootJobRef: z.ZodString;
|
|
393
|
+
previousJobRef: z.ZodNullable<z.ZodString>;
|
|
394
|
+
ordinal: z.ZodNumber;
|
|
395
|
+
requestedEpoch: z.ZodNumber;
|
|
396
|
+
}, z.core.$strict>;
|
|
397
|
+
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
398
|
+
mode: z.ZodLiteral<"ONCE">;
|
|
399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
400
|
+
mode: z.ZodLiteral<"PERIODIC">;
|
|
401
|
+
intervalSeconds: z.ZodNumber;
|
|
402
|
+
}, z.core.$strict>], "mode">;
|
|
403
|
+
nextDueAt: z.ZodNullable<z.ZodISODateTime>;
|
|
404
|
+
stages: z.ZodObject<{
|
|
405
|
+
intent: z.ZodLiteral<"PERSISTED">;
|
|
406
|
+
acquisition: z.ZodObject<{
|
|
407
|
+
state: z.ZodEnum<{
|
|
408
|
+
PARTIAL: "PARTIAL";
|
|
409
|
+
COMPLETE: "COMPLETE";
|
|
410
|
+
QUEUED: "QUEUED";
|
|
411
|
+
RUNNING: "RUNNING";
|
|
412
|
+
}>;
|
|
413
|
+
discovered: z.ZodNumber;
|
|
414
|
+
acquired: z.ZodNumber;
|
|
415
|
+
registered: z.ZodNumber;
|
|
416
|
+
pending: z.ZodNumber;
|
|
417
|
+
gaps: z.ZodArray<z.ZodString>;
|
|
418
|
+
}, z.core.$strict>;
|
|
419
|
+
content: z.ZodObject<{
|
|
420
|
+
state: z.ZodEnum<{
|
|
421
|
+
PENDING: "PENDING";
|
|
422
|
+
PARTIAL: "PARTIAL";
|
|
423
|
+
SATISFIED: "SATISFIED";
|
|
424
|
+
}>;
|
|
425
|
+
processed: z.ZodNumber;
|
|
426
|
+
registered: z.ZodNumber;
|
|
427
|
+
gaps: z.ZodArray<z.ZodString>;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
index: z.ZodLiteral<"NOT_PROVEN_QUERY_TENANT_INDEX_STATUS">;
|
|
430
|
+
readability: z.ZodLiteral<"NOT_PROVEN_UNTIL_ACTUAL_READ">;
|
|
431
|
+
review: z.ZodLiteral<"UNREVIEWED">;
|
|
432
|
+
}, z.core.$strict>;
|
|
433
|
+
budget: z.ZodObject<{
|
|
434
|
+
chargedBytes: z.ZodNumber;
|
|
435
|
+
chargedMs: z.ZodNumber;
|
|
436
|
+
conservativeReservation: z.ZodBoolean;
|
|
437
|
+
}, z.core.$strict>;
|
|
438
|
+
}, z.core.$strict>;
|
|
439
|
+
export declare function tenantWebNextDue(root: TenantWebWorkflowJob, head: TenantWebLifecycle, current: TenantWebWorkflowJob): string | null;
|
|
440
|
+
export declare const sameTenantWebWorkflow: (a: TenantWebWorkflowJob, b: TenantWebWorkflowJob) => boolean;
|
|
441
|
+
export declare const tenantWebLifecycleEventSchema: z.ZodObject<{
|
|
442
|
+
before: z.ZodObject<{
|
|
443
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
444
|
+
seq: z.ZodNumber;
|
|
445
|
+
epoch: z.ZodNumber;
|
|
446
|
+
state: z.ZodEnum<{
|
|
447
|
+
ACTIVE: "ACTIVE";
|
|
448
|
+
PAUSED: "PAUSED";
|
|
449
|
+
CANCELLED: "CANCELLED";
|
|
450
|
+
}>;
|
|
451
|
+
currentJobRef: z.ZodString;
|
|
452
|
+
cycleOrdinal: z.ZodNumber;
|
|
453
|
+
lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
454
|
+
updatedAt: z.ZodISODateTime;
|
|
455
|
+
}, z.core.$strict>;
|
|
456
|
+
after: z.ZodObject<{
|
|
457
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
458
|
+
seq: z.ZodNumber;
|
|
459
|
+
epoch: z.ZodNumber;
|
|
460
|
+
state: z.ZodEnum<{
|
|
461
|
+
ACTIVE: "ACTIVE";
|
|
462
|
+
PAUSED: "PAUSED";
|
|
463
|
+
CANCELLED: "CANCELLED";
|
|
464
|
+
}>;
|
|
465
|
+
currentJobRef: z.ZodString;
|
|
466
|
+
cycleOrdinal: z.ZodNumber;
|
|
467
|
+
lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
468
|
+
updatedAt: z.ZodISODateTime;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
471
|
+
actor: z.ZodObject<{
|
|
472
|
+
tenantId: z.ZodString;
|
|
473
|
+
userId: z.ZodString;
|
|
474
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
}, z.core.$strict>;
|
|
476
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
477
|
+
type: z.ZodLiteral<"HOST">;
|
|
478
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
479
|
+
type: z.ZodLiteral<"OAUTH">;
|
|
480
|
+
authorityVersion: z.ZodLiteral<2>;
|
|
481
|
+
clientId: z.ZodString;
|
|
482
|
+
grantId: z.ZodString;
|
|
483
|
+
resource: z.ZodString;
|
|
484
|
+
}, z.core.$strict>], "type">;
|
|
485
|
+
jobRef: z.ZodString;
|
|
486
|
+
requestId: z.ZodString;
|
|
487
|
+
expectedEpoch: z.ZodNumber;
|
|
488
|
+
action: z.ZodEnum<{
|
|
489
|
+
PAUSE: "PAUSE";
|
|
490
|
+
RESUME: "RESUME";
|
|
491
|
+
CANCEL: "CANCEL";
|
|
492
|
+
}>;
|
|
493
|
+
}, z.core.$strict>>;
|
|
494
|
+
}, z.core.$strict>;
|