@blitzreels/contracts 0.2.11 → 0.2.13
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/dist/audio-spend-quote.d.ts +42 -0
- package/dist/audio-spend-quote.d.ts.map +1 -0
- package/dist/audio-spend-quote.js +23 -0
- package/dist/audio-spend-quote.js.map +1 -0
- package/dist/carousel-creative-source.d.ts +50 -0
- package/dist/carousel-creative-source.d.ts.map +1 -0
- package/dist/carousel-creative-source.js +29 -0
- package/dist/carousel-creative-source.js.map +1 -0
- package/dist/carousel-document-present.d.ts +4 -0
- package/dist/carousel-document-present.d.ts.map +1 -1
- package/dist/carousel-document-present.js +3 -0
- package/dist/carousel-document-present.js.map +1 -1
- package/dist/carousel-recipe.d.ts +2 -1
- package/dist/carousel-recipe.d.ts.map +1 -1
- package/dist/carousel-recipe.js +9 -3
- package/dist/carousel-recipe.js.map +1 -1
- package/dist/carousel-template-catalog.d.ts +4 -0
- package/dist/carousel-template-catalog.d.ts.map +1 -1
- package/dist/carousel-template-catalog.js +7 -5
- package/dist/carousel-template-catalog.js.map +1 -1
- package/dist/carousels-contract.d.ts +349 -1
- package/dist/carousels-contract.d.ts.map +1 -1
- package/dist/carousels-contract.js +60 -2
- package/dist/carousels-contract.js.map +1 -1
- package/dist/content-batch-contract.d.ts +250 -0
- package/dist/content-batch-contract.d.ts.map +1 -0
- package/dist/content-batch-contract.js +85 -0
- package/dist/content-batch-contract.js.map +1 -0
- package/dist/content-generation-options.d.ts +31 -0
- package/dist/content-generation-options.d.ts.map +1 -0
- package/dist/content-generation-options.js +71 -0
- package/dist/content-generation-options.js.map +1 -0
- package/dist/content-review-contract.d.ts +38 -0
- package/dist/content-review-contract.d.ts.map +1 -0
- package/dist/content-review-contract.js +29 -0
- package/dist/content-review-contract.js.map +1 -0
- package/dist/creative-asset-contract.d.ts +26 -0
- package/dist/creative-asset-contract.d.ts.map +1 -0
- package/dist/creative-asset-contract.js +59 -0
- package/dist/creative-asset-contract.js.map +1 -0
- package/dist/creative-composition-contract.d.ts +4 -0
- package/dist/creative-composition-contract.d.ts.map +1 -0
- package/dist/creative-composition-contract.js +135 -0
- package/dist/creative-composition-contract.js.map +1 -0
- package/dist/creative-composition-duration.d.ts +30 -0
- package/dist/creative-composition-duration.d.ts.map +1 -0
- package/dist/creative-composition-duration.js +24 -0
- package/dist/creative-composition-duration.js.map +1 -0
- package/dist/creative-composition-edit.d.ts +8358 -0
- package/dist/creative-composition-edit.d.ts.map +1 -0
- package/dist/creative-composition-edit.js +212 -0
- package/dist/creative-composition-edit.js.map +1 -0
- package/dist/creative-composition-normalize.d.ts +12 -0
- package/dist/creative-composition-normalize.d.ts.map +1 -0
- package/dist/creative-composition-normalize.js +65 -0
- package/dist/creative-composition-normalize.js.map +1 -0
- package/dist/creative-composition-read.d.ts +9 -0
- package/dist/creative-composition-read.d.ts.map +1 -0
- package/dist/creative-composition-read.js +13 -0
- package/dist/creative-composition-read.js.map +1 -0
- package/dist/creative-composition-structure.d.ts +40 -0
- package/dist/creative-composition-structure.d.ts.map +1 -0
- package/dist/creative-composition-structure.js +113 -0
- package/dist/creative-composition-structure.js.map +1 -0
- package/dist/creative-composition-types.d.ts +334 -0
- package/dist/creative-composition-types.d.ts.map +1 -0
- package/dist/creative-composition-types.js +18 -0
- package/dist/creative-composition-types.js.map +1 -0
- package/dist/creative-controls-contract.d.ts +64 -0
- package/dist/creative-controls-contract.d.ts.map +1 -0
- package/dist/creative-controls-contract.js +87 -0
- package/dist/creative-controls-contract.js.map +1 -0
- package/dist/creative-element-contract.d.ts +4 -0
- package/dist/creative-element-contract.d.ts.map +1 -0
- package/dist/creative-element-contract.js +236 -0
- package/dist/creative-element-contract.js.map +1 -0
- package/dist/creative-font-contract.d.ts +22 -0
- package/dist/creative-font-contract.d.ts.map +1 -0
- package/dist/creative-font-contract.js +13 -0
- package/dist/creative-font-contract.js.map +1 -0
- package/dist/creative-learning-contract.d.ts +660 -0
- package/dist/creative-learning-contract.d.ts.map +1 -0
- package/dist/creative-learning-contract.js +110 -0
- package/dist/creative-learning-contract.js.map +1 -0
- package/dist/creative-map-contract.d.ts +166 -0
- package/dist/creative-map-contract.d.ts.map +1 -0
- package/dist/creative-map-contract.js +77 -0
- package/dist/creative-map-contract.js.map +1 -0
- package/dist/creative-source-contract.d.ts +328 -0
- package/dist/creative-source-contract.d.ts.map +1 -0
- package/dist/creative-source-contract.js +236 -0
- package/dist/creative-source-contract.js.map +1 -0
- package/dist/creative-source-edit-contract.d.ts +107 -0
- package/dist/creative-source-edit-contract.d.ts.map +1 -0
- package/dist/creative-source-edit-contract.js +73 -0
- package/dist/creative-source-edit-contract.js.map +1 -0
- package/dist/creative-spend.d.ts +145 -0
- package/dist/creative-spend.d.ts.map +1 -0
- package/dist/creative-spend.js +106 -0
- package/dist/creative-spend.js.map +1 -0
- package/dist/creative-style-contract.d.ts +2917 -0
- package/dist/creative-style-contract.d.ts.map +1 -0
- package/dist/creative-style-contract.js +174 -0
- package/dist/creative-style-contract.js.map +1 -0
- package/dist/customer-outcomes-contract.d.ts +157 -0
- package/dist/customer-outcomes-contract.d.ts.map +1 -0
- package/dist/customer-outcomes-contract.js +66 -0
- package/dist/customer-outcomes-contract.js.map +1 -0
- package/dist/editor-command-contract.d.ts +5633 -0
- package/dist/editor-command-contract.d.ts.map +1 -1
- package/dist/editor-command-contract.js +11 -0
- package/dist/editor-command-contract.js.map +1 -1
- package/dist/editor-document-contract.d.ts +12 -0
- package/dist/editor-document-contract.d.ts.map +1 -1
- package/dist/editor-document-contract.js +8 -0
- package/dist/editor-document-contract.js.map +1 -1
- package/dist/editor-snapshot-contract.d.ts +6 -0
- package/dist/editor-snapshot-contract.d.ts.map +1 -1
- package/dist/export-quote.d.ts +42 -0
- package/dist/export-quote.d.ts.map +1 -0
- package/dist/export-quote.js +16 -0
- package/dist/export-quote.js.map +1 -0
- package/dist/generation-image-size.d.ts +32 -0
- package/dist/generation-image-size.d.ts.map +1 -0
- package/dist/generation-image-size.js +77 -0
- package/dist/generation-image-size.js.map +1 -0
- package/dist/generation-recovery.d.ts +99 -0
- package/dist/generation-recovery.d.ts.map +1 -0
- package/dist/generation-recovery.js +104 -0
- package/dist/generation-recovery.js.map +1 -0
- package/dist/generation-reference-uri.d.ts +10 -0
- package/dist/generation-reference-uri.d.ts.map +1 -0
- package/dist/generation-reference-uri.js +10 -0
- package/dist/generation-reference-uri.js.map +1 -0
- package/dist/generation-resolution.d.ts.map +1 -1
- package/dist/generation-resolution.js +12 -8
- package/dist/generation-resolution.js.map +1 -1
- package/dist/generation-spend-quote.d.ts +55 -0
- package/dist/generation-spend-quote.d.ts.map +1 -0
- package/dist/generation-spend-quote.js +30 -0
- package/dist/generation-spend-quote.js.map +1 -0
- package/dist/hosted-draft-contract.d.ts +494 -0
- package/dist/hosted-draft-contract.d.ts.map +1 -0
- package/dist/hosted-draft-contract.js +104 -0
- package/dist/hosted-draft-contract.js.map +1 -0
- package/dist/hosted-work.d.ts +234 -0
- package/dist/hosted-work.d.ts.map +1 -0
- package/dist/hosted-work.js +221 -0
- package/dist/hosted-work.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -1
- package/dist/intake-quote.d.ts +63 -0
- package/dist/intake-quote.d.ts.map +1 -0
- package/dist/intake-quote.js +48 -0
- package/dist/intake-quote.js.map +1 -0
- package/dist/knowledge-contract.d.ts +539 -0
- package/dist/knowledge-contract.d.ts.map +1 -0
- package/dist/knowledge-contract.js +157 -0
- package/dist/knowledge-contract.js.map +1 -0
- package/dist/knowledge-research-contract.d.ts +875 -0
- package/dist/knowledge-research-contract.d.ts.map +1 -0
- package/dist/knowledge-research-contract.js +236 -0
- package/dist/knowledge-research-contract.js.map +1 -0
- package/dist/media-source-file.d.ts +28 -0
- package/dist/media-source-file.d.ts.map +1 -0
- package/dist/media-source-file.js +18 -0
- package/dist/media-source-file.js.map +1 -0
- package/dist/narrated-video-source.d.ts +175 -0
- package/dist/narrated-video-source.d.ts.map +1 -0
- package/dist/narrated-video-source.js +137 -0
- package/dist/narrated-video-source.js.map +1 -0
- package/dist/narrated-video-template.d.ts +2 -0
- package/dist/narrated-video-template.d.ts.map +1 -0
- package/dist/narrated-video-template.js +53 -0
- package/dist/narrated-video-template.js.map +1 -0
- package/dist/narration-sequence.d.ts +189 -0
- package/dist/narration-sequence.d.ts.map +1 -0
- package/dist/narration-sequence.js +157 -0
- package/dist/narration-sequence.js.map +1 -0
- package/dist/narration-take-contract.d.ts +282 -0
- package/dist/narration-take-contract.d.ts.map +1 -0
- package/dist/narration-take-contract.js +163 -0
- package/dist/narration-take-contract.js.map +1 -0
- package/dist/preview-quote.d.ts +39 -0
- package/dist/preview-quote.d.ts.map +1 -0
- package/dist/preview-quote.js +19 -0
- package/dist/preview-quote.js.map +1 -0
- package/dist/publishing-contract.d.ts +219 -0
- package/dist/publishing-contract.d.ts.map +1 -1
- package/dist/publishing-contract.js +51 -0
- package/dist/publishing-contract.js.map +1 -1
- package/dist/recipe-operation-contract.d.ts +524 -0
- package/dist/recipe-operation-contract.d.ts.map +1 -0
- package/dist/recipe-operation-contract.js +206 -0
- package/dist/recipe-operation-contract.js.map +1 -0
- package/dist/recipe-version-contract.d.ts +217 -0
- package/dist/recipe-version-contract.d.ts.map +1 -0
- package/dist/recipe-version-contract.js +154 -0
- package/dist/recipe-version-contract.js.map +1 -0
- package/dist/series-creation.d.ts +270 -0
- package/dist/series-creation.d.ts.map +1 -0
- package/dist/series-creation.js +110 -0
- package/dist/series-creation.js.map +1 -0
- package/dist/series-publishing.d.ts +226 -0
- package/dist/series-publishing.d.ts.map +1 -0
- package/dist/series-publishing.js +78 -0
- package/dist/series-publishing.js.map +1 -0
- package/dist/visuals-contract.d.ts +1 -0
- package/dist/visuals-contract.d.ts.map +1 -1
- package/dist/visuals-contract.js.map +1 -1
- package/dist/web-capture-contract.d.ts +268 -0
- package/dist/web-capture-contract.d.ts.map +1 -0
- package/dist/web-capture-contract.js +93 -0
- package/dist/web-capture-contract.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
export declare const knowledgeKindSchema: z.ZodEnum<{
|
|
3
|
+
brief: "brief";
|
|
4
|
+
correction: "correction";
|
|
5
|
+
reference: "reference";
|
|
6
|
+
research: "research";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const knowledgeSourceSchema: z.ZodObject<{
|
|
9
|
+
url: z.ZodURL;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const knowledgePageSchema: z.ZodObject<{
|
|
13
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
14
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const knowledgeListInputSchema: z.ZodObject<{
|
|
17
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
18
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
19
|
+
search: z.ZodDefault<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const knowledgeReadInputSchema: z.ZodObject<{
|
|
22
|
+
documentId: z.ZodUUID;
|
|
23
|
+
revision: z.ZodDefault<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const knowledgeHistoryInputSchema: z.ZodObject<{
|
|
26
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
27
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
28
|
+
documentId: z.ZodUUID;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const knowledgeContextInputSchema: z.ZodObject<{
|
|
31
|
+
seriesId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const contentDirectionScopeSchema: z.ZodObject<{
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
brand: "brand";
|
|
36
|
+
series: "series";
|
|
37
|
+
}>;
|
|
38
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const contentDirectionBriefSchema: z.ZodObject<{
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
44
|
+
url: z.ZodURL;
|
|
45
|
+
title: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
path: z.ZodString;
|
|
48
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
49
|
+
revision: z.ZodNumber;
|
|
50
|
+
markdown: z.ZodString;
|
|
51
|
+
contentHash: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const contentDirectionSnapshotSchema: z.ZodObject<{
|
|
54
|
+
capturedAt: z.ZodString;
|
|
55
|
+
scope: z.ZodObject<{
|
|
56
|
+
kind: z.ZodEnum<{
|
|
57
|
+
brand: "brand";
|
|
58
|
+
series: "series";
|
|
59
|
+
}>;
|
|
60
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
brand: z.ZodObject<{
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
66
|
+
url: z.ZodURL;
|
|
67
|
+
title: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
path: z.ZodString;
|
|
70
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
71
|
+
revision: z.ZodNumber;
|
|
72
|
+
markdown: z.ZodString;
|
|
73
|
+
contentHash: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
series: z.ZodNullable<z.ZodObject<{
|
|
76
|
+
title: z.ZodString;
|
|
77
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
78
|
+
url: z.ZodURL;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
path: z.ZodString;
|
|
82
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
83
|
+
revision: z.ZodNumber;
|
|
84
|
+
markdown: z.ZodString;
|
|
85
|
+
contentHash: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export declare const contentDirectionChangeSchema: z.ZodObject<{
|
|
89
|
+
scope: z.ZodObject<{
|
|
90
|
+
kind: z.ZodEnum<{
|
|
91
|
+
brand: "brand";
|
|
92
|
+
series: "series";
|
|
93
|
+
}>;
|
|
94
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
request: z.ZodString;
|
|
98
|
+
before: z.ZodObject<{
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
101
|
+
url: z.ZodURL;
|
|
102
|
+
title: z.ZodString;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
path: z.ZodString;
|
|
105
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
106
|
+
revision: z.ZodNumber;
|
|
107
|
+
markdown: z.ZodString;
|
|
108
|
+
contentHash: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
after: z.ZodObject<{
|
|
111
|
+
title: z.ZodString;
|
|
112
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
113
|
+
url: z.ZodURL;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
path: z.ZodString;
|
|
117
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
118
|
+
revision: z.ZodNumber;
|
|
119
|
+
markdown: z.ZodString;
|
|
120
|
+
contentHash: z.ZodString;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export declare const knowledgeApplySchema: z.ZodObject<{
|
|
124
|
+
path: z.ZodString;
|
|
125
|
+
title: z.ZodString;
|
|
126
|
+
kind: z.ZodEnum<{
|
|
127
|
+
brief: "brief";
|
|
128
|
+
correction: "correction";
|
|
129
|
+
reference: "reference";
|
|
130
|
+
research: "research";
|
|
131
|
+
}>;
|
|
132
|
+
markdown: z.ZodString;
|
|
133
|
+
expectedRevision: z.ZodNumber;
|
|
134
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
135
|
+
url: z.ZodURL;
|
|
136
|
+
title: z.ZodString;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
changeRequest: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export declare const knowledgeMutationSchema: z.ZodObject<{
|
|
141
|
+
path: z.ZodString;
|
|
142
|
+
title: z.ZodString;
|
|
143
|
+
kind: z.ZodEnum<{
|
|
144
|
+
brief: "brief";
|
|
145
|
+
correction: "correction";
|
|
146
|
+
reference: "reference";
|
|
147
|
+
research: "research";
|
|
148
|
+
}>;
|
|
149
|
+
markdown: z.ZodString;
|
|
150
|
+
expectedRevision: z.ZodNumber;
|
|
151
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
152
|
+
url: z.ZodURL;
|
|
153
|
+
title: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
changeRequest: z.ZodOptional<z.ZodString>;
|
|
156
|
+
idempotencyKey: z.ZodString;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export declare const knowledgeSummarySchema: z.ZodObject<{
|
|
159
|
+
id: z.ZodUUID;
|
|
160
|
+
path: z.ZodString;
|
|
161
|
+
title: z.ZodString;
|
|
162
|
+
kind: z.ZodEnum<{
|
|
163
|
+
brief: "brief";
|
|
164
|
+
correction: "correction";
|
|
165
|
+
reference: "reference";
|
|
166
|
+
research: "research";
|
|
167
|
+
}>;
|
|
168
|
+
revision: z.ZodNumber;
|
|
169
|
+
updatedAt: z.ZodString;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const knowledgeRevisionSchema: z.ZodObject<{
|
|
172
|
+
documentId: z.ZodUUID;
|
|
173
|
+
revision: z.ZodNumber;
|
|
174
|
+
title: z.ZodString;
|
|
175
|
+
kind: z.ZodEnum<{
|
|
176
|
+
brief: "brief";
|
|
177
|
+
correction: "correction";
|
|
178
|
+
reference: "reference";
|
|
179
|
+
research: "research";
|
|
180
|
+
}>;
|
|
181
|
+
markdown: z.ZodString;
|
|
182
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
183
|
+
url: z.ZodURL;
|
|
184
|
+
title: z.ZodString;
|
|
185
|
+
}, z.core.$strip>>;
|
|
186
|
+
authorUserId: z.ZodNullable<z.ZodString>;
|
|
187
|
+
origin: z.ZodEnum<{
|
|
188
|
+
agent: "agent";
|
|
189
|
+
legacy: "legacy";
|
|
190
|
+
seed: "seed";
|
|
191
|
+
web: "web";
|
|
192
|
+
}>;
|
|
193
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
194
|
+
contentHash: z.ZodString;
|
|
195
|
+
createdAt: z.ZodString;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
export declare const knowledgeRecordSchema: z.ZodObject<{
|
|
198
|
+
id: z.ZodUUID;
|
|
199
|
+
path: z.ZodString;
|
|
200
|
+
title: z.ZodString;
|
|
201
|
+
kind: z.ZodEnum<{
|
|
202
|
+
brief: "brief";
|
|
203
|
+
correction: "correction";
|
|
204
|
+
reference: "reference";
|
|
205
|
+
research: "research";
|
|
206
|
+
}>;
|
|
207
|
+
revision: z.ZodNumber;
|
|
208
|
+
updatedAt: z.ZodString;
|
|
209
|
+
content: z.ZodObject<{
|
|
210
|
+
documentId: z.ZodUUID;
|
|
211
|
+
revision: z.ZodNumber;
|
|
212
|
+
title: z.ZodString;
|
|
213
|
+
kind: z.ZodEnum<{
|
|
214
|
+
brief: "brief";
|
|
215
|
+
correction: "correction";
|
|
216
|
+
reference: "reference";
|
|
217
|
+
research: "research";
|
|
218
|
+
}>;
|
|
219
|
+
markdown: z.ZodString;
|
|
220
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
221
|
+
url: z.ZodURL;
|
|
222
|
+
title: z.ZodString;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
authorUserId: z.ZodNullable<z.ZodString>;
|
|
225
|
+
origin: z.ZodEnum<{
|
|
226
|
+
agent: "agent";
|
|
227
|
+
legacy: "legacy";
|
|
228
|
+
seed: "seed";
|
|
229
|
+
web: "web";
|
|
230
|
+
}>;
|
|
231
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
232
|
+
contentHash: z.ZodString;
|
|
233
|
+
createdAt: z.ZodString;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export declare const knowledgeBoundsSchema: z.ZodObject<{
|
|
237
|
+
limit: z.ZodNumber;
|
|
238
|
+
offset: z.ZodNumber;
|
|
239
|
+
total: z.ZodNumber;
|
|
240
|
+
returned: z.ZodNumber;
|
|
241
|
+
hasMore: z.ZodBoolean;
|
|
242
|
+
truncated: z.ZodBoolean;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
export declare const knowledgeListSchema: z.ZodObject<{
|
|
245
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
246
|
+
id: z.ZodUUID;
|
|
247
|
+
path: z.ZodString;
|
|
248
|
+
title: z.ZodString;
|
|
249
|
+
kind: z.ZodEnum<{
|
|
250
|
+
brief: "brief";
|
|
251
|
+
correction: "correction";
|
|
252
|
+
reference: "reference";
|
|
253
|
+
research: "research";
|
|
254
|
+
}>;
|
|
255
|
+
revision: z.ZodNumber;
|
|
256
|
+
updatedAt: z.ZodString;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
bounds: z.ZodObject<{
|
|
259
|
+
limit: z.ZodNumber;
|
|
260
|
+
offset: z.ZodNumber;
|
|
261
|
+
total: z.ZodNumber;
|
|
262
|
+
returned: z.ZodNumber;
|
|
263
|
+
hasMore: z.ZodBoolean;
|
|
264
|
+
truncated: z.ZodBoolean;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
canEdit: z.ZodBoolean;
|
|
267
|
+
canCorrect: z.ZodBoolean;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
export declare const knowledgeHistorySchema: z.ZodObject<{
|
|
270
|
+
revisions: z.ZodArray<z.ZodObject<{
|
|
271
|
+
documentId: z.ZodUUID;
|
|
272
|
+
revision: z.ZodNumber;
|
|
273
|
+
title: z.ZodString;
|
|
274
|
+
kind: z.ZodEnum<{
|
|
275
|
+
brief: "brief";
|
|
276
|
+
correction: "correction";
|
|
277
|
+
reference: "reference";
|
|
278
|
+
research: "research";
|
|
279
|
+
}>;
|
|
280
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
281
|
+
url: z.ZodURL;
|
|
282
|
+
title: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
authorUserId: z.ZodNullable<z.ZodString>;
|
|
285
|
+
origin: z.ZodEnum<{
|
|
286
|
+
agent: "agent";
|
|
287
|
+
legacy: "legacy";
|
|
288
|
+
seed: "seed";
|
|
289
|
+
web: "web";
|
|
290
|
+
}>;
|
|
291
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
292
|
+
contentHash: z.ZodString;
|
|
293
|
+
createdAt: z.ZodString;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
bounds: z.ZodObject<{
|
|
296
|
+
limit: z.ZodNumber;
|
|
297
|
+
offset: z.ZodNumber;
|
|
298
|
+
total: z.ZodNumber;
|
|
299
|
+
returned: z.ZodNumber;
|
|
300
|
+
hasMore: z.ZodBoolean;
|
|
301
|
+
truncated: z.ZodBoolean;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
export declare const knowledgeContextSchema: z.ZodObject<{
|
|
305
|
+
direction: z.ZodObject<{
|
|
306
|
+
capturedAt: z.ZodString;
|
|
307
|
+
scope: z.ZodObject<{
|
|
308
|
+
kind: z.ZodEnum<{
|
|
309
|
+
brand: "brand";
|
|
310
|
+
series: "series";
|
|
311
|
+
}>;
|
|
312
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
313
|
+
name: z.ZodString;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
brand: z.ZodObject<{
|
|
316
|
+
title: z.ZodString;
|
|
317
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
318
|
+
url: z.ZodURL;
|
|
319
|
+
title: z.ZodString;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
path: z.ZodString;
|
|
322
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
323
|
+
revision: z.ZodNumber;
|
|
324
|
+
markdown: z.ZodString;
|
|
325
|
+
contentHash: z.ZodString;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
series: z.ZodNullable<z.ZodObject<{
|
|
328
|
+
title: z.ZodString;
|
|
329
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
330
|
+
url: z.ZodURL;
|
|
331
|
+
title: z.ZodString;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
path: z.ZodString;
|
|
334
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
335
|
+
revision: z.ZodNumber;
|
|
336
|
+
markdown: z.ZodString;
|
|
337
|
+
contentHash: z.ZodString;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
precedence: z.ZodArray<z.ZodString>;
|
|
341
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
342
|
+
id: z.ZodUUID;
|
|
343
|
+
path: z.ZodString;
|
|
344
|
+
title: z.ZodString;
|
|
345
|
+
kind: z.ZodEnum<{
|
|
346
|
+
brief: "brief";
|
|
347
|
+
correction: "correction";
|
|
348
|
+
reference: "reference";
|
|
349
|
+
research: "research";
|
|
350
|
+
}>;
|
|
351
|
+
revision: z.ZodNumber;
|
|
352
|
+
updatedAt: z.ZodString;
|
|
353
|
+
content: z.ZodObject<{
|
|
354
|
+
documentId: z.ZodUUID;
|
|
355
|
+
revision: z.ZodNumber;
|
|
356
|
+
title: z.ZodString;
|
|
357
|
+
kind: z.ZodEnum<{
|
|
358
|
+
brief: "brief";
|
|
359
|
+
correction: "correction";
|
|
360
|
+
reference: "reference";
|
|
361
|
+
research: "research";
|
|
362
|
+
}>;
|
|
363
|
+
markdown: z.ZodString;
|
|
364
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
365
|
+
url: z.ZodURL;
|
|
366
|
+
title: z.ZodString;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
authorUserId: z.ZodNullable<z.ZodString>;
|
|
369
|
+
origin: z.ZodEnum<{
|
|
370
|
+
agent: "agent";
|
|
371
|
+
legacy: "legacy";
|
|
372
|
+
seed: "seed";
|
|
373
|
+
web: "web";
|
|
374
|
+
}>;
|
|
375
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
376
|
+
contentHash: z.ZodString;
|
|
377
|
+
createdAt: z.ZodString;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
bounds: z.ZodObject<{
|
|
381
|
+
limit: z.ZodNumber;
|
|
382
|
+
offset: z.ZodNumber;
|
|
383
|
+
total: z.ZodNumber;
|
|
384
|
+
returned: z.ZodNumber;
|
|
385
|
+
hasMore: z.ZodBoolean;
|
|
386
|
+
truncated: z.ZodBoolean;
|
|
387
|
+
}, z.core.$strip>;
|
|
388
|
+
characterLimit: z.ZodNumber;
|
|
389
|
+
truncatedDocumentIds: z.ZodArray<z.ZodString>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
export declare const knowledgeExportSchema: z.ZodObject<{
|
|
392
|
+
filename: z.ZodString;
|
|
393
|
+
markdown: z.ZodString;
|
|
394
|
+
revision: z.ZodNumber;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
export declare const knowledgeWriteResultSchema: z.ZodObject<{
|
|
397
|
+
directionChange: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
scope: z.ZodObject<{
|
|
399
|
+
kind: z.ZodEnum<{
|
|
400
|
+
brand: "brand";
|
|
401
|
+
series: "series";
|
|
402
|
+
}>;
|
|
403
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
404
|
+
name: z.ZodString;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
request: z.ZodString;
|
|
407
|
+
before: z.ZodObject<{
|
|
408
|
+
title: z.ZodString;
|
|
409
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
410
|
+
url: z.ZodURL;
|
|
411
|
+
title: z.ZodString;
|
|
412
|
+
}, z.core.$strip>>;
|
|
413
|
+
path: z.ZodString;
|
|
414
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
415
|
+
revision: z.ZodNumber;
|
|
416
|
+
markdown: z.ZodString;
|
|
417
|
+
contentHash: z.ZodString;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
after: z.ZodObject<{
|
|
420
|
+
title: z.ZodString;
|
|
421
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
422
|
+
url: z.ZodURL;
|
|
423
|
+
title: z.ZodString;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
path: z.ZodString;
|
|
426
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
427
|
+
revision: z.ZodNumber;
|
|
428
|
+
markdown: z.ZodString;
|
|
429
|
+
contentHash: z.ZodString;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
}, z.core.$strip>>;
|
|
432
|
+
document: z.ZodObject<{
|
|
433
|
+
id: z.ZodUUID;
|
|
434
|
+
path: z.ZodString;
|
|
435
|
+
title: z.ZodString;
|
|
436
|
+
kind: z.ZodEnum<{
|
|
437
|
+
brief: "brief";
|
|
438
|
+
correction: "correction";
|
|
439
|
+
reference: "reference";
|
|
440
|
+
research: "research";
|
|
441
|
+
}>;
|
|
442
|
+
revision: z.ZodNumber;
|
|
443
|
+
updatedAt: z.ZodString;
|
|
444
|
+
content: z.ZodObject<{
|
|
445
|
+
documentId: z.ZodUUID;
|
|
446
|
+
revision: z.ZodNumber;
|
|
447
|
+
title: z.ZodString;
|
|
448
|
+
kind: z.ZodEnum<{
|
|
449
|
+
brief: "brief";
|
|
450
|
+
correction: "correction";
|
|
451
|
+
reference: "reference";
|
|
452
|
+
research: "research";
|
|
453
|
+
}>;
|
|
454
|
+
markdown: z.ZodString;
|
|
455
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
456
|
+
url: z.ZodURL;
|
|
457
|
+
title: z.ZodString;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
authorUserId: z.ZodNullable<z.ZodString>;
|
|
460
|
+
origin: z.ZodEnum<{
|
|
461
|
+
agent: "agent";
|
|
462
|
+
legacy: "legacy";
|
|
463
|
+
seed: "seed";
|
|
464
|
+
web: "web";
|
|
465
|
+
}>;
|
|
466
|
+
sourceRef: z.ZodNullable<z.ZodString>;
|
|
467
|
+
contentHash: z.ZodString;
|
|
468
|
+
createdAt: z.ZodString;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
}, z.core.$strip>;
|
|
471
|
+
mutationReceipt: z.ZodObject<{
|
|
472
|
+
id: z.ZodString;
|
|
473
|
+
key: z.ZodString;
|
|
474
|
+
operation: z.ZodString;
|
|
475
|
+
status: z.ZodLiteral<"completed">;
|
|
476
|
+
replayed: z.ZodBoolean;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
export type KnowledgeApply = z.infer<typeof knowledgeApplySchema>;
|
|
480
|
+
export type KnowledgeRecord = z.infer<typeof knowledgeRecordSchema>;
|
|
481
|
+
export type KnowledgeList = z.infer<typeof knowledgeListSchema>;
|
|
482
|
+
export type KnowledgeHistory = z.infer<typeof knowledgeHistorySchema>;
|
|
483
|
+
export type KnowledgeContext = z.infer<typeof knowledgeContextSchema>;
|
|
484
|
+
export type KnowledgeWriteResult = z.infer<typeof knowledgeWriteResultSchema>;
|
|
485
|
+
export type KnowledgeSource = z.infer<typeof knowledgeSourceSchema>;
|
|
486
|
+
export type ContentDirectionSnapshot = z.infer<typeof contentDirectionSnapshotSchema>;
|
|
487
|
+
export type ContentDirectionBrief = z.infer<typeof contentDirectionBriefSchema>;
|
|
488
|
+
export type ContentDirectionChange = z.infer<typeof contentDirectionChangeSchema>;
|
|
489
|
+
export declare const contentDirectionRunStateSchema: z.ZodObject<{
|
|
490
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
491
|
+
capturedAt: z.ZodString;
|
|
492
|
+
scope: z.ZodObject<{
|
|
493
|
+
kind: z.ZodEnum<{
|
|
494
|
+
brand: "brand";
|
|
495
|
+
series: "series";
|
|
496
|
+
}>;
|
|
497
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
498
|
+
name: z.ZodString;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
brand: z.ZodObject<{
|
|
501
|
+
title: z.ZodString;
|
|
502
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
503
|
+
url: z.ZodURL;
|
|
504
|
+
title: z.ZodString;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
path: z.ZodString;
|
|
507
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
508
|
+
revision: z.ZodNumber;
|
|
509
|
+
markdown: z.ZodString;
|
|
510
|
+
contentHash: z.ZodString;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
series: z.ZodNullable<z.ZodObject<{
|
|
513
|
+
title: z.ZodString;
|
|
514
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
515
|
+
url: z.ZodURL;
|
|
516
|
+
title: z.ZodString;
|
|
517
|
+
}, z.core.$strip>>;
|
|
518
|
+
path: z.ZodString;
|
|
519
|
+
documentId: z.ZodNullable<z.ZodUUID>;
|
|
520
|
+
revision: z.ZodNumber;
|
|
521
|
+
markdown: z.ZodString;
|
|
522
|
+
contentHash: z.ZodString;
|
|
523
|
+
}, z.core.$strip>>;
|
|
524
|
+
}, z.core.$strip>>;
|
|
525
|
+
status: z.ZodEnum<{
|
|
526
|
+
changed: "changed";
|
|
527
|
+
current: "current";
|
|
528
|
+
unavailable: "unavailable";
|
|
529
|
+
unrecorded: "unrecorded";
|
|
530
|
+
}>;
|
|
531
|
+
current: z.ZodNullable<z.ZodObject<{
|
|
532
|
+
brandRevision: z.ZodNumber;
|
|
533
|
+
brandContentHash: z.ZodString;
|
|
534
|
+
seriesRevision: z.ZodNullable<z.ZodNumber>;
|
|
535
|
+
seriesContentHash: z.ZodNullable<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
}, z.core.$strip>;
|
|
538
|
+
export type ContentDirectionRunState = z.infer<typeof contentDirectionRunStateSchema>;
|
|
539
|
+
//# sourceMappingURL=knowledge-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-contract.d.ts","sourceRoot":"","sources":["../src/knowledge-contract.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
export const knowledgeKindSchema = z.enum([
|
|
3
|
+
"brief",
|
|
4
|
+
"research",
|
|
5
|
+
"correction",
|
|
6
|
+
"reference",
|
|
7
|
+
]);
|
|
8
|
+
export const knowledgeSourceSchema = z.object({
|
|
9
|
+
url: z
|
|
10
|
+
.url()
|
|
11
|
+
.max(2048)
|
|
12
|
+
.refine((value) => /^https?:\/\//.test(value)),
|
|
13
|
+
title: z.string().max(240),
|
|
14
|
+
});
|
|
15
|
+
export const knowledgePageSchema = z.object({
|
|
16
|
+
limit: z.coerce.number().int().min(1).max(50).default(20),
|
|
17
|
+
offset: z.coerce.number().int().nonnegative().default(0),
|
|
18
|
+
});
|
|
19
|
+
export const knowledgeListInputSchema = knowledgePageSchema.extend({
|
|
20
|
+
search: z.string().trim().max(120).default(""),
|
|
21
|
+
});
|
|
22
|
+
export const knowledgeReadInputSchema = z.object({
|
|
23
|
+
documentId: z.uuid(),
|
|
24
|
+
revision: z.coerce.number().int().positive().nullable().default(null),
|
|
25
|
+
});
|
|
26
|
+
export const knowledgeHistoryInputSchema = knowledgePageSchema.extend({
|
|
27
|
+
documentId: z.uuid(),
|
|
28
|
+
});
|
|
29
|
+
export const knowledgeContextInputSchema = z.object({
|
|
30
|
+
seriesId: z.uuid().nullable().default(null),
|
|
31
|
+
});
|
|
32
|
+
export const contentDirectionScopeSchema = z.object({
|
|
33
|
+
kind: z.enum(["brand", "series"]),
|
|
34
|
+
seriesId: z.uuid().nullable(),
|
|
35
|
+
name: z.string(),
|
|
36
|
+
});
|
|
37
|
+
export const contentDirectionBriefSchema = z.object({
|
|
38
|
+
title: z.string(),
|
|
39
|
+
sources: z.array(knowledgeSourceSchema),
|
|
40
|
+
path: z.string(),
|
|
41
|
+
documentId: z.uuid().nullable(),
|
|
42
|
+
revision: z.number().int().nonnegative(),
|
|
43
|
+
markdown: z.string(),
|
|
44
|
+
contentHash: z.string(),
|
|
45
|
+
});
|
|
46
|
+
export const contentDirectionSnapshotSchema = z.object({
|
|
47
|
+
capturedAt: z.string(),
|
|
48
|
+
scope: contentDirectionScopeSchema,
|
|
49
|
+
brand: contentDirectionBriefSchema,
|
|
50
|
+
series: contentDirectionBriefSchema.nullable(),
|
|
51
|
+
});
|
|
52
|
+
export const contentDirectionChangeSchema = z.object({
|
|
53
|
+
scope: contentDirectionScopeSchema,
|
|
54
|
+
request: z.string(),
|
|
55
|
+
before: contentDirectionBriefSchema,
|
|
56
|
+
after: contentDirectionBriefSchema,
|
|
57
|
+
});
|
|
58
|
+
export const knowledgeApplySchema = z.object({
|
|
59
|
+
path: z
|
|
60
|
+
.string()
|
|
61
|
+
.min(4)
|
|
62
|
+
.max(180)
|
|
63
|
+
.regex(/^[a-z0-9][a-z0-9_/-]*\.md$/)
|
|
64
|
+
.refine((value) => !value.includes("//")),
|
|
65
|
+
title: z.string().trim().min(1).max(160),
|
|
66
|
+
kind: knowledgeKindSchema,
|
|
67
|
+
markdown: z.string().max(65536),
|
|
68
|
+
expectedRevision: z.number().int().nonnegative(),
|
|
69
|
+
sources: z.array(knowledgeSourceSchema).max(20),
|
|
70
|
+
changeRequest: z.string().trim().min(1).max(4000).optional(),
|
|
71
|
+
});
|
|
72
|
+
export const knowledgeMutationSchema = knowledgeApplySchema.extend({
|
|
73
|
+
idempotencyKey: z
|
|
74
|
+
.string()
|
|
75
|
+
.min(8)
|
|
76
|
+
.max(200)
|
|
77
|
+
.regex(/^[A-Za-z0-9._:-]+$/),
|
|
78
|
+
});
|
|
79
|
+
export const knowledgeSummarySchema = z.object({
|
|
80
|
+
id: z.uuid(),
|
|
81
|
+
path: z.string(),
|
|
82
|
+
title: z.string(),
|
|
83
|
+
kind: knowledgeKindSchema,
|
|
84
|
+
revision: z.number().int().positive(),
|
|
85
|
+
updatedAt: z.string(),
|
|
86
|
+
});
|
|
87
|
+
export const knowledgeRevisionSchema = z.object({
|
|
88
|
+
documentId: z.uuid(),
|
|
89
|
+
revision: z.number().int().positive(),
|
|
90
|
+
title: z.string(),
|
|
91
|
+
kind: knowledgeKindSchema,
|
|
92
|
+
markdown: z.string(),
|
|
93
|
+
sources: z.array(knowledgeSourceSchema),
|
|
94
|
+
authorUserId: z.string().nullable(),
|
|
95
|
+
origin: z.enum(["web", "agent", "legacy", "seed"]),
|
|
96
|
+
sourceRef: z.string().nullable(),
|
|
97
|
+
contentHash: z.string(),
|
|
98
|
+
createdAt: z.string(),
|
|
99
|
+
});
|
|
100
|
+
export const knowledgeRecordSchema = knowledgeSummarySchema.extend({
|
|
101
|
+
content: knowledgeRevisionSchema,
|
|
102
|
+
});
|
|
103
|
+
export const knowledgeBoundsSchema = z.object({
|
|
104
|
+
limit: z.number(),
|
|
105
|
+
offset: z.number(),
|
|
106
|
+
total: z.number(),
|
|
107
|
+
returned: z.number(),
|
|
108
|
+
hasMore: z.boolean(),
|
|
109
|
+
truncated: z.boolean(),
|
|
110
|
+
});
|
|
111
|
+
export const knowledgeListSchema = z.object({
|
|
112
|
+
documents: z.array(knowledgeSummarySchema),
|
|
113
|
+
bounds: knowledgeBoundsSchema,
|
|
114
|
+
canEdit: z.boolean(),
|
|
115
|
+
canCorrect: z.boolean(),
|
|
116
|
+
});
|
|
117
|
+
export const knowledgeHistorySchema = z.object({
|
|
118
|
+
revisions: z.array(knowledgeRevisionSchema.omit({ markdown: true })),
|
|
119
|
+
bounds: knowledgeBoundsSchema,
|
|
120
|
+
});
|
|
121
|
+
export const knowledgeContextSchema = z.object({
|
|
122
|
+
direction: contentDirectionSnapshotSchema,
|
|
123
|
+
precedence: z.array(z.string()),
|
|
124
|
+
documents: z.array(knowledgeRecordSchema),
|
|
125
|
+
bounds: knowledgeBoundsSchema,
|
|
126
|
+
characterLimit: z.number(),
|
|
127
|
+
truncatedDocumentIds: z.array(z.string()),
|
|
128
|
+
});
|
|
129
|
+
export const knowledgeExportSchema = z.object({
|
|
130
|
+
filename: z.string(),
|
|
131
|
+
markdown: z.string(),
|
|
132
|
+
revision: z.number(),
|
|
133
|
+
});
|
|
134
|
+
export const knowledgeWriteResultSchema = z.object({
|
|
135
|
+
directionChange: contentDirectionChangeSchema.optional(),
|
|
136
|
+
document: knowledgeRecordSchema,
|
|
137
|
+
mutationReceipt: z.object({
|
|
138
|
+
id: z.string(),
|
|
139
|
+
key: z.string(),
|
|
140
|
+
operation: z.string(),
|
|
141
|
+
status: z.literal("completed"),
|
|
142
|
+
replayed: z.boolean(),
|
|
143
|
+
}),
|
|
144
|
+
});
|
|
145
|
+
export const contentDirectionRunStateSchema = z.object({
|
|
146
|
+
snapshot: contentDirectionSnapshotSchema.nullable(),
|
|
147
|
+
status: z.enum(["current", "changed", "unavailable", "unrecorded"]),
|
|
148
|
+
current: z
|
|
149
|
+
.object({
|
|
150
|
+
brandRevision: z.number().int().nonnegative(),
|
|
151
|
+
brandContentHash: z.string(),
|
|
152
|
+
seriesRevision: z.number().int().nonnegative().nullable(),
|
|
153
|
+
seriesContentHash: z.string().nullable(),
|
|
154
|
+
})
|
|
155
|
+
.nullable(),
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=knowledge-contract.js.map
|