@sixb/server 0.2.1 → 0.2.3

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 (153) hide show
  1. package/README.md +3 -3
  2. package/dist/artifacts/frame.d.ts.map +1 -1
  3. package/dist/auth/scope.d.ts +3 -0
  4. package/dist/auth/scope.d.ts.map +1 -1
  5. package/dist/auth/shared-access.d.ts +23 -0
  6. package/dist/auth/shared-access.d.ts.map +1 -1
  7. package/dist/connectors/http.d.ts +6 -1
  8. package/dist/connectors/http.d.ts.map +1 -1
  9. package/dist/index.js +2876 -667
  10. package/dist/index.js.map +43 -36
  11. package/dist/live/awareness.d.ts +48 -0
  12. package/dist/live/awareness.d.ts.map +1 -0
  13. package/dist/live/room.d.ts +198 -0
  14. package/dist/live/room.d.ts.map +1 -0
  15. package/dist/live/rooms.d.ts +67 -0
  16. package/dist/live/rooms.d.ts.map +1 -0
  17. package/dist/registerRoutes.d.ts.map +1 -1
  18. package/dist/routes/actions.d.ts +3 -3
  19. package/dist/routes/agent-approvals.d.ts +21 -11
  20. package/dist/routes/agent-approvals.d.ts.map +1 -1
  21. package/dist/routes/agent-children.d.ts +4 -4
  22. package/dist/routes/agent-computers.d.ts +146 -1
  23. package/dist/routes/agent-computers.d.ts.map +1 -1
  24. package/dist/routes/agent-runners.d.ts.map +1 -1
  25. package/dist/routes/agents.d.ts +152 -60
  26. package/dist/routes/agents.d.ts.map +1 -1
  27. package/dist/routes/artifact-frames.d.ts +2 -1
  28. package/dist/routes/artifact-frames.d.ts.map +1 -1
  29. package/dist/routes/artifacts.d.ts +1713 -178
  30. package/dist/routes/artifacts.d.ts.map +1 -1
  31. package/dist/routes/auth.d.ts +21 -21
  32. package/dist/routes/connector-connection-runs.d.ts +124 -5
  33. package/dist/routes/connector-connection-runs.d.ts.map +1 -1
  34. package/dist/routes/connector-connections.d.ts +9 -1
  35. package/dist/routes/connector-connections.d.ts.map +1 -1
  36. package/dist/routes/datasets.d.ts +5 -5
  37. package/dist/routes/events.d.ts +4 -4
  38. package/dist/routes/lake.d.ts +91 -0
  39. package/dist/routes/lake.d.ts.map +1 -0
  40. package/dist/routes/links.d.ts +6 -6
  41. package/dist/routes/logs.d.ts +2 -2
  42. package/dist/routes/model-generations.d.ts +2 -2
  43. package/dist/routes/objects.d.ts +6 -6
  44. package/dist/routes/objects.d.ts.map +1 -1
  45. package/dist/routes/observed-agent-threads.d.ts +21 -11
  46. package/dist/routes/observed-agent-threads.d.ts.map +1 -1
  47. package/dist/routes/ontology.d.ts +6 -6
  48. package/dist/routes/pipelines.d.ts +13 -9
  49. package/dist/routes/pipelines.d.ts.map +1 -1
  50. package/dist/routes/projections.d.ts +27 -27
  51. package/dist/routes/share-grants.d.ts +9 -9
  52. package/dist/routes/shared-access.d.ts +57 -2
  53. package/dist/routes/shared-access.d.ts.map +1 -1
  54. package/dist/routes/status.d.ts +11 -15
  55. package/dist/routes/status.d.ts.map +1 -1
  56. package/dist/routes/syncs.d.ts +9 -6
  57. package/dist/routes/syncs.d.ts.map +1 -1
  58. package/dist/routes/telemetry.d.ts +7 -7
  59. package/dist/routes/webhooks.d.ts.map +1 -1
  60. package/dist/routes/workflows.d.ts +14 -14
  61. package/dist/routes/ws/artifacts.d.ts +57 -0
  62. package/dist/routes/ws/artifacts.d.ts.map +1 -0
  63. package/dist/routes/ws/events.d.ts +8 -7
  64. package/dist/routes/ws/events.d.ts.map +1 -1
  65. package/dist/routes/ws/index.d.ts +2 -1
  66. package/dist/routes/ws/index.d.ts.map +1 -1
  67. package/dist/routes/ws/logs.d.ts +10 -10
  68. package/dist/routes/ws/shared-sockets.d.ts +52 -0
  69. package/dist/routes/ws/shared-sockets.d.ts.map +1 -0
  70. package/dist/schemas/actions.d.ts +7 -7
  71. package/dist/schemas/activity.d.ts +16 -16
  72. package/dist/schemas/agent-approvals.d.ts +27 -27
  73. package/dist/schemas/agents.d.ts +642 -196
  74. package/dist/schemas/agents.d.ts.map +1 -1
  75. package/dist/schemas/ai-accounting.d.ts +41 -41
  76. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  77. package/dist/schemas/artifacts.d.ts +2106 -127
  78. package/dist/schemas/artifacts.d.ts.map +1 -1
  79. package/dist/schemas/auth.d.ts +63 -63
  80. package/dist/schemas/connectors.d.ts +180 -20
  81. package/dist/schemas/connectors.d.ts.map +1 -1
  82. package/dist/schemas/datasets.d.ts +44 -44
  83. package/dist/schemas/event-payloads.d.ts +2 -2
  84. package/dist/schemas/events.d.ts +26 -26
  85. package/dist/schemas/events.d.ts.map +1 -1
  86. package/dist/schemas/files.d.ts +12 -0
  87. package/dist/schemas/files.d.ts.map +1 -1
  88. package/dist/schemas/lake.d.ts +251 -0
  89. package/dist/schemas/lake.d.ts.map +1 -0
  90. package/dist/schemas/lineage.d.ts +56 -56
  91. package/dist/schemas/logs.d.ts +18 -18
  92. package/dist/schemas/models.d.ts +4 -4
  93. package/dist/schemas/objects.d.ts.map +1 -1
  94. package/dist/schemas/ontology.d.ts +14 -14
  95. package/dist/schemas/pipelines.d.ts +86 -64
  96. package/dist/schemas/pipelines.d.ts.map +1 -1
  97. package/dist/schemas/projections.d.ts +160 -160
  98. package/dist/schemas/projections.d.ts.map +1 -1
  99. package/dist/schemas/share-grants.d.ts +30 -30
  100. package/dist/schemas/shared-access.d.ts +17 -4
  101. package/dist/schemas/shared-access.d.ts.map +1 -1
  102. package/dist/schemas/status.d.ts +59 -79
  103. package/dist/schemas/status.d.ts.map +1 -1
  104. package/dist/schemas/syncs.d.ts +38 -22
  105. package/dist/schemas/syncs.d.ts.map +1 -1
  106. package/dist/schemas/telemetry.d.ts +26 -26
  107. package/dist/schemas/workflows.d.ts +71 -71
  108. package/dist/server.d.ts +13 -0
  109. package/dist/server.d.ts.map +1 -1
  110. package/dist/utils/ws.d.ts +3 -0
  111. package/dist/utils/ws.d.ts.map +1 -1
  112. package/package.json +11 -7
  113. package/src/artifacts/frame.ts +4 -13
  114. package/src/auth/scope.ts +10 -1
  115. package/src/auth/shared-access.ts +108 -12
  116. package/src/connectors/http.ts +35 -1
  117. package/src/live/README.md +136 -0
  118. package/src/live/awareness.ts +141 -0
  119. package/src/live/room.ts +933 -0
  120. package/src/live/rooms.ts +288 -0
  121. package/src/registerRoutes.ts +2 -0
  122. package/src/routes/agent-computers.ts +208 -14
  123. package/src/routes/agent-runners.ts +1 -0
  124. package/src/routes/agents.ts +52 -7
  125. package/src/routes/artifact-frames.ts +40 -12
  126. package/src/routes/artifacts.ts +713 -28
  127. package/src/routes/connector-connection-runs.ts +7 -12
  128. package/src/routes/connector-connections.ts +10 -7
  129. package/src/routes/lake.ts +73 -0
  130. package/src/routes/objects.ts +3 -9
  131. package/src/routes/pipelines.ts +1 -0
  132. package/src/routes/shared-access.ts +53 -1
  133. package/src/routes/status.ts +9 -4
  134. package/src/routes/syncs.ts +1 -0
  135. package/src/routes/webhooks.ts +44 -3
  136. package/src/routes/ws/artifacts.ts +138 -0
  137. package/src/routes/ws/events.ts +7 -2
  138. package/src/routes/ws/index.ts +13 -2
  139. package/src/routes/ws/shared-sockets.ts +152 -0
  140. package/src/schemas/agents.ts +71 -1
  141. package/src/schemas/ai-accounting.ts +1 -0
  142. package/src/schemas/artifacts.ts +255 -18
  143. package/src/schemas/connectors.ts +17 -2
  144. package/src/schemas/files.ts +12 -0
  145. package/src/schemas/lake.ts +53 -0
  146. package/src/schemas/objects.ts +1 -0
  147. package/src/schemas/pipelines.ts +2 -0
  148. package/src/schemas/projections.ts +2 -2
  149. package/src/schemas/shared-access.ts +16 -0
  150. package/src/schemas/status.ts +16 -22
  151. package/src/schemas/syncs.ts +2 -0
  152. package/src/server.ts +35 -4
  153. package/src/utils/ws.ts +7 -0
@@ -2,6 +2,8 @@ import { z } from "zod";
2
2
  export declare const ArtifactVersionSchema: z.ZodObject<{
3
3
  artifactId: z.ZodString;
4
4
  version: z.ZodNumber;
5
+ revision: z.ZodNumber;
6
+ frozen: z.ZodBoolean;
5
7
  title: z.ZodString;
6
8
  entry: z.ZodString;
7
9
  files: z.ZodArray<z.ZodObject<{
@@ -29,7 +31,6 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
29
31
  logicalPath?: string | undefined;
30
32
  }>;
31
33
  }, "strip", z.ZodTypeAny, {
32
- path: string;
33
34
  file: {
34
35
  blobId: string;
35
36
  digest: string;
@@ -38,8 +39,8 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
38
39
  mediaType?: string | undefined;
39
40
  logicalPath?: string | undefined;
40
41
  };
41
- }, {
42
42
  path: string;
43
+ }, {
43
44
  file: {
44
45
  blobId: string;
45
46
  digest: string;
@@ -48,6 +49,7 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
48
49
  mediaType?: string | undefined;
49
50
  logicalPath?: string | undefined;
50
51
  };
52
+ path: string;
51
53
  }>, "many">;
52
54
  outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
53
55
  kind: z.ZodLiteral<"document">;
@@ -152,20 +154,23 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
152
154
  file: z.ZodString;
153
155
  w: z.ZodNumber;
154
156
  h: z.ZodNumber;
157
+ renderKey: z.ZodOptional<z.ZodString>;
155
158
  }, "strip", z.ZodTypeAny, {
159
+ file: string;
156
160
  id: string;
157
161
  type: "board";
158
- file: string;
159
162
  w: number;
160
163
  h: number;
161
164
  title?: string | undefined;
165
+ renderKey?: string | undefined;
162
166
  }, {
167
+ file: string;
163
168
  id: string;
164
169
  type: "board";
165
- file: string;
166
170
  w: number;
167
171
  h: number;
168
172
  title?: string | undefined;
173
+ renderKey?: string | undefined;
169
174
  }>, z.ZodObject<{
170
175
  id: z.ZodString;
171
176
  type: z.ZodLiteral<"section">;
@@ -179,34 +184,39 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
179
184
  type: "section";
180
185
  title?: string | undefined;
181
186
  }>]>, "many">;
187
+ themes: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
182
188
  }, "strip", z.ZodTypeAny, {
183
189
  kind: "canvas";
184
190
  items: ({
191
+ file: string;
185
192
  id: string;
186
193
  type: "board";
187
- file: string;
188
194
  w: number;
189
195
  h: number;
190
196
  title?: string | undefined;
197
+ renderKey?: string | undefined;
191
198
  } | {
192
199
  id: string;
193
200
  type: "section";
194
201
  title?: string | undefined;
195
202
  })[];
203
+ themes?: ("light" | "dark")[] | undefined;
196
204
  }, {
197
205
  kind: "canvas";
198
206
  items: ({
207
+ file: string;
199
208
  id: string;
200
209
  type: "board";
201
- file: string;
202
210
  w: number;
203
211
  h: number;
204
212
  title?: string | undefined;
213
+ renderKey?: string | undefined;
205
214
  } | {
206
215
  id: string;
207
216
  type: "section";
208
217
  title?: string | undefined;
209
218
  })[];
219
+ themes?: ("light" | "dark")[] | undefined;
210
220
  }>, z.ZodObject<{
211
221
  kind: z.ZodLiteral<"file">;
212
222
  mediaType: z.ZodString;
@@ -254,12 +264,24 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
254
264
  threadId: string;
255
265
  }>>;
256
266
  createdAt: z.ZodString;
267
+ updatedAt: z.ZodString;
268
+ frozenAt: z.ZodOptional<z.ZodString>;
269
+ frozenBy: z.ZodOptional<z.ZodObject<{
270
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
271
+ id: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ id: string;
274
+ type: "user" | "serviceAccount" | "system";
275
+ }, {
276
+ id: string;
277
+ type: "user" | "serviceAccount" | "system";
278
+ }>>;
279
+ boardPreviews: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ready", "pending", "none"]>>>;
257
280
  }, "strip", z.ZodTypeAny, {
258
281
  title: string;
259
282
  version: number;
260
283
  createdAt: string;
261
284
  files: {
262
- path: string;
263
285
  file: {
264
286
  blobId: string;
265
287
  digest: string;
@@ -268,12 +290,16 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
268
290
  mediaType?: string | undefined;
269
291
  logicalPath?: string | undefined;
270
292
  };
293
+ path: string;
271
294
  }[];
295
+ updatedAt: string;
296
+ revision: number;
272
297
  author: {
273
298
  id: string;
274
299
  type: "user" | "serviceAccount" | "system";
275
300
  };
276
301
  artifactId: string;
302
+ frozen: boolean;
277
303
  entry: string;
278
304
  outline: {
279
305
  kind: "document";
@@ -302,17 +328,19 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
302
328
  } | {
303
329
  kind: "canvas";
304
330
  items: ({
331
+ file: string;
305
332
  id: string;
306
333
  type: "board";
307
- file: string;
308
334
  w: number;
309
335
  h: number;
310
336
  title?: string | undefined;
337
+ renderKey?: string | undefined;
311
338
  } | {
312
339
  id: string;
313
340
  type: "section";
314
341
  title?: string | undefined;
315
342
  })[];
343
+ themes?: ("light" | "dark")[] | undefined;
316
344
  } | {
317
345
  kind: "file";
318
346
  mediaType: string;
@@ -327,12 +355,17 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
327
355
  runId: string;
328
356
  threadId: string;
329
357
  } | undefined;
358
+ frozenAt?: string | undefined;
359
+ frozenBy?: {
360
+ id: string;
361
+ type: "user" | "serviceAccount" | "system";
362
+ } | undefined;
363
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
330
364
  }, {
331
365
  title: string;
332
366
  version: number;
333
367
  createdAt: string;
334
368
  files: {
335
- path: string;
336
369
  file: {
337
370
  blobId: string;
338
371
  digest: string;
@@ -341,12 +374,16 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
341
374
  mediaType?: string | undefined;
342
375
  logicalPath?: string | undefined;
343
376
  };
377
+ path: string;
344
378
  }[];
379
+ updatedAt: string;
380
+ revision: number;
345
381
  author: {
346
382
  id: string;
347
383
  type: "user" | "serviceAccount" | "system";
348
384
  };
349
385
  artifactId: string;
386
+ frozen: boolean;
350
387
  entry: string;
351
388
  outline: {
352
389
  kind: "document";
@@ -375,17 +412,19 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
375
412
  } | {
376
413
  kind: "canvas";
377
414
  items: ({
415
+ file: string;
378
416
  id: string;
379
417
  type: "board";
380
- file: string;
381
418
  w: number;
382
419
  h: number;
383
420
  title?: string | undefined;
421
+ renderKey?: string | undefined;
384
422
  } | {
385
423
  id: string;
386
424
  type: "section";
387
425
  title?: string | undefined;
388
426
  })[];
427
+ themes?: ("light" | "dark")[] | undefined;
389
428
  } | {
390
429
  kind: "file";
391
430
  mediaType: string;
@@ -400,6 +439,12 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
400
439
  runId: string;
401
440
  threadId: string;
402
441
  } | undefined;
442
+ frozenAt?: string | undefined;
443
+ frozenBy?: {
444
+ id: string;
445
+ type: "user" | "serviceAccount" | "system";
446
+ } | undefined;
447
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
403
448
  }>;
404
449
  export declare const ArtifactParamsSchema: z.ZodObject<{
405
450
  artifactId: z.ZodString;
@@ -419,6 +464,41 @@ export declare const ArtifactVersionParamsSchema: z.ZodObject<{
419
464
  version: string;
420
465
  artifactId: string;
421
466
  }>;
467
+ export declare const ArtifactBoardPreviewParamsSchema: z.ZodObject<{
468
+ artifactId: z.ZodString;
469
+ } & {
470
+ version: z.ZodString;
471
+ } & {
472
+ board: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ version: string;
475
+ artifactId: string;
476
+ board: string;
477
+ }, {
478
+ version: string;
479
+ artifactId: string;
480
+ board: string;
481
+ }>;
482
+ export declare const ArtifactBoardPreviewQuerySchema: z.ZodObject<{
483
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
484
+ size: z.ZodOptional<z.ZodEnum<["full", "small"]>>;
485
+ revision: z.ZodOptional<z.ZodNumber>;
486
+ key: z.ZodOptional<z.ZodString>;
487
+ } & {
488
+ shareGrant: z.ZodOptional<z.ZodString>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ shareGrant?: string | undefined;
491
+ key?: string | undefined;
492
+ size?: "full" | "small" | undefined;
493
+ revision?: number | undefined;
494
+ theme?: "light" | "dark" | undefined;
495
+ }, {
496
+ shareGrant?: string | undefined;
497
+ key?: string | undefined;
498
+ size?: "full" | "small" | undefined;
499
+ revision?: number | undefined;
500
+ theme?: "light" | "dark" | undefined;
501
+ }>;
422
502
  export declare const ArtifactQueryParamsSchema: z.ZodObject<{
423
503
  artifactId: z.ZodString;
424
504
  } & {
@@ -467,6 +547,7 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
467
547
  type: "user" | "serviceAccount" | "system";
468
548
  }>;
469
549
  latestVersion: z.ZodNumber;
550
+ revision: z.ZodNumber;
470
551
  createdAt: z.ZodString;
471
552
  updatedAt: z.ZodString;
472
553
  }, "strip", z.ZodTypeAny, {
@@ -480,6 +561,7 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
480
561
  type: "user" | "serviceAccount" | "system";
481
562
  };
482
563
  updatedAt: string;
564
+ revision: number;
483
565
  latestVersion: number;
484
566
  }, {
485
567
  projectId: string;
@@ -492,6 +574,7 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
492
574
  type: "user" | "serviceAccount" | "system";
493
575
  };
494
576
  updatedAt: string;
577
+ revision: number;
495
578
  latestVersion: number;
496
579
  }>, "many">;
497
580
  hasMore: z.ZodBoolean;
@@ -508,6 +591,7 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
508
591
  type: "user" | "serviceAccount" | "system";
509
592
  };
510
593
  updatedAt: string;
594
+ revision: number;
511
595
  latestVersion: number;
512
596
  }[];
513
597
  hasMore: boolean;
@@ -524,6 +608,7 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
524
608
  type: "user" | "serviceAccount" | "system";
525
609
  };
526
610
  updatedAt: string;
611
+ revision: number;
527
612
  latestVersion: number;
528
613
  }[];
529
614
  hasMore: boolean;
@@ -546,6 +631,7 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
546
631
  type: "user" | "serviceAccount" | "system";
547
632
  }>;
548
633
  latestVersion: z.ZodNumber;
634
+ revision: z.ZodNumber;
549
635
  createdAt: z.ZodString;
550
636
  updatedAt: z.ZodString;
551
637
  }, "strip", z.ZodTypeAny, {
@@ -559,6 +645,7 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
559
645
  type: "user" | "serviceAccount" | "system";
560
646
  };
561
647
  updatedAt: string;
648
+ revision: number;
562
649
  latestVersion: number;
563
650
  }, {
564
651
  projectId: string;
@@ -571,11 +658,14 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
571
658
  type: "user" | "serviceAccount" | "system";
572
659
  };
573
660
  updatedAt: string;
661
+ revision: number;
574
662
  latestVersion: number;
575
663
  }>;
576
664
  versions: z.ZodArray<z.ZodObject<Pick<{
577
665
  artifactId: z.ZodString;
578
666
  version: z.ZodNumber;
667
+ revision: z.ZodNumber;
668
+ frozen: z.ZodBoolean;
579
669
  title: z.ZodString;
580
670
  entry: z.ZodString;
581
671
  files: z.ZodArray<z.ZodObject<{
@@ -603,7 +693,6 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
603
693
  logicalPath?: string | undefined;
604
694
  }>;
605
695
  }, "strip", z.ZodTypeAny, {
606
- path: string;
607
696
  file: {
608
697
  blobId: string;
609
698
  digest: string;
@@ -612,8 +701,8 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
612
701
  mediaType?: string | undefined;
613
702
  logicalPath?: string | undefined;
614
703
  };
615
- }, {
616
704
  path: string;
705
+ }, {
617
706
  file: {
618
707
  blobId: string;
619
708
  digest: string;
@@ -622,6 +711,7 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
622
711
  mediaType?: string | undefined;
623
712
  logicalPath?: string | undefined;
624
713
  };
714
+ path: string;
625
715
  }>, "many">;
626
716
  outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
627
717
  kind: z.ZodLiteral<"document">;
@@ -726,20 +816,23 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
726
816
  file: z.ZodString;
727
817
  w: z.ZodNumber;
728
818
  h: z.ZodNumber;
819
+ renderKey: z.ZodOptional<z.ZodString>;
729
820
  }, "strip", z.ZodTypeAny, {
821
+ file: string;
730
822
  id: string;
731
823
  type: "board";
732
- file: string;
733
824
  w: number;
734
825
  h: number;
735
826
  title?: string | undefined;
827
+ renderKey?: string | undefined;
736
828
  }, {
829
+ file: string;
737
830
  id: string;
738
831
  type: "board";
739
- file: string;
740
832
  w: number;
741
833
  h: number;
742
834
  title?: string | undefined;
835
+ renderKey?: string | undefined;
743
836
  }>, z.ZodObject<{
744
837
  id: z.ZodString;
745
838
  type: z.ZodLiteral<"section">;
@@ -753,34 +846,39 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
753
846
  type: "section";
754
847
  title?: string | undefined;
755
848
  }>]>, "many">;
849
+ themes: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
756
850
  }, "strip", z.ZodTypeAny, {
757
851
  kind: "canvas";
758
852
  items: ({
853
+ file: string;
759
854
  id: string;
760
855
  type: "board";
761
- file: string;
762
856
  w: number;
763
857
  h: number;
764
858
  title?: string | undefined;
859
+ renderKey?: string | undefined;
765
860
  } | {
766
861
  id: string;
767
862
  type: "section";
768
863
  title?: string | undefined;
769
864
  })[];
865
+ themes?: ("light" | "dark")[] | undefined;
770
866
  }, {
771
867
  kind: "canvas";
772
868
  items: ({
869
+ file: string;
773
870
  id: string;
774
871
  type: "board";
775
- file: string;
776
872
  w: number;
777
873
  h: number;
778
874
  title?: string | undefined;
875
+ renderKey?: string | undefined;
779
876
  } | {
780
877
  id: string;
781
878
  type: "section";
782
879
  title?: string | undefined;
783
880
  })[];
881
+ themes?: ("light" | "dark")[] | undefined;
784
882
  }>, z.ZodObject<{
785
883
  kind: z.ZodLiteral<"file">;
786
884
  mediaType: z.ZodString;
@@ -828,30 +926,59 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
828
926
  threadId: string;
829
927
  }>>;
830
928
  createdAt: z.ZodString;
831
- }, "origin" | "title" | "version" | "createdAt" | "author">, "strip", z.ZodTypeAny, {
929
+ updatedAt: z.ZodString;
930
+ frozenAt: z.ZodOptional<z.ZodString>;
931
+ frozenBy: z.ZodOptional<z.ZodObject<{
932
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
933
+ id: z.ZodString;
934
+ }, "strip", z.ZodTypeAny, {
935
+ id: string;
936
+ type: "user" | "serviceAccount" | "system";
937
+ }, {
938
+ id: string;
939
+ type: "user" | "serviceAccount" | "system";
940
+ }>>;
941
+ boardPreviews: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ready", "pending", "none"]>>>;
942
+ }, "origin" | "title" | "version" | "createdAt" | "updatedAt" | "revision" | "author" | "frozen" | "frozenAt" | "frozenBy">, "strip", z.ZodTypeAny, {
832
943
  title: string;
833
944
  version: number;
834
945
  createdAt: string;
946
+ updatedAt: string;
947
+ revision: number;
835
948
  author: {
836
949
  id: string;
837
950
  type: "user" | "serviceAccount" | "system";
838
951
  };
952
+ frozen: boolean;
839
953
  origin?: {
840
954
  runId: string;
841
955
  threadId: string;
842
956
  } | undefined;
957
+ frozenAt?: string | undefined;
958
+ frozenBy?: {
959
+ id: string;
960
+ type: "user" | "serviceAccount" | "system";
961
+ } | undefined;
843
962
  }, {
844
963
  title: string;
845
964
  version: number;
846
965
  createdAt: string;
966
+ updatedAt: string;
967
+ revision: number;
847
968
  author: {
848
969
  id: string;
849
970
  type: "user" | "serviceAccount" | "system";
850
971
  };
972
+ frozen: boolean;
851
973
  origin?: {
852
974
  runId: string;
853
975
  threadId: string;
854
976
  } | undefined;
977
+ frozenAt?: string | undefined;
978
+ frozenBy?: {
979
+ id: string;
980
+ type: "user" | "serviceAccount" | "system";
981
+ } | undefined;
855
982
  }>, "many">;
856
983
  access: z.ZodEnum<["owner", "update", "read"]>;
857
984
  }, "strip", z.ZodTypeAny, {
@@ -866,22 +993,31 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
866
993
  type: "user" | "serviceAccount" | "system";
867
994
  };
868
995
  updatedAt: string;
996
+ revision: number;
869
997
  latestVersion: number;
870
998
  };
999
+ access: "read" | "owner" | "update";
871
1000
  versions: {
872
1001
  title: string;
873
1002
  version: number;
874
1003
  createdAt: string;
1004
+ updatedAt: string;
1005
+ revision: number;
875
1006
  author: {
876
1007
  id: string;
877
1008
  type: "user" | "serviceAccount" | "system";
878
1009
  };
1010
+ frozen: boolean;
879
1011
  origin?: {
880
1012
  runId: string;
881
1013
  threadId: string;
882
1014
  } | undefined;
1015
+ frozenAt?: string | undefined;
1016
+ frozenBy?: {
1017
+ id: string;
1018
+ type: "user" | "serviceAccount" | "system";
1019
+ } | undefined;
883
1020
  }[];
884
- access: "owner" | "read" | "update";
885
1021
  }, {
886
1022
  artifact: {
887
1023
  projectId: string;
@@ -894,22 +1030,31 @@ export declare const ArtifactResponseSchema: z.ZodObject<{
894
1030
  type: "user" | "serviceAccount" | "system";
895
1031
  };
896
1032
  updatedAt: string;
1033
+ revision: number;
897
1034
  latestVersion: number;
898
1035
  };
1036
+ access: "read" | "owner" | "update";
899
1037
  versions: {
900
1038
  title: string;
901
1039
  version: number;
902
1040
  createdAt: string;
1041
+ updatedAt: string;
1042
+ revision: number;
903
1043
  author: {
904
1044
  id: string;
905
1045
  type: "user" | "serviceAccount" | "system";
906
1046
  };
1047
+ frozen: boolean;
907
1048
  origin?: {
908
1049
  runId: string;
909
1050
  threadId: string;
910
1051
  } | undefined;
1052
+ frozenAt?: string | undefined;
1053
+ frozenBy?: {
1054
+ id: string;
1055
+ type: "user" | "serviceAccount" | "system";
1056
+ } | undefined;
911
1057
  }[];
912
- access: "owner" | "read" | "update";
913
1058
  }>;
914
1059
  export declare const PublishArtifactBodySchema: z.ZodObject<{
915
1060
  kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
@@ -939,7 +1084,6 @@ export declare const PublishArtifactBodySchema: z.ZodObject<{
939
1084
  logicalPath?: string | undefined;
940
1085
  }>;
941
1086
  }, "strip", z.ZodTypeAny, {
942
- path: string;
943
1087
  file: {
944
1088
  blobId: string;
945
1089
  digest: string;
@@ -948,8 +1092,8 @@ export declare const PublishArtifactBodySchema: z.ZodObject<{
948
1092
  mediaType?: string | undefined;
949
1093
  logicalPath?: string | undefined;
950
1094
  };
951
- }, {
952
1095
  path: string;
1096
+ }, {
953
1097
  file: {
954
1098
  blobId: string;
955
1099
  digest: string;
@@ -958,12 +1102,12 @@ export declare const PublishArtifactBodySchema: z.ZodObject<{
958
1102
  mediaType?: string | undefined;
959
1103
  logicalPath?: string | undefined;
960
1104
  };
1105
+ path: string;
961
1106
  }>, "many">;
962
1107
  }, "strict", z.ZodTypeAny, {
963
1108
  kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
964
1109
  title: string;
965
1110
  files: {
966
- path: string;
967
1111
  file: {
968
1112
  blobId: string;
969
1113
  digest: string;
@@ -972,12 +1116,12 @@ export declare const PublishArtifactBodySchema: z.ZodObject<{
972
1116
  mediaType?: string | undefined;
973
1117
  logicalPath?: string | undefined;
974
1118
  };
1119
+ path: string;
975
1120
  }[];
976
1121
  }, {
977
1122
  kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
978
1123
  title: string;
979
1124
  files: {
980
- path: string;
981
1125
  file: {
982
1126
  blobId: string;
983
1127
  digest: string;
@@ -986,9 +1130,10 @@ export declare const PublishArtifactBodySchema: z.ZodObject<{
986
1130
  mediaType?: string | undefined;
987
1131
  logicalPath?: string | undefined;
988
1132
  };
1133
+ path: string;
989
1134
  }[];
990
1135
  }>;
991
- export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
1136
+ export declare const UpdateArtifactBodySchema: z.ZodObject<{
992
1137
  kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
993
1138
  title: z.ZodString;
994
1139
  files: z.ZodArray<z.ZodObject<{
@@ -1016,7 +1161,6 @@ export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
1016
1161
  logicalPath?: string | undefined;
1017
1162
  }>;
1018
1163
  }, "strip", z.ZodTypeAny, {
1019
- path: string;
1020
1164
  file: {
1021
1165
  blobId: string;
1022
1166
  digest: string;
@@ -1025,8 +1169,8 @@ export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
1025
1169
  mediaType?: string | undefined;
1026
1170
  logicalPath?: string | undefined;
1027
1171
  };
1028
- }, {
1029
1172
  path: string;
1173
+ }, {
1030
1174
  file: {
1031
1175
  blobId: string;
1032
1176
  digest: string;
@@ -1035,14 +1179,14 @@ export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
1035
1179
  mediaType?: string | undefined;
1036
1180
  logicalPath?: string | undefined;
1037
1181
  };
1182
+ path: string;
1038
1183
  }>, "many">;
1039
1184
  } & {
1040
- baseVersion: z.ZodOptional<z.ZodNumber>;
1185
+ baseRevision: z.ZodOptional<z.ZodNumber>;
1041
1186
  }, "strict", z.ZodTypeAny, {
1042
1187
  kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1043
1188
  title: string;
1044
1189
  files: {
1045
- path: string;
1046
1190
  file: {
1047
1191
  blobId: string;
1048
1192
  digest: string;
@@ -1051,13 +1195,13 @@ export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
1051
1195
  mediaType?: string | undefined;
1052
1196
  logicalPath?: string | undefined;
1053
1197
  };
1198
+ path: string;
1054
1199
  }[];
1055
- baseVersion?: number | undefined;
1200
+ baseRevision?: number | undefined;
1056
1201
  }, {
1057
1202
  kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1058
1203
  title: string;
1059
1204
  files: {
1060
- path: string;
1061
1205
  file: {
1062
1206
  blobId: string;
1063
1207
  digest: string;
@@ -1066,94 +1210,1409 @@ export declare const PublishArtifactVersionBodySchema: z.ZodObject<{
1066
1210
  mediaType?: string | undefined;
1067
1211
  logicalPath?: string | undefined;
1068
1212
  };
1213
+ path: string;
1069
1214
  }[];
1070
- baseVersion?: number | undefined;
1215
+ baseRevision?: number | undefined;
1071
1216
  }>;
1072
- export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1073
- artifact: z.ZodObject<{
1217
+ export declare const FreezeArtifactBodySchema: z.ZodDefault<z.ZodObject<{
1218
+ baseRevision: z.ZodOptional<z.ZodNumber>;
1219
+ }, "strict", z.ZodTypeAny, {
1220
+ baseRevision?: number | undefined;
1221
+ }, {
1222
+ baseRevision?: number | undefined;
1223
+ }>>;
1224
+ export declare const RestoreArtifactBodySchema: z.ZodDefault<z.ZodObject<{
1225
+ baseRevision: z.ZodOptional<z.ZodNumber>;
1226
+ }, "strict", z.ZodTypeAny, {
1227
+ baseRevision?: number | undefined;
1228
+ }, {
1229
+ baseRevision?: number | undefined;
1230
+ }>>;
1231
+ export declare const ArtifactRestorePointParamsSchema: z.ZodObject<{
1232
+ artifactId: z.ZodString;
1233
+ } & {
1234
+ revision: z.ZodString;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ revision: string;
1237
+ artifactId: string;
1238
+ }, {
1239
+ revision: string;
1240
+ artifactId: string;
1241
+ }>;
1242
+ export declare const ArtifactRestorePointSchema: z.ZodObject<{
1243
+ artifactId: z.ZodString;
1244
+ revision: z.ZodNumber;
1245
+ version: z.ZodNumber;
1246
+ frozen: z.ZodBoolean;
1247
+ title: z.ZodString;
1248
+ author: z.ZodObject<{
1249
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1074
1250
  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;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ id: string;
1253
+ type: "user" | "serviceAccount" | "system";
1254
+ }, {
1255
+ id: string;
1256
+ type: "user" | "serviceAccount" | "system";
1257
+ }>;
1258
+ origin: z.ZodOptional<z.ZodObject<{
1259
+ threadId: z.ZodString;
1260
+ runId: z.ZodString;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ runId: string;
1263
+ threadId: string;
1264
+ }, {
1265
+ runId: string;
1266
+ threadId: string;
1267
+ }>>;
1268
+ updatedAt: z.ZodString;
1269
+ reason: z.ZodEnum<["turn", "restore"]>;
1270
+ turnRunId: z.ZodOptional<z.ZodString>;
1271
+ createdAt: z.ZodString;
1272
+ } & {
1273
+ entry: z.ZodString;
1274
+ files: z.ZodArray<z.ZodObject<{
1275
+ path: z.ZodString;
1276
+ file: z.ZodObject<{
1277
+ blobId: z.ZodString;
1278
+ digest: z.ZodString;
1279
+ sizeBytes: z.ZodNumber;
1280
+ fileName: z.ZodOptional<z.ZodString>;
1281
+ mediaType: z.ZodOptional<z.ZodString>;
1282
+ logicalPath: z.ZodOptional<z.ZodString>;
1081
1283
  }, "strip", z.ZodTypeAny, {
1082
- id: string;
1083
- type: "user" | "serviceAccount" | "system";
1284
+ blobId: string;
1285
+ digest: string;
1286
+ sizeBytes: number;
1287
+ fileName?: string | undefined;
1288
+ mediaType?: string | undefined;
1289
+ logicalPath?: string | undefined;
1084
1290
  }, {
1085
- id: string;
1086
- type: "user" | "serviceAccount" | "system";
1291
+ blobId: string;
1292
+ digest: string;
1293
+ sizeBytes: number;
1294
+ fileName?: string | undefined;
1295
+ mediaType?: string | undefined;
1296
+ logicalPath?: string | undefined;
1087
1297
  }>;
1088
- latestVersion: z.ZodNumber;
1089
- createdAt: z.ZodString;
1090
- updatedAt: z.ZodString;
1091
1298
  }, "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";
1299
+ file: {
1300
+ blobId: string;
1301
+ digest: string;
1302
+ sizeBytes: number;
1303
+ fileName?: string | undefined;
1304
+ mediaType?: string | undefined;
1305
+ logicalPath?: string | undefined;
1100
1306
  };
1101
- updatedAt: string;
1102
- latestVersion: number;
1307
+ path: string;
1103
1308
  }, {
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";
1309
+ file: {
1310
+ blobId: string;
1311
+ digest: string;
1312
+ sizeBytes: number;
1313
+ fileName?: string | undefined;
1314
+ mediaType?: string | undefined;
1315
+ logicalPath?: string | undefined;
1112
1316
  };
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
- }>;
1317
+ path: string;
1318
+ }>, "many">;
1319
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1320
+ kind: z.ZodLiteral<"document">;
1321
+ headings: z.ZodArray<z.ZodObject<{
1322
+ depth: z.ZodNumber;
1323
+ text: z.ZodString;
1324
+ slug: z.ZodString;
1145
1325
  }, "strip", z.ZodTypeAny, {
1146
- path: string;
1147
- file: {
1148
- blobId: string;
1326
+ text: string;
1327
+ depth: number;
1328
+ slug: string;
1329
+ }, {
1330
+ text: string;
1331
+ depth: number;
1332
+ slug: string;
1333
+ }>, "many">;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ kind: "document";
1336
+ headings: {
1337
+ text: string;
1338
+ depth: number;
1339
+ slug: string;
1340
+ }[];
1341
+ }, {
1342
+ kind: "document";
1343
+ headings: {
1344
+ text: string;
1345
+ depth: number;
1346
+ slug: string;
1347
+ }[];
1348
+ }>, z.ZodObject<{
1349
+ kind: z.ZodLiteral<"sheet">;
1350
+ sheets: z.ZodArray<z.ZodObject<{
1351
+ name: z.ZodString;
1352
+ rows: z.ZodNumber;
1353
+ columns: z.ZodArray<z.ZodString, "many">;
1354
+ query: z.ZodOptional<z.ZodString>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ name: string;
1357
+ rows: number;
1358
+ columns: string[];
1359
+ query?: string | undefined;
1360
+ }, {
1361
+ name: string;
1362
+ rows: number;
1363
+ columns: string[];
1364
+ query?: string | undefined;
1365
+ }>, "many">;
1366
+ charts: z.ZodArray<z.ZodString, "many">;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ kind: "sheet";
1369
+ sheets: {
1370
+ name: string;
1371
+ rows: number;
1372
+ columns: string[];
1373
+ query?: string | undefined;
1374
+ }[];
1375
+ charts: string[];
1376
+ }, {
1377
+ kind: "sheet";
1378
+ sheets: {
1379
+ name: string;
1380
+ rows: number;
1381
+ columns: string[];
1382
+ query?: string | undefined;
1383
+ }[];
1384
+ charts: string[];
1385
+ }>, z.ZodObject<{
1386
+ kind: z.ZodLiteral<"slides">;
1387
+ slides: z.ZodArray<z.ZodObject<{
1388
+ title: z.ZodOptional<z.ZodString>;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ title?: string | undefined;
1391
+ }, {
1392
+ title?: string | undefined;
1393
+ }>, "many">;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ kind: "slides";
1396
+ slides: {
1397
+ title?: string | undefined;
1398
+ }[];
1399
+ }, {
1400
+ kind: "slides";
1401
+ slides: {
1402
+ title?: string | undefined;
1403
+ }[];
1404
+ }>, z.ZodObject<{
1405
+ kind: z.ZodLiteral<"page">;
1406
+ title: z.ZodOptional<z.ZodString>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ kind: "page";
1409
+ title?: string | undefined;
1410
+ }, {
1411
+ kind: "page";
1412
+ title?: string | undefined;
1413
+ }>, z.ZodObject<{
1414
+ kind: z.ZodLiteral<"canvas">;
1415
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1416
+ id: z.ZodString;
1417
+ type: z.ZodLiteral<"board">;
1418
+ title: z.ZodOptional<z.ZodString>;
1419
+ file: z.ZodString;
1420
+ w: z.ZodNumber;
1421
+ h: z.ZodNumber;
1422
+ renderKey: z.ZodOptional<z.ZodString>;
1423
+ }, "strip", z.ZodTypeAny, {
1424
+ file: string;
1425
+ id: string;
1426
+ type: "board";
1427
+ w: number;
1428
+ h: number;
1429
+ title?: string | undefined;
1430
+ renderKey?: string | undefined;
1431
+ }, {
1432
+ file: string;
1433
+ id: string;
1434
+ type: "board";
1435
+ w: number;
1436
+ h: number;
1437
+ title?: string | undefined;
1438
+ renderKey?: string | undefined;
1439
+ }>, z.ZodObject<{
1440
+ id: z.ZodString;
1441
+ type: z.ZodLiteral<"section">;
1442
+ title: z.ZodOptional<z.ZodString>;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ id: string;
1445
+ type: "section";
1446
+ title?: string | undefined;
1447
+ }, {
1448
+ id: string;
1449
+ type: "section";
1450
+ title?: string | undefined;
1451
+ }>]>, "many">;
1452
+ themes: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
1453
+ }, "strip", z.ZodTypeAny, {
1454
+ kind: "canvas";
1455
+ items: ({
1456
+ file: string;
1457
+ id: string;
1458
+ type: "board";
1459
+ w: number;
1460
+ h: number;
1461
+ title?: string | undefined;
1462
+ renderKey?: string | undefined;
1463
+ } | {
1464
+ id: string;
1465
+ type: "section";
1466
+ title?: string | undefined;
1467
+ })[];
1468
+ themes?: ("light" | "dark")[] | undefined;
1469
+ }, {
1470
+ kind: "canvas";
1471
+ items: ({
1472
+ file: string;
1473
+ id: string;
1474
+ type: "board";
1475
+ w: number;
1476
+ h: number;
1477
+ title?: string | undefined;
1478
+ renderKey?: string | undefined;
1479
+ } | {
1480
+ id: string;
1481
+ type: "section";
1482
+ title?: string | undefined;
1483
+ })[];
1484
+ themes?: ("light" | "dark")[] | undefined;
1485
+ }>, z.ZodObject<{
1486
+ kind: z.ZodLiteral<"file">;
1487
+ mediaType: z.ZodString;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ kind: "file";
1490
+ mediaType: string;
1491
+ }, {
1492
+ kind: "file";
1493
+ mediaType: string;
1494
+ }>]>;
1495
+ references: z.ZodArray<z.ZodObject<{
1496
+ address: z.ZodString;
1497
+ as: z.ZodEnum<["embed", "link"]>;
1498
+ at: z.ZodString;
1499
+ resolvedVersion: z.ZodNumber;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ at: string;
1502
+ address: string;
1503
+ as: "link" | "embed";
1504
+ resolvedVersion: number;
1505
+ }, {
1506
+ at: string;
1507
+ address: string;
1508
+ as: "link" | "embed";
1509
+ resolvedVersion: number;
1510
+ }>, "many">;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ reason: "turn" | "restore";
1513
+ title: string;
1514
+ version: number;
1515
+ createdAt: string;
1516
+ files: {
1517
+ file: {
1518
+ blobId: string;
1519
+ digest: string;
1520
+ sizeBytes: number;
1521
+ fileName?: string | undefined;
1522
+ mediaType?: string | undefined;
1523
+ logicalPath?: string | undefined;
1524
+ };
1525
+ path: string;
1526
+ }[];
1527
+ updatedAt: string;
1528
+ revision: number;
1529
+ author: {
1530
+ id: string;
1531
+ type: "user" | "serviceAccount" | "system";
1532
+ };
1533
+ artifactId: string;
1534
+ frozen: boolean;
1535
+ entry: string;
1536
+ outline: {
1537
+ kind: "document";
1538
+ headings: {
1539
+ text: string;
1540
+ depth: number;
1541
+ slug: string;
1542
+ }[];
1543
+ } | {
1544
+ kind: "sheet";
1545
+ sheets: {
1546
+ name: string;
1547
+ rows: number;
1548
+ columns: string[];
1549
+ query?: string | undefined;
1550
+ }[];
1551
+ charts: string[];
1552
+ } | {
1553
+ kind: "slides";
1554
+ slides: {
1555
+ title?: string | undefined;
1556
+ }[];
1557
+ } | {
1558
+ kind: "page";
1559
+ title?: string | undefined;
1560
+ } | {
1561
+ kind: "canvas";
1562
+ items: ({
1563
+ file: string;
1564
+ id: string;
1565
+ type: "board";
1566
+ w: number;
1567
+ h: number;
1568
+ title?: string | undefined;
1569
+ renderKey?: string | undefined;
1570
+ } | {
1571
+ id: string;
1572
+ type: "section";
1573
+ title?: string | undefined;
1574
+ })[];
1575
+ themes?: ("light" | "dark")[] | undefined;
1576
+ } | {
1577
+ kind: "file";
1578
+ mediaType: string;
1579
+ };
1580
+ references: {
1581
+ at: string;
1582
+ address: string;
1583
+ as: "link" | "embed";
1584
+ resolvedVersion: number;
1585
+ }[];
1586
+ origin?: {
1587
+ runId: string;
1588
+ threadId: string;
1589
+ } | undefined;
1590
+ turnRunId?: string | undefined;
1591
+ }, {
1592
+ reason: "turn" | "restore";
1593
+ title: string;
1594
+ version: number;
1595
+ createdAt: string;
1596
+ files: {
1597
+ file: {
1598
+ blobId: string;
1599
+ digest: string;
1600
+ sizeBytes: number;
1601
+ fileName?: string | undefined;
1602
+ mediaType?: string | undefined;
1603
+ logicalPath?: string | undefined;
1604
+ };
1605
+ path: string;
1606
+ }[];
1607
+ updatedAt: string;
1608
+ revision: number;
1609
+ author: {
1610
+ id: string;
1611
+ type: "user" | "serviceAccount" | "system";
1612
+ };
1613
+ artifactId: string;
1614
+ frozen: boolean;
1615
+ entry: string;
1616
+ outline: {
1617
+ kind: "document";
1618
+ headings: {
1619
+ text: string;
1620
+ depth: number;
1621
+ slug: string;
1622
+ }[];
1623
+ } | {
1624
+ kind: "sheet";
1625
+ sheets: {
1626
+ name: string;
1627
+ rows: number;
1628
+ columns: string[];
1629
+ query?: string | undefined;
1630
+ }[];
1631
+ charts: string[];
1632
+ } | {
1633
+ kind: "slides";
1634
+ slides: {
1635
+ title?: string | undefined;
1636
+ }[];
1637
+ } | {
1638
+ kind: "page";
1639
+ title?: string | undefined;
1640
+ } | {
1641
+ kind: "canvas";
1642
+ items: ({
1643
+ file: string;
1644
+ id: string;
1645
+ type: "board";
1646
+ w: number;
1647
+ h: number;
1648
+ title?: string | undefined;
1649
+ renderKey?: string | undefined;
1650
+ } | {
1651
+ id: string;
1652
+ type: "section";
1653
+ title?: string | undefined;
1654
+ })[];
1655
+ themes?: ("light" | "dark")[] | undefined;
1656
+ } | {
1657
+ kind: "file";
1658
+ mediaType: string;
1659
+ };
1660
+ references: {
1661
+ at: string;
1662
+ address: string;
1663
+ as: "link" | "embed";
1664
+ resolvedVersion: number;
1665
+ }[];
1666
+ origin?: {
1667
+ runId: string;
1668
+ threadId: string;
1669
+ } | undefined;
1670
+ turnRunId?: string | undefined;
1671
+ }>;
1672
+ export declare const ArtifactRestorePointListResponseSchema: z.ZodObject<{
1673
+ restorePoints: z.ZodArray<z.ZodObject<{
1674
+ artifactId: z.ZodString;
1675
+ revision: z.ZodNumber;
1676
+ version: z.ZodNumber;
1677
+ frozen: z.ZodBoolean;
1678
+ title: z.ZodString;
1679
+ author: z.ZodObject<{
1680
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1681
+ id: z.ZodString;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ id: string;
1684
+ type: "user" | "serviceAccount" | "system";
1685
+ }, {
1686
+ id: string;
1687
+ type: "user" | "serviceAccount" | "system";
1688
+ }>;
1689
+ origin: z.ZodOptional<z.ZodObject<{
1690
+ threadId: z.ZodString;
1691
+ runId: z.ZodString;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ runId: string;
1694
+ threadId: string;
1695
+ }, {
1696
+ runId: string;
1697
+ threadId: string;
1698
+ }>>;
1699
+ updatedAt: z.ZodString;
1700
+ reason: z.ZodEnum<["turn", "restore"]>;
1701
+ turnRunId: z.ZodOptional<z.ZodString>;
1702
+ createdAt: z.ZodString;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ reason: "turn" | "restore";
1705
+ title: string;
1706
+ version: number;
1707
+ createdAt: string;
1708
+ updatedAt: string;
1709
+ revision: number;
1710
+ author: {
1711
+ id: string;
1712
+ type: "user" | "serviceAccount" | "system";
1713
+ };
1714
+ artifactId: string;
1715
+ frozen: boolean;
1716
+ origin?: {
1717
+ runId: string;
1718
+ threadId: string;
1719
+ } | undefined;
1720
+ turnRunId?: string | undefined;
1721
+ }, {
1722
+ reason: "turn" | "restore";
1723
+ title: string;
1724
+ version: number;
1725
+ createdAt: string;
1726
+ updatedAt: string;
1727
+ revision: number;
1728
+ author: {
1729
+ id: string;
1730
+ type: "user" | "serviceAccount" | "system";
1731
+ };
1732
+ artifactId: string;
1733
+ frozen: boolean;
1734
+ origin?: {
1735
+ runId: string;
1736
+ threadId: string;
1737
+ } | undefined;
1738
+ turnRunId?: string | undefined;
1739
+ }>, "many">;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ restorePoints: {
1742
+ reason: "turn" | "restore";
1743
+ title: string;
1744
+ version: number;
1745
+ createdAt: string;
1746
+ updatedAt: string;
1747
+ revision: number;
1748
+ author: {
1749
+ id: string;
1750
+ type: "user" | "serviceAccount" | "system";
1751
+ };
1752
+ artifactId: string;
1753
+ frozen: boolean;
1754
+ origin?: {
1755
+ runId: string;
1756
+ threadId: string;
1757
+ } | undefined;
1758
+ turnRunId?: string | undefined;
1759
+ }[];
1760
+ }, {
1761
+ restorePoints: {
1762
+ reason: "turn" | "restore";
1763
+ title: string;
1764
+ version: number;
1765
+ createdAt: string;
1766
+ updatedAt: string;
1767
+ revision: number;
1768
+ author: {
1769
+ id: string;
1770
+ type: "user" | "serviceAccount" | "system";
1771
+ };
1772
+ artifactId: string;
1773
+ frozen: boolean;
1774
+ origin?: {
1775
+ runId: string;
1776
+ threadId: string;
1777
+ } | undefined;
1778
+ turnRunId?: string | undefined;
1779
+ }[];
1780
+ }>;
1781
+ export declare const ArtifactHolderSchema: z.ZodObject<{
1782
+ objectTypeId: z.ZodString;
1783
+ primaryId: z.ZodString;
1784
+ propertyId: z.ZodString;
1785
+ title: z.ZodOptional<z.ZodString>;
1786
+ }, "strip", z.ZodTypeAny, {
1787
+ objectTypeId: string;
1788
+ primaryId: string;
1789
+ propertyId: string;
1790
+ title?: string | undefined;
1791
+ }, {
1792
+ objectTypeId: string;
1793
+ primaryId: string;
1794
+ propertyId: string;
1795
+ title?: string | undefined;
1796
+ }>;
1797
+ export declare const ArtifactHolderListResponseSchema: z.ZodObject<{
1798
+ holders: z.ZodArray<z.ZodObject<{
1799
+ objectTypeId: z.ZodString;
1800
+ primaryId: z.ZodString;
1801
+ propertyId: z.ZodString;
1802
+ title: z.ZodOptional<z.ZodString>;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ objectTypeId: string;
1805
+ primaryId: string;
1806
+ propertyId: string;
1807
+ title?: string | undefined;
1808
+ }, {
1809
+ objectTypeId: string;
1810
+ primaryId: string;
1811
+ propertyId: string;
1812
+ title?: string | undefined;
1813
+ }>, "many">;
1814
+ hasMore: z.ZodBoolean;
1815
+ }, "strip", z.ZodTypeAny, {
1816
+ hasMore: boolean;
1817
+ holders: {
1818
+ objectTypeId: string;
1819
+ primaryId: string;
1820
+ propertyId: string;
1821
+ title?: string | undefined;
1822
+ }[];
1823
+ }, {
1824
+ hasMore: boolean;
1825
+ holders: {
1826
+ objectTypeId: string;
1827
+ primaryId: string;
1828
+ propertyId: string;
1829
+ title?: string | undefined;
1830
+ }[];
1831
+ }>;
1832
+ export declare const ArtifactChangeResponseSchema: z.ZodObject<{
1833
+ artifact: z.ZodObject<{
1834
+ id: z.ZodString;
1835
+ projectId: z.ZodString;
1836
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
1837
+ title: z.ZodString;
1838
+ owner: z.ZodObject<{
1839
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1840
+ id: z.ZodString;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ id: string;
1843
+ type: "user" | "serviceAccount" | "system";
1844
+ }, {
1845
+ id: string;
1846
+ type: "user" | "serviceAccount" | "system";
1847
+ }>;
1848
+ latestVersion: z.ZodNumber;
1849
+ revision: z.ZodNumber;
1850
+ createdAt: z.ZodString;
1851
+ updatedAt: z.ZodString;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ projectId: string;
1854
+ id: string;
1855
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1856
+ title: string;
1857
+ createdAt: string;
1858
+ owner: {
1859
+ id: string;
1860
+ type: "user" | "serviceAccount" | "system";
1861
+ };
1862
+ updatedAt: string;
1863
+ revision: number;
1864
+ latestVersion: number;
1865
+ }, {
1866
+ projectId: string;
1867
+ id: string;
1868
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
1869
+ title: string;
1870
+ createdAt: string;
1871
+ owner: {
1872
+ id: string;
1873
+ type: "user" | "serviceAccount" | "system";
1874
+ };
1875
+ updatedAt: string;
1876
+ revision: number;
1877
+ latestVersion: number;
1878
+ }>;
1879
+ version: z.ZodObject<{
1880
+ artifactId: z.ZodString;
1881
+ version: z.ZodNumber;
1882
+ revision: z.ZodNumber;
1883
+ frozen: z.ZodBoolean;
1884
+ title: z.ZodString;
1885
+ entry: z.ZodString;
1886
+ files: z.ZodArray<z.ZodObject<{
1887
+ path: z.ZodString;
1888
+ file: z.ZodObject<{
1889
+ blobId: z.ZodString;
1890
+ digest: z.ZodString;
1891
+ sizeBytes: z.ZodNumber;
1892
+ fileName: z.ZodOptional<z.ZodString>;
1893
+ mediaType: z.ZodOptional<z.ZodString>;
1894
+ logicalPath: z.ZodOptional<z.ZodString>;
1895
+ }, "strip", z.ZodTypeAny, {
1896
+ blobId: string;
1897
+ digest: string;
1898
+ sizeBytes: number;
1899
+ fileName?: string | undefined;
1900
+ mediaType?: string | undefined;
1901
+ logicalPath?: string | undefined;
1902
+ }, {
1903
+ blobId: string;
1904
+ digest: string;
1905
+ sizeBytes: number;
1906
+ fileName?: string | undefined;
1907
+ mediaType?: string | undefined;
1908
+ logicalPath?: string | undefined;
1909
+ }>;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ file: {
1912
+ blobId: string;
1913
+ digest: string;
1914
+ sizeBytes: number;
1915
+ fileName?: string | undefined;
1916
+ mediaType?: string | undefined;
1917
+ logicalPath?: string | undefined;
1918
+ };
1919
+ path: string;
1920
+ }, {
1921
+ file: {
1922
+ blobId: string;
1923
+ digest: string;
1924
+ sizeBytes: number;
1925
+ fileName?: string | undefined;
1926
+ mediaType?: string | undefined;
1927
+ logicalPath?: string | undefined;
1928
+ };
1929
+ path: string;
1930
+ }>, "many">;
1931
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1932
+ kind: z.ZodLiteral<"document">;
1933
+ headings: z.ZodArray<z.ZodObject<{
1934
+ depth: z.ZodNumber;
1935
+ text: z.ZodString;
1936
+ slug: z.ZodString;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ text: string;
1939
+ depth: number;
1940
+ slug: string;
1941
+ }, {
1942
+ text: string;
1943
+ depth: number;
1944
+ slug: string;
1945
+ }>, "many">;
1946
+ }, "strip", z.ZodTypeAny, {
1947
+ kind: "document";
1948
+ headings: {
1949
+ text: string;
1950
+ depth: number;
1951
+ slug: string;
1952
+ }[];
1953
+ }, {
1954
+ kind: "document";
1955
+ headings: {
1956
+ text: string;
1957
+ depth: number;
1958
+ slug: string;
1959
+ }[];
1960
+ }>, z.ZodObject<{
1961
+ kind: z.ZodLiteral<"sheet">;
1962
+ sheets: z.ZodArray<z.ZodObject<{
1963
+ name: z.ZodString;
1964
+ rows: z.ZodNumber;
1965
+ columns: z.ZodArray<z.ZodString, "many">;
1966
+ query: z.ZodOptional<z.ZodString>;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ name: string;
1969
+ rows: number;
1970
+ columns: string[];
1971
+ query?: string | undefined;
1972
+ }, {
1973
+ name: string;
1974
+ rows: number;
1975
+ columns: string[];
1976
+ query?: string | undefined;
1977
+ }>, "many">;
1978
+ charts: z.ZodArray<z.ZodString, "many">;
1979
+ }, "strip", z.ZodTypeAny, {
1980
+ kind: "sheet";
1981
+ sheets: {
1982
+ name: string;
1983
+ rows: number;
1984
+ columns: string[];
1985
+ query?: string | undefined;
1986
+ }[];
1987
+ charts: string[];
1988
+ }, {
1989
+ kind: "sheet";
1990
+ sheets: {
1991
+ name: string;
1992
+ rows: number;
1993
+ columns: string[];
1994
+ query?: string | undefined;
1995
+ }[];
1996
+ charts: string[];
1997
+ }>, z.ZodObject<{
1998
+ kind: z.ZodLiteral<"slides">;
1999
+ slides: z.ZodArray<z.ZodObject<{
2000
+ title: z.ZodOptional<z.ZodString>;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ title?: string | undefined;
2003
+ }, {
2004
+ title?: string | undefined;
2005
+ }>, "many">;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ kind: "slides";
2008
+ slides: {
2009
+ title?: string | undefined;
2010
+ }[];
2011
+ }, {
2012
+ kind: "slides";
2013
+ slides: {
2014
+ title?: string | undefined;
2015
+ }[];
2016
+ }>, z.ZodObject<{
2017
+ kind: z.ZodLiteral<"page">;
2018
+ title: z.ZodOptional<z.ZodString>;
2019
+ }, "strip", z.ZodTypeAny, {
2020
+ kind: "page";
2021
+ title?: string | undefined;
2022
+ }, {
2023
+ kind: "page";
2024
+ title?: string | undefined;
2025
+ }>, z.ZodObject<{
2026
+ kind: z.ZodLiteral<"canvas">;
2027
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2028
+ id: z.ZodString;
2029
+ type: z.ZodLiteral<"board">;
2030
+ title: z.ZodOptional<z.ZodString>;
2031
+ file: z.ZodString;
2032
+ w: z.ZodNumber;
2033
+ h: z.ZodNumber;
2034
+ renderKey: z.ZodOptional<z.ZodString>;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ file: string;
2037
+ id: string;
2038
+ type: "board";
2039
+ w: number;
2040
+ h: number;
2041
+ title?: string | undefined;
2042
+ renderKey?: string | undefined;
2043
+ }, {
2044
+ file: string;
2045
+ id: string;
2046
+ type: "board";
2047
+ w: number;
2048
+ h: number;
2049
+ title?: string | undefined;
2050
+ renderKey?: string | undefined;
2051
+ }>, z.ZodObject<{
2052
+ id: z.ZodString;
2053
+ type: z.ZodLiteral<"section">;
2054
+ title: z.ZodOptional<z.ZodString>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ id: string;
2057
+ type: "section";
2058
+ title?: string | undefined;
2059
+ }, {
2060
+ id: string;
2061
+ type: "section";
2062
+ title?: string | undefined;
2063
+ }>]>, "many">;
2064
+ themes: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ kind: "canvas";
2067
+ items: ({
2068
+ file: string;
2069
+ id: string;
2070
+ type: "board";
2071
+ w: number;
2072
+ h: number;
2073
+ title?: string | undefined;
2074
+ renderKey?: string | undefined;
2075
+ } | {
2076
+ id: string;
2077
+ type: "section";
2078
+ title?: string | undefined;
2079
+ })[];
2080
+ themes?: ("light" | "dark")[] | undefined;
2081
+ }, {
2082
+ kind: "canvas";
2083
+ items: ({
2084
+ file: string;
2085
+ id: string;
2086
+ type: "board";
2087
+ w: number;
2088
+ h: number;
2089
+ title?: string | undefined;
2090
+ renderKey?: string | undefined;
2091
+ } | {
2092
+ id: string;
2093
+ type: "section";
2094
+ title?: string | undefined;
2095
+ })[];
2096
+ themes?: ("light" | "dark")[] | undefined;
2097
+ }>, z.ZodObject<{
2098
+ kind: z.ZodLiteral<"file">;
2099
+ mediaType: z.ZodString;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ kind: "file";
2102
+ mediaType: string;
2103
+ }, {
2104
+ kind: "file";
2105
+ mediaType: string;
2106
+ }>]>;
2107
+ references: z.ZodArray<z.ZodObject<{
2108
+ address: z.ZodString;
2109
+ as: z.ZodEnum<["embed", "link"]>;
2110
+ at: z.ZodString;
2111
+ resolvedVersion: z.ZodNumber;
2112
+ }, "strip", z.ZodTypeAny, {
2113
+ at: string;
2114
+ address: string;
2115
+ as: "link" | "embed";
2116
+ resolvedVersion: number;
2117
+ }, {
2118
+ at: string;
2119
+ address: string;
2120
+ as: "link" | "embed";
2121
+ resolvedVersion: number;
2122
+ }>, "many">;
2123
+ author: z.ZodObject<{
2124
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
2125
+ id: z.ZodString;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ id: string;
2128
+ type: "user" | "serviceAccount" | "system";
2129
+ }, {
2130
+ id: string;
2131
+ type: "user" | "serviceAccount" | "system";
2132
+ }>;
2133
+ origin: z.ZodOptional<z.ZodObject<{
2134
+ threadId: z.ZodString;
2135
+ runId: z.ZodString;
2136
+ }, "strip", z.ZodTypeAny, {
2137
+ runId: string;
2138
+ threadId: string;
2139
+ }, {
2140
+ runId: string;
2141
+ threadId: string;
2142
+ }>>;
2143
+ createdAt: z.ZodString;
2144
+ updatedAt: z.ZodString;
2145
+ frozenAt: z.ZodOptional<z.ZodString>;
2146
+ frozenBy: z.ZodOptional<z.ZodObject<{
2147
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
2148
+ id: z.ZodString;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ id: string;
2151
+ type: "user" | "serviceAccount" | "system";
2152
+ }, {
2153
+ id: string;
2154
+ type: "user" | "serviceAccount" | "system";
2155
+ }>>;
2156
+ boardPreviews: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ready", "pending", "none"]>>>;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ title: string;
2159
+ version: number;
2160
+ createdAt: string;
2161
+ files: {
2162
+ file: {
2163
+ blobId: string;
2164
+ digest: string;
2165
+ sizeBytes: number;
2166
+ fileName?: string | undefined;
2167
+ mediaType?: string | undefined;
2168
+ logicalPath?: string | undefined;
2169
+ };
2170
+ path: string;
2171
+ }[];
2172
+ updatedAt: string;
2173
+ revision: number;
2174
+ author: {
2175
+ id: string;
2176
+ type: "user" | "serviceAccount" | "system";
2177
+ };
2178
+ artifactId: string;
2179
+ frozen: boolean;
2180
+ entry: string;
2181
+ outline: {
2182
+ kind: "document";
2183
+ headings: {
2184
+ text: string;
2185
+ depth: number;
2186
+ slug: string;
2187
+ }[];
2188
+ } | {
2189
+ kind: "sheet";
2190
+ sheets: {
2191
+ name: string;
2192
+ rows: number;
2193
+ columns: string[];
2194
+ query?: string | undefined;
2195
+ }[];
2196
+ charts: string[];
2197
+ } | {
2198
+ kind: "slides";
2199
+ slides: {
2200
+ title?: string | undefined;
2201
+ }[];
2202
+ } | {
2203
+ kind: "page";
2204
+ title?: string | undefined;
2205
+ } | {
2206
+ kind: "canvas";
2207
+ items: ({
2208
+ file: string;
2209
+ id: string;
2210
+ type: "board";
2211
+ w: number;
2212
+ h: number;
2213
+ title?: string | undefined;
2214
+ renderKey?: string | undefined;
2215
+ } | {
2216
+ id: string;
2217
+ type: "section";
2218
+ title?: string | undefined;
2219
+ })[];
2220
+ themes?: ("light" | "dark")[] | undefined;
2221
+ } | {
2222
+ kind: "file";
2223
+ mediaType: string;
2224
+ };
2225
+ references: {
2226
+ at: string;
2227
+ address: string;
2228
+ as: "link" | "embed";
2229
+ resolvedVersion: number;
2230
+ }[];
2231
+ origin?: {
2232
+ runId: string;
2233
+ threadId: string;
2234
+ } | undefined;
2235
+ frozenAt?: string | undefined;
2236
+ frozenBy?: {
2237
+ id: string;
2238
+ type: "user" | "serviceAccount" | "system";
2239
+ } | undefined;
2240
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
2241
+ }, {
2242
+ title: string;
2243
+ version: number;
2244
+ createdAt: string;
2245
+ files: {
2246
+ file: {
2247
+ blobId: string;
2248
+ digest: string;
2249
+ sizeBytes: number;
2250
+ fileName?: string | undefined;
2251
+ mediaType?: string | undefined;
2252
+ logicalPath?: string | undefined;
2253
+ };
2254
+ path: string;
2255
+ }[];
2256
+ updatedAt: string;
2257
+ revision: number;
2258
+ author: {
2259
+ id: string;
2260
+ type: "user" | "serviceAccount" | "system";
2261
+ };
2262
+ artifactId: string;
2263
+ frozen: boolean;
2264
+ entry: string;
2265
+ outline: {
2266
+ kind: "document";
2267
+ headings: {
2268
+ text: string;
2269
+ depth: number;
2270
+ slug: string;
2271
+ }[];
2272
+ } | {
2273
+ kind: "sheet";
2274
+ sheets: {
2275
+ name: string;
2276
+ rows: number;
2277
+ columns: string[];
2278
+ query?: string | undefined;
2279
+ }[];
2280
+ charts: string[];
2281
+ } | {
2282
+ kind: "slides";
2283
+ slides: {
2284
+ title?: string | undefined;
2285
+ }[];
2286
+ } | {
2287
+ kind: "page";
2288
+ title?: string | undefined;
2289
+ } | {
2290
+ kind: "canvas";
2291
+ items: ({
2292
+ file: string;
2293
+ id: string;
2294
+ type: "board";
2295
+ w: number;
2296
+ h: number;
2297
+ title?: string | undefined;
2298
+ renderKey?: string | undefined;
2299
+ } | {
2300
+ id: string;
2301
+ type: "section";
2302
+ title?: string | undefined;
2303
+ })[];
2304
+ themes?: ("light" | "dark")[] | undefined;
2305
+ } | {
2306
+ kind: "file";
2307
+ mediaType: string;
2308
+ };
2309
+ references: {
2310
+ at: string;
2311
+ address: string;
2312
+ as: "link" | "embed";
2313
+ resolvedVersion: number;
2314
+ }[];
2315
+ origin?: {
2316
+ runId: string;
2317
+ threadId: string;
2318
+ } | undefined;
2319
+ frozenAt?: string | undefined;
2320
+ frozenBy?: {
2321
+ id: string;
2322
+ type: "user" | "serviceAccount" | "system";
2323
+ } | undefined;
2324
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
2325
+ }>;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ artifact: {
2328
+ projectId: string;
2329
+ id: string;
2330
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
2331
+ title: string;
2332
+ createdAt: string;
2333
+ owner: {
2334
+ id: string;
2335
+ type: "user" | "serviceAccount" | "system";
2336
+ };
2337
+ updatedAt: string;
2338
+ revision: number;
2339
+ latestVersion: number;
2340
+ };
2341
+ version: {
2342
+ title: string;
2343
+ version: number;
2344
+ createdAt: string;
2345
+ files: {
2346
+ file: {
2347
+ blobId: string;
2348
+ digest: string;
2349
+ sizeBytes: number;
2350
+ fileName?: string | undefined;
2351
+ mediaType?: string | undefined;
2352
+ logicalPath?: string | undefined;
2353
+ };
2354
+ path: string;
2355
+ }[];
2356
+ updatedAt: string;
2357
+ revision: number;
2358
+ author: {
2359
+ id: string;
2360
+ type: "user" | "serviceAccount" | "system";
2361
+ };
2362
+ artifactId: string;
2363
+ frozen: boolean;
2364
+ entry: string;
2365
+ outline: {
2366
+ kind: "document";
2367
+ headings: {
2368
+ text: string;
2369
+ depth: number;
2370
+ slug: string;
2371
+ }[];
2372
+ } | {
2373
+ kind: "sheet";
2374
+ sheets: {
2375
+ name: string;
2376
+ rows: number;
2377
+ columns: string[];
2378
+ query?: string | undefined;
2379
+ }[];
2380
+ charts: string[];
2381
+ } | {
2382
+ kind: "slides";
2383
+ slides: {
2384
+ title?: string | undefined;
2385
+ }[];
2386
+ } | {
2387
+ kind: "page";
2388
+ title?: string | undefined;
2389
+ } | {
2390
+ kind: "canvas";
2391
+ items: ({
2392
+ file: string;
2393
+ id: string;
2394
+ type: "board";
2395
+ w: number;
2396
+ h: number;
2397
+ title?: string | undefined;
2398
+ renderKey?: string | undefined;
2399
+ } | {
2400
+ id: string;
2401
+ type: "section";
2402
+ title?: string | undefined;
2403
+ })[];
2404
+ themes?: ("light" | "dark")[] | undefined;
2405
+ } | {
2406
+ kind: "file";
2407
+ mediaType: string;
2408
+ };
2409
+ references: {
2410
+ at: string;
2411
+ address: string;
2412
+ as: "link" | "embed";
2413
+ resolvedVersion: number;
2414
+ }[];
2415
+ origin?: {
2416
+ runId: string;
2417
+ threadId: string;
2418
+ } | undefined;
2419
+ frozenAt?: string | undefined;
2420
+ frozenBy?: {
2421
+ id: string;
2422
+ type: "user" | "serviceAccount" | "system";
2423
+ } | undefined;
2424
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
2425
+ };
2426
+ }, {
2427
+ artifact: {
2428
+ projectId: string;
2429
+ id: string;
2430
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
2431
+ title: string;
2432
+ createdAt: string;
2433
+ owner: {
2434
+ id: string;
2435
+ type: "user" | "serviceAccount" | "system";
2436
+ };
2437
+ updatedAt: string;
2438
+ revision: number;
2439
+ latestVersion: number;
2440
+ };
2441
+ version: {
2442
+ title: string;
2443
+ version: number;
2444
+ createdAt: string;
2445
+ files: {
2446
+ file: {
2447
+ blobId: string;
1149
2448
  digest: string;
1150
2449
  sizeBytes: number;
1151
2450
  fileName?: string | undefined;
1152
2451
  mediaType?: string | undefined;
1153
2452
  logicalPath?: string | undefined;
1154
2453
  };
2454
+ path: string;
2455
+ }[];
2456
+ updatedAt: string;
2457
+ revision: number;
2458
+ author: {
2459
+ id: string;
2460
+ type: "user" | "serviceAccount" | "system";
2461
+ };
2462
+ artifactId: string;
2463
+ frozen: boolean;
2464
+ entry: string;
2465
+ outline: {
2466
+ kind: "document";
2467
+ headings: {
2468
+ text: string;
2469
+ depth: number;
2470
+ slug: string;
2471
+ }[];
2472
+ } | {
2473
+ kind: "sheet";
2474
+ sheets: {
2475
+ name: string;
2476
+ rows: number;
2477
+ columns: string[];
2478
+ query?: string | undefined;
2479
+ }[];
2480
+ charts: string[];
2481
+ } | {
2482
+ kind: "slides";
2483
+ slides: {
2484
+ title?: string | undefined;
2485
+ }[];
2486
+ } | {
2487
+ kind: "page";
2488
+ title?: string | undefined;
2489
+ } | {
2490
+ kind: "canvas";
2491
+ items: ({
2492
+ file: string;
2493
+ id: string;
2494
+ type: "board";
2495
+ w: number;
2496
+ h: number;
2497
+ title?: string | undefined;
2498
+ renderKey?: string | undefined;
2499
+ } | {
2500
+ id: string;
2501
+ type: "section";
2502
+ title?: string | undefined;
2503
+ })[];
2504
+ themes?: ("light" | "dark")[] | undefined;
2505
+ } | {
2506
+ kind: "file";
2507
+ mediaType: string;
2508
+ };
2509
+ references: {
2510
+ at: string;
2511
+ address: string;
2512
+ as: "link" | "embed";
2513
+ resolvedVersion: number;
2514
+ }[];
2515
+ origin?: {
2516
+ runId: string;
2517
+ threadId: string;
2518
+ } | undefined;
2519
+ frozenAt?: string | undefined;
2520
+ frozenBy?: {
2521
+ id: string;
2522
+ type: "user" | "serviceAccount" | "system";
2523
+ } | undefined;
2524
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
2525
+ };
2526
+ }>;
2527
+ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
2528
+ artifact: z.ZodObject<{
2529
+ id: z.ZodString;
2530
+ projectId: z.ZodString;
2531
+ kind: z.ZodEnum<["document", "sheet", "slides", "page", "canvas", "file"]>;
2532
+ title: z.ZodString;
2533
+ owner: z.ZodObject<{
2534
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
2535
+ id: z.ZodString;
2536
+ }, "strip", z.ZodTypeAny, {
2537
+ id: string;
2538
+ type: "user" | "serviceAccount" | "system";
1155
2539
  }, {
2540
+ id: string;
2541
+ type: "user" | "serviceAccount" | "system";
2542
+ }>;
2543
+ latestVersion: z.ZodNumber;
2544
+ revision: z.ZodNumber;
2545
+ createdAt: z.ZodString;
2546
+ updatedAt: z.ZodString;
2547
+ }, "strip", z.ZodTypeAny, {
2548
+ projectId: string;
2549
+ id: string;
2550
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
2551
+ title: string;
2552
+ createdAt: string;
2553
+ owner: {
2554
+ id: string;
2555
+ type: "user" | "serviceAccount" | "system";
2556
+ };
2557
+ updatedAt: string;
2558
+ revision: number;
2559
+ latestVersion: number;
2560
+ }, {
2561
+ projectId: string;
2562
+ id: string;
2563
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
2564
+ title: string;
2565
+ createdAt: string;
2566
+ owner: {
2567
+ id: string;
2568
+ type: "user" | "serviceAccount" | "system";
2569
+ };
2570
+ updatedAt: string;
2571
+ revision: number;
2572
+ latestVersion: number;
2573
+ }>;
2574
+ version: z.ZodObject<{
2575
+ artifactId: z.ZodString;
2576
+ version: z.ZodNumber;
2577
+ revision: z.ZodNumber;
2578
+ frozen: z.ZodBoolean;
2579
+ title: z.ZodString;
2580
+ entry: z.ZodString;
2581
+ files: z.ZodArray<z.ZodObject<{
2582
+ path: z.ZodString;
2583
+ file: z.ZodObject<{
2584
+ blobId: z.ZodString;
2585
+ digest: z.ZodString;
2586
+ sizeBytes: z.ZodNumber;
2587
+ fileName: z.ZodOptional<z.ZodString>;
2588
+ mediaType: z.ZodOptional<z.ZodString>;
2589
+ logicalPath: z.ZodOptional<z.ZodString>;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ blobId: string;
2592
+ digest: string;
2593
+ sizeBytes: number;
2594
+ fileName?: string | undefined;
2595
+ mediaType?: string | undefined;
2596
+ logicalPath?: string | undefined;
2597
+ }, {
2598
+ blobId: string;
2599
+ digest: string;
2600
+ sizeBytes: number;
2601
+ fileName?: string | undefined;
2602
+ mediaType?: string | undefined;
2603
+ logicalPath?: string | undefined;
2604
+ }>;
2605
+ }, "strip", z.ZodTypeAny, {
2606
+ file: {
2607
+ blobId: string;
2608
+ digest: string;
2609
+ sizeBytes: number;
2610
+ fileName?: string | undefined;
2611
+ mediaType?: string | undefined;
2612
+ logicalPath?: string | undefined;
2613
+ };
1156
2614
  path: string;
2615
+ }, {
1157
2616
  file: {
1158
2617
  blobId: string;
1159
2618
  digest: string;
@@ -1162,6 +2621,7 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1162
2621
  mediaType?: string | undefined;
1163
2622
  logicalPath?: string | undefined;
1164
2623
  };
2624
+ path: string;
1165
2625
  }>, "many">;
1166
2626
  outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1167
2627
  kind: z.ZodLiteral<"document">;
@@ -1266,20 +2726,23 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1266
2726
  file: z.ZodString;
1267
2727
  w: z.ZodNumber;
1268
2728
  h: z.ZodNumber;
2729
+ renderKey: z.ZodOptional<z.ZodString>;
1269
2730
  }, "strip", z.ZodTypeAny, {
2731
+ file: string;
1270
2732
  id: string;
1271
2733
  type: "board";
1272
- file: string;
1273
2734
  w: number;
1274
2735
  h: number;
1275
2736
  title?: string | undefined;
2737
+ renderKey?: string | undefined;
1276
2738
  }, {
2739
+ file: string;
1277
2740
  id: string;
1278
2741
  type: "board";
1279
- file: string;
1280
2742
  w: number;
1281
2743
  h: number;
1282
2744
  title?: string | undefined;
2745
+ renderKey?: string | undefined;
1283
2746
  }>, z.ZodObject<{
1284
2747
  id: z.ZodString;
1285
2748
  type: z.ZodLiteral<"section">;
@@ -1293,34 +2756,39 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1293
2756
  type: "section";
1294
2757
  title?: string | undefined;
1295
2758
  }>]>, "many">;
2759
+ themes: z.ZodOptional<z.ZodArray<z.ZodEnum<["light", "dark"]>, "many">>;
1296
2760
  }, "strip", z.ZodTypeAny, {
1297
2761
  kind: "canvas";
1298
2762
  items: ({
2763
+ file: string;
1299
2764
  id: string;
1300
2765
  type: "board";
1301
- file: string;
1302
2766
  w: number;
1303
2767
  h: number;
1304
2768
  title?: string | undefined;
2769
+ renderKey?: string | undefined;
1305
2770
  } | {
1306
2771
  id: string;
1307
2772
  type: "section";
1308
2773
  title?: string | undefined;
1309
2774
  })[];
2775
+ themes?: ("light" | "dark")[] | undefined;
1310
2776
  }, {
1311
2777
  kind: "canvas";
1312
2778
  items: ({
2779
+ file: string;
1313
2780
  id: string;
1314
2781
  type: "board";
1315
- file: string;
1316
2782
  w: number;
1317
2783
  h: number;
1318
2784
  title?: string | undefined;
2785
+ renderKey?: string | undefined;
1319
2786
  } | {
1320
2787
  id: string;
1321
2788
  type: "section";
1322
2789
  title?: string | undefined;
1323
2790
  })[];
2791
+ themes?: ("light" | "dark")[] | undefined;
1324
2792
  }>, z.ZodObject<{
1325
2793
  kind: z.ZodLiteral<"file">;
1326
2794
  mediaType: z.ZodString;
@@ -1368,12 +2836,24 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1368
2836
  threadId: string;
1369
2837
  }>>;
1370
2838
  createdAt: z.ZodString;
2839
+ updatedAt: z.ZodString;
2840
+ frozenAt: z.ZodOptional<z.ZodString>;
2841
+ frozenBy: z.ZodOptional<z.ZodObject<{
2842
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
2843
+ id: z.ZodString;
2844
+ }, "strip", z.ZodTypeAny, {
2845
+ id: string;
2846
+ type: "user" | "serviceAccount" | "system";
2847
+ }, {
2848
+ id: string;
2849
+ type: "user" | "serviceAccount" | "system";
2850
+ }>>;
2851
+ boardPreviews: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ready", "pending", "none"]>>>;
1371
2852
  }, "strip", z.ZodTypeAny, {
1372
2853
  title: string;
1373
2854
  version: number;
1374
2855
  createdAt: string;
1375
2856
  files: {
1376
- path: string;
1377
2857
  file: {
1378
2858
  blobId: string;
1379
2859
  digest: string;
@@ -1382,12 +2862,16 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1382
2862
  mediaType?: string | undefined;
1383
2863
  logicalPath?: string | undefined;
1384
2864
  };
2865
+ path: string;
1385
2866
  }[];
2867
+ updatedAt: string;
2868
+ revision: number;
1386
2869
  author: {
1387
2870
  id: string;
1388
2871
  type: "user" | "serviceAccount" | "system";
1389
2872
  };
1390
2873
  artifactId: string;
2874
+ frozen: boolean;
1391
2875
  entry: string;
1392
2876
  outline: {
1393
2877
  kind: "document";
@@ -1416,17 +2900,19 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1416
2900
  } | {
1417
2901
  kind: "canvas";
1418
2902
  items: ({
2903
+ file: string;
1419
2904
  id: string;
1420
2905
  type: "board";
1421
- file: string;
1422
2906
  w: number;
1423
2907
  h: number;
1424
2908
  title?: string | undefined;
2909
+ renderKey?: string | undefined;
1425
2910
  } | {
1426
2911
  id: string;
1427
2912
  type: "section";
1428
2913
  title?: string | undefined;
1429
2914
  })[];
2915
+ themes?: ("light" | "dark")[] | undefined;
1430
2916
  } | {
1431
2917
  kind: "file";
1432
2918
  mediaType: string;
@@ -1441,12 +2927,17 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1441
2927
  runId: string;
1442
2928
  threadId: string;
1443
2929
  } | undefined;
2930
+ frozenAt?: string | undefined;
2931
+ frozenBy?: {
2932
+ id: string;
2933
+ type: "user" | "serviceAccount" | "system";
2934
+ } | undefined;
2935
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
1444
2936
  }, {
1445
2937
  title: string;
1446
2938
  version: number;
1447
2939
  createdAt: string;
1448
2940
  files: {
1449
- path: string;
1450
2941
  file: {
1451
2942
  blobId: string;
1452
2943
  digest: string;
@@ -1455,12 +2946,16 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1455
2946
  mediaType?: string | undefined;
1456
2947
  logicalPath?: string | undefined;
1457
2948
  };
2949
+ path: string;
1458
2950
  }[];
2951
+ updatedAt: string;
2952
+ revision: number;
1459
2953
  author: {
1460
2954
  id: string;
1461
2955
  type: "user" | "serviceAccount" | "system";
1462
2956
  };
1463
2957
  artifactId: string;
2958
+ frozen: boolean;
1464
2959
  entry: string;
1465
2960
  outline: {
1466
2961
  kind: "document";
@@ -1489,17 +2984,19 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1489
2984
  } | {
1490
2985
  kind: "canvas";
1491
2986
  items: ({
2987
+ file: string;
1492
2988
  id: string;
1493
2989
  type: "board";
1494
- file: string;
1495
2990
  w: number;
1496
2991
  h: number;
1497
2992
  title?: string | undefined;
2993
+ renderKey?: string | undefined;
1498
2994
  } | {
1499
2995
  id: string;
1500
2996
  type: "section";
1501
2997
  title?: string | undefined;
1502
2998
  })[];
2999
+ themes?: ("light" | "dark")[] | undefined;
1503
3000
  } | {
1504
3001
  kind: "file";
1505
3002
  mediaType: string;
@@ -1514,6 +3011,12 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1514
3011
  runId: string;
1515
3012
  threadId: string;
1516
3013
  } | undefined;
3014
+ frozenAt?: string | undefined;
3015
+ frozenBy?: {
3016
+ id: string;
3017
+ type: "user" | "serviceAccount" | "system";
3018
+ } | undefined;
3019
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
1517
3020
  }>;
1518
3021
  warnings: z.ZodArray<z.ZodObject<{
1519
3022
  code: z.ZodString;
@@ -1529,12 +3032,25 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1529
3032
  part?: string | undefined;
1530
3033
  }>, "many">;
1531
3034
  }, "strip", z.ZodTypeAny, {
3035
+ artifact: {
3036
+ projectId: string;
3037
+ id: string;
3038
+ kind: "file" | "page" | "document" | "sheet" | "slides" | "canvas";
3039
+ title: string;
3040
+ createdAt: string;
3041
+ owner: {
3042
+ id: string;
3043
+ type: "user" | "serviceAccount" | "system";
3044
+ };
3045
+ updatedAt: string;
3046
+ revision: number;
3047
+ latestVersion: number;
3048
+ };
1532
3049
  version: {
1533
3050
  title: string;
1534
3051
  version: number;
1535
3052
  createdAt: string;
1536
3053
  files: {
1537
- path: string;
1538
3054
  file: {
1539
3055
  blobId: string;
1540
3056
  digest: string;
@@ -1543,12 +3059,16 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1543
3059
  mediaType?: string | undefined;
1544
3060
  logicalPath?: string | undefined;
1545
3061
  };
3062
+ path: string;
1546
3063
  }[];
3064
+ updatedAt: string;
3065
+ revision: number;
1547
3066
  author: {
1548
3067
  id: string;
1549
3068
  type: "user" | "serviceAccount" | "system";
1550
3069
  };
1551
3070
  artifactId: string;
3071
+ frozen: boolean;
1552
3072
  entry: string;
1553
3073
  outline: {
1554
3074
  kind: "document";
@@ -1577,17 +3097,19 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1577
3097
  } | {
1578
3098
  kind: "canvas";
1579
3099
  items: ({
3100
+ file: string;
1580
3101
  id: string;
1581
3102
  type: "board";
1582
- file: string;
1583
3103
  w: number;
1584
3104
  h: number;
1585
3105
  title?: string | undefined;
3106
+ renderKey?: string | undefined;
1586
3107
  } | {
1587
3108
  id: string;
1588
3109
  type: "section";
1589
3110
  title?: string | undefined;
1590
3111
  })[];
3112
+ themes?: ("light" | "dark")[] | undefined;
1591
3113
  } | {
1592
3114
  kind: "file";
1593
3115
  mediaType: string;
@@ -1602,12 +3124,19 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1602
3124
  runId: string;
1603
3125
  threadId: string;
1604
3126
  } | undefined;
3127
+ frozenAt?: string | undefined;
3128
+ frozenBy?: {
3129
+ id: string;
3130
+ type: "user" | "serviceAccount" | "system";
3131
+ } | undefined;
3132
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
1605
3133
  };
1606
3134
  warnings: {
1607
3135
  code: string;
1608
3136
  message: string;
1609
3137
  part?: string | undefined;
1610
3138
  }[];
3139
+ }, {
1611
3140
  artifact: {
1612
3141
  projectId: string;
1613
3142
  id: string;
@@ -1619,15 +3148,14 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1619
3148
  type: "user" | "serviceAccount" | "system";
1620
3149
  };
1621
3150
  updatedAt: string;
3151
+ revision: number;
1622
3152
  latestVersion: number;
1623
3153
  };
1624
- }, {
1625
3154
  version: {
1626
3155
  title: string;
1627
3156
  version: number;
1628
3157
  createdAt: string;
1629
3158
  files: {
1630
- path: string;
1631
3159
  file: {
1632
3160
  blobId: string;
1633
3161
  digest: string;
@@ -1636,12 +3164,16 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1636
3164
  mediaType?: string | undefined;
1637
3165
  logicalPath?: string | undefined;
1638
3166
  };
3167
+ path: string;
1639
3168
  }[];
3169
+ updatedAt: string;
3170
+ revision: number;
1640
3171
  author: {
1641
3172
  id: string;
1642
3173
  type: "user" | "serviceAccount" | "system";
1643
3174
  };
1644
3175
  artifactId: string;
3176
+ frozen: boolean;
1645
3177
  entry: string;
1646
3178
  outline: {
1647
3179
  kind: "document";
@@ -1670,17 +3202,19 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1670
3202
  } | {
1671
3203
  kind: "canvas";
1672
3204
  items: ({
3205
+ file: string;
1673
3206
  id: string;
1674
3207
  type: "board";
1675
- file: string;
1676
3208
  w: number;
1677
3209
  h: number;
1678
3210
  title?: string | undefined;
3211
+ renderKey?: string | undefined;
1679
3212
  } | {
1680
3213
  id: string;
1681
3214
  type: "section";
1682
3215
  title?: string | undefined;
1683
3216
  })[];
3217
+ themes?: ("light" | "dark")[] | undefined;
1684
3218
  } | {
1685
3219
  kind: "file";
1686
3220
  mediaType: string;
@@ -1695,25 +3229,18 @@ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
1695
3229
  runId: string;
1696
3230
  threadId: string;
1697
3231
  } | undefined;
3232
+ frozenAt?: string | undefined;
3233
+ frozenBy?: {
3234
+ id: string;
3235
+ type: "user" | "serviceAccount" | "system";
3236
+ } | undefined;
3237
+ boardPreviews?: Record<string, "none" | "pending" | "ready"> | undefined;
1698
3238
  };
1699
3239
  warnings: {
1700
3240
  code: string;
1701
3241
  message: string;
1702
3242
  part?: string | undefined;
1703
3243
  }[];
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
3244
  }>;
1718
3245
  export declare const DeleteArtifactResponseSchema: z.ZodObject<{
1719
3246
  deleted: z.ZodLiteral<true>;
@@ -1798,11 +3325,11 @@ export declare const ArtifactFrameResponseSchema: z.ZodObject<{
1798
3325
  path: z.ZodString;
1799
3326
  expiresAt: z.ZodString;
1800
3327
  }, "strip", z.ZodTypeAny, {
1801
- path: string;
1802
3328
  expiresAt: string;
1803
- }, {
1804
3329
  path: string;
3330
+ }, {
1805
3331
  expiresAt: string;
3332
+ path: string;
1806
3333
  }>;
1807
3334
  export declare const ArtifactErrorResponseSchema: z.ZodObject<{
1808
3335
  error: z.ZodString;
@@ -1810,6 +3337,7 @@ export declare const ArtifactErrorResponseSchema: z.ZodObject<{
1810
3337
  code: z.ZodOptional<z.ZodString>;
1811
3338
  latest: z.ZodOptional<z.ZodObject<{
1812
3339
  version: z.ZodNumber;
3340
+ revision: z.ZodNumber;
1813
3341
  author: z.ZodObject<{
1814
3342
  type: z.ZodEnum<["user", "serviceAccount", "system"]>;
1815
3343
  id: z.ZodString;
@@ -1820,38 +3348,489 @@ export declare const ArtifactErrorResponseSchema: z.ZodObject<{
1820
3348
  id: string;
1821
3349
  type: "user" | "serviceAccount" | "system";
1822
3350
  }>;
3351
+ frozenBy: z.ZodOptional<z.ZodObject<{
3352
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
3353
+ id: z.ZodString;
3354
+ }, "strip", z.ZodTypeAny, {
3355
+ id: string;
3356
+ type: "user" | "serviceAccount" | "system";
3357
+ }, {
3358
+ id: string;
3359
+ type: "user" | "serviceAccount" | "system";
3360
+ }>>;
1823
3361
  }, "strip", z.ZodTypeAny, {
1824
3362
  version: number;
3363
+ revision: number;
1825
3364
  author: {
1826
3365
  id: string;
1827
3366
  type: "user" | "serviceAccount" | "system";
1828
3367
  };
3368
+ frozenBy?: {
3369
+ id: string;
3370
+ type: "user" | "serviceAccount" | "system";
3371
+ } | undefined;
1829
3372
  }, {
1830
3373
  version: number;
3374
+ revision: number;
1831
3375
  author: {
1832
3376
  id: string;
1833
3377
  type: "user" | "serviceAccount" | "system";
1834
3378
  };
3379
+ frozenBy?: {
3380
+ id: string;
3381
+ type: "user" | "serviceAccount" | "system";
3382
+ } | undefined;
1835
3383
  }>>;
1836
3384
  }, "strip", z.ZodTypeAny, {
1837
3385
  error: string;
1838
3386
  code?: string | undefined;
1839
3387
  latest?: {
1840
3388
  version: number;
3389
+ revision: number;
1841
3390
  author: {
1842
3391
  id: string;
1843
3392
  type: "user" | "serviceAccount" | "system";
1844
3393
  };
3394
+ frozenBy?: {
3395
+ id: string;
3396
+ type: "user" | "serviceAccount" | "system";
3397
+ } | undefined;
1845
3398
  } | undefined;
1846
3399
  }, {
1847
3400
  error: string;
1848
3401
  code?: string | undefined;
1849
3402
  latest?: {
1850
3403
  version: number;
3404
+ revision: number;
3405
+ author: {
3406
+ id: string;
3407
+ type: "user" | "serviceAccount" | "system";
3408
+ };
3409
+ frozenBy?: {
3410
+ id: string;
3411
+ type: "user" | "serviceAccount" | "system";
3412
+ } | undefined;
3413
+ } | undefined;
3414
+ }>;
3415
+ export declare const ArtifactCommentSchema: z.ZodObject<{
3416
+ artifactId: z.ZodString;
3417
+ id: z.ZodString;
3418
+ parentId: z.ZodOptional<z.ZodString>;
3419
+ anchor: z.ZodObject<{
3420
+ board: z.ZodOptional<z.ZodString>;
3421
+ element: z.ZodOptional<z.ZodString>;
3422
+ label: z.ZodOptional<z.ZodString>;
3423
+ point: z.ZodOptional<z.ZodObject<{
3424
+ x: z.ZodNumber;
3425
+ y: z.ZodNumber;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ x: number;
3428
+ y: number;
3429
+ }, {
3430
+ x: number;
3431
+ y: number;
3432
+ }>>;
3433
+ revision: z.ZodNumber;
3434
+ }, "strip", z.ZodTypeAny, {
3435
+ revision: number;
3436
+ label?: string | undefined;
3437
+ board?: string | undefined;
3438
+ element?: string | undefined;
3439
+ point?: {
3440
+ x: number;
3441
+ y: number;
3442
+ } | undefined;
3443
+ }, {
3444
+ revision: number;
3445
+ label?: string | undefined;
3446
+ board?: string | undefined;
3447
+ element?: string | undefined;
3448
+ point?: {
3449
+ x: number;
3450
+ y: number;
3451
+ } | undefined;
3452
+ }>;
3453
+ body: z.ZodString;
3454
+ author: z.ZodObject<{
3455
+ type: z.ZodEnum<["user", "serviceAccount", "system", "guest"]>;
3456
+ id: z.ZodString;
3457
+ }, "strip", z.ZodTypeAny, {
3458
+ id: string;
3459
+ type: "user" | "serviceAccount" | "system" | "guest";
3460
+ }, {
3461
+ id: string;
3462
+ type: "user" | "serviceAccount" | "system" | "guest";
3463
+ }>;
3464
+ authorName: z.ZodNullable<z.ZodString>;
3465
+ origin: z.ZodOptional<z.ZodObject<{
3466
+ threadId: z.ZodString;
3467
+ runId: z.ZodString;
3468
+ }, "strip", z.ZodTypeAny, {
3469
+ runId: string;
3470
+ threadId: string;
3471
+ }, {
3472
+ runId: string;
3473
+ threadId: string;
3474
+ }>>;
3475
+ createdAt: z.ZodString;
3476
+ resolvedAt: z.ZodOptional<z.ZodString>;
3477
+ resolvedBy: z.ZodOptional<z.ZodObject<{
3478
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
3479
+ id: z.ZodString;
3480
+ }, "strip", z.ZodTypeAny, {
3481
+ id: string;
3482
+ type: "user" | "serviceAccount" | "system";
3483
+ }, {
3484
+ id: string;
3485
+ type: "user" | "serviceAccount" | "system";
3486
+ }>>;
3487
+ }, "strip", z.ZodTypeAny, {
3488
+ id: string;
3489
+ createdAt: string;
3490
+ body: string;
3491
+ author: {
3492
+ id: string;
3493
+ type: "user" | "serviceAccount" | "system" | "guest";
3494
+ };
3495
+ artifactId: string;
3496
+ anchor: {
3497
+ revision: number;
3498
+ label?: string | undefined;
3499
+ board?: string | undefined;
3500
+ element?: string | undefined;
3501
+ point?: {
3502
+ x: number;
3503
+ y: number;
3504
+ } | undefined;
3505
+ };
3506
+ authorName: string | null;
3507
+ origin?: {
3508
+ runId: string;
3509
+ threadId: string;
3510
+ } | undefined;
3511
+ parentId?: string | undefined;
3512
+ resolvedAt?: string | undefined;
3513
+ resolvedBy?: {
3514
+ id: string;
3515
+ type: "user" | "serviceAccount" | "system";
3516
+ } | undefined;
3517
+ }, {
3518
+ id: string;
3519
+ createdAt: string;
3520
+ body: string;
3521
+ author: {
3522
+ id: string;
3523
+ type: "user" | "serviceAccount" | "system" | "guest";
3524
+ };
3525
+ artifactId: string;
3526
+ anchor: {
3527
+ revision: number;
3528
+ label?: string | undefined;
3529
+ board?: string | undefined;
3530
+ element?: string | undefined;
3531
+ point?: {
3532
+ x: number;
3533
+ y: number;
3534
+ } | undefined;
3535
+ };
3536
+ authorName: string | null;
3537
+ origin?: {
3538
+ runId: string;
3539
+ threadId: string;
3540
+ } | undefined;
3541
+ parentId?: string | undefined;
3542
+ resolvedAt?: string | undefined;
3543
+ resolvedBy?: {
3544
+ id: string;
3545
+ type: "user" | "serviceAccount" | "system";
3546
+ } | undefined;
3547
+ }>;
3548
+ export declare const ArtifactCommentListResponseSchema: z.ZodObject<{
3549
+ comments: z.ZodArray<z.ZodObject<{
3550
+ artifactId: z.ZodString;
3551
+ id: z.ZodString;
3552
+ parentId: z.ZodOptional<z.ZodString>;
3553
+ anchor: z.ZodObject<{
3554
+ board: z.ZodOptional<z.ZodString>;
3555
+ element: z.ZodOptional<z.ZodString>;
3556
+ label: z.ZodOptional<z.ZodString>;
3557
+ point: z.ZodOptional<z.ZodObject<{
3558
+ x: z.ZodNumber;
3559
+ y: z.ZodNumber;
3560
+ }, "strip", z.ZodTypeAny, {
3561
+ x: number;
3562
+ y: number;
3563
+ }, {
3564
+ x: number;
3565
+ y: number;
3566
+ }>>;
3567
+ revision: z.ZodNumber;
3568
+ }, "strip", z.ZodTypeAny, {
3569
+ revision: number;
3570
+ label?: string | undefined;
3571
+ board?: string | undefined;
3572
+ element?: string | undefined;
3573
+ point?: {
3574
+ x: number;
3575
+ y: number;
3576
+ } | undefined;
3577
+ }, {
3578
+ revision: number;
3579
+ label?: string | undefined;
3580
+ board?: string | undefined;
3581
+ element?: string | undefined;
3582
+ point?: {
3583
+ x: number;
3584
+ y: number;
3585
+ } | undefined;
3586
+ }>;
3587
+ body: z.ZodString;
3588
+ author: z.ZodObject<{
3589
+ type: z.ZodEnum<["user", "serviceAccount", "system", "guest"]>;
3590
+ id: z.ZodString;
3591
+ }, "strip", z.ZodTypeAny, {
3592
+ id: string;
3593
+ type: "user" | "serviceAccount" | "system" | "guest";
3594
+ }, {
3595
+ id: string;
3596
+ type: "user" | "serviceAccount" | "system" | "guest";
3597
+ }>;
3598
+ authorName: z.ZodNullable<z.ZodString>;
3599
+ origin: z.ZodOptional<z.ZodObject<{
3600
+ threadId: z.ZodString;
3601
+ runId: z.ZodString;
3602
+ }, "strip", z.ZodTypeAny, {
3603
+ runId: string;
3604
+ threadId: string;
3605
+ }, {
3606
+ runId: string;
3607
+ threadId: string;
3608
+ }>>;
3609
+ createdAt: z.ZodString;
3610
+ resolvedAt: z.ZodOptional<z.ZodString>;
3611
+ resolvedBy: z.ZodOptional<z.ZodObject<{
3612
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
3613
+ id: z.ZodString;
3614
+ }, "strip", z.ZodTypeAny, {
3615
+ id: string;
3616
+ type: "user" | "serviceAccount" | "system";
3617
+ }, {
3618
+ id: string;
3619
+ type: "user" | "serviceAccount" | "system";
3620
+ }>>;
3621
+ }, "strip", z.ZodTypeAny, {
3622
+ id: string;
3623
+ createdAt: string;
3624
+ body: string;
3625
+ author: {
3626
+ id: string;
3627
+ type: "user" | "serviceAccount" | "system" | "guest";
3628
+ };
3629
+ artifactId: string;
3630
+ anchor: {
3631
+ revision: number;
3632
+ label?: string | undefined;
3633
+ board?: string | undefined;
3634
+ element?: string | undefined;
3635
+ point?: {
3636
+ x: number;
3637
+ y: number;
3638
+ } | undefined;
3639
+ };
3640
+ authorName: string | null;
3641
+ origin?: {
3642
+ runId: string;
3643
+ threadId: string;
3644
+ } | undefined;
3645
+ parentId?: string | undefined;
3646
+ resolvedAt?: string | undefined;
3647
+ resolvedBy?: {
3648
+ id: string;
3649
+ type: "user" | "serviceAccount" | "system";
3650
+ } | undefined;
3651
+ }, {
3652
+ id: string;
3653
+ createdAt: string;
3654
+ body: string;
3655
+ author: {
3656
+ id: string;
3657
+ type: "user" | "serviceAccount" | "system" | "guest";
3658
+ };
3659
+ artifactId: string;
3660
+ anchor: {
3661
+ revision: number;
3662
+ label?: string | undefined;
3663
+ board?: string | undefined;
3664
+ element?: string | undefined;
3665
+ point?: {
3666
+ x: number;
3667
+ y: number;
3668
+ } | undefined;
3669
+ };
3670
+ authorName: string | null;
3671
+ origin?: {
3672
+ runId: string;
3673
+ threadId: string;
3674
+ } | undefined;
3675
+ parentId?: string | undefined;
3676
+ resolvedAt?: string | undefined;
3677
+ resolvedBy?: {
3678
+ id: string;
3679
+ type: "user" | "serviceAccount" | "system";
3680
+ } | undefined;
3681
+ }>, "many">;
3682
+ }, "strip", z.ZodTypeAny, {
3683
+ comments: {
3684
+ id: string;
3685
+ createdAt: string;
3686
+ body: string;
1851
3687
  author: {
3688
+ id: string;
3689
+ type: "user" | "serviceAccount" | "system" | "guest";
3690
+ };
3691
+ artifactId: string;
3692
+ anchor: {
3693
+ revision: number;
3694
+ label?: string | undefined;
3695
+ board?: string | undefined;
3696
+ element?: string | undefined;
3697
+ point?: {
3698
+ x: number;
3699
+ y: number;
3700
+ } | undefined;
3701
+ };
3702
+ authorName: string | null;
3703
+ origin?: {
3704
+ runId: string;
3705
+ threadId: string;
3706
+ } | undefined;
3707
+ parentId?: string | undefined;
3708
+ resolvedAt?: string | undefined;
3709
+ resolvedBy?: {
1852
3710
  id: string;
1853
3711
  type: "user" | "serviceAccount" | "system";
3712
+ } | undefined;
3713
+ }[];
3714
+ }, {
3715
+ comments: {
3716
+ id: string;
3717
+ createdAt: string;
3718
+ body: string;
3719
+ author: {
3720
+ id: string;
3721
+ type: "user" | "serviceAccount" | "system" | "guest";
3722
+ };
3723
+ artifactId: string;
3724
+ anchor: {
3725
+ revision: number;
3726
+ label?: string | undefined;
3727
+ board?: string | undefined;
3728
+ element?: string | undefined;
3729
+ point?: {
3730
+ x: number;
3731
+ y: number;
3732
+ } | undefined;
1854
3733
  };
3734
+ authorName: string | null;
3735
+ origin?: {
3736
+ runId: string;
3737
+ threadId: string;
3738
+ } | undefined;
3739
+ parentId?: string | undefined;
3740
+ resolvedAt?: string | undefined;
3741
+ resolvedBy?: {
3742
+ id: string;
3743
+ type: "user" | "serviceAccount" | "system";
3744
+ } | undefined;
3745
+ }[];
3746
+ }>;
3747
+ export declare const ArtifactCommentParamsSchema: z.ZodObject<{
3748
+ artifactId: z.ZodString;
3749
+ } & {
3750
+ commentId: z.ZodString;
3751
+ }, "strip", z.ZodTypeAny, {
3752
+ artifactId: string;
3753
+ commentId: string;
3754
+ }, {
3755
+ artifactId: string;
3756
+ commentId: string;
3757
+ }>;
3758
+ export declare const AddArtifactCommentBodySchema: z.ZodObject<{
3759
+ body: z.ZodString;
3760
+ anchor: z.ZodOptional<z.ZodObject<{
3761
+ board: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3762
+ element: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3763
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3764
+ point: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3765
+ x: z.ZodNumber;
3766
+ y: z.ZodNumber;
3767
+ }, "strip", z.ZodTypeAny, {
3768
+ x: number;
3769
+ y: number;
3770
+ }, {
3771
+ x: number;
3772
+ y: number;
3773
+ }>>>;
3774
+ revision: z.ZodOptional<z.ZodNumber>;
3775
+ }, "strip", z.ZodTypeAny, {
3776
+ label?: string | undefined;
3777
+ revision?: number | undefined;
3778
+ board?: string | undefined;
3779
+ element?: string | undefined;
3780
+ point?: {
3781
+ x: number;
3782
+ y: number;
3783
+ } | undefined;
3784
+ }, {
3785
+ label?: string | undefined;
3786
+ revision?: number | undefined;
3787
+ board?: string | undefined;
3788
+ element?: string | undefined;
3789
+ point?: {
3790
+ x: number;
3791
+ y: number;
3792
+ } | undefined;
3793
+ }>>;
3794
+ parentId: z.ZodOptional<z.ZodString>;
3795
+ }, "strip", z.ZodTypeAny, {
3796
+ body: string;
3797
+ parentId?: string | undefined;
3798
+ anchor?: {
3799
+ label?: string | undefined;
3800
+ revision?: number | undefined;
3801
+ board?: string | undefined;
3802
+ element?: string | undefined;
3803
+ point?: {
3804
+ x: number;
3805
+ y: number;
3806
+ } | undefined;
1855
3807
  } | undefined;
3808
+ }, {
3809
+ body: string;
3810
+ parentId?: string | undefined;
3811
+ anchor?: {
3812
+ label?: string | undefined;
3813
+ revision?: number | undefined;
3814
+ board?: string | undefined;
3815
+ element?: string | undefined;
3816
+ point?: {
3817
+ x: number;
3818
+ y: number;
3819
+ } | undefined;
3820
+ } | undefined;
3821
+ }>;
3822
+ export declare const ResolveArtifactCommentBodySchema: z.ZodObject<{
3823
+ resolved: z.ZodDefault<z.ZodBoolean>;
3824
+ }, "strip", z.ZodTypeAny, {
3825
+ resolved: boolean;
3826
+ }, {
3827
+ resolved?: boolean | undefined;
3828
+ }>;
3829
+ export declare const DeleteArtifactCommentResponseSchema: z.ZodObject<{
3830
+ deleted: z.ZodLiteral<true>;
3831
+ }, "strip", z.ZodTypeAny, {
3832
+ deleted: true;
3833
+ }, {
3834
+ deleted: true;
1856
3835
  }>;
1857
3836
  //# sourceMappingURL=artifacts.d.ts.map