@requence/task 1.0.0-alpha.4 → 1.0.0-alpha.40

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