@graph-compose/core 1.0.0

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