@xyne/workflow-sdk 3.2.54 → 3.2.56

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 (172) hide show
  1. package/dist/agents/agent-step.d.ts +30 -15
  2. package/dist/agents/agent-step.d.ts.map +1 -1
  3. package/dist/agents/agent-step.js +15 -5
  4. package/dist/agents/agent-step.js.map +1 -1
  5. package/dist/agents/citation-resolve.js +1 -1
  6. package/dist/agents/citation-resolve.js.map +1 -1
  7. package/dist/agents/contract.d.ts +16 -8
  8. package/dist/agents/contract.d.ts.map +1 -1
  9. package/dist/agents/host-agent-step.d.ts +20 -10
  10. package/dist/agents/host-agent-step.d.ts.map +1 -1
  11. package/dist/agents/host-agent-step.js +7 -3
  12. package/dist/agents/host-agent-step.js.map +1 -1
  13. package/dist/agents/provider.d.ts +2 -2
  14. package/dist/agents/tool-types.d.ts +13 -2
  15. package/dist/agents/tool-types.d.ts.map +1 -1
  16. package/dist/client/workflow-client.js +1 -1
  17. package/dist/client/workflow-client.js.map +1 -1
  18. package/dist/common/attachment.d.ts +24 -7
  19. package/dist/common/attachment.d.ts.map +1 -1
  20. package/dist/common/attachment.js +34 -7
  21. package/dist/common/attachment.js.map +1 -1
  22. package/dist/common/multipart-values.d.ts +21 -0
  23. package/dist/common/multipart-values.d.ts.map +1 -0
  24. package/dist/common/multipart-values.js +63 -0
  25. package/dist/common/multipart-values.js.map +1 -0
  26. package/dist/completion/address.d.ts +27 -0
  27. package/dist/completion/address.d.ts.map +1 -0
  28. package/dist/completion/address.js +62 -0
  29. package/dist/completion/address.js.map +1 -0
  30. package/dist/completion/attach.d.ts +20 -0
  31. package/dist/completion/attach.d.ts.map +1 -0
  32. package/dist/completion/attach.js +37 -0
  33. package/dist/completion/attach.js.map +1 -0
  34. package/dist/completion/index.d.ts +6 -0
  35. package/dist/completion/index.d.ts.map +1 -0
  36. package/dist/completion/index.js +4 -0
  37. package/dist/completion/index.js.map +1 -0
  38. package/dist/completion/types.d.ts +109 -0
  39. package/dist/completion/types.d.ts.map +1 -0
  40. package/dist/completion/types.js +35 -0
  41. package/dist/completion/types.js.map +1 -0
  42. package/dist/connectors/builtin/builtin-connector.d.ts.map +1 -1
  43. package/dist/connectors/builtin/builtin-connector.js +6 -2
  44. package/dist/connectors/builtin/builtin-connector.js.map +1 -1
  45. package/dist/connectors/builtin/steps/code.step.d.ts +20 -10
  46. package/dist/connectors/builtin/steps/code.step.d.ts.map +1 -1
  47. package/dist/connectors/builtin/steps/code.step.js +14 -7
  48. package/dist/connectors/builtin/steps/code.step.js.map +1 -1
  49. package/dist/connectors/builtin/steps/cycle.step.d.ts +36 -7
  50. package/dist/connectors/builtin/steps/cycle.step.d.ts.map +1 -1
  51. package/dist/connectors/builtin/steps/cycle.step.js +84 -6
  52. package/dist/connectors/builtin/steps/cycle.step.js.map +1 -1
  53. package/dist/connectors/builtin/steps/delay.step.d.ts +49 -0
  54. package/dist/connectors/builtin/steps/delay.step.d.ts.map +1 -0
  55. package/dist/connectors/builtin/steps/delay.step.js +40 -0
  56. package/dist/connectors/builtin/steps/delay.step.js.map +1 -0
  57. package/dist/connectors/builtin/steps/http-request.step.d.ts +100 -50
  58. package/dist/connectors/builtin/steps/http-request.step.d.ts.map +1 -1
  59. package/dist/connectors/builtin/steps/http-request.step.js +14 -15
  60. package/dist/connectors/builtin/steps/http-request.step.js.map +1 -1
  61. package/dist/connectors/builtin/steps/map.step.d.ts.map +1 -1
  62. package/dist/connectors/builtin/steps/map.step.js +9 -2
  63. package/dist/connectors/builtin/steps/map.step.js.map +1 -1
  64. package/dist/connectors/builtin/steps/multipart-body.d.ts +23 -0
  65. package/dist/connectors/builtin/steps/multipart-body.d.ts.map +1 -0
  66. package/dist/connectors/builtin/steps/multipart-body.js +40 -0
  67. package/dist/connectors/builtin/steps/multipart-body.js.map +1 -0
  68. package/dist/connectors/builtin/steps/parallel.step.d.ts.map +1 -1
  69. package/dist/connectors/builtin/steps/parallel.step.js +9 -2
  70. package/dist/connectors/builtin/steps/parallel.step.js.map +1 -1
  71. package/dist/connectors/builtin/steps/wait-for-api-call.step.d.ts +80 -0
  72. package/dist/connectors/builtin/steps/wait-for-api-call.step.d.ts.map +1 -0
  73. package/dist/connectors/builtin/steps/wait-for-api-call.step.js +104 -0
  74. package/dist/connectors/builtin/steps/wait-for-api-call.step.js.map +1 -0
  75. package/dist/connectors/builtin/steps/wait-for-human.step.d.ts +1057 -0
  76. package/dist/connectors/builtin/steps/wait-for-human.step.d.ts.map +1 -0
  77. package/dist/connectors/builtin/steps/wait-for-human.step.js +222 -0
  78. package/dist/connectors/builtin/steps/wait-for-human.step.js.map +1 -0
  79. package/dist/connectors/builtin/steps/wait-for-webhook.step.d.ts +80 -0
  80. package/dist/connectors/builtin/steps/wait-for-webhook.step.d.ts.map +1 -0
  81. package/dist/connectors/builtin/steps/wait-for-webhook.step.js +104 -0
  82. package/dist/connectors/builtin/steps/wait-for-webhook.step.js.map +1 -0
  83. package/dist/connectors/builtin/steps/wait.step.d.ts +10 -35
  84. package/dist/connectors/builtin/steps/wait.step.d.ts.map +1 -1
  85. package/dist/connectors/builtin/steps/wait.step.js +11 -57
  86. package/dist/connectors/builtin/steps/wait.step.js.map +1 -1
  87. package/dist/conversational-flow/create.d.ts +2 -1
  88. package/dist/conversational-flow/create.d.ts.map +1 -1
  89. package/dist/conversational-flow/create.js +2 -2
  90. package/dist/conversational-flow/create.js.map +1 -1
  91. package/dist/conversational-flow/edit/build.js +1 -1
  92. package/dist/conversational-flow/edit/build.js.map +1 -1
  93. package/dist/conversational-flow/edit/questions.d.ts +35 -0
  94. package/dist/conversational-flow/edit/questions.d.ts.map +1 -0
  95. package/dist/conversational-flow/edit/questions.js +188 -0
  96. package/dist/conversational-flow/edit/questions.js.map +1 -0
  97. package/dist/conversational-flow/questions.d.ts +32 -0
  98. package/dist/conversational-flow/questions.d.ts.map +1 -0
  99. package/dist/conversational-flow/questions.js +122 -0
  100. package/dist/conversational-flow/questions.js.map +1 -0
  101. package/dist/engine/config-validator.d.ts.map +1 -1
  102. package/dist/engine/config-validator.js +29 -0
  103. package/dist/engine/config-validator.js.map +1 -1
  104. package/dist/engine/pause-step.d.ts +21 -4
  105. package/dist/engine/pause-step.d.ts.map +1 -1
  106. package/dist/engine/pause-step.js +11 -2
  107. package/dist/engine/pause-step.js.map +1 -1
  108. package/dist/engine/read-config.d.ts +12 -0
  109. package/dist/engine/read-config.d.ts.map +1 -0
  110. package/dist/engine/read-config.js +50 -0
  111. package/dist/engine/read-config.js.map +1 -0
  112. package/dist/engine/workflow-executor.d.ts.map +1 -1
  113. package/dist/engine/workflow-executor.js +38 -56
  114. package/dist/engine/workflow-executor.js.map +1 -1
  115. package/dist/index.d.ts +14 -6
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +6 -2
  118. package/dist/index.js.map +1 -1
  119. package/dist/persistence/in-memory-adapter.d.ts +3 -18
  120. package/dist/persistence/in-memory-adapter.d.ts.map +1 -1
  121. package/dist/persistence/in-memory-adapter.js +9 -61
  122. package/dist/persistence/in-memory-adapter.js.map +1 -1
  123. package/dist/persistence/types.d.ts +29 -58
  124. package/dist/persistence/types.d.ts.map +1 -1
  125. package/dist/router/approval-context.d.ts +1 -1
  126. package/dist/router/approval-context.d.ts.map +1 -1
  127. package/dist/router/approval-context.js +3 -3
  128. package/dist/router/approval-context.js.map +1 -1
  129. package/dist/router/types.d.ts +18 -7
  130. package/dist/router/types.d.ts.map +1 -1
  131. package/dist/router/workflow-router.d.ts.map +1 -1
  132. package/dist/router/workflow-router.js +164 -123
  133. package/dist/router/workflow-router.js.map +1 -1
  134. package/dist/runtime/workflow-runtime.d.ts +40 -45
  135. package/dist/runtime/workflow-runtime.d.ts.map +1 -1
  136. package/dist/runtime/workflow-runtime.js +188 -123
  137. package/dist/runtime/workflow-runtime.js.map +1 -1
  138. package/dist/steps/base-step.d.ts +11 -10
  139. package/dist/steps/base-step.d.ts.map +1 -1
  140. package/dist/steps/base-step.js.map +1 -1
  141. package/dist/storage/files.d.ts +39 -0
  142. package/dist/storage/files.d.ts.map +1 -0
  143. package/dist/storage/files.js +75 -0
  144. package/dist/storage/files.js.map +1 -0
  145. package/dist/storage/in-memory-adapter.d.ts +15 -8
  146. package/dist/storage/in-memory-adapter.d.ts.map +1 -1
  147. package/dist/storage/in-memory-adapter.js +36 -18
  148. package/dist/storage/in-memory-adapter.js.map +1 -1
  149. package/dist/storage/types.d.ts +36 -26
  150. package/dist/storage/types.d.ts.map +1 -1
  151. package/dist/storage/types.js +5 -6
  152. package/dist/storage/types.js.map +1 -1
  153. package/dist/testing/mock-step-context.d.ts +7 -2
  154. package/dist/testing/mock-step-context.d.ts.map +1 -1
  155. package/dist/testing/mock-step-context.js +2 -1
  156. package/dist/testing/mock-step-context.js.map +1 -1
  157. package/dist/testing/test-connector.d.ts +1 -1
  158. package/dist/testing/test-connector.js +1 -1
  159. package/dist/types/index.d.ts +2 -2
  160. package/dist/types/index.d.ts.map +1 -1
  161. package/dist/types/index.js +1 -1
  162. package/dist/types/index.js.map +1 -1
  163. package/dist/types/known-types.d.ts +51 -1
  164. package/dist/types/known-types.d.ts.map +1 -1
  165. package/dist/types/known-types.js +54 -1
  166. package/dist/types/known-types.js.map +1 -1
  167. package/dist/types/pause-state.d.ts +0 -8
  168. package/dist/types/pause-state.d.ts.map +1 -1
  169. package/dist/types/pause-state.js.map +1 -1
  170. package/dist/types/workflow-variable.d.ts +20 -10
  171. package/dist/types/workflow-variable.d.ts.map +1 -1
  172. package/package.json +1 -1
@@ -0,0 +1,1057 @@
1
+ /**
2
+ * WAIT_FOR_HUMAN step — wait for a person to answer.
3
+ *
4
+ * Which person depends on the workflow: inside a conversational flow the screen
5
+ * waits on the customer it is talking to, and everywhere else on somebody
6
+ * inside the product. Only the second belongs in the approvals inbox, and the
7
+ * difference comes from the workflow's own kind rather than from the author
8
+ * marking each screen.
9
+ *
10
+ * The one gate that reaches the approvals inbox, which is why it is its own
11
+ * step rather than a mode: what it needs (a reason, a prompt, read-only
12
+ * sections, a form, choices) has nothing in common with waiting on a system or
13
+ * on a clock.
14
+ *
15
+ * Answered through the resume API, which authorizes the person.
16
+ */
17
+ import { z } from 'zod';
18
+ import { BaseActionStep } from '../../../steps/base-step.js';
19
+ import type { StepExecutionContext } from '../../../steps/base-step.js';
20
+ import { BuiltinStepType } from '../../../types/known-types.js';
21
+ import type { StepCategory } from '../../../types/categories.js';
22
+ export declare const WaitForHumanConfigSchema: z.ZodObject<{
23
+ reason: z.ZodString;
24
+ dueInMs: z.ZodOptional<z.ZodNumber>;
25
+ prompt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
+ display: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodString>;
28
+ label: z.ZodString;
29
+ value: z.ZodUnknown;
30
+ }, "strip", z.ZodTypeAny, {
31
+ label: string;
32
+ value?: unknown;
33
+ id?: string | undefined;
34
+ }, {
35
+ label: string;
36
+ value?: unknown;
37
+ id?: string | undefined;
38
+ }>, "many">>;
39
+ form: z.ZodOptional<z.ZodObject<{
40
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
41
+ type: z.ZodLiteral<"text">;
42
+ name: z.ZodString;
43
+ label: z.ZodString;
44
+ required: z.ZodOptional<z.ZodBoolean>;
45
+ description: z.ZodOptional<z.ZodString>;
46
+ placeholder: z.ZodOptional<z.ZodString>;
47
+ defaultValue: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "text";
50
+ name: string;
51
+ label: string;
52
+ description?: string | undefined;
53
+ required?: boolean | undefined;
54
+ placeholder?: string | undefined;
55
+ defaultValue?: string | undefined;
56
+ }, {
57
+ type: "text";
58
+ name: string;
59
+ label: string;
60
+ description?: string | undefined;
61
+ required?: boolean | undefined;
62
+ placeholder?: string | undefined;
63
+ defaultValue?: string | undefined;
64
+ }>, z.ZodObject<{
65
+ type: z.ZodLiteral<"textarea">;
66
+ name: z.ZodString;
67
+ label: z.ZodString;
68
+ required: z.ZodOptional<z.ZodBoolean>;
69
+ description: z.ZodOptional<z.ZodString>;
70
+ placeholder: z.ZodOptional<z.ZodString>;
71
+ defaultValue: z.ZodOptional<z.ZodString>;
72
+ rows: z.ZodOptional<z.ZodNumber>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ type: "textarea";
75
+ name: string;
76
+ label: string;
77
+ description?: string | undefined;
78
+ required?: boolean | undefined;
79
+ placeholder?: string | undefined;
80
+ defaultValue?: string | undefined;
81
+ rows?: number | undefined;
82
+ }, {
83
+ type: "textarea";
84
+ name: string;
85
+ label: string;
86
+ description?: string | undefined;
87
+ required?: boolean | undefined;
88
+ placeholder?: string | undefined;
89
+ defaultValue?: string | undefined;
90
+ rows?: number | undefined;
91
+ }>, z.ZodObject<{
92
+ type: z.ZodLiteral<"number">;
93
+ name: z.ZodString;
94
+ label: z.ZodString;
95
+ required: z.ZodOptional<z.ZodBoolean>;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ placeholder: z.ZodOptional<z.ZodString>;
98
+ defaultValue: z.ZodOptional<z.ZodNumber>;
99
+ min: z.ZodOptional<z.ZodNumber>;
100
+ max: z.ZodOptional<z.ZodNumber>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "number";
103
+ name: string;
104
+ label: string;
105
+ description?: string | undefined;
106
+ required?: boolean | undefined;
107
+ max?: number | undefined;
108
+ min?: number | undefined;
109
+ placeholder?: string | undefined;
110
+ defaultValue?: number | undefined;
111
+ }, {
112
+ type: "number";
113
+ name: string;
114
+ label: string;
115
+ description?: string | undefined;
116
+ required?: boolean | undefined;
117
+ max?: number | undefined;
118
+ min?: number | undefined;
119
+ placeholder?: string | undefined;
120
+ defaultValue?: number | undefined;
121
+ }>, z.ZodObject<{
122
+ type: z.ZodLiteral<"select">;
123
+ name: z.ZodString;
124
+ label: z.ZodString;
125
+ required: z.ZodOptional<z.ZodBoolean>;
126
+ description: z.ZodOptional<z.ZodString>;
127
+ placeholder: z.ZodOptional<z.ZodString>;
128
+ defaultValue: z.ZodOptional<z.ZodString>;
129
+ options: z.ZodUnion<[z.ZodArray<z.ZodObject<{
130
+ label: z.ZodString;
131
+ value: z.ZodString;
132
+ when: z.ZodOptional<z.ZodType<import("../../../types/workflow-config.js").Condition, z.ZodTypeDef, import("../../../types/workflow-config.js").Condition>>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ value: string;
135
+ label: string;
136
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
137
+ }, {
138
+ value: string;
139
+ label: string;
140
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
141
+ }>, "many">, z.ZodString]>;
142
+ allowCustomValue: z.ZodOptional<z.ZodBoolean>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ options: string | {
145
+ value: string;
146
+ label: string;
147
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
148
+ }[];
149
+ type: "select";
150
+ name: string;
151
+ label: string;
152
+ description?: string | undefined;
153
+ required?: boolean | undefined;
154
+ placeholder?: string | undefined;
155
+ defaultValue?: string | undefined;
156
+ allowCustomValue?: boolean | undefined;
157
+ }, {
158
+ options: string | {
159
+ value: string;
160
+ label: string;
161
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
162
+ }[];
163
+ type: "select";
164
+ name: string;
165
+ label: string;
166
+ description?: string | undefined;
167
+ required?: boolean | undefined;
168
+ placeholder?: string | undefined;
169
+ defaultValue?: string | undefined;
170
+ allowCustomValue?: boolean | undefined;
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"checkbox">;
173
+ name: z.ZodString;
174
+ label: z.ZodString;
175
+ required: z.ZodOptional<z.ZodBoolean>;
176
+ description: z.ZodOptional<z.ZodString>;
177
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ type: "checkbox";
180
+ name: string;
181
+ label: string;
182
+ description?: string | undefined;
183
+ required?: boolean | undefined;
184
+ defaultValue?: boolean | undefined;
185
+ }, {
186
+ type: "checkbox";
187
+ name: string;
188
+ label: string;
189
+ description?: string | undefined;
190
+ required?: boolean | undefined;
191
+ defaultValue?: boolean | undefined;
192
+ }>, z.ZodObject<{
193
+ type: z.ZodLiteral<"attachment">;
194
+ name: z.ZodString;
195
+ label: z.ZodString;
196
+ required: z.ZodOptional<z.ZodBoolean>;
197
+ description: z.ZodOptional<z.ZodString>;
198
+ multiple: z.ZodOptional<z.ZodBoolean>;
199
+ accept: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
200
+ maxSize: z.ZodOptional<z.ZodNumber>;
201
+ maxItems: z.ZodOptional<z.ZodNumber>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ type: "attachment";
204
+ name: string;
205
+ label: string;
206
+ maxItems?: number | undefined;
207
+ description?: string | undefined;
208
+ required?: boolean | undefined;
209
+ accept?: string[] | undefined;
210
+ maxSize?: number | undefined;
211
+ multiple?: boolean | undefined;
212
+ }, {
213
+ type: "attachment";
214
+ name: string;
215
+ label: string;
216
+ maxItems?: number | undefined;
217
+ description?: string | undefined;
218
+ required?: boolean | undefined;
219
+ accept?: string[] | undefined;
220
+ maxSize?: number | undefined;
221
+ multiple?: boolean | undefined;
222
+ }>]>, "many">;
223
+ description: z.ZodOptional<z.ZodString>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ fields: ({
226
+ type: "text";
227
+ name: string;
228
+ label: string;
229
+ description?: string | undefined;
230
+ required?: boolean | undefined;
231
+ placeholder?: string | undefined;
232
+ defaultValue?: string | undefined;
233
+ } | {
234
+ type: "textarea";
235
+ name: string;
236
+ label: string;
237
+ description?: string | undefined;
238
+ required?: boolean | undefined;
239
+ placeholder?: string | undefined;
240
+ defaultValue?: string | undefined;
241
+ rows?: number | undefined;
242
+ } | {
243
+ type: "number";
244
+ name: string;
245
+ label: string;
246
+ description?: string | undefined;
247
+ required?: boolean | undefined;
248
+ max?: number | undefined;
249
+ min?: number | undefined;
250
+ placeholder?: string | undefined;
251
+ defaultValue?: number | undefined;
252
+ } | {
253
+ options: string | {
254
+ value: string;
255
+ label: string;
256
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
257
+ }[];
258
+ type: "select";
259
+ name: string;
260
+ label: string;
261
+ description?: string | undefined;
262
+ required?: boolean | undefined;
263
+ placeholder?: string | undefined;
264
+ defaultValue?: string | undefined;
265
+ allowCustomValue?: boolean | undefined;
266
+ } | {
267
+ type: "checkbox";
268
+ name: string;
269
+ label: string;
270
+ description?: string | undefined;
271
+ required?: boolean | undefined;
272
+ defaultValue?: boolean | undefined;
273
+ } | {
274
+ type: "attachment";
275
+ name: string;
276
+ label: string;
277
+ maxItems?: number | undefined;
278
+ description?: string | undefined;
279
+ required?: boolean | undefined;
280
+ accept?: string[] | undefined;
281
+ maxSize?: number | undefined;
282
+ multiple?: boolean | undefined;
283
+ })[];
284
+ description?: string | undefined;
285
+ }, {
286
+ fields: ({
287
+ type: "text";
288
+ name: string;
289
+ label: string;
290
+ description?: string | undefined;
291
+ required?: boolean | undefined;
292
+ placeholder?: string | undefined;
293
+ defaultValue?: string | undefined;
294
+ } | {
295
+ type: "textarea";
296
+ name: string;
297
+ label: string;
298
+ description?: string | undefined;
299
+ required?: boolean | undefined;
300
+ placeholder?: string | undefined;
301
+ defaultValue?: string | undefined;
302
+ rows?: number | undefined;
303
+ } | {
304
+ type: "number";
305
+ name: string;
306
+ label: string;
307
+ description?: string | undefined;
308
+ required?: boolean | undefined;
309
+ max?: number | undefined;
310
+ min?: number | undefined;
311
+ placeholder?: string | undefined;
312
+ defaultValue?: number | undefined;
313
+ } | {
314
+ options: string | {
315
+ value: string;
316
+ label: string;
317
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
318
+ }[];
319
+ type: "select";
320
+ name: string;
321
+ label: string;
322
+ description?: string | undefined;
323
+ required?: boolean | undefined;
324
+ placeholder?: string | undefined;
325
+ defaultValue?: string | undefined;
326
+ allowCustomValue?: boolean | undefined;
327
+ } | {
328
+ type: "checkbox";
329
+ name: string;
330
+ label: string;
331
+ description?: string | undefined;
332
+ required?: boolean | undefined;
333
+ defaultValue?: boolean | undefined;
334
+ } | {
335
+ type: "attachment";
336
+ name: string;
337
+ label: string;
338
+ maxItems?: number | undefined;
339
+ description?: string | undefined;
340
+ required?: boolean | undefined;
341
+ accept?: string[] | undefined;
342
+ maxSize?: number | undefined;
343
+ multiple?: boolean | undefined;
344
+ })[];
345
+ description?: string | undefined;
346
+ }>>;
347
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
+ key: z.ZodString;
349
+ label: z.ZodString;
350
+ style: z.ZodOptional<z.ZodEnum<["primary", "danger", "default"]>>;
351
+ abort: z.ZodOptional<z.ZodBoolean>;
352
+ submitsForm: z.ZodOptional<z.ZodBoolean>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ key: string;
355
+ label: string;
356
+ style?: "default" | "primary" | "danger" | undefined;
357
+ abort?: boolean | undefined;
358
+ submitsForm?: boolean | undefined;
359
+ }, {
360
+ key: string;
361
+ label: string;
362
+ style?: "default" | "primary" | "danger" | undefined;
363
+ abort?: boolean | undefined;
364
+ submitsForm?: boolean | undefined;
365
+ }>, "many">>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ reason: string;
368
+ dueInMs?: number | undefined;
369
+ prompt?: string[] | undefined;
370
+ display?: {
371
+ label: string;
372
+ value?: unknown;
373
+ id?: string | undefined;
374
+ }[] | undefined;
375
+ form?: {
376
+ fields: ({
377
+ type: "text";
378
+ name: string;
379
+ label: string;
380
+ description?: string | undefined;
381
+ required?: boolean | undefined;
382
+ placeholder?: string | undefined;
383
+ defaultValue?: string | undefined;
384
+ } | {
385
+ type: "textarea";
386
+ name: string;
387
+ label: string;
388
+ description?: string | undefined;
389
+ required?: boolean | undefined;
390
+ placeholder?: string | undefined;
391
+ defaultValue?: string | undefined;
392
+ rows?: number | undefined;
393
+ } | {
394
+ type: "number";
395
+ name: string;
396
+ label: string;
397
+ description?: string | undefined;
398
+ required?: boolean | undefined;
399
+ max?: number | undefined;
400
+ min?: number | undefined;
401
+ placeholder?: string | undefined;
402
+ defaultValue?: number | undefined;
403
+ } | {
404
+ options: string | {
405
+ value: string;
406
+ label: string;
407
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
408
+ }[];
409
+ type: "select";
410
+ name: string;
411
+ label: string;
412
+ description?: string | undefined;
413
+ required?: boolean | undefined;
414
+ placeholder?: string | undefined;
415
+ defaultValue?: string | undefined;
416
+ allowCustomValue?: boolean | undefined;
417
+ } | {
418
+ type: "checkbox";
419
+ name: string;
420
+ label: string;
421
+ description?: string | undefined;
422
+ required?: boolean | undefined;
423
+ defaultValue?: boolean | undefined;
424
+ } | {
425
+ type: "attachment";
426
+ name: string;
427
+ label: string;
428
+ maxItems?: number | undefined;
429
+ description?: string | undefined;
430
+ required?: boolean | undefined;
431
+ accept?: string[] | undefined;
432
+ maxSize?: number | undefined;
433
+ multiple?: boolean | undefined;
434
+ })[];
435
+ description?: string | undefined;
436
+ } | undefined;
437
+ actions?: {
438
+ key: string;
439
+ label: string;
440
+ style?: "default" | "primary" | "danger" | undefined;
441
+ abort?: boolean | undefined;
442
+ submitsForm?: boolean | undefined;
443
+ }[] | undefined;
444
+ }, {
445
+ reason: string;
446
+ dueInMs?: number | undefined;
447
+ prompt?: string[] | undefined;
448
+ display?: {
449
+ label: string;
450
+ value?: unknown;
451
+ id?: string | undefined;
452
+ }[] | undefined;
453
+ form?: {
454
+ fields: ({
455
+ type: "text";
456
+ name: string;
457
+ label: string;
458
+ description?: string | undefined;
459
+ required?: boolean | undefined;
460
+ placeholder?: string | undefined;
461
+ defaultValue?: string | undefined;
462
+ } | {
463
+ type: "textarea";
464
+ name: string;
465
+ label: string;
466
+ description?: string | undefined;
467
+ required?: boolean | undefined;
468
+ placeholder?: string | undefined;
469
+ defaultValue?: string | undefined;
470
+ rows?: number | undefined;
471
+ } | {
472
+ type: "number";
473
+ name: string;
474
+ label: string;
475
+ description?: string | undefined;
476
+ required?: boolean | undefined;
477
+ max?: number | undefined;
478
+ min?: number | undefined;
479
+ placeholder?: string | undefined;
480
+ defaultValue?: number | undefined;
481
+ } | {
482
+ options: string | {
483
+ value: string;
484
+ label: string;
485
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
486
+ }[];
487
+ type: "select";
488
+ name: string;
489
+ label: string;
490
+ description?: string | undefined;
491
+ required?: boolean | undefined;
492
+ placeholder?: string | undefined;
493
+ defaultValue?: string | undefined;
494
+ allowCustomValue?: boolean | undefined;
495
+ } | {
496
+ type: "checkbox";
497
+ name: string;
498
+ label: string;
499
+ description?: string | undefined;
500
+ required?: boolean | undefined;
501
+ defaultValue?: boolean | undefined;
502
+ } | {
503
+ type: "attachment";
504
+ name: string;
505
+ label: string;
506
+ maxItems?: number | undefined;
507
+ description?: string | undefined;
508
+ required?: boolean | undefined;
509
+ accept?: string[] | undefined;
510
+ maxSize?: number | undefined;
511
+ multiple?: boolean | undefined;
512
+ })[];
513
+ description?: string | undefined;
514
+ } | undefined;
515
+ actions?: {
516
+ key: string;
517
+ label: string;
518
+ style?: "default" | "primary" | "danger" | undefined;
519
+ abort?: boolean | undefined;
520
+ submitsForm?: boolean | undefined;
521
+ }[] | undefined;
522
+ }>;
523
+ export type WaitForHumanConfig = z.infer<typeof WaitForHumanConfigSchema>;
524
+ export interface WaitForHumanOutput extends Record<string, unknown> {
525
+ /** What the person answered: the action they chose, their text, their form fields. */
526
+ resumeData: Record<string, unknown>;
527
+ }
528
+ export declare class WaitForHumanStep extends BaseActionStep<typeof WaitForHumanConfigSchema, WaitForHumanOutput> {
529
+ readonly type = BuiltinStepType.WAIT_FOR_HUMAN;
530
+ readonly name = "Wait for a person";
531
+ readonly description = "Pause until someone approves, rejects, or fills in the form";
532
+ readonly configSchema: z.ZodObject<{
533
+ reason: z.ZodString;
534
+ dueInMs: z.ZodOptional<z.ZodNumber>;
535
+ prompt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
536
+ display: z.ZodOptional<z.ZodArray<z.ZodObject<{
537
+ id: z.ZodOptional<z.ZodString>;
538
+ label: z.ZodString;
539
+ value: z.ZodUnknown;
540
+ }, "strip", z.ZodTypeAny, {
541
+ label: string;
542
+ value?: unknown;
543
+ id?: string | undefined;
544
+ }, {
545
+ label: string;
546
+ value?: unknown;
547
+ id?: string | undefined;
548
+ }>, "many">>;
549
+ form: z.ZodOptional<z.ZodObject<{
550
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
551
+ type: z.ZodLiteral<"text">;
552
+ name: z.ZodString;
553
+ label: z.ZodString;
554
+ required: z.ZodOptional<z.ZodBoolean>;
555
+ description: z.ZodOptional<z.ZodString>;
556
+ placeholder: z.ZodOptional<z.ZodString>;
557
+ defaultValue: z.ZodOptional<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ type: "text";
560
+ name: string;
561
+ label: string;
562
+ description?: string | undefined;
563
+ required?: boolean | undefined;
564
+ placeholder?: string | undefined;
565
+ defaultValue?: string | undefined;
566
+ }, {
567
+ type: "text";
568
+ name: string;
569
+ label: string;
570
+ description?: string | undefined;
571
+ required?: boolean | undefined;
572
+ placeholder?: string | undefined;
573
+ defaultValue?: string | undefined;
574
+ }>, z.ZodObject<{
575
+ type: z.ZodLiteral<"textarea">;
576
+ name: z.ZodString;
577
+ label: z.ZodString;
578
+ required: z.ZodOptional<z.ZodBoolean>;
579
+ description: z.ZodOptional<z.ZodString>;
580
+ placeholder: z.ZodOptional<z.ZodString>;
581
+ defaultValue: z.ZodOptional<z.ZodString>;
582
+ rows: z.ZodOptional<z.ZodNumber>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ type: "textarea";
585
+ name: string;
586
+ label: string;
587
+ description?: string | undefined;
588
+ required?: boolean | undefined;
589
+ placeholder?: string | undefined;
590
+ defaultValue?: string | undefined;
591
+ rows?: number | undefined;
592
+ }, {
593
+ type: "textarea";
594
+ name: string;
595
+ label: string;
596
+ description?: string | undefined;
597
+ required?: boolean | undefined;
598
+ placeholder?: string | undefined;
599
+ defaultValue?: string | undefined;
600
+ rows?: number | undefined;
601
+ }>, z.ZodObject<{
602
+ type: z.ZodLiteral<"number">;
603
+ name: z.ZodString;
604
+ label: z.ZodString;
605
+ required: z.ZodOptional<z.ZodBoolean>;
606
+ description: z.ZodOptional<z.ZodString>;
607
+ placeholder: z.ZodOptional<z.ZodString>;
608
+ defaultValue: z.ZodOptional<z.ZodNumber>;
609
+ min: z.ZodOptional<z.ZodNumber>;
610
+ max: z.ZodOptional<z.ZodNumber>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "number";
613
+ name: string;
614
+ label: string;
615
+ description?: string | undefined;
616
+ required?: boolean | undefined;
617
+ max?: number | undefined;
618
+ min?: number | undefined;
619
+ placeholder?: string | undefined;
620
+ defaultValue?: number | undefined;
621
+ }, {
622
+ type: "number";
623
+ name: string;
624
+ label: string;
625
+ description?: string | undefined;
626
+ required?: boolean | undefined;
627
+ max?: number | undefined;
628
+ min?: number | undefined;
629
+ placeholder?: string | undefined;
630
+ defaultValue?: number | undefined;
631
+ }>, z.ZodObject<{
632
+ type: z.ZodLiteral<"select">;
633
+ name: z.ZodString;
634
+ label: z.ZodString;
635
+ required: z.ZodOptional<z.ZodBoolean>;
636
+ description: z.ZodOptional<z.ZodString>;
637
+ placeholder: z.ZodOptional<z.ZodString>;
638
+ defaultValue: z.ZodOptional<z.ZodString>;
639
+ options: z.ZodUnion<[z.ZodArray<z.ZodObject<{
640
+ label: z.ZodString;
641
+ value: z.ZodString;
642
+ when: z.ZodOptional<z.ZodType<import("../../../types/workflow-config.js").Condition, z.ZodTypeDef, import("../../../types/workflow-config.js").Condition>>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ value: string;
645
+ label: string;
646
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
647
+ }, {
648
+ value: string;
649
+ label: string;
650
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
651
+ }>, "many">, z.ZodString]>;
652
+ allowCustomValue: z.ZodOptional<z.ZodBoolean>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ options: string | {
655
+ value: string;
656
+ label: string;
657
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
658
+ }[];
659
+ type: "select";
660
+ name: string;
661
+ label: string;
662
+ description?: string | undefined;
663
+ required?: boolean | undefined;
664
+ placeholder?: string | undefined;
665
+ defaultValue?: string | undefined;
666
+ allowCustomValue?: boolean | undefined;
667
+ }, {
668
+ options: string | {
669
+ value: string;
670
+ label: string;
671
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
672
+ }[];
673
+ type: "select";
674
+ name: string;
675
+ label: string;
676
+ description?: string | undefined;
677
+ required?: boolean | undefined;
678
+ placeholder?: string | undefined;
679
+ defaultValue?: string | undefined;
680
+ allowCustomValue?: boolean | undefined;
681
+ }>, z.ZodObject<{
682
+ type: z.ZodLiteral<"checkbox">;
683
+ name: z.ZodString;
684
+ label: z.ZodString;
685
+ required: z.ZodOptional<z.ZodBoolean>;
686
+ description: z.ZodOptional<z.ZodString>;
687
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ type: "checkbox";
690
+ name: string;
691
+ label: string;
692
+ description?: string | undefined;
693
+ required?: boolean | undefined;
694
+ defaultValue?: boolean | undefined;
695
+ }, {
696
+ type: "checkbox";
697
+ name: string;
698
+ label: string;
699
+ description?: string | undefined;
700
+ required?: boolean | undefined;
701
+ defaultValue?: boolean | undefined;
702
+ }>, z.ZodObject<{
703
+ type: z.ZodLiteral<"attachment">;
704
+ name: z.ZodString;
705
+ label: z.ZodString;
706
+ required: z.ZodOptional<z.ZodBoolean>;
707
+ description: z.ZodOptional<z.ZodString>;
708
+ multiple: z.ZodOptional<z.ZodBoolean>;
709
+ accept: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
710
+ maxSize: z.ZodOptional<z.ZodNumber>;
711
+ maxItems: z.ZodOptional<z.ZodNumber>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ type: "attachment";
714
+ name: string;
715
+ label: string;
716
+ maxItems?: number | undefined;
717
+ description?: string | undefined;
718
+ required?: boolean | undefined;
719
+ accept?: string[] | undefined;
720
+ maxSize?: number | undefined;
721
+ multiple?: boolean | undefined;
722
+ }, {
723
+ type: "attachment";
724
+ name: string;
725
+ label: string;
726
+ maxItems?: number | undefined;
727
+ description?: string | undefined;
728
+ required?: boolean | undefined;
729
+ accept?: string[] | undefined;
730
+ maxSize?: number | undefined;
731
+ multiple?: boolean | undefined;
732
+ }>]>, "many">;
733
+ description: z.ZodOptional<z.ZodString>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ fields: ({
736
+ type: "text";
737
+ name: string;
738
+ label: string;
739
+ description?: string | undefined;
740
+ required?: boolean | undefined;
741
+ placeholder?: string | undefined;
742
+ defaultValue?: string | undefined;
743
+ } | {
744
+ type: "textarea";
745
+ name: string;
746
+ label: string;
747
+ description?: string | undefined;
748
+ required?: boolean | undefined;
749
+ placeholder?: string | undefined;
750
+ defaultValue?: string | undefined;
751
+ rows?: number | undefined;
752
+ } | {
753
+ type: "number";
754
+ name: string;
755
+ label: string;
756
+ description?: string | undefined;
757
+ required?: boolean | undefined;
758
+ max?: number | undefined;
759
+ min?: number | undefined;
760
+ placeholder?: string | undefined;
761
+ defaultValue?: number | undefined;
762
+ } | {
763
+ options: string | {
764
+ value: string;
765
+ label: string;
766
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
767
+ }[];
768
+ type: "select";
769
+ name: string;
770
+ label: string;
771
+ description?: string | undefined;
772
+ required?: boolean | undefined;
773
+ placeholder?: string | undefined;
774
+ defaultValue?: string | undefined;
775
+ allowCustomValue?: boolean | undefined;
776
+ } | {
777
+ type: "checkbox";
778
+ name: string;
779
+ label: string;
780
+ description?: string | undefined;
781
+ required?: boolean | undefined;
782
+ defaultValue?: boolean | undefined;
783
+ } | {
784
+ type: "attachment";
785
+ name: string;
786
+ label: string;
787
+ maxItems?: number | undefined;
788
+ description?: string | undefined;
789
+ required?: boolean | undefined;
790
+ accept?: string[] | undefined;
791
+ maxSize?: number | undefined;
792
+ multiple?: boolean | undefined;
793
+ })[];
794
+ description?: string | undefined;
795
+ }, {
796
+ fields: ({
797
+ type: "text";
798
+ name: string;
799
+ label: string;
800
+ description?: string | undefined;
801
+ required?: boolean | undefined;
802
+ placeholder?: string | undefined;
803
+ defaultValue?: string | undefined;
804
+ } | {
805
+ type: "textarea";
806
+ name: string;
807
+ label: string;
808
+ description?: string | undefined;
809
+ required?: boolean | undefined;
810
+ placeholder?: string | undefined;
811
+ defaultValue?: string | undefined;
812
+ rows?: number | undefined;
813
+ } | {
814
+ type: "number";
815
+ name: string;
816
+ label: string;
817
+ description?: string | undefined;
818
+ required?: boolean | undefined;
819
+ max?: number | undefined;
820
+ min?: number | undefined;
821
+ placeholder?: string | undefined;
822
+ defaultValue?: number | undefined;
823
+ } | {
824
+ options: string | {
825
+ value: string;
826
+ label: string;
827
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
828
+ }[];
829
+ type: "select";
830
+ name: string;
831
+ label: string;
832
+ description?: string | undefined;
833
+ required?: boolean | undefined;
834
+ placeholder?: string | undefined;
835
+ defaultValue?: string | undefined;
836
+ allowCustomValue?: boolean | undefined;
837
+ } | {
838
+ type: "checkbox";
839
+ name: string;
840
+ label: string;
841
+ description?: string | undefined;
842
+ required?: boolean | undefined;
843
+ defaultValue?: boolean | undefined;
844
+ } | {
845
+ type: "attachment";
846
+ name: string;
847
+ label: string;
848
+ maxItems?: number | undefined;
849
+ description?: string | undefined;
850
+ required?: boolean | undefined;
851
+ accept?: string[] | undefined;
852
+ maxSize?: number | undefined;
853
+ multiple?: boolean | undefined;
854
+ })[];
855
+ description?: string | undefined;
856
+ }>>;
857
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
858
+ key: z.ZodString;
859
+ label: z.ZodString;
860
+ style: z.ZodOptional<z.ZodEnum<["primary", "danger", "default"]>>;
861
+ abort: z.ZodOptional<z.ZodBoolean>;
862
+ submitsForm: z.ZodOptional<z.ZodBoolean>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ key: string;
865
+ label: string;
866
+ style?: "default" | "primary" | "danger" | undefined;
867
+ abort?: boolean | undefined;
868
+ submitsForm?: boolean | undefined;
869
+ }, {
870
+ key: string;
871
+ label: string;
872
+ style?: "default" | "primary" | "danger" | undefined;
873
+ abort?: boolean | undefined;
874
+ submitsForm?: boolean | undefined;
875
+ }>, "many">>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ reason: string;
878
+ dueInMs?: number | undefined;
879
+ prompt?: string[] | undefined;
880
+ display?: {
881
+ label: string;
882
+ value?: unknown;
883
+ id?: string | undefined;
884
+ }[] | undefined;
885
+ form?: {
886
+ fields: ({
887
+ type: "text";
888
+ name: string;
889
+ label: string;
890
+ description?: string | undefined;
891
+ required?: boolean | undefined;
892
+ placeholder?: string | undefined;
893
+ defaultValue?: string | undefined;
894
+ } | {
895
+ type: "textarea";
896
+ name: string;
897
+ label: string;
898
+ description?: string | undefined;
899
+ required?: boolean | undefined;
900
+ placeholder?: string | undefined;
901
+ defaultValue?: string | undefined;
902
+ rows?: number | undefined;
903
+ } | {
904
+ type: "number";
905
+ name: string;
906
+ label: string;
907
+ description?: string | undefined;
908
+ required?: boolean | undefined;
909
+ max?: number | undefined;
910
+ min?: number | undefined;
911
+ placeholder?: string | undefined;
912
+ defaultValue?: number | undefined;
913
+ } | {
914
+ options: string | {
915
+ value: string;
916
+ label: string;
917
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
918
+ }[];
919
+ type: "select";
920
+ name: string;
921
+ label: string;
922
+ description?: string | undefined;
923
+ required?: boolean | undefined;
924
+ placeholder?: string | undefined;
925
+ defaultValue?: string | undefined;
926
+ allowCustomValue?: boolean | undefined;
927
+ } | {
928
+ type: "checkbox";
929
+ name: string;
930
+ label: string;
931
+ description?: string | undefined;
932
+ required?: boolean | undefined;
933
+ defaultValue?: boolean | undefined;
934
+ } | {
935
+ type: "attachment";
936
+ name: string;
937
+ label: string;
938
+ maxItems?: number | undefined;
939
+ description?: string | undefined;
940
+ required?: boolean | undefined;
941
+ accept?: string[] | undefined;
942
+ maxSize?: number | undefined;
943
+ multiple?: boolean | undefined;
944
+ })[];
945
+ description?: string | undefined;
946
+ } | undefined;
947
+ actions?: {
948
+ key: string;
949
+ label: string;
950
+ style?: "default" | "primary" | "danger" | undefined;
951
+ abort?: boolean | undefined;
952
+ submitsForm?: boolean | undefined;
953
+ }[] | undefined;
954
+ }, {
955
+ reason: string;
956
+ dueInMs?: number | undefined;
957
+ prompt?: string[] | undefined;
958
+ display?: {
959
+ label: string;
960
+ value?: unknown;
961
+ id?: string | undefined;
962
+ }[] | undefined;
963
+ form?: {
964
+ fields: ({
965
+ type: "text";
966
+ name: string;
967
+ label: string;
968
+ description?: string | undefined;
969
+ required?: boolean | undefined;
970
+ placeholder?: string | undefined;
971
+ defaultValue?: string | undefined;
972
+ } | {
973
+ type: "textarea";
974
+ name: string;
975
+ label: string;
976
+ description?: string | undefined;
977
+ required?: boolean | undefined;
978
+ placeholder?: string | undefined;
979
+ defaultValue?: string | undefined;
980
+ rows?: number | undefined;
981
+ } | {
982
+ type: "number";
983
+ name: string;
984
+ label: string;
985
+ description?: string | undefined;
986
+ required?: boolean | undefined;
987
+ max?: number | undefined;
988
+ min?: number | undefined;
989
+ placeholder?: string | undefined;
990
+ defaultValue?: number | undefined;
991
+ } | {
992
+ options: string | {
993
+ value: string;
994
+ label: string;
995
+ when?: import("../../../types/workflow-config.js").Condition | undefined;
996
+ }[];
997
+ type: "select";
998
+ name: string;
999
+ label: string;
1000
+ description?: string | undefined;
1001
+ required?: boolean | undefined;
1002
+ placeholder?: string | undefined;
1003
+ defaultValue?: string | undefined;
1004
+ allowCustomValue?: boolean | undefined;
1005
+ } | {
1006
+ type: "checkbox";
1007
+ name: string;
1008
+ label: string;
1009
+ description?: string | undefined;
1010
+ required?: boolean | undefined;
1011
+ defaultValue?: boolean | undefined;
1012
+ } | {
1013
+ type: "attachment";
1014
+ name: string;
1015
+ label: string;
1016
+ maxItems?: number | undefined;
1017
+ description?: string | undefined;
1018
+ required?: boolean | undefined;
1019
+ accept?: string[] | undefined;
1020
+ maxSize?: number | undefined;
1021
+ multiple?: boolean | undefined;
1022
+ })[];
1023
+ description?: string | undefined;
1024
+ } | undefined;
1025
+ actions?: {
1026
+ key: string;
1027
+ label: string;
1028
+ style?: "default" | "primary" | "danger" | undefined;
1029
+ abort?: boolean | undefined;
1030
+ submitsForm?: boolean | undefined;
1031
+ }[] | undefined;
1032
+ }>;
1033
+ readonly outputSchema: z.ZodObject<{
1034
+ resumeData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ resumeData: Record<string, unknown>;
1037
+ }, {
1038
+ resumeData: Record<string, unknown>;
1039
+ }>;
1040
+ readonly category: StepCategory;
1041
+ readonly icon = "user-check";
1042
+ /** The answer is shaped by the form the author declared. */
1043
+ resolveOutputJsonSchema(config: Record<string, unknown>): Record<string, unknown>;
1044
+ execute(config: WaitForHumanConfig, ctx: StepExecutionContext): Promise<WaitForHumanOutput>;
1045
+ onResume(rowData: Record<string, unknown>): Promise<WaitForHumanOutput>;
1046
+ /**
1047
+ * The form as this person sees it: a choice carrying a `when` is kept only
1048
+ * when the condition holds against the run so far.
1049
+ *
1050
+ * What is filtered is the *offer*, not the answer — so nothing downstream has
1051
+ * to know a choice existed. A field left with no choices still renders; that
1052
+ * is the author's flow saying "under this data, there is nothing to pick here",
1053
+ * and hiding the question instead would be this step inventing a rule.
1054
+ */
1055
+ private offered;
1056
+ }
1057
+ //# sourceMappingURL=wait-for-human.step.d.ts.map