@otto-code/protocol 0.8.19 → 0.9.2
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 +22 -0
- package/dist/agent-labels.js +42 -1
- package/dist/agent-profiles.d.ts +1 -1
- package/dist/agent-profiles.js +3 -3
- package/dist/agent-rate-limit.d.ts +13 -0
- package/dist/agent-rate-limit.js +18 -0
- package/dist/agent-types.d.ts +6 -0
- package/dist/architectural-views/rpc-schemas.d.ts +465 -0
- package/dist/architectural-views/rpc-schemas.js +205 -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/brain.d.ts +3 -3
- package/dist/browser-automation/capabilities.d.ts +1 -1
- package/dist/browser-automation/rpc-schemas.d.ts +16 -16
- package/dist/code-intelligence.d.ts +5 -5
- package/dist/daemon-config.d.ts +66 -0
- package/dist/daemon-config.js +76 -3
- package/dist/file-operations.d.ts +1 -1
- package/dist/generated/validation/ws-outbound.aot.js +81113 -69135
- package/dist/loop/rpc-schemas.d.ts +6 -6
- package/dist/messages.d.ts +11477 -1097
- package/dist/messages.js +633 -117
- package/dist/model-preferences.d.ts +26 -0
- package/dist/model-preferences.js +47 -0
- package/dist/model-tiers.js +2 -0
- package/dist/personality-schemas.d.ts +4 -4
- package/dist/project-knowledge.d.ts +38 -16
- package/dist/project-knowledge.js +17 -1
- package/dist/provider-config.js +1 -1
- package/dist/provider-icon-names.js +1 -0
- package/dist/schedule/rpc-schemas.d.ts +92 -12
- package/dist/schedule/rpc-schemas.js +2 -0
- package/dist/schedule/types.d.ts +47 -3
- package/dist/schedule/types.js +22 -0
- package/dist/search/text-match.d.ts +16 -0
- package/dist/search/text-match.js +31 -2
- package/dist/suggested-tasks.d.ts +7 -3
- package/dist/suggested-tasks.js +2 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +2348 -111
- package/dist/websocket-control.d.ts +39 -0
- package/dist/websocket-control.js +36 -0
- 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
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ArchitecturalViewIdSchema = z.string().regex(/^[a-z][a-z0-9-]*$/);
|
|
3
|
+
export const ArchitecturalViewDiagramTypeSchema = z.enum([
|
|
4
|
+
"architecture",
|
|
5
|
+
"workflow",
|
|
6
|
+
"sequence",
|
|
7
|
+
"dataflow",
|
|
8
|
+
"lifecycle",
|
|
9
|
+
]);
|
|
10
|
+
export const ArchitecturalViewKnowledgeReferenceSchema = z.object({
|
|
11
|
+
kind: z.enum(["root", "record"]),
|
|
12
|
+
id: z.string().min(1),
|
|
13
|
+
});
|
|
14
|
+
export const ArchitecturalViewsDeliverRequestSchema = z.object({
|
|
15
|
+
type: z.literal("architectural-views.deliver.request"),
|
|
16
|
+
workspaceId: z.string(),
|
|
17
|
+
viewId: ArchitecturalViewIdSchema,
|
|
18
|
+
title: z.string().min(1),
|
|
19
|
+
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema).min(1),
|
|
20
|
+
sourcePath: z.string().min(1),
|
|
21
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
22
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
23
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
24
|
+
quality: z.enum(["standard", "showcase"]).optional(),
|
|
25
|
+
requestId: z.string(),
|
|
26
|
+
});
|
|
27
|
+
export const ArchitecturalViewsDeliverResponseSchema = z.object({
|
|
28
|
+
type: z.literal("architectural-views.deliver.response"),
|
|
29
|
+
payload: z.object({
|
|
30
|
+
requestId: z.string(),
|
|
31
|
+
success: z.boolean(),
|
|
32
|
+
viewId: ArchitecturalViewIdSchema,
|
|
33
|
+
storeLocation: z.enum(["repository", "host"]).nullable(),
|
|
34
|
+
htmlPath: z.string().nullable(),
|
|
35
|
+
error: z.string().nullable(),
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
export const ArchitecturalViewSummarySchema = z.object({
|
|
39
|
+
id: ArchitecturalViewIdSchema,
|
|
40
|
+
title: z.string(),
|
|
41
|
+
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema),
|
|
42
|
+
storeLocation: z.enum(["repository", "host"]),
|
|
43
|
+
htmlPath: z.string(),
|
|
44
|
+
renderedAt: z.string(),
|
|
45
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
46
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
47
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
48
|
+
// COMPAT(architecturalViewSourceStatus): added in v0.9.0, remove after 2027-02-28.
|
|
49
|
+
sourceStatus: z.enum(["current", "stale", "unknown"]).optional(),
|
|
50
|
+
});
|
|
51
|
+
export const ArchitecturalViewDraftSchema = z.object({
|
|
52
|
+
id: ArchitecturalViewIdSchema,
|
|
53
|
+
viewId: ArchitecturalViewIdSchema,
|
|
54
|
+
title: z.string(),
|
|
55
|
+
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema),
|
|
56
|
+
baseSpecificationSha256: z.string().nullable(),
|
|
57
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
58
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
59
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
60
|
+
// COMPAT(architecturalViewDraftAuthoring): added in v0.9.0, remove after 2027-02-28.
|
|
61
|
+
authoringAgentId: z.string().nullable().optional(),
|
|
62
|
+
createdAt: z.string(),
|
|
63
|
+
updatedAt: z.string(),
|
|
64
|
+
});
|
|
65
|
+
export const ArchitecturalViewsDraftCreateRequestSchema = z.object({
|
|
66
|
+
type: z.literal("architectural-views.draft.create.request"),
|
|
67
|
+
workspaceId: z.string(),
|
|
68
|
+
viewId: ArchitecturalViewIdSchema,
|
|
69
|
+
draftId: ArchitecturalViewIdSchema,
|
|
70
|
+
title: z.string().min(1),
|
|
71
|
+
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema).min(1),
|
|
72
|
+
sourcePath: z.string().min(1).optional(),
|
|
73
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
74
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
75
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
76
|
+
quality: z.enum(["standard", "showcase"]).optional(),
|
|
77
|
+
requestId: z.string(),
|
|
78
|
+
});
|
|
79
|
+
export const ArchitecturalViewsDraftCreateResponseSchema = z.object({
|
|
80
|
+
type: z.literal("architectural-views.draft.create.response"),
|
|
81
|
+
payload: z.object({
|
|
82
|
+
requestId: z.string(),
|
|
83
|
+
success: z.boolean(),
|
|
84
|
+
draft: ArchitecturalViewDraftSchema.nullable(),
|
|
85
|
+
error: z.string().nullable(),
|
|
86
|
+
}),
|
|
87
|
+
});
|
|
88
|
+
export const ArchitecturalViewsDraftUpdateRequestSchema = z.object({
|
|
89
|
+
type: z.literal("architectural-views.draft.update.request"),
|
|
90
|
+
workspaceId: z.string(),
|
|
91
|
+
viewId: ArchitecturalViewIdSchema,
|
|
92
|
+
draftId: ArchitecturalViewIdSchema,
|
|
93
|
+
sourcePath: z.string().min(1),
|
|
94
|
+
quality: z.enum(["standard", "showcase"]).optional(),
|
|
95
|
+
requestId: z.string(),
|
|
96
|
+
});
|
|
97
|
+
export const ArchitecturalViewsDraftUpdateResponseSchema = z.object({
|
|
98
|
+
type: z.literal("architectural-views.draft.update.response"),
|
|
99
|
+
payload: z.object({
|
|
100
|
+
requestId: z.string(),
|
|
101
|
+
success: z.boolean(),
|
|
102
|
+
draft: ArchitecturalViewDraftSchema.nullable(),
|
|
103
|
+
error: z.string().nullable(),
|
|
104
|
+
}),
|
|
105
|
+
});
|
|
106
|
+
export const ArchitecturalViewsDraftPublishRequestSchema = z.object({
|
|
107
|
+
type: z.literal("architectural-views.draft.publish.request"),
|
|
108
|
+
workspaceId: z.string(),
|
|
109
|
+
viewId: ArchitecturalViewIdSchema,
|
|
110
|
+
draftId: ArchitecturalViewIdSchema,
|
|
111
|
+
requestId: z.string(),
|
|
112
|
+
});
|
|
113
|
+
export const ArchitecturalViewsDraftPublishResponseSchema = z.object({
|
|
114
|
+
type: z.literal("architectural-views.draft.publish.response"),
|
|
115
|
+
payload: z.object({
|
|
116
|
+
requestId: z.string(),
|
|
117
|
+
success: z.boolean(),
|
|
118
|
+
view: ArchitecturalViewSummarySchema.nullable(),
|
|
119
|
+
error: z.string().nullable(),
|
|
120
|
+
}),
|
|
121
|
+
});
|
|
122
|
+
export const ArchitecturalViewsDraftDiscardRequestSchema = z.object({
|
|
123
|
+
type: z.literal("architectural-views.draft.discard.request"),
|
|
124
|
+
workspaceId: z.string(),
|
|
125
|
+
viewId: ArchitecturalViewIdSchema,
|
|
126
|
+
draftId: ArchitecturalViewIdSchema,
|
|
127
|
+
requestId: z.string(),
|
|
128
|
+
});
|
|
129
|
+
export const ArchitecturalViewsDraftDiscardResponseSchema = z.object({
|
|
130
|
+
type: z.literal("architectural-views.draft.discard.response"),
|
|
131
|
+
payload: z.object({ requestId: z.string(), success: z.boolean(), error: z.string().nullable() }),
|
|
132
|
+
});
|
|
133
|
+
export const ArchitecturalViewsDraftGetContentRequestSchema = z.object({
|
|
134
|
+
type: z.literal("architectural-views.draft.get-content.request"),
|
|
135
|
+
workspaceId: z.string(),
|
|
136
|
+
viewId: ArchitecturalViewIdSchema,
|
|
137
|
+
draftId: ArchitecturalViewIdSchema,
|
|
138
|
+
requestId: z.string(),
|
|
139
|
+
});
|
|
140
|
+
export const ArchitecturalViewsDraftGetContentResponseSchema = z.object({
|
|
141
|
+
type: z.literal("architectural-views.draft.get-content.response"),
|
|
142
|
+
payload: z.object({
|
|
143
|
+
requestId: z.string(),
|
|
144
|
+
success: z.boolean(),
|
|
145
|
+
draft: ArchitecturalViewDraftSchema.nullable(),
|
|
146
|
+
html: z.string().nullable(),
|
|
147
|
+
error: z.string().nullable(),
|
|
148
|
+
}),
|
|
149
|
+
});
|
|
150
|
+
export const ArchitecturalViewsDraftListRequestSchema = z.object({
|
|
151
|
+
type: z.literal("architectural-views.draft.list.request"),
|
|
152
|
+
workspaceId: z.string(),
|
|
153
|
+
knowledgeReference: ArchitecturalViewKnowledgeReferenceSchema.optional(),
|
|
154
|
+
requestId: z.string(),
|
|
155
|
+
});
|
|
156
|
+
export const ArchitecturalViewsDraftListResponseSchema = z.object({
|
|
157
|
+
type: z.literal("architectural-views.draft.list.response"),
|
|
158
|
+
payload: z.object({
|
|
159
|
+
requestId: z.string(),
|
|
160
|
+
success: z.boolean(),
|
|
161
|
+
drafts: z.array(ArchitecturalViewDraftSchema),
|
|
162
|
+
error: z.string().nullable(),
|
|
163
|
+
}),
|
|
164
|
+
});
|
|
165
|
+
export const ArchitecturalViewsListRequestSchema = z.object({
|
|
166
|
+
type: z.literal("architectural-views.list.request"),
|
|
167
|
+
workspaceId: z.string(),
|
|
168
|
+
knowledgeReference: ArchitecturalViewKnowledgeReferenceSchema.optional(),
|
|
169
|
+
requestId: z.string(),
|
|
170
|
+
});
|
|
171
|
+
export const ArchitecturalViewsListResponseSchema = z.object({
|
|
172
|
+
type: z.literal("architectural-views.list.response"),
|
|
173
|
+
payload: z.object({
|
|
174
|
+
requestId: z.string(),
|
|
175
|
+
success: z.boolean(),
|
|
176
|
+
views: z.array(ArchitecturalViewSummarySchema),
|
|
177
|
+
error: z.string().nullable(),
|
|
178
|
+
}),
|
|
179
|
+
});
|
|
180
|
+
export const ArchitecturalViewsGetContentRequestSchema = z.object({
|
|
181
|
+
type: z.literal("architectural-views.get-content.request"),
|
|
182
|
+
workspaceId: z.string(),
|
|
183
|
+
viewId: ArchitecturalViewIdSchema,
|
|
184
|
+
requestId: z.string(),
|
|
185
|
+
});
|
|
186
|
+
export const ArchitecturalViewsGetContentResponseSchema = z.object({
|
|
187
|
+
type: z.literal("architectural-views.get-content.response"),
|
|
188
|
+
payload: z.object({
|
|
189
|
+
requestId: z.string(),
|
|
190
|
+
success: z.boolean(),
|
|
191
|
+
view: ArchitecturalViewSummarySchema.nullable(),
|
|
192
|
+
html: z.string().nullable(),
|
|
193
|
+
error: z.string().nullable(),
|
|
194
|
+
}),
|
|
195
|
+
});
|
|
196
|
+
/** A daemon-routed UI intent emitted only after an agent explicitly asks to show a view. */
|
|
197
|
+
export const ArchitecturalViewsOpenNotificationSchema = z.object({
|
|
198
|
+
type: z.literal("architectural-views.open.notification"),
|
|
199
|
+
payload: z.object({
|
|
200
|
+
workspaceId: z.string(),
|
|
201
|
+
agentId: z.string(),
|
|
202
|
+
viewId: ArchitecturalViewIdSchema,
|
|
203
|
+
}),
|
|
204
|
+
});
|
|
205
|
+
//# sourceMappingURL=rpc-schemas.js.map
|
|
@@ -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;
|