@oomol-lab/open-flow 0.1.0-beta.55 → 0.1.0-beta.57

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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/{createResourceDialog-4H5_lZ6s.js → createResourceDialog-C23SBjYd.js} +2 -2
  3. package/dist/browser/flow-authoring-edge.d.ts +3 -3
  4. package/dist/browser/flow-authoring-node.d.ts +30 -46
  5. package/dist/browser/flow-authoring.js +9215 -21030
  6. package/dist/browser/flow-change-schema.d.ts +267 -1
  7. package/dist/browser/flow-change.d.ts +19 -104
  8. package/dist/browser/flow-change.js +154 -298
  9. package/dist/browser/{flowChanges-ZzG-f9cg.js → flowChanges-fBiAeTzR.js} +2347 -2216
  10. package/dist/browser/{flowWorkspace-ChpRaTMX.js → flowWorkspace-MqcEfg7T.js} +118 -293
  11. package/dist/browser/{icons-CdAB9wyS.js → icons-6oQ8Q9Wm.js} +4309 -4454
  12. package/dist/browser/lib-DrKav3HG.js +11403 -0
  13. package/dist/browser/preview.css +1 -1
  14. package/dist/browser/preview.js +9609 -9548
  15. package/dist/browser/ui-idTooltip.d.ts +11 -0
  16. package/dist/browser/ui.d.ts +5 -0
  17. package/dist/browser/ui.js +83 -1
  18. package/dist/browser/workbench.css +1 -1
  19. package/dist/browser/workbench.js +227 -417
  20. package/dist/browser/{workbenchSelect-BRZN4ish.js → workbenchSelect-DpLbIr29.js} +1 -1
  21. package/dist/common/authoring.d.ts +207 -0
  22. package/dist/common/authoringSchema.d.ts +1293 -0
  23. package/dist/common/control-api-conformance.js +1060 -623
  24. package/dist/common/control-api-errors.d.ts +2 -1
  25. package/dist/common/control-api.d.ts +87 -6
  26. package/dist/common/control-api.js +1058 -705
  27. package/dist/common/control-requests.d.ts +128 -0
  28. package/dist/common/control-requests.js +2913 -1145
  29. package/dist/common/decision.js +6337 -6371
  30. package/dist/common/flow-agent.d.ts +1 -1
  31. package/dist/common/flow-connectionUsage.d.ts +1 -2
  32. package/dist/common/flow-encoding.d.ts +2 -4
  33. package/dist/common/flow-encoding.js +131 -182
  34. package/dist/common/flow-graph.d.ts +10 -10
  35. package/dist/common/flow-semantics.d.ts +13 -9
  36. package/dist/common/flow-semantics.js +9051 -9232
  37. package/dist/common/flowInspection.d.ts +3 -21
  38. package/dist/common/integration-trigger.js +8653 -8687
  39. package/dist/common/lib-DrKav3HG.js +11403 -0
  40. package/dist/common/mcp.d.ts +120 -12
  41. package/dist/common/mcp.js +537 -188
  42. package/dist/common/openapi.js +6337 -6371
  43. package/dist/common/poll-trigger.js +8653 -8687
  44. package/dist/common/run-events.js +0 -1
  45. package/dist/common/scheduler.d.ts +3 -9
  46. package/dist/common/scheduler.js +128 -209
  47. package/dist/common/webhook-trigger.js +6337 -6371
  48. package/package.json +7 -1
  49. package/skills/open-flow/SKILL.md +32 -0
  50. package/skills/open-flow/references/flow-authoring.md +356 -0
  51. package/skills/open-flow/references/flow-n8n-conversion.md +196 -0
@@ -0,0 +1,1293 @@
1
+ import { z } from 'zod';
2
+ export declare const authoringTypes: readonly ['manual', 'webhook', 'cron', 'error', 'poll', 'integration', 'code', 'connector', 'agent', 'llm', 'decision', 'openapi', 'condition', 'value', 'wait', 'approval'];
3
+ declare const type: z.ZodEnum<{
4
+ agent: "agent";
5
+ approval: "approval";
6
+ code: "code";
7
+ condition: "condition";
8
+ connector: "connector";
9
+ cron: "cron";
10
+ decision: "decision";
11
+ error: "error";
12
+ integration: "integration";
13
+ llm: "llm";
14
+ manual: "manual";
15
+ openapi: "openapi";
16
+ poll: "poll";
17
+ value: "value";
18
+ wait: "wait";
19
+ webhook: "webhook";
20
+ }>;
21
+ export type AuthoringType = z.infer<typeof type>;
22
+ export declare const authoringSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
23
+ kind: z.ZodLiteral<"output">;
24
+ node: z.ZodString;
25
+ port: z.ZodOptional<z.ZodString>;
26
+ field: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ kind: z.ZodLiteral<"variable">;
29
+ name: z.ZodString;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ kind: z.ZodLiteral<"value">;
32
+ value: z.ZodJSONSchema;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ kind: z.ZodLiteral<"unset">;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ kind: z.ZodLiteral<"default">;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ kind: z.ZodLiteral<"sources">;
39
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
40
+ kind: z.ZodLiteral<"output">;
41
+ node: z.ZodString;
42
+ port: z.ZodOptional<z.ZodString>;
43
+ field: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strict>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"variable">;
46
+ name: z.ZodString;
47
+ }, z.core.$strict>]>>;
48
+ }, z.core.$strict>]>;
49
+ export declare const authoringConfigurations: {
50
+ manual: z.ZodObject<{}, z.core.$strict>;
51
+ error: z.ZodObject<{
52
+ sourceFlowIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ }, z.core.$strict>;
54
+ webhook: z.ZodObject<{
55
+ method: z.ZodEnum<{
56
+ DELETE: "DELETE";
57
+ GET: "GET";
58
+ PATCH: "PATCH";
59
+ POST: "POST";
60
+ PUT: "PUT";
61
+ }>;
62
+ options: z.ZodOptional<z.ZodObject<{
63
+ allowedMethods: z.ZodOptional<z.ZodNever>;
64
+ allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ noResponseBody: z.ZodOptional<z.ZodNever>;
66
+ responseData: z.ZodOptional<z.ZodString>;
67
+ responseHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
68
+ responseStatusCode: z.ZodOptional<z.ZodNumber>;
69
+ }, z.core.$strip>>;
70
+ body: z.ZodRecord<z.ZodString, z.ZodObject<{
71
+ schema: z.ZodOptional<z.ZodJSONSchema>;
72
+ nullable: z.ZodOptional<z.ZodBoolean>;
73
+ description: z.ZodOptional<z.ZodString>;
74
+ default: z.ZodOptional<z.ZodJSONSchema>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>;
77
+ cron: z.ZodObject<{
78
+ schedule: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
79
+ type: z.ZodLiteral<"cron">;
80
+ expression: z.ZodString;
81
+ timezone: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodLiteral<"every">;
84
+ unit: z.ZodEnum<{
85
+ day: "day";
86
+ hour: "hour";
87
+ minute: "minute";
88
+ month: "month";
89
+ week: "week";
90
+ }>;
91
+ value: z.ZodNumber;
92
+ }, z.core.$strip>]>>;
93
+ }, z.core.$strict>;
94
+ poll: z.ZodObject<{
95
+ key: z.ZodString;
96
+ connectionId: z.ZodOptional<z.ZodString>;
97
+ schedule: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
98
+ type: z.ZodLiteral<"cron">;
99
+ expression: z.ZodString;
100
+ timezone: z.ZodString;
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ type: z.ZodLiteral<"every">;
103
+ unit: z.ZodEnum<{
104
+ day: "day";
105
+ hour: "hour";
106
+ minute: "minute";
107
+ month: "month";
108
+ week: "week";
109
+ }>;
110
+ value: z.ZodNumber;
111
+ }, z.core.$strip>]>>;
112
+ }, z.core.$strict>;
113
+ integration: z.ZodObject<{
114
+ key: z.ZodString;
115
+ connectionId: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>;
117
+ code: z.ZodObject<{
118
+ inputs: z.ZodRecord<z.ZodString, z.ZodObject<{
119
+ schema: z.ZodOptional<z.ZodJSONSchema>;
120
+ nullable: z.ZodOptional<z.ZodBoolean>;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ default: z.ZodOptional<z.ZodJSONSchema>;
123
+ }, z.core.$strict>>;
124
+ outputs: z.ZodRecord<z.ZodString, z.ZodObject<{
125
+ schema: z.ZodOptional<z.ZodJSONSchema>;
126
+ nullable: z.ZodOptional<z.ZodBoolean>;
127
+ description: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strict>>;
129
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
130
+ kind: z.ZodLiteral<"connector">;
131
+ action: z.ZodString;
132
+ connectionId: z.ZodOptional<z.ZodString>;
133
+ connections: z.ZodArray<z.ZodObject<{
134
+ connectionId: z.ZodString;
135
+ alias: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ kind: z.ZodLiteral<"connector">;
139
+ mode: z.ZodLiteral<"shared">;
140
+ }, z.core.$strict>, z.ZodObject<{
141
+ kind: z.ZodLiteral<"connector">;
142
+ mode: z.ZodLiteral<"independent">;
143
+ actions: z.ZodArray<z.ZodObject<{
144
+ action: z.ZodString;
145
+ connectionId: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strict>>;
147
+ }, z.core.$strict>, z.ZodObject<{
148
+ kind: z.ZodLiteral<"connector">;
149
+ actionHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
150
+ connectionHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ action: z.ZodString;
152
+ connectionId: z.ZodString;
153
+ alias: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strict>>>;
155
+ }, z.core.$strict>]>>>;
156
+ }, z.core.$strict>;
157
+ connector: z.ZodObject<{
158
+ action: z.ZodString;
159
+ connectionId: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strict>;
161
+ openapi: z.ZodObject<{
162
+ sourceUrl: z.ZodString;
163
+ path: z.ZodString;
164
+ method: z.ZodString;
165
+ serverUrl: z.ZodOptional<z.ZodString>;
166
+ authentication: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
167
+ schemes: z.ZodArray<z.ZodString>;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ type: z.ZodEnum<{
170
+ basic: "basic";
171
+ bearer: "bearer";
172
+ }>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ type: z.ZodLiteral<"apiKey">;
175
+ name: z.ZodString;
176
+ in: z.ZodEnum<{
177
+ header: "header";
178
+ query: "query";
179
+ }>;
180
+ }, z.core.$strict>]>>;
181
+ }, z.core.$strict>;
182
+ agent: z.ZodObject<{
183
+ code: z.ZodOptional<z.ZodBoolean>;
184
+ model: z.ZodString;
185
+ maxRounds: z.ZodNumber;
186
+ inputs: z.ZodRecord<z.ZodString, z.ZodObject<{
187
+ schema: z.ZodOptional<z.ZodJSONSchema>;
188
+ nullable: z.ZodOptional<z.ZodBoolean>;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ default: z.ZodOptional<z.ZodJSONSchema>;
191
+ }, z.core.$strict>>;
192
+ resultSchema: z.ZodJSONSchema;
193
+ tools: z.ZodArray<z.ZodObject<{
194
+ name: z.ZodString;
195
+ description: z.ZodString;
196
+ action: z.ZodString;
197
+ connectionId: z.ZodOptional<z.ZodString>;
198
+ approval: z.ZodBoolean;
199
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
200
+ kind: z.ZodLiteral<"value">;
201
+ value: z.ZodJSONSchema;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ kind: z.ZodLiteral<"input">;
204
+ input: z.ZodString;
205
+ }, z.core.$strip>]>, z.ZodObject<{
206
+ kind: z.ZodLiteral<"model">;
207
+ }, z.core.$strip>]>>>;
208
+ }, z.core.$strict>>;
209
+ notification: z.ZodOptional<z.ZodObject<{
210
+ action: z.ZodString;
211
+ connectionId: z.ZodOptional<z.ZodString>;
212
+ messageHandle: z.ZodString;
213
+ inputs: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
214
+ kind: z.ZodLiteral<"value">;
215
+ value: z.ZodJSONSchema;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ kind: z.ZodLiteral<"input">;
218
+ input: z.ZodString;
219
+ }, z.core.$strict>]>>;
220
+ }, z.core.$strict>>;
221
+ }, z.core.$strict>;
222
+ llm: z.ZodObject<{
223
+ mode: z.ZodEnum<{
224
+ chat: "chat";
225
+ json: "json";
226
+ }>;
227
+ resultSchema: z.ZodJSONSchema;
228
+ model: z.ZodOptional<z.ZodJSONSchema>;
229
+ template: z.ZodOptional<z.ZodJSONSchema>;
230
+ messages: z.ZodOptional<z.ZodJSONSchema>;
231
+ inputs: z.ZodRecord<z.ZodString, z.ZodObject<{
232
+ schema: z.ZodOptional<z.ZodJSONSchema>;
233
+ nullable: z.ZodOptional<z.ZodBoolean>;
234
+ description: z.ZodOptional<z.ZodString>;
235
+ default: z.ZodOptional<z.ZodJSONSchema>;
236
+ }, z.core.$strict>>;
237
+ }, z.core.$strict>;
238
+ decision: z.ZodObject<{
239
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
240
+ name: z.ZodString;
241
+ instructions: z.ZodString;
242
+ type: z.ZodLiteral<"noul">;
243
+ criteria: z.ZodOptional<z.ZodObject<{
244
+ true: z.ZodOptional<z.ZodString>;
245
+ false: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strict>>;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ name: z.ZodString;
249
+ instructions: z.ZodString;
250
+ type: z.ZodLiteral<"choice">;
251
+ criteria: z.ZodArray<z.ZodObject<{
252
+ name: z.ZodString;
253
+ description: z.ZodString;
254
+ }, z.core.$strict>>;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ name: z.ZodString;
257
+ instructions: z.ZodString;
258
+ type: z.ZodLiteral<"score">;
259
+ criteria: z.ZodArray<z.ZodString>;
260
+ }, z.core.$strict>], "type">>;
261
+ }, z.core.$strict>;
262
+ condition: z.ZodObject<{
263
+ match: z.ZodEnum<{
264
+ all: "all";
265
+ first: "first";
266
+ }>;
267
+ branches: z.ZodArray<z.ZodObject<{
268
+ name: z.ZodString;
269
+ description: z.ZodOptional<z.ZodString>;
270
+ when: z.ZodUnion<readonly [z.ZodObject<{
271
+ left: z.ZodUnion<readonly [z.ZodObject<{
272
+ kind: z.ZodLiteral<"value">;
273
+ value: z.ZodOptional<z.ZodJSONSchema>;
274
+ schema: z.ZodOptional<z.ZodJSONSchema>;
275
+ }, z.core.$strict>, z.ZodObject<{
276
+ kind: z.ZodLiteral<"output">;
277
+ node: z.ZodString;
278
+ port: z.ZodOptional<z.ZodString>;
279
+ field: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strict>, z.ZodObject<{
281
+ kind: z.ZodLiteral<"variable">;
282
+ name: z.ZodString;
283
+ }, z.core.$strict>]>;
284
+ operator: z.ZodEnum<{
285
+ "!=": "!=";
286
+ "<": "<";
287
+ "<=": "<=";
288
+ "==": "==";
289
+ ">": ">";
290
+ ">=": ">=";
291
+ contains: "contains";
292
+ endsWith: "endsWith";
293
+ hasKey: "hasKey";
294
+ hasValue: "hasValue";
295
+ isEmpty: "isEmpty";
296
+ isFalse: "isFalse";
297
+ isNotEmpty: "isNotEmpty";
298
+ isNotNull: "isNotNull";
299
+ isNull: "isNull";
300
+ isTrue: "isTrue";
301
+ notContains: "notContains";
302
+ notHasKey: "notHasKey";
303
+ notHasValue: "notHasValue";
304
+ startsWith: "startsWith";
305
+ }>;
306
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
307
+ kind: z.ZodLiteral<"value">;
308
+ value: z.ZodOptional<z.ZodJSONSchema>;
309
+ schema: z.ZodOptional<z.ZodJSONSchema>;
310
+ }, z.core.$strict>, z.ZodObject<{
311
+ kind: z.ZodLiteral<"output">;
312
+ node: z.ZodString;
313
+ port: z.ZodOptional<z.ZodString>;
314
+ field: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ kind: z.ZodLiteral<"variable">;
317
+ name: z.ZodString;
318
+ }, z.core.$strict>]>>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ all: z.ZodArray<z.ZodObject<{
321
+ left: z.ZodUnion<readonly [z.ZodObject<{
322
+ kind: z.ZodLiteral<"value">;
323
+ value: z.ZodOptional<z.ZodJSONSchema>;
324
+ schema: z.ZodOptional<z.ZodJSONSchema>;
325
+ }, z.core.$strict>, z.ZodObject<{
326
+ kind: z.ZodLiteral<"output">;
327
+ node: z.ZodString;
328
+ port: z.ZodOptional<z.ZodString>;
329
+ field: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ kind: z.ZodLiteral<"variable">;
332
+ name: z.ZodString;
333
+ }, z.core.$strict>]>;
334
+ operator: z.ZodEnum<{
335
+ "!=": "!=";
336
+ "<": "<";
337
+ "<=": "<=";
338
+ "==": "==";
339
+ ">": ">";
340
+ ">=": ">=";
341
+ contains: "contains";
342
+ endsWith: "endsWith";
343
+ hasKey: "hasKey";
344
+ hasValue: "hasValue";
345
+ isEmpty: "isEmpty";
346
+ isFalse: "isFalse";
347
+ isNotEmpty: "isNotEmpty";
348
+ isNotNull: "isNotNull";
349
+ isNull: "isNull";
350
+ isTrue: "isTrue";
351
+ notContains: "notContains";
352
+ notHasKey: "notHasKey";
353
+ notHasValue: "notHasValue";
354
+ startsWith: "startsWith";
355
+ }>;
356
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
357
+ kind: z.ZodLiteral<"value">;
358
+ value: z.ZodOptional<z.ZodJSONSchema>;
359
+ schema: z.ZodOptional<z.ZodJSONSchema>;
360
+ }, z.core.$strict>, z.ZodObject<{
361
+ kind: z.ZodLiteral<"output">;
362
+ node: z.ZodString;
363
+ port: z.ZodOptional<z.ZodString>;
364
+ field: z.ZodOptional<z.ZodString>;
365
+ }, z.core.$strict>, z.ZodObject<{
366
+ kind: z.ZodLiteral<"variable">;
367
+ name: z.ZodString;
368
+ }, z.core.$strict>]>>;
369
+ }, z.core.$strict>>;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ any: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
372
+ left: z.ZodUnion<readonly [z.ZodObject<{
373
+ kind: z.ZodLiteral<"value">;
374
+ value: z.ZodOptional<z.ZodJSONSchema>;
375
+ schema: z.ZodOptional<z.ZodJSONSchema>;
376
+ }, z.core.$strict>, z.ZodObject<{
377
+ kind: z.ZodLiteral<"output">;
378
+ node: z.ZodString;
379
+ port: z.ZodOptional<z.ZodString>;
380
+ field: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strict>, z.ZodObject<{
382
+ kind: z.ZodLiteral<"variable">;
383
+ name: z.ZodString;
384
+ }, z.core.$strict>]>;
385
+ operator: z.ZodEnum<{
386
+ "!=": "!=";
387
+ "<": "<";
388
+ "<=": "<=";
389
+ "==": "==";
390
+ ">": ">";
391
+ ">=": ">=";
392
+ contains: "contains";
393
+ endsWith: "endsWith";
394
+ hasKey: "hasKey";
395
+ hasValue: "hasValue";
396
+ isEmpty: "isEmpty";
397
+ isFalse: "isFalse";
398
+ isNotEmpty: "isNotEmpty";
399
+ isNotNull: "isNotNull";
400
+ isNull: "isNull";
401
+ isTrue: "isTrue";
402
+ notContains: "notContains";
403
+ notHasKey: "notHasKey";
404
+ notHasValue: "notHasValue";
405
+ startsWith: "startsWith";
406
+ }>;
407
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
408
+ kind: z.ZodLiteral<"value">;
409
+ value: z.ZodOptional<z.ZodJSONSchema>;
410
+ schema: z.ZodOptional<z.ZodJSONSchema>;
411
+ }, z.core.$strict>, z.ZodObject<{
412
+ kind: z.ZodLiteral<"output">;
413
+ node: z.ZodString;
414
+ port: z.ZodOptional<z.ZodString>;
415
+ field: z.ZodOptional<z.ZodString>;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ kind: z.ZodLiteral<"variable">;
418
+ name: z.ZodString;
419
+ }, z.core.$strict>]>>;
420
+ }, z.core.$strict>, z.ZodObject<{
421
+ all: z.ZodArray<z.ZodObject<{
422
+ left: z.ZodUnion<readonly [z.ZodObject<{
423
+ kind: z.ZodLiteral<"value">;
424
+ value: z.ZodOptional<z.ZodJSONSchema>;
425
+ schema: z.ZodOptional<z.ZodJSONSchema>;
426
+ }, z.core.$strict>, z.ZodObject<{
427
+ kind: z.ZodLiteral<"output">;
428
+ node: z.ZodString;
429
+ port: z.ZodOptional<z.ZodString>;
430
+ field: z.ZodOptional<z.ZodString>;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ kind: z.ZodLiteral<"variable">;
433
+ name: z.ZodString;
434
+ }, z.core.$strict>]>;
435
+ operator: z.ZodEnum<{
436
+ "!=": "!=";
437
+ "<": "<";
438
+ "<=": "<=";
439
+ "==": "==";
440
+ ">": ">";
441
+ ">=": ">=";
442
+ contains: "contains";
443
+ endsWith: "endsWith";
444
+ hasKey: "hasKey";
445
+ hasValue: "hasValue";
446
+ isEmpty: "isEmpty";
447
+ isFalse: "isFalse";
448
+ isNotEmpty: "isNotEmpty";
449
+ isNotNull: "isNotNull";
450
+ isNull: "isNull";
451
+ isTrue: "isTrue";
452
+ notContains: "notContains";
453
+ notHasKey: "notHasKey";
454
+ notHasValue: "notHasValue";
455
+ startsWith: "startsWith";
456
+ }>;
457
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
458
+ kind: z.ZodLiteral<"value">;
459
+ value: z.ZodOptional<z.ZodJSONSchema>;
460
+ schema: z.ZodOptional<z.ZodJSONSchema>;
461
+ }, z.core.$strict>, z.ZodObject<{
462
+ kind: z.ZodLiteral<"output">;
463
+ node: z.ZodString;
464
+ port: z.ZodOptional<z.ZodString>;
465
+ field: z.ZodOptional<z.ZodString>;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ kind: z.ZodLiteral<"variable">;
468
+ name: z.ZodString;
469
+ }, z.core.$strict>]>>;
470
+ }, z.core.$strict>>;
471
+ }, z.core.$strict>]>>;
472
+ }, z.core.$strict>]>;
473
+ }, z.core.$strict>>;
474
+ }, z.core.$strict>;
475
+ value: z.ZodObject<{
476
+ values: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
477
+ outputs: z.ZodRecord<z.ZodString, z.ZodObject<{
478
+ schema: z.ZodOptional<z.ZodJSONSchema>;
479
+ nullable: z.ZodOptional<z.ZodBoolean>;
480
+ description: z.ZodOptional<z.ZodString>;
481
+ }, z.core.$strict>>;
482
+ }, z.core.$strict>;
483
+ wait: z.ZodObject<{
484
+ inputs: z.ZodRecord<z.ZodString, z.ZodObject<{
485
+ schema: z.ZodOptional<z.ZodJSONSchema>;
486
+ nullable: z.ZodOptional<z.ZodBoolean>;
487
+ description: z.ZodOptional<z.ZodString>;
488
+ default: z.ZodOptional<z.ZodJSONSchema>;
489
+ }, z.core.$strict>>;
490
+ }, z.core.$strict>;
491
+ approval: z.ZodObject<{
492
+ inputs: z.ZodRecord<z.ZodString, z.ZodObject<{
493
+ schema: z.ZodOptional<z.ZodJSONSchema>;
494
+ nullable: z.ZodOptional<z.ZodBoolean>;
495
+ description: z.ZodOptional<z.ZodString>;
496
+ default: z.ZodOptional<z.ZodJSONSchema>;
497
+ }, z.core.$strict>>;
498
+ }, z.core.$strict>;
499
+ };
500
+ export declare const authoringEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
501
+ op: z.ZodLiteral<"node.add">;
502
+ as: z.ZodString;
503
+ type: z.ZodEnum<{
504
+ agent: "agent";
505
+ approval: "approval";
506
+ code: "code";
507
+ condition: "condition";
508
+ connector: "connector";
509
+ cron: "cron";
510
+ decision: "decision";
511
+ error: "error";
512
+ integration: "integration";
513
+ llm: "llm";
514
+ manual: "manual";
515
+ openapi: "openapi";
516
+ poll: "poll";
517
+ value: "value";
518
+ wait: "wait";
519
+ webhook: "webhook";
520
+ }>;
521
+ name: z.ZodString;
522
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
523
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
524
+ kind: z.ZodLiteral<"output">;
525
+ node: z.ZodString;
526
+ port: z.ZodOptional<z.ZodString>;
527
+ field: z.ZodOptional<z.ZodString>;
528
+ }, z.core.$strict>, z.ZodObject<{
529
+ kind: z.ZodLiteral<"variable">;
530
+ name: z.ZodString;
531
+ }, z.core.$strict>, z.ZodObject<{
532
+ kind: z.ZodLiteral<"value">;
533
+ value: z.ZodJSONSchema;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ kind: z.ZodLiteral<"unset">;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ kind: z.ZodLiteral<"default">;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ kind: z.ZodLiteral<"sources">;
540
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
541
+ kind: z.ZodLiteral<"output">;
542
+ node: z.ZodString;
543
+ port: z.ZodOptional<z.ZodString>;
544
+ field: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ kind: z.ZodLiteral<"variable">;
547
+ name: z.ZodString;
548
+ }, z.core.$strict>]>>;
549
+ }, z.core.$strict>]>>>;
550
+ code: z.ZodOptional<z.ZodString>;
551
+ prompt: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strict>, z.ZodObject<{
553
+ op: z.ZodLiteral<"node.update">;
554
+ node: z.ZodString;
555
+ set: z.ZodOptional<z.ZodObject<{
556
+ name: z.ZodOptional<z.ZodString>;
557
+ description: z.ZodOptional<z.ZodString>;
558
+ icon: z.ZodOptional<z.ZodString>;
559
+ maxExecutions: z.ZodOptional<z.ZodInt>;
560
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
561
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
562
+ }, z.core.$strict>>;
563
+ clear: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
564
+ }, z.core.$strict>, z.ZodObject<{
565
+ op: z.ZodLiteral<"node.remove">;
566
+ node: z.ZodString;
567
+ }, z.core.$strict>, z.ZodObject<{
568
+ op: z.ZodLiteral<"input.set">;
569
+ node: z.ZodString;
570
+ input: z.ZodString;
571
+ source: z.ZodUnion<readonly [z.ZodObject<{
572
+ kind: z.ZodLiteral<"output">;
573
+ node: z.ZodString;
574
+ port: z.ZodOptional<z.ZodString>;
575
+ field: z.ZodOptional<z.ZodString>;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"variable">;
578
+ name: z.ZodString;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ kind: z.ZodLiteral<"value">;
581
+ value: z.ZodJSONSchema;
582
+ }, z.core.$strict>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"unset">;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ kind: z.ZodLiteral<"default">;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ kind: z.ZodLiteral<"sources">;
588
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
589
+ kind: z.ZodLiteral<"output">;
590
+ node: z.ZodString;
591
+ port: z.ZodOptional<z.ZodString>;
592
+ field: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strict>, z.ZodObject<{
594
+ kind: z.ZodLiteral<"variable">;
595
+ name: z.ZodString;
596
+ }, z.core.$strict>]>>;
597
+ }, z.core.$strict>]>;
598
+ }, z.core.$strict>, z.ZodObject<{
599
+ op: z.ZodEnum<{
600
+ "edge.connect": "edge.connect";
601
+ "edge.disconnect": "edge.disconnect";
602
+ }>;
603
+ source: z.ZodString;
604
+ target: z.ZodString;
605
+ branch: z.ZodOptional<z.ZodString>;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ op: z.ZodLiteral<"text.edit">;
608
+ node: z.ZodString;
609
+ field: z.ZodEnum<{
610
+ code: "code";
611
+ prompt: "prompt";
612
+ }>;
613
+ oldText: z.ZodString;
614
+ newText: z.ZodString;
615
+ }, z.core.$strict>, z.ZodObject<{
616
+ op: z.ZodLiteral<"text.set">;
617
+ node: z.ZodString;
618
+ field: z.ZodEnum<{
619
+ code: "code";
620
+ prompt: "prompt";
621
+ }>;
622
+ text: z.ZodString;
623
+ }, z.core.$strict>], "op">;
624
+ export declare const authoringRequestSchema: z.ZodObject<{
625
+ baseRevision: z.ZodString;
626
+ requestId: z.ZodString;
627
+ edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
628
+ op: z.ZodLiteral<"node.add">;
629
+ as: z.ZodString;
630
+ type: z.ZodEnum<{
631
+ agent: "agent";
632
+ approval: "approval";
633
+ code: "code";
634
+ condition: "condition";
635
+ connector: "connector";
636
+ cron: "cron";
637
+ decision: "decision";
638
+ error: "error";
639
+ integration: "integration";
640
+ llm: "llm";
641
+ manual: "manual";
642
+ openapi: "openapi";
643
+ poll: "poll";
644
+ value: "value";
645
+ wait: "wait";
646
+ webhook: "webhook";
647
+ }>;
648
+ name: z.ZodString;
649
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
650
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
651
+ kind: z.ZodLiteral<"output">;
652
+ node: z.ZodString;
653
+ port: z.ZodOptional<z.ZodString>;
654
+ field: z.ZodOptional<z.ZodString>;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ kind: z.ZodLiteral<"variable">;
657
+ name: z.ZodString;
658
+ }, z.core.$strict>, z.ZodObject<{
659
+ kind: z.ZodLiteral<"value">;
660
+ value: z.ZodJSONSchema;
661
+ }, z.core.$strict>, z.ZodObject<{
662
+ kind: z.ZodLiteral<"unset">;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ kind: z.ZodLiteral<"default">;
665
+ }, z.core.$strict>, z.ZodObject<{
666
+ kind: z.ZodLiteral<"sources">;
667
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
668
+ kind: z.ZodLiteral<"output">;
669
+ node: z.ZodString;
670
+ port: z.ZodOptional<z.ZodString>;
671
+ field: z.ZodOptional<z.ZodString>;
672
+ }, z.core.$strict>, z.ZodObject<{
673
+ kind: z.ZodLiteral<"variable">;
674
+ name: z.ZodString;
675
+ }, z.core.$strict>]>>;
676
+ }, z.core.$strict>]>>>;
677
+ code: z.ZodOptional<z.ZodString>;
678
+ prompt: z.ZodOptional<z.ZodString>;
679
+ }, z.core.$strict>, z.ZodObject<{
680
+ op: z.ZodLiteral<"node.update">;
681
+ node: z.ZodString;
682
+ set: z.ZodOptional<z.ZodObject<{
683
+ name: z.ZodOptional<z.ZodString>;
684
+ description: z.ZodOptional<z.ZodString>;
685
+ icon: z.ZodOptional<z.ZodString>;
686
+ maxExecutions: z.ZodOptional<z.ZodInt>;
687
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
688
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
689
+ }, z.core.$strict>>;
690
+ clear: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
691
+ }, z.core.$strict>, z.ZodObject<{
692
+ op: z.ZodLiteral<"node.remove">;
693
+ node: z.ZodString;
694
+ }, z.core.$strict>, z.ZodObject<{
695
+ op: z.ZodLiteral<"input.set">;
696
+ node: z.ZodString;
697
+ input: z.ZodString;
698
+ source: z.ZodUnion<readonly [z.ZodObject<{
699
+ kind: z.ZodLiteral<"output">;
700
+ node: z.ZodString;
701
+ port: z.ZodOptional<z.ZodString>;
702
+ field: z.ZodOptional<z.ZodString>;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ kind: z.ZodLiteral<"variable">;
705
+ name: z.ZodString;
706
+ }, z.core.$strict>, z.ZodObject<{
707
+ kind: z.ZodLiteral<"value">;
708
+ value: z.ZodJSONSchema;
709
+ }, z.core.$strict>, z.ZodObject<{
710
+ kind: z.ZodLiteral<"unset">;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ kind: z.ZodLiteral<"default">;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"sources">;
715
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
716
+ kind: z.ZodLiteral<"output">;
717
+ node: z.ZodString;
718
+ port: z.ZodOptional<z.ZodString>;
719
+ field: z.ZodOptional<z.ZodString>;
720
+ }, z.core.$strict>, z.ZodObject<{
721
+ kind: z.ZodLiteral<"variable">;
722
+ name: z.ZodString;
723
+ }, z.core.$strict>]>>;
724
+ }, z.core.$strict>]>;
725
+ }, z.core.$strict>, z.ZodObject<{
726
+ op: z.ZodEnum<{
727
+ "edge.connect": "edge.connect";
728
+ "edge.disconnect": "edge.disconnect";
729
+ }>;
730
+ source: z.ZodString;
731
+ target: z.ZodString;
732
+ branch: z.ZodOptional<z.ZodString>;
733
+ }, z.core.$strict>, z.ZodObject<{
734
+ op: z.ZodLiteral<"text.edit">;
735
+ node: z.ZodString;
736
+ field: z.ZodEnum<{
737
+ code: "code";
738
+ prompt: "prompt";
739
+ }>;
740
+ oldText: z.ZodString;
741
+ newText: z.ZodString;
742
+ }, z.core.$strict>, z.ZodObject<{
743
+ op: z.ZodLiteral<"text.set">;
744
+ node: z.ZodString;
745
+ field: z.ZodEnum<{
746
+ code: "code";
747
+ prompt: "prompt";
748
+ }>;
749
+ text: z.ZodString;
750
+ }, z.core.$strict>], "op">>;
751
+ }, z.core.$strict>;
752
+ export declare const authoringReadSchema: z.ZodObject<{
753
+ revision: z.ZodOptional<z.ZodString>;
754
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
755
+ text: z.ZodOptional<z.ZodObject<{
756
+ node: z.ZodString;
757
+ field: z.ZodEnum<{
758
+ code: "code";
759
+ prompt: "prompt";
760
+ }>;
761
+ start: z.ZodDefault<z.ZodInt>;
762
+ lines: z.ZodDefault<z.ZodInt>;
763
+ }, z.core.$strict>>;
764
+ }, z.core.$strict>;
765
+ export declare const authoringCheckSchema: z.ZodObject<{
766
+ revisionId: z.ZodString;
767
+ }, z.core.$strict>;
768
+ export declare const authoringSearchSchema: z.ZodObject<{
769
+ revision: z.ZodOptional<z.ZodString>;
770
+ query: z.ZodString;
771
+ type: z.ZodOptional<z.ZodEnum<{
772
+ agent: "agent";
773
+ approval: "approval";
774
+ code: "code";
775
+ condition: "condition";
776
+ connector: "connector";
777
+ cron: "cron";
778
+ decision: "decision";
779
+ error: "error";
780
+ integration: "integration";
781
+ llm: "llm";
782
+ manual: "manual";
783
+ openapi: "openapi";
784
+ poll: "poll";
785
+ value: "value";
786
+ wait: "wait";
787
+ webhook: "webhook";
788
+ }>>;
789
+ offset: z.ZodDefault<z.ZodInt>;
790
+ limit: z.ZodDefault<z.ZodInt>;
791
+ }, z.core.$strict>;
792
+ export type AuthoringRequest = z.infer<typeof authoringRequestSchema>;
793
+ export type AuthoringEdit = z.infer<typeof authoringEditSchema>;
794
+ export type AuthoringRead = z.input<typeof authoringReadSchema>;
795
+ export type AuthoringSearch = z.input<typeof authoringSearchSchema>;
796
+ export type AuthoringSource = z.infer<typeof authoringSourceSchema>;
797
+ export declare const authoringSchemaQuery: z.ZodObject<{
798
+ type: z.ZodOptional<z.ZodEnum<{
799
+ agent: "agent";
800
+ approval: "approval";
801
+ code: "code";
802
+ condition: "condition";
803
+ connector: "connector";
804
+ cron: "cron";
805
+ decision: "decision";
806
+ error: "error";
807
+ integration: "integration";
808
+ llm: "llm";
809
+ manual: "manual";
810
+ openapi: "openapi";
811
+ poll: "poll";
812
+ value: "value";
813
+ wait: "wait";
814
+ webhook: "webhook";
815
+ }>>;
816
+ action: z.ZodOptional<z.ZodString>;
817
+ }, z.core.$strict>;
818
+ /** Transport-independent discovery of the same requests the service validates. */
819
+ export declare function authoringRequestContract(name: string): {
820
+ request: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
821
+ baseRevision: z.ZodString;
822
+ requestId: z.ZodString;
823
+ edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
824
+ op: z.ZodLiteral<"node.add">;
825
+ as: z.ZodString;
826
+ type: z.ZodEnum<{
827
+ agent: "agent";
828
+ approval: "approval";
829
+ code: "code";
830
+ condition: "condition";
831
+ connector: "connector";
832
+ cron: "cron";
833
+ decision: "decision";
834
+ error: "error";
835
+ integration: "integration";
836
+ llm: "llm";
837
+ manual: "manual";
838
+ openapi: "openapi";
839
+ poll: "poll";
840
+ value: "value";
841
+ wait: "wait";
842
+ webhook: "webhook";
843
+ }>;
844
+ name: z.ZodString;
845
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
846
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
847
+ kind: z.ZodLiteral<"output">;
848
+ node: z.ZodString;
849
+ port: z.ZodOptional<z.ZodString>;
850
+ field: z.ZodOptional<z.ZodString>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ kind: z.ZodLiteral<"variable">;
853
+ name: z.ZodString;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"value">;
856
+ value: z.ZodJSONSchema;
857
+ }, z.core.$strict>, z.ZodObject<{
858
+ kind: z.ZodLiteral<"unset">;
859
+ }, z.core.$strict>, z.ZodObject<{
860
+ kind: z.ZodLiteral<"default">;
861
+ }, z.core.$strict>, z.ZodObject<{
862
+ kind: z.ZodLiteral<"sources">;
863
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
864
+ kind: z.ZodLiteral<"output">;
865
+ node: z.ZodString;
866
+ port: z.ZodOptional<z.ZodString>;
867
+ field: z.ZodOptional<z.ZodString>;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ kind: z.ZodLiteral<"variable">;
870
+ name: z.ZodString;
871
+ }, z.core.$strict>]>>;
872
+ }, z.core.$strict>]>>>;
873
+ code: z.ZodOptional<z.ZodString>;
874
+ prompt: z.ZodOptional<z.ZodString>;
875
+ }, z.core.$strict>, z.ZodObject<{
876
+ op: z.ZodLiteral<"node.update">;
877
+ node: z.ZodString;
878
+ set: z.ZodOptional<z.ZodObject<{
879
+ name: z.ZodOptional<z.ZodString>;
880
+ description: z.ZodOptional<z.ZodString>;
881
+ icon: z.ZodOptional<z.ZodString>;
882
+ maxExecutions: z.ZodOptional<z.ZodInt>;
883
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
884
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
885
+ }, z.core.$strict>>;
886
+ clear: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
887
+ }, z.core.$strict>, z.ZodObject<{
888
+ op: z.ZodLiteral<"node.remove">;
889
+ node: z.ZodString;
890
+ }, z.core.$strict>, z.ZodObject<{
891
+ op: z.ZodLiteral<"input.set">;
892
+ node: z.ZodString;
893
+ input: z.ZodString;
894
+ source: z.ZodUnion<readonly [z.ZodObject<{
895
+ kind: z.ZodLiteral<"output">;
896
+ node: z.ZodString;
897
+ port: z.ZodOptional<z.ZodString>;
898
+ field: z.ZodOptional<z.ZodString>;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ kind: z.ZodLiteral<"variable">;
901
+ name: z.ZodString;
902
+ }, z.core.$strict>, z.ZodObject<{
903
+ kind: z.ZodLiteral<"value">;
904
+ value: z.ZodJSONSchema;
905
+ }, z.core.$strict>, z.ZodObject<{
906
+ kind: z.ZodLiteral<"unset">;
907
+ }, z.core.$strict>, z.ZodObject<{
908
+ kind: z.ZodLiteral<"default">;
909
+ }, z.core.$strict>, z.ZodObject<{
910
+ kind: z.ZodLiteral<"sources">;
911
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
912
+ kind: z.ZodLiteral<"output">;
913
+ node: z.ZodString;
914
+ port: z.ZodOptional<z.ZodString>;
915
+ field: z.ZodOptional<z.ZodString>;
916
+ }, z.core.$strict>, z.ZodObject<{
917
+ kind: z.ZodLiteral<"variable">;
918
+ name: z.ZodString;
919
+ }, z.core.$strict>]>>;
920
+ }, z.core.$strict>]>;
921
+ }, z.core.$strict>, z.ZodObject<{
922
+ op: z.ZodEnum<{
923
+ "edge.connect": "edge.connect";
924
+ "edge.disconnect": "edge.disconnect";
925
+ }>;
926
+ source: z.ZodString;
927
+ target: z.ZodString;
928
+ branch: z.ZodOptional<z.ZodString>;
929
+ }, z.core.$strict>, z.ZodObject<{
930
+ op: z.ZodLiteral<"text.edit">;
931
+ node: z.ZodString;
932
+ field: z.ZodEnum<{
933
+ code: "code";
934
+ prompt: "prompt";
935
+ }>;
936
+ oldText: z.ZodString;
937
+ newText: z.ZodString;
938
+ }, z.core.$strict>, z.ZodObject<{
939
+ op: z.ZodLiteral<"text.set">;
940
+ node: z.ZodString;
941
+ field: z.ZodEnum<{
942
+ code: "code";
943
+ prompt: "prompt";
944
+ }>;
945
+ text: z.ZodString;
946
+ }, z.core.$strict>], "op">>;
947
+ }, z.core.$strict> | z.ZodObject<{
948
+ revision: z.ZodOptional<z.ZodString>;
949
+ nodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
950
+ text: z.ZodOptional<z.ZodObject<{
951
+ node: z.ZodString;
952
+ field: z.ZodEnum<{
953
+ code: "code";
954
+ prompt: "prompt";
955
+ }>;
956
+ start: z.ZodDefault<z.ZodInt>;
957
+ lines: z.ZodDefault<z.ZodInt>;
958
+ }, z.core.$strict>>;
959
+ }, z.core.$strict> | z.ZodObject<{
960
+ revisionId: z.ZodString;
961
+ }, z.core.$strict> | z.ZodObject<{
962
+ revision: z.ZodOptional<z.ZodString>;
963
+ query: z.ZodString;
964
+ type: z.ZodOptional<z.ZodEnum<{
965
+ agent: "agent";
966
+ approval: "approval";
967
+ code: "code";
968
+ condition: "condition";
969
+ connector: "connector";
970
+ cron: "cron";
971
+ decision: "decision";
972
+ error: "error";
973
+ integration: "integration";
974
+ llm: "llm";
975
+ manual: "manual";
976
+ openapi: "openapi";
977
+ poll: "poll";
978
+ value: "value";
979
+ wait: "wait";
980
+ webhook: "webhook";
981
+ }>>;
982
+ offset: z.ZodDefault<z.ZodInt>;
983
+ limit: z.ZodDefault<z.ZodInt>;
984
+ }, z.core.$strict>>;
985
+ guidance: string;
986
+ examples: {
987
+ query: string;
988
+ type: string;
989
+ }[] | {
990
+ revisionId: string;
991
+ }[] | ({
992
+ baseRevision: string;
993
+ requestId: string;
994
+ edits: ({
995
+ op: string;
996
+ as: string;
997
+ type: string;
998
+ name: string;
999
+ code?: undefined;
1000
+ source?: undefined;
1001
+ target?: undefined;
1002
+ node?: undefined;
1003
+ set?: undefined;
1004
+ } | {
1005
+ op: string;
1006
+ as: string;
1007
+ type: string;
1008
+ name: string;
1009
+ code: string;
1010
+ source?: undefined;
1011
+ target?: undefined;
1012
+ node?: undefined;
1013
+ set?: undefined;
1014
+ } | {
1015
+ as?: undefined;
1016
+ type?: undefined;
1017
+ name?: undefined;
1018
+ code?: undefined;
1019
+ op: string;
1020
+ source: string;
1021
+ target: string;
1022
+ node?: undefined;
1023
+ set?: undefined;
1024
+ } | {
1025
+ as?: undefined;
1026
+ type?: undefined;
1027
+ name?: undefined;
1028
+ code?: undefined;
1029
+ source?: undefined;
1030
+ target?: undefined;
1031
+ op: string;
1032
+ node: string;
1033
+ set: {
1034
+ description: string;
1035
+ };
1036
+ })[];
1037
+ } | {
1038
+ baseRevision: string;
1039
+ requestId: string;
1040
+ edits: {
1041
+ op: string;
1042
+ node: string;
1043
+ field: string;
1044
+ oldText: string;
1045
+ newText: string;
1046
+ }[];
1047
+ })[] | ({
1048
+ nodes?: undefined;
1049
+ revision?: undefined;
1050
+ text?: undefined;
1051
+ } | {
1052
+ revision: string;
1053
+ nodes: string[];
1054
+ text?: undefined;
1055
+ } | {
1056
+ nodes?: undefined;
1057
+ revision: string;
1058
+ text: {
1059
+ node: string;
1060
+ field: string;
1061
+ start: number;
1062
+ lines: number;
1063
+ };
1064
+ })[];
1065
+ } | undefined;
1066
+ export declare function authoringSchema(kind?: AuthoringType): {
1067
+ type?: undefined;
1068
+ types: readonly ["manual", "webhook", "cron", "error", "poll", "integration", "code", "connector", "agent", "llm", "decision", "openapi", "condition", "value", "wait", "approval"];
1069
+ request: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
1070
+ baseRevision: z.ZodString;
1071
+ requestId: z.ZodString;
1072
+ edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1073
+ op: z.ZodLiteral<"node.add">;
1074
+ as: z.ZodString;
1075
+ type: z.ZodEnum<{
1076
+ agent: "agent";
1077
+ approval: "approval";
1078
+ code: "code";
1079
+ condition: "condition";
1080
+ connector: "connector";
1081
+ cron: "cron";
1082
+ decision: "decision";
1083
+ error: "error";
1084
+ integration: "integration";
1085
+ llm: "llm";
1086
+ manual: "manual";
1087
+ openapi: "openapi";
1088
+ poll: "poll";
1089
+ value: "value";
1090
+ wait: "wait";
1091
+ webhook: "webhook";
1092
+ }>;
1093
+ name: z.ZodString;
1094
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1095
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1096
+ kind: z.ZodLiteral<"output">;
1097
+ node: z.ZodString;
1098
+ port: z.ZodOptional<z.ZodString>;
1099
+ field: z.ZodOptional<z.ZodString>;
1100
+ }, z.core.$strict>, z.ZodObject<{
1101
+ kind: z.ZodLiteral<"variable">;
1102
+ name: z.ZodString;
1103
+ }, z.core.$strict>, z.ZodObject<{
1104
+ kind: z.ZodLiteral<"value">;
1105
+ value: z.ZodJSONSchema;
1106
+ }, z.core.$strict>, z.ZodObject<{
1107
+ kind: z.ZodLiteral<"unset">;
1108
+ }, z.core.$strict>, z.ZodObject<{
1109
+ kind: z.ZodLiteral<"default">;
1110
+ }, z.core.$strict>, z.ZodObject<{
1111
+ kind: z.ZodLiteral<"sources">;
1112
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1113
+ kind: z.ZodLiteral<"output">;
1114
+ node: z.ZodString;
1115
+ port: z.ZodOptional<z.ZodString>;
1116
+ field: z.ZodOptional<z.ZodString>;
1117
+ }, z.core.$strict>, z.ZodObject<{
1118
+ kind: z.ZodLiteral<"variable">;
1119
+ name: z.ZodString;
1120
+ }, z.core.$strict>]>>;
1121
+ }, z.core.$strict>]>>>;
1122
+ code: z.ZodOptional<z.ZodString>;
1123
+ prompt: z.ZodOptional<z.ZodString>;
1124
+ }, z.core.$strict>, z.ZodObject<{
1125
+ op: z.ZodLiteral<"node.update">;
1126
+ node: z.ZodString;
1127
+ set: z.ZodOptional<z.ZodObject<{
1128
+ name: z.ZodOptional<z.ZodString>;
1129
+ description: z.ZodOptional<z.ZodString>;
1130
+ icon: z.ZodOptional<z.ZodString>;
1131
+ maxExecutions: z.ZodOptional<z.ZodInt>;
1132
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1133
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1134
+ }, z.core.$strict>>;
1135
+ clear: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
1136
+ }, z.core.$strict>, z.ZodObject<{
1137
+ op: z.ZodLiteral<"node.remove">;
1138
+ node: z.ZodString;
1139
+ }, z.core.$strict>, z.ZodObject<{
1140
+ op: z.ZodLiteral<"input.set">;
1141
+ node: z.ZodString;
1142
+ input: z.ZodString;
1143
+ source: z.ZodUnion<readonly [z.ZodObject<{
1144
+ kind: z.ZodLiteral<"output">;
1145
+ node: z.ZodString;
1146
+ port: z.ZodOptional<z.ZodString>;
1147
+ field: z.ZodOptional<z.ZodString>;
1148
+ }, z.core.$strict>, z.ZodObject<{
1149
+ kind: z.ZodLiteral<"variable">;
1150
+ name: z.ZodString;
1151
+ }, z.core.$strict>, z.ZodObject<{
1152
+ kind: z.ZodLiteral<"value">;
1153
+ value: z.ZodJSONSchema;
1154
+ }, z.core.$strict>, z.ZodObject<{
1155
+ kind: z.ZodLiteral<"unset">;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ kind: z.ZodLiteral<"default">;
1158
+ }, z.core.$strict>, z.ZodObject<{
1159
+ kind: z.ZodLiteral<"sources">;
1160
+ sources: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1161
+ kind: z.ZodLiteral<"output">;
1162
+ node: z.ZodString;
1163
+ port: z.ZodOptional<z.ZodString>;
1164
+ field: z.ZodOptional<z.ZodString>;
1165
+ }, z.core.$strict>, z.ZodObject<{
1166
+ kind: z.ZodLiteral<"variable">;
1167
+ name: z.ZodString;
1168
+ }, z.core.$strict>]>>;
1169
+ }, z.core.$strict>]>;
1170
+ }, z.core.$strict>, z.ZodObject<{
1171
+ op: z.ZodEnum<{
1172
+ "edge.connect": "edge.connect";
1173
+ "edge.disconnect": "edge.disconnect";
1174
+ }>;
1175
+ source: z.ZodString;
1176
+ target: z.ZodString;
1177
+ branch: z.ZodOptional<z.ZodString>;
1178
+ }, z.core.$strict>, z.ZodObject<{
1179
+ op: z.ZodLiteral<"text.edit">;
1180
+ node: z.ZodString;
1181
+ field: z.ZodEnum<{
1182
+ code: "code";
1183
+ prompt: "prompt";
1184
+ }>;
1185
+ oldText: z.ZodString;
1186
+ newText: z.ZodString;
1187
+ }, z.core.$strict>, z.ZodObject<{
1188
+ op: z.ZodLiteral<"text.set">;
1189
+ node: z.ZodString;
1190
+ field: z.ZodEnum<{
1191
+ code: "code";
1192
+ prompt: "prompt";
1193
+ }>;
1194
+ text: z.ZodString;
1195
+ }, z.core.$strict>], "op">>;
1196
+ }, z.core.$strict>>;
1197
+ guidance: string;
1198
+ inputSources?: undefined;
1199
+ extensibleInputs?: undefined;
1200
+ example?: undefined;
1201
+ configuration?: undefined;
1202
+ texts?: undefined;
1203
+ } | {
1204
+ types?: undefined;
1205
+ request?: undefined;
1206
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
1207
+ inputSources: string[];
1208
+ extensibleInputs: boolean;
1209
+ guidance: string;
1210
+ example: {
1211
+ op: string;
1212
+ as: string;
1213
+ type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "manual" | "openapi" | "poll" | "value" | "wait" | "webhook";
1214
+ name: string;
1215
+ };
1216
+ configuration: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
1217
+ texts: string[];
1218
+ };
1219
+ export declare const authoringDiagnosticSchema: z.ZodObject<{
1220
+ code: z.ZodString;
1221
+ message: z.ZodString;
1222
+ nodes: z.ZodArray<z.ZodString>;
1223
+ field: z.ZodOptional<z.ZodString>;
1224
+ line: z.ZodOptional<z.ZodNumber>;
1225
+ column: z.ZodOptional<z.ZodNumber>;
1226
+ }, z.core.$strip>;
1227
+ export declare const authoringCheckResponse: z.ZodObject<{
1228
+ flowId: z.ZodString;
1229
+ revisionId: z.ZodString;
1230
+ valid: z.ZodBoolean;
1231
+ diagnostics: z.ZodArray<z.ZodObject<{
1232
+ code: z.ZodString;
1233
+ message: z.ZodString;
1234
+ nodes: z.ZodArray<z.ZodString>;
1235
+ field: z.ZodOptional<z.ZodString>;
1236
+ line: z.ZodOptional<z.ZodNumber>;
1237
+ column: z.ZodOptional<z.ZodNumber>;
1238
+ }, z.core.$strip>>;
1239
+ version: z.ZodLiteral<1>;
1240
+ }, z.core.$strip>;
1241
+ export declare const authoringEditResponse: z.ZodObject<{
1242
+ flowId: z.ZodString;
1243
+ saved: z.ZodLiteral<true>;
1244
+ revision: z.ZodString;
1245
+ nodes: z.ZodRecord<z.ZodString, z.ZodString>;
1246
+ changes: z.ZodArray<z.ZodObject<{
1247
+ index: z.ZodInt;
1248
+ op: z.ZodString;
1249
+ node: z.ZodOptional<z.ZodString>;
1250
+ }, z.core.$strip>>;
1251
+ validation: z.ZodObject<{
1252
+ status: z.ZodEnum<{
1253
+ invalid: "invalid";
1254
+ unavailable: "unavailable";
1255
+ valid: "valid";
1256
+ }>;
1257
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
+ code: z.ZodString;
1259
+ message: z.ZodString;
1260
+ nodes: z.ZodArray<z.ZodString>;
1261
+ field: z.ZodOptional<z.ZodString>;
1262
+ line: z.ZodOptional<z.ZodNumber>;
1263
+ column: z.ZodOptional<z.ZodNumber>;
1264
+ }, z.core.$strip>>>;
1265
+ }, z.core.$strip>;
1266
+ version: z.ZodLiteral<1>;
1267
+ }, z.core.$strip>;
1268
+ export declare const authoringReadResponse: z.ZodObject<{
1269
+ flowId: z.ZodString;
1270
+ revision: z.ZodString;
1271
+ data: z.ZodObject<{
1272
+ nodes: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>>;
1273
+ edges: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
1274
+ text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1275
+ }, z.core.$strip>;
1276
+ version: z.ZodLiteral<1>;
1277
+ }, z.core.$strip>;
1278
+ export declare const authoringSearchResponse: z.ZodObject<{
1279
+ flowId: z.ZodString;
1280
+ revision: z.ZodString;
1281
+ data: z.ZodObject<{
1282
+ matches: z.ZodArray<z.ZodObject<{
1283
+ node: z.ZodString;
1284
+ field: z.ZodString;
1285
+ line: z.ZodOptional<z.ZodInt>;
1286
+ excerpt: z.ZodString;
1287
+ }, z.core.$strip>>;
1288
+ total: z.ZodInt;
1289
+ nextOffset: z.ZodOptional<z.ZodInt>;
1290
+ }, z.core.$strip>;
1291
+ version: z.ZodLiteral<1>;
1292
+ }, z.core.$strip>;
1293
+ export {};