@requence/task 1.0.0-alpha.3 → 1.0.0-alpha.31

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 (98) hide show
  1. package/CHANGELOG.md +168 -0
  2. package/build/chunk-y4v98p2s.js +53 -0
  3. package/build/chunk-y4v98p2s.js.map +10 -0
  4. package/build/cli.js +659 -157
  5. package/build/cli.js.map +28 -17
  6. package/build/index.js +799 -218
  7. package/build/index.js.map +20 -8
  8. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  9. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/index.d.ts +7 -0
  15. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/index.d.ts +10 -6
  25. package/build/types/helpers/src/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/types.d.ts +12 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +29 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +12 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +447 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +471 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +5 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  41. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  45. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/taskOptions.d.ts +22 -0
  47. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +636 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +354 -0
  51. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  52. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  54. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  55. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  58. package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
  59. package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
  61. package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
  62. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  64. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  65. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  66. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  68. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  69. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  70. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  71. package/build/types/helpers/src/utils/types.d.ts +4 -0
  72. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  73. package/build/types/task/src/abortTask.d.ts +8 -0
  74. package/build/types/task/src/abortTask.d.ts.map +1 -0
  75. package/build/types/task/src/createTask.d.ts +5 -102
  76. package/build/types/task/src/createTask.d.ts.map +1 -1
  77. package/build/types/task/src/getTask.d.ts +22 -0
  78. package/build/types/task/src/getTask.d.ts.map +1 -0
  79. package/build/types/task/src/index.d.ts +4 -0
  80. package/build/types/task/src/index.d.ts.map +1 -1
  81. package/build/types/task/src/types.d.ts +186 -938
  82. package/build/types/task/src/types.d.ts.map +1 -1
  83. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  84. package/build/types/task/src/watchTasks.d.ts +7 -97
  85. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  86. package/package.json +7 -5
  87. package/build/chunk-6pjtq0hg.js +0 -66
  88. package/build/chunk-6pjtq0hg.js.map +0 -12
  89. package/build/types/helpers/src/clone.d.ts +0 -3
  90. package/build/types/helpers/src/clone.d.ts.map +0 -1
  91. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  92. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  93. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  94. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  95. package/build/types/helpers/src/utils.d.ts.map +0 -1
  96. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
  97. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
  98. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -0,0 +1,354 @@
1
+ import { z } from 'zod/v4';
2
+ declare const nodeInitUpdateSchema: z.ZodObject<{
3
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
4
+ id: z.ZodUUID;
5
+ node: z.ZodObject<{
6
+ id: z.ZodUUID;
7
+ type: z.ZodEnum<{
8
+ service: "service";
9
+ logic: "logic";
10
+ or: "or";
11
+ reference: "reference";
12
+ }>;
13
+ alias: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ type: z.ZodLiteral<"NODE_INIT">;
16
+ triggers: z.ZodArray<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ export type NodeInitUpdate = z.infer<typeof nodeInitUpdateSchema>;
19
+ declare const nodeStartUpdateSchema: z.ZodObject<{
20
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
21
+ id: z.ZodUUID;
22
+ node: z.ZodObject<{
23
+ id: z.ZodUUID;
24
+ type: z.ZodEnum<{
25
+ service: "service";
26
+ logic: "logic";
27
+ or: "or";
28
+ reference: "reference";
29
+ }>;
30
+ alias: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ type: z.ZodLiteral<"NODE_START">;
33
+ libVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
+ triggers: z.ZodArray<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ export type NodeStartUpdate = z.infer<typeof nodeStartUpdateSchema>;
37
+ declare const nodeErrorUpdateSchema: z.ZodObject<{
38
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
39
+ id: z.ZodUUID;
40
+ node: z.ZodObject<{
41
+ id: z.ZodUUID;
42
+ type: z.ZodEnum<{
43
+ service: "service";
44
+ logic: "logic";
45
+ or: "or";
46
+ reference: "reference";
47
+ }>;
48
+ alias: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>;
50
+ type: z.ZodLiteral<"NODE_ERROR">;
51
+ error: z.ZodString;
52
+ }, z.core.$strip>;
53
+ export type NodeErrorUpdate = z.infer<typeof nodeErrorUpdateSchema>;
54
+ declare const nodeUpdateSchema: z.ZodObject<{
55
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
56
+ id: z.ZodUUID;
57
+ node: z.ZodObject<{
58
+ id: z.ZodUUID;
59
+ type: z.ZodEnum<{
60
+ service: "service";
61
+ logic: "logic";
62
+ or: "or";
63
+ reference: "reference";
64
+ }>;
65
+ alias: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>;
67
+ type: z.ZodLiteral<"NODE_UPDATE">;
68
+ output: z.ZodNullable<z.ZodString>;
69
+ data: z.ZodUnknown;
70
+ }, z.core.$strip>;
71
+ export type NodeUpdate = z.infer<typeof nodeUpdateSchema>;
72
+ declare const nodeCallbackSchema: z.ZodObject<{
73
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
74
+ id: z.ZodUUID;
75
+ node: z.ZodObject<{
76
+ id: z.ZodUUID;
77
+ type: z.ZodEnum<{
78
+ service: "service";
79
+ logic: "logic";
80
+ or: "or";
81
+ reference: "reference";
82
+ }>;
83
+ alias: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ type: z.ZodLiteral<"NODE_CALLBACK">;
86
+ targetNode: z.ZodObject<{
87
+ id: z.ZodUUID;
88
+ type: z.ZodEnum<{
89
+ service: "service";
90
+ logic: "logic";
91
+ or: "or";
92
+ reference: "reference";
93
+ }>;
94
+ alias: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>;
96
+ propertyPath: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
97
+ output: z.ZodNullable<z.ZodString>;
98
+ data: z.ZodUnknown;
99
+ }, z.core.$strip>;
100
+ export type NodeCallback = z.infer<typeof nodeCallbackSchema>;
101
+ declare const nodeEndUpdateSchema: z.ZodObject<{
102
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
103
+ id: z.ZodUUID;
104
+ node: z.ZodObject<{
105
+ id: z.ZodUUID;
106
+ type: z.ZodEnum<{
107
+ service: "service";
108
+ logic: "logic";
109
+ or: "or";
110
+ reference: "reference";
111
+ }>;
112
+ alias: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ type: z.ZodLiteral<"NODE_END">;
115
+ }, z.core.$strip>;
116
+ export type NodeEndUpdate = z.infer<typeof nodeEndUpdateSchema>;
117
+ declare const nodeDebugUpdateSchema: z.ZodObject<{
118
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
119
+ id: z.ZodUUID;
120
+ node: z.ZodObject<{
121
+ id: z.ZodUUID;
122
+ type: z.ZodEnum<{
123
+ service: "service";
124
+ logic: "logic";
125
+ or: "or";
126
+ reference: "reference";
127
+ }>;
128
+ alias: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ type: z.ZodLiteral<"NODE_DEBUG">;
131
+ severity: z.ZodEnum<{
132
+ error: "error";
133
+ log: "log";
134
+ warn: "warn";
135
+ info: "info";
136
+ system: "system";
137
+ }>;
138
+ data: z.ZodUnknown;
139
+ }, z.core.$strip>;
140
+ export type NodeDebugUpdate = z.infer<typeof nodeDebugUpdateSchema>;
141
+ declare const nodeDeferUpdateSchema: z.ZodObject<{
142
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
143
+ id: z.ZodUUID;
144
+ node: z.ZodObject<{
145
+ id: z.ZodUUID;
146
+ type: z.ZodEnum<{
147
+ service: "service";
148
+ logic: "logic";
149
+ or: "or";
150
+ reference: "reference";
151
+ }>;
152
+ alias: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>;
154
+ type: z.ZodLiteral<"NODE_DEFER">;
155
+ reason: z.ZodUnknown;
156
+ }, z.core.$strip>;
157
+ export type NodeDeferUpdate = z.infer<typeof nodeDeferUpdateSchema>;
158
+ declare const taskStartUpdateSchema: z.ZodObject<{
159
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
160
+ id: z.ZodUUID;
161
+ type: z.ZodLiteral<"TASK_START">;
162
+ parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
163
+ taskId: z.ZodUUID;
164
+ nodeId: z.ZodUUID;
165
+ messageId: z.ZodUUID;
166
+ }, z.core.$strip>>>;
167
+ input: z.ZodUnknown;
168
+ }, z.core.$strip>;
169
+ export type TaskStartUpdate = z.infer<typeof taskStartUpdateSchema>;
170
+ declare const taskErrorUpdateSchema: z.ZodObject<{
171
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
172
+ id: z.ZodUUID;
173
+ type: z.ZodLiteral<"TASK_ERROR">;
174
+ reason: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>;
176
+ export type TaskErrorUpdate = z.infer<typeof taskErrorUpdateSchema>;
177
+ declare const taskEndUpdateSchema: z.ZodObject<{
178
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
179
+ id: z.ZodUUID;
180
+ type: z.ZodLiteral<"TASK_END">;
181
+ exitName: z.ZodNullable<z.ZodString>;
182
+ result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
183
+ }, z.core.$strip>;
184
+ export type TaskEndUpdate = z.infer<typeof taskEndUpdateSchema>;
185
+ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
186
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
187
+ id: z.ZodUUID;
188
+ node: z.ZodObject<{
189
+ id: z.ZodUUID;
190
+ type: z.ZodEnum<{
191
+ service: "service";
192
+ logic: "logic";
193
+ or: "or";
194
+ reference: "reference";
195
+ }>;
196
+ alias: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ type: z.ZodLiteral<"NODE_INIT">;
199
+ triggers: z.ZodArray<z.ZodString>;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
202
+ id: z.ZodUUID;
203
+ node: z.ZodObject<{
204
+ id: z.ZodUUID;
205
+ type: z.ZodEnum<{
206
+ service: "service";
207
+ logic: "logic";
208
+ or: "or";
209
+ reference: "reference";
210
+ }>;
211
+ alias: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strip>;
213
+ type: z.ZodLiteral<"NODE_START">;
214
+ libVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
215
+ triggers: z.ZodArray<z.ZodString>;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
218
+ id: z.ZodUUID;
219
+ node: z.ZodObject<{
220
+ id: z.ZodUUID;
221
+ type: z.ZodEnum<{
222
+ service: "service";
223
+ logic: "logic";
224
+ or: "or";
225
+ reference: "reference";
226
+ }>;
227
+ alias: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strip>;
229
+ type: z.ZodLiteral<"NODE_ERROR">;
230
+ error: z.ZodString;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
233
+ id: z.ZodUUID;
234
+ node: z.ZodObject<{
235
+ id: z.ZodUUID;
236
+ type: z.ZodEnum<{
237
+ service: "service";
238
+ logic: "logic";
239
+ or: "or";
240
+ reference: "reference";
241
+ }>;
242
+ alias: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strip>;
244
+ type: z.ZodLiteral<"NODE_UPDATE">;
245
+ output: z.ZodNullable<z.ZodString>;
246
+ data: z.ZodUnknown;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
249
+ id: z.ZodUUID;
250
+ node: z.ZodObject<{
251
+ id: z.ZodUUID;
252
+ type: z.ZodEnum<{
253
+ service: "service";
254
+ logic: "logic";
255
+ or: "or";
256
+ reference: "reference";
257
+ }>;
258
+ alias: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strip>;
260
+ type: z.ZodLiteral<"NODE_CALLBACK">;
261
+ targetNode: z.ZodObject<{
262
+ id: z.ZodUUID;
263
+ type: z.ZodEnum<{
264
+ service: "service";
265
+ logic: "logic";
266
+ or: "or";
267
+ reference: "reference";
268
+ }>;
269
+ alias: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>;
271
+ propertyPath: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
272
+ output: z.ZodNullable<z.ZodString>;
273
+ data: z.ZodUnknown;
274
+ }, z.core.$strip>, z.ZodObject<{
275
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
276
+ id: z.ZodUUID;
277
+ node: z.ZodObject<{
278
+ id: z.ZodUUID;
279
+ type: z.ZodEnum<{
280
+ service: "service";
281
+ logic: "logic";
282
+ or: "or";
283
+ reference: "reference";
284
+ }>;
285
+ alias: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strip>;
287
+ type: z.ZodLiteral<"NODE_END">;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
290
+ id: z.ZodUUID;
291
+ node: z.ZodObject<{
292
+ id: z.ZodUUID;
293
+ type: z.ZodEnum<{
294
+ service: "service";
295
+ logic: "logic";
296
+ or: "or";
297
+ reference: "reference";
298
+ }>;
299
+ alias: z.ZodOptional<z.ZodString>;
300
+ }, z.core.$strip>;
301
+ type: z.ZodLiteral<"NODE_DEBUG">;
302
+ severity: z.ZodEnum<{
303
+ error: "error";
304
+ log: "log";
305
+ warn: "warn";
306
+ info: "info";
307
+ system: "system";
308
+ }>;
309
+ data: z.ZodUnknown;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
312
+ id: z.ZodUUID;
313
+ node: z.ZodObject<{
314
+ id: z.ZodUUID;
315
+ type: z.ZodEnum<{
316
+ service: "service";
317
+ logic: "logic";
318
+ or: "or";
319
+ reference: "reference";
320
+ }>;
321
+ alias: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>;
323
+ type: z.ZodLiteral<"NODE_DEFER">;
324
+ reason: z.ZodUnknown;
325
+ }, z.core.$strip>, z.ZodObject<{
326
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
327
+ id: z.ZodUUID;
328
+ type: z.ZodLiteral<"TASK_START">;
329
+ parentTask: z.ZodDefault<z.ZodNullable<z.ZodObject<{
330
+ taskId: z.ZodUUID;
331
+ nodeId: z.ZodUUID;
332
+ messageId: z.ZodUUID;
333
+ }, z.core.$strip>>>;
334
+ input: z.ZodUnknown;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
337
+ id: z.ZodUUID;
338
+ type: z.ZodLiteral<"TASK_ERROR">;
339
+ reason: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$strip>, z.ZodObject<{
341
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
342
+ id: z.ZodUUID;
343
+ type: z.ZodLiteral<"TASK_END">;
344
+ exitName: z.ZodNullable<z.ZodString>;
345
+ result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
348
+ id: z.ZodUUID;
349
+ type: z.ZodLiteral<"TASK_ABORTED">;
350
+ reason: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strip>]>;
352
+ export type Update = z.infer<typeof updateSchema>;
353
+ export {};
354
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAkB1B,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAGxB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAIzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBAIpB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMtB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;iBAEvB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;iBAIzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;iBAWzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,mBAAmB;;;;;;iBAIvB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAO/D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAavB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare function callbackToAsyncIterator<T>(subscribe: (push: (value: T) => void, fail: (error: Error) => void, end: () => void) => void): AsyncIterator<T>;
2
+ export declare function callbackToAsyncIterable<T>(...args: Parameters<typeof callbackToAsyncIterator<T>>): AsyncIterable<T>;
3
+ //# sourceMappingURL=callbackToAsyncIterator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callbackToAsyncIterator.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/callbackToAsyncIterator.ts"],"names":[],"mappings":"AAEA,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,SAAS,EAAE,CACT,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EACxB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,EAC5B,GAAG,EAAE,MAAM,IAAI,KACZ,IAAI,GACR,aAAa,CAAC,CAAC,CAAC,CAgDlB;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,GACrD,aAAa,CAAC,CAAC,CAAC,CAMlB"}
@@ -0,0 +1,3 @@
1
+ export declare const CLONE_SYMBOL: unique symbol;
2
+ export declare function clone(data: any): any;
3
+ //# sourceMappingURL=clone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/clone.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,eAAqB,CAAA;AAE9C,wBAAgB,KAAK,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAiBpC"}
@@ -0,0 +1,2 @@
1
+ export declare function createObjectProxy(obj: Record<string, unknown>, onChange: (newObj: Record<string, unknown>) => void): Record<string, unknown>;
2
+ //# sourceMappingURL=createObjectProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createObjectProxy.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/createObjectProxy.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,2BA2BpD"}
@@ -1,4 +1,4 @@
1
- export default function createRemotePromise<T = void>(onAwait?: (resolve: (value: T) => void, reject: (error: any) => void) => void | Promise<void>): Promise<T> & {
1
+ export declare function createRemotePromise<T = void>(onAwait?: (resolve: (value: T) => void, reject: (error: any) => void) => void | Promise<void>): Promise<T> & {
2
2
  resolve: (value: T | PromiseLike<T>) => void;
3
3
  reject: (reason?: any) => void;
4
4
  promise: Promise<T>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRemotePromise.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/createRemotePromise.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,CAAC,GAAG,IAAI,EAC1C,OAAO,CAAC,EAAE,CACR,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC3B,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,KACzB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;qBAEI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI;sBAC1B,GAAG,KAAK,IAAI;;EAgC3C;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function isRecord(data: unknown): data is Record<string, unknown>;
2
+ //# sourceMappingURL=isRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRecord.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/isRecord.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEvE"}
@@ -0,0 +1,18 @@
1
+ type DataVistor<T> = (data: T, path: Array<string | number>) => Promise<any> | any;
2
+ interface DataVistors {
3
+ Null?: DataVistor<null>;
4
+ String?: DataVistor<string>;
5
+ Number?: DataVistor<number>;
6
+ Object?: DataVistor<object>;
7
+ Array?: DataVistor<Array<any>>;
8
+ Buffer?: DataVistor<Buffer>;
9
+ Function?: DataVistor<(...args: any[]) => any>;
10
+ Symbol?: DataVistor<symbol>;
11
+ }
12
+ type HasPromiseVistor<T extends DataVistors, Then, Else> = T[keyof T] extends (...args: any[]) => any ? Promise<any> extends ReturnType<T[keyof T]> ? Then : Else : Else;
13
+ export declare function mapData<Output, Input = unknown, V extends DataVistors = DataVistors>(data: Input, visitors: V): HasPromiseVistor<V, Promise<unknown extends Output ? Input : Output>, unknown extends Output ? Input : Output>;
14
+ export declare namespace mapData {
15
+ var abort: () => never;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=mapData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapData.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/mapData.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,CAAC,CAAC,IAAI,CACnB,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KACzB,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;AAEvB,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC9C,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAC5E,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,OAAO,CAAC,GAAG,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,IAAI,GACJ,IAAI,GACN,IAAI,CAAA;AAmBR,wBAAgB,OAAO,CACrB,MAAM,EACN,KAAK,GAAG,OAAO,EACf,CAAC,SAAS,WAAW,GAAG,WAAW,EAEnC,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,CAAC,GACV,gBAAgB,CACjB,CAAC,EACD,OAAO,CAAC,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC,EAChD,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CACxC,CAiFA;yBA5Fe,OAAO"}
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type { z } from 'zod/v4';
2
2
  export declare function matchSchema<Schema extends z.ZodSchema>(schema: Schema, input: unknown): input is z.infer<Schema>;
3
3
  export declare function matchSchema<Schema extends z.ZodSchema>(schema: Schema): (input: unknown) => input is z.infer<Schema>;
4
- //# sourceMappingURL=utils.d.ts.map
4
+ //# sourceMappingURL=matchSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchSchema.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/matchSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,wBAAgB,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,SAAS,EACpD,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;AAC3B,wBAAgB,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,SAAS,EACpD,MAAM,EAAE,MAAM,GACb,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"obfuscate.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/obfuscate.ts"],"names":[],"mappings":"AAUA,wBAAgB,SAAS,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,UA0BhD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,UAU1C;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,YA4BtC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod/v4';
2
+ declare const callbackObjectSchema: z.ZodObject<{
3
+ sourceId: z.ZodString;
4
+ outputName: z.ZodNullable<z.ZodString>;
5
+ propertyPath: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
6
+ callbackId: z.ZodUUID;
7
+ __REQUENCE_type: z.ZodLiteral<"RequenceCallback">;
8
+ }, z.core.$strip>;
9
+ export type CallbackObject = z.infer<typeof callbackObjectSchema>;
10
+ export declare function isCallbackObject(data: unknown): data is CallbackObject;
11
+ export type RequenceCallback<T> = (arg: T) => void;
12
+ export type WrappedRequenceCallback<T> = RequenceCallback<T> & {
13
+ response(): Promise<T>;
14
+ };
15
+ export declare function createCallback<T>(callback?: (arg: T) => void): WrappedRequenceCallback<T>;
16
+ export {};
17
+ //# sourceMappingURL=requenceCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requenceCallback.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/requenceCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,oBAAoB;;;;;;iBAMxB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,cAAc,CAEtE;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAA;AAClD,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAC7D,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAAA;CACvB,CAAA;AAED,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,GAC1B,uBAAuB,CAAC,CAAC,CAAC,CAgB5B"}
@@ -0,0 +1,8 @@
1
+ export declare function resolveRequenceTypes(data: any, onCallback?: (params: {
2
+ sourceId: string;
3
+ callbackId: string;
4
+ outputName: string | null;
5
+ propertyPath: (string | number)[];
6
+ arg: unknown;
7
+ }) => void): any;
8
+ //# sourceMappingURL=resolveRequenceTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRequenceTypes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/resolveRequenceTypes.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,GAAG,EACT,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IACjC,GAAG,EAAE,OAAO,CAAA;CACb,KAAK,IAAI,OAmBX"}
@@ -0,0 +1,4 @@
1
+ export type Prettify<T> = {
2
+ [K in keyof T]: T[K];
3
+ } & {};
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ interface AbortTaskOptions {
2
+ accessToken?: string;
3
+ reason?: string;
4
+ taskId: string;
5
+ }
6
+ export declare function abortTask(options: AbortTaskOptions): Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=abortTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abortTask.d.ts","sourceRoot":"","sources":["../../../../src/abortTask.ts"],"names":[],"mappings":"AAWA,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AACD,wBAAsB,SAAS,CAAC,OAAO,EAAE,gBAAgB,iBAgBxD"}
@@ -3,108 +3,11 @@ export declare class TaskError extends Error {
3
3
  readonly taskTemplate: string;
4
4
  constructor(message: string, taskTemplate: string);
5
5
  }
6
- type TaskUpdateHandler = (update: Update) => void;
7
- export declare function createTask<T extends keyof Requence.TaskTemplate | (string & {})>(options: CreateTaskOptions<T>, onUpdate?: TaskUpdateHandler): Promise<Result<T>> & AsyncIterable<{
8
- type: "taskStart";
9
- timestamp: Date;
10
- taskId: string;
11
- input?: unknown;
12
- meta?: unknown;
13
- } | {
14
- type: "taskError";
15
- timestamp: Date;
16
- taskId: string;
17
- error: string;
18
- } | {
19
- type: "taskEnd";
20
- timestamp: Date;
21
- taskId: string;
22
- result: Record<string, unknown>;
23
- partialResults: {
24
- timestamp: Date | null;
25
- node: {
26
- type: "service";
27
- id: string;
28
- service?: {
29
- id: string;
30
- name: string;
31
- version: string;
32
- } | undefined;
33
- alias?: string | undefined;
34
- } | {
35
- type: "logic";
36
- id: string;
37
- alias?: string | undefined;
38
- logic?: {
39
- language: "typescript" | "javascript" | "python";
40
- } | undefined;
41
- };
42
- error?: string | undefined;
43
- data?: unknown;
44
- }[];
45
- } | {
46
- type: "nodeStart";
47
- timestamp: Date;
48
- taskId: string;
49
- node: {
50
- type: "service";
51
- id: string;
52
- service?: {
53
- id: string;
54
- name: string;
55
- version: string;
56
- } | undefined;
57
- alias?: string | undefined;
58
- } | {
59
- type: "logic";
60
- id: string;
61
- alias?: string | undefined;
62
- logic?: {
63
- language: "typescript" | "javascript" | "python";
64
- } | undefined;
65
- };
66
- } | {
67
- type: "nodeUpdate";
68
- timestamp: Date;
69
- taskId: string;
70
- data?: unknown;
71
- } | {
72
- type: "nodeError";
73
- timestamp: Date;
74
- taskId: string;
75
- error: string;
76
- } | {
77
- type: "nodeDefer";
78
- timestamp: Date;
79
- taskId: string;
80
- reason?: string | undefined;
81
- } | {
82
- type: "nodeEnd";
83
- timestamp: Date;
84
- taskId: string;
85
- node: {
86
- type: "service";
87
- id: string;
88
- service?: {
89
- id: string;
90
- name: string;
91
- version: string;
92
- } | undefined;
93
- alias?: string | undefined;
94
- } | {
95
- type: "logic";
96
- id: string;
97
- alias?: string | undefined;
98
- logic?: {
99
- language: "typescript" | "javascript" | "python";
100
- } | undefined;
101
- };
102
- }> & {
103
- getTaskId(): Promise<string> & {
104
- resolve: (value: string | PromiseLike<string>) => void;
105
- reject: (reason?: any) => void;
106
- promise: Promise<string>;
107
- };
6
+ type TaskUpdateHandler<T> = (update: Update<T>) => void;
7
+ export declare function createTask<T extends keyof RequenceTask.TaskTemplate | (string & {})>(options: CreateTaskOptions<T>, onUpdate?: TaskUpdateHandler<T>): Promise<Result<T>> & AsyncIterable<Update<T>> & {
8
+ getTaskId(): Promise<string>;
9
+ getTaskUrl(): Promise<string | null>;
10
+ abort(reason?: string): Promise<void>;
108
11
  };
109
12
  export {};
110
13
  //# sourceMappingURL=createTask.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createTask.d.ts","sourceRoot":"","sources":["../../../../src/createTask.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,MAAM,EAEZ,MAAM,YAAY,CAAA;AAInB,qBAAa,SAAU,SAAQ,KAAK;aAGhB,YAAY,EAAE,MAAM;gBADpC,OAAO,EAAE,MAAM,EACC,YAAY,EAAE,MAAM;CAIvC;AAED,KAAK,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,wBAAgB,UAAU,CACxB,CAAC,SAAS,MAAM,QAAQ,CAAC,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EACrD,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4K5D"}
1
+ {"version":3,"file":"createTask.d.ts","sourceRoot":"","sources":["../../../../src/createTask.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,MAAM,EAGZ,MAAM,YAAY,CAAA;AAGnB,qBAAa,SAAU,SAAQ,KAAK;aAGhB,YAAY,EAAE,MAAM;gBADpC,OAAO,EAAE,MAAM,EACC,YAAY,EAAE,MAAM;CAIvC;AAED,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;AAEvD,wBAAgB,UAAU,CACxB,CAAC,SAAS,MAAM,YAAY,CAAC,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EACzD,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;;;mBAyPvC,MAAM;EAS9B"}
@@ -0,0 +1,22 @@
1
+ interface GetTaskOptions {
2
+ accessToken?: string;
3
+ taskId: string;
4
+ }
5
+ export declare function getTask(taskIdOrOptions: string | GetTaskOptions): Promise<{
6
+ status: "successful" | "failed" | "idle" | "pending" | "running" | "stopped";
7
+ context: {
8
+ input: unknown;
9
+ taskId: string;
10
+ result: unknown;
11
+ getNodeData: <A extends string>(alias: A) => unknown;
12
+ getNodeError: (alias: string) => string | null;
13
+ } | {
14
+ input: unknown;
15
+ taskId: string;
16
+ result: unknown;
17
+ getNodeData: <A extends string>(alias: A) => unknown;
18
+ getNodeError: (alias: string) => string | null;
19
+ };
20
+ }>;
21
+ export {};
22
+ //# sourceMappingURL=getTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTask.d.ts","sourceRoot":"","sources":["../../../../src/getTask.ts"],"names":[],"mappings":"AAqBA,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,wBAAsB,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,cAAc;;;;;;;;;;;;;;;GA2CrE"}
@@ -1,3 +1,7 @@
1
1
  export { createTask } from './createTask.ts';
2
2
  export { watchTasks } from './watchTasks.ts';
3
+ export { abortTask } from './abortTask.ts';
4
+ export { getTask } from './getTask.ts';
5
+ export { RequenceFile, RequenceStream } from '../../helpers/src/files/index.js';
6
+ export { type RequenceCallback } from '../../helpers/src/index.js';
3
7
  //# sourceMappingURL=index.d.ts.map