@sixb/server 0.1.19 → 0.1.21

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 (103) hide show
  1. package/README.md +13 -22
  2. package/dist/artifacts/frame.d.ts +13 -0
  3. package/dist/artifacts/frame.d.ts.map +1 -0
  4. package/dist/auth/browser-origin.d.ts +9 -26
  5. package/dist/auth/browser-origin.d.ts.map +1 -1
  6. package/dist/auth/experience.d.ts +0 -3
  7. package/dist/auth/experience.d.ts.map +1 -1
  8. package/dist/auth/guard.d.ts +1 -1
  9. package/dist/auth/guard.d.ts.map +1 -1
  10. package/dist/auth/public-routes.d.ts +0 -5
  11. package/dist/auth/public-routes.d.ts.map +1 -1
  12. package/dist/auth/responses.d.ts +0 -2
  13. package/dist/auth/responses.d.ts.map +1 -1
  14. package/dist/auth/session-cookies.d.ts.map +1 -1
  15. package/dist/files/content.d.ts +2 -3
  16. package/dist/files/content.d.ts.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3241 -2445
  20. package/dist/index.js.map +31 -26
  21. package/dist/openapi/tags.d.ts +10 -2
  22. package/dist/openapi/tags.d.ts.map +1 -1
  23. package/dist/registerRoutes.d.ts +3 -0
  24. package/dist/registerRoutes.d.ts.map +1 -1
  25. package/dist/routes/action-runs.d.ts +0 -2
  26. package/dist/routes/action-runs.d.ts.map +1 -1
  27. package/dist/routes/activity.d.ts +35 -0
  28. package/dist/routes/activity.d.ts.map +1 -0
  29. package/dist/routes/agents.d.ts +18 -29
  30. package/dist/routes/agents.d.ts.map +1 -1
  31. package/dist/routes/artifact-frames.d.ts +98 -0
  32. package/dist/routes/artifact-frames.d.ts.map +1 -0
  33. package/dist/routes/artifacts.d.ts +852 -0
  34. package/dist/routes/artifacts.d.ts.map +1 -0
  35. package/dist/routes/auth.d.ts +9 -18
  36. package/dist/routes/auth.d.ts.map +1 -1
  37. package/dist/routes/connector-connection-runs.d.ts +59 -59
  38. package/dist/routes/connector-connections.d.ts +2 -2
  39. package/dist/routes/datasets.d.ts +7 -7
  40. package/dist/routes/events.d.ts +1 -1
  41. package/dist/routes/objects.d.ts +0 -2
  42. package/dist/routes/objects.d.ts.map +1 -1
  43. package/dist/routes/pipelines.d.ts +31 -31
  44. package/dist/routes/projections.d.ts +10 -10
  45. package/dist/routes/share-grants.d.ts +5 -5
  46. package/dist/routes/syncs.d.ts +38 -38
  47. package/dist/routes/workflows.d.ts +30 -34
  48. package/dist/routes/workflows.d.ts.map +1 -1
  49. package/dist/routes/ws/events.d.ts.map +1 -1
  50. package/dist/routes/ws/subscription-hub.d.ts +8 -3
  51. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  52. package/dist/schemas/activity.d.ts +1278 -0
  53. package/dist/schemas/activity.d.ts.map +1 -0
  54. package/dist/schemas/agents.d.ts +96 -144
  55. package/dist/schemas/agents.d.ts.map +1 -1
  56. package/dist/schemas/ai-accounting.d.ts +24 -24
  57. package/dist/schemas/ai-limits.d.ts +26 -26
  58. package/dist/schemas/artifacts.d.ts +1305 -0
  59. package/dist/schemas/artifacts.d.ts.map +1 -0
  60. package/dist/schemas/auth.d.ts +34 -69
  61. package/dist/schemas/auth.d.ts.map +1 -1
  62. package/dist/schemas/connectors.d.ts +30 -30
  63. package/dist/schemas/datasets.d.ts +10 -10
  64. package/dist/schemas/events.d.ts +6 -6
  65. package/dist/schemas/files.d.ts +0 -3
  66. package/dist/schemas/files.d.ts.map +1 -1
  67. package/dist/schemas/pipelines.d.ts +35 -35
  68. package/dist/schemas/projections.d.ts +40 -40
  69. package/dist/schemas/share-grants.d.ts +16 -16
  70. package/dist/schemas/syncs.d.ts +36 -36
  71. package/dist/schemas/workflows.d.ts +84 -84
  72. package/dist/server.d.ts +1 -2
  73. package/dist/server.d.ts.map +1 -1
  74. package/package.json +6 -6
  75. package/src/artifacts/frame.ts +46 -0
  76. package/src/auth/browser-origin.ts +40 -240
  77. package/src/auth/experience.ts +1 -4
  78. package/src/auth/guard.ts +4 -32
  79. package/src/auth/public-routes.ts +11 -10
  80. package/src/auth/responses.ts +0 -5
  81. package/src/auth/session-cookies.ts +1 -3
  82. package/src/auth/shared-access.ts +1 -1
  83. package/src/files/content.ts +9 -13
  84. package/src/index.ts +1 -1
  85. package/src/openapi/tags.ts +8 -0
  86. package/src/registerRoutes.ts +9 -0
  87. package/src/routes/activity.ts +327 -0
  88. package/src/routes/agents.ts +1 -1
  89. package/src/routes/artifact-frames.ts +138 -0
  90. package/src/routes/artifacts.ts +442 -0
  91. package/src/routes/auth.ts +32 -111
  92. package/src/routes/file-downloads.ts +1 -3
  93. package/src/routes/ws/events.ts +3 -2
  94. package/src/routes/ws/subscription-hub.ts +53 -20
  95. package/src/schemas/activity.ts +285 -0
  96. package/src/schemas/agents.ts +1 -2
  97. package/src/schemas/artifacts.ts +158 -0
  98. package/src/schemas/auth.ts +2 -15
  99. package/src/schemas/files.ts +0 -6
  100. package/src/server.ts +27 -24
  101. package/dist/auth/application-access.d.ts +0 -4
  102. package/dist/auth/application-access.d.ts.map +0 -1
  103. package/src/auth/application-access.ts +0 -15
@@ -0,0 +1,1305 @@
1
+ import { z } from "zod";
2
+ export declare const ArtifactVersionSchema: z.ZodObject<{
3
+ artifactId: z.ZodString;
4
+ version: z.ZodNumber;
5
+ title: z.ZodString;
6
+ entry: z.ZodString;
7
+ files: z.ZodArray<z.ZodObject<{
8
+ path: z.ZodString;
9
+ file: z.ZodObject<{
10
+ blobId: z.ZodString;
11
+ digest: z.ZodString;
12
+ sizeBytes: z.ZodNumber;
13
+ fileName: z.ZodOptional<z.ZodString>;
14
+ mediaType: z.ZodOptional<z.ZodString>;
15
+ logicalPath: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ blobId: string;
18
+ digest: string;
19
+ sizeBytes: number;
20
+ fileName?: string | undefined;
21
+ mediaType?: string | undefined;
22
+ logicalPath?: string | undefined;
23
+ }, {
24
+ blobId: string;
25
+ digest: string;
26
+ sizeBytes: number;
27
+ fileName?: string | undefined;
28
+ mediaType?: string | undefined;
29
+ logicalPath?: string | undefined;
30
+ }>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ path: string;
33
+ file: {
34
+ blobId: string;
35
+ digest: string;
36
+ sizeBytes: number;
37
+ fileName?: string | undefined;
38
+ mediaType?: string | undefined;
39
+ logicalPath?: string | undefined;
40
+ };
41
+ }, {
42
+ path: string;
43
+ file: {
44
+ blobId: string;
45
+ digest: string;
46
+ sizeBytes: number;
47
+ fileName?: string | undefined;
48
+ mediaType?: string | undefined;
49
+ logicalPath?: string | undefined;
50
+ };
51
+ }>, "many">;
52
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
53
+ kind: z.ZodLiteral<"document">;
54
+ headings: z.ZodArray<z.ZodObject<{
55
+ depth: z.ZodNumber;
56
+ text: z.ZodString;
57
+ slug: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ text: string;
60
+ depth: number;
61
+ slug: string;
62
+ }, {
63
+ text: string;
64
+ depth: number;
65
+ slug: string;
66
+ }>, "many">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ kind: "document";
69
+ headings: {
70
+ text: string;
71
+ depth: number;
72
+ slug: string;
73
+ }[];
74
+ }, {
75
+ kind: "document";
76
+ headings: {
77
+ text: string;
78
+ depth: number;
79
+ slug: string;
80
+ }[];
81
+ }>, z.ZodObject<{
82
+ kind: z.ZodLiteral<"sheet">;
83
+ sheets: z.ZodArray<z.ZodObject<{
84
+ name: z.ZodString;
85
+ rows: z.ZodNumber;
86
+ columns: z.ZodArray<z.ZodString, "many">;
87
+ }, "strip", z.ZodTypeAny, {
88
+ name: string;
89
+ rows: number;
90
+ columns: string[];
91
+ }, {
92
+ name: string;
93
+ rows: number;
94
+ columns: string[];
95
+ }>, "many">;
96
+ charts: z.ZodArray<z.ZodString, "many">;
97
+ }, "strip", z.ZodTypeAny, {
98
+ kind: "sheet";
99
+ sheets: {
100
+ name: string;
101
+ rows: number;
102
+ columns: string[];
103
+ }[];
104
+ charts: string[];
105
+ }, {
106
+ kind: "sheet";
107
+ sheets: {
108
+ name: string;
109
+ rows: number;
110
+ columns: string[];
111
+ }[];
112
+ charts: string[];
113
+ }>, z.ZodObject<{
114
+ kind: z.ZodLiteral<"slides">;
115
+ slides: z.ZodArray<z.ZodObject<{
116
+ title: z.ZodOptional<z.ZodString>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ title?: string | undefined;
119
+ }, {
120
+ title?: string | undefined;
121
+ }>, "many">;
122
+ }, "strip", z.ZodTypeAny, {
123
+ kind: "slides";
124
+ slides: {
125
+ title?: string | undefined;
126
+ }[];
127
+ }, {
128
+ kind: "slides";
129
+ slides: {
130
+ title?: string | undefined;
131
+ }[];
132
+ }>, z.ZodObject<{
133
+ kind: z.ZodLiteral<"file">;
134
+ mediaType: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ kind: "file";
137
+ mediaType: string;
138
+ }, {
139
+ kind: "file";
140
+ mediaType: string;
141
+ }>]>;
142
+ references: z.ZodArray<z.ZodObject<{
143
+ address: z.ZodString;
144
+ as: z.ZodEnum<["embed", "link"]>;
145
+ at: z.ZodString;
146
+ resolvedVersion: z.ZodNumber;
147
+ }, "strip", z.ZodTypeAny, {
148
+ at: string;
149
+ address: string;
150
+ as: "embed" | "link";
151
+ resolvedVersion: number;
152
+ }, {
153
+ at: string;
154
+ address: string;
155
+ as: "embed" | "link";
156
+ resolvedVersion: number;
157
+ }>, "many">;
158
+ author: z.ZodObject<{
159
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
160
+ id: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ id: string;
163
+ type: "user" | "serviceAccount" | "system";
164
+ }, {
165
+ id: string;
166
+ type: "user" | "serviceAccount" | "system";
167
+ }>;
168
+ origin: z.ZodOptional<z.ZodObject<{
169
+ threadId: z.ZodString;
170
+ runId: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ runId: string;
173
+ threadId: string;
174
+ }, {
175
+ runId: string;
176
+ threadId: string;
177
+ }>>;
178
+ createdAt: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ files: {
181
+ path: string;
182
+ file: {
183
+ blobId: string;
184
+ digest: string;
185
+ sizeBytes: number;
186
+ fileName?: string | undefined;
187
+ mediaType?: string | undefined;
188
+ logicalPath?: string | undefined;
189
+ };
190
+ }[];
191
+ title: string;
192
+ version: number;
193
+ createdAt: string;
194
+ artifactId: string;
195
+ entry: string;
196
+ outline: {
197
+ kind: "document";
198
+ headings: {
199
+ text: string;
200
+ depth: number;
201
+ slug: string;
202
+ }[];
203
+ } | {
204
+ kind: "sheet";
205
+ sheets: {
206
+ name: string;
207
+ rows: number;
208
+ columns: string[];
209
+ }[];
210
+ charts: string[];
211
+ } | {
212
+ kind: "slides";
213
+ slides: {
214
+ title?: string | undefined;
215
+ }[];
216
+ } | {
217
+ kind: "file";
218
+ mediaType: string;
219
+ };
220
+ references: {
221
+ at: string;
222
+ address: string;
223
+ as: "embed" | "link";
224
+ resolvedVersion: number;
225
+ }[];
226
+ author: {
227
+ id: string;
228
+ type: "user" | "serviceAccount" | "system";
229
+ };
230
+ origin?: {
231
+ runId: string;
232
+ threadId: string;
233
+ } | undefined;
234
+ }, {
235
+ files: {
236
+ path: string;
237
+ file: {
238
+ blobId: string;
239
+ digest: string;
240
+ sizeBytes: number;
241
+ fileName?: string | undefined;
242
+ mediaType?: string | undefined;
243
+ logicalPath?: string | undefined;
244
+ };
245
+ }[];
246
+ title: string;
247
+ version: number;
248
+ createdAt: string;
249
+ artifactId: string;
250
+ entry: string;
251
+ outline: {
252
+ kind: "document";
253
+ headings: {
254
+ text: string;
255
+ depth: number;
256
+ slug: string;
257
+ }[];
258
+ } | {
259
+ kind: "sheet";
260
+ sheets: {
261
+ name: string;
262
+ rows: number;
263
+ columns: string[];
264
+ }[];
265
+ charts: string[];
266
+ } | {
267
+ kind: "slides";
268
+ slides: {
269
+ title?: string | undefined;
270
+ }[];
271
+ } | {
272
+ kind: "file";
273
+ mediaType: string;
274
+ };
275
+ references: {
276
+ at: string;
277
+ address: string;
278
+ as: "embed" | "link";
279
+ resolvedVersion: number;
280
+ }[];
281
+ author: {
282
+ id: string;
283
+ type: "user" | "serviceAccount" | "system";
284
+ };
285
+ origin?: {
286
+ runId: string;
287
+ threadId: string;
288
+ } | undefined;
289
+ }>;
290
+ export declare const ArtifactParamsSchema: z.ZodObject<{
291
+ artifactId: z.ZodString;
292
+ }, "strip", z.ZodTypeAny, {
293
+ artifactId: string;
294
+ }, {
295
+ artifactId: string;
296
+ }>;
297
+ export declare const ArtifactVersionParamsSchema: z.ZodObject<{
298
+ artifactId: z.ZodString;
299
+ } & {
300
+ version: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ version: string;
303
+ artifactId: string;
304
+ }, {
305
+ version: string;
306
+ artifactId: string;
307
+ }>;
308
+ export declare const ArtifactListQuerySchema: z.ZodObject<{
309
+ thread: z.ZodOptional<z.ZodString>;
310
+ kind: z.ZodOptional<z.ZodEnum<["document", "sheet", "slides", "file"]>>;
311
+ limit: z.ZodOptional<z.ZodString>;
312
+ offset: z.ZodOptional<z.ZodString>;
313
+ }, "strict", z.ZodTypeAny, {
314
+ kind?: "file" | "document" | "sheet" | "slides" | undefined;
315
+ limit?: string | undefined;
316
+ offset?: string | undefined;
317
+ thread?: string | undefined;
318
+ }, {
319
+ kind?: "file" | "document" | "sheet" | "slides" | undefined;
320
+ limit?: string | undefined;
321
+ offset?: string | undefined;
322
+ thread?: string | undefined;
323
+ }>;
324
+ export declare const ArtifactListResponseSchema: z.ZodObject<{
325
+ artifacts: z.ZodArray<z.ZodObject<{
326
+ id: z.ZodString;
327
+ projectId: z.ZodString;
328
+ kind: z.ZodEnum<["document", "sheet", "slides", "file"]>;
329
+ title: z.ZodString;
330
+ owner: z.ZodObject<{
331
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
332
+ id: z.ZodString;
333
+ }, "strip", z.ZodTypeAny, {
334
+ id: string;
335
+ type: "user" | "serviceAccount" | "system";
336
+ }, {
337
+ id: string;
338
+ type: "user" | "serviceAccount" | "system";
339
+ }>;
340
+ latestVersion: z.ZodNumber;
341
+ createdAt: z.ZodString;
342
+ updatedAt: z.ZodString;
343
+ }, "strip", z.ZodTypeAny, {
344
+ projectId: string;
345
+ id: string;
346
+ kind: "file" | "document" | "sheet" | "slides";
347
+ title: string;
348
+ createdAt: string;
349
+ updatedAt: string;
350
+ owner: {
351
+ id: string;
352
+ type: "user" | "serviceAccount" | "system";
353
+ };
354
+ latestVersion: number;
355
+ }, {
356
+ projectId: string;
357
+ id: string;
358
+ kind: "file" | "document" | "sheet" | "slides";
359
+ title: string;
360
+ createdAt: string;
361
+ updatedAt: string;
362
+ owner: {
363
+ id: string;
364
+ type: "user" | "serviceAccount" | "system";
365
+ };
366
+ latestVersion: number;
367
+ }>, "many">;
368
+ hasMore: z.ZodBoolean;
369
+ total: z.ZodNumber;
370
+ }, "strip", z.ZodTypeAny, {
371
+ artifacts: {
372
+ projectId: string;
373
+ id: string;
374
+ kind: "file" | "document" | "sheet" | "slides";
375
+ title: string;
376
+ createdAt: string;
377
+ updatedAt: string;
378
+ owner: {
379
+ id: string;
380
+ type: "user" | "serviceAccount" | "system";
381
+ };
382
+ latestVersion: number;
383
+ }[];
384
+ hasMore: boolean;
385
+ total: number;
386
+ }, {
387
+ artifacts: {
388
+ projectId: string;
389
+ id: string;
390
+ kind: "file" | "document" | "sheet" | "slides";
391
+ title: string;
392
+ createdAt: string;
393
+ updatedAt: string;
394
+ owner: {
395
+ id: string;
396
+ type: "user" | "serviceAccount" | "system";
397
+ };
398
+ latestVersion: number;
399
+ }[];
400
+ hasMore: boolean;
401
+ total: number;
402
+ }>;
403
+ export declare const ArtifactResponseSchema: z.ZodObject<{
404
+ artifact: z.ZodObject<{
405
+ id: z.ZodString;
406
+ projectId: z.ZodString;
407
+ kind: z.ZodEnum<["document", "sheet", "slides", "file"]>;
408
+ title: z.ZodString;
409
+ owner: z.ZodObject<{
410
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
411
+ id: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ id: string;
414
+ type: "user" | "serviceAccount" | "system";
415
+ }, {
416
+ id: string;
417
+ type: "user" | "serviceAccount" | "system";
418
+ }>;
419
+ latestVersion: z.ZodNumber;
420
+ createdAt: z.ZodString;
421
+ updatedAt: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ projectId: string;
424
+ id: string;
425
+ kind: "file" | "document" | "sheet" | "slides";
426
+ title: string;
427
+ createdAt: string;
428
+ updatedAt: string;
429
+ owner: {
430
+ id: string;
431
+ type: "user" | "serviceAccount" | "system";
432
+ };
433
+ latestVersion: number;
434
+ }, {
435
+ projectId: string;
436
+ id: string;
437
+ kind: "file" | "document" | "sheet" | "slides";
438
+ title: string;
439
+ createdAt: string;
440
+ updatedAt: string;
441
+ owner: {
442
+ id: string;
443
+ type: "user" | "serviceAccount" | "system";
444
+ };
445
+ latestVersion: number;
446
+ }>;
447
+ versions: z.ZodArray<z.ZodObject<Pick<{
448
+ artifactId: z.ZodString;
449
+ version: z.ZodNumber;
450
+ title: z.ZodString;
451
+ entry: z.ZodString;
452
+ files: z.ZodArray<z.ZodObject<{
453
+ path: z.ZodString;
454
+ file: z.ZodObject<{
455
+ blobId: z.ZodString;
456
+ digest: z.ZodString;
457
+ sizeBytes: z.ZodNumber;
458
+ fileName: z.ZodOptional<z.ZodString>;
459
+ mediaType: z.ZodOptional<z.ZodString>;
460
+ logicalPath: z.ZodOptional<z.ZodString>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ blobId: string;
463
+ digest: string;
464
+ sizeBytes: number;
465
+ fileName?: string | undefined;
466
+ mediaType?: string | undefined;
467
+ logicalPath?: string | undefined;
468
+ }, {
469
+ blobId: string;
470
+ digest: string;
471
+ sizeBytes: number;
472
+ fileName?: string | undefined;
473
+ mediaType?: string | undefined;
474
+ logicalPath?: string | undefined;
475
+ }>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ path: string;
478
+ file: {
479
+ blobId: string;
480
+ digest: string;
481
+ sizeBytes: number;
482
+ fileName?: string | undefined;
483
+ mediaType?: string | undefined;
484
+ logicalPath?: string | undefined;
485
+ };
486
+ }, {
487
+ path: string;
488
+ file: {
489
+ blobId: string;
490
+ digest: string;
491
+ sizeBytes: number;
492
+ fileName?: string | undefined;
493
+ mediaType?: string | undefined;
494
+ logicalPath?: string | undefined;
495
+ };
496
+ }>, "many">;
497
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
498
+ kind: z.ZodLiteral<"document">;
499
+ headings: z.ZodArray<z.ZodObject<{
500
+ depth: z.ZodNumber;
501
+ text: z.ZodString;
502
+ slug: z.ZodString;
503
+ }, "strip", z.ZodTypeAny, {
504
+ text: string;
505
+ depth: number;
506
+ slug: string;
507
+ }, {
508
+ text: string;
509
+ depth: number;
510
+ slug: string;
511
+ }>, "many">;
512
+ }, "strip", z.ZodTypeAny, {
513
+ kind: "document";
514
+ headings: {
515
+ text: string;
516
+ depth: number;
517
+ slug: string;
518
+ }[];
519
+ }, {
520
+ kind: "document";
521
+ headings: {
522
+ text: string;
523
+ depth: number;
524
+ slug: string;
525
+ }[];
526
+ }>, z.ZodObject<{
527
+ kind: z.ZodLiteral<"sheet">;
528
+ sheets: z.ZodArray<z.ZodObject<{
529
+ name: z.ZodString;
530
+ rows: z.ZodNumber;
531
+ columns: z.ZodArray<z.ZodString, "many">;
532
+ }, "strip", z.ZodTypeAny, {
533
+ name: string;
534
+ rows: number;
535
+ columns: string[];
536
+ }, {
537
+ name: string;
538
+ rows: number;
539
+ columns: string[];
540
+ }>, "many">;
541
+ charts: z.ZodArray<z.ZodString, "many">;
542
+ }, "strip", z.ZodTypeAny, {
543
+ kind: "sheet";
544
+ sheets: {
545
+ name: string;
546
+ rows: number;
547
+ columns: string[];
548
+ }[];
549
+ charts: string[];
550
+ }, {
551
+ kind: "sheet";
552
+ sheets: {
553
+ name: string;
554
+ rows: number;
555
+ columns: string[];
556
+ }[];
557
+ charts: string[];
558
+ }>, z.ZodObject<{
559
+ kind: z.ZodLiteral<"slides">;
560
+ slides: z.ZodArray<z.ZodObject<{
561
+ title: z.ZodOptional<z.ZodString>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ title?: string | undefined;
564
+ }, {
565
+ title?: string | undefined;
566
+ }>, "many">;
567
+ }, "strip", z.ZodTypeAny, {
568
+ kind: "slides";
569
+ slides: {
570
+ title?: string | undefined;
571
+ }[];
572
+ }, {
573
+ kind: "slides";
574
+ slides: {
575
+ title?: string | undefined;
576
+ }[];
577
+ }>, z.ZodObject<{
578
+ kind: z.ZodLiteral<"file">;
579
+ mediaType: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ kind: "file";
582
+ mediaType: string;
583
+ }, {
584
+ kind: "file";
585
+ mediaType: string;
586
+ }>]>;
587
+ references: z.ZodArray<z.ZodObject<{
588
+ address: z.ZodString;
589
+ as: z.ZodEnum<["embed", "link"]>;
590
+ at: z.ZodString;
591
+ resolvedVersion: z.ZodNumber;
592
+ }, "strip", z.ZodTypeAny, {
593
+ at: string;
594
+ address: string;
595
+ as: "embed" | "link";
596
+ resolvedVersion: number;
597
+ }, {
598
+ at: string;
599
+ address: string;
600
+ as: "embed" | "link";
601
+ resolvedVersion: number;
602
+ }>, "many">;
603
+ author: z.ZodObject<{
604
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
605
+ id: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ id: string;
608
+ type: "user" | "serviceAccount" | "system";
609
+ }, {
610
+ id: string;
611
+ type: "user" | "serviceAccount" | "system";
612
+ }>;
613
+ origin: z.ZodOptional<z.ZodObject<{
614
+ threadId: z.ZodString;
615
+ runId: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ runId: string;
618
+ threadId: string;
619
+ }, {
620
+ runId: string;
621
+ threadId: string;
622
+ }>>;
623
+ createdAt: z.ZodString;
624
+ }, "origin" | "title" | "version" | "createdAt" | "author">, "strip", z.ZodTypeAny, {
625
+ title: string;
626
+ version: number;
627
+ createdAt: string;
628
+ author: {
629
+ id: string;
630
+ type: "user" | "serviceAccount" | "system";
631
+ };
632
+ origin?: {
633
+ runId: string;
634
+ threadId: string;
635
+ } | undefined;
636
+ }, {
637
+ title: string;
638
+ version: number;
639
+ createdAt: string;
640
+ author: {
641
+ id: string;
642
+ type: "user" | "serviceAccount" | "system";
643
+ };
644
+ origin?: {
645
+ runId: string;
646
+ threadId: string;
647
+ } | undefined;
648
+ }>, "many">;
649
+ }, "strip", z.ZodTypeAny, {
650
+ artifact: {
651
+ projectId: string;
652
+ id: string;
653
+ kind: "file" | "document" | "sheet" | "slides";
654
+ title: string;
655
+ createdAt: string;
656
+ updatedAt: string;
657
+ owner: {
658
+ id: string;
659
+ type: "user" | "serviceAccount" | "system";
660
+ };
661
+ latestVersion: number;
662
+ };
663
+ versions: {
664
+ title: string;
665
+ version: number;
666
+ createdAt: string;
667
+ author: {
668
+ id: string;
669
+ type: "user" | "serviceAccount" | "system";
670
+ };
671
+ origin?: {
672
+ runId: string;
673
+ threadId: string;
674
+ } | undefined;
675
+ }[];
676
+ }, {
677
+ artifact: {
678
+ projectId: string;
679
+ id: string;
680
+ kind: "file" | "document" | "sheet" | "slides";
681
+ title: string;
682
+ createdAt: string;
683
+ updatedAt: string;
684
+ owner: {
685
+ id: string;
686
+ type: "user" | "serviceAccount" | "system";
687
+ };
688
+ latestVersion: number;
689
+ };
690
+ versions: {
691
+ title: string;
692
+ version: number;
693
+ createdAt: string;
694
+ author: {
695
+ id: string;
696
+ type: "user" | "serviceAccount" | "system";
697
+ };
698
+ origin?: {
699
+ runId: string;
700
+ threadId: string;
701
+ } | undefined;
702
+ }[];
703
+ }>;
704
+ export declare const PublishArtifactBodySchema: z.ZodObject<{
705
+ kind: z.ZodEnum<["document", "sheet", "slides", "file"]>;
706
+ title: z.ZodString;
707
+ files: z.ZodArray<z.ZodObject<{
708
+ path: z.ZodString;
709
+ file: z.ZodObject<{
710
+ blobId: z.ZodString;
711
+ digest: z.ZodString;
712
+ sizeBytes: z.ZodNumber;
713
+ fileName: z.ZodOptional<z.ZodString>;
714
+ mediaType: z.ZodOptional<z.ZodString>;
715
+ logicalPath: z.ZodOptional<z.ZodString>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ blobId: string;
718
+ digest: string;
719
+ sizeBytes: number;
720
+ fileName?: string | undefined;
721
+ mediaType?: string | undefined;
722
+ logicalPath?: string | undefined;
723
+ }, {
724
+ blobId: string;
725
+ digest: string;
726
+ sizeBytes: number;
727
+ fileName?: string | undefined;
728
+ mediaType?: string | undefined;
729
+ logicalPath?: string | undefined;
730
+ }>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ path: string;
733
+ file: {
734
+ blobId: string;
735
+ digest: string;
736
+ sizeBytes: number;
737
+ fileName?: string | undefined;
738
+ mediaType?: string | undefined;
739
+ logicalPath?: string | undefined;
740
+ };
741
+ }, {
742
+ path: string;
743
+ file: {
744
+ blobId: string;
745
+ digest: string;
746
+ sizeBytes: number;
747
+ fileName?: string | undefined;
748
+ mediaType?: string | undefined;
749
+ logicalPath?: string | undefined;
750
+ };
751
+ }>, "many">;
752
+ }, "strict", z.ZodTypeAny, {
753
+ kind: "file" | "document" | "sheet" | "slides";
754
+ files: {
755
+ path: string;
756
+ file: {
757
+ blobId: string;
758
+ digest: string;
759
+ sizeBytes: number;
760
+ fileName?: string | undefined;
761
+ mediaType?: string | undefined;
762
+ logicalPath?: string | undefined;
763
+ };
764
+ }[];
765
+ title: string;
766
+ }, {
767
+ kind: "file" | "document" | "sheet" | "slides";
768
+ files: {
769
+ path: string;
770
+ file: {
771
+ blobId: string;
772
+ digest: string;
773
+ sizeBytes: number;
774
+ fileName?: string | undefined;
775
+ mediaType?: string | undefined;
776
+ logicalPath?: string | undefined;
777
+ };
778
+ }[];
779
+ title: string;
780
+ }>;
781
+ export declare const PublishedArtifactResponseSchema: z.ZodObject<{
782
+ artifact: z.ZodObject<{
783
+ id: z.ZodString;
784
+ projectId: z.ZodString;
785
+ kind: z.ZodEnum<["document", "sheet", "slides", "file"]>;
786
+ title: z.ZodString;
787
+ owner: z.ZodObject<{
788
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
789
+ id: z.ZodString;
790
+ }, "strip", z.ZodTypeAny, {
791
+ id: string;
792
+ type: "user" | "serviceAccount" | "system";
793
+ }, {
794
+ id: string;
795
+ type: "user" | "serviceAccount" | "system";
796
+ }>;
797
+ latestVersion: z.ZodNumber;
798
+ createdAt: z.ZodString;
799
+ updatedAt: z.ZodString;
800
+ }, "strip", z.ZodTypeAny, {
801
+ projectId: string;
802
+ id: string;
803
+ kind: "file" | "document" | "sheet" | "slides";
804
+ title: string;
805
+ createdAt: string;
806
+ updatedAt: string;
807
+ owner: {
808
+ id: string;
809
+ type: "user" | "serviceAccount" | "system";
810
+ };
811
+ latestVersion: number;
812
+ }, {
813
+ projectId: string;
814
+ id: string;
815
+ kind: "file" | "document" | "sheet" | "slides";
816
+ title: string;
817
+ createdAt: string;
818
+ updatedAt: string;
819
+ owner: {
820
+ id: string;
821
+ type: "user" | "serviceAccount" | "system";
822
+ };
823
+ latestVersion: number;
824
+ }>;
825
+ version: z.ZodObject<{
826
+ artifactId: z.ZodString;
827
+ version: z.ZodNumber;
828
+ title: z.ZodString;
829
+ entry: z.ZodString;
830
+ files: z.ZodArray<z.ZodObject<{
831
+ path: z.ZodString;
832
+ file: z.ZodObject<{
833
+ blobId: z.ZodString;
834
+ digest: z.ZodString;
835
+ sizeBytes: z.ZodNumber;
836
+ fileName: z.ZodOptional<z.ZodString>;
837
+ mediaType: z.ZodOptional<z.ZodString>;
838
+ logicalPath: z.ZodOptional<z.ZodString>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ blobId: string;
841
+ digest: string;
842
+ sizeBytes: number;
843
+ fileName?: string | undefined;
844
+ mediaType?: string | undefined;
845
+ logicalPath?: string | undefined;
846
+ }, {
847
+ blobId: string;
848
+ digest: string;
849
+ sizeBytes: number;
850
+ fileName?: string | undefined;
851
+ mediaType?: string | undefined;
852
+ logicalPath?: string | undefined;
853
+ }>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ path: string;
856
+ file: {
857
+ blobId: string;
858
+ digest: string;
859
+ sizeBytes: number;
860
+ fileName?: string | undefined;
861
+ mediaType?: string | undefined;
862
+ logicalPath?: string | undefined;
863
+ };
864
+ }, {
865
+ path: string;
866
+ file: {
867
+ blobId: string;
868
+ digest: string;
869
+ sizeBytes: number;
870
+ fileName?: string | undefined;
871
+ mediaType?: string | undefined;
872
+ logicalPath?: string | undefined;
873
+ };
874
+ }>, "many">;
875
+ outline: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
876
+ kind: z.ZodLiteral<"document">;
877
+ headings: z.ZodArray<z.ZodObject<{
878
+ depth: z.ZodNumber;
879
+ text: z.ZodString;
880
+ slug: z.ZodString;
881
+ }, "strip", z.ZodTypeAny, {
882
+ text: string;
883
+ depth: number;
884
+ slug: string;
885
+ }, {
886
+ text: string;
887
+ depth: number;
888
+ slug: string;
889
+ }>, "many">;
890
+ }, "strip", z.ZodTypeAny, {
891
+ kind: "document";
892
+ headings: {
893
+ text: string;
894
+ depth: number;
895
+ slug: string;
896
+ }[];
897
+ }, {
898
+ kind: "document";
899
+ headings: {
900
+ text: string;
901
+ depth: number;
902
+ slug: string;
903
+ }[];
904
+ }>, z.ZodObject<{
905
+ kind: z.ZodLiteral<"sheet">;
906
+ sheets: z.ZodArray<z.ZodObject<{
907
+ name: z.ZodString;
908
+ rows: z.ZodNumber;
909
+ columns: z.ZodArray<z.ZodString, "many">;
910
+ }, "strip", z.ZodTypeAny, {
911
+ name: string;
912
+ rows: number;
913
+ columns: string[];
914
+ }, {
915
+ name: string;
916
+ rows: number;
917
+ columns: string[];
918
+ }>, "many">;
919
+ charts: z.ZodArray<z.ZodString, "many">;
920
+ }, "strip", z.ZodTypeAny, {
921
+ kind: "sheet";
922
+ sheets: {
923
+ name: string;
924
+ rows: number;
925
+ columns: string[];
926
+ }[];
927
+ charts: string[];
928
+ }, {
929
+ kind: "sheet";
930
+ sheets: {
931
+ name: string;
932
+ rows: number;
933
+ columns: string[];
934
+ }[];
935
+ charts: string[];
936
+ }>, z.ZodObject<{
937
+ kind: z.ZodLiteral<"slides">;
938
+ slides: z.ZodArray<z.ZodObject<{
939
+ title: z.ZodOptional<z.ZodString>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ title?: string | undefined;
942
+ }, {
943
+ title?: string | undefined;
944
+ }>, "many">;
945
+ }, "strip", z.ZodTypeAny, {
946
+ kind: "slides";
947
+ slides: {
948
+ title?: string | undefined;
949
+ }[];
950
+ }, {
951
+ kind: "slides";
952
+ slides: {
953
+ title?: string | undefined;
954
+ }[];
955
+ }>, z.ZodObject<{
956
+ kind: z.ZodLiteral<"file">;
957
+ mediaType: z.ZodString;
958
+ }, "strip", z.ZodTypeAny, {
959
+ kind: "file";
960
+ mediaType: string;
961
+ }, {
962
+ kind: "file";
963
+ mediaType: string;
964
+ }>]>;
965
+ references: z.ZodArray<z.ZodObject<{
966
+ address: z.ZodString;
967
+ as: z.ZodEnum<["embed", "link"]>;
968
+ at: z.ZodString;
969
+ resolvedVersion: z.ZodNumber;
970
+ }, "strip", z.ZodTypeAny, {
971
+ at: string;
972
+ address: string;
973
+ as: "embed" | "link";
974
+ resolvedVersion: number;
975
+ }, {
976
+ at: string;
977
+ address: string;
978
+ as: "embed" | "link";
979
+ resolvedVersion: number;
980
+ }>, "many">;
981
+ author: z.ZodObject<{
982
+ type: z.ZodEnum<["user", "serviceAccount", "system"]>;
983
+ id: z.ZodString;
984
+ }, "strip", z.ZodTypeAny, {
985
+ id: string;
986
+ type: "user" | "serviceAccount" | "system";
987
+ }, {
988
+ id: string;
989
+ type: "user" | "serviceAccount" | "system";
990
+ }>;
991
+ origin: z.ZodOptional<z.ZodObject<{
992
+ threadId: z.ZodString;
993
+ runId: z.ZodString;
994
+ }, "strip", z.ZodTypeAny, {
995
+ runId: string;
996
+ threadId: string;
997
+ }, {
998
+ runId: string;
999
+ threadId: string;
1000
+ }>>;
1001
+ createdAt: z.ZodString;
1002
+ }, "strip", z.ZodTypeAny, {
1003
+ files: {
1004
+ path: string;
1005
+ file: {
1006
+ blobId: string;
1007
+ digest: string;
1008
+ sizeBytes: number;
1009
+ fileName?: string | undefined;
1010
+ mediaType?: string | undefined;
1011
+ logicalPath?: string | undefined;
1012
+ };
1013
+ }[];
1014
+ title: string;
1015
+ version: number;
1016
+ createdAt: string;
1017
+ artifactId: string;
1018
+ entry: string;
1019
+ outline: {
1020
+ kind: "document";
1021
+ headings: {
1022
+ text: string;
1023
+ depth: number;
1024
+ slug: string;
1025
+ }[];
1026
+ } | {
1027
+ kind: "sheet";
1028
+ sheets: {
1029
+ name: string;
1030
+ rows: number;
1031
+ columns: string[];
1032
+ }[];
1033
+ charts: string[];
1034
+ } | {
1035
+ kind: "slides";
1036
+ slides: {
1037
+ title?: string | undefined;
1038
+ }[];
1039
+ } | {
1040
+ kind: "file";
1041
+ mediaType: string;
1042
+ };
1043
+ references: {
1044
+ at: string;
1045
+ address: string;
1046
+ as: "embed" | "link";
1047
+ resolvedVersion: number;
1048
+ }[];
1049
+ author: {
1050
+ id: string;
1051
+ type: "user" | "serviceAccount" | "system";
1052
+ };
1053
+ origin?: {
1054
+ runId: string;
1055
+ threadId: string;
1056
+ } | undefined;
1057
+ }, {
1058
+ files: {
1059
+ path: string;
1060
+ file: {
1061
+ blobId: string;
1062
+ digest: string;
1063
+ sizeBytes: number;
1064
+ fileName?: string | undefined;
1065
+ mediaType?: string | undefined;
1066
+ logicalPath?: string | undefined;
1067
+ };
1068
+ }[];
1069
+ title: string;
1070
+ version: number;
1071
+ createdAt: string;
1072
+ artifactId: string;
1073
+ entry: string;
1074
+ outline: {
1075
+ kind: "document";
1076
+ headings: {
1077
+ text: string;
1078
+ depth: number;
1079
+ slug: string;
1080
+ }[];
1081
+ } | {
1082
+ kind: "sheet";
1083
+ sheets: {
1084
+ name: string;
1085
+ rows: number;
1086
+ columns: string[];
1087
+ }[];
1088
+ charts: string[];
1089
+ } | {
1090
+ kind: "slides";
1091
+ slides: {
1092
+ title?: string | undefined;
1093
+ }[];
1094
+ } | {
1095
+ kind: "file";
1096
+ mediaType: string;
1097
+ };
1098
+ references: {
1099
+ at: string;
1100
+ address: string;
1101
+ as: "embed" | "link";
1102
+ resolvedVersion: number;
1103
+ }[];
1104
+ author: {
1105
+ id: string;
1106
+ type: "user" | "serviceAccount" | "system";
1107
+ };
1108
+ origin?: {
1109
+ runId: string;
1110
+ threadId: string;
1111
+ } | undefined;
1112
+ }>;
1113
+ warnings: z.ZodArray<z.ZodObject<{
1114
+ code: z.ZodString;
1115
+ message: z.ZodString;
1116
+ part: z.ZodOptional<z.ZodString>;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ code: string;
1119
+ message: string;
1120
+ part?: string | undefined;
1121
+ }, {
1122
+ code: string;
1123
+ message: string;
1124
+ part?: string | undefined;
1125
+ }>, "many">;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ version: {
1128
+ files: {
1129
+ path: string;
1130
+ file: {
1131
+ blobId: string;
1132
+ digest: string;
1133
+ sizeBytes: number;
1134
+ fileName?: string | undefined;
1135
+ mediaType?: string | undefined;
1136
+ logicalPath?: string | undefined;
1137
+ };
1138
+ }[];
1139
+ title: string;
1140
+ version: number;
1141
+ createdAt: string;
1142
+ artifactId: string;
1143
+ entry: string;
1144
+ outline: {
1145
+ kind: "document";
1146
+ headings: {
1147
+ text: string;
1148
+ depth: number;
1149
+ slug: string;
1150
+ }[];
1151
+ } | {
1152
+ kind: "sheet";
1153
+ sheets: {
1154
+ name: string;
1155
+ rows: number;
1156
+ columns: string[];
1157
+ }[];
1158
+ charts: string[];
1159
+ } | {
1160
+ kind: "slides";
1161
+ slides: {
1162
+ title?: string | undefined;
1163
+ }[];
1164
+ } | {
1165
+ kind: "file";
1166
+ mediaType: string;
1167
+ };
1168
+ references: {
1169
+ at: string;
1170
+ address: string;
1171
+ as: "embed" | "link";
1172
+ resolvedVersion: number;
1173
+ }[];
1174
+ author: {
1175
+ id: string;
1176
+ type: "user" | "serviceAccount" | "system";
1177
+ };
1178
+ origin?: {
1179
+ runId: string;
1180
+ threadId: string;
1181
+ } | undefined;
1182
+ };
1183
+ artifact: {
1184
+ projectId: string;
1185
+ id: string;
1186
+ kind: "file" | "document" | "sheet" | "slides";
1187
+ title: string;
1188
+ createdAt: string;
1189
+ updatedAt: string;
1190
+ owner: {
1191
+ id: string;
1192
+ type: "user" | "serviceAccount" | "system";
1193
+ };
1194
+ latestVersion: number;
1195
+ };
1196
+ warnings: {
1197
+ code: string;
1198
+ message: string;
1199
+ part?: string | undefined;
1200
+ }[];
1201
+ }, {
1202
+ version: {
1203
+ files: {
1204
+ path: string;
1205
+ file: {
1206
+ blobId: string;
1207
+ digest: string;
1208
+ sizeBytes: number;
1209
+ fileName?: string | undefined;
1210
+ mediaType?: string | undefined;
1211
+ logicalPath?: string | undefined;
1212
+ };
1213
+ }[];
1214
+ title: string;
1215
+ version: number;
1216
+ createdAt: string;
1217
+ artifactId: string;
1218
+ entry: string;
1219
+ outline: {
1220
+ kind: "document";
1221
+ headings: {
1222
+ text: string;
1223
+ depth: number;
1224
+ slug: string;
1225
+ }[];
1226
+ } | {
1227
+ kind: "sheet";
1228
+ sheets: {
1229
+ name: string;
1230
+ rows: number;
1231
+ columns: string[];
1232
+ }[];
1233
+ charts: string[];
1234
+ } | {
1235
+ kind: "slides";
1236
+ slides: {
1237
+ title?: string | undefined;
1238
+ }[];
1239
+ } | {
1240
+ kind: "file";
1241
+ mediaType: string;
1242
+ };
1243
+ references: {
1244
+ at: string;
1245
+ address: string;
1246
+ as: "embed" | "link";
1247
+ resolvedVersion: number;
1248
+ }[];
1249
+ author: {
1250
+ id: string;
1251
+ type: "user" | "serviceAccount" | "system";
1252
+ };
1253
+ origin?: {
1254
+ runId: string;
1255
+ threadId: string;
1256
+ } | undefined;
1257
+ };
1258
+ artifact: {
1259
+ projectId: string;
1260
+ id: string;
1261
+ kind: "file" | "document" | "sheet" | "slides";
1262
+ title: string;
1263
+ createdAt: string;
1264
+ updatedAt: string;
1265
+ owner: {
1266
+ id: string;
1267
+ type: "user" | "serviceAccount" | "system";
1268
+ };
1269
+ latestVersion: number;
1270
+ };
1271
+ warnings: {
1272
+ code: string;
1273
+ message: string;
1274
+ part?: string | undefined;
1275
+ }[];
1276
+ }>;
1277
+ export declare const DeleteArtifactResponseSchema: z.ZodObject<{
1278
+ deleted: z.ZodLiteral<true>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ deleted: true;
1281
+ }, {
1282
+ deleted: true;
1283
+ }>;
1284
+ export declare const ArtifactFrameResponseSchema: z.ZodObject<{
1285
+ path: z.ZodString;
1286
+ expiresAt: z.ZodString;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ path: string;
1289
+ expiresAt: string;
1290
+ }, {
1291
+ path: string;
1292
+ expiresAt: string;
1293
+ }>;
1294
+ export declare const ArtifactErrorResponseSchema: z.ZodObject<{
1295
+ error: z.ZodString;
1296
+ } & {
1297
+ code: z.ZodOptional<z.ZodString>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ error: string;
1300
+ code?: string | undefined;
1301
+ }, {
1302
+ error: string;
1303
+ code?: string | undefined;
1304
+ }>;
1305
+ //# sourceMappingURL=artifacts.d.ts.map