@marktoflow/core 2.0.0-alpha.9 → 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 (121) hide show
  1. package/README.md +24 -222
  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 +92 -3
  15. package/dist/engine.d.ts.map +1 -1
  16. package/dist/engine.js +937 -59
  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 +1441 -54
  31. package/dist/models.d.ts.map +1 -1
  32. package/dist/models.js +124 -2
  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 +113 -3
  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 +30 -12
  121. package/LICENSE +0 -201
package/dist/models.d.ts CHANGED
@@ -17,6 +17,9 @@ export declare const StepType: {
17
17
  readonly REDUCE: "reduce";
18
18
  readonly PARALLEL: "parallel";
19
19
  readonly TRY: "try";
20
+ readonly SCRIPT: "script";
21
+ readonly WAIT: "wait";
22
+ readonly MERGE: "merge";
20
23
  };
21
24
  export type StepType = (typeof StepType)[keyof typeof StepType];
22
25
  export declare const StepStatus: {
@@ -42,6 +45,58 @@ export declare const TriggerType: {
42
45
  readonly EVENT: "event";
43
46
  };
44
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>;
45
100
  export declare const WorkflowMetadataSchema: z.ZodObject<{
46
101
  id: z.ZodString;
47
102
  name: z.ZodString;
@@ -77,6 +132,55 @@ export declare const ToolConfigSchema: z.ZodObject<{
77
132
  options?: Record<string, unknown> | undefined;
78
133
  auth?: Record<string, string> | undefined;
79
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
+ }>;
80
184
  export declare const ErrorHandlingSchema: z.ZodObject<{
81
185
  action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
82
186
  maxRetries: z.ZodDefault<z.ZodNumber>;
@@ -99,6 +203,42 @@ declare const ActionStepSchema: z.ZodObject<{
99
203
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
204
  timeout: z.ZodOptional<z.ZodNumber>;
101
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
+ }>>;
102
242
  } & {
103
243
  type: z.ZodLiteral<"action">;
104
244
  action: z.ZodString;
@@ -119,29 +259,61 @@ declare const ActionStepSchema: z.ZodObject<{
119
259
  retryDelaySeconds?: number | undefined;
120
260
  fallbackAction?: string | undefined;
121
261
  }>>;
262
+ prompt: z.ZodOptional<z.ZodString>;
263
+ promptInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
122
264
  }, "strip", z.ZodTypeAny, {
123
265
  action: string;
124
- id: string;
125
266
  type: "action";
267
+ id: string;
126
268
  inputs: Record<string, unknown>;
269
+ model?: string | undefined;
127
270
  name?: string | undefined;
128
271
  conditions?: string[] | undefined;
129
272
  timeout?: number | undefined;
130
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;
131
287
  errorHandling?: {
132
288
  action: "continue" | "stop" | "rollback";
133
289
  maxRetries: number;
134
290
  retryDelaySeconds: number;
135
291
  fallbackAction?: string | undefined;
136
292
  } | undefined;
293
+ prompt?: string | undefined;
294
+ promptInputs?: Record<string, unknown> | undefined;
137
295
  }, {
138
296
  action: string;
139
- id: string;
140
297
  type: "action";
298
+ id: string;
299
+ model?: string | undefined;
141
300
  name?: string | undefined;
142
301
  conditions?: string[] | undefined;
143
302
  timeout?: number | undefined;
144
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;
145
317
  inputs?: Record<string, unknown> | undefined;
146
318
  errorHandling?: {
147
319
  action?: "continue" | "stop" | "rollback" | undefined;
@@ -149,6 +321,8 @@ declare const ActionStepSchema: z.ZodObject<{
149
321
  retryDelaySeconds?: number | undefined;
150
322
  fallbackAction?: string | undefined;
151
323
  } | undefined;
324
+ prompt?: string | undefined;
325
+ promptInputs?: Record<string, unknown> | undefined;
152
326
  }>;
153
327
  declare const SubWorkflowStepSchema: z.ZodObject<{
154
328
  id: z.ZodString;
@@ -156,6 +330,42 @@ declare const SubWorkflowStepSchema: z.ZodObject<{
156
330
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
157
331
  timeout: z.ZodOptional<z.ZodNumber>;
158
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
+ }>>;
159
369
  } & {
160
370
  type: z.ZodLiteral<"workflow">;
161
371
  workflow: z.ZodString;
@@ -176,29 +386,81 @@ declare const SubWorkflowStepSchema: z.ZodObject<{
176
386
  retryDelaySeconds?: number | undefined;
177
387
  fallbackAction?: string | undefined;
178
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
+ }>>;
179
406
  }, "strip", z.ZodTypeAny, {
180
407
  workflow: string;
181
- id: string;
182
408
  type: "workflow";
409
+ id: string;
183
410
  inputs: Record<string, unknown>;
411
+ useSubagent: boolean;
412
+ model?: string | undefined;
184
413
  name?: string | undefined;
185
414
  conditions?: string[] | undefined;
186
415
  timeout?: number | undefined;
187
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;
188
430
  errorHandling?: {
189
431
  action: "continue" | "stop" | "rollback";
190
432
  maxRetries: number;
191
433
  retryDelaySeconds: number;
192
434
  fallbackAction?: string | undefined;
193
435
  } | undefined;
436
+ subagentConfig?: {
437
+ model?: string | undefined;
438
+ maxTurns?: number | undefined;
439
+ systemPrompt?: string | undefined;
440
+ tools?: string[] | undefined;
441
+ } | undefined;
194
442
  }, {
195
443
  workflow: string;
196
- id: string;
197
444
  type: "workflow";
445
+ id: string;
446
+ model?: string | undefined;
198
447
  name?: string | undefined;
199
448
  conditions?: string[] | undefined;
200
449
  timeout?: number | undefined;
201
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;
202
464
  inputs?: Record<string, unknown> | undefined;
203
465
  errorHandling?: {
204
466
  action?: "continue" | "stop" | "rollback" | undefined;
@@ -206,6 +468,13 @@ declare const SubWorkflowStepSchema: z.ZodObject<{
206
468
  retryDelaySeconds?: number | undefined;
207
469
  fallbackAction?: string | undefined;
208
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;
209
478
  }>;
210
479
  declare const IfStepSchema: z.ZodObject<{
211
480
  id: z.ZodString;
@@ -213,6 +482,42 @@ declare const IfStepSchema: z.ZodObject<{
213
482
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
214
483
  timeout: z.ZodOptional<z.ZodNumber>;
215
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
+ }>>;
216
521
  } & {
217
522
  type: z.ZodLiteral<"if">;
218
523
  condition: z.ZodString;
@@ -220,24 +525,52 @@ declare const IfStepSchema: z.ZodObject<{
220
525
  else: z.ZodOptional<z.ZodTypeAny>;
221
526
  steps: z.ZodOptional<z.ZodTypeAny>;
222
527
  }, "strip", z.ZodTypeAny, {
223
- id: string;
224
528
  type: "if";
529
+ id: string;
225
530
  condition: string;
531
+ model?: string | undefined;
226
532
  name?: string | undefined;
227
533
  conditions?: string[] | undefined;
228
534
  timeout?: number | undefined;
229
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;
230
549
  then?: any;
231
550
  else?: any;
232
551
  steps?: any;
233
552
  }, {
234
- id: string;
235
553
  type: "if";
554
+ id: string;
236
555
  condition: string;
556
+ model?: string | undefined;
237
557
  name?: string | undefined;
238
558
  conditions?: string[] | undefined;
239
559
  timeout?: number | undefined;
240
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;
241
574
  then?: any;
242
575
  else?: any;
243
576
  steps?: any;
@@ -248,30 +581,94 @@ declare const SwitchStepSchema: z.ZodObject<{
248
581
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
249
582
  timeout: z.ZodOptional<z.ZodNumber>;
250
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
+ }>>;
251
620
  } & {
252
621
  type: z.ZodLiteral<"switch">;
253
622
  expression: z.ZodString;
254
623
  cases: z.ZodRecord<z.ZodString, z.ZodTypeAny>;
255
624
  default: z.ZodOptional<z.ZodTypeAny>;
256
625
  }, "strip", z.ZodTypeAny, {
257
- id: string;
258
626
  type: "switch";
627
+ id: string;
259
628
  expression: string;
260
629
  cases: Record<string, any>;
630
+ model?: string | undefined;
261
631
  name?: string | undefined;
262
632
  conditions?: string[] | undefined;
263
633
  timeout?: number | undefined;
264
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;
265
648
  default?: any;
266
649
  }, {
267
- id: string;
268
650
  type: "switch";
651
+ id: string;
269
652
  expression: string;
270
653
  cases: Record<string, any>;
654
+ model?: string | undefined;
271
655
  name?: string | undefined;
272
656
  conditions?: string[] | undefined;
273
657
  timeout?: number | undefined;
274
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;
275
672
  default?: any;
276
673
  }>;
277
674
  declare const ForEachStepSchema: z.ZodObject<{
@@ -280,6 +677,42 @@ declare const ForEachStepSchema: z.ZodObject<{
280
677
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
281
678
  timeout: z.ZodOptional<z.ZodNumber>;
282
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
+ }>>;
283
716
  } & {
284
717
  type: z.ZodLiteral<"for_each">;
285
718
  items: z.ZodString;
@@ -302,15 +735,33 @@ declare const ForEachStepSchema: z.ZodObject<{
302
735
  retryDelaySeconds?: number | undefined;
303
736
  fallbackAction?: string | undefined;
304
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>;
305
742
  }, "strip", z.ZodTypeAny, {
306
- id: string;
307
743
  type: "for_each";
744
+ id: string;
308
745
  items: string;
309
746
  itemVariable: string;
747
+ model?: string | undefined;
310
748
  name?: string | undefined;
311
749
  conditions?: string[] | undefined;
312
750
  timeout?: number | undefined;
313
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;
314
765
  errorHandling?: {
315
766
  action: "continue" | "stop" | "rollback";
316
767
  maxRetries: number;
@@ -319,14 +770,30 @@ declare const ForEachStepSchema: z.ZodObject<{
319
770
  } | undefined;
320
771
  steps?: any;
321
772
  indexVariable?: string | undefined;
773
+ batchSize?: number | undefined;
774
+ pauseBetweenBatches?: number | undefined;
322
775
  }, {
323
- id: string;
324
776
  type: "for_each";
777
+ id: string;
325
778
  items: string;
779
+ model?: string | undefined;
326
780
  name?: string | undefined;
327
781
  conditions?: string[] | undefined;
328
782
  timeout?: number | undefined;
329
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;
330
797
  errorHandling?: {
331
798
  action?: "continue" | "stop" | "rollback" | undefined;
332
799
  maxRetries?: number | undefined;
@@ -336,6 +803,8 @@ declare const ForEachStepSchema: z.ZodObject<{
336
803
  steps?: any;
337
804
  itemVariable?: string | undefined;
338
805
  indexVariable?: string | undefined;
806
+ batchSize?: number | undefined;
807
+ pauseBetweenBatches?: number | undefined;
339
808
  }>;
340
809
  declare const WhileStepSchema: z.ZodObject<{
341
810
  id: z.ZodString;
@@ -343,6 +812,42 @@ declare const WhileStepSchema: z.ZodObject<{
343
812
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
344
813
  timeout: z.ZodOptional<z.ZodNumber>;
345
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
+ }>>;
346
851
  } & {
347
852
  type: z.ZodLiteral<"while">;
348
853
  condition: z.ZodString;
@@ -365,14 +870,28 @@ declare const WhileStepSchema: z.ZodObject<{
365
870
  fallbackAction?: string | undefined;
366
871
  }>>;
367
872
  }, "strip", z.ZodTypeAny, {
368
- id: string;
369
873
  type: "while";
874
+ id: string;
370
875
  condition: string;
371
876
  maxIterations: number;
877
+ model?: string | undefined;
372
878
  name?: string | undefined;
373
879
  conditions?: string[] | undefined;
374
880
  timeout?: number | undefined;
375
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;
376
895
  errorHandling?: {
377
896
  action: "continue" | "stop" | "rollback";
378
897
  maxRetries: number;
@@ -381,13 +900,27 @@ declare const WhileStepSchema: z.ZodObject<{
381
900
  } | undefined;
382
901
  steps?: any;
383
902
  }, {
384
- id: string;
385
903
  type: "while";
904
+ id: string;
386
905
  condition: string;
906
+ model?: string | undefined;
387
907
  name?: string | undefined;
388
908
  conditions?: string[] | undefined;
389
909
  timeout?: number | undefined;
390
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;
391
924
  errorHandling?: {
392
925
  action?: "continue" | "stop" | "rollback" | undefined;
393
926
  maxRetries?: number | undefined;
@@ -403,30 +936,94 @@ declare const MapStepSchema: z.ZodObject<{
403
936
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
937
  timeout: z.ZodOptional<z.ZodNumber>;
405
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
+ }>>;
406
975
  } & {
407
976
  type: z.ZodLiteral<"map">;
408
977
  items: z.ZodString;
409
978
  itemVariable: z.ZodDefault<z.ZodString>;
410
979
  expression: z.ZodString;
411
980
  }, "strip", z.ZodTypeAny, {
412
- id: string;
413
981
  type: "map";
982
+ id: string;
414
983
  expression: string;
415
984
  items: string;
416
985
  itemVariable: string;
986
+ model?: string | undefined;
417
987
  name?: string | undefined;
418
988
  conditions?: string[] | undefined;
419
989
  timeout?: number | undefined;
420
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;
421
1004
  }, {
422
- id: string;
423
1005
  type: "map";
1006
+ id: string;
424
1007
  expression: string;
425
1008
  items: string;
1009
+ model?: string | undefined;
426
1010
  name?: string | undefined;
427
1011
  conditions?: string[] | undefined;
428
1012
  timeout?: number | undefined;
429
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;
430
1027
  itemVariable?: string | undefined;
431
1028
  }>;
432
1029
  declare const FilterStepSchema: z.ZodObject<{
@@ -435,30 +1032,94 @@ declare const FilterStepSchema: z.ZodObject<{
435
1032
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
1033
  timeout: z.ZodOptional<z.ZodNumber>;
437
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
+ }>>;
438
1071
  } & {
439
1072
  type: z.ZodLiteral<"filter">;
440
1073
  items: z.ZodString;
441
1074
  itemVariable: z.ZodDefault<z.ZodString>;
442
1075
  condition: z.ZodString;
443
1076
  }, "strip", z.ZodTypeAny, {
444
- id: string;
445
1077
  type: "filter";
1078
+ id: string;
446
1079
  condition: string;
447
1080
  items: string;
448
1081
  itemVariable: string;
1082
+ model?: string | undefined;
449
1083
  name?: string | undefined;
450
1084
  conditions?: string[] | undefined;
451
1085
  timeout?: number | undefined;
452
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;
453
1100
  }, {
454
- id: string;
455
1101
  type: "filter";
1102
+ id: string;
456
1103
  condition: string;
457
1104
  items: string;
1105
+ model?: string | undefined;
458
1106
  name?: string | undefined;
459
1107
  conditions?: string[] | undefined;
460
1108
  timeout?: number | undefined;
461
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;
462
1123
  itemVariable?: string | undefined;
463
1124
  }>;
464
1125
  declare const ReduceStepSchema: z.ZodObject<{
@@ -467,6 +1128,42 @@ declare const ReduceStepSchema: z.ZodObject<{
467
1128
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
468
1129
  timeout: z.ZodOptional<z.ZodNumber>;
469
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
+ }>>;
470
1167
  } & {
471
1168
  type: z.ZodLiteral<"reduce">;
472
1169
  items: z.ZodString;
@@ -475,26 +1172,54 @@ declare const ReduceStepSchema: z.ZodObject<{
475
1172
  initialValue: z.ZodOptional<z.ZodUnknown>;
476
1173
  expression: z.ZodString;
477
1174
  }, "strip", z.ZodTypeAny, {
478
- id: string;
479
1175
  type: "reduce";
1176
+ id: string;
480
1177
  expression: string;
481
1178
  items: string;
482
1179
  itemVariable: string;
483
1180
  accumulatorVariable: string;
1181
+ model?: string | undefined;
484
1182
  name?: string | undefined;
485
1183
  conditions?: string[] | undefined;
486
1184
  timeout?: number | undefined;
487
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;
488
1199
  initialValue?: unknown;
489
1200
  }, {
490
- id: string;
491
1201
  type: "reduce";
1202
+ id: string;
492
1203
  expression: string;
493
1204
  items: string;
1205
+ model?: string | undefined;
494
1206
  name?: string | undefined;
495
1207
  conditions?: string[] | undefined;
496
1208
  timeout?: number | undefined;
497
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;
498
1223
  itemVariable?: string | undefined;
499
1224
  accumulatorVariable?: string | undefined;
500
1225
  initialValue?: unknown;
@@ -518,6 +1243,42 @@ declare const ParallelStepSchema: z.ZodObject<{
518
1243
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
519
1244
  timeout: z.ZodOptional<z.ZodNumber>;
520
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
+ }>>;
521
1282
  } & {
522
1283
  type: z.ZodLiteral<"parallel">;
523
1284
  branches: z.ZodArray<z.ZodObject<{
@@ -536,31 +1297,59 @@ declare const ParallelStepSchema: z.ZodObject<{
536
1297
  maxConcurrent: z.ZodOptional<z.ZodNumber>;
537
1298
  onError: z.ZodDefault<z.ZodEnum<["stop", "continue"]>>;
538
1299
  }, "strip", z.ZodTypeAny, {
539
- id: string;
540
1300
  type: "parallel";
1301
+ id: string;
541
1302
  branches: {
542
1303
  id: string;
543
1304
  name?: string | undefined;
544
1305
  steps?: any;
545
1306
  }[];
546
1307
  onError: "continue" | "stop";
1308
+ model?: string | undefined;
547
1309
  name?: string | undefined;
548
1310
  conditions?: string[] | undefined;
549
1311
  timeout?: number | undefined;
550
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;
551
1326
  maxConcurrent?: number | undefined;
552
1327
  }, {
553
- id: string;
554
1328
  type: "parallel";
1329
+ id: string;
555
1330
  branches: {
556
1331
  id: string;
557
1332
  name?: string | undefined;
558
1333
  steps?: any;
559
1334
  }[];
1335
+ model?: string | undefined;
560
1336
  name?: string | undefined;
561
1337
  conditions?: string[] | undefined;
562
1338
  timeout?: number | undefined;
563
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;
564
1353
  maxConcurrent?: number | undefined;
565
1354
  onError?: "continue" | "stop" | undefined;
566
1355
  }>;
@@ -570,32 +1359,500 @@ declare const TryStepSchema: z.ZodObject<{
570
1359
  conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
571
1360
  timeout: z.ZodOptional<z.ZodNumber>;
572
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
+ }>>;
573
1398
  } & {
574
1399
  type: z.ZodLiteral<"try">;
575
1400
  try: z.ZodTypeAny;
576
1401
  catch: z.ZodOptional<z.ZodTypeAny>;
577
1402
  finally: z.ZodOptional<z.ZodTypeAny>;
578
1403
  }, "strip", z.ZodTypeAny, {
579
- id: string;
580
1404
  type: "try";
1405
+ id: string;
581
1406
  try?: any;
1407
+ model?: string | undefined;
582
1408
  name?: string | undefined;
583
1409
  conditions?: string[] | undefined;
584
1410
  timeout?: number | undefined;
585
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;
586
1425
  catch?: any;
587
1426
  finally?: any;
588
1427
  }, {
589
- id: string;
590
1428
  type: "try";
1429
+ id: string;
591
1430
  try?: any;
1431
+ model?: string | undefined;
592
1432
  name?: string | undefined;
593
1433
  conditions?: string[] | undefined;
594
1434
  timeout?: number | undefined;
595
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;
596
1449
  catch?: any;
597
1450
  finally?: any;
598
1451
  }>;
1452
+ declare const ScriptStepSchema: z.ZodObject<{
1453
+ id: z.ZodString;
1454
+ name: z.ZodOptional<z.ZodString>;
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
+ }>;
1506
+ errorHandling: z.ZodOptional<z.ZodObject<{
1507
+ action: z.ZodDefault<z.ZodEnum<["continue", "stop", "rollback"]>>;
1508
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1509
+ retryDelaySeconds: z.ZodDefault<z.ZodNumber>;
1510
+ fallbackAction: z.ZodOptional<z.ZodString>;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ action: "continue" | "stop" | "rollback";
1513
+ maxRetries: number;
1514
+ retryDelaySeconds: number;
1515
+ fallbackAction?: string | undefined;
1516
+ }, {
1517
+ action?: "continue" | "stop" | "rollback" | undefined;
1518
+ maxRetries?: number | undefined;
1519
+ retryDelaySeconds?: number | undefined;
1520
+ fallbackAction?: string | undefined;
1521
+ }>>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ type: "script";
1524
+ id: string;
1525
+ inputs: {
1526
+ code: string;
1527
+ timeout: number;
1528
+ };
1529
+ model?: string | undefined;
1530
+ name?: string | undefined;
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;
1547
+ errorHandling?: {
1548
+ action: "continue" | "stop" | "rollback";
1549
+ maxRetries: number;
1550
+ retryDelaySeconds: number;
1551
+ fallbackAction?: string | undefined;
1552
+ } | undefined;
1553
+ }, {
1554
+ type: "script";
1555
+ id: string;
1556
+ inputs: {
1557
+ code: string;
1558
+ timeout?: number | undefined;
1559
+ };
1560
+ model?: string | undefined;
1561
+ name?: string | undefined;
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;
1578
+ errorHandling?: {
1579
+ action?: "continue" | "stop" | "rollback" | undefined;
1580
+ maxRetries?: number | undefined;
1581
+ retryDelaySeconds?: number | undefined;
1582
+ fallbackAction?: string | undefined;
1583
+ } | undefined;
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";
1688
+ id: string;
1689
+ mode: "webhook" | "duration" | "form";
1690
+ model?: string | undefined;
1691
+ name?: string | undefined;
1692
+ conditions?: string[] | undefined;
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;
1719
+ }, {
1720
+ type: "wait";
1721
+ id: string;
1722
+ mode: "webhook" | "duration" | "form";
1723
+ model?: string | undefined;
1724
+ name?: string | undefined;
1725
+ conditions?: string[] | undefined;
1726
+ timeout?: number | undefined;
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;
1813
+ conditions?: 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;
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;
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;
1855
+ }>;
599
1856
  declare const WorkflowStepUnionSchema: z.ZodTypeAny;
600
1857
  export { WorkflowStepUnionSchema as WorkflowStepSchema };
601
1858
  export declare const TriggerSchema: z.ZodObject<{
@@ -604,29 +1861,29 @@ export declare const TriggerSchema: z.ZodObject<{
604
1861
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
605
1862
  }, "strip", z.ZodTypeAny, {
606
1863
  type: "manual" | "schedule" | "webhook" | "event";
607
- enabled: boolean;
608
1864
  config: Record<string, unknown>;
1865
+ enabled: boolean;
609
1866
  }, {
610
1867
  type: "manual" | "schedule" | "webhook" | "event";
611
- enabled?: boolean | undefined;
612
1868
  config?: Record<string, unknown> | undefined;
1869
+ enabled?: boolean | undefined;
613
1870
  }>;
614
1871
  export declare const WorkflowInputSchema: z.ZodObject<{
615
- type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1872
+ type: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object"]>;
616
1873
  required: z.ZodDefault<z.ZodBoolean>;
617
1874
  default: z.ZodOptional<z.ZodUnknown>;
618
1875
  description: z.ZodOptional<z.ZodString>;
619
1876
  validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
620
1877
  }, "strip", z.ZodTypeAny, {
621
- type: "string" | "number" | "boolean" | "object" | "array";
1878
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
622
1879
  required: boolean;
623
- description?: string | undefined;
624
1880
  validation?: Record<string, unknown> | undefined;
1881
+ description?: string | undefined;
625
1882
  default?: unknown;
626
1883
  }, {
627
- type: "string" | "number" | "boolean" | "object" | "array";
628
- description?: string | undefined;
1884
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
629
1885
  validation?: Record<string, unknown> | undefined;
1886
+ description?: string | undefined;
630
1887
  default?: unknown;
631
1888
  required?: boolean | undefined;
632
1889
  }>;
@@ -666,22 +1923,58 @@ export declare const WorkflowSchema: z.ZodObject<{
666
1923
  options?: Record<string, unknown> | undefined;
667
1924
  auth?: Record<string, string> | undefined;
668
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
+ }>>;
669
1962
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
670
- type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1963
+ type: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object"]>;
671
1964
  required: z.ZodDefault<z.ZodBoolean>;
672
1965
  default: z.ZodOptional<z.ZodUnknown>;
673
1966
  description: z.ZodOptional<z.ZodString>;
674
1967
  validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
675
1968
  }, "strip", z.ZodTypeAny, {
676
- type: "string" | "number" | "boolean" | "object" | "array";
1969
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
677
1970
  required: boolean;
678
- description?: string | undefined;
679
1971
  validation?: Record<string, unknown> | undefined;
1972
+ description?: string | undefined;
680
1973
  default?: unknown;
681
1974
  }, {
682
- type: "string" | "number" | "boolean" | "object" | "array";
683
- description?: string | undefined;
1975
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
684
1976
  validation?: Record<string, unknown> | undefined;
1977
+ description?: string | undefined;
685
1978
  default?: unknown;
686
1979
  required?: boolean | undefined;
687
1980
  }>>>;
@@ -691,16 +1984,57 @@ export declare const WorkflowSchema: z.ZodObject<{
691
1984
  config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
692
1985
  }, "strip", z.ZodTypeAny, {
693
1986
  type: "manual" | "schedule" | "webhook" | "event";
694
- enabled: boolean;
695
1987
  config: Record<string, unknown>;
1988
+ enabled: boolean;
696
1989
  }, {
697
1990
  type: "manual" | "schedule" | "webhook" | "event";
698
- enabled?: boolean | undefined;
699
1991
  config?: Record<string, unknown> | undefined;
1992
+ enabled?: boolean | undefined;
700
1993
  }>, "many">>;
701
1994
  steps: z.ZodArray<z.ZodTypeAny, "many">;
702
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>;
2007
+ }, "strip", z.ZodTypeAny, {
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;
2018
+ }, {
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>;
703
2032
  }, "strip", z.ZodTypeAny, {
2033
+ tools: Record<string, {
2034
+ sdk: string;
2035
+ options?: Record<string, unknown> | undefined;
2036
+ auth?: Record<string, string> | undefined;
2037
+ }>;
704
2038
  steps: any[];
705
2039
  metadata: {
706
2040
  id: string;
@@ -710,24 +2044,43 @@ export declare const WorkflowSchema: z.ZodObject<{
710
2044
  author?: string | undefined;
711
2045
  tags?: string[] | undefined;
712
2046
  };
713
- tools: Record<string, {
714
- sdk: string;
715
- options?: Record<string, unknown> | undefined;
716
- auth?: Record<string, string> | undefined;
717
- }>;
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;
718
2059
  inputs?: Record<string, {
719
- type: "string" | "number" | "boolean" | "object" | "array";
2060
+ type: "string" | "number" | "boolean" | "object" | "integer" | "array";
720
2061
  required: boolean;
721
- description?: string | undefined;
722
2062
  validation?: Record<string, unknown> | undefined;
2063
+ description?: string | undefined;
723
2064
  default?: unknown;
724
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;
725
2076
  triggers?: {
726
2077
  type: "manual" | "schedule" | "webhook" | "event";
727
- enabled: boolean;
728
2078
  config: Record<string, unknown>;
2079
+ enabled: boolean;
729
2080
  }[] | undefined;
730
2081
  rawContent?: string | undefined;
2082
+ defaultAgent?: string | undefined;
2083
+ defaultModel?: string | undefined;
731
2084
  }, {
732
2085
  steps: any[];
733
2086
  metadata: {
@@ -738,27 +2091,53 @@ export declare const WorkflowSchema: z.ZodObject<{
738
2091
  author?: string | undefined;
739
2092
  tags?: string[] | undefined;
740
2093
  };
741
- inputs?: Record<string, {
742
- type: "string" | "number" | "boolean" | "object" | "array";
743
- description?: string | undefined;
744
- validation?: Record<string, unknown> | undefined;
745
- default?: unknown;
746
- required?: boolean | undefined;
747
- }> | undefined;
748
2094
  tools?: Record<string, {
749
2095
  sdk: string;
750
2096
  options?: Record<string, unknown> | undefined;
751
2097
  auth?: Record<string, string> | undefined;
752
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;
753
2128
  triggers?: {
754
2129
  type: "manual" | "schedule" | "webhook" | "event";
755
- enabled?: boolean | undefined;
756
2130
  config?: Record<string, unknown> | undefined;
2131
+ enabled?: boolean | undefined;
757
2132
  }[] | undefined;
758
2133
  rawContent?: string | undefined;
2134
+ defaultAgent?: string | undefined;
2135
+ defaultModel?: string | undefined;
759
2136
  }>;
760
2137
  export type WorkflowMetadata = z.infer<typeof WorkflowMetadataSchema>;
761
2138
  export type ToolConfig = z.infer<typeof ToolConfigSchema>;
2139
+ export type WorkflowSecretProvider = z.infer<typeof WorkflowSecretProviderSchema>;
2140
+ export type WorkflowSecretsConfig = z.infer<typeof WorkflowSecretsConfigSchema>;
762
2141
  export type ErrorHandling = z.infer<typeof ErrorHandlingSchema>;
763
2142
  export type Trigger = z.infer<typeof TriggerSchema>;
764
2143
  export type WorkflowInput = z.infer<typeof WorkflowInputSchema>;
@@ -775,6 +2154,10 @@ export type ReduceStep = z.infer<typeof ReduceStepSchema>;
775
2154
  export type ParallelStep = z.infer<typeof ParallelStepSchema>;
776
2155
  export type ParallelBranch = z.infer<typeof ParallelBranchSchema>;
777
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>;
778
2161
  export type WorkflowStep = z.infer<typeof WorkflowStepUnionSchema>;
779
2162
  export declare function isActionStep(step: WorkflowStep): step is ActionStep;
780
2163
  export declare function isSubWorkflowStep(step: WorkflowStep): step is SubWorkflowStep;
@@ -787,6 +2170,9 @@ export declare function isFilterStep(step: WorkflowStep): step is FilterStep;
787
2170
  export declare function isReduceStep(step: WorkflowStep): step is ReduceStep;
788
2171
  export declare function isParallelStep(step: WorkflowStep): step is ParallelStep;
789
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;
790
2176
  export interface ExecutionContext {
791
2177
  workflowId: string;
792
2178
  runId: string;
@@ -800,13 +2186,14 @@ export interface ExecutionContext {
800
2186
  error?: string;
801
2187
  retryCount: number;
802
2188
  }>;
2189
+ workflowOutputs?: Record<string, unknown>;
803
2190
  [key: string]: unknown;
804
2191
  }
805
2192
  export interface StepResult {
806
2193
  stepId: string;
807
2194
  status: StepStatus;
808
2195
  output: unknown;
809
- error: string | undefined;
2196
+ error: unknown;
810
2197
  startedAt: Date;
811
2198
  completedAt: Date;
812
2199
  duration: number;
@@ -824,5 +2211,5 @@ export interface WorkflowResult {
824
2211
  duration: number;
825
2212
  }
826
2213
  export declare function createExecutionContext(workflow: Workflow, inputs?: Record<string, unknown>): ExecutionContext;
827
- 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;
828
2215
  //# sourceMappingURL=models.d.ts.map