@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,1321 @@
1
+ import { z } from "zod";
2
+ export declare const BaseToolSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ type: z.ZodEnum<["http", "graph"]>;
6
+ activityConfig: z.ZodOptional<z.ZodObject<{
7
+ retryPolicy: z.ZodOptional<z.ZodObject<{
8
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
9
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
10
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
11
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ backoffCoefficient?: number | undefined;
14
+ initialInterval?: string | undefined;
15
+ maximumAttempts?: number | undefined;
16
+ maximumInterval?: string | undefined;
17
+ }, {
18
+ backoffCoefficient?: number | undefined;
19
+ initialInterval?: string | undefined;
20
+ maximumAttempts?: number | undefined;
21
+ maximumInterval?: string | undefined;
22
+ }>>;
23
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
24
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ retryPolicy?: {
27
+ backoffCoefficient?: number | undefined;
28
+ initialInterval?: string | undefined;
29
+ maximumAttempts?: number | undefined;
30
+ maximumInterval?: string | undefined;
31
+ } | undefined;
32
+ startToCloseTimeout?: string | undefined;
33
+ scheduleToCloseTimeout?: string | undefined;
34
+ }, {
35
+ retryPolicy?: {
36
+ backoffCoefficient?: number | undefined;
37
+ initialInterval?: string | undefined;
38
+ maximumAttempts?: number | undefined;
39
+ maximumInterval?: string | undefined;
40
+ } | undefined;
41
+ startToCloseTimeout?: string | undefined;
42
+ scheduleToCloseTimeout?: string | undefined;
43
+ }>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ type: "http" | "graph";
46
+ id: string;
47
+ description?: string | undefined;
48
+ activityConfig?: {
49
+ retryPolicy?: {
50
+ backoffCoefficient?: number | undefined;
51
+ initialInterval?: string | undefined;
52
+ maximumAttempts?: number | undefined;
53
+ maximumInterval?: string | undefined;
54
+ } | undefined;
55
+ startToCloseTimeout?: string | undefined;
56
+ scheduleToCloseTimeout?: string | undefined;
57
+ } | undefined;
58
+ }, {
59
+ type: "http" | "graph";
60
+ id: string;
61
+ description?: string | undefined;
62
+ activityConfig?: {
63
+ retryPolicy?: {
64
+ backoffCoefficient?: number | undefined;
65
+ initialInterval?: string | undefined;
66
+ maximumAttempts?: number | undefined;
67
+ maximumInterval?: string | undefined;
68
+ } | undefined;
69
+ startToCloseTimeout?: string | undefined;
70
+ scheduleToCloseTimeout?: string | undefined;
71
+ } | undefined;
72
+ }>;
73
+ export declare const HttpToolSchema: z.ZodObject<{
74
+ id: z.ZodString;
75
+ description: z.ZodOptional<z.ZodString>;
76
+ activityConfig: z.ZodOptional<z.ZodObject<{
77
+ retryPolicy: z.ZodOptional<z.ZodObject<{
78
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
79
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
80
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
81
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ backoffCoefficient?: number | undefined;
84
+ initialInterval?: string | undefined;
85
+ maximumAttempts?: number | undefined;
86
+ maximumInterval?: string | undefined;
87
+ }, {
88
+ backoffCoefficient?: number | undefined;
89
+ initialInterval?: string | undefined;
90
+ maximumAttempts?: number | undefined;
91
+ maximumInterval?: string | undefined;
92
+ }>>;
93
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
94
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ retryPolicy?: {
97
+ backoffCoefficient?: number | undefined;
98
+ initialInterval?: string | undefined;
99
+ maximumAttempts?: number | undefined;
100
+ maximumInterval?: string | undefined;
101
+ } | undefined;
102
+ startToCloseTimeout?: string | undefined;
103
+ scheduleToCloseTimeout?: string | undefined;
104
+ }, {
105
+ retryPolicy?: {
106
+ backoffCoefficient?: number | undefined;
107
+ initialInterval?: string | undefined;
108
+ maximumAttempts?: number | undefined;
109
+ maximumInterval?: string | undefined;
110
+ } | undefined;
111
+ startToCloseTimeout?: string | undefined;
112
+ scheduleToCloseTimeout?: string | undefined;
113
+ }>>;
114
+ } & {
115
+ type: z.ZodLiteral<"http">;
116
+ http: z.ZodObject<{
117
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
118
+ url: z.ZodEffects<z.ZodString, string, string>;
119
+ 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>]>]>>>;
120
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ url: string;
123
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
124
+ headers?: Record<string, string | Record<string, any>> | undefined;
125
+ body?: string | Record<string, any> | undefined;
126
+ }, {
127
+ url: string;
128
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
129
+ headers?: Record<string, string | Record<string, any>> | undefined;
130
+ body?: string | Record<string, any> | undefined;
131
+ }>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: "http";
134
+ id: string;
135
+ http: {
136
+ url: string;
137
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
138
+ headers?: Record<string, string | Record<string, any>> | undefined;
139
+ body?: string | Record<string, any> | undefined;
140
+ };
141
+ description?: string | undefined;
142
+ activityConfig?: {
143
+ retryPolicy?: {
144
+ backoffCoefficient?: number | undefined;
145
+ initialInterval?: string | undefined;
146
+ maximumAttempts?: number | undefined;
147
+ maximumInterval?: string | undefined;
148
+ } | undefined;
149
+ startToCloseTimeout?: string | undefined;
150
+ scheduleToCloseTimeout?: string | undefined;
151
+ } | undefined;
152
+ }, {
153
+ type: "http";
154
+ id: string;
155
+ http: {
156
+ url: string;
157
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
158
+ headers?: Record<string, string | Record<string, any>> | undefined;
159
+ body?: string | Record<string, any> | undefined;
160
+ };
161
+ description?: string | undefined;
162
+ activityConfig?: {
163
+ retryPolicy?: {
164
+ backoffCoefficient?: number | undefined;
165
+ initialInterval?: string | undefined;
166
+ maximumAttempts?: number | undefined;
167
+ maximumInterval?: string | undefined;
168
+ } | undefined;
169
+ startToCloseTimeout?: string | undefined;
170
+ scheduleToCloseTimeout?: string | undefined;
171
+ } | undefined;
172
+ }>;
173
+ export declare const GraphNodeTypeSchema: z.ZodEnum<["http"]>;
174
+ export declare const GraphNodeSchema: z.ZodObject<{
175
+ id: z.ZodString;
176
+ iterationContext: z.ZodOptional<z.ZodObject<{
177
+ originalNodeId: z.ZodString;
178
+ iteratorNodeId: z.ZodString;
179
+ index: z.ZodNumber;
180
+ }, "strip", z.ZodTypeAny, {
181
+ originalNodeId: string;
182
+ iteratorNodeId: string;
183
+ index: number;
184
+ }, {
185
+ originalNodeId: string;
186
+ iteratorNodeId: string;
187
+ index: number;
188
+ }>>;
189
+ activityConfig: z.ZodOptional<z.ZodObject<{
190
+ retryPolicy: z.ZodOptional<z.ZodObject<{
191
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
192
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
193
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
194
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ backoffCoefficient?: number | undefined;
197
+ initialInterval?: string | undefined;
198
+ maximumAttempts?: number | undefined;
199
+ maximumInterval?: string | undefined;
200
+ }, {
201
+ backoffCoefficient?: number | undefined;
202
+ initialInterval?: string | undefined;
203
+ maximumAttempts?: number | undefined;
204
+ maximumInterval?: string | undefined;
205
+ }>>;
206
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
207
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ retryPolicy?: {
210
+ backoffCoefficient?: number | undefined;
211
+ initialInterval?: string | undefined;
212
+ maximumAttempts?: number | undefined;
213
+ maximumInterval?: string | undefined;
214
+ } | undefined;
215
+ startToCloseTimeout?: string | undefined;
216
+ scheduleToCloseTimeout?: string | undefined;
217
+ }, {
218
+ retryPolicy?: {
219
+ backoffCoefficient?: number | undefined;
220
+ initialInterval?: string | undefined;
221
+ maximumAttempts?: number | undefined;
222
+ maximumInterval?: string | undefined;
223
+ } | undefined;
224
+ startToCloseTimeout?: string | undefined;
225
+ scheduleToCloseTimeout?: string | undefined;
226
+ }>>;
227
+ } & {
228
+ type: z.ZodLiteral<"http">;
229
+ dependencies: z.ZodArray<z.ZodString, "many">;
230
+ http: z.ZodObject<{
231
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
232
+ url: z.ZodEffects<z.ZodString, string, string>;
233
+ 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>]>]>>>;
234
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ url: string;
237
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
238
+ headers?: Record<string, string | Record<string, any>> | undefined;
239
+ body?: string | Record<string, any> | undefined;
240
+ }, {
241
+ url: string;
242
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
243
+ headers?: Record<string, string | Record<string, any>> | undefined;
244
+ body?: string | Record<string, any> | undefined;
245
+ }>;
246
+ validation: z.ZodOptional<z.ZodObject<{
247
+ input: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
248
+ output: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
251
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
252
+ }, {
253
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
254
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
255
+ }>>;
256
+ conditions: z.ZodOptional<z.ZodObject<{
257
+ continueTo: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
258
+ to: z.ZodString;
259
+ when: z.ZodEffects<z.ZodString, string, string>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ to: string;
262
+ when: string;
263
+ }, {
264
+ to: string;
265
+ when: string;
266
+ }>, "many">>, {
267
+ to: string;
268
+ when: string;
269
+ }[] | undefined, {
270
+ to: string;
271
+ when: string;
272
+ }[] | undefined>;
273
+ terminateWhen: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
274
+ pollUntil: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ continueTo?: {
277
+ to: string;
278
+ when: string;
279
+ }[] | undefined;
280
+ terminateWhen?: string[] | undefined;
281
+ pollUntil?: string[] | undefined;
282
+ }, {
283
+ continueTo?: {
284
+ to: string;
285
+ when: string;
286
+ }[] | undefined;
287
+ terminateWhen?: string[] | undefined;
288
+ pollUntil?: string[] | undefined;
289
+ }>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ type: "http";
292
+ id: string;
293
+ http: {
294
+ url: string;
295
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
296
+ headers?: Record<string, string | Record<string, any>> | undefined;
297
+ body?: string | Record<string, any> | undefined;
298
+ };
299
+ dependencies: string[];
300
+ validation?: {
301
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
302
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
303
+ } | undefined;
304
+ iterationContext?: {
305
+ originalNodeId: string;
306
+ iteratorNodeId: string;
307
+ index: number;
308
+ } | undefined;
309
+ activityConfig?: {
310
+ retryPolicy?: {
311
+ backoffCoefficient?: number | undefined;
312
+ initialInterval?: string | undefined;
313
+ maximumAttempts?: number | undefined;
314
+ maximumInterval?: string | undefined;
315
+ } | undefined;
316
+ startToCloseTimeout?: string | undefined;
317
+ scheduleToCloseTimeout?: string | undefined;
318
+ } | undefined;
319
+ conditions?: {
320
+ continueTo?: {
321
+ to: string;
322
+ when: string;
323
+ }[] | undefined;
324
+ terminateWhen?: string[] | undefined;
325
+ pollUntil?: string[] | undefined;
326
+ } | undefined;
327
+ }, {
328
+ type: "http";
329
+ id: string;
330
+ http: {
331
+ url: string;
332
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
333
+ headers?: Record<string, string | Record<string, any>> | undefined;
334
+ body?: string | Record<string, any> | undefined;
335
+ };
336
+ dependencies: string[];
337
+ validation?: {
338
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
339
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
340
+ } | undefined;
341
+ iterationContext?: {
342
+ originalNodeId: string;
343
+ iteratorNodeId: string;
344
+ index: number;
345
+ } | undefined;
346
+ activityConfig?: {
347
+ retryPolicy?: {
348
+ backoffCoefficient?: number | undefined;
349
+ initialInterval?: string | undefined;
350
+ maximumAttempts?: number | undefined;
351
+ maximumInterval?: string | undefined;
352
+ } | undefined;
353
+ startToCloseTimeout?: string | undefined;
354
+ scheduleToCloseTimeout?: string | undefined;
355
+ } | undefined;
356
+ conditions?: {
357
+ continueTo?: {
358
+ to: string;
359
+ when: string;
360
+ }[] | undefined;
361
+ terminateWhen?: string[] | undefined;
362
+ pollUntil?: string[] | undefined;
363
+ } | undefined;
364
+ }>;
365
+ export declare const GraphToolSchema: z.ZodObject<{
366
+ id: z.ZodString;
367
+ description: z.ZodOptional<z.ZodString>;
368
+ activityConfig: z.ZodOptional<z.ZodObject<{
369
+ retryPolicy: z.ZodOptional<z.ZodObject<{
370
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
371
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
372
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
373
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ backoffCoefficient?: number | undefined;
376
+ initialInterval?: string | undefined;
377
+ maximumAttempts?: number | undefined;
378
+ maximumInterval?: string | undefined;
379
+ }, {
380
+ backoffCoefficient?: number | undefined;
381
+ initialInterval?: string | undefined;
382
+ maximumAttempts?: number | undefined;
383
+ maximumInterval?: string | undefined;
384
+ }>>;
385
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
386
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ retryPolicy?: {
389
+ backoffCoefficient?: number | undefined;
390
+ initialInterval?: string | undefined;
391
+ maximumAttempts?: number | undefined;
392
+ maximumInterval?: string | undefined;
393
+ } | undefined;
394
+ startToCloseTimeout?: string | undefined;
395
+ scheduleToCloseTimeout?: string | undefined;
396
+ }, {
397
+ retryPolicy?: {
398
+ backoffCoefficient?: number | undefined;
399
+ initialInterval?: string | undefined;
400
+ maximumAttempts?: number | undefined;
401
+ maximumInterval?: string | undefined;
402
+ } | undefined;
403
+ startToCloseTimeout?: string | undefined;
404
+ scheduleToCloseTimeout?: string | undefined;
405
+ }>>;
406
+ } & {
407
+ type: z.ZodLiteral<"graph">;
408
+ graph: z.ZodObject<{
409
+ nodes: z.ZodArray<z.ZodObject<{
410
+ id: z.ZodString;
411
+ iterationContext: z.ZodOptional<z.ZodObject<{
412
+ originalNodeId: z.ZodString;
413
+ iteratorNodeId: z.ZodString;
414
+ index: z.ZodNumber;
415
+ }, "strip", z.ZodTypeAny, {
416
+ originalNodeId: string;
417
+ iteratorNodeId: string;
418
+ index: number;
419
+ }, {
420
+ originalNodeId: string;
421
+ iteratorNodeId: string;
422
+ index: number;
423
+ }>>;
424
+ activityConfig: z.ZodOptional<z.ZodObject<{
425
+ retryPolicy: z.ZodOptional<z.ZodObject<{
426
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
427
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
428
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
429
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ backoffCoefficient?: number | undefined;
432
+ initialInterval?: string | undefined;
433
+ maximumAttempts?: number | undefined;
434
+ maximumInterval?: string | undefined;
435
+ }, {
436
+ backoffCoefficient?: number | undefined;
437
+ initialInterval?: string | undefined;
438
+ maximumAttempts?: number | undefined;
439
+ maximumInterval?: string | undefined;
440
+ }>>;
441
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
442
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ retryPolicy?: {
445
+ backoffCoefficient?: number | undefined;
446
+ initialInterval?: string | undefined;
447
+ maximumAttempts?: number | undefined;
448
+ maximumInterval?: string | undefined;
449
+ } | undefined;
450
+ startToCloseTimeout?: string | undefined;
451
+ scheduleToCloseTimeout?: string | undefined;
452
+ }, {
453
+ retryPolicy?: {
454
+ backoffCoefficient?: number | undefined;
455
+ initialInterval?: string | undefined;
456
+ maximumAttempts?: number | undefined;
457
+ maximumInterval?: string | undefined;
458
+ } | undefined;
459
+ startToCloseTimeout?: string | undefined;
460
+ scheduleToCloseTimeout?: string | undefined;
461
+ }>>;
462
+ } & {
463
+ type: z.ZodLiteral<"http">;
464
+ dependencies: z.ZodArray<z.ZodString, "many">;
465
+ http: z.ZodObject<{
466
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
467
+ url: z.ZodEffects<z.ZodString, string, string>;
468
+ 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>]>]>>>;
469
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ url: string;
472
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
473
+ headers?: Record<string, string | Record<string, any>> | undefined;
474
+ body?: string | Record<string, any> | undefined;
475
+ }, {
476
+ url: string;
477
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
478
+ headers?: Record<string, string | Record<string, any>> | undefined;
479
+ body?: string | Record<string, any> | undefined;
480
+ }>;
481
+ validation: z.ZodOptional<z.ZodObject<{
482
+ input: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
483
+ output: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
486
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
487
+ }, {
488
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
489
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
490
+ }>>;
491
+ conditions: z.ZodOptional<z.ZodObject<{
492
+ continueTo: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
493
+ to: z.ZodString;
494
+ when: z.ZodEffects<z.ZodString, string, string>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ to: string;
497
+ when: string;
498
+ }, {
499
+ to: string;
500
+ when: string;
501
+ }>, "many">>, {
502
+ to: string;
503
+ when: string;
504
+ }[] | undefined, {
505
+ to: string;
506
+ when: string;
507
+ }[] | undefined>;
508
+ terminateWhen: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
509
+ pollUntil: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ continueTo?: {
512
+ to: string;
513
+ when: string;
514
+ }[] | undefined;
515
+ terminateWhen?: string[] | undefined;
516
+ pollUntil?: string[] | undefined;
517
+ }, {
518
+ continueTo?: {
519
+ to: string;
520
+ when: string;
521
+ }[] | undefined;
522
+ terminateWhen?: string[] | undefined;
523
+ pollUntil?: string[] | undefined;
524
+ }>>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: "http";
527
+ id: string;
528
+ http: {
529
+ url: string;
530
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
531
+ headers?: Record<string, string | Record<string, any>> | undefined;
532
+ body?: string | Record<string, any> | undefined;
533
+ };
534
+ dependencies: string[];
535
+ validation?: {
536
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
537
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
538
+ } | undefined;
539
+ iterationContext?: {
540
+ originalNodeId: string;
541
+ iteratorNodeId: string;
542
+ index: number;
543
+ } | undefined;
544
+ activityConfig?: {
545
+ retryPolicy?: {
546
+ backoffCoefficient?: number | undefined;
547
+ initialInterval?: string | undefined;
548
+ maximumAttempts?: number | undefined;
549
+ maximumInterval?: string | undefined;
550
+ } | undefined;
551
+ startToCloseTimeout?: string | undefined;
552
+ scheduleToCloseTimeout?: string | undefined;
553
+ } | undefined;
554
+ conditions?: {
555
+ continueTo?: {
556
+ to: string;
557
+ when: string;
558
+ }[] | undefined;
559
+ terminateWhen?: string[] | undefined;
560
+ pollUntil?: string[] | undefined;
561
+ } | undefined;
562
+ }, {
563
+ type: "http";
564
+ id: string;
565
+ http: {
566
+ url: string;
567
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
568
+ headers?: Record<string, string | Record<string, any>> | undefined;
569
+ body?: string | Record<string, any> | undefined;
570
+ };
571
+ dependencies: string[];
572
+ validation?: {
573
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
574
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
575
+ } | undefined;
576
+ iterationContext?: {
577
+ originalNodeId: string;
578
+ iteratorNodeId: string;
579
+ index: number;
580
+ } | undefined;
581
+ activityConfig?: {
582
+ retryPolicy?: {
583
+ backoffCoefficient?: number | undefined;
584
+ initialInterval?: string | undefined;
585
+ maximumAttempts?: number | undefined;
586
+ maximumInterval?: string | undefined;
587
+ } | undefined;
588
+ startToCloseTimeout?: string | undefined;
589
+ scheduleToCloseTimeout?: string | undefined;
590
+ } | undefined;
591
+ conditions?: {
592
+ continueTo?: {
593
+ to: string;
594
+ when: string;
595
+ }[] | undefined;
596
+ terminateWhen?: string[] | undefined;
597
+ pollUntil?: string[] | undefined;
598
+ } | undefined;
599
+ }>, "many">;
600
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ nodes: {
603
+ type: "http";
604
+ id: string;
605
+ http: {
606
+ url: string;
607
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
608
+ headers?: Record<string, string | Record<string, any>> | undefined;
609
+ body?: string | Record<string, any> | undefined;
610
+ };
611
+ dependencies: string[];
612
+ validation?: {
613
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
614
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
615
+ } | undefined;
616
+ iterationContext?: {
617
+ originalNodeId: string;
618
+ iteratorNodeId: string;
619
+ index: number;
620
+ } | undefined;
621
+ activityConfig?: {
622
+ retryPolicy?: {
623
+ backoffCoefficient?: number | undefined;
624
+ initialInterval?: string | undefined;
625
+ maximumAttempts?: number | undefined;
626
+ maximumInterval?: string | undefined;
627
+ } | undefined;
628
+ startToCloseTimeout?: string | undefined;
629
+ scheduleToCloseTimeout?: string | undefined;
630
+ } | undefined;
631
+ conditions?: {
632
+ continueTo?: {
633
+ to: string;
634
+ when: string;
635
+ }[] | undefined;
636
+ terminateWhen?: string[] | undefined;
637
+ pollUntil?: string[] | undefined;
638
+ } | undefined;
639
+ }[];
640
+ context?: Record<string, any> | undefined;
641
+ }, {
642
+ nodes: {
643
+ type: "http";
644
+ id: string;
645
+ http: {
646
+ url: string;
647
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
648
+ headers?: Record<string, string | Record<string, any>> | undefined;
649
+ body?: string | Record<string, any> | undefined;
650
+ };
651
+ dependencies: string[];
652
+ validation?: {
653
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
654
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
655
+ } | undefined;
656
+ iterationContext?: {
657
+ originalNodeId: string;
658
+ iteratorNodeId: string;
659
+ index: number;
660
+ } | undefined;
661
+ activityConfig?: {
662
+ retryPolicy?: {
663
+ backoffCoefficient?: number | undefined;
664
+ initialInterval?: string | undefined;
665
+ maximumAttempts?: number | undefined;
666
+ maximumInterval?: string | undefined;
667
+ } | undefined;
668
+ startToCloseTimeout?: string | undefined;
669
+ scheduleToCloseTimeout?: string | undefined;
670
+ } | undefined;
671
+ conditions?: {
672
+ continueTo?: {
673
+ to: string;
674
+ when: string;
675
+ }[] | undefined;
676
+ terminateWhen?: string[] | undefined;
677
+ pollUntil?: string[] | undefined;
678
+ } | undefined;
679
+ }[];
680
+ context?: Record<string, any> | undefined;
681
+ }>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: "graph";
684
+ id: string;
685
+ graph: {
686
+ nodes: {
687
+ type: "http";
688
+ id: string;
689
+ http: {
690
+ url: string;
691
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
692
+ headers?: Record<string, string | Record<string, any>> | undefined;
693
+ body?: string | Record<string, any> | undefined;
694
+ };
695
+ dependencies: string[];
696
+ validation?: {
697
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
698
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
699
+ } | undefined;
700
+ iterationContext?: {
701
+ originalNodeId: string;
702
+ iteratorNodeId: string;
703
+ index: number;
704
+ } | undefined;
705
+ activityConfig?: {
706
+ retryPolicy?: {
707
+ backoffCoefficient?: number | undefined;
708
+ initialInterval?: string | undefined;
709
+ maximumAttempts?: number | undefined;
710
+ maximumInterval?: string | undefined;
711
+ } | undefined;
712
+ startToCloseTimeout?: string | undefined;
713
+ scheduleToCloseTimeout?: string | undefined;
714
+ } | undefined;
715
+ conditions?: {
716
+ continueTo?: {
717
+ to: string;
718
+ when: string;
719
+ }[] | undefined;
720
+ terminateWhen?: string[] | undefined;
721
+ pollUntil?: string[] | undefined;
722
+ } | undefined;
723
+ }[];
724
+ context?: Record<string, any> | undefined;
725
+ };
726
+ description?: string | undefined;
727
+ activityConfig?: {
728
+ retryPolicy?: {
729
+ backoffCoefficient?: number | undefined;
730
+ initialInterval?: string | undefined;
731
+ maximumAttempts?: number | undefined;
732
+ maximumInterval?: string | undefined;
733
+ } | undefined;
734
+ startToCloseTimeout?: string | undefined;
735
+ scheduleToCloseTimeout?: string | undefined;
736
+ } | undefined;
737
+ }, {
738
+ type: "graph";
739
+ id: string;
740
+ graph: {
741
+ nodes: {
742
+ type: "http";
743
+ id: string;
744
+ http: {
745
+ url: string;
746
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
747
+ headers?: Record<string, string | Record<string, any>> | undefined;
748
+ body?: string | Record<string, any> | undefined;
749
+ };
750
+ dependencies: string[];
751
+ validation?: {
752
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
753
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
754
+ } | undefined;
755
+ iterationContext?: {
756
+ originalNodeId: string;
757
+ iteratorNodeId: string;
758
+ index: number;
759
+ } | undefined;
760
+ activityConfig?: {
761
+ retryPolicy?: {
762
+ backoffCoefficient?: number | undefined;
763
+ initialInterval?: string | undefined;
764
+ maximumAttempts?: number | undefined;
765
+ maximumInterval?: string | undefined;
766
+ } | undefined;
767
+ startToCloseTimeout?: string | undefined;
768
+ scheduleToCloseTimeout?: string | undefined;
769
+ } | undefined;
770
+ conditions?: {
771
+ continueTo?: {
772
+ to: string;
773
+ when: string;
774
+ }[] | undefined;
775
+ terminateWhen?: string[] | undefined;
776
+ pollUntil?: string[] | undefined;
777
+ } | undefined;
778
+ }[];
779
+ context?: Record<string, any> | undefined;
780
+ };
781
+ description?: string | undefined;
782
+ activityConfig?: {
783
+ retryPolicy?: {
784
+ backoffCoefficient?: number | undefined;
785
+ initialInterval?: string | undefined;
786
+ maximumAttempts?: number | undefined;
787
+ maximumInterval?: string | undefined;
788
+ } | undefined;
789
+ startToCloseTimeout?: string | undefined;
790
+ scheduleToCloseTimeout?: string | undefined;
791
+ } | undefined;
792
+ }>;
793
+ export declare const ToolNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
794
+ id: z.ZodString;
795
+ description: z.ZodOptional<z.ZodString>;
796
+ activityConfig: z.ZodOptional<z.ZodObject<{
797
+ retryPolicy: z.ZodOptional<z.ZodObject<{
798
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
799
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
800
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
801
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ backoffCoefficient?: number | undefined;
804
+ initialInterval?: string | undefined;
805
+ maximumAttempts?: number | undefined;
806
+ maximumInterval?: string | undefined;
807
+ }, {
808
+ backoffCoefficient?: number | undefined;
809
+ initialInterval?: string | undefined;
810
+ maximumAttempts?: number | undefined;
811
+ maximumInterval?: string | undefined;
812
+ }>>;
813
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
814
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ retryPolicy?: {
817
+ backoffCoefficient?: number | undefined;
818
+ initialInterval?: string | undefined;
819
+ maximumAttempts?: number | undefined;
820
+ maximumInterval?: string | undefined;
821
+ } | undefined;
822
+ startToCloseTimeout?: string | undefined;
823
+ scheduleToCloseTimeout?: string | undefined;
824
+ }, {
825
+ retryPolicy?: {
826
+ backoffCoefficient?: number | undefined;
827
+ initialInterval?: string | undefined;
828
+ maximumAttempts?: number | undefined;
829
+ maximumInterval?: string | undefined;
830
+ } | undefined;
831
+ startToCloseTimeout?: string | undefined;
832
+ scheduleToCloseTimeout?: string | undefined;
833
+ }>>;
834
+ } & {
835
+ type: z.ZodLiteral<"http">;
836
+ http: z.ZodObject<{
837
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
838
+ url: z.ZodEffects<z.ZodString, string, string>;
839
+ 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>]>]>>>;
840
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
841
+ }, "strip", z.ZodTypeAny, {
842
+ url: string;
843
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
844
+ headers?: Record<string, string | Record<string, any>> | undefined;
845
+ body?: string | Record<string, any> | undefined;
846
+ }, {
847
+ url: string;
848
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
849
+ headers?: Record<string, string | Record<string, any>> | undefined;
850
+ body?: string | Record<string, any> | undefined;
851
+ }>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ type: "http";
854
+ id: string;
855
+ http: {
856
+ url: string;
857
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
858
+ headers?: Record<string, string | Record<string, any>> | undefined;
859
+ body?: string | Record<string, any> | undefined;
860
+ };
861
+ description?: string | undefined;
862
+ activityConfig?: {
863
+ retryPolicy?: {
864
+ backoffCoefficient?: number | undefined;
865
+ initialInterval?: string | undefined;
866
+ maximumAttempts?: number | undefined;
867
+ maximumInterval?: string | undefined;
868
+ } | undefined;
869
+ startToCloseTimeout?: string | undefined;
870
+ scheduleToCloseTimeout?: string | undefined;
871
+ } | undefined;
872
+ }, {
873
+ type: "http";
874
+ id: string;
875
+ http: {
876
+ url: string;
877
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
878
+ headers?: Record<string, string | Record<string, any>> | undefined;
879
+ body?: string | Record<string, any> | undefined;
880
+ };
881
+ description?: string | undefined;
882
+ activityConfig?: {
883
+ retryPolicy?: {
884
+ backoffCoefficient?: number | undefined;
885
+ initialInterval?: string | undefined;
886
+ maximumAttempts?: number | undefined;
887
+ maximumInterval?: string | undefined;
888
+ } | undefined;
889
+ startToCloseTimeout?: string | undefined;
890
+ scheduleToCloseTimeout?: string | undefined;
891
+ } | undefined;
892
+ }>, z.ZodObject<{
893
+ id: z.ZodString;
894
+ description: z.ZodOptional<z.ZodString>;
895
+ activityConfig: z.ZodOptional<z.ZodObject<{
896
+ retryPolicy: z.ZodOptional<z.ZodObject<{
897
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
898
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
899
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
900
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ backoffCoefficient?: number | undefined;
903
+ initialInterval?: string | undefined;
904
+ maximumAttempts?: number | undefined;
905
+ maximumInterval?: string | undefined;
906
+ }, {
907
+ backoffCoefficient?: number | undefined;
908
+ initialInterval?: string | undefined;
909
+ maximumAttempts?: number | undefined;
910
+ maximumInterval?: string | undefined;
911
+ }>>;
912
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
913
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
914
+ }, "strip", z.ZodTypeAny, {
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
+ retryPolicy?: {
925
+ backoffCoefficient?: number | undefined;
926
+ initialInterval?: string | undefined;
927
+ maximumAttempts?: number | undefined;
928
+ maximumInterval?: string | undefined;
929
+ } | undefined;
930
+ startToCloseTimeout?: string | undefined;
931
+ scheduleToCloseTimeout?: string | undefined;
932
+ }>>;
933
+ } & {
934
+ type: z.ZodLiteral<"graph">;
935
+ graph: z.ZodObject<{
936
+ nodes: z.ZodArray<z.ZodObject<{
937
+ id: z.ZodString;
938
+ iterationContext: z.ZodOptional<z.ZodObject<{
939
+ originalNodeId: z.ZodString;
940
+ iteratorNodeId: z.ZodString;
941
+ index: z.ZodNumber;
942
+ }, "strip", z.ZodTypeAny, {
943
+ originalNodeId: string;
944
+ iteratorNodeId: string;
945
+ index: number;
946
+ }, {
947
+ originalNodeId: string;
948
+ iteratorNodeId: string;
949
+ index: number;
950
+ }>>;
951
+ activityConfig: z.ZodOptional<z.ZodObject<{
952
+ retryPolicy: z.ZodOptional<z.ZodObject<{
953
+ backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
954
+ initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
955
+ maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
956
+ maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ backoffCoefficient?: number | undefined;
959
+ initialInterval?: string | undefined;
960
+ maximumAttempts?: number | undefined;
961
+ maximumInterval?: string | undefined;
962
+ }, {
963
+ backoffCoefficient?: number | undefined;
964
+ initialInterval?: string | undefined;
965
+ maximumAttempts?: number | undefined;
966
+ maximumInterval?: string | undefined;
967
+ }>>;
968
+ startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
969
+ scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ retryPolicy?: {
972
+ backoffCoefficient?: number | undefined;
973
+ initialInterval?: string | undefined;
974
+ maximumAttempts?: number | undefined;
975
+ maximumInterval?: string | undefined;
976
+ } | undefined;
977
+ startToCloseTimeout?: string | undefined;
978
+ scheduleToCloseTimeout?: string | undefined;
979
+ }, {
980
+ retryPolicy?: {
981
+ backoffCoefficient?: number | undefined;
982
+ initialInterval?: string | undefined;
983
+ maximumAttempts?: number | undefined;
984
+ maximumInterval?: string | undefined;
985
+ } | undefined;
986
+ startToCloseTimeout?: string | undefined;
987
+ scheduleToCloseTimeout?: string | undefined;
988
+ }>>;
989
+ } & {
990
+ type: z.ZodLiteral<"http">;
991
+ dependencies: z.ZodArray<z.ZodString, "many">;
992
+ http: z.ZodObject<{
993
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
994
+ url: z.ZodEffects<z.ZodString, string, string>;
995
+ 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>]>]>>>;
996
+ body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ url: string;
999
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1000
+ headers?: Record<string, string | Record<string, any>> | undefined;
1001
+ body?: string | Record<string, any> | undefined;
1002
+ }, {
1003
+ url: string;
1004
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1005
+ headers?: Record<string, string | Record<string, any>> | undefined;
1006
+ body?: string | Record<string, any> | undefined;
1007
+ }>;
1008
+ validation: z.ZodOptional<z.ZodObject<{
1009
+ input: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1010
+ output: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1013
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1014
+ }, {
1015
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1016
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1017
+ }>>;
1018
+ conditions: z.ZodOptional<z.ZodObject<{
1019
+ continueTo: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
+ to: z.ZodString;
1021
+ when: z.ZodEffects<z.ZodString, string, string>;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ to: string;
1024
+ when: string;
1025
+ }, {
1026
+ to: string;
1027
+ when: string;
1028
+ }>, "many">>, {
1029
+ to: string;
1030
+ when: string;
1031
+ }[] | undefined, {
1032
+ to: string;
1033
+ when: string;
1034
+ }[] | undefined>;
1035
+ terminateWhen: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1036
+ pollUntil: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ continueTo?: {
1039
+ to: string;
1040
+ when: string;
1041
+ }[] | undefined;
1042
+ terminateWhen?: string[] | undefined;
1043
+ pollUntil?: string[] | undefined;
1044
+ }, {
1045
+ continueTo?: {
1046
+ to: string;
1047
+ when: string;
1048
+ }[] | undefined;
1049
+ terminateWhen?: string[] | undefined;
1050
+ pollUntil?: string[] | undefined;
1051
+ }>>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ type: "http";
1054
+ id: string;
1055
+ http: {
1056
+ url: string;
1057
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1058
+ headers?: Record<string, string | Record<string, any>> | undefined;
1059
+ body?: string | Record<string, any> | undefined;
1060
+ };
1061
+ dependencies: string[];
1062
+ validation?: {
1063
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1064
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1065
+ } | undefined;
1066
+ iterationContext?: {
1067
+ originalNodeId: string;
1068
+ iteratorNodeId: string;
1069
+ index: number;
1070
+ } | undefined;
1071
+ activityConfig?: {
1072
+ retryPolicy?: {
1073
+ backoffCoefficient?: number | undefined;
1074
+ initialInterval?: string | undefined;
1075
+ maximumAttempts?: number | undefined;
1076
+ maximumInterval?: string | undefined;
1077
+ } | undefined;
1078
+ startToCloseTimeout?: string | undefined;
1079
+ scheduleToCloseTimeout?: string | undefined;
1080
+ } | undefined;
1081
+ conditions?: {
1082
+ continueTo?: {
1083
+ to: string;
1084
+ when: string;
1085
+ }[] | undefined;
1086
+ terminateWhen?: string[] | undefined;
1087
+ pollUntil?: string[] | undefined;
1088
+ } | undefined;
1089
+ }, {
1090
+ type: "http";
1091
+ id: string;
1092
+ http: {
1093
+ url: string;
1094
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1095
+ headers?: Record<string, string | Record<string, any>> | undefined;
1096
+ body?: string | Record<string, any> | undefined;
1097
+ };
1098
+ dependencies: string[];
1099
+ validation?: {
1100
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1101
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1102
+ } | undefined;
1103
+ iterationContext?: {
1104
+ originalNodeId: string;
1105
+ iteratorNodeId: string;
1106
+ index: number;
1107
+ } | undefined;
1108
+ activityConfig?: {
1109
+ retryPolicy?: {
1110
+ backoffCoefficient?: number | undefined;
1111
+ initialInterval?: string | undefined;
1112
+ maximumAttempts?: number | undefined;
1113
+ maximumInterval?: string | undefined;
1114
+ } | undefined;
1115
+ startToCloseTimeout?: string | undefined;
1116
+ scheduleToCloseTimeout?: string | undefined;
1117
+ } | undefined;
1118
+ conditions?: {
1119
+ continueTo?: {
1120
+ to: string;
1121
+ when: string;
1122
+ }[] | undefined;
1123
+ terminateWhen?: string[] | undefined;
1124
+ pollUntil?: string[] | undefined;
1125
+ } | undefined;
1126
+ }>, "many">;
1127
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ nodes: {
1130
+ type: "http";
1131
+ id: string;
1132
+ http: {
1133
+ url: string;
1134
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1135
+ headers?: Record<string, string | Record<string, any>> | undefined;
1136
+ body?: string | Record<string, any> | undefined;
1137
+ };
1138
+ dependencies: string[];
1139
+ validation?: {
1140
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1141
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1142
+ } | undefined;
1143
+ iterationContext?: {
1144
+ originalNodeId: string;
1145
+ iteratorNodeId: string;
1146
+ index: number;
1147
+ } | undefined;
1148
+ activityConfig?: {
1149
+ retryPolicy?: {
1150
+ backoffCoefficient?: number | undefined;
1151
+ initialInterval?: string | undefined;
1152
+ maximumAttempts?: number | undefined;
1153
+ maximumInterval?: string | undefined;
1154
+ } | undefined;
1155
+ startToCloseTimeout?: string | undefined;
1156
+ scheduleToCloseTimeout?: string | undefined;
1157
+ } | undefined;
1158
+ conditions?: {
1159
+ continueTo?: {
1160
+ to: string;
1161
+ when: string;
1162
+ }[] | undefined;
1163
+ terminateWhen?: string[] | undefined;
1164
+ pollUntil?: string[] | undefined;
1165
+ } | undefined;
1166
+ }[];
1167
+ context?: Record<string, any> | undefined;
1168
+ }, {
1169
+ nodes: {
1170
+ type: "http";
1171
+ id: string;
1172
+ http: {
1173
+ url: string;
1174
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1175
+ headers?: Record<string, string | Record<string, any>> | undefined;
1176
+ body?: string | Record<string, any> | undefined;
1177
+ };
1178
+ dependencies: string[];
1179
+ validation?: {
1180
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1181
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1182
+ } | undefined;
1183
+ iterationContext?: {
1184
+ originalNodeId: string;
1185
+ iteratorNodeId: string;
1186
+ index: number;
1187
+ } | undefined;
1188
+ activityConfig?: {
1189
+ retryPolicy?: {
1190
+ backoffCoefficient?: number | undefined;
1191
+ initialInterval?: string | undefined;
1192
+ maximumAttempts?: number | undefined;
1193
+ maximumInterval?: string | undefined;
1194
+ } | undefined;
1195
+ startToCloseTimeout?: string | undefined;
1196
+ scheduleToCloseTimeout?: string | undefined;
1197
+ } | undefined;
1198
+ conditions?: {
1199
+ continueTo?: {
1200
+ to: string;
1201
+ when: string;
1202
+ }[] | undefined;
1203
+ terminateWhen?: string[] | undefined;
1204
+ pollUntil?: string[] | undefined;
1205
+ } | undefined;
1206
+ }[];
1207
+ context?: Record<string, any> | undefined;
1208
+ }>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ type: "graph";
1211
+ id: string;
1212
+ graph: {
1213
+ nodes: {
1214
+ type: "http";
1215
+ id: string;
1216
+ http: {
1217
+ url: string;
1218
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1219
+ headers?: Record<string, string | Record<string, any>> | undefined;
1220
+ body?: string | Record<string, any> | undefined;
1221
+ };
1222
+ dependencies: string[];
1223
+ validation?: {
1224
+ input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1225
+ output?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1226
+ } | undefined;
1227
+ iterationContext?: {
1228
+ originalNodeId: string;
1229
+ iteratorNodeId: string;
1230
+ index: number;
1231
+ } | undefined;
1232
+ activityConfig?: {
1233
+ retryPolicy?: {
1234
+ backoffCoefficient?: number | undefined;
1235
+ initialInterval?: string | undefined;
1236
+ maximumAttempts?: number | undefined;
1237
+ maximumInterval?: string | undefined;
1238
+ } | undefined;
1239
+ startToCloseTimeout?: string | undefined;
1240
+ scheduleToCloseTimeout?: string | undefined;
1241
+ } | undefined;
1242
+ conditions?: {
1243
+ continueTo?: {
1244
+ to: string;
1245
+ when: string;
1246
+ }[] | undefined;
1247
+ terminateWhen?: string[] | undefined;
1248
+ pollUntil?: string[] | undefined;
1249
+ } | undefined;
1250
+ }[];
1251
+ context?: Record<string, any> | undefined;
1252
+ };
1253
+ description?: string | undefined;
1254
+ activityConfig?: {
1255
+ retryPolicy?: {
1256
+ backoffCoefficient?: number | undefined;
1257
+ initialInterval?: string | undefined;
1258
+ maximumAttempts?: number | undefined;
1259
+ maximumInterval?: string | undefined;
1260
+ } | undefined;
1261
+ startToCloseTimeout?: string | undefined;
1262
+ scheduleToCloseTimeout?: string | undefined;
1263
+ } | undefined;
1264
+ }, {
1265
+ type: "graph";
1266
+ id: string;
1267
+ graph: {
1268
+ nodes: {
1269
+ type: "http";
1270
+ id: string;
1271
+ http: {
1272
+ url: string;
1273
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
1274
+ headers?: Record<string, string | Record<string, any>> | undefined;
1275
+ body?: string | Record<string, any> | undefined;
1276
+ };
1277
+ dependencies: string[];
1278
+ validation?: {
1279
+ input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1280
+ output?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1281
+ } | undefined;
1282
+ iterationContext?: {
1283
+ originalNodeId: string;
1284
+ iteratorNodeId: string;
1285
+ index: number;
1286
+ } | undefined;
1287
+ activityConfig?: {
1288
+ retryPolicy?: {
1289
+ backoffCoefficient?: number | undefined;
1290
+ initialInterval?: string | undefined;
1291
+ maximumAttempts?: number | undefined;
1292
+ maximumInterval?: string | undefined;
1293
+ } | undefined;
1294
+ startToCloseTimeout?: string | undefined;
1295
+ scheduleToCloseTimeout?: string | undefined;
1296
+ } | undefined;
1297
+ conditions?: {
1298
+ continueTo?: {
1299
+ to: string;
1300
+ when: string;
1301
+ }[] | undefined;
1302
+ terminateWhen?: string[] | undefined;
1303
+ pollUntil?: string[] | undefined;
1304
+ } | undefined;
1305
+ }[];
1306
+ context?: Record<string, any> | undefined;
1307
+ };
1308
+ description?: string | 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
+ }>]>;
1320
+ export type ToolNode = z.infer<typeof ToolNodeSchema>;
1321
+ //# sourceMappingURL=tools.d.ts.map