@requence/service 0.7.1 → 0.8.1
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 +36 -0
- package/README.md +15 -0
- package/build/{chunk-6w7td62p.js → chunk-8r349zge.js} +46 -3
- package/build/chunk-8r349zge.js.map +11 -0
- package/build/cli.js +17 -7
- package/build/cli.js.map +3 -3
- package/build/index.js +1261 -446
- package/build/index.js.map +28 -14
- package/build/types/helpers/src/index.d.ts +8 -2
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/validate.d.ts +1 -5
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/zod.d.ts +11 -1
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/NodeTree.d.ts +450 -144
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/command.d.ts +364 -142
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/configurationScript.d.ts +10 -0
- package/build/types/helpers/src/protocol/configurationScript.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/index.d.ts +4 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/logicLanguages.d.ts +19 -0
- package/build/types/helpers/src/protocol/logicLanguages.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/loopDetection.d.ts +23 -0
- package/build/types/helpers/src/protocol/loopDetection.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts +73 -27
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -1
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +36 -20
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/treeNodes.d.ts +476 -164
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/update.d.ts +22 -22
- package/build/types/helpers/src/protocol/validateTreeStructure.d.ts +22 -0
- package/build/types/helpers/src/protocol/validateTreeStructure.d.ts.map +1 -0
- package/build/types/helpers/src/utils/amqpHeartbeat.d.ts +3 -0
- package/build/types/helpers/src/utils/amqpHeartbeat.d.ts.map +1 -0
- package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +5 -0
- package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -0
- package/build/types/helpers/src/utils/claimCheckObject.d.ts +40 -0
- package/build/types/helpers/src/utils/claimCheckObject.d.ts.map +1 -0
- package/build/types/helpers/src/utils/debounce.d.ts.map +1 -1
- package/build/types/helpers/src/{files → utils}/fileObject.d.ts.map +1 -1
- package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts.map +1 -1
- package/build/types/helpers/src/utils/mapData.d.ts +1 -1
- package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
- package/build/types/helpers/src/{files → utils}/streamObject.d.ts.map +1 -1
- package/build/types/helpers/src/utils/variableRef.d.ts +19 -0
- package/build/types/helpers/src/utils/variableRef.d.ts.map +1 -0
- package/build/types/helpers/src/utils/variableScriptPatterns.d.ts +125 -0
- package/build/types/helpers/src/utils/variableScriptPatterns.d.ts.map +1 -0
- package/build/types/service/src/boundary.d.ts +75 -0
- package/build/types/service/src/boundary.d.ts.map +1 -0
- package/build/types/service/src/createAmqpConnection.d.ts +21 -4
- package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
- package/build/types/service/src/errors.d.ts +31 -0
- package/build/types/service/src/errors.d.ts.map +1 -1
- package/build/types/service/src/helpers.d.ts +59 -56
- package/build/types/service/src/helpers.d.ts.map +1 -1
- package/build/types/service/src/index.d.ts +7 -1
- package/build/types/service/src/index.d.ts.map +1 -1
- package/build/types/service/src/transformer.d.ts +16 -0
- package/build/types/service/src/transformer.d.ts.map +1 -0
- package/package.json +6 -3
- package/build/chunk-6w7td62p.js.map +0 -10
- package/build/types/helpers/src/files/RequenceFile.d.ts +0 -40
- package/build/types/helpers/src/files/RequenceFile.d.ts.map +0 -1
- package/build/types/helpers/src/files/RequenceStream.d.ts +0 -32
- package/build/types/helpers/src/files/RequenceStream.d.ts.map +0 -1
- package/build/types/helpers/src/files/index.d.ts +0 -7
- package/build/types/helpers/src/files/index.d.ts.map +0 -1
- package/build/types/helpers/src/files/mapOutput.d.ts +0 -10
- package/build/types/helpers/src/files/mapOutput.d.ts.map +0 -1
- package/build/types/helpers/src/files/types.d.ts +0 -4
- package/build/types/helpers/src/files/types.d.ts.map +0 -1
- package/build/types/helpers/src/utils/createObjectProxy.d.ts +0 -2
- package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +0 -1
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +0 -8
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +0 -1
- package/build/types/service/src/mapInput.d.ts +0 -2
- package/build/types/service/src/mapInput.d.ts.map +0 -1
- /package/build/types/helpers/src/{files → utils}/fileObject.d.ts +0 -0
- /package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts +0 -0
- /package/build/types/helpers/src/{files → utils}/streamObject.d.ts +0 -0
|
@@ -18,12 +18,14 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
18
18
|
options: z.ZodObject<{
|
|
19
19
|
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
20
20
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
21
|
-
LINEAR: "LINEAR";
|
|
22
21
|
CONTINUOUS: "CONTINUOUS";
|
|
22
|
+
LINEAR: "LINEAR";
|
|
23
23
|
}>>;
|
|
24
24
|
priority: z.ZodDefault<z.ZodInt>;
|
|
25
25
|
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
26
26
|
streamUrl: z.ZodOptional<z.ZodString>;
|
|
27
|
+
maxPayloadSize: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
27
29
|
continuous: z.ZodDefault<z.ZodObject<{
|
|
28
30
|
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
29
31
|
}, z.core.$strip>>;
|
|
@@ -32,72 +34,145 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
32
34
|
taskId: z.ZodUUID;
|
|
33
35
|
nodeId: z.ZodUUID;
|
|
34
36
|
messageId: z.ZodUUID;
|
|
37
|
+
epoch: z.ZodOptional<z.ZodUUID>;
|
|
35
38
|
}, z.core.$strip>>;
|
|
36
39
|
}, z.core.$strip>;
|
|
37
40
|
}, z.core.$strip>, z.ZodTransform<{
|
|
41
|
+
type: "CREATE";
|
|
42
|
+
input: any;
|
|
43
|
+
options: {
|
|
44
|
+
maxExecutions: number;
|
|
45
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
46
|
+
priority: number;
|
|
47
|
+
uploadUrl?: string | undefined;
|
|
48
|
+
streamUrl?: string | undefined;
|
|
49
|
+
maxPayloadSize?: number | undefined;
|
|
50
|
+
maxFileSize?: number | undefined;
|
|
51
|
+
continuous: {
|
|
52
|
+
maxReconnects: number;
|
|
53
|
+
};
|
|
54
|
+
referencedBy?: {
|
|
55
|
+
rootTaskId: string;
|
|
56
|
+
taskId: string;
|
|
57
|
+
nodeId: string;
|
|
58
|
+
messageId: string;
|
|
59
|
+
epoch?: string | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
};
|
|
38
62
|
treeList: {
|
|
39
63
|
tree: {
|
|
40
64
|
nodes: ({
|
|
41
65
|
id: string;
|
|
42
66
|
type: "entry";
|
|
43
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
44
67
|
alias?: string | undefined;
|
|
68
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
45
69
|
} | {
|
|
70
|
+
outputs: {
|
|
71
|
+
name: string | null;
|
|
72
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
73
|
+
}[];
|
|
46
74
|
id: string;
|
|
47
75
|
type: "service";
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} & import("json-schema").JSONSchema7) | {
|
|
76
|
+
alias?: string | undefined;
|
|
77
|
+
inputSchema: {
|
|
51
78
|
type: "null";
|
|
52
79
|
} | ({
|
|
80
|
+
type: "object";
|
|
81
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
53
82
|
$ref: string;
|
|
83
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
84
|
+
oneOf: ({
|
|
85
|
+
type: "null";
|
|
86
|
+
} | ({
|
|
87
|
+
type: "object";
|
|
88
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
89
|
+
$ref: string;
|
|
90
|
+
} & import("json-schema").JSONSchema7))[];
|
|
54
91
|
} & import("json-schema").JSONSchema7);
|
|
55
92
|
name: string;
|
|
56
93
|
version: string;
|
|
94
|
+
configuration?: any;
|
|
57
95
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
58
|
-
|
|
96
|
+
ttl?: number | undefined;
|
|
97
|
+
retry: number;
|
|
98
|
+
retryDelay?: number | undefined;
|
|
99
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
100
|
+
privileged: boolean;
|
|
101
|
+
configurationServices?: {
|
|
102
|
+
outputs: {
|
|
103
|
+
name: string | null;
|
|
104
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
105
|
+
}[];
|
|
106
|
+
id: string;
|
|
107
|
+
type: "service";
|
|
108
|
+
alias?: string | undefined;
|
|
109
|
+
inputSchema: {
|
|
110
|
+
type: "null";
|
|
111
|
+
} | ({
|
|
112
|
+
type: "object";
|
|
113
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
114
|
+
$ref: string;
|
|
115
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
116
|
+
oneOf: ({
|
|
117
|
+
type: "null";
|
|
118
|
+
} | ({
|
|
119
|
+
type: "object";
|
|
120
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
121
|
+
$ref: string;
|
|
122
|
+
} & import("json-schema").JSONSchema7))[];
|
|
123
|
+
} & import("json-schema").JSONSchema7);
|
|
124
|
+
name: string;
|
|
125
|
+
version: string;
|
|
126
|
+
configuration?: any;
|
|
127
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
128
|
+
ttl?: number | undefined;
|
|
129
|
+
retry: number;
|
|
130
|
+
retryDelay?: number | undefined;
|
|
131
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
132
|
+
privileged: boolean;
|
|
133
|
+
configurationServices?: /*elided*/ any[] | undefined;
|
|
134
|
+
}[] | undefined;
|
|
135
|
+
} | {
|
|
59
136
|
outputs: {
|
|
60
137
|
name: string | null;
|
|
61
138
|
schema: import("json-schema").JSONSchema7 | null;
|
|
62
139
|
}[];
|
|
63
|
-
alias?: string | undefined;
|
|
64
|
-
configuration?: any;
|
|
65
|
-
ttl?: number | undefined;
|
|
66
|
-
retry?: number | undefined;
|
|
67
|
-
retryDelay?: number | undefined;
|
|
68
|
-
} | {
|
|
69
140
|
id: string;
|
|
70
141
|
type: "logic";
|
|
142
|
+
alias?: string | undefined;
|
|
71
143
|
script: string;
|
|
72
144
|
concurrency: boolean;
|
|
73
145
|
language: "javascript" | "python" | "typescript";
|
|
74
146
|
maxExecutionTime: number;
|
|
75
|
-
outputs: {
|
|
76
|
-
name: string | null;
|
|
77
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
78
|
-
}[];
|
|
79
|
-
alias?: string | undefined;
|
|
80
147
|
} | {
|
|
81
148
|
id: string;
|
|
82
149
|
type: "or";
|
|
83
150
|
alias?: string | undefined;
|
|
84
151
|
} | {
|
|
152
|
+
outputs: {
|
|
153
|
+
name: string | null;
|
|
154
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
155
|
+
}[];
|
|
85
156
|
id: string;
|
|
86
157
|
type: "reference";
|
|
158
|
+
alias?: string | undefined;
|
|
87
159
|
reference: string;
|
|
88
160
|
enabled: boolean;
|
|
89
|
-
inputSchema:
|
|
90
|
-
type: "object";
|
|
91
|
-
} & import("json-schema").JSONSchema7) | {
|
|
161
|
+
inputSchema: {
|
|
92
162
|
type: "null";
|
|
93
163
|
} | ({
|
|
164
|
+
type: "object";
|
|
165
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
94
166
|
$ref: string;
|
|
167
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
168
|
+
oneOf: ({
|
|
169
|
+
type: "null";
|
|
170
|
+
} | ({
|
|
171
|
+
type: "object";
|
|
172
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
173
|
+
$ref: string;
|
|
174
|
+
} & import("json-schema").JSONSchema7))[];
|
|
95
175
|
} & import("json-schema").JSONSchema7);
|
|
96
|
-
outputs: {
|
|
97
|
-
name: string | null;
|
|
98
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
99
|
-
}[];
|
|
100
|
-
alias?: string | undefined;
|
|
101
176
|
} | {
|
|
102
177
|
id: string;
|
|
103
178
|
type: "exit";
|
|
@@ -120,70 +195,121 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
120
195
|
id: string;
|
|
121
196
|
options: {
|
|
122
197
|
maxExecutions: number;
|
|
123
|
-
mode: "
|
|
198
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
124
199
|
};
|
|
125
200
|
tree: {
|
|
126
201
|
nodes: ({
|
|
127
202
|
id: string;
|
|
128
203
|
type: "entry";
|
|
129
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
130
204
|
alias?: string | undefined;
|
|
205
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
131
206
|
} | {
|
|
207
|
+
outputs: {
|
|
208
|
+
name: string | null;
|
|
209
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
210
|
+
}[];
|
|
132
211
|
id: string;
|
|
133
212
|
type: "service";
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} & import("json-schema").JSONSchema7) | {
|
|
213
|
+
alias?: string | undefined;
|
|
214
|
+
inputSchema: {
|
|
137
215
|
type: "null";
|
|
138
216
|
} | ({
|
|
217
|
+
type: "object";
|
|
218
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
139
219
|
$ref: string;
|
|
220
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
221
|
+
oneOf: ({
|
|
222
|
+
type: "null";
|
|
223
|
+
} | ({
|
|
224
|
+
type: "object";
|
|
225
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
226
|
+
$ref: string;
|
|
227
|
+
} & import("json-schema").JSONSchema7))[];
|
|
140
228
|
} & import("json-schema").JSONSchema7);
|
|
141
229
|
name: string;
|
|
142
230
|
version: string;
|
|
231
|
+
configuration?: any;
|
|
143
232
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
144
|
-
|
|
233
|
+
ttl?: number | undefined;
|
|
234
|
+
retry: number;
|
|
235
|
+
retryDelay?: number | undefined;
|
|
236
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
237
|
+
privileged: boolean;
|
|
238
|
+
configurationServices?: {
|
|
239
|
+
outputs: {
|
|
240
|
+
name: string | null;
|
|
241
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
242
|
+
}[];
|
|
243
|
+
id: string;
|
|
244
|
+
type: "service";
|
|
245
|
+
alias?: string | undefined;
|
|
246
|
+
inputSchema: {
|
|
247
|
+
type: "null";
|
|
248
|
+
} | ({
|
|
249
|
+
type: "object";
|
|
250
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
251
|
+
$ref: string;
|
|
252
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
253
|
+
oneOf: ({
|
|
254
|
+
type: "null";
|
|
255
|
+
} | ({
|
|
256
|
+
type: "object";
|
|
257
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
258
|
+
$ref: string;
|
|
259
|
+
} & import("json-schema").JSONSchema7))[];
|
|
260
|
+
} & import("json-schema").JSONSchema7);
|
|
261
|
+
name: string;
|
|
262
|
+
version: string;
|
|
263
|
+
configuration?: any;
|
|
264
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
265
|
+
ttl?: number | undefined;
|
|
266
|
+
retry: number;
|
|
267
|
+
retryDelay?: number | undefined;
|
|
268
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
269
|
+
privileged: boolean;
|
|
270
|
+
configurationServices?: any[] | undefined;
|
|
271
|
+
}[] | undefined;
|
|
272
|
+
} | {
|
|
145
273
|
outputs: {
|
|
146
274
|
name: string | null;
|
|
147
275
|
schema: import("json-schema").JSONSchema7 | null;
|
|
148
276
|
}[];
|
|
149
|
-
alias?: string | undefined;
|
|
150
|
-
configuration?: any;
|
|
151
|
-
ttl?: number | undefined;
|
|
152
|
-
retry?: number | undefined;
|
|
153
|
-
retryDelay?: number | undefined;
|
|
154
|
-
} | {
|
|
155
277
|
id: string;
|
|
156
278
|
type: "logic";
|
|
279
|
+
alias?: string | undefined;
|
|
157
280
|
script: string;
|
|
158
281
|
concurrency: boolean;
|
|
159
282
|
language: "javascript" | "python" | "typescript";
|
|
160
283
|
maxExecutionTime: number;
|
|
161
|
-
outputs: {
|
|
162
|
-
name: string | null;
|
|
163
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
164
|
-
}[];
|
|
165
|
-
alias?: string | undefined;
|
|
166
284
|
} | {
|
|
167
285
|
id: string;
|
|
168
286
|
type: "or";
|
|
169
287
|
alias?: string | undefined;
|
|
170
288
|
} | {
|
|
289
|
+
outputs: {
|
|
290
|
+
name: string | null;
|
|
291
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
292
|
+
}[];
|
|
171
293
|
id: string;
|
|
172
294
|
type: "reference";
|
|
295
|
+
alias?: string | undefined;
|
|
173
296
|
reference: string;
|
|
174
297
|
enabled: boolean;
|
|
175
|
-
inputSchema:
|
|
176
|
-
type: "object";
|
|
177
|
-
} & import("json-schema").JSONSchema7) | {
|
|
298
|
+
inputSchema: {
|
|
178
299
|
type: "null";
|
|
179
300
|
} | ({
|
|
301
|
+
type: "object";
|
|
302
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
180
303
|
$ref: string;
|
|
304
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
305
|
+
oneOf: ({
|
|
306
|
+
type: "null";
|
|
307
|
+
} | ({
|
|
308
|
+
type: "object";
|
|
309
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
310
|
+
$ref: string;
|
|
311
|
+
} & import("json-schema").JSONSchema7))[];
|
|
181
312
|
} & import("json-schema").JSONSchema7);
|
|
182
|
-
outputs: {
|
|
183
|
-
name: string | null;
|
|
184
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
185
|
-
}[];
|
|
186
|
-
alias?: string | undefined;
|
|
187
313
|
} | {
|
|
188
314
|
id: string;
|
|
189
315
|
type: "exit";
|
|
@@ -205,24 +331,6 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
205
331
|
}[] | undefined;
|
|
206
332
|
schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
|
|
207
333
|
};
|
|
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
334
|
}, {
|
|
227
335
|
type: "CREATE";
|
|
228
336
|
treeList: {
|
|
@@ -236,18 +344,21 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
236
344
|
input: any;
|
|
237
345
|
options: {
|
|
238
346
|
maxExecutions: number;
|
|
239
|
-
mode: "
|
|
347
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
240
348
|
priority: number;
|
|
349
|
+
uploadUrl?: string | undefined;
|
|
350
|
+
streamUrl?: string | undefined;
|
|
351
|
+
maxPayloadSize?: number | undefined;
|
|
352
|
+
maxFileSize?: number | undefined;
|
|
241
353
|
continuous: {
|
|
242
354
|
maxReconnects: number;
|
|
243
355
|
};
|
|
244
|
-
uploadUrl?: string | undefined;
|
|
245
|
-
streamUrl?: string | undefined;
|
|
246
356
|
referencedBy?: {
|
|
247
357
|
rootTaskId: string;
|
|
248
358
|
taskId: string;
|
|
249
359
|
nodeId: string;
|
|
250
360
|
messageId: string;
|
|
361
|
+
epoch?: string | undefined;
|
|
251
362
|
} | undefined;
|
|
252
363
|
};
|
|
253
364
|
}>>;
|
|
@@ -269,12 +380,14 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
269
380
|
options: z.ZodObject<{
|
|
270
381
|
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
271
382
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
272
|
-
LINEAR: "LINEAR";
|
|
273
383
|
CONTINUOUS: "CONTINUOUS";
|
|
384
|
+
LINEAR: "LINEAR";
|
|
274
385
|
}>>;
|
|
275
386
|
priority: z.ZodDefault<z.ZodInt>;
|
|
276
387
|
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
277
388
|
streamUrl: z.ZodOptional<z.ZodString>;
|
|
389
|
+
maxPayloadSize: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
278
391
|
continuous: z.ZodDefault<z.ZodObject<{
|
|
279
392
|
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
280
393
|
}, z.core.$strip>>;
|
|
@@ -283,72 +396,145 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
283
396
|
taskId: z.ZodUUID;
|
|
284
397
|
nodeId: z.ZodUUID;
|
|
285
398
|
messageId: z.ZodUUID;
|
|
399
|
+
epoch: z.ZodOptional<z.ZodUUID>;
|
|
286
400
|
}, z.core.$strip>>;
|
|
287
401
|
}, z.core.$strip>;
|
|
288
402
|
}, z.core.$strip>, z.ZodTransform<{
|
|
403
|
+
type: "CREATE";
|
|
404
|
+
input: any;
|
|
405
|
+
options: {
|
|
406
|
+
maxExecutions: number;
|
|
407
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
408
|
+
priority: number;
|
|
409
|
+
uploadUrl?: string | undefined;
|
|
410
|
+
streamUrl?: string | undefined;
|
|
411
|
+
maxPayloadSize?: number | undefined;
|
|
412
|
+
maxFileSize?: number | undefined;
|
|
413
|
+
continuous: {
|
|
414
|
+
maxReconnects: number;
|
|
415
|
+
};
|
|
416
|
+
referencedBy?: {
|
|
417
|
+
rootTaskId: string;
|
|
418
|
+
taskId: string;
|
|
419
|
+
nodeId: string;
|
|
420
|
+
messageId: string;
|
|
421
|
+
epoch?: string | undefined;
|
|
422
|
+
} | undefined;
|
|
423
|
+
};
|
|
289
424
|
treeList: {
|
|
290
425
|
tree: {
|
|
291
426
|
nodes: ({
|
|
292
427
|
id: string;
|
|
293
428
|
type: "entry";
|
|
294
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
295
429
|
alias?: string | undefined;
|
|
430
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
296
431
|
} | {
|
|
432
|
+
outputs: {
|
|
433
|
+
name: string | null;
|
|
434
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
435
|
+
}[];
|
|
297
436
|
id: string;
|
|
298
437
|
type: "service";
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
} & import("json-schema").JSONSchema7) | {
|
|
438
|
+
alias?: string | undefined;
|
|
439
|
+
inputSchema: {
|
|
302
440
|
type: "null";
|
|
303
441
|
} | ({
|
|
442
|
+
type: "object";
|
|
443
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
304
444
|
$ref: string;
|
|
445
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
446
|
+
oneOf: ({
|
|
447
|
+
type: "null";
|
|
448
|
+
} | ({
|
|
449
|
+
type: "object";
|
|
450
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
451
|
+
$ref: string;
|
|
452
|
+
} & import("json-schema").JSONSchema7))[];
|
|
305
453
|
} & import("json-schema").JSONSchema7);
|
|
306
454
|
name: string;
|
|
307
455
|
version: string;
|
|
456
|
+
configuration?: any;
|
|
308
457
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
309
|
-
|
|
458
|
+
ttl?: number | undefined;
|
|
459
|
+
retry: number;
|
|
460
|
+
retryDelay?: number | undefined;
|
|
461
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
462
|
+
privileged: boolean;
|
|
463
|
+
configurationServices?: {
|
|
464
|
+
outputs: {
|
|
465
|
+
name: string | null;
|
|
466
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
467
|
+
}[];
|
|
468
|
+
id: string;
|
|
469
|
+
type: "service";
|
|
470
|
+
alias?: string | undefined;
|
|
471
|
+
inputSchema: {
|
|
472
|
+
type: "null";
|
|
473
|
+
} | ({
|
|
474
|
+
type: "object";
|
|
475
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
476
|
+
$ref: string;
|
|
477
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
478
|
+
oneOf: ({
|
|
479
|
+
type: "null";
|
|
480
|
+
} | ({
|
|
481
|
+
type: "object";
|
|
482
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
483
|
+
$ref: string;
|
|
484
|
+
} & import("json-schema").JSONSchema7))[];
|
|
485
|
+
} & import("json-schema").JSONSchema7);
|
|
486
|
+
name: string;
|
|
487
|
+
version: string;
|
|
488
|
+
configuration?: any;
|
|
489
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
490
|
+
ttl?: number | undefined;
|
|
491
|
+
retry: number;
|
|
492
|
+
retryDelay?: number | undefined;
|
|
493
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
494
|
+
privileged: boolean;
|
|
495
|
+
configurationServices?: /*elided*/ any[] | undefined;
|
|
496
|
+
}[] | undefined;
|
|
497
|
+
} | {
|
|
310
498
|
outputs: {
|
|
311
499
|
name: string | null;
|
|
312
500
|
schema: import("json-schema").JSONSchema7 | null;
|
|
313
501
|
}[];
|
|
314
|
-
alias?: string | undefined;
|
|
315
|
-
configuration?: any;
|
|
316
|
-
ttl?: number | undefined;
|
|
317
|
-
retry?: number | undefined;
|
|
318
|
-
retryDelay?: number | undefined;
|
|
319
|
-
} | {
|
|
320
502
|
id: string;
|
|
321
503
|
type: "logic";
|
|
504
|
+
alias?: string | undefined;
|
|
322
505
|
script: string;
|
|
323
506
|
concurrency: boolean;
|
|
324
507
|
language: "javascript" | "python" | "typescript";
|
|
325
508
|
maxExecutionTime: number;
|
|
326
|
-
outputs: {
|
|
327
|
-
name: string | null;
|
|
328
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
329
|
-
}[];
|
|
330
|
-
alias?: string | undefined;
|
|
331
509
|
} | {
|
|
332
510
|
id: string;
|
|
333
511
|
type: "or";
|
|
334
512
|
alias?: string | undefined;
|
|
335
513
|
} | {
|
|
514
|
+
outputs: {
|
|
515
|
+
name: string | null;
|
|
516
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
517
|
+
}[];
|
|
336
518
|
id: string;
|
|
337
519
|
type: "reference";
|
|
520
|
+
alias?: string | undefined;
|
|
338
521
|
reference: string;
|
|
339
522
|
enabled: boolean;
|
|
340
|
-
inputSchema:
|
|
341
|
-
type: "object";
|
|
342
|
-
} & import("json-schema").JSONSchema7) | {
|
|
523
|
+
inputSchema: {
|
|
343
524
|
type: "null";
|
|
344
525
|
} | ({
|
|
526
|
+
type: "object";
|
|
527
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
345
528
|
$ref: string;
|
|
529
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
530
|
+
oneOf: ({
|
|
531
|
+
type: "null";
|
|
532
|
+
} | ({
|
|
533
|
+
type: "object";
|
|
534
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
535
|
+
$ref: string;
|
|
536
|
+
} & import("json-schema").JSONSchema7))[];
|
|
346
537
|
} & import("json-schema").JSONSchema7);
|
|
347
|
-
outputs: {
|
|
348
|
-
name: string | null;
|
|
349
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
350
|
-
}[];
|
|
351
|
-
alias?: string | undefined;
|
|
352
538
|
} | {
|
|
353
539
|
id: string;
|
|
354
540
|
type: "exit";
|
|
@@ -371,70 +557,121 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
371
557
|
id: string;
|
|
372
558
|
options: {
|
|
373
559
|
maxExecutions: number;
|
|
374
|
-
mode: "
|
|
560
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
375
561
|
};
|
|
376
562
|
tree: {
|
|
377
563
|
nodes: ({
|
|
378
564
|
id: string;
|
|
379
565
|
type: "entry";
|
|
380
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
381
566
|
alias?: string | undefined;
|
|
567
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
382
568
|
} | {
|
|
569
|
+
outputs: {
|
|
570
|
+
name: string | null;
|
|
571
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
572
|
+
}[];
|
|
383
573
|
id: string;
|
|
384
574
|
type: "service";
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
} & import("json-schema").JSONSchema7) | {
|
|
575
|
+
alias?: string | undefined;
|
|
576
|
+
inputSchema: {
|
|
388
577
|
type: "null";
|
|
389
578
|
} | ({
|
|
579
|
+
type: "object";
|
|
580
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
390
581
|
$ref: string;
|
|
582
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
583
|
+
oneOf: ({
|
|
584
|
+
type: "null";
|
|
585
|
+
} | ({
|
|
586
|
+
type: "object";
|
|
587
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
588
|
+
$ref: string;
|
|
589
|
+
} & import("json-schema").JSONSchema7))[];
|
|
391
590
|
} & import("json-schema").JSONSchema7);
|
|
392
591
|
name: string;
|
|
393
592
|
version: string;
|
|
593
|
+
configuration?: any;
|
|
394
594
|
configurationSchema: import("json-schema").JSONSchema7;
|
|
395
|
-
|
|
595
|
+
ttl?: number | undefined;
|
|
596
|
+
retry: number;
|
|
597
|
+
retryDelay?: number | undefined;
|
|
598
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
599
|
+
privileged: boolean;
|
|
600
|
+
configurationServices?: {
|
|
601
|
+
outputs: {
|
|
602
|
+
name: string | null;
|
|
603
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
604
|
+
}[];
|
|
605
|
+
id: string;
|
|
606
|
+
type: "service";
|
|
607
|
+
alias?: string | undefined;
|
|
608
|
+
inputSchema: {
|
|
609
|
+
type: "null";
|
|
610
|
+
} | ({
|
|
611
|
+
type: "object";
|
|
612
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
613
|
+
$ref: string;
|
|
614
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
615
|
+
oneOf: ({
|
|
616
|
+
type: "null";
|
|
617
|
+
} | ({
|
|
618
|
+
type: "object";
|
|
619
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
620
|
+
$ref: string;
|
|
621
|
+
} & import("json-schema").JSONSchema7))[];
|
|
622
|
+
} & import("json-schema").JSONSchema7);
|
|
623
|
+
name: string;
|
|
624
|
+
version: string;
|
|
625
|
+
configuration?: any;
|
|
626
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
627
|
+
ttl?: number | undefined;
|
|
628
|
+
retry: number;
|
|
629
|
+
retryDelay?: number | undefined;
|
|
630
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
631
|
+
privileged: boolean;
|
|
632
|
+
configurationServices?: any[] | undefined;
|
|
633
|
+
}[] | undefined;
|
|
634
|
+
} | {
|
|
396
635
|
outputs: {
|
|
397
636
|
name: string | null;
|
|
398
637
|
schema: import("json-schema").JSONSchema7 | null;
|
|
399
638
|
}[];
|
|
400
|
-
alias?: string | undefined;
|
|
401
|
-
configuration?: any;
|
|
402
|
-
ttl?: number | undefined;
|
|
403
|
-
retry?: number | undefined;
|
|
404
|
-
retryDelay?: number | undefined;
|
|
405
|
-
} | {
|
|
406
639
|
id: string;
|
|
407
640
|
type: "logic";
|
|
641
|
+
alias?: string | undefined;
|
|
408
642
|
script: string;
|
|
409
643
|
concurrency: boolean;
|
|
410
644
|
language: "javascript" | "python" | "typescript";
|
|
411
645
|
maxExecutionTime: number;
|
|
412
|
-
outputs: {
|
|
413
|
-
name: string | null;
|
|
414
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
415
|
-
}[];
|
|
416
|
-
alias?: string | undefined;
|
|
417
646
|
} | {
|
|
418
647
|
id: string;
|
|
419
648
|
type: "or";
|
|
420
649
|
alias?: string | undefined;
|
|
421
650
|
} | {
|
|
651
|
+
outputs: {
|
|
652
|
+
name: string | null;
|
|
653
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
654
|
+
}[];
|
|
422
655
|
id: string;
|
|
423
656
|
type: "reference";
|
|
657
|
+
alias?: string | undefined;
|
|
424
658
|
reference: string;
|
|
425
659
|
enabled: boolean;
|
|
426
|
-
inputSchema:
|
|
427
|
-
type: "object";
|
|
428
|
-
} & import("json-schema").JSONSchema7) | {
|
|
660
|
+
inputSchema: {
|
|
429
661
|
type: "null";
|
|
430
662
|
} | ({
|
|
663
|
+
type: "object";
|
|
664
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
431
665
|
$ref: string;
|
|
666
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
667
|
+
oneOf: ({
|
|
668
|
+
type: "null";
|
|
669
|
+
} | ({
|
|
670
|
+
type: "object";
|
|
671
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
672
|
+
$ref: string;
|
|
673
|
+
} & import("json-schema").JSONSchema7))[];
|
|
432
674
|
} & import("json-schema").JSONSchema7);
|
|
433
|
-
outputs: {
|
|
434
|
-
name: string | null;
|
|
435
|
-
schema: import("json-schema").JSONSchema7 | null;
|
|
436
|
-
}[];
|
|
437
|
-
alias?: string | undefined;
|
|
438
675
|
} | {
|
|
439
676
|
id: string;
|
|
440
677
|
type: "exit";
|
|
@@ -456,24 +693,6 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
456
693
|
}[] | undefined;
|
|
457
694
|
schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
|
|
458
695
|
};
|
|
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
696
|
}, {
|
|
478
697
|
type: "CREATE";
|
|
479
698
|
treeList: {
|
|
@@ -487,18 +706,21 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
487
706
|
input: any;
|
|
488
707
|
options: {
|
|
489
708
|
maxExecutions: number;
|
|
490
|
-
mode: "
|
|
709
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
491
710
|
priority: number;
|
|
711
|
+
uploadUrl?: string | undefined;
|
|
712
|
+
streamUrl?: string | undefined;
|
|
713
|
+
maxPayloadSize?: number | undefined;
|
|
714
|
+
maxFileSize?: number | undefined;
|
|
492
715
|
continuous: {
|
|
493
716
|
maxReconnects: number;
|
|
494
717
|
};
|
|
495
|
-
uploadUrl?: string | undefined;
|
|
496
|
-
streamUrl?: string | undefined;
|
|
497
718
|
referencedBy?: {
|
|
498
719
|
rootTaskId: string;
|
|
499
720
|
taskId: string;
|
|
500
721
|
nodeId: string;
|
|
501
722
|
messageId: string;
|
|
723
|
+
epoch?: string | undefined;
|
|
502
724
|
} | undefined;
|
|
503
725
|
};
|
|
504
726
|
}>>]>;
|