@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.
- package/CHANGELOG.md +276 -0
- package/README.md +383 -0
- package/build/chunk-b4h2we9a.js +35 -0
- package/build/chunk-b4h2we9a.js.map +10 -0
- package/build/cli.js +21 -4874
- package/build/cli.js.map +4 -37
- package/build/index.js +1011 -233
- package/build/index.js.map +22 -8
- package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
- package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
- package/build/types/helpers/src/files/fileObject.d.ts +16 -0
- package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/index.d.ts +7 -0
- package/build/types/helpers/src/files/index.d.ts.map +1 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
- package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
- package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
- package/build/types/helpers/src/files/streamObject.d.ts +14 -0
- package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/types.d.ts +4 -0
- package/build/types/helpers/src/files/types.d.ts.map +1 -0
- package/build/types/helpers/src/index.d.ts +12 -6
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
- package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts +17 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts +510 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/command.d.ts +507 -0
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
- package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/index.d.ts +8 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts +181 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +267 -0
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +874 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/update.d.ts +406 -0
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
- package/build/types/helpers/src/utils/clone.d.ts +3 -0
- package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
- package/build/types/helpers/src/utils/debounce.d.ts +4 -0
- package/build/types/helpers/src/utils/debounce.d.ts.map +1 -0
- package/build/types/helpers/src/utils/guards.d.ts +3 -0
- package/build/types/helpers/src/utils/guards.d.ts.map +1 -0
- package/build/types/helpers/src/utils/mapData.d.ts +18 -0
- package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
- package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
- package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
- package/build/types/helpers/src/utils/obj.d.ts +4 -0
- package/build/types/helpers/src/utils/obj.d.ts.map +1 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
- package/build/types/helpers/src/utils/types.d.ts +7 -0
- package/build/types/helpers/src/utils/types.d.ts.map +1 -0
- package/build/types/task/src/abortTask.d.ts +8 -0
- package/build/types/task/src/abortTask.d.ts.map +1 -0
- package/build/types/task/src/ackTask.d.ts +7 -0
- package/build/types/task/src/ackTask.d.ts.map +1 -0
- package/build/types/task/src/createTask.d.ts +14 -103
- package/build/types/task/src/createTask.d.ts.map +1 -1
- package/build/types/task/src/getTask.d.ts +26 -0
- package/build/types/task/src/getTask.d.ts.map +1 -0
- package/build/types/task/src/index.d.ts +7 -1
- package/build/types/task/src/index.d.ts.map +1 -1
- package/build/types/task/src/protectTask.d.ts +7 -0
- package/build/types/task/src/protectTask.d.ts.map +1 -0
- package/build/types/task/src/recreateTask.d.ts +10 -0
- package/build/types/task/src/recreateTask.d.ts.map +1 -0
- package/build/types/task/src/types.d.ts +196 -941
- package/build/types/task/src/types.d.ts.map +1 -1
- package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
- package/build/types/task/src/watchTasks.d.ts +13 -97
- package/build/types/task/src/watchTasks.d.ts.map +1 -1
- package/package.json +12 -7
- package/build/chunk-6pjtq0hg.js +0 -66
- package/build/chunk-6pjtq0hg.js.map +0 -12
- package/build/types/helpers/src/clone.d.ts +0 -3
- package/build/types/helpers/src/clone.d.ts.map +0 -1
- package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
- package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
- package/build/types/helpers/src/createRemotePromise.d.ts +0 -7
- package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
- package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
- package/build/types/helpers/src/utils.d.ts.map +0 -1
- package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
- package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
- /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const abortCommandSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"ABORT">;
|
|
4
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type AbortCommand = z.infer<typeof abortCommandSchema>;
|
|
7
|
+
export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"CREATE">;
|
|
9
|
+
treeList: z.ZodObject<{
|
|
10
|
+
tree: z.ZodObject<{
|
|
11
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
12
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
15
|
+
schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
input: z.ZodAny;
|
|
18
|
+
options: z.ZodObject<{
|
|
19
|
+
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
21
|
+
LINEAR: "LINEAR";
|
|
22
|
+
CONTINUOUS: "CONTINUOUS";
|
|
23
|
+
}>>;
|
|
24
|
+
priority: z.ZodDefault<z.ZodInt>;
|
|
25
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
26
|
+
streamUrl: z.ZodOptional<z.ZodString>;
|
|
27
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
28
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
rootTaskId: z.ZodUUID;
|
|
32
|
+
taskId: z.ZodUUID;
|
|
33
|
+
nodeId: z.ZodUUID;
|
|
34
|
+
messageId: z.ZodUUID;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
38
|
+
treeList: {
|
|
39
|
+
tree: {
|
|
40
|
+
nodes: ({
|
|
41
|
+
id: string;
|
|
42
|
+
type: "entry";
|
|
43
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
44
|
+
alias?: string | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
id: string;
|
|
47
|
+
type: "service";
|
|
48
|
+
inputSchema: ({
|
|
49
|
+
type: "object";
|
|
50
|
+
} & import("json-schema").JSONSchema7) | {
|
|
51
|
+
type: "null";
|
|
52
|
+
} | ({
|
|
53
|
+
$ref: string;
|
|
54
|
+
} & import("json-schema").JSONSchema7);
|
|
55
|
+
name: string;
|
|
56
|
+
version: string;
|
|
57
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
58
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
59
|
+
outputs: {
|
|
60
|
+
name: string | null;
|
|
61
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
62
|
+
}[];
|
|
63
|
+
alias?: string | undefined;
|
|
64
|
+
configuration?: any;
|
|
65
|
+
ttl?: number | undefined;
|
|
66
|
+
retry?: number | undefined;
|
|
67
|
+
retryDelay?: number | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
id: string;
|
|
70
|
+
type: "logic";
|
|
71
|
+
script: string;
|
|
72
|
+
concurrency: boolean;
|
|
73
|
+
language: "javascript" | "python" | "typescript";
|
|
74
|
+
maxExecutionTime: number;
|
|
75
|
+
outputs: {
|
|
76
|
+
name: string | null;
|
|
77
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
78
|
+
}[];
|
|
79
|
+
alias?: string | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
id: string;
|
|
82
|
+
type: "or";
|
|
83
|
+
alias?: string | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
id: string;
|
|
86
|
+
type: "reference";
|
|
87
|
+
reference: string;
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
inputSchema: ({
|
|
90
|
+
type: "object";
|
|
91
|
+
} & import("json-schema").JSONSchema7) | {
|
|
92
|
+
type: "null";
|
|
93
|
+
} | ({
|
|
94
|
+
$ref: string;
|
|
95
|
+
} & import("json-schema").JSONSchema7);
|
|
96
|
+
outputs: {
|
|
97
|
+
name: string | null;
|
|
98
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
99
|
+
}[];
|
|
100
|
+
alias?: string | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
id: string;
|
|
103
|
+
type: "exit";
|
|
104
|
+
alias?: string | undefined;
|
|
105
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
106
|
+
} | {
|
|
107
|
+
id: string;
|
|
108
|
+
type: "comment";
|
|
109
|
+
text: string;
|
|
110
|
+
alias?: string | undefined;
|
|
111
|
+
})[];
|
|
112
|
+
edges: {
|
|
113
|
+
id: string;
|
|
114
|
+
source: string;
|
|
115
|
+
sourceHandle: string | null;
|
|
116
|
+
target: string;
|
|
117
|
+
}[];
|
|
118
|
+
};
|
|
119
|
+
references?: {
|
|
120
|
+
id: string;
|
|
121
|
+
options: {
|
|
122
|
+
maxExecutions: number;
|
|
123
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
124
|
+
};
|
|
125
|
+
tree: {
|
|
126
|
+
nodes: ({
|
|
127
|
+
id: string;
|
|
128
|
+
type: "entry";
|
|
129
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
130
|
+
alias?: string | undefined;
|
|
131
|
+
} | {
|
|
132
|
+
id: string;
|
|
133
|
+
type: "service";
|
|
134
|
+
inputSchema: ({
|
|
135
|
+
type: "object";
|
|
136
|
+
} & import("json-schema").JSONSchema7) | {
|
|
137
|
+
type: "null";
|
|
138
|
+
} | ({
|
|
139
|
+
$ref: string;
|
|
140
|
+
} & import("json-schema").JSONSchema7);
|
|
141
|
+
name: string;
|
|
142
|
+
version: string;
|
|
143
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
144
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
145
|
+
outputs: {
|
|
146
|
+
name: string | null;
|
|
147
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
148
|
+
}[];
|
|
149
|
+
alias?: string | undefined;
|
|
150
|
+
configuration?: any;
|
|
151
|
+
ttl?: number | undefined;
|
|
152
|
+
retry?: number | undefined;
|
|
153
|
+
retryDelay?: number | undefined;
|
|
154
|
+
} | {
|
|
155
|
+
id: string;
|
|
156
|
+
type: "logic";
|
|
157
|
+
script: string;
|
|
158
|
+
concurrency: boolean;
|
|
159
|
+
language: "javascript" | "python" | "typescript";
|
|
160
|
+
maxExecutionTime: number;
|
|
161
|
+
outputs: {
|
|
162
|
+
name: string | null;
|
|
163
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
164
|
+
}[];
|
|
165
|
+
alias?: string | undefined;
|
|
166
|
+
} | {
|
|
167
|
+
id: string;
|
|
168
|
+
type: "or";
|
|
169
|
+
alias?: string | undefined;
|
|
170
|
+
} | {
|
|
171
|
+
id: string;
|
|
172
|
+
type: "reference";
|
|
173
|
+
reference: string;
|
|
174
|
+
enabled: boolean;
|
|
175
|
+
inputSchema: ({
|
|
176
|
+
type: "object";
|
|
177
|
+
} & import("json-schema").JSONSchema7) | {
|
|
178
|
+
type: "null";
|
|
179
|
+
} | ({
|
|
180
|
+
$ref: string;
|
|
181
|
+
} & import("json-schema").JSONSchema7);
|
|
182
|
+
outputs: {
|
|
183
|
+
name: string | null;
|
|
184
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
185
|
+
}[];
|
|
186
|
+
alias?: string | undefined;
|
|
187
|
+
} | {
|
|
188
|
+
id: string;
|
|
189
|
+
type: "exit";
|
|
190
|
+
alias?: string | undefined;
|
|
191
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
192
|
+
} | {
|
|
193
|
+
id: string;
|
|
194
|
+
type: "comment";
|
|
195
|
+
text: string;
|
|
196
|
+
alias?: string | undefined;
|
|
197
|
+
})[];
|
|
198
|
+
edges: {
|
|
199
|
+
id: string;
|
|
200
|
+
source: string;
|
|
201
|
+
sourceHandle: string | null;
|
|
202
|
+
target: string;
|
|
203
|
+
}[];
|
|
204
|
+
};
|
|
205
|
+
}[] | undefined;
|
|
206
|
+
schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
|
|
207
|
+
};
|
|
208
|
+
type: "CREATE";
|
|
209
|
+
input: any;
|
|
210
|
+
options: {
|
|
211
|
+
maxExecutions: number;
|
|
212
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
213
|
+
priority: number;
|
|
214
|
+
continuous: {
|
|
215
|
+
maxReconnects: number;
|
|
216
|
+
};
|
|
217
|
+
uploadUrl?: string | undefined;
|
|
218
|
+
streamUrl?: string | undefined;
|
|
219
|
+
referencedBy?: {
|
|
220
|
+
rootTaskId: string;
|
|
221
|
+
taskId: string;
|
|
222
|
+
nodeId: string;
|
|
223
|
+
messageId: string;
|
|
224
|
+
} | undefined;
|
|
225
|
+
};
|
|
226
|
+
}, {
|
|
227
|
+
type: "CREATE";
|
|
228
|
+
treeList: {
|
|
229
|
+
tree: {
|
|
230
|
+
nodes: any[];
|
|
231
|
+
edges: any[];
|
|
232
|
+
};
|
|
233
|
+
references?: any[] | undefined;
|
|
234
|
+
schemas?: Record<string, any> | undefined;
|
|
235
|
+
};
|
|
236
|
+
input: any;
|
|
237
|
+
options: {
|
|
238
|
+
maxExecutions: number;
|
|
239
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
240
|
+
priority: number;
|
|
241
|
+
continuous: {
|
|
242
|
+
maxReconnects: number;
|
|
243
|
+
};
|
|
244
|
+
uploadUrl?: string | undefined;
|
|
245
|
+
streamUrl?: string | undefined;
|
|
246
|
+
referencedBy?: {
|
|
247
|
+
rootTaskId: string;
|
|
248
|
+
taskId: string;
|
|
249
|
+
nodeId: string;
|
|
250
|
+
messageId: string;
|
|
251
|
+
} | undefined;
|
|
252
|
+
};
|
|
253
|
+
}>>;
|
|
254
|
+
export type CreateCommand = z.infer<typeof createCommandSchema>;
|
|
255
|
+
export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"ABORT">;
|
|
257
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
259
|
+
type: z.ZodLiteral<"CREATE">;
|
|
260
|
+
treeList: z.ZodObject<{
|
|
261
|
+
tree: z.ZodObject<{
|
|
262
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
263
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
266
|
+
schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
input: z.ZodAny;
|
|
269
|
+
options: z.ZodObject<{
|
|
270
|
+
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
271
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
272
|
+
LINEAR: "LINEAR";
|
|
273
|
+
CONTINUOUS: "CONTINUOUS";
|
|
274
|
+
}>>;
|
|
275
|
+
priority: z.ZodDefault<z.ZodInt>;
|
|
276
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
277
|
+
streamUrl: z.ZodOptional<z.ZodString>;
|
|
278
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
279
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
rootTaskId: z.ZodUUID;
|
|
283
|
+
taskId: z.ZodUUID;
|
|
284
|
+
nodeId: z.ZodUUID;
|
|
285
|
+
messageId: z.ZodUUID;
|
|
286
|
+
}, z.core.$strip>>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
289
|
+
treeList: {
|
|
290
|
+
tree: {
|
|
291
|
+
nodes: ({
|
|
292
|
+
id: string;
|
|
293
|
+
type: "entry";
|
|
294
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
295
|
+
alias?: string | undefined;
|
|
296
|
+
} | {
|
|
297
|
+
id: string;
|
|
298
|
+
type: "service";
|
|
299
|
+
inputSchema: ({
|
|
300
|
+
type: "object";
|
|
301
|
+
} & import("json-schema").JSONSchema7) | {
|
|
302
|
+
type: "null";
|
|
303
|
+
} | ({
|
|
304
|
+
$ref: string;
|
|
305
|
+
} & import("json-schema").JSONSchema7);
|
|
306
|
+
name: string;
|
|
307
|
+
version: string;
|
|
308
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
309
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
310
|
+
outputs: {
|
|
311
|
+
name: string | null;
|
|
312
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
313
|
+
}[];
|
|
314
|
+
alias?: string | undefined;
|
|
315
|
+
configuration?: any;
|
|
316
|
+
ttl?: number | undefined;
|
|
317
|
+
retry?: number | undefined;
|
|
318
|
+
retryDelay?: number | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
id: string;
|
|
321
|
+
type: "logic";
|
|
322
|
+
script: string;
|
|
323
|
+
concurrency: boolean;
|
|
324
|
+
language: "javascript" | "python" | "typescript";
|
|
325
|
+
maxExecutionTime: number;
|
|
326
|
+
outputs: {
|
|
327
|
+
name: string | null;
|
|
328
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
329
|
+
}[];
|
|
330
|
+
alias?: string | undefined;
|
|
331
|
+
} | {
|
|
332
|
+
id: string;
|
|
333
|
+
type: "or";
|
|
334
|
+
alias?: string | undefined;
|
|
335
|
+
} | {
|
|
336
|
+
id: string;
|
|
337
|
+
type: "reference";
|
|
338
|
+
reference: string;
|
|
339
|
+
enabled: boolean;
|
|
340
|
+
inputSchema: ({
|
|
341
|
+
type: "object";
|
|
342
|
+
} & import("json-schema").JSONSchema7) | {
|
|
343
|
+
type: "null";
|
|
344
|
+
} | ({
|
|
345
|
+
$ref: string;
|
|
346
|
+
} & import("json-schema").JSONSchema7);
|
|
347
|
+
outputs: {
|
|
348
|
+
name: string | null;
|
|
349
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
350
|
+
}[];
|
|
351
|
+
alias?: string | undefined;
|
|
352
|
+
} | {
|
|
353
|
+
id: string;
|
|
354
|
+
type: "exit";
|
|
355
|
+
alias?: string | undefined;
|
|
356
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
357
|
+
} | {
|
|
358
|
+
id: string;
|
|
359
|
+
type: "comment";
|
|
360
|
+
text: string;
|
|
361
|
+
alias?: string | undefined;
|
|
362
|
+
})[];
|
|
363
|
+
edges: {
|
|
364
|
+
id: string;
|
|
365
|
+
source: string;
|
|
366
|
+
sourceHandle: string | null;
|
|
367
|
+
target: string;
|
|
368
|
+
}[];
|
|
369
|
+
};
|
|
370
|
+
references?: {
|
|
371
|
+
id: string;
|
|
372
|
+
options: {
|
|
373
|
+
maxExecutions: number;
|
|
374
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
375
|
+
};
|
|
376
|
+
tree: {
|
|
377
|
+
nodes: ({
|
|
378
|
+
id: string;
|
|
379
|
+
type: "entry";
|
|
380
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
381
|
+
alias?: string | undefined;
|
|
382
|
+
} | {
|
|
383
|
+
id: string;
|
|
384
|
+
type: "service";
|
|
385
|
+
inputSchema: ({
|
|
386
|
+
type: "object";
|
|
387
|
+
} & import("json-schema").JSONSchema7) | {
|
|
388
|
+
type: "null";
|
|
389
|
+
} | ({
|
|
390
|
+
$ref: string;
|
|
391
|
+
} & import("json-schema").JSONSchema7);
|
|
392
|
+
name: string;
|
|
393
|
+
version: string;
|
|
394
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
395
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
396
|
+
outputs: {
|
|
397
|
+
name: string | null;
|
|
398
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
399
|
+
}[];
|
|
400
|
+
alias?: string | undefined;
|
|
401
|
+
configuration?: any;
|
|
402
|
+
ttl?: number | undefined;
|
|
403
|
+
retry?: number | undefined;
|
|
404
|
+
retryDelay?: number | undefined;
|
|
405
|
+
} | {
|
|
406
|
+
id: string;
|
|
407
|
+
type: "logic";
|
|
408
|
+
script: string;
|
|
409
|
+
concurrency: boolean;
|
|
410
|
+
language: "javascript" | "python" | "typescript";
|
|
411
|
+
maxExecutionTime: number;
|
|
412
|
+
outputs: {
|
|
413
|
+
name: string | null;
|
|
414
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
415
|
+
}[];
|
|
416
|
+
alias?: string | undefined;
|
|
417
|
+
} | {
|
|
418
|
+
id: string;
|
|
419
|
+
type: "or";
|
|
420
|
+
alias?: string | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
id: string;
|
|
423
|
+
type: "reference";
|
|
424
|
+
reference: string;
|
|
425
|
+
enabled: boolean;
|
|
426
|
+
inputSchema: ({
|
|
427
|
+
type: "object";
|
|
428
|
+
} & import("json-schema").JSONSchema7) | {
|
|
429
|
+
type: "null";
|
|
430
|
+
} | ({
|
|
431
|
+
$ref: string;
|
|
432
|
+
} & import("json-schema").JSONSchema7);
|
|
433
|
+
outputs: {
|
|
434
|
+
name: string | null;
|
|
435
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
436
|
+
}[];
|
|
437
|
+
alias?: string | undefined;
|
|
438
|
+
} | {
|
|
439
|
+
id: string;
|
|
440
|
+
type: "exit";
|
|
441
|
+
alias?: string | undefined;
|
|
442
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
443
|
+
} | {
|
|
444
|
+
id: string;
|
|
445
|
+
type: "comment";
|
|
446
|
+
text: string;
|
|
447
|
+
alias?: string | undefined;
|
|
448
|
+
})[];
|
|
449
|
+
edges: {
|
|
450
|
+
id: string;
|
|
451
|
+
source: string;
|
|
452
|
+
sourceHandle: string | null;
|
|
453
|
+
target: string;
|
|
454
|
+
}[];
|
|
455
|
+
};
|
|
456
|
+
}[] | undefined;
|
|
457
|
+
schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
|
|
458
|
+
};
|
|
459
|
+
type: "CREATE";
|
|
460
|
+
input: any;
|
|
461
|
+
options: {
|
|
462
|
+
maxExecutions: number;
|
|
463
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
464
|
+
priority: number;
|
|
465
|
+
continuous: {
|
|
466
|
+
maxReconnects: number;
|
|
467
|
+
};
|
|
468
|
+
uploadUrl?: string | undefined;
|
|
469
|
+
streamUrl?: string | undefined;
|
|
470
|
+
referencedBy?: {
|
|
471
|
+
rootTaskId: string;
|
|
472
|
+
taskId: string;
|
|
473
|
+
nodeId: string;
|
|
474
|
+
messageId: string;
|
|
475
|
+
} | undefined;
|
|
476
|
+
};
|
|
477
|
+
}, {
|
|
478
|
+
type: "CREATE";
|
|
479
|
+
treeList: {
|
|
480
|
+
tree: {
|
|
481
|
+
nodes: any[];
|
|
482
|
+
edges: any[];
|
|
483
|
+
};
|
|
484
|
+
references?: any[] | undefined;
|
|
485
|
+
schemas?: Record<string, any> | undefined;
|
|
486
|
+
};
|
|
487
|
+
input: any;
|
|
488
|
+
options: {
|
|
489
|
+
maxExecutions: number;
|
|
490
|
+
mode: "LINEAR" | "CONTINUOUS";
|
|
491
|
+
priority: number;
|
|
492
|
+
continuous: {
|
|
493
|
+
maxReconnects: number;
|
|
494
|
+
};
|
|
495
|
+
uploadUrl?: string | undefined;
|
|
496
|
+
streamUrl?: string | undefined;
|
|
497
|
+
referencedBy?: {
|
|
498
|
+
rootTaskId: string;
|
|
499
|
+
taskId: string;
|
|
500
|
+
nodeId: string;
|
|
501
|
+
messageId: string;
|
|
502
|
+
} | undefined;
|
|
503
|
+
};
|
|
504
|
+
}>>]>;
|
|
505
|
+
export type Command = z.infer<typeof commandSchema>;
|
|
506
|
+
export type CommandInput = z.input<typeof commandSchema>;
|
|
507
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAK1B,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuB3B,CAAA;AAEL,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAqD,CAAA;AAC/E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { z } from 'zod/v4';
|
|
2
|
+
export declare class NodeTransformError extends Error {
|
|
3
|
+
readonly nodeId?: string | undefined;
|
|
4
|
+
constructor(message: string, nodeId?: string | undefined);
|
|
5
|
+
}
|
|
6
|
+
export declare function safeTransform<T extends () => any>(ctx: z.RefinementCtx, handler: T): ReturnType<T>;
|
|
7
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,qBAAa,kBAAmB,SAAQ,KAAK;aAGzB,MAAM,CAAC,EAAE,MAAM;gBAD/B,OAAO,EAAE,MAAM,EACC,MAAM,CAAC,EAAE,MAAM,YAAA;CAIlC;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAC/C,GAAG,EAAE,CAAC,CAAC,aAAa,EACpB,OAAO,EAAE,CAAC,GACT,UAAU,CAAC,CAAC,CAAC,CAkBf"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './command.ts';
|
|
2
|
+
export * from './nodeType.ts';
|
|
3
|
+
export * from './update.ts';
|
|
4
|
+
export * from './treeNodes.ts';
|
|
5
|
+
export * from './NodeTree.ts';
|
|
6
|
+
export * from './taskOptions.ts';
|
|
7
|
+
export * from './templateNodeTypes.ts';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA"}
|