@otto-code/protocol 0.8.18 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-labels.d.ts +13 -0
- package/dist/agent-labels.js +26 -1
- package/dist/agent-profiles.d.ts +1 -1
- package/dist/agent-profiles.js +3 -3
- package/dist/architectural-views/rpc-schemas.d.ts +342 -0
- package/dist/architectural-views/rpc-schemas.js +171 -0
- package/dist/artifacts/rpc-schemas.d.ts +360 -2
- package/dist/artifacts/rpc-schemas.js +75 -1
- package/dist/artifacts/types.d.ts +71 -0
- package/dist/artifacts/types.js +27 -0
- package/dist/binary-frames/terminal.d.ts +1 -1
- package/dist/daemon-config.d.ts +66 -0
- package/dist/daemon-config.js +76 -3
- package/dist/generated/validation/ws-outbound.aot.js +70170 -56553
- package/dist/git-hosting.d.ts +56 -0
- package/dist/git-hosting.js +50 -0
- package/dist/kanban.d.ts +4 -0
- package/dist/kanban.js +4 -0
- package/dist/messages.d.ts +12186 -1217
- package/dist/messages.js +642 -33
- package/dist/model-tiers.js +2 -0
- package/dist/project-knowledge.d.ts +172 -0
- package/dist/project-knowledge.js +77 -0
- package/dist/provider-config.js +1 -1
- package/dist/provider-icon-names.js +1 -0
- package/dist/schedule/rpc-schemas.d.ts +212 -0
- package/dist/schedule/rpc-schemas.js +2 -0
- package/dist/schedule/types.d.ts +110 -0
- package/dist/schedule/types.js +27 -0
- package/dist/search/text-match.d.ts +16 -0
- package/dist/search/text-match.js +31 -2
- package/dist/validation/ws-outbound-schema-metadata.d.ts +2481 -104
- package/dist/workflow.d.ts +3060 -0
- package/dist/{orchestration.js → workflow.js} +461 -29
- package/dist/workspace-labels.d.ts +9 -0
- package/dist/workspace-labels.js +19 -0
- package/package.json +1 -1
- package/dist/orchestration.d.ts +0 -1148
- package/dist/project-links.d.ts +0 -102
- package/dist/project-links.js +0 -62
|
@@ -59,6 +59,40 @@ export declare const ArtifactGetContentRequestSchema: z.ZodObject<{
|
|
|
59
59
|
artifactId: z.ZodString;
|
|
60
60
|
requestId: z.ZodString;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
|
+
export declare const ArtifactRepairRequestSchema: z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"artifact.repair.request">;
|
|
64
|
+
artifactId: z.ZodString;
|
|
65
|
+
requestId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export declare const ArtifactDataGetRequestSchema: z.ZodObject<{
|
|
68
|
+
type: z.ZodLiteral<"artifact.data.get.request">;
|
|
69
|
+
artifactId: z.ZodString;
|
|
70
|
+
requestId: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const ArtifactDataUpdateRequestSchema: z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<"artifact.data.update.request">;
|
|
74
|
+
artifactId: z.ZodString;
|
|
75
|
+
data: z.ZodJSONSchema;
|
|
76
|
+
requestId: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const ArtifactStoreMoveRequestSchema: z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"artifact.store.move.request">;
|
|
80
|
+
artifactId: z.ZodString;
|
|
81
|
+
destination: z.ZodEnum<{
|
|
82
|
+
repository: "repository";
|
|
83
|
+
host: "host";
|
|
84
|
+
}>;
|
|
85
|
+
requestId: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export declare const ProjectArtifactStoreSetRequestSchema: z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<"project.artifact.store.set.request">;
|
|
89
|
+
projectId: z.ZodString;
|
|
90
|
+
location: z.ZodNullable<z.ZodEnum<{
|
|
91
|
+
repository: "repository";
|
|
92
|
+
host: "host";
|
|
93
|
+
}>>;
|
|
94
|
+
requestId: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
62
96
|
export declare const ArtifactListResponseSchema: z.ZodObject<{
|
|
63
97
|
type: z.ZodLiteral<"artifact.list.response">;
|
|
64
98
|
payload: z.ZodObject<{
|
|
@@ -89,6 +123,23 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
|
|
|
89
123
|
glowB: z.ZodString;
|
|
90
124
|
}, z.core.$loose>>>;
|
|
91
125
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"chat">;
|
|
128
|
+
agentId: z.ZodString;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
kind: z.ZodLiteral<"workflow">;
|
|
131
|
+
workflowId: z.ZodString;
|
|
132
|
+
runId: z.ZodString;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
kind: z.ZodLiteral<"schedule">;
|
|
135
|
+
scheduleId: z.ZodString;
|
|
136
|
+
runId: z.ZodString;
|
|
137
|
+
}, z.core.$strip>], "kind">>;
|
|
138
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
139
|
+
repository: "repository";
|
|
140
|
+
host: "host";
|
|
141
|
+
}>>;
|
|
142
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
92
143
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
93
144
|
}, z.core.$strip>>;
|
|
94
145
|
success: z.ZodBoolean;
|
|
@@ -126,6 +177,23 @@ export declare const ArtifactCreateResponseSchema: z.ZodObject<{
|
|
|
126
177
|
glowB: z.ZodString;
|
|
127
178
|
}, z.core.$loose>>>;
|
|
128
179
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"chat">;
|
|
182
|
+
agentId: z.ZodString;
|
|
183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
+
kind: z.ZodLiteral<"workflow">;
|
|
185
|
+
workflowId: z.ZodString;
|
|
186
|
+
runId: z.ZodString;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
kind: z.ZodLiteral<"schedule">;
|
|
189
|
+
scheduleId: z.ZodString;
|
|
190
|
+
runId: z.ZodString;
|
|
191
|
+
}, z.core.$strip>], "kind">>;
|
|
192
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
repository: "repository";
|
|
194
|
+
host: "host";
|
|
195
|
+
}>>;
|
|
196
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
129
197
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
130
198
|
}, z.core.$strip>;
|
|
131
199
|
success: z.ZodBoolean;
|
|
@@ -171,6 +239,23 @@ export declare const ArtifactStarResponseSchema: z.ZodObject<{
|
|
|
171
239
|
glowB: z.ZodString;
|
|
172
240
|
}, z.core.$loose>>>;
|
|
173
241
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
243
|
+
kind: z.ZodLiteral<"chat">;
|
|
244
|
+
agentId: z.ZodString;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
kind: z.ZodLiteral<"workflow">;
|
|
247
|
+
workflowId: z.ZodString;
|
|
248
|
+
runId: z.ZodString;
|
|
249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
+
kind: z.ZodLiteral<"schedule">;
|
|
251
|
+
scheduleId: z.ZodString;
|
|
252
|
+
runId: z.ZodString;
|
|
253
|
+
}, z.core.$strip>], "kind">>;
|
|
254
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
255
|
+
repository: "repository";
|
|
256
|
+
host: "host";
|
|
257
|
+
}>>;
|
|
258
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
174
259
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
175
260
|
}, z.core.$strip>;
|
|
176
261
|
success: z.ZodBoolean;
|
|
@@ -208,6 +293,23 @@ export declare const ArtifactUpdateResponseSchema: z.ZodObject<{
|
|
|
208
293
|
glowB: z.ZodString;
|
|
209
294
|
}, z.core.$loose>>>;
|
|
210
295
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
297
|
+
kind: z.ZodLiteral<"chat">;
|
|
298
|
+
agentId: z.ZodString;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
kind: z.ZodLiteral<"workflow">;
|
|
301
|
+
workflowId: z.ZodString;
|
|
302
|
+
runId: z.ZodString;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
kind: z.ZodLiteral<"schedule">;
|
|
305
|
+
scheduleId: z.ZodString;
|
|
306
|
+
runId: z.ZodString;
|
|
307
|
+
}, z.core.$strip>], "kind">>;
|
|
308
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
repository: "repository";
|
|
310
|
+
host: "host";
|
|
311
|
+
}>>;
|
|
312
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
211
313
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
212
314
|
}, z.core.$strip>;
|
|
213
315
|
success: z.ZodBoolean;
|
|
@@ -245,6 +347,23 @@ export declare const ArtifactRegenerateResponseSchema: z.ZodObject<{
|
|
|
245
347
|
glowB: z.ZodString;
|
|
246
348
|
}, z.core.$loose>>>;
|
|
247
349
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
351
|
+
kind: z.ZodLiteral<"chat">;
|
|
352
|
+
agentId: z.ZodString;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
kind: z.ZodLiteral<"workflow">;
|
|
355
|
+
workflowId: z.ZodString;
|
|
356
|
+
runId: z.ZodString;
|
|
357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
358
|
+
kind: z.ZodLiteral<"schedule">;
|
|
359
|
+
scheduleId: z.ZodString;
|
|
360
|
+
runId: z.ZodString;
|
|
361
|
+
}, z.core.$strip>], "kind">>;
|
|
362
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
repository: "repository";
|
|
364
|
+
host: "host";
|
|
365
|
+
}>>;
|
|
366
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
248
367
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
249
368
|
}, z.core.$strip>;
|
|
250
369
|
success: z.ZodBoolean;
|
|
@@ -282,6 +401,23 @@ export declare const ArtifactCancelResponseSchema: z.ZodObject<{
|
|
|
282
401
|
glowB: z.ZodString;
|
|
283
402
|
}, z.core.$loose>>>;
|
|
284
403
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
404
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
405
|
+
kind: z.ZodLiteral<"chat">;
|
|
406
|
+
agentId: z.ZodString;
|
|
407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
408
|
+
kind: z.ZodLiteral<"workflow">;
|
|
409
|
+
workflowId: z.ZodString;
|
|
410
|
+
runId: z.ZodString;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
kind: z.ZodLiteral<"schedule">;
|
|
413
|
+
scheduleId: z.ZodString;
|
|
414
|
+
runId: z.ZodString;
|
|
415
|
+
}, z.core.$strip>], "kind">>;
|
|
416
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
417
|
+
repository: "repository";
|
|
418
|
+
host: "host";
|
|
419
|
+
}>>;
|
|
420
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
285
421
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
286
422
|
}, z.core.$strip>;
|
|
287
423
|
success: z.ZodBoolean;
|
|
@@ -298,6 +434,186 @@ export declare const ArtifactGetContentResponseSchema: z.ZodObject<{
|
|
|
298
434
|
requestId: z.ZodString;
|
|
299
435
|
}, z.core.$strip>;
|
|
300
436
|
}, z.core.$strip>;
|
|
437
|
+
export declare const ArtifactRepairResponseSchema: z.ZodObject<{
|
|
438
|
+
type: z.ZodLiteral<"artifact.repair.response">;
|
|
439
|
+
payload: z.ZodObject<{
|
|
440
|
+
artifact: z.ZodObject<{
|
|
441
|
+
id: z.ZodString;
|
|
442
|
+
name: z.ZodString;
|
|
443
|
+
description: z.ZodString;
|
|
444
|
+
projectId: z.ZodString;
|
|
445
|
+
filePath: z.ZodString;
|
|
446
|
+
kind: z.ZodEnum<{
|
|
447
|
+
html: "html";
|
|
448
|
+
}>;
|
|
449
|
+
starred: z.ZodBoolean;
|
|
450
|
+
status: z.ZodEnum<{
|
|
451
|
+
error: "error";
|
|
452
|
+
ready: "ready";
|
|
453
|
+
generating: "generating";
|
|
454
|
+
}>;
|
|
455
|
+
createdAt: z.ZodString;
|
|
456
|
+
updatedAt: z.ZodString;
|
|
457
|
+
generationAgentId: z.ZodNullable<z.ZodString>;
|
|
458
|
+
generationProvider: z.ZodNullable<z.ZodString>;
|
|
459
|
+
generationModel: z.ZodNullable<z.ZodString>;
|
|
460
|
+
generationModeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
generationThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
|
+
generationSpinner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
463
|
+
glowA: z.ZodString;
|
|
464
|
+
glowB: z.ZodString;
|
|
465
|
+
}, z.core.$loose>>>;
|
|
466
|
+
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
468
|
+
kind: z.ZodLiteral<"chat">;
|
|
469
|
+
agentId: z.ZodString;
|
|
470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
471
|
+
kind: z.ZodLiteral<"workflow">;
|
|
472
|
+
workflowId: z.ZodString;
|
|
473
|
+
runId: z.ZodString;
|
|
474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
475
|
+
kind: z.ZodLiteral<"schedule">;
|
|
476
|
+
scheduleId: z.ZodString;
|
|
477
|
+
runId: z.ZodString;
|
|
478
|
+
}, z.core.$strip>], "kind">>;
|
|
479
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
480
|
+
repository: "repository";
|
|
481
|
+
host: "host";
|
|
482
|
+
}>>;
|
|
483
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
484
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
success: z.ZodBoolean;
|
|
487
|
+
error: z.ZodOptional<z.ZodString>;
|
|
488
|
+
requestId: z.ZodString;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
export declare const ArtifactDataGetResponseSchema: z.ZodObject<{
|
|
492
|
+
type: z.ZodLiteral<"artifact.data.get.response">;
|
|
493
|
+
payload: z.ZodObject<{
|
|
494
|
+
data: z.ZodNullable<z.ZodJSONSchema>;
|
|
495
|
+
success: z.ZodBoolean;
|
|
496
|
+
error: z.ZodOptional<z.ZodString>;
|
|
497
|
+
requestId: z.ZodString;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
export declare const ArtifactDataUpdateResponseSchema: z.ZodObject<{
|
|
501
|
+
type: z.ZodLiteral<"artifact.data.update.response">;
|
|
502
|
+
payload: z.ZodObject<{
|
|
503
|
+
artifact: z.ZodObject<{
|
|
504
|
+
id: z.ZodString;
|
|
505
|
+
name: z.ZodString;
|
|
506
|
+
description: z.ZodString;
|
|
507
|
+
projectId: z.ZodString;
|
|
508
|
+
filePath: z.ZodString;
|
|
509
|
+
kind: z.ZodEnum<{
|
|
510
|
+
html: "html";
|
|
511
|
+
}>;
|
|
512
|
+
starred: z.ZodBoolean;
|
|
513
|
+
status: z.ZodEnum<{
|
|
514
|
+
error: "error";
|
|
515
|
+
ready: "ready";
|
|
516
|
+
generating: "generating";
|
|
517
|
+
}>;
|
|
518
|
+
createdAt: z.ZodString;
|
|
519
|
+
updatedAt: z.ZodString;
|
|
520
|
+
generationAgentId: z.ZodNullable<z.ZodString>;
|
|
521
|
+
generationProvider: z.ZodNullable<z.ZodString>;
|
|
522
|
+
generationModel: z.ZodNullable<z.ZodString>;
|
|
523
|
+
generationModeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
generationThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
+
generationSpinner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
526
|
+
glowA: z.ZodString;
|
|
527
|
+
glowB: z.ZodString;
|
|
528
|
+
}, z.core.$loose>>>;
|
|
529
|
+
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
530
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
531
|
+
kind: z.ZodLiteral<"chat">;
|
|
532
|
+
agentId: z.ZodString;
|
|
533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
+
kind: z.ZodLiteral<"workflow">;
|
|
535
|
+
workflowId: z.ZodString;
|
|
536
|
+
runId: z.ZodString;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
kind: z.ZodLiteral<"schedule">;
|
|
539
|
+
scheduleId: z.ZodString;
|
|
540
|
+
runId: z.ZodString;
|
|
541
|
+
}, z.core.$strip>], "kind">>;
|
|
542
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
repository: "repository";
|
|
544
|
+
host: "host";
|
|
545
|
+
}>>;
|
|
546
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
547
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
548
|
+
}, z.core.$strip>;
|
|
549
|
+
success: z.ZodBoolean;
|
|
550
|
+
error: z.ZodOptional<z.ZodString>;
|
|
551
|
+
requestId: z.ZodString;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
}, z.core.$strip>;
|
|
554
|
+
export declare const ArtifactStoreMoveResponseSchema: z.ZodObject<{
|
|
555
|
+
type: z.ZodLiteral<"artifact.store.move.response">;
|
|
556
|
+
payload: z.ZodObject<{
|
|
557
|
+
artifact: z.ZodObject<{
|
|
558
|
+
id: z.ZodString;
|
|
559
|
+
name: z.ZodString;
|
|
560
|
+
description: z.ZodString;
|
|
561
|
+
projectId: z.ZodString;
|
|
562
|
+
filePath: z.ZodString;
|
|
563
|
+
kind: z.ZodEnum<{
|
|
564
|
+
html: "html";
|
|
565
|
+
}>;
|
|
566
|
+
starred: z.ZodBoolean;
|
|
567
|
+
status: z.ZodEnum<{
|
|
568
|
+
error: "error";
|
|
569
|
+
ready: "ready";
|
|
570
|
+
generating: "generating";
|
|
571
|
+
}>;
|
|
572
|
+
createdAt: z.ZodString;
|
|
573
|
+
updatedAt: z.ZodString;
|
|
574
|
+
generationAgentId: z.ZodNullable<z.ZodString>;
|
|
575
|
+
generationProvider: z.ZodNullable<z.ZodString>;
|
|
576
|
+
generationModel: z.ZodNullable<z.ZodString>;
|
|
577
|
+
generationModeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
578
|
+
generationThinkingOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
579
|
+
generationSpinner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
580
|
+
glowA: z.ZodString;
|
|
581
|
+
glowB: z.ZodString;
|
|
582
|
+
}, z.core.$loose>>>;
|
|
583
|
+
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
585
|
+
kind: z.ZodLiteral<"chat">;
|
|
586
|
+
agentId: z.ZodString;
|
|
587
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
588
|
+
kind: z.ZodLiteral<"workflow">;
|
|
589
|
+
workflowId: z.ZodString;
|
|
590
|
+
runId: z.ZodString;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
kind: z.ZodLiteral<"schedule">;
|
|
593
|
+
scheduleId: z.ZodString;
|
|
594
|
+
runId: z.ZodString;
|
|
595
|
+
}, z.core.$strip>], "kind">>;
|
|
596
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
597
|
+
repository: "repository";
|
|
598
|
+
host: "host";
|
|
599
|
+
}>>;
|
|
600
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
601
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
602
|
+
}, z.core.$strip>;
|
|
603
|
+
success: z.ZodBoolean;
|
|
604
|
+
error: z.ZodOptional<z.ZodString>;
|
|
605
|
+
requestId: z.ZodString;
|
|
606
|
+
}, z.core.$strip>;
|
|
607
|
+
}, z.core.$strip>;
|
|
608
|
+
export declare const ProjectArtifactStoreSetResponseSchema: z.ZodObject<{
|
|
609
|
+
type: z.ZodLiteral<"project.artifact.store.set.response">;
|
|
610
|
+
payload: z.ZodObject<{
|
|
611
|
+
requestId: z.ZodString;
|
|
612
|
+
projectId: z.ZodString;
|
|
613
|
+
accepted: z.ZodBoolean;
|
|
614
|
+
error: z.ZodNullable<z.ZodString>;
|
|
615
|
+
}, z.core.$strip>;
|
|
616
|
+
}, z.core.$strip>;
|
|
301
617
|
export declare const ArtifactCreatedNotificationSchema: z.ZodObject<{
|
|
302
618
|
type: z.ZodLiteral<"artifact.created.notification">;
|
|
303
619
|
payload: z.ZodObject<{
|
|
@@ -328,6 +644,23 @@ export declare const ArtifactCreatedNotificationSchema: z.ZodObject<{
|
|
|
328
644
|
glowB: z.ZodString;
|
|
329
645
|
}, z.core.$loose>>>;
|
|
330
646
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
648
|
+
kind: z.ZodLiteral<"chat">;
|
|
649
|
+
agentId: z.ZodString;
|
|
650
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
651
|
+
kind: z.ZodLiteral<"workflow">;
|
|
652
|
+
workflowId: z.ZodString;
|
|
653
|
+
runId: z.ZodString;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
kind: z.ZodLiteral<"schedule">;
|
|
656
|
+
scheduleId: z.ZodString;
|
|
657
|
+
runId: z.ZodString;
|
|
658
|
+
}, z.core.$strip>], "kind">>;
|
|
659
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
repository: "repository";
|
|
661
|
+
host: "host";
|
|
662
|
+
}>>;
|
|
663
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
331
664
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
332
665
|
}, z.core.$strip>;
|
|
333
666
|
}, z.core.$strip>;
|
|
@@ -362,6 +695,23 @@ export declare const ArtifactUpdatedNotificationSchema: z.ZodObject<{
|
|
|
362
695
|
glowB: z.ZodString;
|
|
363
696
|
}, z.core.$loose>>>;
|
|
364
697
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
699
|
+
kind: z.ZodLiteral<"chat">;
|
|
700
|
+
agentId: z.ZodString;
|
|
701
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
702
|
+
kind: z.ZodLiteral<"workflow">;
|
|
703
|
+
workflowId: z.ZodString;
|
|
704
|
+
runId: z.ZodString;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
kind: z.ZodLiteral<"schedule">;
|
|
707
|
+
scheduleId: z.ZodString;
|
|
708
|
+
runId: z.ZodString;
|
|
709
|
+
}, z.core.$strip>], "kind">>;
|
|
710
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
711
|
+
repository: "repository";
|
|
712
|
+
host: "host";
|
|
713
|
+
}>>;
|
|
714
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
365
715
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
366
716
|
}, z.core.$strip>;
|
|
367
717
|
}, z.core.$strip>;
|
|
@@ -380,6 +730,10 @@ export type ArtifactCancelRequest = z.infer<typeof ArtifactCancelRequestSchema>;
|
|
|
380
730
|
export type ArtifactDeleteRequest = z.infer<typeof ArtifactDeleteRequestSchema>;
|
|
381
731
|
export type ArtifactStarRequest = z.infer<typeof ArtifactStarRequestSchema>;
|
|
382
732
|
export type ArtifactGetContentRequest = z.infer<typeof ArtifactGetContentRequestSchema>;
|
|
733
|
+
export type ArtifactRepairRequest = z.infer<typeof ArtifactRepairRequestSchema>;
|
|
734
|
+
export type ArtifactDataGetRequest = z.infer<typeof ArtifactDataGetRequestSchema>;
|
|
735
|
+
export type ArtifactDataUpdateRequest = z.infer<typeof ArtifactDataUpdateRequestSchema>;
|
|
736
|
+
export type ArtifactStoreMoveRequest = z.infer<typeof ArtifactStoreMoveRequestSchema>;
|
|
383
737
|
export type ArtifactListResponse = z.infer<typeof ArtifactListResponseSchema>;
|
|
384
738
|
export type ArtifactCreateResponse = z.infer<typeof ArtifactCreateResponseSchema>;
|
|
385
739
|
export type ArtifactUpdateResponse = z.infer<typeof ArtifactUpdateResponseSchema>;
|
|
@@ -388,11 +742,15 @@ export type ArtifactCancelResponse = z.infer<typeof ArtifactCancelResponseSchema
|
|
|
388
742
|
export type ArtifactDeleteResponse = z.infer<typeof ArtifactDeleteResponseSchema>;
|
|
389
743
|
export type ArtifactStarResponse = z.infer<typeof ArtifactStarResponseSchema>;
|
|
390
744
|
export type ArtifactGetContentResponse = z.infer<typeof ArtifactGetContentResponseSchema>;
|
|
745
|
+
export type ArtifactRepairResponse = z.infer<typeof ArtifactRepairResponseSchema>;
|
|
746
|
+
export type ArtifactDataGetResponse = z.infer<typeof ArtifactDataGetResponseSchema>;
|
|
747
|
+
export type ArtifactDataUpdateResponse = z.infer<typeof ArtifactDataUpdateResponseSchema>;
|
|
748
|
+
export type ArtifactStoreMoveResponse = z.infer<typeof ArtifactStoreMoveResponseSchema>;
|
|
391
749
|
export type ArtifactCreatedNotification = z.infer<typeof ArtifactCreatedNotificationSchema>;
|
|
392
750
|
export type ArtifactUpdatedNotification = z.infer<typeof ArtifactUpdatedNotificationSchema>;
|
|
393
751
|
export type ArtifactDeletedNotification = z.infer<typeof ArtifactDeletedNotificationSchema>;
|
|
394
|
-
export type ArtifactRequest = ArtifactListRequest | ArtifactCreateRequest | ArtifactUpdateRequest | ArtifactRegenerateRequest | ArtifactCancelRequest | ArtifactDeleteRequest | ArtifactStarRequest | ArtifactGetContentRequest;
|
|
395
|
-
export type ArtifactResponse = ArtifactListResponse | ArtifactCreateResponse | ArtifactUpdateResponse | ArtifactRegenerateResponse | ArtifactCancelResponse | ArtifactDeleteResponse | ArtifactStarResponse | ArtifactGetContentResponse;
|
|
752
|
+
export type ArtifactRequest = ArtifactListRequest | ArtifactCreateRequest | ArtifactUpdateRequest | ArtifactRegenerateRequest | ArtifactCancelRequest | ArtifactDeleteRequest | ArtifactStarRequest | ArtifactGetContentRequest | ArtifactRepairRequest | ArtifactDataGetRequest | ArtifactDataUpdateRequest | ArtifactStoreMoveRequest;
|
|
753
|
+
export type ArtifactResponse = ArtifactListResponse | ArtifactCreateResponse | ArtifactUpdateResponse | ArtifactRegenerateResponse | ArtifactCancelResponse | ArtifactDeleteResponse | ArtifactStarResponse | ArtifactGetContentResponse | ArtifactRepairResponse | ArtifactDataGetResponse | ArtifactDataUpdateResponse | ArtifactStoreMoveResponse;
|
|
396
754
|
export type ArtifactNotification = ArtifactCreatedNotification | ArtifactUpdatedNotification | ArtifactDeletedNotification;
|
|
397
755
|
export declare function validateArtifactCreateRequest(data: unknown): {
|
|
398
756
|
ok: true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ArtifactMetadataSchema, ArtifactSpinnerSchema } from "./types.js";
|
|
2
|
+
import { ArtifactMetadataSchema, ArtifactSpinnerSchema, ProjectArtifactStoreLocationValueSchema, } from "./types.js";
|
|
3
3
|
// ============================================================================
|
|
4
4
|
// Client → Daemon (Requests)
|
|
5
5
|
// ============================================================================
|
|
@@ -71,6 +71,35 @@ export const ArtifactGetContentRequestSchema = z.object({
|
|
|
71
71
|
artifactId: z.string(),
|
|
72
72
|
requestId: z.string(),
|
|
73
73
|
});
|
|
74
|
+
export const ArtifactRepairRequestSchema = z.object({
|
|
75
|
+
type: z.literal("artifact.repair.request"),
|
|
76
|
+
artifactId: z.string(),
|
|
77
|
+
requestId: z.string(),
|
|
78
|
+
});
|
|
79
|
+
export const ArtifactDataGetRequestSchema = z.object({
|
|
80
|
+
type: z.literal("artifact.data.get.request"),
|
|
81
|
+
artifactId: z.string(),
|
|
82
|
+
requestId: z.string(),
|
|
83
|
+
});
|
|
84
|
+
export const ArtifactDataUpdateRequestSchema = z.object({
|
|
85
|
+
type: z.literal("artifact.data.update.request"),
|
|
86
|
+
artifactId: z.string(),
|
|
87
|
+
data: z.json(),
|
|
88
|
+
requestId: z.string(),
|
|
89
|
+
});
|
|
90
|
+
export const ArtifactStoreMoveRequestSchema = z.object({
|
|
91
|
+
type: z.literal("artifact.store.move.request"),
|
|
92
|
+
artifactId: z.string(),
|
|
93
|
+
destination: ProjectArtifactStoreLocationValueSchema,
|
|
94
|
+
requestId: z.string(),
|
|
95
|
+
});
|
|
96
|
+
export const ProjectArtifactStoreSetRequestSchema = z.object({
|
|
97
|
+
type: z.literal("project.artifact.store.set.request"),
|
|
98
|
+
projectId: z.string(),
|
|
99
|
+
// Null inherits the host-wide Artifacts default.
|
|
100
|
+
location: ProjectArtifactStoreLocationValueSchema.nullable(),
|
|
101
|
+
requestId: z.string(),
|
|
102
|
+
});
|
|
74
103
|
// ============================================================================
|
|
75
104
|
// Daemon → Client (Responses)
|
|
76
105
|
// ============================================================================
|
|
@@ -145,6 +174,51 @@ export const ArtifactGetContentResponseSchema = z.object({
|
|
|
145
174
|
requestId: z.string(),
|
|
146
175
|
}),
|
|
147
176
|
});
|
|
177
|
+
export const ArtifactRepairResponseSchema = z.object({
|
|
178
|
+
type: z.literal("artifact.repair.response"),
|
|
179
|
+
payload: z.object({
|
|
180
|
+
artifact: ArtifactMetadataSchema,
|
|
181
|
+
success: z.boolean(),
|
|
182
|
+
error: z.string().optional(),
|
|
183
|
+
requestId: z.string(),
|
|
184
|
+
}),
|
|
185
|
+
});
|
|
186
|
+
export const ArtifactDataGetResponseSchema = z.object({
|
|
187
|
+
type: z.literal("artifact.data.get.response"),
|
|
188
|
+
payload: z.object({
|
|
189
|
+
data: z.json().nullable(),
|
|
190
|
+
success: z.boolean(),
|
|
191
|
+
error: z.string().optional(),
|
|
192
|
+
requestId: z.string(),
|
|
193
|
+
}),
|
|
194
|
+
});
|
|
195
|
+
export const ArtifactDataUpdateResponseSchema = z.object({
|
|
196
|
+
type: z.literal("artifact.data.update.response"),
|
|
197
|
+
payload: z.object({
|
|
198
|
+
artifact: ArtifactMetadataSchema,
|
|
199
|
+
success: z.boolean(),
|
|
200
|
+
error: z.string().optional(),
|
|
201
|
+
requestId: z.string(),
|
|
202
|
+
}),
|
|
203
|
+
});
|
|
204
|
+
export const ArtifactStoreMoveResponseSchema = z.object({
|
|
205
|
+
type: z.literal("artifact.store.move.response"),
|
|
206
|
+
payload: z.object({
|
|
207
|
+
artifact: ArtifactMetadataSchema,
|
|
208
|
+
success: z.boolean(),
|
|
209
|
+
error: z.string().optional(),
|
|
210
|
+
requestId: z.string(),
|
|
211
|
+
}),
|
|
212
|
+
});
|
|
213
|
+
export const ProjectArtifactStoreSetResponseSchema = z.object({
|
|
214
|
+
type: z.literal("project.artifact.store.set.response"),
|
|
215
|
+
payload: z.object({
|
|
216
|
+
requestId: z.string(),
|
|
217
|
+
projectId: z.string(),
|
|
218
|
+
accepted: z.boolean(),
|
|
219
|
+
error: z.string().nullable(),
|
|
220
|
+
}),
|
|
221
|
+
});
|
|
148
222
|
// ============================================================================
|
|
149
223
|
// Daemon → Client (Push Notifications)
|
|
150
224
|
// ============================================================================
|
|
@@ -3,6 +3,11 @@ export declare const ArtifactKindSchema: z.ZodEnum<{
|
|
|
3
3
|
html: "html";
|
|
4
4
|
}>;
|
|
5
5
|
export type ArtifactKind = z.infer<typeof ArtifactKindSchema>;
|
|
6
|
+
export declare const ProjectArtifactStoreLocationValueSchema: z.ZodEnum<{
|
|
7
|
+
repository: "repository";
|
|
8
|
+
host: "host";
|
|
9
|
+
}>;
|
|
10
|
+
export type ProjectArtifactStoreLocationValue = z.infer<typeof ProjectArtifactStoreLocationValueSchema>;
|
|
6
11
|
export declare const ArtifactStatusSchema: z.ZodEnum<{
|
|
7
12
|
error: "error";
|
|
8
13
|
ready: "ready";
|
|
@@ -14,6 +19,19 @@ export declare const ArtifactSpinnerSchema: z.ZodObject<{
|
|
|
14
19
|
glowB: z.ZodString;
|
|
15
20
|
}, z.core.$loose>;
|
|
16
21
|
export type ArtifactSpinner = z.infer<typeof ArtifactSpinnerSchema>;
|
|
22
|
+
export declare const ArtifactSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"chat">;
|
|
24
|
+
agentId: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"workflow">;
|
|
27
|
+
workflowId: z.ZodString;
|
|
28
|
+
runId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"schedule">;
|
|
31
|
+
scheduleId: z.ZodString;
|
|
32
|
+
runId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>], "kind">;
|
|
34
|
+
export type ArtifactSource = z.infer<typeof ArtifactSourceSchema>;
|
|
17
35
|
export declare const ArtifactMetadataSchema: z.ZodObject<{
|
|
18
36
|
id: z.ZodString;
|
|
19
37
|
name: z.ZodString;
|
|
@@ -41,6 +59,23 @@ export declare const ArtifactMetadataSchema: z.ZodObject<{
|
|
|
41
59
|
glowB: z.ZodString;
|
|
42
60
|
}, z.core.$loose>>>;
|
|
43
61
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"chat">;
|
|
64
|
+
agentId: z.ZodString;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
kind: z.ZodLiteral<"workflow">;
|
|
67
|
+
workflowId: z.ZodString;
|
|
68
|
+
runId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"schedule">;
|
|
71
|
+
scheduleId: z.ZodString;
|
|
72
|
+
runId: z.ZodString;
|
|
73
|
+
}, z.core.$strip>], "kind">>;
|
|
74
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
repository: "repository";
|
|
76
|
+
host: "host";
|
|
77
|
+
}>>;
|
|
78
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
44
79
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
45
80
|
}, z.core.$strip>;
|
|
46
81
|
export type ArtifactMetadata = z.infer<typeof ArtifactMetadataSchema>;
|
|
@@ -71,6 +106,23 @@ export declare const ArtifactSummarySchema: z.ZodObject<{
|
|
|
71
106
|
glowB: z.ZodString;
|
|
72
107
|
}, z.core.$loose>>>;
|
|
73
108
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"chat">;
|
|
111
|
+
agentId: z.ZodString;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"workflow">;
|
|
114
|
+
workflowId: z.ZodString;
|
|
115
|
+
runId: z.ZodString;
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"schedule">;
|
|
118
|
+
scheduleId: z.ZodString;
|
|
119
|
+
runId: z.ZodString;
|
|
120
|
+
}, z.core.$strip>], "kind">>;
|
|
121
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
repository: "repository";
|
|
123
|
+
host: "host";
|
|
124
|
+
}>>;
|
|
125
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
74
126
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
75
127
|
}, z.core.$strip>;
|
|
76
128
|
export type ArtifactSummary = z.infer<typeof ArtifactSummarySchema>;
|
|
@@ -132,6 +184,23 @@ export declare const StoredArtifactSchema: z.ZodObject<{
|
|
|
132
184
|
glowB: z.ZodString;
|
|
133
185
|
}, z.core.$loose>>>;
|
|
134
186
|
generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
188
|
+
kind: z.ZodLiteral<"chat">;
|
|
189
|
+
agentId: z.ZodString;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
kind: z.ZodLiteral<"workflow">;
|
|
192
|
+
workflowId: z.ZodString;
|
|
193
|
+
runId: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
kind: z.ZodLiteral<"schedule">;
|
|
196
|
+
scheduleId: z.ZodString;
|
|
197
|
+
runId: z.ZodString;
|
|
198
|
+
}, z.core.$strip>], "kind">>;
|
|
199
|
+
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
repository: "repository";
|
|
201
|
+
host: "host";
|
|
202
|
+
}>>;
|
|
203
|
+
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
135
204
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
136
205
|
runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
137
206
|
id: z.ZodString;
|
|
@@ -171,5 +240,7 @@ export interface CreateArtifactInput {
|
|
|
171
240
|
* so its card can show who generated it (persona · provider · model). Absent
|
|
172
241
|
* when no personality was used. */
|
|
173
242
|
personalityName?: string;
|
|
243
|
+
/** Latest durable source, stamped only by daemon-owned creation adapters. */
|
|
244
|
+
source?: ArtifactSource;
|
|
174
245
|
}
|
|
175
246
|
//# sourceMappingURL=types.d.ts.map
|