@requence/task 1.0.0-alpha.5 → 1.0.0-alpha.51

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 (108) hide show
  1. package/CHANGELOG.md +276 -0
  2. package/README.md +383 -0
  3. package/build/chunk-b4h2we9a.js +35 -0
  4. package/build/chunk-b4h2we9a.js.map +10 -0
  5. package/build/cli.js +21 -4874
  6. package/build/cli.js.map +4 -37
  7. package/build/index.js +1011 -233
  8. package/build/index.js.map +22 -8
  9. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  10. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  12. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  14. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  15. package/build/types/helpers/src/files/index.d.ts +7 -0
  16. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  18. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  20. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  22. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  23. package/build/types/helpers/src/files/types.d.ts +4 -0
  24. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  25. package/build/types/helpers/src/index.d.ts +12 -6
  26. package/build/types/helpers/src/index.d.ts.map +1 -1
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  28. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
  30. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
  32. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts +17 -0
  34. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts +510 -0
  36. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  37. package/build/types/helpers/src/protocol/command.d.ts +507 -0
  38. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
  40. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  41. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  42. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts +181 -0
  44. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  45. package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
  46. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  47. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +267 -0
  48. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts +874 -0
  50. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  51. package/build/types/helpers/src/protocol/update.d.ts +406 -0
  52. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  54. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  55. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  56. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  58. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  59. package/build/types/helpers/src/utils/debounce.d.ts +4 -0
  60. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -0
  61. package/build/types/helpers/src/utils/guards.d.ts +3 -0
  62. package/build/types/helpers/src/utils/guards.d.ts.map +1 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  64. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  65. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  66. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  68. package/build/types/helpers/src/utils/obj.d.ts +4 -0
  69. package/build/types/helpers/src/utils/obj.d.ts.map +1 -0
  70. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  71. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  72. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  73. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  74. package/build/types/helpers/src/utils/types.d.ts +7 -0
  75. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  76. package/build/types/task/src/abortTask.d.ts +8 -0
  77. package/build/types/task/src/abortTask.d.ts.map +1 -0
  78. package/build/types/task/src/ackTask.d.ts +7 -0
  79. package/build/types/task/src/ackTask.d.ts.map +1 -0
  80. package/build/types/task/src/createTask.d.ts +14 -103
  81. package/build/types/task/src/createTask.d.ts.map +1 -1
  82. package/build/types/task/src/getTask.d.ts +26 -0
  83. package/build/types/task/src/getTask.d.ts.map +1 -0
  84. package/build/types/task/src/index.d.ts +7 -1
  85. package/build/types/task/src/index.d.ts.map +1 -1
  86. package/build/types/task/src/protectTask.d.ts +7 -0
  87. package/build/types/task/src/protectTask.d.ts.map +1 -0
  88. package/build/types/task/src/recreateTask.d.ts +10 -0
  89. package/build/types/task/src/recreateTask.d.ts.map +1 -0
  90. package/build/types/task/src/types.d.ts +196 -941
  91. package/build/types/task/src/types.d.ts.map +1 -1
  92. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  93. package/build/types/task/src/watchTasks.d.ts +13 -97
  94. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  95. package/package.json +12 -7
  96. package/build/chunk-6pjtq0hg.js +0 -66
  97. package/build/chunk-6pjtq0hg.js.map +0 -12
  98. package/build/types/helpers/src/clone.d.ts +0 -3
  99. package/build/types/helpers/src/clone.d.ts.map +0 -1
  100. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  101. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  102. package/build/types/helpers/src/createRemotePromise.d.ts +0 -7
  103. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  104. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  105. package/build/types/helpers/src/utils.d.ts.map +0 -1
  106. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
  107. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
  108. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
@@ -1,988 +1,243 @@
1
- import { z } from 'zod';
2
- type Prettify<T> = {
3
- [K in keyof T]: T[K];
4
- } & {};
1
+ import type { Prettify } from '../../helpers/src/index.js';
2
+ import { z } from 'zod/v4';
5
3
  type IfUnknown<T, Then, Else> = unknown extends T ? T extends unknown ? Then : Else : Else;
6
4
  type IfNull<T, Then, Else> = T extends null ? null extends T ? Then : Else : Else;
7
5
  export type CreateTaskOptions<T> = {
8
6
  taskTemplate: T;
9
7
  name?: string | null;
8
+ priority?: number;
10
9
  accessToken?: string;
10
+ suppressBranchWarning?: boolean;
11
+ requireAck?: boolean;
11
12
  } & IfNull<Input<T>, {
12
13
  input?: null;
13
14
  }, IfUnknown<Input<T>, {
14
15
  input?: any;
15
16
  }, {
16
17
  input: Input<T>;
17
- }>> & IfNull<Meta<T>, {
18
- meta?: null;
19
- }, IfUnknown<Meta<T>, {
20
- meta?: any;
21
- }, {
22
- meta: Meta<T>;
23
18
  }>>;
24
- type Input<T> = T extends keyof Requence.TaskTemplate ? Requence.TaskTemplate[T]['input'] : unknown;
25
- type Meta<T> = T extends keyof Requence.TaskTemplate ? Requence.TaskTemplate[T]['meta'] : unknown;
26
- type Data<T> = T extends keyof Requence.TaskTemplate ? Prettify<Requence.TaskTemplate[T]['results']> : unknown;
27
- type NamedData<T, A> = T extends keyof Requence.TaskTemplate ? A extends keyof Requence.TaskTemplate[T]['namedResults'] ? Prettify<Requence.TaskTemplate[T]['namedResults'][A]> : unknown : unknown;
28
- type Alias<T> = T extends keyof Requence.TaskTemplate ? keyof Requence.TaskTemplate[T]['namedResults'] : string;
19
+ type Input<T> = T extends keyof RequenceTask.TaskTemplate ? RequenceTask.TaskTemplate[T]['input'] : unknown;
20
+ type Data<T> = T extends keyof RequenceTask.TaskTemplate ? Prettify<RequenceTask.TaskTemplate[T]['results']> : unknown;
21
+ type NamedData<T, A> = T extends keyof RequenceTask.TaskTemplate ? A extends keyof RequenceTask.TaskTemplate[T]['namedResults'] ? Prettify<RequenceTask.TaskTemplate[T]['namedResults'][A]> : unknown : unknown;
22
+ type Alias<T> = T extends keyof RequenceTask.TaskTemplate ? keyof RequenceTask.TaskTemplate[T]['namedResults'] : string;
29
23
  export interface Result<T> {
30
- getInput(): Input<T>;
31
- getMeta(): Meta<T>;
32
- getData: {
33
- (): Data<T>;
34
- <A extends Alias<T>>(alias: A): NamedData<T, A>;
35
- };
36
- getError(alias: Alias<T>): string | null;
24
+ input: Input<T>;
25
+ result: Data<T>;
26
+ taskId: string;
27
+ taskUrl: string;
28
+ getNodeData<A extends Alias<T>>(alias: A): NamedData<T, A>;
29
+ getNodeError(alias: Alias<T>): string | null;
37
30
  }
38
- export declare const updateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
39
- timestamp: z.ZodDate;
40
- taskId: z.ZodString;
41
- }, {
31
+ type Context<T> = Omit<Result<T>, 'taskUrl'>;
32
+ declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ timestamp: z.ZodCoercedDate<unknown>;
34
+ taskId: z.ZodUUID;
35
+ name: z.ZodString;
36
+ updateId: z.ZodUUID;
42
37
  type: z.ZodLiteral<"taskStart">;
43
38
  input: z.ZodUnknown;
44
- meta: z.ZodUnknown;
45
- }>, "strip", z.ZodTypeAny, {
46
- type: "taskStart";
47
- timestamp: Date;
48
- taskId: string;
49
- input?: unknown;
50
- meta?: unknown;
51
- }, {
52
- type: "taskStart";
53
- timestamp: Date;
54
- taskId: string;
55
- input?: unknown;
56
- meta?: unknown;
57
- }>, z.ZodObject<z.objectUtil.extendShape<{
58
- timestamp: z.ZodDate;
59
- taskId: z.ZodString;
60
- }, {
39
+ rootTaskId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ timestamp: z.ZodCoercedDate<unknown>;
42
+ taskId: z.ZodUUID;
43
+ name: z.ZodString;
44
+ updateId: z.ZodUUID;
61
45
  type: z.ZodLiteral<"taskError">;
62
- error: z.ZodString;
63
- }>, "strip", z.ZodTypeAny, {
64
- type: "taskError";
65
- timestamp: Date;
66
- taskId: string;
67
- error: string;
68
- }, {
69
- type: "taskError";
70
- timestamp: Date;
71
- taskId: string;
72
- error: string;
73
- }>, z.ZodObject<z.objectUtil.extendShape<{
74
- timestamp: z.ZodDate;
75
- taskId: z.ZodString;
76
- }, {
46
+ reason: z.ZodOptional<z.ZodString>;
47
+ requireAck: z.ZodOptional<z.ZodBoolean>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ timestamp: z.ZodCoercedDate<unknown>;
50
+ taskId: z.ZodUUID;
51
+ name: z.ZodString;
52
+ updateId: z.ZodUUID;
53
+ type: z.ZodLiteral<"taskAborted">;
54
+ reason: z.ZodOptional<z.ZodString>;
55
+ requireAck: z.ZodOptional<z.ZodBoolean>;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ timestamp: z.ZodCoercedDate<unknown>;
58
+ taskId: z.ZodUUID;
59
+ name: z.ZodString;
60
+ updateId: z.ZodUUID;
77
61
  type: z.ZodLiteral<"taskEnd">;
78
- result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
79
- partialResults: z.ZodArray<z.ZodObject<{
80
- node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
81
- id: z.ZodString;
82
- type: z.ZodLiteral<"service">;
83
- alias: z.ZodOptional<z.ZodString>;
84
- service: z.ZodOptional<z.ZodObject<{
85
- id: z.ZodString;
86
- name: z.ZodString;
87
- version: z.ZodString;
88
- }, "strip", z.ZodTypeAny, {
89
- id: string;
90
- name: string;
91
- version: string;
92
- }, {
93
- id: string;
94
- name: string;
95
- version: string;
96
- }>>;
97
- }, "strip", z.ZodTypeAny, {
98
- type: "service";
99
- id: string;
100
- service?: {
101
- id: string;
102
- name: string;
103
- version: string;
104
- } | undefined;
105
- alias?: string | undefined;
106
- }, {
107
- type: "service";
108
- id: string;
109
- service?: {
110
- id: string;
111
- name: string;
112
- version: string;
113
- } | undefined;
114
- alias?: string | undefined;
115
- }>, z.ZodObject<{
116
- id: z.ZodString;
117
- type: z.ZodLiteral<"logic">;
118
- alias: z.ZodOptional<z.ZodString>;
119
- logic: z.ZodOptional<z.ZodObject<{
120
- language: z.ZodEnum<["typescript", "javascript", "python"]>;
121
- }, "strip", z.ZodTypeAny, {
122
- language: "typescript" | "javascript" | "python";
123
- }, {
124
- language: "typescript" | "javascript" | "python";
125
- }>>;
126
- }, "strip", z.ZodTypeAny, {
127
- type: "logic";
128
- id: string;
129
- alias?: string | undefined;
130
- logic?: {
131
- language: "typescript" | "javascript" | "python";
132
- } | undefined;
133
- }, {
134
- type: "logic";
135
- id: string;
136
- alias?: string | undefined;
137
- logic?: {
138
- language: "typescript" | "javascript" | "python";
139
- } | undefined;
140
- }>]>;
141
- timestamp: z.ZodNullable<z.ZodDate>;
142
- data: z.ZodUnknown;
143
- error: z.ZodOptional<z.ZodString>;
144
- }, "strip", z.ZodTypeAny, {
145
- timestamp: Date | null;
146
- node: {
147
- type: "service";
148
- id: string;
149
- service?: {
150
- id: string;
151
- name: string;
152
- version: string;
153
- } | undefined;
154
- alias?: string | undefined;
155
- } | {
156
- type: "logic";
157
- id: string;
158
- alias?: string | undefined;
159
- logic?: {
160
- language: "typescript" | "javascript" | "python";
161
- } | undefined;
162
- };
163
- error?: string | undefined;
164
- data?: unknown;
165
- }, {
166
- timestamp: Date | null;
167
- node: {
168
- type: "service";
169
- id: string;
170
- service?: {
171
- id: string;
172
- name: string;
173
- version: string;
174
- } | undefined;
175
- alias?: string | undefined;
176
- } | {
177
- type: "logic";
178
- id: string;
179
- alias?: string | undefined;
180
- logic?: {
181
- language: "typescript" | "javascript" | "python";
182
- } | undefined;
183
- };
184
- error?: string | undefined;
185
- data?: unknown;
186
- }>, "many">;
187
- }>, "strip", z.ZodTypeAny, {
188
- type: "taskEnd";
189
- timestamp: Date;
190
- taskId: string;
191
- result: Record<string, unknown>;
192
- partialResults: {
193
- timestamp: Date | null;
194
- node: {
195
- type: "service";
196
- id: string;
197
- service?: {
198
- id: string;
199
- name: string;
200
- version: string;
201
- } | undefined;
202
- alias?: string | undefined;
203
- } | {
204
- type: "logic";
205
- id: string;
206
- alias?: string | undefined;
207
- logic?: {
208
- language: "typescript" | "javascript" | "python";
209
- } | undefined;
210
- };
211
- error?: string | undefined;
212
- data?: unknown;
213
- }[];
214
- }, {
215
- type: "taskEnd";
216
- timestamp: Date;
217
- taskId: string;
218
- result: Record<string, unknown>;
219
- partialResults: {
220
- timestamp: Date | null;
221
- node: {
222
- type: "service";
223
- id: string;
224
- service?: {
225
- id: string;
226
- name: string;
227
- version: string;
228
- } | undefined;
229
- alias?: string | undefined;
230
- } | {
231
- type: "logic";
232
- id: string;
233
- alias?: string | undefined;
234
- logic?: {
235
- language: "typescript" | "javascript" | "python";
236
- } | undefined;
237
- };
238
- error?: string | undefined;
239
- data?: unknown;
240
- }[];
241
- }>, z.ZodObject<z.objectUtil.extendShape<{
242
- timestamp: z.ZodDate;
243
- taskId: z.ZodString;
244
- }, {
62
+ result: z.ZodRecord<z.ZodString, z.ZodAny>;
63
+ exit: z.ZodNullable<z.ZodString>;
64
+ requireAck: z.ZodOptional<z.ZodBoolean>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ timestamp: z.ZodCoercedDate<unknown>;
67
+ taskId: z.ZodUUID;
68
+ name: z.ZodString;
69
+ updateId: z.ZodUUID;
245
70
  type: z.ZodLiteral<"nodeStart">;
246
- node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
247
- id: z.ZodString;
248
- type: z.ZodLiteral<"service">;
249
- alias: z.ZodOptional<z.ZodString>;
250
- service: z.ZodOptional<z.ZodObject<{
251
- id: z.ZodString;
252
- name: z.ZodString;
253
- version: z.ZodString;
254
- }, "strip", z.ZodTypeAny, {
255
- id: string;
256
- name: string;
257
- version: string;
258
- }, {
259
- id: string;
260
- name: string;
261
- version: string;
262
- }>>;
263
- }, "strip", z.ZodTypeAny, {
264
- type: "service";
265
- id: string;
266
- service?: {
267
- id: string;
268
- name: string;
269
- version: string;
270
- } | undefined;
271
- alias?: string | undefined;
272
- }, {
273
- type: "service";
274
- id: string;
275
- service?: {
276
- id: string;
277
- name: string;
278
- version: string;
279
- } | undefined;
280
- alias?: string | undefined;
281
- }>, z.ZodObject<{
282
- id: z.ZodString;
283
- type: z.ZodLiteral<"logic">;
71
+ node: z.ZodObject<{
72
+ id: z.ZodUUID;
73
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
284
74
  alias: z.ZodOptional<z.ZodString>;
285
- logic: z.ZodOptional<z.ZodObject<{
286
- language: z.ZodEnum<["typescript", "javascript", "python"]>;
287
- }, "strip", z.ZodTypeAny, {
288
- language: "typescript" | "javascript" | "python";
289
- }, {
290
- language: "typescript" | "javascript" | "python";
291
- }>>;
292
- }, "strip", z.ZodTypeAny, {
293
- type: "logic";
294
- id: string;
295
- alias?: string | undefined;
296
- logic?: {
297
- language: "typescript" | "javascript" | "python";
298
- } | undefined;
299
- }, {
300
- type: "logic";
301
- id: string;
302
- alias?: string | undefined;
303
- logic?: {
304
- language: "typescript" | "javascript" | "python";
305
- } | undefined;
306
- }>]>;
307
- }>, "strip", z.ZodTypeAny, {
308
- type: "nodeStart";
309
- timestamp: Date;
310
- taskId: string;
311
- node: {
312
- type: "service";
313
- id: string;
314
- service?: {
315
- id: string;
316
- name: string;
317
- version: string;
318
- } | undefined;
319
- alias?: string | undefined;
320
- } | {
321
- type: "logic";
322
- id: string;
323
- alias?: string | undefined;
324
- logic?: {
325
- language: "typescript" | "javascript" | "python";
326
- } | undefined;
327
- };
328
- }, {
329
- type: "nodeStart";
330
- timestamp: Date;
331
- taskId: string;
332
- node: {
333
- type: "service";
334
- id: string;
335
- service?: {
336
- id: string;
337
- name: string;
338
- version: string;
339
- } | undefined;
340
- alias?: string | undefined;
341
- } | {
342
- type: "logic";
343
- id: string;
344
- alias?: string | undefined;
345
- logic?: {
346
- language: "typescript" | "javascript" | "python";
347
- } | undefined;
348
- };
349
- }>, z.ZodObject<z.objectUtil.extendShape<{
350
- timestamp: z.ZodDate;
351
- taskId: z.ZodString;
352
- }, {
75
+ }, z.core.$strip>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ timestamp: z.ZodCoercedDate<unknown>;
78
+ taskId: z.ZodUUID;
79
+ name: z.ZodString;
80
+ updateId: z.ZodUUID;
353
81
  type: z.ZodLiteral<"nodeUpdate">;
82
+ node: z.ZodObject<{
83
+ id: z.ZodUUID;
84
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
85
+ alias: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>;
354
87
  data: z.ZodUnknown;
355
- }>, "strip", z.ZodTypeAny, {
356
- type: "nodeUpdate";
357
- timestamp: Date;
358
- taskId: string;
359
- data?: unknown;
360
- }, {
361
- type: "nodeUpdate";
362
- timestamp: Date;
363
- taskId: string;
364
- data?: unknown;
365
- }>, z.ZodObject<z.objectUtil.extendShape<{
366
- timestamp: z.ZodDate;
367
- taskId: z.ZodString;
368
- }, {
88
+ output: z.ZodUnion<readonly [z.ZodNull, z.ZodString]>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ timestamp: z.ZodCoercedDate<unknown>;
91
+ taskId: z.ZodUUID;
92
+ name: z.ZodString;
93
+ updateId: z.ZodUUID;
369
94
  type: z.ZodLiteral<"nodeError">;
95
+ node: z.ZodObject<{
96
+ id: z.ZodUUID;
97
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
98
+ alias: z.ZodOptional<z.ZodString>;
99
+ }, z.core.$strip>;
370
100
  error: z.ZodString;
371
- }>, "strip", z.ZodTypeAny, {
372
- type: "nodeError";
373
- timestamp: Date;
374
- taskId: string;
375
- error: string;
376
- }, {
377
- type: "nodeError";
378
- timestamp: Date;
379
- taskId: string;
380
- error: string;
381
- }>, z.ZodObject<z.objectUtil.extendShape<{
382
- timestamp: z.ZodDate;
383
- taskId: z.ZodString;
384
- }, {
101
+ }, z.core.$strip>, z.ZodObject<{
102
+ timestamp: z.ZodCoercedDate<unknown>;
103
+ taskId: z.ZodUUID;
104
+ name: z.ZodString;
105
+ updateId: z.ZodUUID;
385
106
  type: z.ZodLiteral<"nodeDefer">;
107
+ node: z.ZodObject<{
108
+ id: z.ZodUUID;
109
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
110
+ alias: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strip>;
386
112
  reason: z.ZodOptional<z.ZodString>;
387
- }>, "strip", z.ZodTypeAny, {
388
- type: "nodeDefer";
389
- timestamp: Date;
390
- taskId: string;
391
- reason?: string | undefined;
392
- }, {
393
- type: "nodeDefer";
394
- timestamp: Date;
395
- taskId: string;
396
- reason?: string | undefined;
397
- }>, z.ZodObject<z.objectUtil.extendShape<{
398
- timestamp: z.ZodDate;
399
- taskId: z.ZodString;
400
- }, {
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ timestamp: z.ZodCoercedDate<unknown>;
115
+ taskId: z.ZodUUID;
116
+ name: z.ZodString;
117
+ updateId: z.ZodUUID;
401
118
  type: z.ZodLiteral<"nodeEnd">;
402
- node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
403
- id: z.ZodString;
404
- type: z.ZodLiteral<"service">;
405
- alias: z.ZodOptional<z.ZodString>;
406
- service: z.ZodOptional<z.ZodObject<{
407
- id: z.ZodString;
408
- name: z.ZodString;
409
- version: z.ZodString;
410
- }, "strip", z.ZodTypeAny, {
411
- id: string;
412
- name: string;
413
- version: string;
414
- }, {
415
- id: string;
416
- name: string;
417
- version: string;
418
- }>>;
419
- }, "strip", z.ZodTypeAny, {
420
- type: "service";
421
- id: string;
422
- service?: {
423
- id: string;
424
- name: string;
425
- version: string;
426
- } | undefined;
427
- alias?: string | undefined;
428
- }, {
429
- type: "service";
430
- id: string;
431
- service?: {
432
- id: string;
433
- name: string;
434
- version: string;
435
- } | undefined;
436
- alias?: string | undefined;
437
- }>, z.ZodObject<{
438
- id: z.ZodString;
439
- type: z.ZodLiteral<"logic">;
119
+ node: z.ZodObject<{
120
+ id: z.ZodUUID;
121
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
440
122
  alias: z.ZodOptional<z.ZodString>;
441
- logic: z.ZodOptional<z.ZodObject<{
442
- language: z.ZodEnum<["typescript", "javascript", "python"]>;
443
- }, "strip", z.ZodTypeAny, {
444
- language: "typescript" | "javascript" | "python";
445
- }, {
446
- language: "typescript" | "javascript" | "python";
447
- }>>;
448
- }, "strip", z.ZodTypeAny, {
449
- type: "logic";
450
- id: string;
451
- alias?: string | undefined;
452
- logic?: {
453
- language: "typescript" | "javascript" | "python";
454
- } | undefined;
455
- }, {
456
- type: "logic";
457
- id: string;
458
- alias?: string | undefined;
459
- logic?: {
460
- language: "typescript" | "javascript" | "python";
461
- } | undefined;
462
- }>]>;
463
- }>, "strip", z.ZodTypeAny, {
464
- type: "nodeEnd";
465
- timestamp: Date;
466
- taskId: string;
467
- node: {
468
- type: "service";
469
- id: string;
470
- service?: {
471
- id: string;
472
- name: string;
473
- version: string;
474
- } | undefined;
475
- alias?: string | undefined;
476
- } | {
477
- type: "logic";
478
- id: string;
479
- alias?: string | undefined;
480
- logic?: {
481
- language: "typescript" | "javascript" | "python";
482
- } | undefined;
483
- };
484
- }, {
485
- type: "nodeEnd";
486
- timestamp: Date;
487
- taskId: string;
488
- node: {
489
- type: "service";
490
- id: string;
491
- service?: {
492
- id: string;
493
- name: string;
494
- version: string;
495
- } | undefined;
496
- alias?: string | undefined;
497
- } | {
498
- type: "logic";
499
- id: string;
500
- alias?: string | undefined;
501
- logic?: {
502
- language: "typescript" | "javascript" | "python";
503
- } | undefined;
504
- };
505
- }>]>;
506
- export type Update = z.infer<typeof updateSchema>;
507
- export declare const eventSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
508
- type: z.ZodString;
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>], "type">;
125
+ type BaseUpdate = z.infer<typeof updateSchema>;
126
+ export type Update<T> = Prettify<(Exclude<BaseUpdate, {
127
+ type: 'taskEnd';
128
+ } | {
129
+ type: 'nodeUpdate';
130
+ }> & {
131
+ context: Context<Partial<T>>;
132
+ }) | (Extract<BaseUpdate, {
133
+ type: 'nodeUpdate';
134
+ }> & {
135
+ context: Context<Partial<T>>;
136
+ data: Partial<Data<T>>;
137
+ }) | (Extract<BaseUpdate, {
138
+ type: 'taskEnd';
139
+ }> & {
140
+ context: Context<T>;
141
+ })>;
142
+ export declare const eventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
143
+ event: z.ZodString;
509
144
  data: z.ZodString;
510
- }, "strip", z.ZodTypeAny, {
511
- type: string;
145
+ }, z.core.$strip>, z.ZodTransform<any, {
146
+ event: string;
512
147
  data: string;
513
- }, {
514
- type: string;
515
- data: string;
516
- }>, any, {
517
- type: string;
518
- data: string;
519
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
520
- timestamp: z.ZodDate;
521
- taskId: z.ZodString;
522
- }, {
148
+ }>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ timestamp: z.ZodCoercedDate<unknown>;
150
+ taskId: z.ZodUUID;
151
+ name: z.ZodString;
152
+ updateId: z.ZodUUID;
523
153
  type: z.ZodLiteral<"taskStart">;
524
154
  input: z.ZodUnknown;
525
- meta: z.ZodUnknown;
526
- }>, "strip", z.ZodTypeAny, {
527
- type: "taskStart";
528
- timestamp: Date;
529
- taskId: string;
530
- input?: unknown;
531
- meta?: unknown;
532
- }, {
533
- type: "taskStart";
534
- timestamp: Date;
535
- taskId: string;
536
- input?: unknown;
537
- meta?: unknown;
538
- }>, z.ZodObject<z.objectUtil.extendShape<{
539
- timestamp: z.ZodDate;
540
- taskId: z.ZodString;
541
- }, {
155
+ rootTaskId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ timestamp: z.ZodCoercedDate<unknown>;
158
+ taskId: z.ZodUUID;
159
+ name: z.ZodString;
160
+ updateId: z.ZodUUID;
542
161
  type: z.ZodLiteral<"taskError">;
543
- error: z.ZodString;
544
- }>, "strip", z.ZodTypeAny, {
545
- type: "taskError";
546
- timestamp: Date;
547
- taskId: string;
548
- error: string;
549
- }, {
550
- type: "taskError";
551
- timestamp: Date;
552
- taskId: string;
553
- error: string;
554
- }>, z.ZodObject<z.objectUtil.extendShape<{
555
- timestamp: z.ZodDate;
556
- taskId: z.ZodString;
557
- }, {
162
+ reason: z.ZodOptional<z.ZodString>;
163
+ requireAck: z.ZodOptional<z.ZodBoolean>;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ timestamp: z.ZodCoercedDate<unknown>;
166
+ taskId: z.ZodUUID;
167
+ name: z.ZodString;
168
+ updateId: z.ZodUUID;
169
+ type: z.ZodLiteral<"taskAborted">;
170
+ reason: z.ZodOptional<z.ZodString>;
171
+ requireAck: z.ZodOptional<z.ZodBoolean>;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ timestamp: z.ZodCoercedDate<unknown>;
174
+ taskId: z.ZodUUID;
175
+ name: z.ZodString;
176
+ updateId: z.ZodUUID;
558
177
  type: z.ZodLiteral<"taskEnd">;
559
- result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
560
- partialResults: z.ZodArray<z.ZodObject<{
561
- node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
562
- id: z.ZodString;
563
- type: z.ZodLiteral<"service">;
564
- alias: z.ZodOptional<z.ZodString>;
565
- service: z.ZodOptional<z.ZodObject<{
566
- id: z.ZodString;
567
- name: z.ZodString;
568
- version: z.ZodString;
569
- }, "strip", z.ZodTypeAny, {
570
- id: string;
571
- name: string;
572
- version: string;
573
- }, {
574
- id: string;
575
- name: string;
576
- version: string;
577
- }>>;
578
- }, "strip", z.ZodTypeAny, {
579
- type: "service";
580
- id: string;
581
- service?: {
582
- id: string;
583
- name: string;
584
- version: string;
585
- } | undefined;
586
- alias?: string | undefined;
587
- }, {
588
- type: "service";
589
- id: string;
590
- service?: {
591
- id: string;
592
- name: string;
593
- version: string;
594
- } | undefined;
595
- alias?: string | undefined;
596
- }>, z.ZodObject<{
597
- id: z.ZodString;
598
- type: z.ZodLiteral<"logic">;
599
- alias: z.ZodOptional<z.ZodString>;
600
- logic: z.ZodOptional<z.ZodObject<{
601
- language: z.ZodEnum<["typescript", "javascript", "python"]>;
602
- }, "strip", z.ZodTypeAny, {
603
- language: "typescript" | "javascript" | "python";
604
- }, {
605
- language: "typescript" | "javascript" | "python";
606
- }>>;
607
- }, "strip", z.ZodTypeAny, {
608
- type: "logic";
609
- id: string;
610
- alias?: string | undefined;
611
- logic?: {
612
- language: "typescript" | "javascript" | "python";
613
- } | undefined;
614
- }, {
615
- type: "logic";
616
- id: string;
617
- alias?: string | undefined;
618
- logic?: {
619
- language: "typescript" | "javascript" | "python";
620
- } | undefined;
621
- }>]>;
622
- timestamp: z.ZodNullable<z.ZodDate>;
623
- data: z.ZodUnknown;
624
- error: z.ZodOptional<z.ZodString>;
625
- }, "strip", z.ZodTypeAny, {
626
- timestamp: Date | null;
627
- node: {
628
- type: "service";
629
- id: string;
630
- service?: {
631
- id: string;
632
- name: string;
633
- version: string;
634
- } | undefined;
635
- alias?: string | undefined;
636
- } | {
637
- type: "logic";
638
- id: string;
639
- alias?: string | undefined;
640
- logic?: {
641
- language: "typescript" | "javascript" | "python";
642
- } | undefined;
643
- };
644
- error?: string | undefined;
645
- data?: unknown;
646
- }, {
647
- timestamp: Date | null;
648
- node: {
649
- type: "service";
650
- id: string;
651
- service?: {
652
- id: string;
653
- name: string;
654
- version: string;
655
- } | undefined;
656
- alias?: string | undefined;
657
- } | {
658
- type: "logic";
659
- id: string;
660
- alias?: string | undefined;
661
- logic?: {
662
- language: "typescript" | "javascript" | "python";
663
- } | undefined;
664
- };
665
- error?: string | undefined;
666
- data?: unknown;
667
- }>, "many">;
668
- }>, "strip", z.ZodTypeAny, {
669
- type: "taskEnd";
670
- timestamp: Date;
671
- taskId: string;
672
- result: Record<string, unknown>;
673
- partialResults: {
674
- timestamp: Date | null;
675
- node: {
676
- type: "service";
677
- id: string;
678
- service?: {
679
- id: string;
680
- name: string;
681
- version: string;
682
- } | undefined;
683
- alias?: string | undefined;
684
- } | {
685
- type: "logic";
686
- id: string;
687
- alias?: string | undefined;
688
- logic?: {
689
- language: "typescript" | "javascript" | "python";
690
- } | undefined;
691
- };
692
- error?: string | undefined;
693
- data?: unknown;
694
- }[];
695
- }, {
696
- type: "taskEnd";
697
- timestamp: Date;
698
- taskId: string;
699
- result: Record<string, unknown>;
700
- partialResults: {
701
- timestamp: Date | null;
702
- node: {
703
- type: "service";
704
- id: string;
705
- service?: {
706
- id: string;
707
- name: string;
708
- version: string;
709
- } | undefined;
710
- alias?: string | undefined;
711
- } | {
712
- type: "logic";
713
- id: string;
714
- alias?: string | undefined;
715
- logic?: {
716
- language: "typescript" | "javascript" | "python";
717
- } | undefined;
718
- };
719
- error?: string | undefined;
720
- data?: unknown;
721
- }[];
722
- }>, z.ZodObject<z.objectUtil.extendShape<{
723
- timestamp: z.ZodDate;
724
- taskId: z.ZodString;
725
- }, {
178
+ result: z.ZodRecord<z.ZodString, z.ZodAny>;
179
+ exit: z.ZodNullable<z.ZodString>;
180
+ requireAck: z.ZodOptional<z.ZodBoolean>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ timestamp: z.ZodCoercedDate<unknown>;
183
+ taskId: z.ZodUUID;
184
+ name: z.ZodString;
185
+ updateId: z.ZodUUID;
726
186
  type: z.ZodLiteral<"nodeStart">;
727
- node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
728
- id: z.ZodString;
729
- type: z.ZodLiteral<"service">;
730
- alias: z.ZodOptional<z.ZodString>;
731
- service: z.ZodOptional<z.ZodObject<{
732
- id: z.ZodString;
733
- name: z.ZodString;
734
- version: z.ZodString;
735
- }, "strip", z.ZodTypeAny, {
736
- id: string;
737
- name: string;
738
- version: string;
739
- }, {
740
- id: string;
741
- name: string;
742
- version: string;
743
- }>>;
744
- }, "strip", z.ZodTypeAny, {
745
- type: "service";
746
- id: string;
747
- service?: {
748
- id: string;
749
- name: string;
750
- version: string;
751
- } | undefined;
752
- alias?: string | undefined;
753
- }, {
754
- type: "service";
755
- id: string;
756
- service?: {
757
- id: string;
758
- name: string;
759
- version: string;
760
- } | undefined;
761
- alias?: string | undefined;
762
- }>, z.ZodObject<{
763
- id: z.ZodString;
764
- type: z.ZodLiteral<"logic">;
187
+ node: z.ZodObject<{
188
+ id: z.ZodUUID;
189
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
765
190
  alias: z.ZodOptional<z.ZodString>;
766
- logic: z.ZodOptional<z.ZodObject<{
767
- language: z.ZodEnum<["typescript", "javascript", "python"]>;
768
- }, "strip", z.ZodTypeAny, {
769
- language: "typescript" | "javascript" | "python";
770
- }, {
771
- language: "typescript" | "javascript" | "python";
772
- }>>;
773
- }, "strip", z.ZodTypeAny, {
774
- type: "logic";
775
- id: string;
776
- alias?: string | undefined;
777
- logic?: {
778
- language: "typescript" | "javascript" | "python";
779
- } | undefined;
780
- }, {
781
- type: "logic";
782
- id: string;
783
- alias?: string | undefined;
784
- logic?: {
785
- language: "typescript" | "javascript" | "python";
786
- } | undefined;
787
- }>]>;
788
- }>, "strip", z.ZodTypeAny, {
789
- type: "nodeStart";
790
- timestamp: Date;
791
- taskId: string;
792
- node: {
793
- type: "service";
794
- id: string;
795
- service?: {
796
- id: string;
797
- name: string;
798
- version: string;
799
- } | undefined;
800
- alias?: string | undefined;
801
- } | {
802
- type: "logic";
803
- id: string;
804
- alias?: string | undefined;
805
- logic?: {
806
- language: "typescript" | "javascript" | "python";
807
- } | undefined;
808
- };
809
- }, {
810
- type: "nodeStart";
811
- timestamp: Date;
812
- taskId: string;
813
- node: {
814
- type: "service";
815
- id: string;
816
- service?: {
817
- id: string;
818
- name: string;
819
- version: string;
820
- } | undefined;
821
- alias?: string | undefined;
822
- } | {
823
- type: "logic";
824
- id: string;
825
- alias?: string | undefined;
826
- logic?: {
827
- language: "typescript" | "javascript" | "python";
828
- } | undefined;
829
- };
830
- }>, z.ZodObject<z.objectUtil.extendShape<{
831
- timestamp: z.ZodDate;
832
- taskId: z.ZodString;
833
- }, {
191
+ }, z.core.$strip>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ timestamp: z.ZodCoercedDate<unknown>;
194
+ taskId: z.ZodUUID;
195
+ name: z.ZodString;
196
+ updateId: z.ZodUUID;
834
197
  type: z.ZodLiteral<"nodeUpdate">;
198
+ node: z.ZodObject<{
199
+ id: z.ZodUUID;
200
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
201
+ alias: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strip>;
835
203
  data: z.ZodUnknown;
836
- }>, "strip", z.ZodTypeAny, {
837
- type: "nodeUpdate";
838
- timestamp: Date;
839
- taskId: string;
840
- data?: unknown;
841
- }, {
842
- type: "nodeUpdate";
843
- timestamp: Date;
844
- taskId: string;
845
- data?: unknown;
846
- }>, z.ZodObject<z.objectUtil.extendShape<{
847
- timestamp: z.ZodDate;
848
- taskId: z.ZodString;
849
- }, {
204
+ output: z.ZodUnion<readonly [z.ZodNull, z.ZodString]>;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ timestamp: z.ZodCoercedDate<unknown>;
207
+ taskId: z.ZodUUID;
208
+ name: z.ZodString;
209
+ updateId: z.ZodUUID;
850
210
  type: z.ZodLiteral<"nodeError">;
211
+ node: z.ZodObject<{
212
+ id: z.ZodUUID;
213
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
214
+ alias: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strip>;
851
216
  error: z.ZodString;
852
- }>, "strip", z.ZodTypeAny, {
853
- type: "nodeError";
854
- timestamp: Date;
855
- taskId: string;
856
- error: string;
857
- }, {
858
- type: "nodeError";
859
- timestamp: Date;
860
- taskId: string;
861
- error: string;
862
- }>, z.ZodObject<z.objectUtil.extendShape<{
863
- timestamp: z.ZodDate;
864
- taskId: z.ZodString;
865
- }, {
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ timestamp: z.ZodCoercedDate<unknown>;
219
+ taskId: z.ZodUUID;
220
+ name: z.ZodString;
221
+ updateId: z.ZodUUID;
866
222
  type: z.ZodLiteral<"nodeDefer">;
223
+ node: z.ZodObject<{
224
+ id: z.ZodUUID;
225
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
226
+ alias: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strip>;
867
228
  reason: z.ZodOptional<z.ZodString>;
868
- }>, "strip", z.ZodTypeAny, {
869
- type: "nodeDefer";
870
- timestamp: Date;
871
- taskId: string;
872
- reason?: string | undefined;
873
- }, {
874
- type: "nodeDefer";
875
- timestamp: Date;
876
- taskId: string;
877
- reason?: string | undefined;
878
- }>, z.ZodObject<z.objectUtil.extendShape<{
879
- timestamp: z.ZodDate;
880
- taskId: z.ZodString;
881
- }, {
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ timestamp: z.ZodCoercedDate<unknown>;
231
+ taskId: z.ZodUUID;
232
+ name: z.ZodString;
233
+ updateId: z.ZodUUID;
882
234
  type: z.ZodLiteral<"nodeEnd">;
883
- node: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
884
- id: z.ZodString;
885
- type: z.ZodLiteral<"service">;
886
- alias: z.ZodOptional<z.ZodString>;
887
- service: z.ZodOptional<z.ZodObject<{
888
- id: z.ZodString;
889
- name: z.ZodString;
890
- version: z.ZodString;
891
- }, "strip", z.ZodTypeAny, {
892
- id: string;
893
- name: string;
894
- version: string;
895
- }, {
896
- id: string;
897
- name: string;
898
- version: string;
899
- }>>;
900
- }, "strip", z.ZodTypeAny, {
901
- type: "service";
902
- id: string;
903
- service?: {
904
- id: string;
905
- name: string;
906
- version: string;
907
- } | undefined;
908
- alias?: string | undefined;
909
- }, {
910
- type: "service";
911
- id: string;
912
- service?: {
913
- id: string;
914
- name: string;
915
- version: string;
916
- } | undefined;
917
- alias?: string | undefined;
918
- }>, z.ZodObject<{
919
- id: z.ZodString;
920
- type: z.ZodLiteral<"logic">;
235
+ node: z.ZodObject<{
236
+ id: z.ZodUUID;
237
+ type: z.ZodLiteral<"service" | "logic" | "or" | "reference">;
921
238
  alias: z.ZodOptional<z.ZodString>;
922
- logic: z.ZodOptional<z.ZodObject<{
923
- language: z.ZodEnum<["typescript", "javascript", "python"]>;
924
- }, "strip", z.ZodTypeAny, {
925
- language: "typescript" | "javascript" | "python";
926
- }, {
927
- language: "typescript" | "javascript" | "python";
928
- }>>;
929
- }, "strip", z.ZodTypeAny, {
930
- type: "logic";
931
- id: string;
932
- alias?: string | undefined;
933
- logic?: {
934
- language: "typescript" | "javascript" | "python";
935
- } | undefined;
936
- }, {
937
- type: "logic";
938
- id: string;
939
- alias?: string | undefined;
940
- logic?: {
941
- language: "typescript" | "javascript" | "python";
942
- } | undefined;
943
- }>]>;
944
- }>, "strip", z.ZodTypeAny, {
945
- type: "nodeEnd";
946
- timestamp: Date;
947
- taskId: string;
948
- node: {
949
- type: "service";
950
- id: string;
951
- service?: {
952
- id: string;
953
- name: string;
954
- version: string;
955
- } | undefined;
956
- alias?: string | undefined;
957
- } | {
958
- type: "logic";
959
- id: string;
960
- alias?: string | undefined;
961
- logic?: {
962
- language: "typescript" | "javascript" | "python";
963
- } | undefined;
964
- };
965
- }, {
966
- type: "nodeEnd";
967
- timestamp: Date;
968
- taskId: string;
969
- node: {
970
- type: "service";
971
- id: string;
972
- service?: {
973
- id: string;
974
- name: string;
975
- version: string;
976
- } | undefined;
977
- alias?: string | undefined;
978
- } | {
979
- type: "logic";
980
- id: string;
981
- alias?: string | undefined;
982
- logic?: {
983
- language: "typescript" | "javascript" | "python";
984
- } | undefined;
985
- };
986
- }>]>>;
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>], "type">>;
241
+ export declare const prioritySchema: z.ZodPipe<z.ZodDefault<z.ZodInt>, z.ZodTransform<number, number>>;
987
242
  export {};
988
243
  //# sourceMappingURL=types.d.ts.map