@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,734 @@
1
+ import { z } from "zod";
2
+ export * from "./agents";
3
+ export * from "./common";
4
+ export * from "./destination";
5
+ export * from "./error-boundary";
6
+ export * from "./http";
7
+ export * from "./iterator";
8
+ export * from "./tools";
9
+ export declare const NodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10
+ id: z.ZodString;
11
+ iterationContext: z.ZodOptional<z.ZodObject<{
12
+ originalNodeId: z.ZodString;
13
+ iteratorNodeId: z.ZodString;
14
+ index: z.ZodNumber;
15
+ }, "strip", z.ZodTypeAny, {
16
+ originalNodeId: string;
17
+ iteratorNodeId: string;
18
+ index: number;
19
+ }, {
20
+ originalNodeId: string;
21
+ iteratorNodeId: string;
22
+ index: number;
23
+ }>>;
24
+ activityConfig: z.ZodOptional<z.ZodObject<{
25
+ retryPolicy: z.ZodOptional<z.ZodObject<{
26
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
27
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
28
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
29
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ backoffCoefficient?: number | undefined;
32
+ initialInterval?: string | undefined;
33
+ maximumAttempts?: number | undefined;
34
+ maximumInterval?: string | undefined;
35
+ }, {
36
+ backoffCoefficient?: number | undefined;
37
+ initialInterval?: string | undefined;
38
+ maximumAttempts?: number | undefined;
39
+ maximumInterval?: string | undefined;
40
+ }>>;
41
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
42
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ retryPolicy?: {
45
+ backoffCoefficient?: number | undefined;
46
+ initialInterval?: string | undefined;
47
+ maximumAttempts?: number | undefined;
48
+ maximumInterval?: string | undefined;
49
+ } | undefined;
50
+ startToCloseTimeout?: string | undefined;
51
+ scheduleToCloseTimeout?: string | undefined;
52
+ }, {
53
+ retryPolicy?: {
54
+ backoffCoefficient?: number | undefined;
55
+ initialInterval?: string | undefined;
56
+ maximumAttempts?: number | undefined;
57
+ maximumInterval?: string | undefined;
58
+ } | undefined;
59
+ startToCloseTimeout?: string | undefined;
60
+ scheduleToCloseTimeout?: string | undefined;
61
+ }>>;
62
+ } & {
63
+ type: z.ZodLiteral<"http">;
64
+ dependencies: z.ZodArray<z.ZodString, "many">;
65
+ http: z.ZodObject<{
66
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
67
+ url: z.ZodEffects<z.ZodString, string, string>;
68
+ 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>]>]>>>;
69
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
70
+ }, "strip", z.ZodTypeAny, {
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
+ url: string;
77
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
78
+ headers?: Record<string, string | Record<string, any>> | undefined;
79
+ body?: string | Record<string, any> | undefined;
80
+ }>;
81
+ validation: z.ZodOptional<z.ZodObject<{
82
+ input: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
83
+ output: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
86
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
87
+ }, {
88
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
89
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
90
+ }>>;
91
+ conditions: z.ZodOptional<z.ZodObject<{
92
+ continueTo: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
93
+ to: z.ZodString;
94
+ when: z.ZodEffects<z.ZodString, string, string>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ to: string;
97
+ when: string;
98
+ }, {
99
+ to: string;
100
+ when: string;
101
+ }>, "many">>, {
102
+ to: string;
103
+ when: string;
104
+ }[] | undefined, {
105
+ to: string;
106
+ when: string;
107
+ }[] | undefined>;
108
+ terminateWhen: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
109
+ pollUntil: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ continueTo?: {
112
+ to: string;
113
+ when: string;
114
+ }[] | undefined;
115
+ terminateWhen?: string[] | undefined;
116
+ pollUntil?: string[] | undefined;
117
+ }, {
118
+ continueTo?: {
119
+ to: string;
120
+ when: string;
121
+ }[] | undefined;
122
+ terminateWhen?: string[] | undefined;
123
+ pollUntil?: string[] | undefined;
124
+ }>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ type: "http";
127
+ id: string;
128
+ http: {
129
+ url: string;
130
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
131
+ headers?: Record<string, string | Record<string, any>> | undefined;
132
+ body?: string | Record<string, any> | undefined;
133
+ };
134
+ dependencies: string[];
135
+ validation?: {
136
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
137
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
138
+ } | undefined;
139
+ iterationContext?: {
140
+ originalNodeId: string;
141
+ iteratorNodeId: string;
142
+ index: number;
143
+ } | undefined;
144
+ activityConfig?: {
145
+ retryPolicy?: {
146
+ backoffCoefficient?: number | undefined;
147
+ initialInterval?: string | undefined;
148
+ maximumAttempts?: number | undefined;
149
+ maximumInterval?: string | undefined;
150
+ } | undefined;
151
+ startToCloseTimeout?: string | undefined;
152
+ scheduleToCloseTimeout?: string | undefined;
153
+ } | undefined;
154
+ conditions?: {
155
+ continueTo?: {
156
+ to: string;
157
+ when: string;
158
+ }[] | undefined;
159
+ terminateWhen?: string[] | undefined;
160
+ pollUntil?: string[] | undefined;
161
+ } | undefined;
162
+ }, {
163
+ type: "http";
164
+ id: string;
165
+ http: {
166
+ url: string;
167
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
168
+ headers?: Record<string, string | Record<string, any>> | undefined;
169
+ body?: string | Record<string, any> | undefined;
170
+ };
171
+ dependencies: string[];
172
+ validation?: {
173
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
174
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
175
+ } | undefined;
176
+ iterationContext?: {
177
+ originalNodeId: string;
178
+ iteratorNodeId: string;
179
+ index: number;
180
+ } | undefined;
181
+ activityConfig?: {
182
+ retryPolicy?: {
183
+ backoffCoefficient?: number | undefined;
184
+ initialInterval?: string | undefined;
185
+ maximumAttempts?: number | undefined;
186
+ maximumInterval?: string | undefined;
187
+ } | undefined;
188
+ startToCloseTimeout?: string | undefined;
189
+ scheduleToCloseTimeout?: string | undefined;
190
+ } | undefined;
191
+ conditions?: {
192
+ continueTo?: {
193
+ to: string;
194
+ when: string;
195
+ }[] | undefined;
196
+ terminateWhen?: string[] | undefined;
197
+ pollUntil?: string[] | undefined;
198
+ } | undefined;
199
+ }>, z.ZodObject<{
200
+ id: z.ZodString;
201
+ iterationContext: z.ZodOptional<z.ZodObject<{
202
+ originalNodeId: z.ZodString;
203
+ iteratorNodeId: z.ZodString;
204
+ index: z.ZodNumber;
205
+ }, "strip", z.ZodTypeAny, {
206
+ originalNodeId: string;
207
+ iteratorNodeId: string;
208
+ index: number;
209
+ }, {
210
+ originalNodeId: string;
211
+ iteratorNodeId: string;
212
+ index: number;
213
+ }>>;
214
+ activityConfig: z.ZodOptional<z.ZodObject<{
215
+ retryPolicy: z.ZodOptional<z.ZodObject<{
216
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
217
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
218
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
219
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ backoffCoefficient?: number | undefined;
222
+ initialInterval?: string | undefined;
223
+ maximumAttempts?: number | undefined;
224
+ maximumInterval?: string | undefined;
225
+ }, {
226
+ backoffCoefficient?: number | undefined;
227
+ initialInterval?: string | undefined;
228
+ maximumAttempts?: number | undefined;
229
+ maximumInterval?: string | undefined;
230
+ }>>;
231
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
232
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ retryPolicy?: {
235
+ backoffCoefficient?: number | undefined;
236
+ initialInterval?: string | undefined;
237
+ maximumAttempts?: number | undefined;
238
+ maximumInterval?: string | undefined;
239
+ } | undefined;
240
+ startToCloseTimeout?: string | undefined;
241
+ scheduleToCloseTimeout?: string | undefined;
242
+ }, {
243
+ retryPolicy?: {
244
+ backoffCoefficient?: number | undefined;
245
+ initialInterval?: string | undefined;
246
+ maximumAttempts?: number | undefined;
247
+ maximumInterval?: string | undefined;
248
+ } | undefined;
249
+ startToCloseTimeout?: string | undefined;
250
+ scheduleToCloseTimeout?: string | undefined;
251
+ }>>;
252
+ } & {
253
+ type: z.ZodLiteral<"error_boundary">;
254
+ protectedNodes: z.ZodArray<z.ZodString, "many">;
255
+ http: z.ZodObject<{
256
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
257
+ url: z.ZodEffects<z.ZodString, string, string>;
258
+ 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>]>]>>>;
259
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
260
+ }, "strip", z.ZodTypeAny, {
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
+ url: string;
267
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
268
+ headers?: Record<string, string | Record<string, any>> | undefined;
269
+ body?: string | Record<string, any> | undefined;
270
+ }>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ type: "error_boundary";
273
+ id: string;
274
+ http: {
275
+ url: string;
276
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
277
+ headers?: Record<string, string | Record<string, any>> | undefined;
278
+ body?: string | Record<string, any> | undefined;
279
+ };
280
+ protectedNodes: string[];
281
+ iterationContext?: {
282
+ originalNodeId: string;
283
+ iteratorNodeId: string;
284
+ index: number;
285
+ } | undefined;
286
+ activityConfig?: {
287
+ retryPolicy?: {
288
+ backoffCoefficient?: number | undefined;
289
+ initialInterval?: string | undefined;
290
+ maximumAttempts?: number | undefined;
291
+ maximumInterval?: string | undefined;
292
+ } | undefined;
293
+ startToCloseTimeout?: string | undefined;
294
+ scheduleToCloseTimeout?: string | undefined;
295
+ } | undefined;
296
+ }, {
297
+ type: "error_boundary";
298
+ id: string;
299
+ http: {
300
+ url: string;
301
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
302
+ headers?: Record<string, string | Record<string, any>> | undefined;
303
+ body?: string | Record<string, any> | undefined;
304
+ };
305
+ protectedNodes: string[];
306
+ iterationContext?: {
307
+ originalNodeId: string;
308
+ iteratorNodeId: string;
309
+ index: number;
310
+ } | undefined;
311
+ activityConfig?: {
312
+ retryPolicy?: {
313
+ backoffCoefficient?: number | undefined;
314
+ initialInterval?: string | undefined;
315
+ maximumAttempts?: number | undefined;
316
+ maximumInterval?: string | undefined;
317
+ } | undefined;
318
+ startToCloseTimeout?: string | undefined;
319
+ scheduleToCloseTimeout?: string | undefined;
320
+ } | undefined;
321
+ }>, z.ZodObject<{
322
+ id: z.ZodString;
323
+ iterationContext: z.ZodOptional<z.ZodObject<{
324
+ originalNodeId: z.ZodString;
325
+ iteratorNodeId: z.ZodString;
326
+ index: z.ZodNumber;
327
+ }, "strip", z.ZodTypeAny, {
328
+ originalNodeId: string;
329
+ iteratorNodeId: string;
330
+ index: number;
331
+ }, {
332
+ originalNodeId: string;
333
+ iteratorNodeId: string;
334
+ index: number;
335
+ }>>;
336
+ activityConfig: z.ZodOptional<z.ZodObject<{
337
+ retryPolicy: z.ZodOptional<z.ZodObject<{
338
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
339
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
340
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
341
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ backoffCoefficient?: number | undefined;
344
+ initialInterval?: string | undefined;
345
+ maximumAttempts?: number | undefined;
346
+ maximumInterval?: string | undefined;
347
+ }, {
348
+ backoffCoefficient?: number | undefined;
349
+ initialInterval?: string | undefined;
350
+ maximumAttempts?: number | undefined;
351
+ maximumInterval?: string | undefined;
352
+ }>>;
353
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
354
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ retryPolicy?: {
357
+ backoffCoefficient?: number | undefined;
358
+ initialInterval?: string | undefined;
359
+ maximumAttempts?: number | undefined;
360
+ maximumInterval?: string | undefined;
361
+ } | undefined;
362
+ startToCloseTimeout?: string | undefined;
363
+ scheduleToCloseTimeout?: string | undefined;
364
+ }, {
365
+ retryPolicy?: {
366
+ backoffCoefficient?: number | undefined;
367
+ initialInterval?: string | undefined;
368
+ maximumAttempts?: number | undefined;
369
+ maximumInterval?: string | undefined;
370
+ } | undefined;
371
+ startToCloseTimeout?: string | undefined;
372
+ scheduleToCloseTimeout?: string | undefined;
373
+ }>>;
374
+ } & {
375
+ type: z.ZodLiteral<"agent">;
376
+ http: z.ZodObject<{
377
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
378
+ url: z.ZodEffects<z.ZodString, string, string>;
379
+ 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>]>]>>>;
380
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
381
+ } & {
382
+ config: z.ZodDefault<z.ZodObject<{
383
+ max_iterations: z.ZodDefault<z.ZodNumber>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ max_iterations: number;
386
+ }, {
387
+ max_iterations?: number | undefined;
388
+ }>>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ url: string;
391
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
392
+ config: {
393
+ max_iterations: number;
394
+ };
395
+ headers?: Record<string, string | Record<string, any>> | undefined;
396
+ body?: string | Record<string, any> | undefined;
397
+ }, {
398
+ url: string;
399
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
400
+ headers?: Record<string, string | Record<string, any>> | undefined;
401
+ body?: string | Record<string, any> | undefined;
402
+ config?: {
403
+ max_iterations?: number | undefined;
404
+ } | undefined;
405
+ }>;
406
+ dependencies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
407
+ tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ type: "agent";
410
+ id: string;
411
+ http: {
412
+ url: string;
413
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
414
+ config: {
415
+ max_iterations: number;
416
+ };
417
+ headers?: Record<string, string | Record<string, any>> | undefined;
418
+ body?: string | Record<string, any> | undefined;
419
+ };
420
+ dependencies: string[];
421
+ tools: string[];
422
+ iterationContext?: {
423
+ originalNodeId: string;
424
+ iteratorNodeId: string;
425
+ index: number;
426
+ } | undefined;
427
+ activityConfig?: {
428
+ retryPolicy?: {
429
+ backoffCoefficient?: number | undefined;
430
+ initialInterval?: string | undefined;
431
+ maximumAttempts?: number | undefined;
432
+ maximumInterval?: string | undefined;
433
+ } | undefined;
434
+ startToCloseTimeout?: string | undefined;
435
+ scheduleToCloseTimeout?: string | undefined;
436
+ } | undefined;
437
+ }, {
438
+ type: "agent";
439
+ id: string;
440
+ http: {
441
+ url: string;
442
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
443
+ headers?: Record<string, string | Record<string, any>> | undefined;
444
+ body?: string | Record<string, any> | undefined;
445
+ config?: {
446
+ max_iterations?: number | undefined;
447
+ } | undefined;
448
+ };
449
+ iterationContext?: {
450
+ originalNodeId: string;
451
+ iteratorNodeId: string;
452
+ index: number;
453
+ } | undefined;
454
+ activityConfig?: {
455
+ retryPolicy?: {
456
+ backoffCoefficient?: number | undefined;
457
+ initialInterval?: string | undefined;
458
+ maximumAttempts?: number | undefined;
459
+ maximumInterval?: string | undefined;
460
+ } | undefined;
461
+ startToCloseTimeout?: string | undefined;
462
+ scheduleToCloseTimeout?: string | undefined;
463
+ } | undefined;
464
+ dependencies?: string[] | undefined;
465
+ tools?: string[] | undefined;
466
+ }>, z.ZodObject<{
467
+ id: z.ZodString;
468
+ iterationContext: z.ZodOptional<z.ZodObject<{
469
+ originalNodeId: z.ZodString;
470
+ iteratorNodeId: z.ZodString;
471
+ index: z.ZodNumber;
472
+ }, "strip", z.ZodTypeAny, {
473
+ originalNodeId: string;
474
+ iteratorNodeId: string;
475
+ index: number;
476
+ }, {
477
+ originalNodeId: string;
478
+ iteratorNodeId: string;
479
+ index: number;
480
+ }>>;
481
+ activityConfig: z.ZodOptional<z.ZodObject<{
482
+ retryPolicy: z.ZodOptional<z.ZodObject<{
483
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
484
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
485
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
486
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ backoffCoefficient?: number | undefined;
489
+ initialInterval?: string | undefined;
490
+ maximumAttempts?: number | undefined;
491
+ maximumInterval?: string | undefined;
492
+ }, {
493
+ backoffCoefficient?: number | undefined;
494
+ initialInterval?: string | undefined;
495
+ maximumAttempts?: number | undefined;
496
+ maximumInterval?: string | undefined;
497
+ }>>;
498
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
499
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ retryPolicy?: {
502
+ backoffCoefficient?: number | undefined;
503
+ initialInterval?: string | undefined;
504
+ maximumAttempts?: number | undefined;
505
+ maximumInterval?: string | undefined;
506
+ } | undefined;
507
+ startToCloseTimeout?: string | undefined;
508
+ scheduleToCloseTimeout?: string | undefined;
509
+ }, {
510
+ retryPolicy?: {
511
+ backoffCoefficient?: number | undefined;
512
+ initialInterval?: string | undefined;
513
+ maximumAttempts?: number | undefined;
514
+ maximumInterval?: string | undefined;
515
+ } | undefined;
516
+ startToCloseTimeout?: string | undefined;
517
+ scheduleToCloseTimeout?: string | undefined;
518
+ }>>;
519
+ } & {
520
+ type: z.ZodLiteral<"source_iterator">;
521
+ http: z.ZodObject<{
522
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
523
+ url: z.ZodEffects<z.ZodString, string, string>;
524
+ 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>]>]>>>;
525
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
526
+ }, "strip", z.ZodTypeAny, {
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
+ url: string;
533
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
534
+ headers?: Record<string, string | Record<string, any>> | undefined;
535
+ body?: string | Record<string, any> | undefined;
536
+ }>;
537
+ dependencies: z.ZodArray<z.ZodString, "many">;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "source_iterator";
540
+ id: string;
541
+ http: {
542
+ url: string;
543
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
544
+ headers?: Record<string, string | Record<string, any>> | undefined;
545
+ body?: string | Record<string, any> | undefined;
546
+ };
547
+ dependencies: string[];
548
+ iterationContext?: {
549
+ originalNodeId: string;
550
+ iteratorNodeId: string;
551
+ index: number;
552
+ } | undefined;
553
+ activityConfig?: {
554
+ retryPolicy?: {
555
+ backoffCoefficient?: number | undefined;
556
+ initialInterval?: string | undefined;
557
+ maximumAttempts?: number | undefined;
558
+ maximumInterval?: string | undefined;
559
+ } | undefined;
560
+ startToCloseTimeout?: string | undefined;
561
+ scheduleToCloseTimeout?: string | undefined;
562
+ } | undefined;
563
+ }, {
564
+ type: "source_iterator";
565
+ id: string;
566
+ http: {
567
+ url: string;
568
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
569
+ headers?: Record<string, string | Record<string, any>> | undefined;
570
+ body?: string | Record<string, any> | undefined;
571
+ };
572
+ dependencies: string[];
573
+ iterationContext?: {
574
+ originalNodeId: string;
575
+ iteratorNodeId: string;
576
+ index: number;
577
+ } | undefined;
578
+ activityConfig?: {
579
+ retryPolicy?: {
580
+ backoffCoefficient?: number | undefined;
581
+ initialInterval?: string | undefined;
582
+ maximumAttempts?: number | undefined;
583
+ maximumInterval?: string | undefined;
584
+ } | undefined;
585
+ startToCloseTimeout?: string | undefined;
586
+ scheduleToCloseTimeout?: string | undefined;
587
+ } | undefined;
588
+ }>, z.ZodObject<{
589
+ id: z.ZodString;
590
+ iterationContext: z.ZodOptional<z.ZodObject<{
591
+ originalNodeId: z.ZodString;
592
+ iteratorNodeId: z.ZodString;
593
+ index: z.ZodNumber;
594
+ }, "strip", z.ZodTypeAny, {
595
+ originalNodeId: string;
596
+ iteratorNodeId: string;
597
+ index: number;
598
+ }, {
599
+ originalNodeId: string;
600
+ iteratorNodeId: string;
601
+ index: number;
602
+ }>>;
603
+ activityConfig: z.ZodOptional<z.ZodObject<{
604
+ retryPolicy: z.ZodOptional<z.ZodObject<{
605
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
606
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
607
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
608
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ backoffCoefficient?: number | undefined;
611
+ initialInterval?: string | undefined;
612
+ maximumAttempts?: number | undefined;
613
+ maximumInterval?: string | undefined;
614
+ }, {
615
+ backoffCoefficient?: number | undefined;
616
+ initialInterval?: string | undefined;
617
+ maximumAttempts?: number | undefined;
618
+ maximumInterval?: string | undefined;
619
+ }>>;
620
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
621
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
622
+ }, "strip", z.ZodTypeAny, {
623
+ retryPolicy?: {
624
+ backoffCoefficient?: number | undefined;
625
+ initialInterval?: string | undefined;
626
+ maximumAttempts?: number | undefined;
627
+ maximumInterval?: string | undefined;
628
+ } | undefined;
629
+ startToCloseTimeout?: string | undefined;
630
+ scheduleToCloseTimeout?: string | undefined;
631
+ }, {
632
+ retryPolicy?: {
633
+ backoffCoefficient?: number | undefined;
634
+ initialInterval?: string | undefined;
635
+ maximumAttempts?: number | undefined;
636
+ maximumInterval?: string | undefined;
637
+ } | undefined;
638
+ startToCloseTimeout?: string | undefined;
639
+ scheduleToCloseTimeout?: string | undefined;
640
+ }>>;
641
+ } & {
642
+ type: z.ZodLiteral<"destination">;
643
+ http: z.ZodObject<{
644
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
645
+ url: z.ZodEffects<z.ZodString, string, string>;
646
+ 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>]>]>>>;
647
+ } & {
648
+ body: z.ZodObject<{
649
+ sheetId: z.ZodString;
650
+ cellValues: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
651
+ }, "strip", z.ZodTypeAny, {
652
+ sheetId: string;
653
+ cellValues: string[];
654
+ }, {
655
+ sheetId: string;
656
+ cellValues: string[];
657
+ }>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ url: string;
660
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
661
+ body: {
662
+ sheetId: string;
663
+ cellValues: string[];
664
+ };
665
+ headers?: Record<string, string | Record<string, any>> | undefined;
666
+ }, {
667
+ url: string;
668
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
669
+ body: {
670
+ sheetId: string;
671
+ cellValues: string[];
672
+ };
673
+ headers?: Record<string, string | Record<string, any>> | undefined;
674
+ }>;
675
+ dependencies: z.ZodArray<z.ZodString, "many">;
676
+ }, "strip", z.ZodTypeAny, {
677
+ type: "destination";
678
+ id: string;
679
+ http: {
680
+ url: string;
681
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
682
+ body: {
683
+ sheetId: string;
684
+ cellValues: string[];
685
+ };
686
+ headers?: Record<string, string | Record<string, any>> | undefined;
687
+ };
688
+ dependencies: string[];
689
+ iterationContext?: {
690
+ originalNodeId: string;
691
+ iteratorNodeId: string;
692
+ index: number;
693
+ } | undefined;
694
+ activityConfig?: {
695
+ retryPolicy?: {
696
+ backoffCoefficient?: number | undefined;
697
+ initialInterval?: string | undefined;
698
+ maximumAttempts?: number | undefined;
699
+ maximumInterval?: string | undefined;
700
+ } | undefined;
701
+ startToCloseTimeout?: string | undefined;
702
+ scheduleToCloseTimeout?: string | undefined;
703
+ } | undefined;
704
+ }, {
705
+ type: "destination";
706
+ id: string;
707
+ http: {
708
+ url: string;
709
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
710
+ body: {
711
+ sheetId: string;
712
+ cellValues: string[];
713
+ };
714
+ headers?: Record<string, string | Record<string, any>> | undefined;
715
+ };
716
+ dependencies: string[];
717
+ iterationContext?: {
718
+ originalNodeId: string;
719
+ iteratorNodeId: string;
720
+ index: number;
721
+ } | undefined;
722
+ activityConfig?: {
723
+ retryPolicy?: {
724
+ backoffCoefficient?: number | undefined;
725
+ initialInterval?: string | undefined;
726
+ maximumAttempts?: number | undefined;
727
+ maximumInterval?: string | undefined;
728
+ } | undefined;
729
+ startToCloseTimeout?: string | undefined;
730
+ scheduleToCloseTimeout?: string | undefined;
731
+ } | undefined;
732
+ }>]>;
733
+ export type Node = z.infer<typeof NodeSchema>;
734
+ //# sourceMappingURL=index.d.ts.map