@marktoflow/core 2.0.0-alpha.7 → 2.0.1

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 (120) hide show
  1. package/README.md +24 -220
  2. package/dist/built-in-operations.d.ts +150 -0
  3. package/dist/built-in-operations.d.ts.map +1 -0
  4. package/dist/built-in-operations.js +799 -0
  5. package/dist/built-in-operations.js.map +1 -0
  6. package/dist/core-tools.d.ts +39 -0
  7. package/dist/core-tools.d.ts.map +1 -0
  8. package/dist/core-tools.js +58 -0
  9. package/dist/core-tools.js.map +1 -0
  10. package/dist/credentials.d.ts +60 -1
  11. package/dist/credentials.d.ts.map +1 -1
  12. package/dist/credentials.js +229 -4
  13. package/dist/credentials.js.map +1 -1
  14. package/dist/engine.d.ts +144 -3
  15. package/dist/engine.d.ts.map +1 -1
  16. package/dist/engine.js +1385 -49
  17. package/dist/engine.js.map +1 -1
  18. package/dist/file-operations.d.ts +86 -0
  19. package/dist/file-operations.d.ts.map +1 -0
  20. package/dist/file-operations.js +363 -0
  21. package/dist/file-operations.js.map +1 -0
  22. package/dist/index.d.ts +16 -5
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +46 -4
  25. package/dist/index.js.map +1 -1
  26. package/dist/logging.d.ts +40 -2
  27. package/dist/logging.d.ts.map +1 -1
  28. package/dist/logging.js +166 -13
  29. package/dist/logging.js.map +1 -1
  30. package/dist/models.d.ts +1931 -203
  31. package/dist/models.d.ts.map +1 -1
  32. package/dist/models.js +303 -13
  33. package/dist/models.js.map +1 -1
  34. package/dist/nunjucks-filters.d.ts +271 -0
  35. package/dist/nunjucks-filters.d.ts.map +1 -0
  36. package/dist/nunjucks-filters.js +648 -0
  37. package/dist/nunjucks-filters.js.map +1 -0
  38. package/dist/oauth-manager.d.ts +128 -0
  39. package/dist/oauth-manager.d.ts.map +1 -0
  40. package/dist/oauth-manager.js +291 -0
  41. package/dist/oauth-manager.js.map +1 -0
  42. package/dist/oauth-refresh.d.ts +37 -0
  43. package/dist/oauth-refresh.d.ts.map +1 -0
  44. package/dist/oauth-refresh.js +76 -0
  45. package/dist/oauth-refresh.js.map +1 -0
  46. package/dist/parser.d.ts.map +1 -1
  47. package/dist/parser.js +291 -10
  48. package/dist/parser.js.map +1 -1
  49. package/dist/permissions.d.ts +49 -0
  50. package/dist/permissions.d.ts.map +1 -0
  51. package/dist/permissions.js +286 -0
  52. package/dist/permissions.js.map +1 -0
  53. package/dist/prompt-loader.d.ts +53 -0
  54. package/dist/prompt-loader.d.ts.map +1 -0
  55. package/dist/prompt-loader.js +205 -0
  56. package/dist/prompt-loader.js.map +1 -0
  57. package/dist/scheduler.d.ts +22 -3
  58. package/dist/scheduler.d.ts.map +1 -1
  59. package/dist/scheduler.js +72 -73
  60. package/dist/scheduler.js.map +1 -1
  61. package/dist/script-executor.d.ts +65 -0
  62. package/dist/script-executor.d.ts.map +1 -0
  63. package/dist/script-executor.js +261 -0
  64. package/dist/script-executor.js.map +1 -0
  65. package/dist/sdk-registry.d.ts +20 -2
  66. package/dist/sdk-registry.d.ts.map +1 -1
  67. package/dist/sdk-registry.js +100 -15
  68. package/dist/sdk-registry.js.map +1 -1
  69. package/dist/secret-providers/index.d.ts +12 -0
  70. package/dist/secret-providers/index.d.ts.map +1 -0
  71. package/dist/secret-providers/index.js +11 -0
  72. package/dist/secret-providers/index.js.map +1 -0
  73. package/dist/secret-providers/providers/aws.d.ts +32 -0
  74. package/dist/secret-providers/providers/aws.d.ts.map +1 -0
  75. package/dist/secret-providers/providers/aws.js +118 -0
  76. package/dist/secret-providers/providers/aws.js.map +1 -0
  77. package/dist/secret-providers/providers/azure.d.ts +40 -0
  78. package/dist/secret-providers/providers/azure.d.ts.map +1 -0
  79. package/dist/secret-providers/providers/azure.js +170 -0
  80. package/dist/secret-providers/providers/azure.js.map +1 -0
  81. package/dist/secret-providers/providers/env.d.ts +26 -0
  82. package/dist/secret-providers/providers/env.d.ts.map +1 -0
  83. package/dist/secret-providers/providers/env.js +59 -0
  84. package/dist/secret-providers/providers/env.js.map +1 -0
  85. package/dist/secret-providers/providers/vault.d.ts +39 -0
  86. package/dist/secret-providers/providers/vault.d.ts.map +1 -0
  87. package/dist/secret-providers/providers/vault.js +180 -0
  88. package/dist/secret-providers/providers/vault.js.map +1 -0
  89. package/dist/secret-providers/secret-manager.d.ts +72 -0
  90. package/dist/secret-providers/secret-manager.d.ts.map +1 -0
  91. package/dist/secret-providers/secret-manager.js +226 -0
  92. package/dist/secret-providers/secret-manager.js.map +1 -0
  93. package/dist/secret-providers/types.d.ts +105 -0
  94. package/dist/secret-providers/types.d.ts.map +1 -0
  95. package/dist/secret-providers/types.js +8 -0
  96. package/dist/secret-providers/types.js.map +1 -0
  97. package/dist/security.d.ts +1 -0
  98. package/dist/security.d.ts.map +1 -1
  99. package/dist/security.js +4 -0
  100. package/dist/security.js.map +1 -1
  101. package/dist/state.d.ts.map +1 -1
  102. package/dist/state.js +16 -9
  103. package/dist/state.js.map +1 -1
  104. package/dist/template-engine.d.ts +51 -0
  105. package/dist/template-engine.d.ts.map +1 -0
  106. package/dist/template-engine.js +227 -0
  107. package/dist/template-engine.js.map +1 -0
  108. package/dist/templates.d.ts +10 -0
  109. package/dist/templates.d.ts.map +1 -1
  110. package/dist/templates.js +21 -17
  111. package/dist/templates.js.map +1 -1
  112. package/dist/tools/mcp-tool.js +9 -9
  113. package/dist/tools/mcp-tool.js.map +1 -1
  114. package/dist/trigger-manager.js +1 -1
  115. package/dist/trigger-manager.js.map +1 -1
  116. package/dist/workflow-tools.d.ts +102 -0
  117. package/dist/workflow-tools.d.ts.map +1 -0
  118. package/dist/workflow-tools.js +130 -0
  119. package/dist/workflow-tools.js.map +1 -0
  120. package/package.json +24 -6
package/dist/models.d.ts CHANGED
@@ -5,6 +5,23 @@
5
5
  * Uses Zod for runtime validation.
6
6
  */
7
7
  import { z } from 'zod';
8
+ export declare const StepType: {
9
+ readonly ACTION: "action";
10
+ readonly WORKFLOW: "workflow";
11
+ readonly IF: "if";
12
+ readonly SWITCH: "switch";
13
+ readonly FOR_EACH: "for_each";
14
+ readonly WHILE: "while";
15
+ readonly MAP: "map";
16
+ readonly FILTER: "filter";
17
+ readonly REDUCE: "reduce";
18
+ readonly PARALLEL: "parallel";
19
+ readonly TRY: "try";
20
+ readonly SCRIPT: "script";
21
+ readonly WAIT: "wait";
22
+ readonly MERGE: "merge";
23
+ };
24
+ export type StepType = (typeof StepType)[keyof typeof StepType];
8
25
  export declare const StepStatus: {
9
26
  readonly PENDING: "pending";
10
27
  readonly RUNNING: "running";
@@ -28,6 +45,58 @@ export declare const TriggerType: {
28
45
  readonly EVENT: "event";
29
46
  };
30
47
  export type TriggerType = (typeof TriggerType)[keyof typeof TriggerType];
48
+ export declare const PermissionsSchema: z.ZodOptional<z.ZodObject<{
49
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
50
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
51
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
52
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
54
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ network: z.ZodOptional<z.ZodBoolean>;
57
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ read?: boolean | string[] | undefined;
61
+ write?: boolean | string[] | undefined;
62
+ execute?: boolean | string[] | undefined;
63
+ allowedCommands?: string[] | undefined;
64
+ blockedCommands?: string[] | undefined;
65
+ allowedDirectories?: string[] | undefined;
66
+ blockedPaths?: string[] | undefined;
67
+ network?: boolean | undefined;
68
+ allowedHosts?: string[] | undefined;
69
+ maxFileSize?: number | undefined;
70
+ }, {
71
+ read?: boolean | string[] | undefined;
72
+ write?: boolean | string[] | undefined;
73
+ execute?: boolean | string[] | undefined;
74
+ allowedCommands?: string[] | undefined;
75
+ blockedCommands?: string[] | undefined;
76
+ allowedDirectories?: string[] | undefined;
77
+ blockedPaths?: string[] | undefined;
78
+ network?: boolean | undefined;
79
+ allowedHosts?: string[] | undefined;
80
+ maxFileSize?: number | undefined;
81
+ }>>;
82
+ export type Permissions = z.infer<typeof PermissionsSchema>;
83
+ export declare const SubagentConfigSchema: z.ZodObject<{
84
+ model: z.ZodOptional<z.ZodString>;
85
+ maxTurns: z.ZodOptional<z.ZodNumber>;
86
+ systemPrompt: z.ZodOptional<z.ZodString>;
87
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ model?: string | undefined;
90
+ maxTurns?: number | undefined;
91
+ systemPrompt?: string | undefined;
92
+ tools?: string[] | undefined;
93
+ }, {
94
+ model?: string | undefined;
95
+ maxTurns?: number | undefined;
96
+ systemPrompt?: string | undefined;
97
+ tools?: string[] | undefined;
98
+ }>;
99
+ export type SubagentConfig = z.infer<typeof SubagentConfigSchema>;
31
100
  export declare const WorkflowMetadataSchema: z.ZodObject<{
32
101
  id: z.ZodString;
33
102
  name: z.ZodString;
@@ -59,34 +128,1381 @@ export declare const ToolConfigSchema: z.ZodObject<{
59
128
  options?: Record<string, unknown> | undefined;
60
129
  auth?: Record<string, string> | undefined;
61
130
  }, {
62
- sdk: string;
63
- options?: Record<string, unknown> | undefined;
64
- auth?: Record<string, string> | undefined;
131
+ sdk: string;
132
+ options?: Record<string, unknown> | undefined;
133
+ auth?: Record<string, string> | undefined;
134
+ }>;
135
+ export declare const WorkflowSecretProviderSchema: z.ZodObject<{
136
+ type: z.ZodEnum<["vault", "aws", "azure", "env"]>;
137
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
138
+ cacheEnabled: z.ZodOptional<z.ZodBoolean>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ type: "vault" | "aws" | "azure" | "env";
141
+ config: Record<string, unknown>;
142
+ cacheEnabled?: boolean | undefined;
143
+ }, {
144
+ type: "vault" | "aws" | "azure" | "env";
145
+ config: Record<string, unknown>;
146
+ cacheEnabled?: boolean | undefined;
147
+ }>;
148
+ export declare const WorkflowSecretsConfigSchema: z.ZodObject<{
149
+ providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
150
+ type: z.ZodEnum<["vault", "aws", "azure", "env"]>;
151
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
152
+ cacheEnabled: z.ZodOptional<z.ZodBoolean>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "vault" | "aws" | "azure" | "env";
155
+ config: Record<string, unknown>;
156
+ cacheEnabled?: boolean | undefined;
157
+ }, {
158
+ type: "vault" | "aws" | "azure" | "env";
159
+ config: Record<string, unknown>;
160
+ cacheEnabled?: boolean | undefined;
161
+ }>, "many">>;
162
+ defaultCacheTTL: z.ZodOptional<z.ZodNumber>;
163
+ referencePrefix: z.ZodOptional<z.ZodString>;
164
+ throwOnNotFound: z.ZodOptional<z.ZodBoolean>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ providers?: {
167
+ type: "vault" | "aws" | "azure" | "env";
168
+ config: Record<string, unknown>;
169
+ cacheEnabled?: boolean | undefined;
170
+ }[] | undefined;
171
+ defaultCacheTTL?: number | undefined;
172
+ referencePrefix?: string | undefined;
173
+ throwOnNotFound?: boolean | undefined;
174
+ }, {
175
+ providers?: {
176
+ type: "vault" | "aws" | "azure" | "env";
177
+ config: Record<string, unknown>;
178
+ cacheEnabled?: boolean | undefined;
179
+ }[] | undefined;
180
+ defaultCacheTTL?: number | undefined;
181
+ referencePrefix?: string | undefined;
182
+ throwOnNotFound?: boolean | undefined;
183
+ }>;
184
+ export declare const ErrorHandlingSchema: z.ZodObject<{
185
+ action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
186
+ maxRetries: z.ZodDefault<z.ZodNumber>;
187
+ retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
188
+ fallbackAction: z.ZodOptional<z.ZodString>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ action: "continue" | "stop" | "rollback";
191
+ maxRetries: number;
192
+ retryDelaySeconds: number;
193
+ fallbackAction?: string | undefined;
194
+ }, {
195
+ action?: "continue" | "stop" | "rollback" | undefined;
196
+ maxRetries?: number | undefined;
197
+ retryDelaySeconds?: number | undefined;
198
+ fallbackAction?: string | undefined;
199
+ }>;
200
+ declare const ActionStepSchema: z.ZodObject<{
201
+ id: z.ZodString;
202
+ name: z.ZodOptional<z.ZodString>;
203
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
204
+ timeout: z.ZodOptional<z.ZodNumber>;
205
+ outputVariable: z.ZodOptional<z.ZodString>;
206
+ model: z.ZodOptional<z.ZodString>;
207
+ agent: z.ZodOptional<z.ZodString>;
208
+ permissions: z.ZodOptional<z.ZodObject<{
209
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
210
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
211
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
212
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
214
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
+ network: z.ZodOptional<z.ZodBoolean>;
217
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
218
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ read?: boolean | string[] | undefined;
221
+ write?: boolean | string[] | undefined;
222
+ execute?: boolean | string[] | undefined;
223
+ allowedCommands?: string[] | undefined;
224
+ blockedCommands?: string[] | undefined;
225
+ allowedDirectories?: string[] | undefined;
226
+ blockedPaths?: string[] | undefined;
227
+ network?: boolean | undefined;
228
+ allowedHosts?: string[] | undefined;
229
+ maxFileSize?: number | undefined;
230
+ }, {
231
+ read?: boolean | string[] | undefined;
232
+ write?: boolean | string[] | undefined;
233
+ execute?: boolean | string[] | undefined;
234
+ allowedCommands?: string[] | undefined;
235
+ blockedCommands?: string[] | undefined;
236
+ allowedDirectories?: string[] | undefined;
237
+ blockedPaths?: string[] | undefined;
238
+ network?: boolean | undefined;
239
+ allowedHosts?: string[] | undefined;
240
+ maxFileSize?: number | undefined;
241
+ }>>;
242
+ } & {
243
+ type: z.ZodLiteral<"action">;
244
+ action: z.ZodString;
245
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
+ errorHandling: z.ZodOptional<z.ZodObject<{
247
+ action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
248
+ maxRetries: z.ZodDefault<z.ZodNumber>;
249
+ retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
250
+ fallbackAction: z.ZodOptional<z.ZodString>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ action: "continue" | "stop" | "rollback";
253
+ maxRetries: number;
254
+ retryDelaySeconds: number;
255
+ fallbackAction?: string | undefined;
256
+ }, {
257
+ action?: "continue" | "stop" | "rollback" | undefined;
258
+ maxRetries?: number | undefined;
259
+ retryDelaySeconds?: number | undefined;
260
+ fallbackAction?: string | undefined;
261
+ }>>;
262
+ prompt: z.ZodOptional<z.ZodString>;
263
+ promptInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ action: string;
266
+ type: "action";
267
+ id: string;
268
+ inputs: Record<string, unknown>;
269
+ model?: string | undefined;
270
+ name?: string | undefined;
271
+ conditions?: string[] | undefined;
272
+ timeout?: number | undefined;
273
+ outputVariable?: string | undefined;
274
+ agent?: string | undefined;
275
+ permissions?: {
276
+ read?: boolean | string[] | undefined;
277
+ write?: boolean | string[] | undefined;
278
+ execute?: boolean | string[] | undefined;
279
+ allowedCommands?: string[] | undefined;
280
+ blockedCommands?: string[] | undefined;
281
+ allowedDirectories?: string[] | undefined;
282
+ blockedPaths?: string[] | undefined;
283
+ network?: boolean | undefined;
284
+ allowedHosts?: string[] | undefined;
285
+ maxFileSize?: number | undefined;
286
+ } | undefined;
287
+ errorHandling?: {
288
+ action: "continue" | "stop" | "rollback";
289
+ maxRetries: number;
290
+ retryDelaySeconds: number;
291
+ fallbackAction?: string | undefined;
292
+ } | undefined;
293
+ prompt?: string | undefined;
294
+ promptInputs?: Record<string, unknown> | undefined;
295
+ }, {
296
+ action: string;
297
+ type: "action";
298
+ id: string;
299
+ model?: string | undefined;
300
+ name?: string | undefined;
301
+ conditions?: string[] | undefined;
302
+ timeout?: number | undefined;
303
+ outputVariable?: string | undefined;
304
+ agent?: string | undefined;
305
+ permissions?: {
306
+ read?: boolean | string[] | undefined;
307
+ write?: boolean | string[] | undefined;
308
+ execute?: boolean | string[] | undefined;
309
+ allowedCommands?: string[] | undefined;
310
+ blockedCommands?: string[] | undefined;
311
+ allowedDirectories?: string[] | undefined;
312
+ blockedPaths?: string[] | undefined;
313
+ network?: boolean | undefined;
314
+ allowedHosts?: string[] | undefined;
315
+ maxFileSize?: number | undefined;
316
+ } | undefined;
317
+ inputs?: Record<string, unknown> | undefined;
318
+ errorHandling?: {
319
+ action?: "continue" | "stop" | "rollback" | undefined;
320
+ maxRetries?: number | undefined;
321
+ retryDelaySeconds?: number | undefined;
322
+ fallbackAction?: string | undefined;
323
+ } | undefined;
324
+ prompt?: string | undefined;
325
+ promptInputs?: Record<string, unknown> | undefined;
326
+ }>;
327
+ declare const SubWorkflowStepSchema: z.ZodObject<{
328
+ id: z.ZodString;
329
+ name: z.ZodOptional<z.ZodString>;
330
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
331
+ timeout: z.ZodOptional<z.ZodNumber>;
332
+ outputVariable: z.ZodOptional<z.ZodString>;
333
+ model: z.ZodOptional<z.ZodString>;
334
+ agent: z.ZodOptional<z.ZodString>;
335
+ permissions: z.ZodOptional<z.ZodObject<{
336
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
337
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
338
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
339
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
340
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
343
+ network: z.ZodOptional<z.ZodBoolean>;
344
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
345
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ read?: boolean | string[] | undefined;
348
+ write?: boolean | string[] | undefined;
349
+ execute?: boolean | string[] | undefined;
350
+ allowedCommands?: string[] | undefined;
351
+ blockedCommands?: string[] | undefined;
352
+ allowedDirectories?: string[] | undefined;
353
+ blockedPaths?: string[] | undefined;
354
+ network?: boolean | undefined;
355
+ allowedHosts?: string[] | undefined;
356
+ maxFileSize?: number | undefined;
357
+ }, {
358
+ read?: boolean | string[] | undefined;
359
+ write?: boolean | string[] | undefined;
360
+ execute?: boolean | string[] | undefined;
361
+ allowedCommands?: string[] | undefined;
362
+ blockedCommands?: string[] | undefined;
363
+ allowedDirectories?: string[] | undefined;
364
+ blockedPaths?: string[] | undefined;
365
+ network?: boolean | undefined;
366
+ allowedHosts?: string[] | undefined;
367
+ maxFileSize?: number | undefined;
368
+ }>>;
369
+ } & {
370
+ type: z.ZodLiteral<"workflow">;
371
+ workflow: z.ZodString;
372
+ inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
373
+ errorHandling: z.ZodOptional<z.ZodObject<{
374
+ action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
375
+ maxRetries: z.ZodDefault<z.ZodNumber>;
376
+ retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
377
+ fallbackAction: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ action: "continue" | "stop" | "rollback";
380
+ maxRetries: number;
381
+ retryDelaySeconds: number;
382
+ fallbackAction?: string | undefined;
383
+ }, {
384
+ action?: "continue" | "stop" | "rollback" | undefined;
385
+ maxRetries?: number | undefined;
386
+ retryDelaySeconds?: number | undefined;
387
+ fallbackAction?: string | undefined;
388
+ }>>;
389
+ useSubagent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
390
+ subagentConfig: z.ZodOptional<z.ZodObject<{
391
+ model: z.ZodOptional<z.ZodString>;
392
+ maxTurns: z.ZodOptional<z.ZodNumber>;
393
+ systemPrompt: z.ZodOptional<z.ZodString>;
394
+ tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ model?: string | undefined;
397
+ maxTurns?: number | undefined;
398
+ systemPrompt?: string | undefined;
399
+ tools?: string[] | undefined;
400
+ }, {
401
+ model?: string | undefined;
402
+ maxTurns?: number | undefined;
403
+ systemPrompt?: string | undefined;
404
+ tools?: string[] | undefined;
405
+ }>>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ workflow: string;
408
+ type: "workflow";
409
+ id: string;
410
+ inputs: Record<string, unknown>;
411
+ useSubagent: boolean;
412
+ model?: string | undefined;
413
+ name?: string | undefined;
414
+ conditions?: string[] | undefined;
415
+ timeout?: number | undefined;
416
+ outputVariable?: string | undefined;
417
+ agent?: string | undefined;
418
+ permissions?: {
419
+ read?: boolean | string[] | undefined;
420
+ write?: boolean | string[] | undefined;
421
+ execute?: boolean | string[] | undefined;
422
+ allowedCommands?: string[] | undefined;
423
+ blockedCommands?: string[] | undefined;
424
+ allowedDirectories?: string[] | undefined;
425
+ blockedPaths?: string[] | undefined;
426
+ network?: boolean | undefined;
427
+ allowedHosts?: string[] | undefined;
428
+ maxFileSize?: number | undefined;
429
+ } | undefined;
430
+ errorHandling?: {
431
+ action: "continue" | "stop" | "rollback";
432
+ maxRetries: number;
433
+ retryDelaySeconds: number;
434
+ fallbackAction?: string | undefined;
435
+ } | undefined;
436
+ subagentConfig?: {
437
+ model?: string | undefined;
438
+ maxTurns?: number | undefined;
439
+ systemPrompt?: string | undefined;
440
+ tools?: string[] | undefined;
441
+ } | undefined;
442
+ }, {
443
+ workflow: string;
444
+ type: "workflow";
445
+ id: string;
446
+ model?: string | undefined;
447
+ name?: string | undefined;
448
+ conditions?: string[] | undefined;
449
+ timeout?: number | undefined;
450
+ outputVariable?: string | undefined;
451
+ agent?: string | undefined;
452
+ permissions?: {
453
+ read?: boolean | string[] | undefined;
454
+ write?: boolean | string[] | undefined;
455
+ execute?: boolean | string[] | undefined;
456
+ allowedCommands?: string[] | undefined;
457
+ blockedCommands?: string[] | undefined;
458
+ allowedDirectories?: string[] | undefined;
459
+ blockedPaths?: string[] | undefined;
460
+ network?: boolean | undefined;
461
+ allowedHosts?: string[] | undefined;
462
+ maxFileSize?: number | undefined;
463
+ } | undefined;
464
+ inputs?: Record<string, unknown> | undefined;
465
+ errorHandling?: {
466
+ action?: "continue" | "stop" | "rollback" | undefined;
467
+ maxRetries?: number | undefined;
468
+ retryDelaySeconds?: number | undefined;
469
+ fallbackAction?: string | undefined;
470
+ } | undefined;
471
+ useSubagent?: boolean | undefined;
472
+ subagentConfig?: {
473
+ model?: string | undefined;
474
+ maxTurns?: number | undefined;
475
+ systemPrompt?: string | undefined;
476
+ tools?: string[] | undefined;
477
+ } | undefined;
478
+ }>;
479
+ declare const IfStepSchema: z.ZodObject<{
480
+ id: z.ZodString;
481
+ name: z.ZodOptional<z.ZodString>;
482
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
483
+ timeout: z.ZodOptional<z.ZodNumber>;
484
+ outputVariable: z.ZodOptional<z.ZodString>;
485
+ model: z.ZodOptional<z.ZodString>;
486
+ agent: z.ZodOptional<z.ZodString>;
487
+ permissions: z.ZodOptional<z.ZodObject<{
488
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
489
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
490
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
491
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
492
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
494
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
495
+ network: z.ZodOptional<z.ZodBoolean>;
496
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
497
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ read?: boolean | string[] | undefined;
500
+ write?: boolean | string[] | undefined;
501
+ execute?: boolean | string[] | undefined;
502
+ allowedCommands?: string[] | undefined;
503
+ blockedCommands?: string[] | undefined;
504
+ allowedDirectories?: string[] | undefined;
505
+ blockedPaths?: string[] | undefined;
506
+ network?: boolean | undefined;
507
+ allowedHosts?: string[] | undefined;
508
+ maxFileSize?: number | undefined;
509
+ }, {
510
+ read?: boolean | string[] | undefined;
511
+ write?: boolean | string[] | undefined;
512
+ execute?: boolean | string[] | undefined;
513
+ allowedCommands?: string[] | undefined;
514
+ blockedCommands?: string[] | undefined;
515
+ allowedDirectories?: string[] | undefined;
516
+ blockedPaths?: string[] | undefined;
517
+ network?: boolean | undefined;
518
+ allowedHosts?: string[] | undefined;
519
+ maxFileSize?: number | undefined;
520
+ }>>;
521
+ } & {
522
+ type: z.ZodLiteral<"if">;
523
+ condition: z.ZodString;
524
+ then: z.ZodOptional<z.ZodTypeAny>;
525
+ else: z.ZodOptional<z.ZodTypeAny>;
526
+ steps: z.ZodOptional<z.ZodTypeAny>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ type: "if";
529
+ id: string;
530
+ condition: string;
531
+ model?: string | undefined;
532
+ name?: string | undefined;
533
+ conditions?: string[] | undefined;
534
+ timeout?: number | undefined;
535
+ outputVariable?: string | undefined;
536
+ agent?: string | undefined;
537
+ permissions?: {
538
+ read?: boolean | string[] | undefined;
539
+ write?: boolean | string[] | undefined;
540
+ execute?: boolean | string[] | undefined;
541
+ allowedCommands?: string[] | undefined;
542
+ blockedCommands?: string[] | undefined;
543
+ allowedDirectories?: string[] | undefined;
544
+ blockedPaths?: string[] | undefined;
545
+ network?: boolean | undefined;
546
+ allowedHosts?: string[] | undefined;
547
+ maxFileSize?: number | undefined;
548
+ } | undefined;
549
+ then?: any;
550
+ else?: any;
551
+ steps?: any;
552
+ }, {
553
+ type: "if";
554
+ id: string;
555
+ condition: string;
556
+ model?: string | undefined;
557
+ name?: string | undefined;
558
+ conditions?: string[] | undefined;
559
+ timeout?: number | undefined;
560
+ outputVariable?: string | undefined;
561
+ agent?: string | undefined;
562
+ permissions?: {
563
+ read?: boolean | string[] | undefined;
564
+ write?: boolean | string[] | undefined;
565
+ execute?: boolean | string[] | undefined;
566
+ allowedCommands?: string[] | undefined;
567
+ blockedCommands?: string[] | undefined;
568
+ allowedDirectories?: string[] | undefined;
569
+ blockedPaths?: string[] | undefined;
570
+ network?: boolean | undefined;
571
+ allowedHosts?: string[] | undefined;
572
+ maxFileSize?: number | undefined;
573
+ } | undefined;
574
+ then?: any;
575
+ else?: any;
576
+ steps?: any;
577
+ }>;
578
+ declare const SwitchStepSchema: z.ZodObject<{
579
+ id: z.ZodString;
580
+ name: z.ZodOptional<z.ZodString>;
581
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
582
+ timeout: z.ZodOptional<z.ZodNumber>;
583
+ outputVariable: z.ZodOptional<z.ZodString>;
584
+ model: z.ZodOptional<z.ZodString>;
585
+ agent: z.ZodOptional<z.ZodString>;
586
+ permissions: z.ZodOptional<z.ZodObject<{
587
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
588
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
589
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
590
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
591
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
592
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
593
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
594
+ network: z.ZodOptional<z.ZodBoolean>;
595
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
596
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
597
+ }, "strip", z.ZodTypeAny, {
598
+ read?: boolean | string[] | undefined;
599
+ write?: boolean | string[] | undefined;
600
+ execute?: boolean | string[] | undefined;
601
+ allowedCommands?: string[] | undefined;
602
+ blockedCommands?: string[] | undefined;
603
+ allowedDirectories?: string[] | undefined;
604
+ blockedPaths?: string[] | undefined;
605
+ network?: boolean | undefined;
606
+ allowedHosts?: string[] | undefined;
607
+ maxFileSize?: number | undefined;
608
+ }, {
609
+ read?: boolean | string[] | undefined;
610
+ write?: boolean | string[] | undefined;
611
+ execute?: boolean | string[] | undefined;
612
+ allowedCommands?: string[] | undefined;
613
+ blockedCommands?: string[] | undefined;
614
+ allowedDirectories?: string[] | undefined;
615
+ blockedPaths?: string[] | undefined;
616
+ network?: boolean | undefined;
617
+ allowedHosts?: string[] | undefined;
618
+ maxFileSize?: number | undefined;
619
+ }>>;
620
+ } & {
621
+ type: z.ZodLiteral<"switch">;
622
+ expression: z.ZodString;
623
+ cases: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
624
+ default: z.ZodOptional<z.ZodTypeAny>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ type: "switch";
627
+ id: string;
628
+ expression: string;
629
+ cases: Record<string, any>;
630
+ model?: string | undefined;
631
+ name?: string | undefined;
632
+ conditions?: string[] | undefined;
633
+ timeout?: number | undefined;
634
+ outputVariable?: string | undefined;
635
+ agent?: string | undefined;
636
+ permissions?: {
637
+ read?: boolean | string[] | undefined;
638
+ write?: boolean | string[] | undefined;
639
+ execute?: boolean | string[] | undefined;
640
+ allowedCommands?: string[] | undefined;
641
+ blockedCommands?: string[] | undefined;
642
+ allowedDirectories?: string[] | undefined;
643
+ blockedPaths?: string[] | undefined;
644
+ network?: boolean | undefined;
645
+ allowedHosts?: string[] | undefined;
646
+ maxFileSize?: number | undefined;
647
+ } | undefined;
648
+ default?: any;
649
+ }, {
650
+ type: "switch";
651
+ id: string;
652
+ expression: string;
653
+ cases: Record<string, any>;
654
+ model?: string | undefined;
655
+ name?: string | undefined;
656
+ conditions?: string[] | undefined;
657
+ timeout?: number | undefined;
658
+ outputVariable?: string | undefined;
659
+ agent?: string | undefined;
660
+ permissions?: {
661
+ read?: boolean | string[] | undefined;
662
+ write?: boolean | string[] | undefined;
663
+ execute?: boolean | string[] | undefined;
664
+ allowedCommands?: string[] | undefined;
665
+ blockedCommands?: string[] | undefined;
666
+ allowedDirectories?: string[] | undefined;
667
+ blockedPaths?: string[] | undefined;
668
+ network?: boolean | undefined;
669
+ allowedHosts?: string[] | undefined;
670
+ maxFileSize?: number | undefined;
671
+ } | undefined;
672
+ default?: any;
673
+ }>;
674
+ declare const ForEachStepSchema: z.ZodObject<{
675
+ id: z.ZodString;
676
+ name: z.ZodOptional<z.ZodString>;
677
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
678
+ timeout: z.ZodOptional<z.ZodNumber>;
679
+ outputVariable: z.ZodOptional<z.ZodString>;
680
+ model: z.ZodOptional<z.ZodString>;
681
+ agent: z.ZodOptional<z.ZodString>;
682
+ permissions: z.ZodOptional<z.ZodObject<{
683
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
684
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
685
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
686
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
687
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
688
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
689
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ network: z.ZodOptional<z.ZodBoolean>;
691
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ read?: boolean | string[] | undefined;
695
+ write?: boolean | string[] | undefined;
696
+ execute?: boolean | string[] | undefined;
697
+ allowedCommands?: string[] | undefined;
698
+ blockedCommands?: string[] | undefined;
699
+ allowedDirectories?: string[] | undefined;
700
+ blockedPaths?: string[] | undefined;
701
+ network?: boolean | undefined;
702
+ allowedHosts?: string[] | undefined;
703
+ maxFileSize?: number | undefined;
704
+ }, {
705
+ read?: boolean | string[] | undefined;
706
+ write?: boolean | string[] | undefined;
707
+ execute?: boolean | string[] | undefined;
708
+ allowedCommands?: string[] | undefined;
709
+ blockedCommands?: string[] | undefined;
710
+ allowedDirectories?: string[] | undefined;
711
+ blockedPaths?: string[] | undefined;
712
+ network?: boolean | undefined;
713
+ allowedHosts?: string[] | undefined;
714
+ maxFileSize?: number | undefined;
715
+ }>>;
716
+ } & {
717
+ type: z.ZodLiteral<"for_each">;
718
+ items: z.ZodString;
719
+ itemVariable: z.ZodDefault<z.ZodString>;
720
+ indexVariable: z.ZodOptional<z.ZodString>;
721
+ steps: z.ZodTypeAny;
722
+ errorHandling: z.ZodOptional<z.ZodObject<{
723
+ action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
724
+ maxRetries: z.ZodDefault<z.ZodNumber>;
725
+ retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
726
+ fallbackAction: z.ZodOptional<z.ZodString>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ action: "continue" | "stop" | "rollback";
729
+ maxRetries: number;
730
+ retryDelaySeconds: number;
731
+ fallbackAction?: string | undefined;
732
+ }, {
733
+ action?: "continue" | "stop" | "rollback" | undefined;
734
+ maxRetries?: number | undefined;
735
+ retryDelaySeconds?: number | undefined;
736
+ fallbackAction?: string | undefined;
737
+ }>>;
738
+ /** Process items in batches of this size. When set, {{ batch }} contains the current batch. */
739
+ batchSize: z.ZodOptional<z.ZodNumber>;
740
+ /** Pause between batches in milliseconds (useful for rate limiting) */
741
+ pauseBetweenBatches: z.ZodOptional<z.ZodNumber>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ type: "for_each";
744
+ id: string;
745
+ items: string;
746
+ itemVariable: string;
747
+ model?: string | undefined;
748
+ name?: string | undefined;
749
+ conditions?: string[] | undefined;
750
+ timeout?: number | undefined;
751
+ outputVariable?: string | undefined;
752
+ agent?: string | undefined;
753
+ permissions?: {
754
+ read?: boolean | string[] | undefined;
755
+ write?: boolean | string[] | undefined;
756
+ execute?: boolean | string[] | undefined;
757
+ allowedCommands?: string[] | undefined;
758
+ blockedCommands?: string[] | undefined;
759
+ allowedDirectories?: string[] | undefined;
760
+ blockedPaths?: string[] | undefined;
761
+ network?: boolean | undefined;
762
+ allowedHosts?: string[] | undefined;
763
+ maxFileSize?: number | undefined;
764
+ } | undefined;
765
+ errorHandling?: {
766
+ action: "continue" | "stop" | "rollback";
767
+ maxRetries: number;
768
+ retryDelaySeconds: number;
769
+ fallbackAction?: string | undefined;
770
+ } | undefined;
771
+ steps?: any;
772
+ indexVariable?: string | undefined;
773
+ batchSize?: number | undefined;
774
+ pauseBetweenBatches?: number | undefined;
775
+ }, {
776
+ type: "for_each";
777
+ id: string;
778
+ items: string;
779
+ model?: string | undefined;
780
+ name?: string | undefined;
781
+ conditions?: string[] | undefined;
782
+ timeout?: number | undefined;
783
+ outputVariable?: string | undefined;
784
+ agent?: string | undefined;
785
+ permissions?: {
786
+ read?: boolean | string[] | undefined;
787
+ write?: boolean | string[] | undefined;
788
+ execute?: boolean | string[] | undefined;
789
+ allowedCommands?: string[] | undefined;
790
+ blockedCommands?: string[] | undefined;
791
+ allowedDirectories?: string[] | undefined;
792
+ blockedPaths?: string[] | undefined;
793
+ network?: boolean | undefined;
794
+ allowedHosts?: string[] | undefined;
795
+ maxFileSize?: number | undefined;
796
+ } | undefined;
797
+ errorHandling?: {
798
+ action?: "continue" | "stop" | "rollback" | undefined;
799
+ maxRetries?: number | undefined;
800
+ retryDelaySeconds?: number | undefined;
801
+ fallbackAction?: string | undefined;
802
+ } | undefined;
803
+ steps?: any;
804
+ itemVariable?: string | undefined;
805
+ indexVariable?: string | undefined;
806
+ batchSize?: number | undefined;
807
+ pauseBetweenBatches?: number | undefined;
808
+ }>;
809
+ declare const WhileStepSchema: z.ZodObject<{
810
+ id: z.ZodString;
811
+ name: z.ZodOptional<z.ZodString>;
812
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
813
+ timeout: z.ZodOptional<z.ZodNumber>;
814
+ outputVariable: z.ZodOptional<z.ZodString>;
815
+ model: z.ZodOptional<z.ZodString>;
816
+ agent: z.ZodOptional<z.ZodString>;
817
+ permissions: z.ZodOptional<z.ZodObject<{
818
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
819
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
820
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
821
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
822
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
823
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
824
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
825
+ network: z.ZodOptional<z.ZodBoolean>;
826
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
827
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ read?: boolean | string[] | undefined;
830
+ write?: boolean | string[] | undefined;
831
+ execute?: boolean | string[] | undefined;
832
+ allowedCommands?: string[] | undefined;
833
+ blockedCommands?: string[] | undefined;
834
+ allowedDirectories?: string[] | undefined;
835
+ blockedPaths?: string[] | undefined;
836
+ network?: boolean | undefined;
837
+ allowedHosts?: string[] | undefined;
838
+ maxFileSize?: number | undefined;
839
+ }, {
840
+ read?: boolean | string[] | undefined;
841
+ write?: boolean | string[] | undefined;
842
+ execute?: boolean | string[] | undefined;
843
+ allowedCommands?: string[] | undefined;
844
+ blockedCommands?: string[] | undefined;
845
+ allowedDirectories?: string[] | undefined;
846
+ blockedPaths?: string[] | undefined;
847
+ network?: boolean | undefined;
848
+ allowedHosts?: string[] | undefined;
849
+ maxFileSize?: number | undefined;
850
+ }>>;
851
+ } & {
852
+ type: z.ZodLiteral<"while">;
853
+ condition: z.ZodString;
854
+ maxIterations: z.ZodDefault<z.ZodNumber>;
855
+ steps: z.ZodTypeAny;
856
+ errorHandling: z.ZodOptional<z.ZodObject<{
857
+ action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
858
+ maxRetries: z.ZodDefault<z.ZodNumber>;
859
+ retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
860
+ fallbackAction: z.ZodOptional<z.ZodString>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ action: "continue" | "stop" | "rollback";
863
+ maxRetries: number;
864
+ retryDelaySeconds: number;
865
+ fallbackAction?: string | undefined;
866
+ }, {
867
+ action?: "continue" | "stop" | "rollback" | undefined;
868
+ maxRetries?: number | undefined;
869
+ retryDelaySeconds?: number | undefined;
870
+ fallbackAction?: string | undefined;
871
+ }>>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ type: "while";
874
+ id: string;
875
+ condition: string;
876
+ maxIterations: number;
877
+ model?: string | undefined;
878
+ name?: string | undefined;
879
+ conditions?: string[] | undefined;
880
+ timeout?: number | undefined;
881
+ outputVariable?: string | undefined;
882
+ agent?: string | undefined;
883
+ permissions?: {
884
+ read?: boolean | string[] | undefined;
885
+ write?: boolean | string[] | undefined;
886
+ execute?: boolean | string[] | undefined;
887
+ allowedCommands?: string[] | undefined;
888
+ blockedCommands?: string[] | undefined;
889
+ allowedDirectories?: string[] | undefined;
890
+ blockedPaths?: string[] | undefined;
891
+ network?: boolean | undefined;
892
+ allowedHosts?: string[] | undefined;
893
+ maxFileSize?: number | undefined;
894
+ } | undefined;
895
+ errorHandling?: {
896
+ action: "continue" | "stop" | "rollback";
897
+ maxRetries: number;
898
+ retryDelaySeconds: number;
899
+ fallbackAction?: string | undefined;
900
+ } | undefined;
901
+ steps?: any;
902
+ }, {
903
+ type: "while";
904
+ id: string;
905
+ condition: string;
906
+ model?: string | undefined;
907
+ name?: string | undefined;
908
+ conditions?: string[] | undefined;
909
+ timeout?: number | undefined;
910
+ outputVariable?: string | undefined;
911
+ agent?: string | undefined;
912
+ permissions?: {
913
+ read?: boolean | string[] | undefined;
914
+ write?: boolean | string[] | undefined;
915
+ execute?: boolean | string[] | undefined;
916
+ allowedCommands?: string[] | undefined;
917
+ blockedCommands?: string[] | undefined;
918
+ allowedDirectories?: string[] | undefined;
919
+ blockedPaths?: string[] | undefined;
920
+ network?: boolean | undefined;
921
+ allowedHosts?: string[] | undefined;
922
+ maxFileSize?: number | undefined;
923
+ } | undefined;
924
+ errorHandling?: {
925
+ action?: "continue" | "stop" | "rollback" | undefined;
926
+ maxRetries?: number | undefined;
927
+ retryDelaySeconds?: number | undefined;
928
+ fallbackAction?: string | undefined;
929
+ } | undefined;
930
+ steps?: any;
931
+ maxIterations?: number | undefined;
932
+ }>;
933
+ declare const MapStepSchema: z.ZodObject<{
934
+ id: z.ZodString;
935
+ name: z.ZodOptional<z.ZodString>;
936
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
937
+ timeout: z.ZodOptional<z.ZodNumber>;
938
+ outputVariable: z.ZodOptional<z.ZodString>;
939
+ model: z.ZodOptional<z.ZodString>;
940
+ agent: z.ZodOptional<z.ZodString>;
941
+ permissions: z.ZodOptional<z.ZodObject<{
942
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
943
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
944
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
945
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
946
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
947
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
948
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
949
+ network: z.ZodOptional<z.ZodBoolean>;
950
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
951
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
952
+ }, "strip", z.ZodTypeAny, {
953
+ read?: boolean | string[] | undefined;
954
+ write?: boolean | string[] | undefined;
955
+ execute?: boolean | string[] | undefined;
956
+ allowedCommands?: string[] | undefined;
957
+ blockedCommands?: string[] | undefined;
958
+ allowedDirectories?: string[] | undefined;
959
+ blockedPaths?: string[] | undefined;
960
+ network?: boolean | undefined;
961
+ allowedHosts?: string[] | undefined;
962
+ maxFileSize?: number | undefined;
963
+ }, {
964
+ read?: boolean | string[] | undefined;
965
+ write?: boolean | string[] | undefined;
966
+ execute?: boolean | string[] | undefined;
967
+ allowedCommands?: string[] | undefined;
968
+ blockedCommands?: string[] | undefined;
969
+ allowedDirectories?: string[] | undefined;
970
+ blockedPaths?: string[] | undefined;
971
+ network?: boolean | undefined;
972
+ allowedHosts?: string[] | undefined;
973
+ maxFileSize?: number | undefined;
974
+ }>>;
975
+ } & {
976
+ type: z.ZodLiteral<"map">;
977
+ items: z.ZodString;
978
+ itemVariable: z.ZodDefault<z.ZodString>;
979
+ expression: z.ZodString;
980
+ }, "strip", z.ZodTypeAny, {
981
+ type: "map";
982
+ id: string;
983
+ expression: string;
984
+ items: string;
985
+ itemVariable: string;
986
+ model?: string | undefined;
987
+ name?: string | undefined;
988
+ conditions?: string[] | undefined;
989
+ timeout?: number | undefined;
990
+ outputVariable?: string | undefined;
991
+ agent?: string | undefined;
992
+ permissions?: {
993
+ read?: boolean | string[] | undefined;
994
+ write?: boolean | string[] | undefined;
995
+ execute?: boolean | string[] | undefined;
996
+ allowedCommands?: string[] | undefined;
997
+ blockedCommands?: string[] | undefined;
998
+ allowedDirectories?: string[] | undefined;
999
+ blockedPaths?: string[] | undefined;
1000
+ network?: boolean | undefined;
1001
+ allowedHosts?: string[] | undefined;
1002
+ maxFileSize?: number | undefined;
1003
+ } | undefined;
1004
+ }, {
1005
+ type: "map";
1006
+ id: string;
1007
+ expression: string;
1008
+ items: string;
1009
+ model?: string | undefined;
1010
+ name?: string | undefined;
1011
+ conditions?: string[] | undefined;
1012
+ timeout?: number | undefined;
1013
+ outputVariable?: string | undefined;
1014
+ agent?: string | undefined;
1015
+ permissions?: {
1016
+ read?: boolean | string[] | undefined;
1017
+ write?: boolean | string[] | undefined;
1018
+ execute?: boolean | string[] | undefined;
1019
+ allowedCommands?: string[] | undefined;
1020
+ blockedCommands?: string[] | undefined;
1021
+ allowedDirectories?: string[] | undefined;
1022
+ blockedPaths?: string[] | undefined;
1023
+ network?: boolean | undefined;
1024
+ allowedHosts?: string[] | undefined;
1025
+ maxFileSize?: number | undefined;
1026
+ } | undefined;
1027
+ itemVariable?: string | undefined;
1028
+ }>;
1029
+ declare const FilterStepSchema: z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ name: z.ZodOptional<z.ZodString>;
1032
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1033
+ timeout: z.ZodOptional<z.ZodNumber>;
1034
+ outputVariable: z.ZodOptional<z.ZodString>;
1035
+ model: z.ZodOptional<z.ZodString>;
1036
+ agent: z.ZodOptional<z.ZodString>;
1037
+ permissions: z.ZodOptional<z.ZodObject<{
1038
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1039
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1040
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1041
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1042
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1043
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1044
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1045
+ network: z.ZodOptional<z.ZodBoolean>;
1046
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1047
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ read?: boolean | string[] | undefined;
1050
+ write?: boolean | string[] | undefined;
1051
+ execute?: boolean | string[] | undefined;
1052
+ allowedCommands?: string[] | undefined;
1053
+ blockedCommands?: string[] | undefined;
1054
+ allowedDirectories?: string[] | undefined;
1055
+ blockedPaths?: string[] | undefined;
1056
+ network?: boolean | undefined;
1057
+ allowedHosts?: string[] | undefined;
1058
+ maxFileSize?: number | undefined;
1059
+ }, {
1060
+ read?: boolean | string[] | undefined;
1061
+ write?: boolean | string[] | undefined;
1062
+ execute?: boolean | string[] | undefined;
1063
+ allowedCommands?: string[] | undefined;
1064
+ blockedCommands?: string[] | undefined;
1065
+ allowedDirectories?: string[] | undefined;
1066
+ blockedPaths?: string[] | undefined;
1067
+ network?: boolean | undefined;
1068
+ allowedHosts?: string[] | undefined;
1069
+ maxFileSize?: number | undefined;
1070
+ }>>;
1071
+ } & {
1072
+ type: z.ZodLiteral<"filter">;
1073
+ items: z.ZodString;
1074
+ itemVariable: z.ZodDefault<z.ZodString>;
1075
+ condition: z.ZodString;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ type: "filter";
1078
+ id: string;
1079
+ condition: string;
1080
+ items: string;
1081
+ itemVariable: string;
1082
+ model?: string | undefined;
1083
+ name?: string | undefined;
1084
+ conditions?: string[] | undefined;
1085
+ timeout?: number | undefined;
1086
+ outputVariable?: string | undefined;
1087
+ agent?: string | undefined;
1088
+ permissions?: {
1089
+ read?: boolean | string[] | undefined;
1090
+ write?: boolean | string[] | undefined;
1091
+ execute?: boolean | string[] | undefined;
1092
+ allowedCommands?: string[] | undefined;
1093
+ blockedCommands?: string[] | undefined;
1094
+ allowedDirectories?: string[] | undefined;
1095
+ blockedPaths?: string[] | undefined;
1096
+ network?: boolean | undefined;
1097
+ allowedHosts?: string[] | undefined;
1098
+ maxFileSize?: number | undefined;
1099
+ } | undefined;
1100
+ }, {
1101
+ type: "filter";
1102
+ id: string;
1103
+ condition: string;
1104
+ items: string;
1105
+ model?: string | undefined;
1106
+ name?: string | undefined;
1107
+ conditions?: string[] | undefined;
1108
+ timeout?: number | undefined;
1109
+ outputVariable?: string | undefined;
1110
+ agent?: string | undefined;
1111
+ permissions?: {
1112
+ read?: boolean | string[] | undefined;
1113
+ write?: boolean | string[] | undefined;
1114
+ execute?: boolean | string[] | undefined;
1115
+ allowedCommands?: string[] | undefined;
1116
+ blockedCommands?: string[] | undefined;
1117
+ allowedDirectories?: string[] | undefined;
1118
+ blockedPaths?: string[] | undefined;
1119
+ network?: boolean | undefined;
1120
+ allowedHosts?: string[] | undefined;
1121
+ maxFileSize?: number | undefined;
1122
+ } | undefined;
1123
+ itemVariable?: string | undefined;
1124
+ }>;
1125
+ declare const ReduceStepSchema: z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ name: z.ZodOptional<z.ZodString>;
1128
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1129
+ timeout: z.ZodOptional<z.ZodNumber>;
1130
+ outputVariable: z.ZodOptional<z.ZodString>;
1131
+ model: z.ZodOptional<z.ZodString>;
1132
+ agent: z.ZodOptional<z.ZodString>;
1133
+ permissions: z.ZodOptional<z.ZodObject<{
1134
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1135
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1136
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1137
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1138
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1139
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1140
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1141
+ network: z.ZodOptional<z.ZodBoolean>;
1142
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1143
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ read?: boolean | string[] | undefined;
1146
+ write?: boolean | string[] | undefined;
1147
+ execute?: boolean | string[] | undefined;
1148
+ allowedCommands?: string[] | undefined;
1149
+ blockedCommands?: string[] | undefined;
1150
+ allowedDirectories?: string[] | undefined;
1151
+ blockedPaths?: string[] | undefined;
1152
+ network?: boolean | undefined;
1153
+ allowedHosts?: string[] | undefined;
1154
+ maxFileSize?: number | undefined;
1155
+ }, {
1156
+ read?: boolean | string[] | undefined;
1157
+ write?: boolean | string[] | undefined;
1158
+ execute?: boolean | string[] | undefined;
1159
+ allowedCommands?: string[] | undefined;
1160
+ blockedCommands?: string[] | undefined;
1161
+ allowedDirectories?: string[] | undefined;
1162
+ blockedPaths?: string[] | undefined;
1163
+ network?: boolean | undefined;
1164
+ allowedHosts?: string[] | undefined;
1165
+ maxFileSize?: number | undefined;
1166
+ }>>;
1167
+ } & {
1168
+ type: z.ZodLiteral<"reduce">;
1169
+ items: z.ZodString;
1170
+ itemVariable: z.ZodDefault<z.ZodString>;
1171
+ accumulatorVariable: z.ZodDefault<z.ZodString>;
1172
+ initialValue: z.ZodOptional<z.ZodUnknown>;
1173
+ expression: z.ZodString;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ type: "reduce";
1176
+ id: string;
1177
+ expression: string;
1178
+ items: string;
1179
+ itemVariable: string;
1180
+ accumulatorVariable: string;
1181
+ model?: string | undefined;
1182
+ name?: string | undefined;
1183
+ conditions?: string[] | undefined;
1184
+ timeout?: number | undefined;
1185
+ outputVariable?: string | undefined;
1186
+ agent?: string | undefined;
1187
+ permissions?: {
1188
+ read?: boolean | string[] | undefined;
1189
+ write?: boolean | string[] | undefined;
1190
+ execute?: boolean | string[] | undefined;
1191
+ allowedCommands?: string[] | undefined;
1192
+ blockedCommands?: string[] | undefined;
1193
+ allowedDirectories?: string[] | undefined;
1194
+ blockedPaths?: string[] | undefined;
1195
+ network?: boolean | undefined;
1196
+ allowedHosts?: string[] | undefined;
1197
+ maxFileSize?: number | undefined;
1198
+ } | undefined;
1199
+ initialValue?: unknown;
1200
+ }, {
1201
+ type: "reduce";
1202
+ id: string;
1203
+ expression: string;
1204
+ items: string;
1205
+ model?: string | undefined;
1206
+ name?: string | undefined;
1207
+ conditions?: string[] | undefined;
1208
+ timeout?: number | undefined;
1209
+ outputVariable?: string | undefined;
1210
+ agent?: string | undefined;
1211
+ permissions?: {
1212
+ read?: boolean | string[] | undefined;
1213
+ write?: boolean | string[] | undefined;
1214
+ execute?: boolean | string[] | undefined;
1215
+ allowedCommands?: string[] | undefined;
1216
+ blockedCommands?: string[] | undefined;
1217
+ allowedDirectories?: string[] | undefined;
1218
+ blockedPaths?: string[] | undefined;
1219
+ network?: boolean | undefined;
1220
+ allowedHosts?: string[] | undefined;
1221
+ maxFileSize?: number | undefined;
1222
+ } | undefined;
1223
+ itemVariable?: string | undefined;
1224
+ accumulatorVariable?: string | undefined;
1225
+ initialValue?: unknown;
1226
+ }>;
1227
+ declare const ParallelBranchSchema: z.ZodObject<{
1228
+ id: z.ZodString;
1229
+ name: z.ZodOptional<z.ZodString>;
1230
+ steps: z.ZodTypeAny;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ id: string;
1233
+ name?: string | undefined;
1234
+ steps?: any;
1235
+ }, {
1236
+ id: string;
1237
+ name?: string | undefined;
1238
+ steps?: any;
1239
+ }>;
1240
+ declare const ParallelStepSchema: z.ZodObject<{
1241
+ id: z.ZodString;
1242
+ name: z.ZodOptional<z.ZodString>;
1243
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1244
+ timeout: z.ZodOptional<z.ZodNumber>;
1245
+ outputVariable: z.ZodOptional<z.ZodString>;
1246
+ model: z.ZodOptional<z.ZodString>;
1247
+ agent: z.ZodOptional<z.ZodString>;
1248
+ permissions: z.ZodOptional<z.ZodObject<{
1249
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1250
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1251
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1252
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1253
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1254
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1255
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1256
+ network: z.ZodOptional<z.ZodBoolean>;
1257
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1258
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ read?: boolean | string[] | undefined;
1261
+ write?: boolean | string[] | undefined;
1262
+ execute?: boolean | string[] | undefined;
1263
+ allowedCommands?: string[] | undefined;
1264
+ blockedCommands?: string[] | undefined;
1265
+ allowedDirectories?: string[] | undefined;
1266
+ blockedPaths?: string[] | undefined;
1267
+ network?: boolean | undefined;
1268
+ allowedHosts?: string[] | undefined;
1269
+ maxFileSize?: number | undefined;
1270
+ }, {
1271
+ read?: boolean | string[] | undefined;
1272
+ write?: boolean | string[] | undefined;
1273
+ execute?: boolean | string[] | undefined;
1274
+ allowedCommands?: string[] | undefined;
1275
+ blockedCommands?: string[] | undefined;
1276
+ allowedDirectories?: string[] | undefined;
1277
+ blockedPaths?: string[] | undefined;
1278
+ network?: boolean | undefined;
1279
+ allowedHosts?: string[] | undefined;
1280
+ maxFileSize?: number | undefined;
1281
+ }>>;
1282
+ } & {
1283
+ type: z.ZodLiteral<"parallel">;
1284
+ branches: z.ZodArray<z.ZodObject<{
1285
+ id: z.ZodString;
1286
+ name: z.ZodOptional<z.ZodString>;
1287
+ steps: z.ZodTypeAny;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ id: string;
1290
+ name?: string | undefined;
1291
+ steps?: any;
1292
+ }, {
1293
+ id: string;
1294
+ name?: string | undefined;
1295
+ steps?: any;
1296
+ }>, "many">;
1297
+ maxConcurrent: z.ZodOptional<z.ZodNumber>;
1298
+ onError: z.ZodDefault<z.ZodEnum<["stop", "continue"]>>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ type: "parallel";
1301
+ id: string;
1302
+ branches: {
1303
+ id: string;
1304
+ name?: string | undefined;
1305
+ steps?: any;
1306
+ }[];
1307
+ onError: "continue" | "stop";
1308
+ model?: string | undefined;
1309
+ name?: string | undefined;
1310
+ conditions?: string[] | undefined;
1311
+ timeout?: number | undefined;
1312
+ outputVariable?: string | undefined;
1313
+ agent?: string | undefined;
1314
+ permissions?: {
1315
+ read?: boolean | string[] | undefined;
1316
+ write?: boolean | string[] | undefined;
1317
+ execute?: boolean | string[] | undefined;
1318
+ allowedCommands?: string[] | undefined;
1319
+ blockedCommands?: string[] | undefined;
1320
+ allowedDirectories?: string[] | undefined;
1321
+ blockedPaths?: string[] | undefined;
1322
+ network?: boolean | undefined;
1323
+ allowedHosts?: string[] | undefined;
1324
+ maxFileSize?: number | undefined;
1325
+ } | undefined;
1326
+ maxConcurrent?: number | undefined;
1327
+ }, {
1328
+ type: "parallel";
1329
+ id: string;
1330
+ branches: {
1331
+ id: string;
1332
+ name?: string | undefined;
1333
+ steps?: any;
1334
+ }[];
1335
+ model?: string | undefined;
1336
+ name?: string | undefined;
1337
+ conditions?: string[] | undefined;
1338
+ timeout?: number | undefined;
1339
+ outputVariable?: string | undefined;
1340
+ agent?: string | undefined;
1341
+ permissions?: {
1342
+ read?: boolean | string[] | undefined;
1343
+ write?: boolean | string[] | undefined;
1344
+ execute?: boolean | string[] | undefined;
1345
+ allowedCommands?: string[] | undefined;
1346
+ blockedCommands?: string[] | undefined;
1347
+ allowedDirectories?: string[] | undefined;
1348
+ blockedPaths?: string[] | undefined;
1349
+ network?: boolean | undefined;
1350
+ allowedHosts?: string[] | undefined;
1351
+ maxFileSize?: number | undefined;
1352
+ } | undefined;
1353
+ maxConcurrent?: number | undefined;
1354
+ onError?: "continue" | "stop" | undefined;
65
1355
  }>;
66
- export declare const ErrorHandlingSchema: z.ZodObject<{
67
- action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
68
- maxRetries: z.ZodDefault<z.ZodNumber>;
69
- retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
70
- fallbackAction: z.ZodOptional<z.ZodString>;
1356
+ declare const TryStepSchema: z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ name: z.ZodOptional<z.ZodString>;
1359
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1360
+ timeout: z.ZodOptional<z.ZodNumber>;
1361
+ outputVariable: z.ZodOptional<z.ZodString>;
1362
+ model: z.ZodOptional<z.ZodString>;
1363
+ agent: z.ZodOptional<z.ZodString>;
1364
+ permissions: z.ZodOptional<z.ZodObject<{
1365
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1366
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1367
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1368
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1369
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1370
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1371
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1372
+ network: z.ZodOptional<z.ZodBoolean>;
1373
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1374
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ read?: boolean | string[] | undefined;
1377
+ write?: boolean | string[] | undefined;
1378
+ execute?: boolean | string[] | undefined;
1379
+ allowedCommands?: string[] | undefined;
1380
+ blockedCommands?: string[] | undefined;
1381
+ allowedDirectories?: string[] | undefined;
1382
+ blockedPaths?: string[] | undefined;
1383
+ network?: boolean | undefined;
1384
+ allowedHosts?: string[] | undefined;
1385
+ maxFileSize?: number | undefined;
1386
+ }, {
1387
+ read?: boolean | string[] | undefined;
1388
+ write?: boolean | string[] | undefined;
1389
+ execute?: boolean | string[] | undefined;
1390
+ allowedCommands?: string[] | undefined;
1391
+ blockedCommands?: string[] | undefined;
1392
+ allowedDirectories?: string[] | undefined;
1393
+ blockedPaths?: string[] | undefined;
1394
+ network?: boolean | undefined;
1395
+ allowedHosts?: string[] | undefined;
1396
+ maxFileSize?: number | undefined;
1397
+ }>>;
1398
+ } & {
1399
+ type: z.ZodLiteral<"try">;
1400
+ try: z.ZodTypeAny;
1401
+ catch: z.ZodOptional<z.ZodTypeAny>;
1402
+ finally: z.ZodOptional<z.ZodTypeAny>;
71
1403
  }, "strip", z.ZodTypeAny, {
72
- action: "continue" | "stop" | "rollback";
73
- maxRetries: number;
74
- retryDelaySeconds: number;
75
- fallbackAction?: string | undefined;
1404
+ type: "try";
1405
+ id: string;
1406
+ try?: any;
1407
+ model?: string | undefined;
1408
+ name?: string | undefined;
1409
+ conditions?: string[] | undefined;
1410
+ timeout?: number | undefined;
1411
+ outputVariable?: string | undefined;
1412
+ agent?: string | undefined;
1413
+ permissions?: {
1414
+ read?: boolean | string[] | undefined;
1415
+ write?: boolean | string[] | undefined;
1416
+ execute?: boolean | string[] | undefined;
1417
+ allowedCommands?: string[] | undefined;
1418
+ blockedCommands?: string[] | undefined;
1419
+ allowedDirectories?: string[] | undefined;
1420
+ blockedPaths?: string[] | undefined;
1421
+ network?: boolean | undefined;
1422
+ allowedHosts?: string[] | undefined;
1423
+ maxFileSize?: number | undefined;
1424
+ } | undefined;
1425
+ catch?: any;
1426
+ finally?: any;
76
1427
  }, {
77
- action?: "continue" | "stop" | "rollback" | undefined;
78
- maxRetries?: number | undefined;
79
- retryDelaySeconds?: number | undefined;
80
- fallbackAction?: string | undefined;
1428
+ type: "try";
1429
+ id: string;
1430
+ try?: any;
1431
+ model?: string | undefined;
1432
+ name?: string | undefined;
1433
+ conditions?: string[] | undefined;
1434
+ timeout?: number | undefined;
1435
+ outputVariable?: string | undefined;
1436
+ agent?: string | undefined;
1437
+ permissions?: {
1438
+ read?: boolean | string[] | undefined;
1439
+ write?: boolean | string[] | undefined;
1440
+ execute?: boolean | string[] | undefined;
1441
+ allowedCommands?: string[] | undefined;
1442
+ blockedCommands?: string[] | undefined;
1443
+ allowedDirectories?: string[] | undefined;
1444
+ blockedPaths?: string[] | undefined;
1445
+ network?: boolean | undefined;
1446
+ allowedHosts?: string[] | undefined;
1447
+ maxFileSize?: number | undefined;
1448
+ } | undefined;
1449
+ catch?: any;
1450
+ finally?: any;
81
1451
  }>;
82
- export declare const WorkflowStepSchema: z.ZodEffects<z.ZodObject<{
1452
+ declare const ScriptStepSchema: z.ZodObject<{
83
1453
  id: z.ZodString;
84
1454
  name: z.ZodOptional<z.ZodString>;
85
- action: z.ZodOptional<z.ZodString>;
86
- workflow: z.ZodOptional<z.ZodString>;
87
- inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
88
- outputVariable: z.ZodOptional<z.ZodString>;
89
1455
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1456
+ timeout: z.ZodOptional<z.ZodNumber>;
1457
+ outputVariable: z.ZodOptional<z.ZodString>;
1458
+ model: z.ZodOptional<z.ZodString>;
1459
+ agent: z.ZodOptional<z.ZodString>;
1460
+ permissions: z.ZodOptional<z.ZodObject<{
1461
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1462
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1463
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1464
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1465
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1466
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1467
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1468
+ network: z.ZodOptional<z.ZodBoolean>;
1469
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1470
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ read?: boolean | string[] | undefined;
1473
+ write?: boolean | string[] | undefined;
1474
+ execute?: boolean | string[] | undefined;
1475
+ allowedCommands?: string[] | undefined;
1476
+ blockedCommands?: string[] | undefined;
1477
+ allowedDirectories?: string[] | undefined;
1478
+ blockedPaths?: string[] | undefined;
1479
+ network?: boolean | undefined;
1480
+ allowedHosts?: string[] | undefined;
1481
+ maxFileSize?: number | undefined;
1482
+ }, {
1483
+ read?: boolean | string[] | undefined;
1484
+ write?: boolean | string[] | undefined;
1485
+ execute?: boolean | string[] | undefined;
1486
+ allowedCommands?: string[] | undefined;
1487
+ blockedCommands?: string[] | undefined;
1488
+ allowedDirectories?: string[] | undefined;
1489
+ blockedPaths?: string[] | undefined;
1490
+ network?: boolean | undefined;
1491
+ allowedHosts?: string[] | undefined;
1492
+ maxFileSize?: number | undefined;
1493
+ }>>;
1494
+ } & {
1495
+ type: z.ZodLiteral<"script">;
1496
+ inputs: z.ZodObject<{
1497
+ code: z.ZodString;
1498
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ code: string;
1501
+ timeout: number;
1502
+ }, {
1503
+ code: string;
1504
+ timeout?: number | undefined;
1505
+ }>;
90
1506
  errorHandling: z.ZodOptional<z.ZodObject<{
91
1507
  action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
92
1508
  maxRetries: z.ZodDefault<z.ZodNumber>;
@@ -103,99 +1519,373 @@ export declare const WorkflowStepSchema: z.ZodEffects<z.ZodObject<{
103
1519
  retryDelaySeconds?: number | undefined;
104
1520
  fallbackAction?: string | undefined;
105
1521
  }>>;
106
- timeout: z.ZodOptional<z.ZodNumber>;
107
1522
  }, "strip", z.ZodTypeAny, {
1523
+ type: "script";
108
1524
  id: string;
109
- inputs: Record<string, unknown>;
1525
+ inputs: {
1526
+ code: string;
1527
+ timeout: number;
1528
+ };
1529
+ model?: string | undefined;
110
1530
  name?: string | undefined;
111
- action?: string | undefined;
112
- workflow?: string | undefined;
113
- outputVariable?: string | undefined;
114
1531
  conditions?: string[] | undefined;
1532
+ timeout?: number | undefined;
1533
+ outputVariable?: string | undefined;
1534
+ agent?: string | undefined;
1535
+ permissions?: {
1536
+ read?: boolean | string[] | undefined;
1537
+ write?: boolean | string[] | undefined;
1538
+ execute?: boolean | string[] | undefined;
1539
+ allowedCommands?: string[] | undefined;
1540
+ blockedCommands?: string[] | undefined;
1541
+ allowedDirectories?: string[] | undefined;
1542
+ blockedPaths?: string[] | undefined;
1543
+ network?: boolean | undefined;
1544
+ allowedHosts?: string[] | undefined;
1545
+ maxFileSize?: number | undefined;
1546
+ } | undefined;
115
1547
  errorHandling?: {
116
1548
  action: "continue" | "stop" | "rollback";
117
1549
  maxRetries: number;
118
1550
  retryDelaySeconds: number;
119
1551
  fallbackAction?: string | undefined;
120
1552
  } | undefined;
121
- timeout?: number | undefined;
122
1553
  }, {
1554
+ type: "script";
123
1555
  id: string;
1556
+ inputs: {
1557
+ code: string;
1558
+ timeout?: number | undefined;
1559
+ };
1560
+ model?: string | undefined;
124
1561
  name?: string | undefined;
125
- action?: string | undefined;
126
- workflow?: string | undefined;
127
- inputs?: Record<string, unknown> | undefined;
128
- outputVariable?: string | undefined;
129
1562
  conditions?: string[] | undefined;
1563
+ timeout?: number | undefined;
1564
+ outputVariable?: string | undefined;
1565
+ agent?: string | undefined;
1566
+ permissions?: {
1567
+ read?: boolean | string[] | undefined;
1568
+ write?: boolean | string[] | undefined;
1569
+ execute?: boolean | string[] | undefined;
1570
+ allowedCommands?: string[] | undefined;
1571
+ blockedCommands?: string[] | undefined;
1572
+ allowedDirectories?: string[] | undefined;
1573
+ blockedPaths?: string[] | undefined;
1574
+ network?: boolean | undefined;
1575
+ allowedHosts?: string[] | undefined;
1576
+ maxFileSize?: number | undefined;
1577
+ } | undefined;
130
1578
  errorHandling?: {
131
1579
  action?: "continue" | "stop" | "rollback" | undefined;
132
1580
  maxRetries?: number | undefined;
133
1581
  retryDelaySeconds?: number | undefined;
134
1582
  fallbackAction?: string | undefined;
135
1583
  } | undefined;
136
- timeout?: number | undefined;
137
- }>, {
1584
+ }>;
1585
+ declare const FormFieldSchema: z.ZodObject<{
1586
+ type: z.ZodEnum<["string", "text", "number", "boolean", "select", "date", "email", "url"]>;
1587
+ label: z.ZodOptional<z.ZodString>;
1588
+ description: z.ZodOptional<z.ZodString>;
1589
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1590
+ default: z.ZodOptional<z.ZodUnknown>;
1591
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1592
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ type: "string" | "number" | "boolean" | "date" | "text" | "select" | "email" | "url";
1595
+ required: boolean;
1596
+ options?: string[] | undefined;
1597
+ validation?: Record<string, unknown> | undefined;
1598
+ description?: string | undefined;
1599
+ default?: unknown;
1600
+ label?: string | undefined;
1601
+ }, {
1602
+ type: "string" | "number" | "boolean" | "date" | "text" | "select" | "email" | "url";
1603
+ options?: string[] | undefined;
1604
+ validation?: Record<string, unknown> | undefined;
1605
+ description?: string | undefined;
1606
+ default?: unknown;
1607
+ label?: string | undefined;
1608
+ required?: boolean | undefined;
1609
+ }>;
1610
+ declare const WaitStepSchema: z.ZodObject<{
1611
+ id: z.ZodString;
1612
+ name: z.ZodOptional<z.ZodString>;
1613
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1614
+ timeout: z.ZodOptional<z.ZodNumber>;
1615
+ outputVariable: z.ZodOptional<z.ZodString>;
1616
+ model: z.ZodOptional<z.ZodString>;
1617
+ agent: z.ZodOptional<z.ZodString>;
1618
+ permissions: z.ZodOptional<z.ZodObject<{
1619
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1620
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1621
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1622
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1623
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1624
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1625
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1626
+ network: z.ZodOptional<z.ZodBoolean>;
1627
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1628
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ read?: boolean | string[] | undefined;
1631
+ write?: boolean | string[] | undefined;
1632
+ execute?: boolean | string[] | undefined;
1633
+ allowedCommands?: string[] | undefined;
1634
+ blockedCommands?: string[] | undefined;
1635
+ allowedDirectories?: string[] | undefined;
1636
+ blockedPaths?: string[] | undefined;
1637
+ network?: boolean | undefined;
1638
+ allowedHosts?: string[] | undefined;
1639
+ maxFileSize?: number | undefined;
1640
+ }, {
1641
+ read?: boolean | string[] | undefined;
1642
+ write?: boolean | string[] | undefined;
1643
+ execute?: boolean | string[] | undefined;
1644
+ allowedCommands?: string[] | undefined;
1645
+ blockedCommands?: string[] | undefined;
1646
+ allowedDirectories?: string[] | undefined;
1647
+ blockedPaths?: string[] | undefined;
1648
+ network?: boolean | undefined;
1649
+ allowedHosts?: string[] | undefined;
1650
+ maxFileSize?: number | undefined;
1651
+ }>>;
1652
+ } & {
1653
+ type: z.ZodLiteral<"wait">;
1654
+ /** Wait mode: duration (time-based), webhook (callback URL), form (human input) */
1655
+ mode: z.ZodEnum<["duration", "webhook", "form"]>;
1656
+ /** Duration string for mode=duration (e.g., "2h", "30m", "5s") */
1657
+ duration: z.ZodOptional<z.ZodString>;
1658
+ /** Form fields for mode=form */
1659
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1660
+ type: z.ZodEnum<["string", "text", "number", "boolean", "select", "date", "email", "url"]>;
1661
+ label: z.ZodOptional<z.ZodString>;
1662
+ description: z.ZodOptional<z.ZodString>;
1663
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1664
+ default: z.ZodOptional<z.ZodUnknown>;
1665
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1666
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ type: "string" | "number" | "boolean" | "date" | "text" | "select" | "email" | "url";
1669
+ required: boolean;
1670
+ options?: string[] | undefined;
1671
+ validation?: Record<string, unknown> | undefined;
1672
+ description?: string | undefined;
1673
+ default?: unknown;
1674
+ label?: string | undefined;
1675
+ }, {
1676
+ type: "string" | "number" | "boolean" | "date" | "text" | "select" | "email" | "url";
1677
+ options?: string[] | undefined;
1678
+ validation?: Record<string, unknown> | undefined;
1679
+ description?: string | undefined;
1680
+ default?: unknown;
1681
+ label?: string | undefined;
1682
+ required?: boolean | undefined;
1683
+ }>>>;
1684
+ /** Webhook path override for mode=webhook */
1685
+ webhookPath: z.ZodOptional<z.ZodString>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ type: "wait";
138
1688
  id: string;
139
- inputs: Record<string, unknown>;
1689
+ mode: "webhook" | "duration" | "form";
1690
+ model?: string | undefined;
140
1691
  name?: string | undefined;
141
- action?: string | undefined;
142
- workflow?: string | undefined;
143
- outputVariable?: string | undefined;
144
1692
  conditions?: string[] | undefined;
145
- errorHandling?: {
146
- action: "continue" | "stop" | "rollback";
147
- maxRetries: number;
148
- retryDelaySeconds: number;
149
- fallbackAction?: string | undefined;
150
- } | undefined;
151
1693
  timeout?: number | undefined;
1694
+ outputVariable?: string | undefined;
1695
+ agent?: string | undefined;
1696
+ permissions?: {
1697
+ read?: boolean | string[] | undefined;
1698
+ write?: boolean | string[] | undefined;
1699
+ execute?: boolean | string[] | undefined;
1700
+ allowedCommands?: string[] | undefined;
1701
+ blockedCommands?: string[] | undefined;
1702
+ allowedDirectories?: string[] | undefined;
1703
+ blockedPaths?: string[] | undefined;
1704
+ network?: boolean | undefined;
1705
+ allowedHosts?: string[] | undefined;
1706
+ maxFileSize?: number | undefined;
1707
+ } | undefined;
1708
+ duration?: string | undefined;
1709
+ fields?: Record<string, {
1710
+ type: "string" | "number" | "boolean" | "date" | "text" | "select" | "email" | "url";
1711
+ required: boolean;
1712
+ options?: string[] | undefined;
1713
+ validation?: Record<string, unknown> | undefined;
1714
+ description?: string | undefined;
1715
+ default?: unknown;
1716
+ label?: string | undefined;
1717
+ }> | undefined;
1718
+ webhookPath?: string | undefined;
152
1719
  }, {
1720
+ type: "wait";
153
1721
  id: string;
1722
+ mode: "webhook" | "duration" | "form";
1723
+ model?: string | undefined;
154
1724
  name?: string | undefined;
155
- action?: string | undefined;
156
- workflow?: string | undefined;
157
- inputs?: Record<string, unknown> | undefined;
1725
+ conditions?: string[] | undefined;
1726
+ timeout?: number | undefined;
158
1727
  outputVariable?: string | undefined;
1728
+ agent?: string | undefined;
1729
+ permissions?: {
1730
+ read?: boolean | string[] | undefined;
1731
+ write?: boolean | string[] | undefined;
1732
+ execute?: boolean | string[] | undefined;
1733
+ allowedCommands?: string[] | undefined;
1734
+ blockedCommands?: string[] | undefined;
1735
+ allowedDirectories?: string[] | undefined;
1736
+ blockedPaths?: string[] | undefined;
1737
+ network?: boolean | undefined;
1738
+ allowedHosts?: string[] | undefined;
1739
+ maxFileSize?: number | undefined;
1740
+ } | undefined;
1741
+ duration?: string | undefined;
1742
+ fields?: Record<string, {
1743
+ type: "string" | "number" | "boolean" | "date" | "text" | "select" | "email" | "url";
1744
+ options?: string[] | undefined;
1745
+ validation?: Record<string, unknown> | undefined;
1746
+ description?: string | undefined;
1747
+ default?: unknown;
1748
+ label?: string | undefined;
1749
+ required?: boolean | undefined;
1750
+ }> | undefined;
1751
+ webhookPath?: string | undefined;
1752
+ }>;
1753
+ declare const MergeStepSchema: z.ZodObject<{
1754
+ id: z.ZodString;
1755
+ name: z.ZodOptional<z.ZodString>;
1756
+ conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1757
+ timeout: z.ZodOptional<z.ZodNumber>;
1758
+ outputVariable: z.ZodOptional<z.ZodString>;
1759
+ model: z.ZodOptional<z.ZodString>;
1760
+ agent: z.ZodOptional<z.ZodString>;
1761
+ permissions: z.ZodOptional<z.ZodObject<{
1762
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1763
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1764
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1765
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1766
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1767
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1768
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1769
+ network: z.ZodOptional<z.ZodBoolean>;
1770
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1771
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ read?: boolean | string[] | undefined;
1774
+ write?: boolean | string[] | undefined;
1775
+ execute?: boolean | string[] | undefined;
1776
+ allowedCommands?: string[] | undefined;
1777
+ blockedCommands?: string[] | undefined;
1778
+ allowedDirectories?: string[] | undefined;
1779
+ blockedPaths?: string[] | undefined;
1780
+ network?: boolean | undefined;
1781
+ allowedHosts?: string[] | undefined;
1782
+ maxFileSize?: number | undefined;
1783
+ }, {
1784
+ read?: boolean | string[] | undefined;
1785
+ write?: boolean | string[] | undefined;
1786
+ execute?: boolean | string[] | undefined;
1787
+ allowedCommands?: string[] | undefined;
1788
+ blockedCommands?: string[] | undefined;
1789
+ allowedDirectories?: string[] | undefined;
1790
+ blockedPaths?: string[] | undefined;
1791
+ network?: boolean | undefined;
1792
+ allowedHosts?: string[] | undefined;
1793
+ maxFileSize?: number | undefined;
1794
+ }>>;
1795
+ } & {
1796
+ type: z.ZodLiteral<"merge">;
1797
+ /** Merge mode */
1798
+ mode: z.ZodEnum<["append", "match", "diff", "combine_by_field"]>;
1799
+ /** Template expressions resolving to arrays to merge */
1800
+ sources: z.ZodArray<z.ZodString, "many">;
1801
+ /** Field name to match/diff/combine on */
1802
+ matchField: z.ZodOptional<z.ZodString>;
1803
+ /** For combine mode: how to handle conflicts */
1804
+ onConflict: z.ZodDefault<z.ZodOptional<z.ZodEnum<["keep_first", "keep_last", "merge_fields"]>>>;
1805
+ }, "strip", z.ZodTypeAny, {
1806
+ type: "merge";
1807
+ id: string;
1808
+ mode: "append" | "match" | "diff" | "combine_by_field";
1809
+ sources: string[];
1810
+ onConflict: "keep_first" | "keep_last" | "merge_fields";
1811
+ model?: string | undefined;
1812
+ name?: string | undefined;
159
1813
  conditions?: string[] | undefined;
160
- errorHandling?: {
161
- action?: "continue" | "stop" | "rollback" | undefined;
162
- maxRetries?: number | undefined;
163
- retryDelaySeconds?: number | undefined;
164
- fallbackAction?: string | undefined;
1814
+ timeout?: number | undefined;
1815
+ outputVariable?: string | undefined;
1816
+ agent?: string | undefined;
1817
+ permissions?: {
1818
+ read?: boolean | string[] | undefined;
1819
+ write?: boolean | string[] | undefined;
1820
+ execute?: boolean | string[] | undefined;
1821
+ allowedCommands?: string[] | undefined;
1822
+ blockedCommands?: string[] | undefined;
1823
+ allowedDirectories?: string[] | undefined;
1824
+ blockedPaths?: string[] | undefined;
1825
+ network?: boolean | undefined;
1826
+ allowedHosts?: string[] | undefined;
1827
+ maxFileSize?: number | undefined;
165
1828
  } | undefined;
1829
+ matchField?: string | undefined;
1830
+ }, {
1831
+ type: "merge";
1832
+ id: string;
1833
+ mode: "append" | "match" | "diff" | "combine_by_field";
1834
+ sources: string[];
1835
+ model?: string | undefined;
1836
+ name?: string | undefined;
1837
+ conditions?: string[] | undefined;
166
1838
  timeout?: number | undefined;
1839
+ outputVariable?: string | undefined;
1840
+ agent?: string | undefined;
1841
+ permissions?: {
1842
+ read?: boolean | string[] | undefined;
1843
+ write?: boolean | string[] | undefined;
1844
+ execute?: boolean | string[] | undefined;
1845
+ allowedCommands?: string[] | undefined;
1846
+ blockedCommands?: string[] | undefined;
1847
+ allowedDirectories?: string[] | undefined;
1848
+ blockedPaths?: string[] | undefined;
1849
+ network?: boolean | undefined;
1850
+ allowedHosts?: string[] | undefined;
1851
+ maxFileSize?: number | undefined;
1852
+ } | undefined;
1853
+ matchField?: string | undefined;
1854
+ onConflict?: "keep_first" | "keep_last" | "merge_fields" | undefined;
167
1855
  }>;
1856
+ declare const WorkflowStepUnionSchema: z.ZodTypeAny;
1857
+ export { WorkflowStepUnionSchema as WorkflowStepSchema };
168
1858
  export declare const TriggerSchema: z.ZodObject<{
169
1859
  type: z.ZodEnum<["manual", "schedule", "webhook", "event"]>;
170
1860
  enabled: z.ZodDefault<z.ZodBoolean>;
171
1861
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
172
1862
  }, "strip", z.ZodTypeAny, {
173
1863
  type: "manual" | "schedule" | "webhook" | "event";
174
- enabled: boolean;
175
1864
  config: Record<string, unknown>;
1865
+ enabled: boolean;
176
1866
  }, {
177
1867
  type: "manual" | "schedule" | "webhook" | "event";
178
- enabled?: boolean | undefined;
179
1868
  config?: Record<string, unknown> | undefined;
1869
+ enabled?: boolean | undefined;
180
1870
  }>;
181
1871
  export declare const WorkflowInputSchema: z.ZodObject<{
182
- type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1872
+ type: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object"]>;
183
1873
  required: z.ZodDefault<z.ZodBoolean>;
184
1874
  default: z.ZodOptional<z.ZodUnknown>;
185
1875
  description: z.ZodOptional<z.ZodString>;
186
1876
  validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
1877
  }, "strip", z.ZodTypeAny, {
188
- type: "string" | "number" | "boolean" | "object" | "array";
1878
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
189
1879
  required: boolean;
190
- description?: string | undefined;
191
1880
  validation?: Record<string, unknown> | undefined;
1881
+ description?: string | undefined;
192
1882
  default?: unknown;
193
1883
  }, {
194
- type: "string" | "number" | "boolean" | "object" | "array";
195
- description?: string | undefined;
1884
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
196
1885
  validation?: Record<string, unknown> | undefined;
197
- required?: boolean | undefined;
1886
+ description?: string | undefined;
198
1887
  default?: unknown;
1888
+ required?: boolean | undefined;
199
1889
  }>;
200
1890
  export declare const WorkflowSchema: z.ZodObject<{
201
1891
  metadata: z.ZodObject<{
@@ -233,24 +1923,60 @@ export declare const WorkflowSchema: z.ZodObject<{
233
1923
  options?: Record<string, unknown> | undefined;
234
1924
  auth?: Record<string, string> | undefined;
235
1925
  }>>>;
1926
+ secrets: z.ZodOptional<z.ZodObject<{
1927
+ providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1928
+ type: z.ZodEnum<["vault", "aws", "azure", "env"]>;
1929
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1930
+ cacheEnabled: z.ZodOptional<z.ZodBoolean>;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ type: "vault" | "aws" | "azure" | "env";
1933
+ config: Record<string, unknown>;
1934
+ cacheEnabled?: boolean | undefined;
1935
+ }, {
1936
+ type: "vault" | "aws" | "azure" | "env";
1937
+ config: Record<string, unknown>;
1938
+ cacheEnabled?: boolean | undefined;
1939
+ }>, "many">>;
1940
+ defaultCacheTTL: z.ZodOptional<z.ZodNumber>;
1941
+ referencePrefix: z.ZodOptional<z.ZodString>;
1942
+ throwOnNotFound: z.ZodOptional<z.ZodBoolean>;
1943
+ }, "strip", z.ZodTypeAny, {
1944
+ providers?: {
1945
+ type: "vault" | "aws" | "azure" | "env";
1946
+ config: Record<string, unknown>;
1947
+ cacheEnabled?: boolean | undefined;
1948
+ }[] | undefined;
1949
+ defaultCacheTTL?: number | undefined;
1950
+ referencePrefix?: string | undefined;
1951
+ throwOnNotFound?: boolean | undefined;
1952
+ }, {
1953
+ providers?: {
1954
+ type: "vault" | "aws" | "azure" | "env";
1955
+ config: Record<string, unknown>;
1956
+ cacheEnabled?: boolean | undefined;
1957
+ }[] | undefined;
1958
+ defaultCacheTTL?: number | undefined;
1959
+ referencePrefix?: string | undefined;
1960
+ throwOnNotFound?: boolean | undefined;
1961
+ }>>;
236
1962
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
237
- type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1963
+ type: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object"]>;
238
1964
  required: z.ZodDefault<z.ZodBoolean>;
239
1965
  default: z.ZodOptional<z.ZodUnknown>;
240
1966
  description: z.ZodOptional<z.ZodString>;
241
1967
  validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
242
1968
  }, "strip", z.ZodTypeAny, {
243
- type: "string" | "number" | "boolean" | "object" | "array";
1969
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
244
1970
  required: boolean;
245
- description?: string | undefined;
246
1971
  validation?: Record<string, unknown> | undefined;
1972
+ description?: string | undefined;
247
1973
  default?: unknown;
248
1974
  }, {
249
- type: "string" | "number" | "boolean" | "object" | "array";
250
- description?: string | undefined;
1975
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
251
1976
  validation?: Record<string, unknown> | undefined;
252
- required?: boolean | undefined;
1977
+ description?: string | undefined;
253
1978
  default?: unknown;
1979
+ required?: boolean | undefined;
254
1980
  }>>>;
255
1981
  triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
1982
  type: z.ZodEnum<["manual", "schedule", "webhook", "event"]>;
@@ -258,101 +1984,58 @@ export declare const WorkflowSchema: z.ZodObject<{
258
1984
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
259
1985
  }, "strip", z.ZodTypeAny, {
260
1986
  type: "manual" | "schedule" | "webhook" | "event";
261
- enabled: boolean;
262
1987
  config: Record<string, unknown>;
1988
+ enabled: boolean;
263
1989
  }, {
264
1990
  type: "manual" | "schedule" | "webhook" | "event";
265
- enabled?: boolean | undefined;
266
1991
  config?: Record<string, unknown> | undefined;
1992
+ enabled?: boolean | undefined;
267
1993
  }>, "many">>;
268
- steps: z.ZodArray<z.ZodEffects<z.ZodObject<{
269
- id: z.ZodString;
270
- name: z.ZodOptional<z.ZodString>;
271
- action: z.ZodOptional<z.ZodString>;
272
- workflow: z.ZodOptional<z.ZodString>;
273
- inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
274
- outputVariable: z.ZodOptional<z.ZodString>;
275
- conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
- errorHandling: z.ZodOptional<z.ZodObject<{
277
- action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
278
- maxRetries: z.ZodDefault<z.ZodNumber>;
279
- retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
280
- fallbackAction: z.ZodOptional<z.ZodString>;
281
- }, "strip", z.ZodTypeAny, {
282
- action: "continue" | "stop" | "rollback";
283
- maxRetries: number;
284
- retryDelaySeconds: number;
285
- fallbackAction?: string | undefined;
286
- }, {
287
- action?: "continue" | "stop" | "rollback" | undefined;
288
- maxRetries?: number | undefined;
289
- retryDelaySeconds?: number | undefined;
290
- fallbackAction?: string | undefined;
291
- }>>;
292
- timeout: z.ZodOptional<z.ZodNumber>;
1994
+ steps: z.ZodArray<z.ZodTypeAny, "many">;
1995
+ rawContent: z.ZodOptional<z.ZodString>;
1996
+ permissions: z.ZodOptional<z.ZodObject<{
1997
+ read: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1998
+ write: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
1999
+ execute: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
2000
+ allowedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2001
+ blockedCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2002
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2003
+ blockedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2004
+ network: z.ZodOptional<z.ZodBoolean>;
2005
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2006
+ maxFileSize: z.ZodOptional<z.ZodNumber>;
293
2007
  }, "strip", z.ZodTypeAny, {
294
- id: string;
295
- inputs: Record<string, unknown>;
296
- name?: string | undefined;
297
- action?: string | undefined;
298
- workflow?: string | undefined;
299
- outputVariable?: string | undefined;
300
- conditions?: string[] | undefined;
301
- errorHandling?: {
302
- action: "continue" | "stop" | "rollback";
303
- maxRetries: number;
304
- retryDelaySeconds: number;
305
- fallbackAction?: string | undefined;
306
- } | undefined;
307
- timeout?: number | undefined;
308
- }, {
309
- id: string;
310
- name?: string | undefined;
311
- action?: string | undefined;
312
- workflow?: string | undefined;
313
- inputs?: Record<string, unknown> | undefined;
314
- outputVariable?: string | undefined;
315
- conditions?: string[] | undefined;
316
- errorHandling?: {
317
- action?: "continue" | "stop" | "rollback" | undefined;
318
- maxRetries?: number | undefined;
319
- retryDelaySeconds?: number | undefined;
320
- fallbackAction?: string | undefined;
321
- } | undefined;
322
- timeout?: number | undefined;
323
- }>, {
324
- id: string;
325
- inputs: Record<string, unknown>;
326
- name?: string | undefined;
327
- action?: string | undefined;
328
- workflow?: string | undefined;
329
- outputVariable?: string | undefined;
330
- conditions?: string[] | undefined;
331
- errorHandling?: {
332
- action: "continue" | "stop" | "rollback";
333
- maxRetries: number;
334
- retryDelaySeconds: number;
335
- fallbackAction?: string | undefined;
336
- } | undefined;
337
- timeout?: number | undefined;
2008
+ read?: boolean | string[] | undefined;
2009
+ write?: boolean | string[] | undefined;
2010
+ execute?: boolean | string[] | undefined;
2011
+ allowedCommands?: string[] | undefined;
2012
+ blockedCommands?: string[] | undefined;
2013
+ allowedDirectories?: string[] | undefined;
2014
+ blockedPaths?: string[] | undefined;
2015
+ network?: boolean | undefined;
2016
+ allowedHosts?: string[] | undefined;
2017
+ maxFileSize?: number | undefined;
338
2018
  }, {
339
- id: string;
340
- name?: string | undefined;
341
- action?: string | undefined;
342
- workflow?: string | undefined;
343
- inputs?: Record<string, unknown> | undefined;
344
- outputVariable?: string | undefined;
345
- conditions?: string[] | undefined;
346
- errorHandling?: {
347
- action?: "continue" | "stop" | "rollback" | undefined;
348
- maxRetries?: number | undefined;
349
- retryDelaySeconds?: number | undefined;
350
- fallbackAction?: string | undefined;
351
- } | undefined;
352
- timeout?: number | undefined;
353
- }>, "many">;
354
- rawContent: z.ZodOptional<z.ZodString>;
2019
+ read?: boolean | string[] | undefined;
2020
+ write?: boolean | string[] | undefined;
2021
+ execute?: boolean | string[] | undefined;
2022
+ allowedCommands?: string[] | undefined;
2023
+ blockedCommands?: string[] | undefined;
2024
+ allowedDirectories?: string[] | undefined;
2025
+ blockedPaths?: string[] | undefined;
2026
+ network?: boolean | undefined;
2027
+ allowedHosts?: string[] | undefined;
2028
+ maxFileSize?: number | undefined;
2029
+ }>>;
2030
+ defaultAgent: z.ZodOptional<z.ZodString>;
2031
+ defaultModel: z.ZodOptional<z.ZodString>;
355
2032
  }, "strip", z.ZodTypeAny, {
2033
+ tools: Record<string, {
2034
+ sdk: string;
2035
+ options?: Record<string, unknown> | undefined;
2036
+ auth?: Record<string, string> | undefined;
2037
+ }>;
2038
+ steps: any[];
356
2039
  metadata: {
357
2040
  id: string;
358
2041
  name: string;
@@ -361,41 +2044,45 @@ export declare const WorkflowSchema: z.ZodObject<{
361
2044
  author?: string | undefined;
362
2045
  tags?: string[] | undefined;
363
2046
  };
364
- tools: Record<string, {
365
- sdk: string;
366
- options?: Record<string, unknown> | undefined;
367
- auth?: Record<string, string> | undefined;
368
- }>;
369
- steps: {
370
- id: string;
371
- inputs: Record<string, unknown>;
372
- name?: string | undefined;
373
- action?: string | undefined;
374
- workflow?: string | undefined;
375
- outputVariable?: string | undefined;
376
- conditions?: string[] | undefined;
377
- errorHandling?: {
378
- action: "continue" | "stop" | "rollback";
379
- maxRetries: number;
380
- retryDelaySeconds: number;
381
- fallbackAction?: string | undefined;
382
- } | undefined;
383
- timeout?: number | undefined;
384
- }[];
2047
+ permissions?: {
2048
+ read?: boolean | string[] | undefined;
2049
+ write?: boolean | string[] | undefined;
2050
+ execute?: boolean | string[] | undefined;
2051
+ allowedCommands?: string[] | undefined;
2052
+ blockedCommands?: string[] | undefined;
2053
+ allowedDirectories?: string[] | undefined;
2054
+ blockedPaths?: string[] | undefined;
2055
+ network?: boolean | undefined;
2056
+ allowedHosts?: string[] | undefined;
2057
+ maxFileSize?: number | undefined;
2058
+ } | undefined;
385
2059
  inputs?: Record<string, {
386
- type: "string" | "number" | "boolean" | "object" | "array";
2060
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
387
2061
  required: boolean;
388
- description?: string | undefined;
389
2062
  validation?: Record<string, unknown> | undefined;
2063
+ description?: string | undefined;
390
2064
  default?: unknown;
391
2065
  }> | undefined;
2066
+ secrets?: {
2067
+ providers?: {
2068
+ type: "vault" | "aws" | "azure" | "env";
2069
+ config: Record<string, unknown>;
2070
+ cacheEnabled?: boolean | undefined;
2071
+ }[] | undefined;
2072
+ defaultCacheTTL?: number | undefined;
2073
+ referencePrefix?: string | undefined;
2074
+ throwOnNotFound?: boolean | undefined;
2075
+ } | undefined;
392
2076
  triggers?: {
393
2077
  type: "manual" | "schedule" | "webhook" | "event";
394
- enabled: boolean;
395
2078
  config: Record<string, unknown>;
2079
+ enabled: boolean;
396
2080
  }[] | undefined;
397
2081
  rawContent?: string | undefined;
2082
+ defaultAgent?: string | undefined;
2083
+ defaultModel?: string | undefined;
398
2084
  }, {
2085
+ steps: any[];
399
2086
  metadata: {
400
2087
  id: string;
401
2088
  name: string;
@@ -404,48 +2091,88 @@ export declare const WorkflowSchema: z.ZodObject<{
404
2091
  author?: string | undefined;
405
2092
  tags?: string[] | undefined;
406
2093
  };
407
- steps: {
408
- id: string;
409
- name?: string | undefined;
410
- action?: string | undefined;
411
- workflow?: string | undefined;
412
- inputs?: Record<string, unknown> | undefined;
413
- outputVariable?: string | undefined;
414
- conditions?: string[] | undefined;
415
- errorHandling?: {
416
- action?: "continue" | "stop" | "rollback" | undefined;
417
- maxRetries?: number | undefined;
418
- retryDelaySeconds?: number | undefined;
419
- fallbackAction?: string | undefined;
420
- } | undefined;
421
- timeout?: number | undefined;
422
- }[];
423
- inputs?: Record<string, {
424
- type: "string" | "number" | "boolean" | "object" | "array";
425
- description?: string | undefined;
426
- validation?: Record<string, unknown> | undefined;
427
- required?: boolean | undefined;
428
- default?: unknown;
429
- }> | undefined;
430
2094
  tools?: Record<string, {
431
2095
  sdk: string;
432
2096
  options?: Record<string, unknown> | undefined;
433
2097
  auth?: Record<string, string> | undefined;
434
2098
  }> | undefined;
2099
+ permissions?: {
2100
+ read?: boolean | string[] | undefined;
2101
+ write?: boolean | string[] | undefined;
2102
+ execute?: boolean | string[] | undefined;
2103
+ allowedCommands?: string[] | undefined;
2104
+ blockedCommands?: string[] | undefined;
2105
+ allowedDirectories?: string[] | undefined;
2106
+ blockedPaths?: string[] | undefined;
2107
+ network?: boolean | undefined;
2108
+ allowedHosts?: string[] | undefined;
2109
+ maxFileSize?: number | undefined;
2110
+ } | undefined;
2111
+ inputs?: Record<string, {
2112
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
2113
+ validation?: Record<string, unknown> | undefined;
2114
+ description?: string | undefined;
2115
+ default?: unknown;
2116
+ required?: boolean | undefined;
2117
+ }> | undefined;
2118
+ secrets?: {
2119
+ providers?: {
2120
+ type: "vault" | "aws" | "azure" | "env";
2121
+ config: Record<string, unknown>;
2122
+ cacheEnabled?: boolean | undefined;
2123
+ }[] | undefined;
2124
+ defaultCacheTTL?: number | undefined;
2125
+ referencePrefix?: string | undefined;
2126
+ throwOnNotFound?: boolean | undefined;
2127
+ } | undefined;
435
2128
  triggers?: {
436
2129
  type: "manual" | "schedule" | "webhook" | "event";
437
- enabled?: boolean | undefined;
438
2130
  config?: Record<string, unknown> | undefined;
2131
+ enabled?: boolean | undefined;
439
2132
  }[] | undefined;
440
2133
  rawContent?: string | undefined;
2134
+ defaultAgent?: string | undefined;
2135
+ defaultModel?: string | undefined;
441
2136
  }>;
442
2137
  export type WorkflowMetadata = z.infer<typeof WorkflowMetadataSchema>;
443
2138
  export type ToolConfig = z.infer<typeof ToolConfigSchema>;
2139
+ export type WorkflowSecretProvider = z.infer<typeof WorkflowSecretProviderSchema>;
2140
+ export type WorkflowSecretsConfig = z.infer<typeof WorkflowSecretsConfigSchema>;
444
2141
  export type ErrorHandling = z.infer<typeof ErrorHandlingSchema>;
445
- export type WorkflowStep = z.infer<typeof WorkflowStepSchema>;
446
2142
  export type Trigger = z.infer<typeof TriggerSchema>;
447
2143
  export type WorkflowInput = z.infer<typeof WorkflowInputSchema>;
448
2144
  export type Workflow = z.infer<typeof WorkflowSchema>;
2145
+ export type ActionStep = z.infer<typeof ActionStepSchema>;
2146
+ export type SubWorkflowStep = z.infer<typeof SubWorkflowStepSchema>;
2147
+ export type IfStep = z.infer<typeof IfStepSchema>;
2148
+ export type SwitchStep = z.infer<typeof SwitchStepSchema>;
2149
+ export type ForEachStep = z.infer<typeof ForEachStepSchema>;
2150
+ export type WhileStep = z.infer<typeof WhileStepSchema>;
2151
+ export type MapStep = z.infer<typeof MapStepSchema>;
2152
+ export type FilterStep = z.infer<typeof FilterStepSchema>;
2153
+ export type ReduceStep = z.infer<typeof ReduceStepSchema>;
2154
+ export type ParallelStep = z.infer<typeof ParallelStepSchema>;
2155
+ export type ParallelBranch = z.infer<typeof ParallelBranchSchema>;
2156
+ export type TryStep = z.infer<typeof TryStepSchema>;
2157
+ export type ScriptStep = z.infer<typeof ScriptStepSchema>;
2158
+ export type WaitStep = z.infer<typeof WaitStepSchema>;
2159
+ export type MergeStep = z.infer<typeof MergeStepSchema>;
2160
+ export type FormField = z.infer<typeof FormFieldSchema>;
2161
+ export type WorkflowStep = z.infer<typeof WorkflowStepUnionSchema>;
2162
+ export declare function isActionStep(step: WorkflowStep): step is ActionStep;
2163
+ export declare function isSubWorkflowStep(step: WorkflowStep): step is SubWorkflowStep;
2164
+ export declare function isIfStep(step: WorkflowStep): step is IfStep;
2165
+ export declare function isSwitchStep(step: WorkflowStep): step is SwitchStep;
2166
+ export declare function isForEachStep(step: WorkflowStep): step is ForEachStep;
2167
+ export declare function isWhileStep(step: WorkflowStep): step is WhileStep;
2168
+ export declare function isMapStep(step: WorkflowStep): step is MapStep;
2169
+ export declare function isFilterStep(step: WorkflowStep): step is FilterStep;
2170
+ export declare function isReduceStep(step: WorkflowStep): step is ReduceStep;
2171
+ export declare function isParallelStep(step: WorkflowStep): step is ParallelStep;
2172
+ export declare function isTryStep(step: WorkflowStep): step is TryStep;
2173
+ export declare function isScriptStep(step: WorkflowStep): step is ScriptStep;
2174
+ export declare function isWaitStep(step: WorkflowStep): step is WaitStep;
2175
+ export declare function isMergeStep(step: WorkflowStep): step is MergeStep;
449
2176
  export interface ExecutionContext {
450
2177
  workflowId: string;
451
2178
  runId: string;
@@ -459,13 +2186,14 @@ export interface ExecutionContext {
459
2186
  error?: string;
460
2187
  retryCount: number;
461
2188
  }>;
2189
+ workflowOutputs?: Record<string, unknown>;
462
2190
  [key: string]: unknown;
463
2191
  }
464
2192
  export interface StepResult {
465
2193
  stepId: string;
466
2194
  status: StepStatus;
467
2195
  output: unknown;
468
- error: string | undefined;
2196
+ error: unknown;
469
2197
  startedAt: Date;
470
2198
  completedAt: Date;
471
2199
  duration: number;
@@ -483,5 +2211,5 @@ export interface WorkflowResult {
483
2211
  duration: number;
484
2212
  }
485
2213
  export declare function createExecutionContext(workflow: Workflow, inputs?: Record<string, unknown>): ExecutionContext;
486
- export declare function createStepResult(stepId: string, status: StepStatus, output: unknown, startedAt: Date, retryCount?: number, error?: string): StepResult;
2214
+ export declare function createStepResult(stepId: string, status: StepStatus, output: unknown, startedAt: Date, retryCount?: number, error?: unknown): StepResult;
487
2215
  //# sourceMappingURL=models.d.ts.map