@dream-craft/canvas-agent 0.0.0-stage → 0.6.4

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 (49) hide show
  1. package/README.md +165 -3
  2. package/agent-instructions.md +20 -0
  3. package/dist/agent/claude.d.ts +3 -0
  4. package/dist/agent/claude.js +54 -0
  5. package/dist/agent/codex-client.d.ts +139 -0
  6. package/dist/agent/codex-client.js +937 -0
  7. package/dist/agent/codex-event-history.d.ts +21 -0
  8. package/dist/agent/codex-event-history.js +163 -0
  9. package/dist/agent/codex-history.d.ts +46 -0
  10. package/dist/agent/codex-history.js +831 -0
  11. package/dist/agent/codex-protocol.d.ts +335 -0
  12. package/dist/agent/codex-protocol.js +1 -0
  13. package/dist/agent/codex.d.ts +178 -0
  14. package/dist/agent/codex.js +514 -0
  15. package/dist/agent/message-metadata.d.ts +51 -0
  16. package/dist/agent/message-metadata.js +378 -0
  17. package/dist/agent/types.d.ts +45 -0
  18. package/dist/agent/types.js +1 -0
  19. package/dist/canvas/operations.d.ts +13 -0
  20. package/dist/canvas/operations.js +167 -0
  21. package/dist/canvas/schemas.d.ts +1040 -0
  22. package/dist/canvas/schemas.js +193 -0
  23. package/dist/canvas/session.d.ts +163 -0
  24. package/dist/canvas/session.js +528 -0
  25. package/dist/canvas/tools.d.ts +222 -0
  26. package/dist/canvas/tools.js +27 -0
  27. package/dist/canvas/types.d.ts +34 -0
  28. package/dist/canvas/types.js +1 -0
  29. package/dist/config.d.ts +30 -0
  30. package/dist/config.js +86 -0
  31. package/dist/index.d.ts +2 -0
  32. package/dist/index.js +7 -0
  33. package/dist/server/http.d.ts +2 -0
  34. package/dist/server/http.js +607 -0
  35. package/dist/server/mcp.d.ts +2 -0
  36. package/dist/server/mcp.js +60 -0
  37. package/dist/skills/store.d.ts +54 -0
  38. package/dist/skills/store.js +426 -0
  39. package/dist/utils/agent-runtime.d.ts +8 -0
  40. package/dist/utils/agent-runtime.js +33 -0
  41. package/dist/utils/date.d.ts +2 -0
  42. package/dist/utils/date.js +7 -0
  43. package/dist/utils/logger.d.ts +17 -0
  44. package/dist/utils/logger.js +81 -0
  45. package/dist/utils/value.d.ts +5 -0
  46. package/dist/utils/value.js +8 -0
  47. package/dist/version-check.d.ts +2 -0
  48. package/dist/version-check.js +65 -0
  49. package/package.json +46 -6
@@ -0,0 +1,1040 @@
1
+ import { z } from "zod";
2
+ /** Canvas Agent 对外提供的工具名称。 */
3
+ export declare const toolNames: readonly ["site_navigate", "canvas_list_projects", "canvas_get_state", "canvas_get_selection", "canvas_export_snapshot", "canvas_apply_ops", "canvas_create_node", "canvas_create_attachment_nodes", "canvas_create_text_node", "canvas_create_text_nodes", "canvas_create_config_node", "canvas_create_image_prompt_flow", "canvas_create_generation_flow", "canvas_generate_text", "canvas_generate_image", "canvas_generate_video", "canvas_generate_audio", "canvas_update_node", "canvas_update_node_text", "canvas_move_nodes", "canvas_resize_node", "canvas_delete_nodes", "canvas_connect_nodes", "canvas_set_viewport", "canvas_select_nodes", "canvas_present_survey", "canvas_run_generation", "generation_get_status", "workbench_image_get_config", "workbench_image_generate", "workbench_video_get_config", "workbench_video_generate", "prompts_search", "assets_list", "assets_add"];
4
+ export type ToolName = (typeof toolNames)[number];
5
+ export declare const canvasOpSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6
+ type: z.ZodLiteral<"add_node">;
7
+ nodeType: z.ZodOptional<z.ZodString>;
8
+ id: z.ZodOptional<z.ZodString>;
9
+ title: z.ZodOptional<z.ZodString>;
10
+ x: z.ZodOptional<z.ZodNumber>;
11
+ y: z.ZodOptional<z.ZodNumber>;
12
+ width: z.ZodOptional<z.ZodNumber>;
13
+ height: z.ZodOptional<z.ZodNumber>;
14
+ position: z.ZodOptional<z.ZodObject<{
15
+ x: z.ZodNumber;
16
+ y: z.ZodNumber;
17
+ }, "strip", z.ZodTypeAny, {
18
+ x: number;
19
+ y: number;
20
+ }, {
21
+ x: number;
22
+ y: number;
23
+ }>>;
24
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
25
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
26
+ type: z.ZodLiteral<"add_node">;
27
+ nodeType: z.ZodOptional<z.ZodString>;
28
+ id: z.ZodOptional<z.ZodString>;
29
+ title: z.ZodOptional<z.ZodString>;
30
+ x: z.ZodOptional<z.ZodNumber>;
31
+ y: z.ZodOptional<z.ZodNumber>;
32
+ width: z.ZodOptional<z.ZodNumber>;
33
+ height: z.ZodOptional<z.ZodNumber>;
34
+ position: z.ZodOptional<z.ZodObject<{
35
+ x: z.ZodNumber;
36
+ y: z.ZodNumber;
37
+ }, "strip", z.ZodTypeAny, {
38
+ x: number;
39
+ y: number;
40
+ }, {
41
+ x: number;
42
+ y: number;
43
+ }>>;
44
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
45
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
46
+ type: z.ZodLiteral<"add_node">;
47
+ nodeType: z.ZodOptional<z.ZodString>;
48
+ id: z.ZodOptional<z.ZodString>;
49
+ title: z.ZodOptional<z.ZodString>;
50
+ x: z.ZodOptional<z.ZodNumber>;
51
+ y: z.ZodOptional<z.ZodNumber>;
52
+ width: z.ZodOptional<z.ZodNumber>;
53
+ height: z.ZodOptional<z.ZodNumber>;
54
+ position: z.ZodOptional<z.ZodObject<{
55
+ x: z.ZodNumber;
56
+ y: z.ZodNumber;
57
+ }, "strip", z.ZodTypeAny, {
58
+ x: number;
59
+ y: number;
60
+ }, {
61
+ x: number;
62
+ y: number;
63
+ }>>;
64
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
65
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
66
+ type: z.ZodLiteral<"update_node">;
67
+ id: z.ZodString;
68
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
69
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
70
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
71
+ type: z.ZodLiteral<"update_node">;
72
+ id: z.ZodString;
73
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
74
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
75
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
76
+ type: z.ZodLiteral<"update_node">;
77
+ id: z.ZodString;
78
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
79
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
80
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
81
+ type: z.ZodLiteral<"delete_node">;
82
+ id: z.ZodOptional<z.ZodString>;
83
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
84
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
85
+ type: z.ZodLiteral<"delete_node">;
86
+ id: z.ZodOptional<z.ZodString>;
87
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
88
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
89
+ type: z.ZodLiteral<"delete_node">;
90
+ id: z.ZodOptional<z.ZodString>;
91
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
92
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
93
+ type: z.ZodLiteral<"delete_connections">;
94
+ id: z.ZodOptional<z.ZodString>;
95
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
96
+ all: z.ZodOptional<z.ZodBoolean>;
97
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
98
+ type: z.ZodLiteral<"delete_connections">;
99
+ id: z.ZodOptional<z.ZodString>;
100
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
101
+ all: z.ZodOptional<z.ZodBoolean>;
102
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
103
+ type: z.ZodLiteral<"delete_connections">;
104
+ id: z.ZodOptional<z.ZodString>;
105
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
106
+ all: z.ZodOptional<z.ZodBoolean>;
107
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
108
+ type: z.ZodLiteral<"connect_nodes">;
109
+ id: z.ZodOptional<z.ZodString>;
110
+ fromNodeId: z.ZodString;
111
+ toNodeId: z.ZodString;
112
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
113
+ type: z.ZodLiteral<"connect_nodes">;
114
+ id: z.ZodOptional<z.ZodString>;
115
+ fromNodeId: z.ZodString;
116
+ toNodeId: z.ZodString;
117
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
118
+ type: z.ZodLiteral<"connect_nodes">;
119
+ id: z.ZodOptional<z.ZodString>;
120
+ fromNodeId: z.ZodString;
121
+ toNodeId: z.ZodString;
122
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
123
+ type: z.ZodLiteral<"set_viewport">;
124
+ viewport: z.ZodObject<{
125
+ x: z.ZodNumber;
126
+ y: z.ZodNumber;
127
+ k: z.ZodNumber;
128
+ }, "strip", z.ZodTypeAny, {
129
+ x: number;
130
+ y: number;
131
+ k: number;
132
+ }, {
133
+ x: number;
134
+ y: number;
135
+ k: number;
136
+ }>;
137
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
138
+ type: z.ZodLiteral<"set_viewport">;
139
+ viewport: z.ZodObject<{
140
+ x: z.ZodNumber;
141
+ y: z.ZodNumber;
142
+ k: z.ZodNumber;
143
+ }, "strip", z.ZodTypeAny, {
144
+ x: number;
145
+ y: number;
146
+ k: number;
147
+ }, {
148
+ x: number;
149
+ y: number;
150
+ k: number;
151
+ }>;
152
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
153
+ type: z.ZodLiteral<"set_viewport">;
154
+ viewport: z.ZodObject<{
155
+ x: z.ZodNumber;
156
+ y: z.ZodNumber;
157
+ k: z.ZodNumber;
158
+ }, "strip", z.ZodTypeAny, {
159
+ x: number;
160
+ y: number;
161
+ k: number;
162
+ }, {
163
+ x: number;
164
+ y: number;
165
+ k: number;
166
+ }>;
167
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
168
+ type: z.ZodLiteral<"select_nodes">;
169
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
170
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
171
+ type: z.ZodLiteral<"select_nodes">;
172
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
173
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
174
+ type: z.ZodLiteral<"select_nodes">;
175
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
176
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
177
+ type: z.ZodLiteral<"arrange_nodes">;
178
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
179
+ all: z.ZodOptional<z.ZodBoolean>;
180
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
181
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
182
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
183
+ minGap: z.ZodOptional<z.ZodNumber>;
184
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
185
+ type: z.ZodLiteral<"arrange_nodes">;
186
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
187
+ all: z.ZodOptional<z.ZodBoolean>;
188
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
189
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
190
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
191
+ minGap: z.ZodOptional<z.ZodNumber>;
192
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
193
+ type: z.ZodLiteral<"arrange_nodes">;
194
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
195
+ all: z.ZodOptional<z.ZodBoolean>;
196
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
197
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
198
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
199
+ minGap: z.ZodOptional<z.ZodNumber>;
200
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
201
+ type: z.ZodLiteral<"run_generation">;
202
+ nodeId: z.ZodString;
203
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
204
+ prompt: z.ZodOptional<z.ZodString>;
205
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
206
+ type: z.ZodLiteral<"run_generation">;
207
+ nodeId: z.ZodString;
208
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
209
+ prompt: z.ZodOptional<z.ZodString>;
210
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
211
+ type: z.ZodLiteral<"run_generation">;
212
+ nodeId: z.ZodString;
213
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
214
+ prompt: z.ZodOptional<z.ZodString>;
215
+ }, z.ZodTypeAny, "passthrough">>]>;
216
+ export declare const toolInputSchemas: {
217
+ site_navigate: z.ZodObject<{
218
+ path: z.ZodString;
219
+ }, "strip", z.ZodTypeAny, {
220
+ path: string;
221
+ }, {
222
+ path: string;
223
+ }>;
224
+ canvas_list_projects: z.ZodObject<{
225
+ keyword: z.ZodOptional<z.ZodString>;
226
+ page: z.ZodOptional<z.ZodNumber>;
227
+ pageSize: z.ZodOptional<z.ZodNumber>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ keyword?: string | undefined;
230
+ page?: number | undefined;
231
+ pageSize?: number | undefined;
232
+ }, {
233
+ keyword?: string | undefined;
234
+ page?: number | undefined;
235
+ pageSize?: number | undefined;
236
+ }>;
237
+ canvas_get_state: z.ZodObject<{
238
+ full: z.ZodOptional<z.ZodBoolean>;
239
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
240
+ full: z.ZodOptional<z.ZodBoolean>;
241
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
242
+ full: z.ZodOptional<z.ZodBoolean>;
243
+ }, z.ZodTypeAny, "passthrough">>;
244
+ canvas_get_selection: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
245
+ canvas_export_snapshot: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
246
+ canvas_apply_ops: z.ZodObject<{
247
+ ops: z.ZodType<(z.objectOutputType<{
248
+ type: z.ZodLiteral<"add_node">;
249
+ nodeType: z.ZodOptional<z.ZodString>;
250
+ id: z.ZodOptional<z.ZodString>;
251
+ title: z.ZodOptional<z.ZodString>;
252
+ x: z.ZodOptional<z.ZodNumber>;
253
+ y: z.ZodOptional<z.ZodNumber>;
254
+ width: z.ZodOptional<z.ZodNumber>;
255
+ height: z.ZodOptional<z.ZodNumber>;
256
+ position: z.ZodOptional<z.ZodObject<{
257
+ x: z.ZodNumber;
258
+ y: z.ZodNumber;
259
+ }, "strip", z.ZodTypeAny, {
260
+ x: number;
261
+ y: number;
262
+ }, {
263
+ x: number;
264
+ y: number;
265
+ }>>;
266
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
267
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
268
+ type: z.ZodLiteral<"update_node">;
269
+ id: z.ZodString;
270
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
271
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
272
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
273
+ type: z.ZodLiteral<"delete_node">;
274
+ id: z.ZodOptional<z.ZodString>;
275
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
276
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
277
+ type: z.ZodLiteral<"delete_connections">;
278
+ id: z.ZodOptional<z.ZodString>;
279
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
280
+ all: z.ZodOptional<z.ZodBoolean>;
281
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
282
+ type: z.ZodLiteral<"connect_nodes">;
283
+ id: z.ZodOptional<z.ZodString>;
284
+ fromNodeId: z.ZodString;
285
+ toNodeId: z.ZodString;
286
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
287
+ type: z.ZodLiteral<"set_viewport">;
288
+ viewport: z.ZodObject<{
289
+ x: z.ZodNumber;
290
+ y: z.ZodNumber;
291
+ k: z.ZodNumber;
292
+ }, "strip", z.ZodTypeAny, {
293
+ x: number;
294
+ y: number;
295
+ k: number;
296
+ }, {
297
+ x: number;
298
+ y: number;
299
+ k: number;
300
+ }>;
301
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
302
+ type: z.ZodLiteral<"select_nodes">;
303
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
304
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
305
+ type: z.ZodLiteral<"arrange_nodes">;
306
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
307
+ all: z.ZodOptional<z.ZodBoolean>;
308
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
309
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
310
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
311
+ minGap: z.ZodOptional<z.ZodNumber>;
312
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
313
+ type: z.ZodLiteral<"run_generation">;
314
+ nodeId: z.ZodString;
315
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
316
+ prompt: z.ZodOptional<z.ZodString>;
317
+ }, z.ZodTypeAny, "passthrough">)[], z.ZodTypeDef, (z.objectOutputType<{
318
+ type: z.ZodLiteral<"add_node">;
319
+ nodeType: z.ZodOptional<z.ZodString>;
320
+ id: z.ZodOptional<z.ZodString>;
321
+ title: z.ZodOptional<z.ZodString>;
322
+ x: z.ZodOptional<z.ZodNumber>;
323
+ y: z.ZodOptional<z.ZodNumber>;
324
+ width: z.ZodOptional<z.ZodNumber>;
325
+ height: z.ZodOptional<z.ZodNumber>;
326
+ position: z.ZodOptional<z.ZodObject<{
327
+ x: z.ZodNumber;
328
+ y: z.ZodNumber;
329
+ }, "strip", z.ZodTypeAny, {
330
+ x: number;
331
+ y: number;
332
+ }, {
333
+ x: number;
334
+ y: number;
335
+ }>>;
336
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
337
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
338
+ type: z.ZodLiteral<"update_node">;
339
+ id: z.ZodString;
340
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
341
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
342
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
343
+ type: z.ZodLiteral<"delete_node">;
344
+ id: z.ZodOptional<z.ZodString>;
345
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
346
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
347
+ type: z.ZodLiteral<"delete_connections">;
348
+ id: z.ZodOptional<z.ZodString>;
349
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
350
+ all: z.ZodOptional<z.ZodBoolean>;
351
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
352
+ type: z.ZodLiteral<"connect_nodes">;
353
+ id: z.ZodOptional<z.ZodString>;
354
+ fromNodeId: z.ZodString;
355
+ toNodeId: z.ZodString;
356
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
357
+ type: z.ZodLiteral<"set_viewport">;
358
+ viewport: z.ZodObject<{
359
+ x: z.ZodNumber;
360
+ y: z.ZodNumber;
361
+ k: z.ZodNumber;
362
+ }, "strip", z.ZodTypeAny, {
363
+ x: number;
364
+ y: number;
365
+ k: number;
366
+ }, {
367
+ x: number;
368
+ y: number;
369
+ k: number;
370
+ }>;
371
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
372
+ type: z.ZodLiteral<"select_nodes">;
373
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
374
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
375
+ type: z.ZodLiteral<"arrange_nodes">;
376
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
377
+ all: z.ZodOptional<z.ZodBoolean>;
378
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
379
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
380
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
381
+ minGap: z.ZodOptional<z.ZodNumber>;
382
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
383
+ type: z.ZodLiteral<"run_generation">;
384
+ nodeId: z.ZodString;
385
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
386
+ prompt: z.ZodOptional<z.ZodString>;
387
+ }, z.ZodTypeAny, "passthrough">)[]>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ ops: (z.objectOutputType<{
390
+ type: z.ZodLiteral<"add_node">;
391
+ nodeType: z.ZodOptional<z.ZodString>;
392
+ id: z.ZodOptional<z.ZodString>;
393
+ title: z.ZodOptional<z.ZodString>;
394
+ x: z.ZodOptional<z.ZodNumber>;
395
+ y: z.ZodOptional<z.ZodNumber>;
396
+ width: z.ZodOptional<z.ZodNumber>;
397
+ height: z.ZodOptional<z.ZodNumber>;
398
+ position: z.ZodOptional<z.ZodObject<{
399
+ x: z.ZodNumber;
400
+ y: z.ZodNumber;
401
+ }, "strip", z.ZodTypeAny, {
402
+ x: number;
403
+ y: number;
404
+ }, {
405
+ x: number;
406
+ y: number;
407
+ }>>;
408
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
409
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
410
+ type: z.ZodLiteral<"update_node">;
411
+ id: z.ZodString;
412
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
413
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
414
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
415
+ type: z.ZodLiteral<"delete_node">;
416
+ id: z.ZodOptional<z.ZodString>;
417
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
418
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
419
+ type: z.ZodLiteral<"delete_connections">;
420
+ id: z.ZodOptional<z.ZodString>;
421
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
422
+ all: z.ZodOptional<z.ZodBoolean>;
423
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
424
+ type: z.ZodLiteral<"connect_nodes">;
425
+ id: z.ZodOptional<z.ZodString>;
426
+ fromNodeId: z.ZodString;
427
+ toNodeId: z.ZodString;
428
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
429
+ type: z.ZodLiteral<"set_viewport">;
430
+ viewport: z.ZodObject<{
431
+ x: z.ZodNumber;
432
+ y: z.ZodNumber;
433
+ k: z.ZodNumber;
434
+ }, "strip", z.ZodTypeAny, {
435
+ x: number;
436
+ y: number;
437
+ k: number;
438
+ }, {
439
+ x: number;
440
+ y: number;
441
+ k: number;
442
+ }>;
443
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
444
+ type: z.ZodLiteral<"select_nodes">;
445
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
446
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
447
+ type: z.ZodLiteral<"arrange_nodes">;
448
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
449
+ all: z.ZodOptional<z.ZodBoolean>;
450
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
451
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
452
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
453
+ minGap: z.ZodOptional<z.ZodNumber>;
454
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
455
+ type: z.ZodLiteral<"run_generation">;
456
+ nodeId: z.ZodString;
457
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
458
+ prompt: z.ZodOptional<z.ZodString>;
459
+ }, z.ZodTypeAny, "passthrough">)[];
460
+ }, {
461
+ ops: (z.objectOutputType<{
462
+ type: z.ZodLiteral<"add_node">;
463
+ nodeType: z.ZodOptional<z.ZodString>;
464
+ id: z.ZodOptional<z.ZodString>;
465
+ title: z.ZodOptional<z.ZodString>;
466
+ x: z.ZodOptional<z.ZodNumber>;
467
+ y: z.ZodOptional<z.ZodNumber>;
468
+ width: z.ZodOptional<z.ZodNumber>;
469
+ height: z.ZodOptional<z.ZodNumber>;
470
+ position: z.ZodOptional<z.ZodObject<{
471
+ x: z.ZodNumber;
472
+ y: z.ZodNumber;
473
+ }, "strip", z.ZodTypeAny, {
474
+ x: number;
475
+ y: number;
476
+ }, {
477
+ x: number;
478
+ y: number;
479
+ }>>;
480
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
481
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
482
+ type: z.ZodLiteral<"update_node">;
483
+ id: z.ZodString;
484
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
485
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
486
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
487
+ type: z.ZodLiteral<"delete_node">;
488
+ id: z.ZodOptional<z.ZodString>;
489
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
490
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
491
+ type: z.ZodLiteral<"delete_connections">;
492
+ id: z.ZodOptional<z.ZodString>;
493
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
494
+ all: z.ZodOptional<z.ZodBoolean>;
495
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
496
+ type: z.ZodLiteral<"connect_nodes">;
497
+ id: z.ZodOptional<z.ZodString>;
498
+ fromNodeId: z.ZodString;
499
+ toNodeId: z.ZodString;
500
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
501
+ type: z.ZodLiteral<"set_viewport">;
502
+ viewport: z.ZodObject<{
503
+ x: z.ZodNumber;
504
+ y: z.ZodNumber;
505
+ k: z.ZodNumber;
506
+ }, "strip", z.ZodTypeAny, {
507
+ x: number;
508
+ y: number;
509
+ k: number;
510
+ }, {
511
+ x: number;
512
+ y: number;
513
+ k: number;
514
+ }>;
515
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
516
+ type: z.ZodLiteral<"select_nodes">;
517
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
518
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
519
+ type: z.ZodLiteral<"arrange_nodes">;
520
+ ids: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
521
+ all: z.ZodOptional<z.ZodBoolean>;
522
+ mode: z.ZodOptional<z.ZodEnum<["auto", "flow", "by_media", "row", "column", "grid", "align", "distribute", "spread"]>>;
523
+ side: z.ZodOptional<z.ZodEnum<["left", "center_x", "right", "top", "center_y", "bottom"]>>;
524
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
525
+ minGap: z.ZodOptional<z.ZodNumber>;
526
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
527
+ type: z.ZodLiteral<"run_generation">;
528
+ nodeId: z.ZodString;
529
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
530
+ prompt: z.ZodOptional<z.ZodString>;
531
+ }, z.ZodTypeAny, "passthrough">)[];
532
+ }>;
533
+ canvas_create_node: z.ZodObject<{
534
+ nodeType: z.ZodString;
535
+ title: z.ZodOptional<z.ZodString>;
536
+ x: z.ZodOptional<z.ZodNumber>;
537
+ y: z.ZodOptional<z.ZodNumber>;
538
+ width: z.ZodOptional<z.ZodNumber>;
539
+ height: z.ZodOptional<z.ZodNumber>;
540
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ nodeType: string;
543
+ title?: string | undefined;
544
+ metadata?: Record<string, unknown> | undefined;
545
+ width?: number | undefined;
546
+ height?: number | undefined;
547
+ x?: number | undefined;
548
+ y?: number | undefined;
549
+ }, {
550
+ nodeType: string;
551
+ title?: string | undefined;
552
+ metadata?: Record<string, unknown> | undefined;
553
+ width?: number | undefined;
554
+ height?: number | undefined;
555
+ x?: number | undefined;
556
+ y?: number | undefined;
557
+ }>;
558
+ canvas_create_attachment_nodes: z.ZodObject<{
559
+ attachmentIds: z.ZodType<string[], z.ZodTypeDef, string[]>;
560
+ x: z.ZodOptional<z.ZodNumber>;
561
+ y: z.ZodOptional<z.ZodNumber>;
562
+ gap: z.ZodOptional<z.ZodNumber>;
563
+ direction: z.ZodOptional<z.ZodEnum<["row", "column"]>>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ attachmentIds: string[];
566
+ x?: number | undefined;
567
+ y?: number | undefined;
568
+ gap?: number | undefined;
569
+ direction?: "row" | "column" | undefined;
570
+ }, {
571
+ attachmentIds: string[];
572
+ x?: number | undefined;
573
+ y?: number | undefined;
574
+ gap?: number | undefined;
575
+ direction?: "row" | "column" | undefined;
576
+ }>;
577
+ canvas_create_text_node: z.ZodObject<{
578
+ text: z.ZodOptional<z.ZodString>;
579
+ x: z.ZodOptional<z.ZodNumber>;
580
+ y: z.ZodOptional<z.ZodNumber>;
581
+ title: z.ZodOptional<z.ZodString>;
582
+ width: z.ZodOptional<z.ZodNumber>;
583
+ height: z.ZodOptional<z.ZodNumber>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ text?: string | undefined;
586
+ title?: string | undefined;
587
+ width?: number | undefined;
588
+ height?: number | undefined;
589
+ x?: number | undefined;
590
+ y?: number | undefined;
591
+ }, {
592
+ text?: string | undefined;
593
+ title?: string | undefined;
594
+ width?: number | undefined;
595
+ height?: number | undefined;
596
+ x?: number | undefined;
597
+ y?: number | undefined;
598
+ }>;
599
+ canvas_create_text_nodes: z.ZodObject<{
600
+ items: z.ZodType<{
601
+ text: string;
602
+ title?: string | undefined;
603
+ width?: number | undefined;
604
+ height?: number | undefined;
605
+ x?: number | undefined;
606
+ y?: number | undefined;
607
+ }[], z.ZodTypeDef, {
608
+ text: string;
609
+ title?: string | undefined;
610
+ width?: number | undefined;
611
+ height?: number | undefined;
612
+ x?: number | undefined;
613
+ y?: number | undefined;
614
+ }[]>;
615
+ x: z.ZodOptional<z.ZodNumber>;
616
+ y: z.ZodOptional<z.ZodNumber>;
617
+ gap: z.ZodOptional<z.ZodNumber>;
618
+ direction: z.ZodOptional<z.ZodEnum<["row", "column"]>>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ items: {
621
+ text: string;
622
+ title?: string | undefined;
623
+ width?: number | undefined;
624
+ height?: number | undefined;
625
+ x?: number | undefined;
626
+ y?: number | undefined;
627
+ }[];
628
+ x?: number | undefined;
629
+ y?: number | undefined;
630
+ gap?: number | undefined;
631
+ direction?: "row" | "column" | undefined;
632
+ }, {
633
+ items: {
634
+ text: string;
635
+ title?: string | undefined;
636
+ width?: number | undefined;
637
+ height?: number | undefined;
638
+ x?: number | undefined;
639
+ y?: number | undefined;
640
+ }[];
641
+ x?: number | undefined;
642
+ y?: number | undefined;
643
+ gap?: number | undefined;
644
+ direction?: "row" | "column" | undefined;
645
+ }>;
646
+ canvas_create_config_node: z.ZodObject<{} & {
647
+ [x: string]: any;
648
+ }, "strip", z.ZodTypeAny, {
649
+ [x: string]: any;
650
+ }, {
651
+ [x: string]: any;
652
+ }>;
653
+ canvas_create_image_prompt_flow: z.ZodObject<{} & {
654
+ [x: string]: any;
655
+ }, "strip", z.ZodTypeAny, {
656
+ [x: string]: any;
657
+ }, {
658
+ [x: string]: any;
659
+ }>;
660
+ canvas_create_generation_flow: z.ZodObject<{} & {
661
+ [x: string]: any;
662
+ }, "strip", z.ZodTypeAny, {
663
+ [x: string]: any;
664
+ }, {
665
+ [x: string]: any;
666
+ }>;
667
+ canvas_generate_text: z.ZodObject<{} & {
668
+ [x: string]: any;
669
+ }, "strip", z.ZodTypeAny, {
670
+ [x: string]: any;
671
+ }, {
672
+ [x: string]: any;
673
+ }>;
674
+ canvas_generate_image: z.ZodObject<{} & {
675
+ [x: string]: any;
676
+ }, "strip", z.ZodTypeAny, {
677
+ [x: string]: any;
678
+ }, {
679
+ [x: string]: any;
680
+ }>;
681
+ canvas_generate_video: z.ZodObject<{} & {
682
+ [x: string]: any;
683
+ }, "strip", z.ZodTypeAny, {
684
+ [x: string]: any;
685
+ }, {
686
+ [x: string]: any;
687
+ }>;
688
+ canvas_generate_audio: z.ZodObject<{} & {
689
+ [x: string]: any;
690
+ }, "strip", z.ZodTypeAny, {
691
+ [x: string]: any;
692
+ }, {
693
+ [x: string]: any;
694
+ }>;
695
+ canvas_update_node: z.ZodObject<{
696
+ id: z.ZodString;
697
+ patch: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
698
+ metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ id: string;
701
+ metadata?: Record<string, unknown> | undefined;
702
+ patch?: Record<string, unknown> | undefined;
703
+ }, {
704
+ id: string;
705
+ metadata?: Record<string, unknown> | undefined;
706
+ patch?: Record<string, unknown> | undefined;
707
+ }>;
708
+ canvas_update_node_text: z.ZodObject<{
709
+ id: z.ZodString;
710
+ text: z.ZodString;
711
+ title: z.ZodOptional<z.ZodString>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ text: string;
714
+ id: string;
715
+ title?: string | undefined;
716
+ }, {
717
+ text: string;
718
+ id: string;
719
+ title?: string | undefined;
720
+ }>;
721
+ canvas_move_nodes: z.ZodObject<{
722
+ items: z.ZodType<{
723
+ id: string;
724
+ x?: number | undefined;
725
+ y?: number | undefined;
726
+ dx?: number | undefined;
727
+ dy?: number | undefined;
728
+ }[], z.ZodTypeDef, {
729
+ id: string;
730
+ x?: number | undefined;
731
+ y?: number | undefined;
732
+ dx?: number | undefined;
733
+ dy?: number | undefined;
734
+ }[]>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ items: {
737
+ id: string;
738
+ x?: number | undefined;
739
+ y?: number | undefined;
740
+ dx?: number | undefined;
741
+ dy?: number | undefined;
742
+ }[];
743
+ }, {
744
+ items: {
745
+ id: string;
746
+ x?: number | undefined;
747
+ y?: number | undefined;
748
+ dx?: number | undefined;
749
+ dy?: number | undefined;
750
+ }[];
751
+ }>;
752
+ canvas_resize_node: z.ZodObject<{
753
+ id: z.ZodString;
754
+ width: z.ZodNumber;
755
+ height: z.ZodNumber;
756
+ freeResize: z.ZodOptional<z.ZodBoolean>;
757
+ }, "strip", z.ZodTypeAny, {
758
+ id: string;
759
+ width: number;
760
+ height: number;
761
+ freeResize?: boolean | undefined;
762
+ }, {
763
+ id: string;
764
+ width: number;
765
+ height: number;
766
+ freeResize?: boolean | undefined;
767
+ }>;
768
+ canvas_delete_nodes: z.ZodObject<{
769
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ ids: string[];
772
+ }, {
773
+ ids: string[];
774
+ }>;
775
+ canvas_connect_nodes: z.ZodObject<{
776
+ connections: z.ZodType<{
777
+ fromNodeId: string;
778
+ toNodeId: string;
779
+ }[], z.ZodTypeDef, {
780
+ fromNodeId: string;
781
+ toNodeId: string;
782
+ }[]>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ connections: {
785
+ fromNodeId: string;
786
+ toNodeId: string;
787
+ }[];
788
+ }, {
789
+ connections: {
790
+ fromNodeId: string;
791
+ toNodeId: string;
792
+ }[];
793
+ }>;
794
+ canvas_select_nodes: z.ZodObject<{
795
+ ids: z.ZodType<string[], z.ZodTypeDef, string[]>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ ids: string[];
798
+ }, {
799
+ ids: string[];
800
+ }>;
801
+ canvas_present_survey: z.ZodObject<{
802
+ title: z.ZodOptional<z.ZodString>;
803
+ contextText: z.ZodOptional<z.ZodString>;
804
+ groups: z.ZodType<{
805
+ title: string;
806
+ options: {
807
+ label: string;
808
+ description?: string | undefined;
809
+ recommended?: boolean | undefined;
810
+ }[];
811
+ mode?: "single" | "multi" | undefined;
812
+ allowCustom?: boolean | undefined;
813
+ }[], z.ZodTypeDef, {
814
+ title: string;
815
+ options: {
816
+ label: string;
817
+ description?: string | undefined;
818
+ recommended?: boolean | undefined;
819
+ }[];
820
+ mode?: "single" | "multi" | undefined;
821
+ allowCustom?: boolean | undefined;
822
+ }[]>;
823
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
824
+ title: z.ZodOptional<z.ZodString>;
825
+ contextText: z.ZodOptional<z.ZodString>;
826
+ groups: z.ZodType<{
827
+ title: string;
828
+ options: {
829
+ label: string;
830
+ description?: string | undefined;
831
+ recommended?: boolean | undefined;
832
+ }[];
833
+ mode?: "single" | "multi" | undefined;
834
+ allowCustom?: boolean | undefined;
835
+ }[], z.ZodTypeDef, {
836
+ title: string;
837
+ options: {
838
+ label: string;
839
+ description?: string | undefined;
840
+ recommended?: boolean | undefined;
841
+ }[];
842
+ mode?: "single" | "multi" | undefined;
843
+ allowCustom?: boolean | undefined;
844
+ }[]>;
845
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
846
+ title: z.ZodOptional<z.ZodString>;
847
+ contextText: z.ZodOptional<z.ZodString>;
848
+ groups: z.ZodType<{
849
+ title: string;
850
+ options: {
851
+ label: string;
852
+ description?: string | undefined;
853
+ recommended?: boolean | undefined;
854
+ }[];
855
+ mode?: "single" | "multi" | undefined;
856
+ allowCustom?: boolean | undefined;
857
+ }[], z.ZodTypeDef, {
858
+ title: string;
859
+ options: {
860
+ label: string;
861
+ description?: string | undefined;
862
+ recommended?: boolean | undefined;
863
+ }[];
864
+ mode?: "single" | "multi" | undefined;
865
+ allowCustom?: boolean | undefined;
866
+ }[]>;
867
+ }, z.ZodTypeAny, "passthrough">>;
868
+ canvas_set_viewport: z.ZodObject<{
869
+ viewport: z.ZodObject<{
870
+ x: z.ZodNumber;
871
+ y: z.ZodNumber;
872
+ k: z.ZodNumber;
873
+ }, "strip", z.ZodTypeAny, {
874
+ x: number;
875
+ y: number;
876
+ k: number;
877
+ }, {
878
+ x: number;
879
+ y: number;
880
+ k: number;
881
+ }>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ viewport: {
884
+ x: number;
885
+ y: number;
886
+ k: number;
887
+ };
888
+ }, {
889
+ viewport: {
890
+ x: number;
891
+ y: number;
892
+ k: number;
893
+ };
894
+ }>;
895
+ canvas_run_generation: z.ZodObject<{
896
+ nodeId: z.ZodString;
897
+ mode: z.ZodOptional<z.ZodEnum<["text", "image", "video", "audio"]>>;
898
+ prompt: z.ZodOptional<z.ZodString>;
899
+ }, "strip", z.ZodTypeAny, {
900
+ nodeId: string;
901
+ mode?: "image" | "video" | "audio" | "text" | undefined;
902
+ prompt?: string | undefined;
903
+ }, {
904
+ nodeId: string;
905
+ mode?: "image" | "video" | "audio" | "text" | undefined;
906
+ prompt?: string | undefined;
907
+ }>;
908
+ generation_get_status: z.ZodObject<{
909
+ scope: z.ZodOptional<z.ZodEnum<["all", "canvas", "image", "video"]>>;
910
+ taskId: z.ZodOptional<z.ZodString>;
911
+ nodeIds: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
912
+ limit: z.ZodOptional<z.ZodNumber>;
913
+ }, "strip", z.ZodTypeAny, {
914
+ limit?: number | undefined;
915
+ scope?: "image" | "video" | "canvas" | "all" | undefined;
916
+ taskId?: string | undefined;
917
+ nodeIds?: string[] | undefined;
918
+ }, {
919
+ limit?: number | undefined;
920
+ scope?: "image" | "video" | "canvas" | "all" | undefined;
921
+ taskId?: string | undefined;
922
+ nodeIds?: string[] | undefined;
923
+ }>;
924
+ workbench_image_get_config: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
925
+ workbench_image_generate: z.ZodObject<{
926
+ prompt: z.ZodString;
927
+ model: z.ZodOptional<z.ZodString>;
928
+ quality: z.ZodOptional<z.ZodString>;
929
+ size: z.ZodOptional<z.ZodString>;
930
+ count: z.ZodOptional<z.ZodNumber>;
931
+ run: z.ZodOptional<z.ZodBoolean>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ prompt: string;
934
+ count?: number | undefined;
935
+ model?: string | undefined;
936
+ size?: string | undefined;
937
+ quality?: string | undefined;
938
+ run?: boolean | undefined;
939
+ }, {
940
+ prompt: string;
941
+ count?: number | undefined;
942
+ model?: string | undefined;
943
+ size?: string | undefined;
944
+ quality?: string | undefined;
945
+ run?: boolean | undefined;
946
+ }>;
947
+ workbench_video_get_config: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
948
+ workbench_video_generate: z.ZodObject<{
949
+ prompt: z.ZodString;
950
+ model: z.ZodOptional<z.ZodString>;
951
+ size: z.ZodOptional<z.ZodString>;
952
+ seconds: z.ZodOptional<z.ZodString>;
953
+ resolution: z.ZodOptional<z.ZodString>;
954
+ generateAudio: z.ZodOptional<z.ZodBoolean>;
955
+ watermark: z.ZodOptional<z.ZodBoolean>;
956
+ mode: z.ZodOptional<z.ZodEnum<["frames", "reference"]>>;
957
+ run: z.ZodOptional<z.ZodBoolean>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ prompt: string;
960
+ mode?: "frames" | "reference" | undefined;
961
+ model?: string | undefined;
962
+ size?: string | undefined;
963
+ seconds?: string | undefined;
964
+ generateAudio?: boolean | undefined;
965
+ watermark?: boolean | undefined;
966
+ run?: boolean | undefined;
967
+ resolution?: string | undefined;
968
+ }, {
969
+ prompt: string;
970
+ mode?: "frames" | "reference" | undefined;
971
+ model?: string | undefined;
972
+ size?: string | undefined;
973
+ seconds?: string | undefined;
974
+ generateAudio?: boolean | undefined;
975
+ watermark?: boolean | undefined;
976
+ run?: boolean | undefined;
977
+ resolution?: string | undefined;
978
+ }>;
979
+ prompts_search: z.ZodObject<{
980
+ keyword: z.ZodOptional<z.ZodString>;
981
+ category: z.ZodOptional<z.ZodString>;
982
+ tags: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
983
+ page: z.ZodOptional<z.ZodNumber>;
984
+ pageSize: z.ZodOptional<z.ZodNumber>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ keyword?: string | undefined;
987
+ page?: number | undefined;
988
+ pageSize?: number | undefined;
989
+ category?: string | undefined;
990
+ tags?: string[] | undefined;
991
+ }, {
992
+ keyword?: string | undefined;
993
+ page?: number | undefined;
994
+ pageSize?: number | undefined;
995
+ category?: string | undefined;
996
+ tags?: string[] | undefined;
997
+ }>;
998
+ assets_list: z.ZodObject<{
999
+ kind: z.ZodOptional<z.ZodEnum<["all", "text", "image", "video"]>>;
1000
+ keyword: z.ZodOptional<z.ZodString>;
1001
+ page: z.ZodOptional<z.ZodNumber>;
1002
+ pageSize: z.ZodOptional<z.ZodNumber>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ kind?: "image" | "video" | "text" | "all" | undefined;
1005
+ keyword?: string | undefined;
1006
+ page?: number | undefined;
1007
+ pageSize?: number | undefined;
1008
+ }, {
1009
+ kind?: "image" | "video" | "text" | "all" | undefined;
1010
+ keyword?: string | undefined;
1011
+ page?: number | undefined;
1012
+ pageSize?: number | undefined;
1013
+ }>;
1014
+ assets_add: z.ZodObject<{
1015
+ kind: z.ZodEnum<["text", "image"]>;
1016
+ title: z.ZodString;
1017
+ content: z.ZodOptional<z.ZodString>;
1018
+ imageUrl: z.ZodOptional<z.ZodString>;
1019
+ tags: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
1020
+ source: z.ZodOptional<z.ZodString>;
1021
+ note: z.ZodOptional<z.ZodString>;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ kind: "image" | "text";
1024
+ title: string;
1025
+ source?: string | undefined;
1026
+ note?: string | undefined;
1027
+ content?: string | undefined;
1028
+ tags?: string[] | undefined;
1029
+ imageUrl?: string | undefined;
1030
+ }, {
1031
+ kind: "image" | "text";
1032
+ title: string;
1033
+ source?: string | undefined;
1034
+ note?: string | undefined;
1035
+ content?: string | undefined;
1036
+ tags?: string[] | undefined;
1037
+ imageUrl?: string | undefined;
1038
+ }>;
1039
+ };
1040
+ export declare const toolDescriptions: Record<ToolName, string>;