@sixb/server 0.1.20 → 0.1.22

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.
Files changed (179) hide show
  1. package/dist/artifacts/frame.d.ts +18 -0
  2. package/dist/artifacts/frame.d.ts.map +1 -0
  3. package/dist/auth/browser-origin.d.ts +10 -1
  4. package/dist/auth/browser-origin.d.ts.map +1 -1
  5. package/dist/auth/experience.d.ts +1 -0
  6. package/dist/auth/experience.d.ts.map +1 -1
  7. package/dist/auth/public-routes.d.ts.map +1 -1
  8. package/dist/auth/responses.d.ts +1 -1
  9. package/dist/auth/responses.d.ts.map +1 -1
  10. package/dist/auth/scope.d.ts +19 -3
  11. package/dist/auth/scope.d.ts.map +1 -1
  12. package/dist/files/content.d.ts +2 -3
  13. package/dist/files/content.d.ts.map +1 -1
  14. package/dist/index.js +10636 -7071
  15. package/dist/index.js.map +56 -38
  16. package/dist/models/display.d.ts +27 -0
  17. package/dist/models/display.d.ts.map +1 -1
  18. package/dist/openapi/components.d.ts +14 -0
  19. package/dist/openapi/components.d.ts.map +1 -0
  20. package/dist/openapi/tags.d.ts +22 -2
  21. package/dist/openapi/tags.d.ts.map +1 -1
  22. package/dist/registerRoutes.d.ts +3 -0
  23. package/dist/registerRoutes.d.ts.map +1 -1
  24. package/dist/routes/actions.d.ts +5 -5
  25. package/dist/routes/activity.d.ts +35 -0
  26. package/dist/routes/activity.d.ts.map +1 -0
  27. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  28. package/dist/routes/agent-approval-gate.d.ts +27 -0
  29. package/dist/routes/agent-approval-gate.d.ts.map +1 -0
  30. package/dist/routes/agent-approvals.d.ts +599 -0
  31. package/dist/routes/agent-approvals.d.ts.map +1 -0
  32. package/dist/routes/agent-children.d.ts +318 -0
  33. package/dist/routes/agent-children.d.ts.map +1 -0
  34. package/dist/routes/agent-memory.d.ts +267 -0
  35. package/dist/routes/agent-memory.d.ts.map +1 -0
  36. package/dist/routes/agents.d.ts +1008 -98
  37. package/dist/routes/agents.d.ts.map +1 -1
  38. package/dist/routes/ai-accounting.d.ts.map +1 -1
  39. package/dist/routes/artifact-frames.d.ts +98 -0
  40. package/dist/routes/artifact-frames.d.ts.map +1 -0
  41. package/dist/routes/artifacts.d.ts +1508 -0
  42. package/dist/routes/artifacts.d.ts.map +1 -0
  43. package/dist/routes/auth.d.ts +117 -11
  44. package/dist/routes/auth.d.ts.map +1 -1
  45. package/dist/routes/connector-connection-runs.d.ts +84 -84
  46. package/dist/routes/connector-connections.d.ts +2 -2
  47. package/dist/routes/connectors.d.ts +2 -2
  48. package/dist/routes/datasets.d.ts +27 -27
  49. package/dist/routes/events.d.ts +5 -5
  50. package/dist/routes/files.d.ts +14 -14
  51. package/dist/routes/files.d.ts.map +1 -1
  52. package/dist/routes/links.d.ts +2 -2
  53. package/dist/routes/logs.d.ts +5 -5
  54. package/dist/routes/model-calls.d.ts +155 -0
  55. package/dist/routes/model-calls.d.ts.map +1 -0
  56. package/dist/routes/model-generations.d.ts +400 -0
  57. package/dist/routes/model-generations.d.ts.map +1 -0
  58. package/dist/routes/models.d.ts +434 -1
  59. package/dist/routes/models.d.ts.map +1 -1
  60. package/dist/routes/objects.d.ts +71 -40
  61. package/dist/routes/objects.d.ts.map +1 -1
  62. package/dist/routes/observed-agent-threads.d.ts +682 -0
  63. package/dist/routes/observed-agent-threads.d.ts.map +1 -0
  64. package/dist/routes/ontology.d.ts +66 -62
  65. package/dist/routes/ontology.d.ts.map +1 -1
  66. package/dist/routes/pipelines.d.ts +53 -53
  67. package/dist/routes/projections.d.ts +63 -63
  68. package/dist/routes/rules.d.ts +2 -2
  69. package/dist/routes/share-grants.d.ts +4 -4
  70. package/dist/routes/syncs.d.ts +18 -18
  71. package/dist/routes/users.d.ts +117 -0
  72. package/dist/routes/users.d.ts.map +1 -0
  73. package/dist/routes/webhook-runs.d.ts +1 -1
  74. package/dist/routes/workflows.d.ts +142 -76
  75. package/dist/routes/workflows.d.ts.map +1 -1
  76. package/dist/routes/ws/agents.d.ts +7 -2
  77. package/dist/routes/ws/agents.d.ts.map +1 -1
  78. package/dist/routes/ws/events.d.ts +6 -6
  79. package/dist/routes/ws/events.d.ts.map +1 -1
  80. package/dist/routes/ws/logs.d.ts +14 -14
  81. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  82. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  83. package/dist/schemas/actions.d.ts +15 -15
  84. package/dist/schemas/activity.d.ts +1298 -0
  85. package/dist/schemas/activity.d.ts.map +1 -0
  86. package/dist/schemas/agent-approvals.d.ts +1091 -0
  87. package/dist/schemas/agent-approvals.d.ts.map +1 -0
  88. package/dist/schemas/agent-memory.d.ts +250 -0
  89. package/dist/schemas/agent-memory.d.ts.map +1 -0
  90. package/dist/schemas/agents.d.ts +5485 -460
  91. package/dist/schemas/agents.d.ts.map +1 -1
  92. package/dist/schemas/ai-accounting.d.ts +1315 -436
  93. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  94. package/dist/schemas/ai-limits.d.ts +36 -36
  95. package/dist/schemas/ai-usage.d.ts +12 -0
  96. package/dist/schemas/ai-usage.d.ts.map +1 -1
  97. package/dist/schemas/artifacts.d.ts +1857 -0
  98. package/dist/schemas/artifacts.d.ts.map +1 -0
  99. package/dist/schemas/auth.d.ts +125 -52
  100. package/dist/schemas/auth.d.ts.map +1 -1
  101. package/dist/schemas/connectors.d.ts +42 -42
  102. package/dist/schemas/datasets.d.ts +108 -108
  103. package/dist/schemas/event-payloads.d.ts +6 -6
  104. package/dist/schemas/events.d.ts +32 -32
  105. package/dist/schemas/events.d.ts.map +1 -1
  106. package/dist/schemas/files.d.ts +24 -24
  107. package/dist/schemas/links.d.ts +2 -2
  108. package/dist/schemas/logs.d.ts +32 -32
  109. package/dist/schemas/models.d.ts +8889 -10
  110. package/dist/schemas/models.d.ts.map +1 -1
  111. package/dist/schemas/objects.d.ts +48 -12
  112. package/dist/schemas/objects.d.ts.map +1 -1
  113. package/dist/schemas/ontology.d.ts +127 -104
  114. package/dist/schemas/ontology.d.ts.map +1 -1
  115. package/dist/schemas/pipelines.d.ts +166 -166
  116. package/dist/schemas/projections.d.ts +346 -346
  117. package/dist/schemas/rules.d.ts +4 -4
  118. package/dist/schemas/share-grants.d.ts +14 -14
  119. package/dist/schemas/syncs.d.ts +40 -40
  120. package/dist/schemas/users.d.ts +72 -0
  121. package/dist/schemas/users.d.ts.map +1 -0
  122. package/dist/schemas/webhook-runs.d.ts +6 -6
  123. package/dist/schemas/workflows.d.ts +769 -254
  124. package/dist/schemas/workflows.d.ts.map +1 -1
  125. package/dist/server.d.ts +1 -0
  126. package/dist/server.d.ts.map +1 -1
  127. package/dist/utils/http.d.ts.map +1 -1
  128. package/package.json +7 -7
  129. package/src/artifacts/frame.ts +51 -0
  130. package/src/auth/browser-origin.ts +20 -5
  131. package/src/auth/experience.ts +1 -1
  132. package/src/auth/guard.ts +2 -2
  133. package/src/auth/public-routes.ts +16 -0
  134. package/src/auth/responses.ts +7 -6
  135. package/src/auth/scope.ts +32 -3
  136. package/src/files/content.ts +9 -13
  137. package/src/models/display.ts +61 -16
  138. package/src/openapi/components.ts +54 -0
  139. package/src/openapi/tags.ts +20 -0
  140. package/src/registerRoutes.ts +23 -0
  141. package/src/routes/activity.ts +327 -0
  142. package/src/routes/agent-api-gateway.ts +115 -91
  143. package/src/routes/agent-approval-gate.ts +213 -0
  144. package/src/routes/agent-approvals.ts +299 -0
  145. package/src/routes/agent-children.ts +209 -0
  146. package/src/routes/agent-memory.ts +210 -0
  147. package/src/routes/agents.ts +364 -143
  148. package/src/routes/ai-accounting.ts +4 -0
  149. package/src/routes/artifact-frames.ts +144 -0
  150. package/src/routes/artifacts.ts +717 -0
  151. package/src/routes/auth.ts +306 -13
  152. package/src/routes/file-downloads.ts +1 -3
  153. package/src/routes/files.ts +6 -7
  154. package/src/routes/model-calls.ts +120 -0
  155. package/src/routes/model-generations.ts +245 -0
  156. package/src/routes/models.ts +116 -9
  157. package/src/routes/objects.ts +55 -61
  158. package/src/routes/observed-agent-threads.ts +253 -0
  159. package/src/routes/ontology.ts +1 -0
  160. package/src/routes/users.ts +73 -0
  161. package/src/routes/workflows.ts +6 -9
  162. package/src/routes/ws/agents.ts +10 -5
  163. package/src/routes/ws/events.ts +3 -2
  164. package/src/routes/ws/subscription-hub.ts +53 -20
  165. package/src/schemas/activity.ts +287 -0
  166. package/src/schemas/agent-approvals.ts +129 -0
  167. package/src/schemas/agent-memory.ts +96 -0
  168. package/src/schemas/agents.ts +240 -2
  169. package/src/schemas/ai-accounting.ts +40 -4
  170. package/src/schemas/ai-usage.ts +10 -0
  171. package/src/schemas/artifacts.ts +246 -0
  172. package/src/schemas/auth.ts +25 -0
  173. package/src/schemas/models.ts +197 -1
  174. package/src/schemas/objects.ts +181 -0
  175. package/src/schemas/ontology.ts +1 -0
  176. package/src/schemas/users.ts +24 -0
  177. package/src/schemas/workflows.ts +2 -0
  178. package/src/server.ts +34 -19
  179. package/src/utils/http.ts +2 -0
@@ -0,0 +1,1857 @@
1
+ import { z } from "zod";
2
+ export declare const ArtifactVersionSchema: z.ZodObject<{
3
+ artifactId: z.ZodString;
4
+ version: z.ZodNumber;
5
+ title: z.ZodString;
6
+ entry: z.ZodString;
7
+ files: z.ZodArray<z.ZodObject<{
8
+ path: z.ZodString;
9
+ file: z.ZodObject<{
10
+ blobId: z.ZodString;
11
+ digest: z.ZodString;
12
+ sizeBytes: z.ZodNumber;
13
+ fileName: z.ZodOptional<z.ZodString>;
14
+ mediaType: z.ZodOptional<z.ZodString>;
15
+ logicalPath: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ blobId: string;
18
+ digest: string;
19
+ sizeBytes: number;
20
+ fileName?: string | undefined;
21
+ mediaType?: string | undefined;
22
+ logicalPath?: string | undefined;
23
+ }, {
24
+ blobId: string;
25
+ digest: string;
26
+ sizeBytes: number;
27
+ fileName?: string | undefined;
28
+ mediaType?: string | undefined;
29
+ logicalPath?: string | undefined;
30
+ }>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ path: string;
33
+ file: {
34
+ blobId: string;
35
+ digest: string;
36
+ sizeBytes: number;
37
+ fileName?: string | undefined;
38
+ mediaType?: string | undefined;
39
+ logicalPath?: string | undefined;
40
+ };
41
+ }, {
42
+ path: string;
43
+ file: {
44
+ blobId: string;
45
+ digest: string;
46
+ sizeBytes: number;
47
+ fileName?: string | undefined;
48
+ mediaType?: string | undefined;
49
+ logicalPath?: string | undefined;
50
+ };
51
+ }>, "many">;
52
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
53
+ kind: z.ZodLiteral<"document">;
54
+ headings: z.ZodArray<z.ZodObject<{
55
+ depth: z.ZodNumber;
56
+ text: z.ZodString;
57
+ slug: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ text: string;
60
+ depth: number;
61
+ slug: string;
62
+ }, {
63
+ text: string;
64
+ depth: number;
65
+ slug: string;
66
+ }>, "many">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ kind: "document";
69
+ headings: {
70
+ text: string;
71
+ depth: number;
72
+ slug: string;
73
+ }[];
74
+ }, {
75
+ kind: "document";
76
+ headings: {
77
+ text: string;
78
+ depth: number;
79
+ slug: string;
80
+ }[];
81
+ }>, z.ZodObject<{
82
+ kind: z.ZodLiteral<"sheet">;
83
+ sheets: z.ZodArray<z.ZodObject<{
84
+ name: z.ZodString;
85
+ rows: z.ZodNumber;
86
+ columns: z.ZodArray<z.ZodString, "many">;
87
+ query: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ name: string;
90
+ rows: number;
91
+ columns: string[];
92
+ query?: string | undefined;
93
+ }, {
94
+ name: string;
95
+ rows: number;
96
+ columns: string[];
97
+ query?: string | undefined;
98
+ }>, "many">;
99
+ charts: z.ZodArray<z.ZodString, "many">;
100
+ }, "strip", z.ZodTypeAny, {
101
+ kind: "sheet";
102
+ sheets: {
103
+ name: string;
104
+ rows: number;
105
+ columns: string[];
106
+ query?: string | undefined;
107
+ }[];
108
+ charts: string[];
109
+ }, {
110
+ kind: "sheet";
111
+ sheets: {
112
+ name: string;
113
+ rows: number;
114
+ columns: string[];
115
+ query?: string | undefined;
116
+ }[];
117
+ charts: string[];
118
+ }>, z.ZodObject<{
119
+ kind: z.ZodLiteral<"slides">;
120
+ slides: z.ZodArray<z.ZodObject<{
121
+ title: z.ZodOptional<z.ZodString>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ title?: string | undefined;
124
+ }, {
125
+ title?: string | undefined;
126
+ }>, "many">;
127
+ }, "strip", z.ZodTypeAny, {
128
+ kind: "slides";
129
+ slides: {
130
+ title?: string | undefined;
131
+ }[];
132
+ }, {
133
+ kind: "slides";
134
+ slides: {
135
+ title?: string | undefined;
136
+ }[];
137
+ }>, z.ZodObject<{
138
+ kind: z.ZodLiteral<"page">;
139
+ title: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ kind: "page";
142
+ title?: string | undefined;
143
+ }, {
144
+ kind: "page";
145
+ title?: string | undefined;
146
+ }>, z.ZodObject<{
147
+ kind: z.ZodLiteral<"canvas">;
148
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
149
+ id: z.ZodString;
150
+ type: z.ZodLiteral<"board">;
151
+ title: z.ZodOptional<z.ZodString>;
152
+ file: z.ZodString;
153
+ w: z.ZodNumber;
154
+ h: z.ZodNumber;
155
+ }, "strip", z.ZodTypeAny, {
156
+ id: string;
157
+ type: "board";
158
+ file: string;
159
+ w: number;
160
+ h: number;
161
+ title?: string | undefined;
162
+ }, {
163
+ id: string;
164
+ type: "board";
165
+ file: string;
166
+ w: number;
167
+ h: number;
168
+ title?: string | undefined;
169
+ }>, z.ZodObject<{
170
+ id: z.ZodString;
171
+ type: z.ZodLiteral<"section">;
172
+ title: z.ZodOptional<z.ZodString>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ id: string;
175
+ type: "section";
176
+ title?: string | undefined;
177
+ }, {
178
+ id: string;
179
+ type: "section";
180
+ title?: string | undefined;
181
+ }>]>, "many">;
182
+ }, "strip", z.ZodTypeAny, {
183
+ kind: "canvas";
184
+ items: ({
185
+ id: string;
186
+ type: "board";
187
+ file: string;
188
+ w: number;
189
+ h: number;
190
+ title?: string | undefined;
191
+ } | {
192
+ id: string;
193
+ type: "section";
194
+ title?: string | undefined;
195
+ })[];
196
+ }, {
197
+ kind: "canvas";
198
+ items: ({
199
+ id: string;
200
+ type: "board";
201
+ file: string;
202
+ w: number;
203
+ h: number;
204
+ title?: string | undefined;
205
+ } | {
206
+ id: string;
207
+ type: "section";
208
+ title?: string | undefined;
209
+ })[];
210
+ }>, z.ZodObject<{
211
+ kind: z.ZodLiteral<"file">;
212
+ mediaType: z.ZodString;
213
+ }, "strip", z.ZodTypeAny, {
214
+ kind: "file";
215
+ mediaType: string;
216
+ }, {
217
+ kind: "file";
218
+ mediaType: string;
219
+ }>]>;
220
+ references: z.ZodArray<z.ZodObject<{
221
+ address: z.ZodString;
222
+ as: z.ZodEnum<["embed", "link"]>;
223
+ at: z.ZodString;
224
+ resolvedVersion: z.ZodNumber;
225
+ }, "strip", z.ZodTypeAny, {
226
+ at: string;
227
+ address: string;
228
+ as: "link" | "embed";
229
+ resolvedVersion: number;
230
+ }, {
231
+ at: string;
232
+ address: string;
233
+ as: "link" | "embed";
234
+ resolvedVersion: number;
235
+ }>, "many">;
236
+ author: z.ZodObject<{
237
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
238
+ id: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ id: string;
241
+ type: "user" | "serviceAccount" | "system";
242
+ }, {
243
+ id: string;
244
+ type: "user" | "serviceAccount" | "system";
245
+ }>;
246
+ origin: z.ZodOptional<z.ZodObject<{
247
+ threadId: z.ZodString;
248
+ runId: z.ZodString;
249
+ }, "strip", z.ZodTypeAny, {
250
+ runId: string;
251
+ threadId: string;
252
+ }, {
253
+ runId: string;
254
+ threadId: string;
255
+ }>>;
256
+ createdAt: z.ZodString;
257
+ }, "strip", z.ZodTypeAny, {
258
+ title: string;
259
+ version: number;
260
+ createdAt: string;
261
+ files: {
262
+ path: string;
263
+ file: {
264
+ blobId: string;
265
+ digest: string;
266
+ sizeBytes: number;
267
+ fileName?: string | undefined;
268
+ mediaType?: string | undefined;
269
+ logicalPath?: string | undefined;
270
+ };
271
+ }[];
272
+ author: {
273
+ id: string;
274
+ type: "user" | "serviceAccount" | "system";
275
+ };
276
+ artifactId: string;
277
+ entry: string;
278
+ outline: {
279
+ kind: "document";
280
+ headings: {
281
+ text: string;
282
+ depth: number;
283
+ slug: string;
284
+ }[];
285
+ } | {
286
+ kind: "sheet";
287
+ sheets: {
288
+ name: string;
289
+ rows: number;
290
+ columns: string[];
291
+ query?: string | undefined;
292
+ }[];
293
+ charts: string[];
294
+ } | {
295
+ kind: "slides";
296
+ slides: {
297
+ title?: string | undefined;
298
+ }[];
299
+ } | {
300
+ kind: "page";
301
+ title?: string | undefined;
302
+ } | {
303
+ kind: "canvas";
304
+ items: ({
305
+ id: string;
306
+ type: "board";
307
+ file: string;
308
+ w: number;
309
+ h: number;
310
+ title?: string | undefined;
311
+ } | {
312
+ id: string;
313
+ type: "section";
314
+ title?: string | undefined;
315
+ })[];
316
+ } | {
317
+ kind: "file";
318
+ mediaType: string;
319
+ };
320
+ references: {
321
+ at: string;
322
+ address: string;
323
+ as: "link" | "embed";
324
+ resolvedVersion: number;
325
+ }[];
326
+ origin?: {
327
+ runId: string;
328
+ threadId: string;
329
+ } | undefined;
330
+ }, {
331
+ title: string;
332
+ version: number;
333
+ createdAt: string;
334
+ files: {
335
+ path: string;
336
+ file: {
337
+ blobId: string;
338
+ digest: string;
339
+ sizeBytes: number;
340
+ fileName?: string | undefined;
341
+ mediaType?: string | undefined;
342
+ logicalPath?: string | undefined;
343
+ };
344
+ }[];
345
+ author: {
346
+ id: string;
347
+ type: "user" | "serviceAccount" | "system";
348
+ };
349
+ artifactId: string;
350
+ entry: string;
351
+ outline: {
352
+ kind: "document";
353
+ headings: {
354
+ text: string;
355
+ depth: number;
356
+ slug: string;
357
+ }[];
358
+ } | {
359
+ kind: "sheet";
360
+ sheets: {
361
+ name: string;
362
+ rows: number;
363
+ columns: string[];
364
+ query?: string | undefined;
365
+ }[];
366
+ charts: string[];
367
+ } | {
368
+ kind: "slides";
369
+ slides: {
370
+ title?: string | undefined;
371
+ }[];
372
+ } | {
373
+ kind: "page";
374
+ title?: string | undefined;
375
+ } | {
376
+ kind: "canvas";
377
+ items: ({
378
+ id: string;
379
+ type: "board";
380
+ file: string;
381
+ w: number;
382
+ h: number;
383
+ title?: string | undefined;
384
+ } | {
385
+ id: string;
386
+ type: "section";
387
+ title?: string | undefined;
388
+ })[];
389
+ } | {
390
+ kind: "file";
391
+ mediaType: string;
392
+ };
393
+ references: {
394
+ at: string;
395
+ address: string;
396
+ as: "link" | "embed";
397
+ resolvedVersion: number;
398
+ }[];
399
+ origin?: {
400
+ runId: string;
401
+ threadId: string;
402
+ } | undefined;
403
+ }>;
404
+ export declare const ArtifactParamsSchema: z.ZodObject<{
405
+ artifactId: z.ZodString;
406
+ }, "strip", z.ZodTypeAny, {
407
+ artifactId: string;
408
+ }, {
409
+ artifactId: string;
410
+ }>;
411
+ export declare const ArtifactVersionParamsSchema: z.ZodObject<{
412
+ artifactId: z.ZodString;
413
+ } & {
414
+ version: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ version: string;
417
+ artifactId: string;
418
+ }, {
419
+ version: string;
420
+ artifactId: string;
421
+ }>;
422
+ export declare const ArtifactQueryParamsSchema: z.ZodObject<{
423
+ artifactId: z.ZodString;
424
+ } & {
425
+ version: z.ZodString;
426
+ } & {
427
+ name: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ name: string;
430
+ version: string;
431
+ artifactId: string;
432
+ }, {
433
+ name: string;
434
+ version: string;
435
+ artifactId: string;
436
+ }>;
437
+ export declare const ArtifactListQuerySchema: z.ZodObject<{
438
+ thread: z.ZodOptional<z.ZodString>;
439
+ kind: z.ZodOptional<z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>>;
440
+ limit: z.ZodOptional<z.ZodString>;
441
+ offset: z.ZodOptional<z.ZodString>;
442
+ }, "strict", z.ZodTypeAny, {
443
+ kind?: "file" | "page" | "document" | "sheet" | "slides" | "canvas" | undefined;
444
+ limit?: string | undefined;
445
+ offset?: string | undefined;
446
+ thread?: string | undefined;
447
+ }, {
448
+ kind?: "file" | "page" | "document" | "sheet" | "slides" | "canvas" | undefined;
449
+ limit?: string | undefined;
450
+ offset?: string | undefined;
451
+ thread?: string | undefined;
452
+ }>;
453
+ export declare const ArtifactListResponseSchema: z.ZodObject<{
454
+ artifacts: z.ZodArray<z.ZodObject<{
455
+ id: z.ZodString;
456
+ projectId: z.ZodString;
457
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
458
+ title: z.ZodString;
459
+ owner: z.ZodObject<{
460
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
461
+ id: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ id: string;
464
+ type: "user" | "serviceAccount" | "system";
465
+ }, {
466
+ id: string;
467
+ type: "user" | "serviceAccount" | "system";
468
+ }>;
469
+ latestVersion: z.ZodNumber;
470
+ createdAt: z.ZodString;
471
+ updatedAt: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ projectId: string;
474
+ id: string;
475
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
476
+ title: string;
477
+ createdAt: string;
478
+ owner: {
479
+ id: string;
480
+ type: "user" | "serviceAccount" | "system";
481
+ };
482
+ updatedAt: string;
483
+ latestVersion: number;
484
+ }, {
485
+ projectId: string;
486
+ id: string;
487
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
488
+ title: string;
489
+ createdAt: string;
490
+ owner: {
491
+ id: string;
492
+ type: "user" | "serviceAccount" | "system";
493
+ };
494
+ updatedAt: string;
495
+ latestVersion: number;
496
+ }>, "many">;
497
+ hasMore: z.ZodBoolean;
498
+ total: z.ZodNumber;
499
+ }, "strip", z.ZodTypeAny, {
500
+ artifacts: {
501
+ projectId: string;
502
+ id: string;
503
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
504
+ title: string;
505
+ createdAt: string;
506
+ owner: {
507
+ id: string;
508
+ type: "user" | "serviceAccount" | "system";
509
+ };
510
+ updatedAt: string;
511
+ latestVersion: number;
512
+ }[];
513
+ hasMore: boolean;
514
+ total: number;
515
+ }, {
516
+ artifacts: {
517
+ projectId: string;
518
+ id: string;
519
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
520
+ title: string;
521
+ createdAt: string;
522
+ owner: {
523
+ id: string;
524
+ type: "user" | "serviceAccount" | "system";
525
+ };
526
+ updatedAt: string;
527
+ latestVersion: number;
528
+ }[];
529
+ hasMore: boolean;
530
+ total: number;
531
+ }>;
532
+ export declare const ArtifactResponseSchema: z.ZodObject<{
533
+ artifact: z.ZodObject<{
534
+ id: z.ZodString;
535
+ projectId: z.ZodString;
536
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
537
+ title: z.ZodString;
538
+ owner: z.ZodObject<{
539
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
540
+ id: z.ZodString;
541
+ }, "strip", z.ZodTypeAny, {
542
+ id: string;
543
+ type: "user" | "serviceAccount" | "system";
544
+ }, {
545
+ id: string;
546
+ type: "user" | "serviceAccount" | "system";
547
+ }>;
548
+ latestVersion: z.ZodNumber;
549
+ createdAt: z.ZodString;
550
+ updatedAt: z.ZodString;
551
+ }, "strip", z.ZodTypeAny, {
552
+ projectId: string;
553
+ id: string;
554
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
555
+ title: string;
556
+ createdAt: string;
557
+ owner: {
558
+ id: string;
559
+ type: "user" | "serviceAccount" | "system";
560
+ };
561
+ updatedAt: string;
562
+ latestVersion: number;
563
+ }, {
564
+ projectId: string;
565
+ id: string;
566
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
567
+ title: string;
568
+ createdAt: string;
569
+ owner: {
570
+ id: string;
571
+ type: "user" | "serviceAccount" | "system";
572
+ };
573
+ updatedAt: string;
574
+ latestVersion: number;
575
+ }>;
576
+ versions: z.ZodArray<z.ZodObject<Pick<{
577
+ artifactId: z.ZodString;
578
+ version: z.ZodNumber;
579
+ title: z.ZodString;
580
+ entry: z.ZodString;
581
+ files: z.ZodArray<z.ZodObject<{
582
+ path: z.ZodString;
583
+ file: z.ZodObject<{
584
+ blobId: z.ZodString;
585
+ digest: z.ZodString;
586
+ sizeBytes: z.ZodNumber;
587
+ fileName: z.ZodOptional<z.ZodString>;
588
+ mediaType: z.ZodOptional<z.ZodString>;
589
+ logicalPath: z.ZodOptional<z.ZodString>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ blobId: string;
592
+ digest: string;
593
+ sizeBytes: number;
594
+ fileName?: string | undefined;
595
+ mediaType?: string | undefined;
596
+ logicalPath?: string | undefined;
597
+ }, {
598
+ blobId: string;
599
+ digest: string;
600
+ sizeBytes: number;
601
+ fileName?: string | undefined;
602
+ mediaType?: string | undefined;
603
+ logicalPath?: string | undefined;
604
+ }>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ path: string;
607
+ file: {
608
+ blobId: string;
609
+ digest: string;
610
+ sizeBytes: number;
611
+ fileName?: string | undefined;
612
+ mediaType?: string | undefined;
613
+ logicalPath?: string | undefined;
614
+ };
615
+ }, {
616
+ path: string;
617
+ file: {
618
+ blobId: string;
619
+ digest: string;
620
+ sizeBytes: number;
621
+ fileName?: string | undefined;
622
+ mediaType?: string | undefined;
623
+ logicalPath?: string | undefined;
624
+ };
625
+ }>, "many">;
626
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
627
+ kind: z.ZodLiteral<"document">;
628
+ headings: z.ZodArray<z.ZodObject<{
629
+ depth: z.ZodNumber;
630
+ text: z.ZodString;
631
+ slug: z.ZodString;
632
+ }, "strip", z.ZodTypeAny, {
633
+ text: string;
634
+ depth: number;
635
+ slug: string;
636
+ }, {
637
+ text: string;
638
+ depth: number;
639
+ slug: string;
640
+ }>, "many">;
641
+ }, "strip", z.ZodTypeAny, {
642
+ kind: "document";
643
+ headings: {
644
+ text: string;
645
+ depth: number;
646
+ slug: string;
647
+ }[];
648
+ }, {
649
+ kind: "document";
650
+ headings: {
651
+ text: string;
652
+ depth: number;
653
+ slug: string;
654
+ }[];
655
+ }>, z.ZodObject<{
656
+ kind: z.ZodLiteral<"sheet">;
657
+ sheets: z.ZodArray<z.ZodObject<{
658
+ name: z.ZodString;
659
+ rows: z.ZodNumber;
660
+ columns: z.ZodArray<z.ZodString, "many">;
661
+ query: z.ZodOptional<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ name: string;
664
+ rows: number;
665
+ columns: string[];
666
+ query?: string | undefined;
667
+ }, {
668
+ name: string;
669
+ rows: number;
670
+ columns: string[];
671
+ query?: string | undefined;
672
+ }>, "many">;
673
+ charts: z.ZodArray<z.ZodString, "many">;
674
+ }, "strip", z.ZodTypeAny, {
675
+ kind: "sheet";
676
+ sheets: {
677
+ name: string;
678
+ rows: number;
679
+ columns: string[];
680
+ query?: string | undefined;
681
+ }[];
682
+ charts: string[];
683
+ }, {
684
+ kind: "sheet";
685
+ sheets: {
686
+ name: string;
687
+ rows: number;
688
+ columns: string[];
689
+ query?: string | undefined;
690
+ }[];
691
+ charts: string[];
692
+ }>, z.ZodObject<{
693
+ kind: z.ZodLiteral<"slides">;
694
+ slides: z.ZodArray<z.ZodObject<{
695
+ title: z.ZodOptional<z.ZodString>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ title?: string | undefined;
698
+ }, {
699
+ title?: string | undefined;
700
+ }>, "many">;
701
+ }, "strip", z.ZodTypeAny, {
702
+ kind: "slides";
703
+ slides: {
704
+ title?: string | undefined;
705
+ }[];
706
+ }, {
707
+ kind: "slides";
708
+ slides: {
709
+ title?: string | undefined;
710
+ }[];
711
+ }>, z.ZodObject<{
712
+ kind: z.ZodLiteral<"page">;
713
+ title: z.ZodOptional<z.ZodString>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ kind: "page";
716
+ title?: string | undefined;
717
+ }, {
718
+ kind: "page";
719
+ title?: string | undefined;
720
+ }>, z.ZodObject<{
721
+ kind: z.ZodLiteral<"canvas">;
722
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
723
+ id: z.ZodString;
724
+ type: z.ZodLiteral<"board">;
725
+ title: z.ZodOptional<z.ZodString>;
726
+ file: z.ZodString;
727
+ w: z.ZodNumber;
728
+ h: z.ZodNumber;
729
+ }, "strip", z.ZodTypeAny, {
730
+ id: string;
731
+ type: "board";
732
+ file: string;
733
+ w: number;
734
+ h: number;
735
+ title?: string | undefined;
736
+ }, {
737
+ id: string;
738
+ type: "board";
739
+ file: string;
740
+ w: number;
741
+ h: number;
742
+ title?: string | undefined;
743
+ }>, z.ZodObject<{
744
+ id: z.ZodString;
745
+ type: z.ZodLiteral<"section">;
746
+ title: z.ZodOptional<z.ZodString>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ id: string;
749
+ type: "section";
750
+ title?: string | undefined;
751
+ }, {
752
+ id: string;
753
+ type: "section";
754
+ title?: string | undefined;
755
+ }>]>, "many">;
756
+ }, "strip", z.ZodTypeAny, {
757
+ kind: "canvas";
758
+ items: ({
759
+ id: string;
760
+ type: "board";
761
+ file: string;
762
+ w: number;
763
+ h: number;
764
+ title?: string | undefined;
765
+ } | {
766
+ id: string;
767
+ type: "section";
768
+ title?: string | undefined;
769
+ })[];
770
+ }, {
771
+ kind: "canvas";
772
+ items: ({
773
+ id: string;
774
+ type: "board";
775
+ file: string;
776
+ w: number;
777
+ h: number;
778
+ title?: string | undefined;
779
+ } | {
780
+ id: string;
781
+ type: "section";
782
+ title?: string | undefined;
783
+ })[];
784
+ }>, z.ZodObject<{
785
+ kind: z.ZodLiteral<"file">;
786
+ mediaType: z.ZodString;
787
+ }, "strip", z.ZodTypeAny, {
788
+ kind: "file";
789
+ mediaType: string;
790
+ }, {
791
+ kind: "file";
792
+ mediaType: string;
793
+ }>]>;
794
+ references: z.ZodArray<z.ZodObject<{
795
+ address: z.ZodString;
796
+ as: z.ZodEnum<["embed", "link"]>;
797
+ at: z.ZodString;
798
+ resolvedVersion: z.ZodNumber;
799
+ }, "strip", z.ZodTypeAny, {
800
+ at: string;
801
+ address: string;
802
+ as: "link" | "embed";
803
+ resolvedVersion: number;
804
+ }, {
805
+ at: string;
806
+ address: string;
807
+ as: "link" | "embed";
808
+ resolvedVersion: number;
809
+ }>, "many">;
810
+ author: z.ZodObject<{
811
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
812
+ id: z.ZodString;
813
+ }, "strip", z.ZodTypeAny, {
814
+ id: string;
815
+ type: "user" | "serviceAccount" | "system";
816
+ }, {
817
+ id: string;
818
+ type: "user" | "serviceAccount" | "system";
819
+ }>;
820
+ origin: z.ZodOptional<z.ZodObject<{
821
+ threadId: z.ZodString;
822
+ runId: z.ZodString;
823
+ }, "strip", z.ZodTypeAny, {
824
+ runId: string;
825
+ threadId: string;
826
+ }, {
827
+ runId: string;
828
+ threadId: string;
829
+ }>>;
830
+ createdAt: z.ZodString;
831
+ }, "origin" | "title" | "version" | "createdAt" | "author">, "strip", z.ZodTypeAny, {
832
+ title: string;
833
+ version: number;
834
+ createdAt: string;
835
+ author: {
836
+ id: string;
837
+ type: "user" | "serviceAccount" | "system";
838
+ };
839
+ origin?: {
840
+ runId: string;
841
+ threadId: string;
842
+ } | undefined;
843
+ }, {
844
+ title: string;
845
+ version: number;
846
+ createdAt: string;
847
+ author: {
848
+ id: string;
849
+ type: "user" | "serviceAccount" | "system";
850
+ };
851
+ origin?: {
852
+ runId: string;
853
+ threadId: string;
854
+ } | undefined;
855
+ }>, "many">;
856
+ access: z.ZodEnum<["owner", "update", "read"]>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ artifact: {
859
+ projectId: string;
860
+ id: string;
861
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
862
+ title: string;
863
+ createdAt: string;
864
+ owner: {
865
+ id: string;
866
+ type: "user" | "serviceAccount" | "system";
867
+ };
868
+ updatedAt: string;
869
+ latestVersion: number;
870
+ };
871
+ versions: {
872
+ title: string;
873
+ version: number;
874
+ createdAt: string;
875
+ author: {
876
+ id: string;
877
+ type: "user" | "serviceAccount" | "system";
878
+ };
879
+ origin?: {
880
+ runId: string;
881
+ threadId: string;
882
+ } | undefined;
883
+ }[];
884
+ access: "owner" | "read" | "update";
885
+ }, {
886
+ artifact: {
887
+ projectId: string;
888
+ id: string;
889
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
890
+ title: string;
891
+ createdAt: string;
892
+ owner: {
893
+ id: string;
894
+ type: "user" | "serviceAccount" | "system";
895
+ };
896
+ updatedAt: string;
897
+ latestVersion: number;
898
+ };
899
+ versions: {
900
+ title: string;
901
+ version: number;
902
+ createdAt: string;
903
+ author: {
904
+ id: string;
905
+ type: "user" | "serviceAccount" | "system";
906
+ };
907
+ origin?: {
908
+ runId: string;
909
+ threadId: string;
910
+ } | undefined;
911
+ }[];
912
+ access: "owner" | "read" | "update";
913
+ }>;
914
+ export declare const PublishArtifactBodySchema: z.ZodObject<{
915
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
916
+ title: z.ZodString;
917
+ files: z.ZodArray<z.ZodObject<{
918
+ path: z.ZodString;
919
+ file: z.ZodObject<{
920
+ blobId: z.ZodString;
921
+ digest: z.ZodString;
922
+ sizeBytes: z.ZodNumber;
923
+ fileName: z.ZodOptional<z.ZodString>;
924
+ mediaType: z.ZodOptional<z.ZodString>;
925
+ logicalPath: z.ZodOptional<z.ZodString>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ blobId: string;
928
+ digest: string;
929
+ sizeBytes: number;
930
+ fileName?: string | undefined;
931
+ mediaType?: string | undefined;
932
+ logicalPath?: string | undefined;
933
+ }, {
934
+ blobId: string;
935
+ digest: string;
936
+ sizeBytes: number;
937
+ fileName?: string | undefined;
938
+ mediaType?: string | undefined;
939
+ logicalPath?: string | undefined;
940
+ }>;
941
+ }, "strip", z.ZodTypeAny, {
942
+ path: string;
943
+ file: {
944
+ blobId: string;
945
+ digest: string;
946
+ sizeBytes: number;
947
+ fileName?: string | undefined;
948
+ mediaType?: string | undefined;
949
+ logicalPath?: string | undefined;
950
+ };
951
+ }, {
952
+ path: string;
953
+ file: {
954
+ blobId: string;
955
+ digest: string;
956
+ sizeBytes: number;
957
+ fileName?: string | undefined;
958
+ mediaType?: string | undefined;
959
+ logicalPath?: string | undefined;
960
+ };
961
+ }>, "many">;
962
+ }, "strict", z.ZodTypeAny, {
963
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
964
+ title: string;
965
+ files: {
966
+ path: string;
967
+ file: {
968
+ blobId: string;
969
+ digest: string;
970
+ sizeBytes: number;
971
+ fileName?: string | undefined;
972
+ mediaType?: string | undefined;
973
+ logicalPath?: string | undefined;
974
+ };
975
+ }[];
976
+ }, {
977
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
978
+ title: string;
979
+ files: {
980
+ path: string;
981
+ file: {
982
+ blobId: string;
983
+ digest: string;
984
+ sizeBytes: number;
985
+ fileName?: string | undefined;
986
+ mediaType?: string | undefined;
987
+ logicalPath?: string | undefined;
988
+ };
989
+ }[];
990
+ }>;
991
+ export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
992
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
993
+ title: z.ZodString;
994
+ files: z.ZodArray<z.ZodObject<{
995
+ path: z.ZodString;
996
+ file: z.ZodObject<{
997
+ blobId: z.ZodString;
998
+ digest: z.ZodString;
999
+ sizeBytes: z.ZodNumber;
1000
+ fileName: z.ZodOptional<z.ZodString>;
1001
+ mediaType: z.ZodOptional<z.ZodString>;
1002
+ logicalPath: z.ZodOptional<z.ZodString>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ blobId: string;
1005
+ digest: string;
1006
+ sizeBytes: number;
1007
+ fileName?: string | undefined;
1008
+ mediaType?: string | undefined;
1009
+ logicalPath?: string | undefined;
1010
+ }, {
1011
+ blobId: string;
1012
+ digest: string;
1013
+ sizeBytes: number;
1014
+ fileName?: string | undefined;
1015
+ mediaType?: string | undefined;
1016
+ logicalPath?: string | undefined;
1017
+ }>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ path: string;
1020
+ file: {
1021
+ blobId: string;
1022
+ digest: string;
1023
+ sizeBytes: number;
1024
+ fileName?: string | undefined;
1025
+ mediaType?: string | undefined;
1026
+ logicalPath?: string | undefined;
1027
+ };
1028
+ }, {
1029
+ path: string;
1030
+ file: {
1031
+ blobId: string;
1032
+ digest: string;
1033
+ sizeBytes: number;
1034
+ fileName?: string | undefined;
1035
+ mediaType?: string | undefined;
1036
+ logicalPath?: string | undefined;
1037
+ };
1038
+ }>, "many">;
1039
+ } & {
1040
+ baseVersion: z.ZodOptional<z.ZodNumber>;
1041
+ }, "strict", z.ZodTypeAny, {
1042
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1043
+ title: string;
1044
+ files: {
1045
+ path: string;
1046
+ file: {
1047
+ blobId: string;
1048
+ digest: string;
1049
+ sizeBytes: number;
1050
+ fileName?: string | undefined;
1051
+ mediaType?: string | undefined;
1052
+ logicalPath?: string | undefined;
1053
+ };
1054
+ }[];
1055
+ baseVersion?: number | undefined;
1056
+ }, {
1057
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1058
+ title: string;
1059
+ files: {
1060
+ path: string;
1061
+ file: {
1062
+ blobId: string;
1063
+ digest: string;
1064
+ sizeBytes: number;
1065
+ fileName?: string | undefined;
1066
+ mediaType?: string | undefined;
1067
+ logicalPath?: string | undefined;
1068
+ };
1069
+ }[];
1070
+ baseVersion?: number | undefined;
1071
+ }>;
1072
+ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1073
+ artifact: z.ZodObject<{
1074
+ id: z.ZodString;
1075
+ projectId: z.ZodString;
1076
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
1077
+ title: z.ZodString;
1078
+ owner: z.ZodObject<{
1079
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1080
+ id: z.ZodString;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ id: string;
1083
+ type: "user" | "serviceAccount" | "system";
1084
+ }, {
1085
+ id: string;
1086
+ type: "user" | "serviceAccount" | "system";
1087
+ }>;
1088
+ latestVersion: z.ZodNumber;
1089
+ createdAt: z.ZodString;
1090
+ updatedAt: z.ZodString;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ projectId: string;
1093
+ id: string;
1094
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1095
+ title: string;
1096
+ createdAt: string;
1097
+ owner: {
1098
+ id: string;
1099
+ type: "user" | "serviceAccount" | "system";
1100
+ };
1101
+ updatedAt: string;
1102
+ latestVersion: number;
1103
+ }, {
1104
+ projectId: string;
1105
+ id: string;
1106
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1107
+ title: string;
1108
+ createdAt: string;
1109
+ owner: {
1110
+ id: string;
1111
+ type: "user" | "serviceAccount" | "system";
1112
+ };
1113
+ updatedAt: string;
1114
+ latestVersion: number;
1115
+ }>;
1116
+ version: z.ZodObject<{
1117
+ artifactId: z.ZodString;
1118
+ version: z.ZodNumber;
1119
+ title: z.ZodString;
1120
+ entry: z.ZodString;
1121
+ files: z.ZodArray<z.ZodObject<{
1122
+ path: z.ZodString;
1123
+ file: z.ZodObject<{
1124
+ blobId: z.ZodString;
1125
+ digest: z.ZodString;
1126
+ sizeBytes: z.ZodNumber;
1127
+ fileName: z.ZodOptional<z.ZodString>;
1128
+ mediaType: z.ZodOptional<z.ZodString>;
1129
+ logicalPath: z.ZodOptional<z.ZodString>;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ blobId: string;
1132
+ digest: string;
1133
+ sizeBytes: number;
1134
+ fileName?: string | undefined;
1135
+ mediaType?: string | undefined;
1136
+ logicalPath?: string | undefined;
1137
+ }, {
1138
+ blobId: string;
1139
+ digest: string;
1140
+ sizeBytes: number;
1141
+ fileName?: string | undefined;
1142
+ mediaType?: string | undefined;
1143
+ logicalPath?: string | undefined;
1144
+ }>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ path: string;
1147
+ file: {
1148
+ blobId: string;
1149
+ digest: string;
1150
+ sizeBytes: number;
1151
+ fileName?: string | undefined;
1152
+ mediaType?: string | undefined;
1153
+ logicalPath?: string | undefined;
1154
+ };
1155
+ }, {
1156
+ path: string;
1157
+ file: {
1158
+ blobId: string;
1159
+ digest: string;
1160
+ sizeBytes: number;
1161
+ fileName?: string | undefined;
1162
+ mediaType?: string | undefined;
1163
+ logicalPath?: string | undefined;
1164
+ };
1165
+ }>, "many">;
1166
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1167
+ kind: z.ZodLiteral<"document">;
1168
+ headings: z.ZodArray<z.ZodObject<{
1169
+ depth: z.ZodNumber;
1170
+ text: z.ZodString;
1171
+ slug: z.ZodString;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ text: string;
1174
+ depth: number;
1175
+ slug: string;
1176
+ }, {
1177
+ text: string;
1178
+ depth: number;
1179
+ slug: string;
1180
+ }>, "many">;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ kind: "document";
1183
+ headings: {
1184
+ text: string;
1185
+ depth: number;
1186
+ slug: string;
1187
+ }[];
1188
+ }, {
1189
+ kind: "document";
1190
+ headings: {
1191
+ text: string;
1192
+ depth: number;
1193
+ slug: string;
1194
+ }[];
1195
+ }>, z.ZodObject<{
1196
+ kind: z.ZodLiteral<"sheet">;
1197
+ sheets: z.ZodArray<z.ZodObject<{
1198
+ name: z.ZodString;
1199
+ rows: z.ZodNumber;
1200
+ columns: z.ZodArray<z.ZodString, "many">;
1201
+ query: z.ZodOptional<z.ZodString>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ name: string;
1204
+ rows: number;
1205
+ columns: string[];
1206
+ query?: string | undefined;
1207
+ }, {
1208
+ name: string;
1209
+ rows: number;
1210
+ columns: string[];
1211
+ query?: string | undefined;
1212
+ }>, "many">;
1213
+ charts: z.ZodArray<z.ZodString, "many">;
1214
+ }, "strip", z.ZodTypeAny, {
1215
+ kind: "sheet";
1216
+ sheets: {
1217
+ name: string;
1218
+ rows: number;
1219
+ columns: string[];
1220
+ query?: string | undefined;
1221
+ }[];
1222
+ charts: string[];
1223
+ }, {
1224
+ kind: "sheet";
1225
+ sheets: {
1226
+ name: string;
1227
+ rows: number;
1228
+ columns: string[];
1229
+ query?: string | undefined;
1230
+ }[];
1231
+ charts: string[];
1232
+ }>, z.ZodObject<{
1233
+ kind: z.ZodLiteral<"slides">;
1234
+ slides: z.ZodArray<z.ZodObject<{
1235
+ title: z.ZodOptional<z.ZodString>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ title?: string | undefined;
1238
+ }, {
1239
+ title?: string | undefined;
1240
+ }>, "many">;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ kind: "slides";
1243
+ slides: {
1244
+ title?: string | undefined;
1245
+ }[];
1246
+ }, {
1247
+ kind: "slides";
1248
+ slides: {
1249
+ title?: string | undefined;
1250
+ }[];
1251
+ }>, z.ZodObject<{
1252
+ kind: z.ZodLiteral<"page">;
1253
+ title: z.ZodOptional<z.ZodString>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ kind: "page";
1256
+ title?: string | undefined;
1257
+ }, {
1258
+ kind: "page";
1259
+ title?: string | undefined;
1260
+ }>, z.ZodObject<{
1261
+ kind: z.ZodLiteral<"canvas">;
1262
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1263
+ id: z.ZodString;
1264
+ type: z.ZodLiteral<"board">;
1265
+ title: z.ZodOptional<z.ZodString>;
1266
+ file: z.ZodString;
1267
+ w: z.ZodNumber;
1268
+ h: z.ZodNumber;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ id: string;
1271
+ type: "board";
1272
+ file: string;
1273
+ w: number;
1274
+ h: number;
1275
+ title?: string | undefined;
1276
+ }, {
1277
+ id: string;
1278
+ type: "board";
1279
+ file: string;
1280
+ w: number;
1281
+ h: number;
1282
+ title?: string | undefined;
1283
+ }>, z.ZodObject<{
1284
+ id: z.ZodString;
1285
+ type: z.ZodLiteral<"section">;
1286
+ title: z.ZodOptional<z.ZodString>;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ id: string;
1289
+ type: "section";
1290
+ title?: string | undefined;
1291
+ }, {
1292
+ id: string;
1293
+ type: "section";
1294
+ title?: string | undefined;
1295
+ }>]>, "many">;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ kind: "canvas";
1298
+ items: ({
1299
+ id: string;
1300
+ type: "board";
1301
+ file: string;
1302
+ w: number;
1303
+ h: number;
1304
+ title?: string | undefined;
1305
+ } | {
1306
+ id: string;
1307
+ type: "section";
1308
+ title?: string | undefined;
1309
+ })[];
1310
+ }, {
1311
+ kind: "canvas";
1312
+ items: ({
1313
+ id: string;
1314
+ type: "board";
1315
+ file: string;
1316
+ w: number;
1317
+ h: number;
1318
+ title?: string | undefined;
1319
+ } | {
1320
+ id: string;
1321
+ type: "section";
1322
+ title?: string | undefined;
1323
+ })[];
1324
+ }>, z.ZodObject<{
1325
+ kind: z.ZodLiteral<"file">;
1326
+ mediaType: z.ZodString;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ kind: "file";
1329
+ mediaType: string;
1330
+ }, {
1331
+ kind: "file";
1332
+ mediaType: string;
1333
+ }>]>;
1334
+ references: z.ZodArray<z.ZodObject<{
1335
+ address: z.ZodString;
1336
+ as: z.ZodEnum<["embed", "link"]>;
1337
+ at: z.ZodString;
1338
+ resolvedVersion: z.ZodNumber;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ at: string;
1341
+ address: string;
1342
+ as: "link" | "embed";
1343
+ resolvedVersion: number;
1344
+ }, {
1345
+ at: string;
1346
+ address: string;
1347
+ as: "link" | "embed";
1348
+ resolvedVersion: number;
1349
+ }>, "many">;
1350
+ author: z.ZodObject<{
1351
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1352
+ id: z.ZodString;
1353
+ }, "strip", z.ZodTypeAny, {
1354
+ id: string;
1355
+ type: "user" | "serviceAccount" | "system";
1356
+ }, {
1357
+ id: string;
1358
+ type: "user" | "serviceAccount" | "system";
1359
+ }>;
1360
+ origin: z.ZodOptional<z.ZodObject<{
1361
+ threadId: z.ZodString;
1362
+ runId: z.ZodString;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ runId: string;
1365
+ threadId: string;
1366
+ }, {
1367
+ runId: string;
1368
+ threadId: string;
1369
+ }>>;
1370
+ createdAt: z.ZodString;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ title: string;
1373
+ version: number;
1374
+ createdAt: string;
1375
+ files: {
1376
+ path: string;
1377
+ file: {
1378
+ blobId: string;
1379
+ digest: string;
1380
+ sizeBytes: number;
1381
+ fileName?: string | undefined;
1382
+ mediaType?: string | undefined;
1383
+ logicalPath?: string | undefined;
1384
+ };
1385
+ }[];
1386
+ author: {
1387
+ id: string;
1388
+ type: "user" | "serviceAccount" | "system";
1389
+ };
1390
+ artifactId: string;
1391
+ entry: string;
1392
+ outline: {
1393
+ kind: "document";
1394
+ headings: {
1395
+ text: string;
1396
+ depth: number;
1397
+ slug: string;
1398
+ }[];
1399
+ } | {
1400
+ kind: "sheet";
1401
+ sheets: {
1402
+ name: string;
1403
+ rows: number;
1404
+ columns: string[];
1405
+ query?: string | undefined;
1406
+ }[];
1407
+ charts: string[];
1408
+ } | {
1409
+ kind: "slides";
1410
+ slides: {
1411
+ title?: string | undefined;
1412
+ }[];
1413
+ } | {
1414
+ kind: "page";
1415
+ title?: string | undefined;
1416
+ } | {
1417
+ kind: "canvas";
1418
+ items: ({
1419
+ id: string;
1420
+ type: "board";
1421
+ file: string;
1422
+ w: number;
1423
+ h: number;
1424
+ title?: string | undefined;
1425
+ } | {
1426
+ id: string;
1427
+ type: "section";
1428
+ title?: string | undefined;
1429
+ })[];
1430
+ } | {
1431
+ kind: "file";
1432
+ mediaType: string;
1433
+ };
1434
+ references: {
1435
+ at: string;
1436
+ address: string;
1437
+ as: "link" | "embed";
1438
+ resolvedVersion: number;
1439
+ }[];
1440
+ origin?: {
1441
+ runId: string;
1442
+ threadId: string;
1443
+ } | undefined;
1444
+ }, {
1445
+ title: string;
1446
+ version: number;
1447
+ createdAt: string;
1448
+ files: {
1449
+ path: string;
1450
+ file: {
1451
+ blobId: string;
1452
+ digest: string;
1453
+ sizeBytes: number;
1454
+ fileName?: string | undefined;
1455
+ mediaType?: string | undefined;
1456
+ logicalPath?: string | undefined;
1457
+ };
1458
+ }[];
1459
+ author: {
1460
+ id: string;
1461
+ type: "user" | "serviceAccount" | "system";
1462
+ };
1463
+ artifactId: string;
1464
+ entry: string;
1465
+ outline: {
1466
+ kind: "document";
1467
+ headings: {
1468
+ text: string;
1469
+ depth: number;
1470
+ slug: string;
1471
+ }[];
1472
+ } | {
1473
+ kind: "sheet";
1474
+ sheets: {
1475
+ name: string;
1476
+ rows: number;
1477
+ columns: string[];
1478
+ query?: string | undefined;
1479
+ }[];
1480
+ charts: string[];
1481
+ } | {
1482
+ kind: "slides";
1483
+ slides: {
1484
+ title?: string | undefined;
1485
+ }[];
1486
+ } | {
1487
+ kind: "page";
1488
+ title?: string | undefined;
1489
+ } | {
1490
+ kind: "canvas";
1491
+ items: ({
1492
+ id: string;
1493
+ type: "board";
1494
+ file: string;
1495
+ w: number;
1496
+ h: number;
1497
+ title?: string | undefined;
1498
+ } | {
1499
+ id: string;
1500
+ type: "section";
1501
+ title?: string | undefined;
1502
+ })[];
1503
+ } | {
1504
+ kind: "file";
1505
+ mediaType: string;
1506
+ };
1507
+ references: {
1508
+ at: string;
1509
+ address: string;
1510
+ as: "link" | "embed";
1511
+ resolvedVersion: number;
1512
+ }[];
1513
+ origin?: {
1514
+ runId: string;
1515
+ threadId: string;
1516
+ } | undefined;
1517
+ }>;
1518
+ warnings: z.ZodArray<z.ZodObject<{
1519
+ code: z.ZodString;
1520
+ message: z.ZodString;
1521
+ part: z.ZodOptional<z.ZodString>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ code: string;
1524
+ message: string;
1525
+ part?: string | undefined;
1526
+ }, {
1527
+ code: string;
1528
+ message: string;
1529
+ part?: string | undefined;
1530
+ }>, "many">;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ version: {
1533
+ title: string;
1534
+ version: number;
1535
+ createdAt: string;
1536
+ files: {
1537
+ path: string;
1538
+ file: {
1539
+ blobId: string;
1540
+ digest: string;
1541
+ sizeBytes: number;
1542
+ fileName?: string | undefined;
1543
+ mediaType?: string | undefined;
1544
+ logicalPath?: string | undefined;
1545
+ };
1546
+ }[];
1547
+ author: {
1548
+ id: string;
1549
+ type: "user" | "serviceAccount" | "system";
1550
+ };
1551
+ artifactId: string;
1552
+ entry: string;
1553
+ outline: {
1554
+ kind: "document";
1555
+ headings: {
1556
+ text: string;
1557
+ depth: number;
1558
+ slug: string;
1559
+ }[];
1560
+ } | {
1561
+ kind: "sheet";
1562
+ sheets: {
1563
+ name: string;
1564
+ rows: number;
1565
+ columns: string[];
1566
+ query?: string | undefined;
1567
+ }[];
1568
+ charts: string[];
1569
+ } | {
1570
+ kind: "slides";
1571
+ slides: {
1572
+ title?: string | undefined;
1573
+ }[];
1574
+ } | {
1575
+ kind: "page";
1576
+ title?: string | undefined;
1577
+ } | {
1578
+ kind: "canvas";
1579
+ items: ({
1580
+ id: string;
1581
+ type: "board";
1582
+ file: string;
1583
+ w: number;
1584
+ h: number;
1585
+ title?: string | undefined;
1586
+ } | {
1587
+ id: string;
1588
+ type: "section";
1589
+ title?: string | undefined;
1590
+ })[];
1591
+ } | {
1592
+ kind: "file";
1593
+ mediaType: string;
1594
+ };
1595
+ references: {
1596
+ at: string;
1597
+ address: string;
1598
+ as: "link" | "embed";
1599
+ resolvedVersion: number;
1600
+ }[];
1601
+ origin?: {
1602
+ runId: string;
1603
+ threadId: string;
1604
+ } | undefined;
1605
+ };
1606
+ warnings: {
1607
+ code: string;
1608
+ message: string;
1609
+ part?: string | undefined;
1610
+ }[];
1611
+ artifact: {
1612
+ projectId: string;
1613
+ id: string;
1614
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1615
+ title: string;
1616
+ createdAt: string;
1617
+ owner: {
1618
+ id: string;
1619
+ type: "user" | "serviceAccount" | "system";
1620
+ };
1621
+ updatedAt: string;
1622
+ latestVersion: number;
1623
+ };
1624
+ }, {
1625
+ version: {
1626
+ title: string;
1627
+ version: number;
1628
+ createdAt: string;
1629
+ files: {
1630
+ path: string;
1631
+ file: {
1632
+ blobId: string;
1633
+ digest: string;
1634
+ sizeBytes: number;
1635
+ fileName?: string | undefined;
1636
+ mediaType?: string | undefined;
1637
+ logicalPath?: string | undefined;
1638
+ };
1639
+ }[];
1640
+ author: {
1641
+ id: string;
1642
+ type: "user" | "serviceAccount" | "system";
1643
+ };
1644
+ artifactId: string;
1645
+ entry: string;
1646
+ outline: {
1647
+ kind: "document";
1648
+ headings: {
1649
+ text: string;
1650
+ depth: number;
1651
+ slug: string;
1652
+ }[];
1653
+ } | {
1654
+ kind: "sheet";
1655
+ sheets: {
1656
+ name: string;
1657
+ rows: number;
1658
+ columns: string[];
1659
+ query?: string | undefined;
1660
+ }[];
1661
+ charts: string[];
1662
+ } | {
1663
+ kind: "slides";
1664
+ slides: {
1665
+ title?: string | undefined;
1666
+ }[];
1667
+ } | {
1668
+ kind: "page";
1669
+ title?: string | undefined;
1670
+ } | {
1671
+ kind: "canvas";
1672
+ items: ({
1673
+ id: string;
1674
+ type: "board";
1675
+ file: string;
1676
+ w: number;
1677
+ h: number;
1678
+ title?: string | undefined;
1679
+ } | {
1680
+ id: string;
1681
+ type: "section";
1682
+ title?: string | undefined;
1683
+ })[];
1684
+ } | {
1685
+ kind: "file";
1686
+ mediaType: string;
1687
+ };
1688
+ references: {
1689
+ at: string;
1690
+ address: string;
1691
+ as: "link" | "embed";
1692
+ resolvedVersion: number;
1693
+ }[];
1694
+ origin?: {
1695
+ runId: string;
1696
+ threadId: string;
1697
+ } | undefined;
1698
+ };
1699
+ warnings: {
1700
+ code: string;
1701
+ message: string;
1702
+ part?: string | undefined;
1703
+ }[];
1704
+ artifact: {
1705
+ projectId: string;
1706
+ id: string;
1707
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1708
+ title: string;
1709
+ createdAt: string;
1710
+ owner: {
1711
+ id: string;
1712
+ type: "user" | "serviceAccount" | "system";
1713
+ };
1714
+ updatedAt: string;
1715
+ latestVersion: number;
1716
+ };
1717
+ }>;
1718
+ export declare const DeleteArtifactResponseSchema: z.ZodObject<{
1719
+ deleted: z.ZodLiteral<true>;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ deleted: true;
1722
+ }, {
1723
+ deleted: true;
1724
+ }>;
1725
+ export declare const ArtifactStateParamsSchema: z.ZodObject<{
1726
+ artifactId: z.ZodString;
1727
+ } & {
1728
+ key: z.ZodString;
1729
+ }, "strip", z.ZodTypeAny, {
1730
+ key: string;
1731
+ artifactId: string;
1732
+ }, {
1733
+ key: string;
1734
+ artifactId: string;
1735
+ }>;
1736
+ export declare const ArtifactStateResponseSchema: z.ZodObject<{
1737
+ entries: z.ZodArray<z.ZodObject<{
1738
+ key: z.ZodString;
1739
+ value: z.ZodUnknown;
1740
+ updatedAt: z.ZodString;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ key: string;
1743
+ updatedAt: string;
1744
+ value?: unknown;
1745
+ }, {
1746
+ key: string;
1747
+ updatedAt: string;
1748
+ value?: unknown;
1749
+ }>, "many">;
1750
+ }, "strip", z.ZodTypeAny, {
1751
+ entries: {
1752
+ key: string;
1753
+ updatedAt: string;
1754
+ value?: unknown;
1755
+ }[];
1756
+ }, {
1757
+ entries: {
1758
+ key: string;
1759
+ updatedAt: string;
1760
+ value?: unknown;
1761
+ }[];
1762
+ }>;
1763
+ export declare const SetArtifactStateBodySchema: z.ZodObject<{
1764
+ value: z.ZodEffects<z.ZodUnknown, {} | null, unknown>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ value: {} | null;
1767
+ }, {
1768
+ value?: unknown;
1769
+ }>;
1770
+ export declare const SetArtifactStateResponseSchema: z.ZodObject<{
1771
+ key: z.ZodString;
1772
+ value: z.ZodUnknown;
1773
+ updatedAt: z.ZodString;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ key: string;
1776
+ updatedAt: string;
1777
+ value?: unknown;
1778
+ }, {
1779
+ key: string;
1780
+ updatedAt: string;
1781
+ value?: unknown;
1782
+ }>;
1783
+ export declare const DeleteArtifactStateResponseSchema: z.ZodObject<{
1784
+ deleted: z.ZodBoolean;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ deleted: boolean;
1787
+ }, {
1788
+ deleted: boolean;
1789
+ }>;
1790
+ export declare const ClearArtifactStateResponseSchema: z.ZodObject<{
1791
+ cleared: z.ZodNumber;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ cleared: number;
1794
+ }, {
1795
+ cleared: number;
1796
+ }>;
1797
+ export declare const ArtifactFrameResponseSchema: z.ZodObject<{
1798
+ path: z.ZodString;
1799
+ expiresAt: z.ZodString;
1800
+ }, "strip", z.ZodTypeAny, {
1801
+ path: string;
1802
+ expiresAt: string;
1803
+ }, {
1804
+ path: string;
1805
+ expiresAt: string;
1806
+ }>;
1807
+ export declare const ArtifactErrorResponseSchema: z.ZodObject<{
1808
+ error: z.ZodString;
1809
+ } & {
1810
+ code: z.ZodOptional<z.ZodString>;
1811
+ latest: z.ZodOptional<z.ZodObject<{
1812
+ version: z.ZodNumber;
1813
+ author: z.ZodObject<{
1814
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1815
+ id: z.ZodString;
1816
+ }, "strip", z.ZodTypeAny, {
1817
+ id: string;
1818
+ type: "user" | "serviceAccount" | "system";
1819
+ }, {
1820
+ id: string;
1821
+ type: "user" | "serviceAccount" | "system";
1822
+ }>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ version: number;
1825
+ author: {
1826
+ id: string;
1827
+ type: "user" | "serviceAccount" | "system";
1828
+ };
1829
+ }, {
1830
+ version: number;
1831
+ author: {
1832
+ id: string;
1833
+ type: "user" | "serviceAccount" | "system";
1834
+ };
1835
+ }>>;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ error: string;
1838
+ code?: string | undefined;
1839
+ latest?: {
1840
+ version: number;
1841
+ author: {
1842
+ id: string;
1843
+ type: "user" | "serviceAccount" | "system";
1844
+ };
1845
+ } | undefined;
1846
+ }, {
1847
+ error: string;
1848
+ code?: string | undefined;
1849
+ latest?: {
1850
+ version: number;
1851
+ author: {
1852
+ id: string;
1853
+ type: "user" | "serviceAccount" | "system";
1854
+ };
1855
+ } | undefined;
1856
+ }>;
1857
+ //# sourceMappingURL=artifacts.d.ts.map