@requence/task 0.8.2-edge.1151 → 0.8.2-edge.1155
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/build/chunk-vnx9bdvh.js +181 -0
- package/build/chunk-vnx9bdvh.js.map +14 -0
- package/build/cli.js +11 -13
- package/build/cli.js.map +3 -3
- package/build/index.js +11 -11
- package/build/index.js.map +6 -6
- package/build/types/helpers/src/index.d.ts +5 -0
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/NodeTree.d.ts +29 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/command.d.ts +859 -7
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/index.d.ts +1 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/sliceTreeList.d.ts +81 -0
- package/build/types/helpers/src/protocol/sliceTreeList.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +577 -2
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/update.d.ts +128 -10
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
- package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +113 -18
- package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -1
- package/build/types/helpers/src/utils/matchSchema.d.ts +14 -0
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
- package/build/types/helpers/src/utils/serviceRender.d.ts +73 -0
- package/build/types/helpers/src/utils/serviceRender.d.ts.map +1 -0
- package/build/types/helpers/src/utils/sliceClock.d.ts +61 -0
- package/build/types/helpers/src/utils/sliceClock.d.ts.map +1 -0
- package/build/types/helpers/src/utils/surfaceComponent.d.ts +116 -0
- package/build/types/helpers/src/utils/surfaceComponent.d.ts.map +1 -0
- package/build/types/helpers/src/utils/surfaceHandler.d.ts +171 -0
- package/build/types/helpers/src/utils/surfaceHandler.d.ts.map +1 -0
- package/build/types/helpers/src/utils/uiRebuild.d.ts +48 -0
- package/build/types/helpers/src/utils/uiRebuild.d.ts.map +1 -0
- package/build/types/task/src/createTask.d.ts.map +1 -1
- package/build/types/task/src/getTask.d.ts.map +1 -1
- package/build/types/task/src/types.d.ts +4 -4
- package/build/types/task/src/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/build/chunk-f7g9gsa0.js +0 -65
- package/build/chunk-f7g9gsa0.js.map +0 -11
|
@@ -1,9 +1,798 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
+
import { type InputTreeList, type TreeList } from './treeNodes.ts';
|
|
2
3
|
export declare const abortCommandSchema: z.ZodObject<{
|
|
3
4
|
type: z.ZodLiteral<"ABORT">;
|
|
4
5
|
reason: z.ZodOptional<z.ZodString>;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
export type AbortCommand = z.infer<typeof abortCommandSchema>;
|
|
8
|
+
/**
|
|
9
|
+
* "Re-announce this task's state" (issue #136).
|
|
10
|
+
*
|
|
11
|
+
* A caller that owns a row for the task — `ui/backend` — has seen no update for
|
|
12
|
+
* it long past the point where one was due, and cannot tell from its own state
|
|
13
|
+
* whether the task is running with a lost `TASK_START` or was never registered
|
|
14
|
+
* at all. This asks the only party that knows. The answer is an UPDATE, never a
|
|
15
|
+
* reply: a re-announced `TASK_START` when the machine is there, a `TASK_ERROR`
|
|
16
|
+
* when it is not — so every status change keeps travelling the one path
|
|
17
|
+
* (operator → update → monitor).
|
|
18
|
+
*
|
|
19
|
+
* A command rather than a direct publish into `operator.shards` (which is how
|
|
20
|
+
* the operator's own progress watchdog pokes a shard owner): a tenant may only
|
|
21
|
+
* write to its own exchange, and that exchange is bound into the shard family
|
|
22
|
+
* already. Riding the tenant exchange also puts the poke BEHIND this task's own
|
|
23
|
+
* CREATE in the same shard's FIFO — but that orders DELIVERY, not handling: the
|
|
24
|
+
* shard consumer has up to `PREFETCH` deliveries in handlers at once, so the
|
|
25
|
+
* poke can still be ANSWERED while the CREATE it is asking about is mid-flight
|
|
26
|
+
* (issue #140). The operator closes that gap itself: its consumer backs off a
|
|
27
|
+
* reconcile whose task has a CREATE in a handler on the same instance
|
|
28
|
+
* (`packages/operator/src/consumers/tasks.ts`).
|
|
29
|
+
*/
|
|
30
|
+
export declare const reconcileCommandSchema: z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"RECONCILE">;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type ReconcileCommand = z.infer<typeof reconcileCommandSchema>;
|
|
34
|
+
/**
|
|
35
|
+
* The CREATE command, parameterised by HOW its tree gets validated.
|
|
36
|
+
*
|
|
37
|
+
* Validating a `treeList` is the single most expensive thing either end of this
|
|
38
|
+
* wire does — measured ~4 s for a 300 kB tree with 23 references — so both ends
|
|
39
|
+
* splice a content-hashed memo in here: the operator on receipt (#132),
|
|
40
|
+
* `task-builder` before it publishes (#138), through the one cache in
|
|
41
|
+
* `../treeListCache.ts`. Everything else about a CREATE is the same on both
|
|
42
|
+
* sides. The plain `createCommandSchema` below, with no memo at all, is what
|
|
43
|
+
* anyone else validating a CREATE gets.
|
|
44
|
+
*
|
|
45
|
+
* A parameter rather than two schemas, because the rest of the command must NOT
|
|
46
|
+
* be duplicated: a second copy of this transform would go on accepting fields
|
|
47
|
+
* the other one has started to reject, and — since the caller hashes exactly
|
|
48
|
+
* what it is handed here — a drifting `allowMultipleOutputs` would key the cache
|
|
49
|
+
* on something other than what it stores. One shape, two tree parsers.
|
|
50
|
+
*/
|
|
51
|
+
export declare function createCommandSchemaWith(parseTreeList: (treeList: InputTreeList) => TreeList): z.ZodPipe<z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"CREATE">;
|
|
53
|
+
treeList: z.ZodObject<{
|
|
54
|
+
tree: z.ZodObject<{
|
|
55
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
56
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
59
|
+
schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
62
|
+
options: z.ZodObject<{
|
|
63
|
+
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
65
|
+
CONTINUOUS: "CONTINUOUS";
|
|
66
|
+
LINEAR: "LINEAR";
|
|
67
|
+
}>>;
|
|
68
|
+
priority: z.ZodDefault<z.ZodInt>;
|
|
69
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
70
|
+
streamUrl: z.ZodOptional<z.ZodString>;
|
|
71
|
+
maxPayloadSize: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
74
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
rootTaskId: z.ZodUUID;
|
|
78
|
+
taskId: z.ZodUUID;
|
|
79
|
+
nodeId: z.ZodUUID;
|
|
80
|
+
messageId: z.ZodUUID;
|
|
81
|
+
epoch: z.ZodOptional<z.ZodUUID>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
85
|
+
type: "CREATE";
|
|
86
|
+
input?: any;
|
|
87
|
+
options: {
|
|
88
|
+
maxExecutions: number;
|
|
89
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
90
|
+
priority: number;
|
|
91
|
+
uploadUrl?: string | undefined;
|
|
92
|
+
streamUrl?: string | undefined;
|
|
93
|
+
maxPayloadSize?: number | undefined;
|
|
94
|
+
maxFileSize?: number | undefined;
|
|
95
|
+
continuous: {
|
|
96
|
+
maxReconnects: number;
|
|
97
|
+
};
|
|
98
|
+
referencedBy?: {
|
|
99
|
+
rootTaskId: string;
|
|
100
|
+
taskId: string;
|
|
101
|
+
nodeId: string;
|
|
102
|
+
messageId: string;
|
|
103
|
+
epoch?: string | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
};
|
|
106
|
+
treeList: {
|
|
107
|
+
tree: {
|
|
108
|
+
nodes: ({
|
|
109
|
+
id: string;
|
|
110
|
+
type: "entry";
|
|
111
|
+
alias?: string | undefined;
|
|
112
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
113
|
+
} | {
|
|
114
|
+
outputs: {
|
|
115
|
+
name: string | null;
|
|
116
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
117
|
+
}[];
|
|
118
|
+
id: string;
|
|
119
|
+
type: "service";
|
|
120
|
+
alias?: string | undefined;
|
|
121
|
+
inputSchema: {
|
|
122
|
+
type: "null";
|
|
123
|
+
} | ({
|
|
124
|
+
type: "object";
|
|
125
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
126
|
+
$ref: string;
|
|
127
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
128
|
+
oneOf: ({
|
|
129
|
+
type: "null";
|
|
130
|
+
} | ({
|
|
131
|
+
type: "object";
|
|
132
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
133
|
+
$ref: string;
|
|
134
|
+
} & import("json-schema").JSONSchema7))[];
|
|
135
|
+
} & import("json-schema").JSONSchema7);
|
|
136
|
+
name: string;
|
|
137
|
+
version: string;
|
|
138
|
+
configuration?: any;
|
|
139
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
140
|
+
ttl?: number | undefined;
|
|
141
|
+
retry: number;
|
|
142
|
+
retryDelay?: number | undefined;
|
|
143
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
144
|
+
privileged: boolean;
|
|
145
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
146
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
147
|
+
configurationServices?: {
|
|
148
|
+
outputs: {
|
|
149
|
+
name: string | null;
|
|
150
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
151
|
+
}[];
|
|
152
|
+
id: string;
|
|
153
|
+
type: "service";
|
|
154
|
+
alias?: string | undefined;
|
|
155
|
+
inputSchema: {
|
|
156
|
+
type: "null";
|
|
157
|
+
} | ({
|
|
158
|
+
type: "object";
|
|
159
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
160
|
+
$ref: string;
|
|
161
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
162
|
+
oneOf: ({
|
|
163
|
+
type: "null";
|
|
164
|
+
} | ({
|
|
165
|
+
type: "object";
|
|
166
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
167
|
+
$ref: string;
|
|
168
|
+
} & import("json-schema").JSONSchema7))[];
|
|
169
|
+
} & import("json-schema").JSONSchema7);
|
|
170
|
+
name: string;
|
|
171
|
+
version: string;
|
|
172
|
+
configuration?: any;
|
|
173
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
174
|
+
ttl?: number | undefined;
|
|
175
|
+
retry: number;
|
|
176
|
+
retryDelay?: number | undefined;
|
|
177
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
178
|
+
privileged: boolean;
|
|
179
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
180
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
181
|
+
configurationServices?: /*elided*/ any[] | undefined;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
} | {
|
|
184
|
+
outputs: {
|
|
185
|
+
name: string | null;
|
|
186
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
187
|
+
}[];
|
|
188
|
+
id: string;
|
|
189
|
+
type: "logic";
|
|
190
|
+
alias?: string | undefined;
|
|
191
|
+
script: string;
|
|
192
|
+
concurrency: boolean;
|
|
193
|
+
language: "javascript" | "python" | "typescript";
|
|
194
|
+
maxExecutionTime: number;
|
|
195
|
+
} | {
|
|
196
|
+
id: string;
|
|
197
|
+
type: "or";
|
|
198
|
+
alias?: string | undefined;
|
|
199
|
+
} | {
|
|
200
|
+
outputs: {
|
|
201
|
+
name: string | null;
|
|
202
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
203
|
+
}[];
|
|
204
|
+
id: string;
|
|
205
|
+
type: "reference";
|
|
206
|
+
alias?: string | undefined;
|
|
207
|
+
reference: string;
|
|
208
|
+
enabled: boolean;
|
|
209
|
+
inputSchema: {
|
|
210
|
+
type: "null";
|
|
211
|
+
} | ({
|
|
212
|
+
type: "object";
|
|
213
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
214
|
+
$ref: string;
|
|
215
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
216
|
+
oneOf: ({
|
|
217
|
+
type: "null";
|
|
218
|
+
} | ({
|
|
219
|
+
type: "object";
|
|
220
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
221
|
+
$ref: string;
|
|
222
|
+
} & import("json-schema").JSONSchema7))[];
|
|
223
|
+
} & import("json-schema").JSONSchema7);
|
|
224
|
+
} | {
|
|
225
|
+
id: string;
|
|
226
|
+
type: "exit";
|
|
227
|
+
alias?: string | undefined;
|
|
228
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
229
|
+
} | {
|
|
230
|
+
id: string;
|
|
231
|
+
type: "comment";
|
|
232
|
+
text: string;
|
|
233
|
+
alias?: string | undefined;
|
|
234
|
+
})[];
|
|
235
|
+
edges: {
|
|
236
|
+
id: string;
|
|
237
|
+
source: string;
|
|
238
|
+
sourceHandle: string | null;
|
|
239
|
+
target: string;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
references?: {
|
|
243
|
+
id: string;
|
|
244
|
+
options: {
|
|
245
|
+
maxExecutions: number;
|
|
246
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
247
|
+
};
|
|
248
|
+
tree: {
|
|
249
|
+
nodes: ({
|
|
250
|
+
id: string;
|
|
251
|
+
type: "entry";
|
|
252
|
+
alias?: string | undefined;
|
|
253
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
254
|
+
} | {
|
|
255
|
+
outputs: {
|
|
256
|
+
name: string | null;
|
|
257
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
258
|
+
}[];
|
|
259
|
+
id: string;
|
|
260
|
+
type: "service";
|
|
261
|
+
alias?: string | undefined;
|
|
262
|
+
inputSchema: {
|
|
263
|
+
type: "null";
|
|
264
|
+
} | ({
|
|
265
|
+
type: "object";
|
|
266
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
267
|
+
$ref: string;
|
|
268
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
269
|
+
oneOf: ({
|
|
270
|
+
type: "null";
|
|
271
|
+
} | ({
|
|
272
|
+
type: "object";
|
|
273
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
274
|
+
$ref: string;
|
|
275
|
+
} & import("json-schema").JSONSchema7))[];
|
|
276
|
+
} & import("json-schema").JSONSchema7);
|
|
277
|
+
name: string;
|
|
278
|
+
version: string;
|
|
279
|
+
configuration?: any;
|
|
280
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
281
|
+
ttl?: number | undefined;
|
|
282
|
+
retry: number;
|
|
283
|
+
retryDelay?: number | undefined;
|
|
284
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
285
|
+
privileged: boolean;
|
|
286
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
287
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
288
|
+
configurationServices?: {
|
|
289
|
+
outputs: {
|
|
290
|
+
name: string | null;
|
|
291
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
292
|
+
}[];
|
|
293
|
+
id: string;
|
|
294
|
+
type: "service";
|
|
295
|
+
alias?: string | undefined;
|
|
296
|
+
inputSchema: {
|
|
297
|
+
type: "null";
|
|
298
|
+
} | ({
|
|
299
|
+
type: "object";
|
|
300
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
301
|
+
$ref: string;
|
|
302
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
303
|
+
oneOf: ({
|
|
304
|
+
type: "null";
|
|
305
|
+
} | ({
|
|
306
|
+
type: "object";
|
|
307
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
308
|
+
$ref: string;
|
|
309
|
+
} & import("json-schema").JSONSchema7))[];
|
|
310
|
+
} & import("json-schema").JSONSchema7);
|
|
311
|
+
name: string;
|
|
312
|
+
version: string;
|
|
313
|
+
configuration?: any;
|
|
314
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
315
|
+
ttl?: number | undefined;
|
|
316
|
+
retry: number;
|
|
317
|
+
retryDelay?: number | undefined;
|
|
318
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
319
|
+
privileged: boolean;
|
|
320
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
321
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
322
|
+
configurationServices?: any[] | undefined;
|
|
323
|
+
}[] | undefined;
|
|
324
|
+
} | {
|
|
325
|
+
outputs: {
|
|
326
|
+
name: string | null;
|
|
327
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
328
|
+
}[];
|
|
329
|
+
id: string;
|
|
330
|
+
type: "logic";
|
|
331
|
+
alias?: string | undefined;
|
|
332
|
+
script: string;
|
|
333
|
+
concurrency: boolean;
|
|
334
|
+
language: "javascript" | "python" | "typescript";
|
|
335
|
+
maxExecutionTime: number;
|
|
336
|
+
} | {
|
|
337
|
+
id: string;
|
|
338
|
+
type: "or";
|
|
339
|
+
alias?: string | undefined;
|
|
340
|
+
} | {
|
|
341
|
+
outputs: {
|
|
342
|
+
name: string | null;
|
|
343
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
344
|
+
}[];
|
|
345
|
+
id: string;
|
|
346
|
+
type: "reference";
|
|
347
|
+
alias?: string | undefined;
|
|
348
|
+
reference: string;
|
|
349
|
+
enabled: boolean;
|
|
350
|
+
inputSchema: {
|
|
351
|
+
type: "null";
|
|
352
|
+
} | ({
|
|
353
|
+
type: "object";
|
|
354
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
355
|
+
$ref: string;
|
|
356
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
357
|
+
oneOf: ({
|
|
358
|
+
type: "null";
|
|
359
|
+
} | ({
|
|
360
|
+
type: "object";
|
|
361
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
362
|
+
$ref: string;
|
|
363
|
+
} & import("json-schema").JSONSchema7))[];
|
|
364
|
+
} & import("json-schema").JSONSchema7);
|
|
365
|
+
} | {
|
|
366
|
+
id: string;
|
|
367
|
+
type: "exit";
|
|
368
|
+
alias?: string | undefined;
|
|
369
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
370
|
+
} | {
|
|
371
|
+
id: string;
|
|
372
|
+
type: "comment";
|
|
373
|
+
text: string;
|
|
374
|
+
alias?: string | undefined;
|
|
375
|
+
})[];
|
|
376
|
+
edges: {
|
|
377
|
+
id: string;
|
|
378
|
+
source: string;
|
|
379
|
+
sourceHandle: string | null;
|
|
380
|
+
target: string;
|
|
381
|
+
}[];
|
|
382
|
+
};
|
|
383
|
+
}[] | undefined;
|
|
384
|
+
schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
|
|
385
|
+
};
|
|
386
|
+
}, {
|
|
387
|
+
type: "CREATE";
|
|
388
|
+
treeList: {
|
|
389
|
+
tree: {
|
|
390
|
+
nodes: any[];
|
|
391
|
+
edges: any[];
|
|
392
|
+
};
|
|
393
|
+
references?: any[] | undefined;
|
|
394
|
+
schemas?: Record<string, any> | undefined;
|
|
395
|
+
};
|
|
396
|
+
input?: any;
|
|
397
|
+
options: {
|
|
398
|
+
maxExecutions: number;
|
|
399
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
400
|
+
priority: number;
|
|
401
|
+
uploadUrl?: string | undefined;
|
|
402
|
+
streamUrl?: string | undefined;
|
|
403
|
+
maxPayloadSize?: number | undefined;
|
|
404
|
+
maxFileSize?: number | undefined;
|
|
405
|
+
continuous: {
|
|
406
|
+
maxReconnects: number;
|
|
407
|
+
};
|
|
408
|
+
referencedBy?: {
|
|
409
|
+
rootTaskId: string;
|
|
410
|
+
taskId: string;
|
|
411
|
+
nodeId: string;
|
|
412
|
+
messageId: string;
|
|
413
|
+
epoch?: string | undefined;
|
|
414
|
+
} | undefined;
|
|
415
|
+
};
|
|
416
|
+
}>>;
|
|
417
|
+
/**
|
|
418
|
+
* The same command, for a tree parser that yields to the event loop (#134).
|
|
419
|
+
*
|
|
420
|
+
* A separate factory rather than one that takes either kind, because the two
|
|
421
|
+
* cannot share a call site: zod only awaits a transform whose RETURN is a
|
|
422
|
+
* promise, so the async arm has to be an `async` transform — and that makes the
|
|
423
|
+
* whole schema `parseAsync`-only, which the sync side must not become. Both
|
|
424
|
+
* memoizing callers are on this arm now (#138 moved `task-builder` over, which
|
|
425
|
+
* cost it nothing: `publishTask` was already `async`); the sync arm is the
|
|
426
|
+
* `commandSchema` union and anyone validating a CREATE without a cache. What
|
|
427
|
+
* they share is everything that defines the command: one envelope, one
|
|
428
|
+
* validation input.
|
|
429
|
+
*/
|
|
430
|
+
export declare function createCommandSchemaWithAsync(parseTreeList: (treeList: InputTreeList) => Promise<TreeList>): z.ZodPipe<z.ZodObject<{
|
|
431
|
+
type: z.ZodLiteral<"CREATE">;
|
|
432
|
+
treeList: z.ZodObject<{
|
|
433
|
+
tree: z.ZodObject<{
|
|
434
|
+
nodes: z.ZodArray<z.ZodAny>;
|
|
435
|
+
edges: z.ZodArray<z.ZodAny>;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
438
|
+
schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
441
|
+
options: z.ZodObject<{
|
|
442
|
+
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
443
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
444
|
+
CONTINUOUS: "CONTINUOUS";
|
|
445
|
+
LINEAR: "LINEAR";
|
|
446
|
+
}>>;
|
|
447
|
+
priority: z.ZodDefault<z.ZodInt>;
|
|
448
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
449
|
+
streamUrl: z.ZodOptional<z.ZodString>;
|
|
450
|
+
maxPayloadSize: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
continuous: z.ZodDefault<z.ZodObject<{
|
|
453
|
+
maxReconnects: z.ZodDefault<z.ZodNumber>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
rootTaskId: z.ZodUUID;
|
|
457
|
+
taskId: z.ZodUUID;
|
|
458
|
+
nodeId: z.ZodUUID;
|
|
459
|
+
messageId: z.ZodUUID;
|
|
460
|
+
epoch: z.ZodOptional<z.ZodUUID>;
|
|
461
|
+
}, z.core.$strip>>;
|
|
462
|
+
}, z.core.$strip>;
|
|
463
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
464
|
+
type: "CREATE";
|
|
465
|
+
input?: any;
|
|
466
|
+
options: {
|
|
467
|
+
maxExecutions: number;
|
|
468
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
469
|
+
priority: number;
|
|
470
|
+
uploadUrl?: string | undefined;
|
|
471
|
+
streamUrl?: string | undefined;
|
|
472
|
+
maxPayloadSize?: number | undefined;
|
|
473
|
+
maxFileSize?: number | undefined;
|
|
474
|
+
continuous: {
|
|
475
|
+
maxReconnects: number;
|
|
476
|
+
};
|
|
477
|
+
referencedBy?: {
|
|
478
|
+
rootTaskId: string;
|
|
479
|
+
taskId: string;
|
|
480
|
+
nodeId: string;
|
|
481
|
+
messageId: string;
|
|
482
|
+
epoch?: string | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
};
|
|
485
|
+
treeList: {
|
|
486
|
+
tree: {
|
|
487
|
+
nodes: ({
|
|
488
|
+
id: string;
|
|
489
|
+
type: "entry";
|
|
490
|
+
alias?: string | undefined;
|
|
491
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
492
|
+
} | {
|
|
493
|
+
outputs: {
|
|
494
|
+
name: string | null;
|
|
495
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
496
|
+
}[];
|
|
497
|
+
id: string;
|
|
498
|
+
type: "service";
|
|
499
|
+
alias?: string | undefined;
|
|
500
|
+
inputSchema: {
|
|
501
|
+
type: "null";
|
|
502
|
+
} | ({
|
|
503
|
+
type: "object";
|
|
504
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
505
|
+
$ref: string;
|
|
506
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
507
|
+
oneOf: ({
|
|
508
|
+
type: "null";
|
|
509
|
+
} | ({
|
|
510
|
+
type: "object";
|
|
511
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
512
|
+
$ref: string;
|
|
513
|
+
} & import("json-schema").JSONSchema7))[];
|
|
514
|
+
} & import("json-schema").JSONSchema7);
|
|
515
|
+
name: string;
|
|
516
|
+
version: string;
|
|
517
|
+
configuration?: any;
|
|
518
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
519
|
+
ttl?: number | undefined;
|
|
520
|
+
retry: number;
|
|
521
|
+
retryDelay?: number | undefined;
|
|
522
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
523
|
+
privileged: boolean;
|
|
524
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
525
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
526
|
+
configurationServices?: {
|
|
527
|
+
outputs: {
|
|
528
|
+
name: string | null;
|
|
529
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
530
|
+
}[];
|
|
531
|
+
id: string;
|
|
532
|
+
type: "service";
|
|
533
|
+
alias?: string | undefined;
|
|
534
|
+
inputSchema: {
|
|
535
|
+
type: "null";
|
|
536
|
+
} | ({
|
|
537
|
+
type: "object";
|
|
538
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
539
|
+
$ref: string;
|
|
540
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
541
|
+
oneOf: ({
|
|
542
|
+
type: "null";
|
|
543
|
+
} | ({
|
|
544
|
+
type: "object";
|
|
545
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
546
|
+
$ref: string;
|
|
547
|
+
} & import("json-schema").JSONSchema7))[];
|
|
548
|
+
} & import("json-schema").JSONSchema7);
|
|
549
|
+
name: string;
|
|
550
|
+
version: string;
|
|
551
|
+
configuration?: any;
|
|
552
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
553
|
+
ttl?: number | undefined;
|
|
554
|
+
retry: number;
|
|
555
|
+
retryDelay?: number | undefined;
|
|
556
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
557
|
+
privileged: boolean;
|
|
558
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
559
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
560
|
+
configurationServices?: /*elided*/ any[] | undefined;
|
|
561
|
+
}[] | undefined;
|
|
562
|
+
} | {
|
|
563
|
+
outputs: {
|
|
564
|
+
name: string | null;
|
|
565
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
566
|
+
}[];
|
|
567
|
+
id: string;
|
|
568
|
+
type: "logic";
|
|
569
|
+
alias?: string | undefined;
|
|
570
|
+
script: string;
|
|
571
|
+
concurrency: boolean;
|
|
572
|
+
language: "javascript" | "python" | "typescript";
|
|
573
|
+
maxExecutionTime: number;
|
|
574
|
+
} | {
|
|
575
|
+
id: string;
|
|
576
|
+
type: "or";
|
|
577
|
+
alias?: string | undefined;
|
|
578
|
+
} | {
|
|
579
|
+
outputs: {
|
|
580
|
+
name: string | null;
|
|
581
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
582
|
+
}[];
|
|
583
|
+
id: string;
|
|
584
|
+
type: "reference";
|
|
585
|
+
alias?: string | undefined;
|
|
586
|
+
reference: string;
|
|
587
|
+
enabled: boolean;
|
|
588
|
+
inputSchema: {
|
|
589
|
+
type: "null";
|
|
590
|
+
} | ({
|
|
591
|
+
type: "object";
|
|
592
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
593
|
+
$ref: string;
|
|
594
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
595
|
+
oneOf: ({
|
|
596
|
+
type: "null";
|
|
597
|
+
} | ({
|
|
598
|
+
type: "object";
|
|
599
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
600
|
+
$ref: string;
|
|
601
|
+
} & import("json-schema").JSONSchema7))[];
|
|
602
|
+
} & import("json-schema").JSONSchema7);
|
|
603
|
+
} | {
|
|
604
|
+
id: string;
|
|
605
|
+
type: "exit";
|
|
606
|
+
alias?: string | undefined;
|
|
607
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
608
|
+
} | {
|
|
609
|
+
id: string;
|
|
610
|
+
type: "comment";
|
|
611
|
+
text: string;
|
|
612
|
+
alias?: string | undefined;
|
|
613
|
+
})[];
|
|
614
|
+
edges: {
|
|
615
|
+
id: string;
|
|
616
|
+
source: string;
|
|
617
|
+
sourceHandle: string | null;
|
|
618
|
+
target: string;
|
|
619
|
+
}[];
|
|
620
|
+
};
|
|
621
|
+
references?: {
|
|
622
|
+
id: string;
|
|
623
|
+
options: {
|
|
624
|
+
maxExecutions: number;
|
|
625
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
626
|
+
};
|
|
627
|
+
tree: {
|
|
628
|
+
nodes: ({
|
|
629
|
+
id: string;
|
|
630
|
+
type: "entry";
|
|
631
|
+
alias?: string | undefined;
|
|
632
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
633
|
+
} | {
|
|
634
|
+
outputs: {
|
|
635
|
+
name: string | null;
|
|
636
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
637
|
+
}[];
|
|
638
|
+
id: string;
|
|
639
|
+
type: "service";
|
|
640
|
+
alias?: string | undefined;
|
|
641
|
+
inputSchema: {
|
|
642
|
+
type: "null";
|
|
643
|
+
} | ({
|
|
644
|
+
type: "object";
|
|
645
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
646
|
+
$ref: string;
|
|
647
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
648
|
+
oneOf: ({
|
|
649
|
+
type: "null";
|
|
650
|
+
} | ({
|
|
651
|
+
type: "object";
|
|
652
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
653
|
+
$ref: string;
|
|
654
|
+
} & import("json-schema").JSONSchema7))[];
|
|
655
|
+
} & import("json-schema").JSONSchema7);
|
|
656
|
+
name: string;
|
|
657
|
+
version: string;
|
|
658
|
+
configuration?: any;
|
|
659
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
660
|
+
ttl?: number | undefined;
|
|
661
|
+
retry: number;
|
|
662
|
+
retryDelay?: number | undefined;
|
|
663
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
664
|
+
privileged: boolean;
|
|
665
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
666
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
667
|
+
configurationServices?: {
|
|
668
|
+
outputs: {
|
|
669
|
+
name: string | null;
|
|
670
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
671
|
+
}[];
|
|
672
|
+
id: string;
|
|
673
|
+
type: "service";
|
|
674
|
+
alias?: string | undefined;
|
|
675
|
+
inputSchema: {
|
|
676
|
+
type: "null";
|
|
677
|
+
} | ({
|
|
678
|
+
type: "object";
|
|
679
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
680
|
+
$ref: string;
|
|
681
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
682
|
+
oneOf: ({
|
|
683
|
+
type: "null";
|
|
684
|
+
} | ({
|
|
685
|
+
type: "object";
|
|
686
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
687
|
+
$ref: string;
|
|
688
|
+
} & import("json-schema").JSONSchema7))[];
|
|
689
|
+
} & import("json-schema").JSONSchema7);
|
|
690
|
+
name: string;
|
|
691
|
+
version: string;
|
|
692
|
+
configuration?: any;
|
|
693
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
694
|
+
ttl?: number | undefined;
|
|
695
|
+
retry: number;
|
|
696
|
+
retryDelay?: number | undefined;
|
|
697
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
698
|
+
privileged: boolean;
|
|
699
|
+
wireCodec?: "json" | "msgpack" | undefined;
|
|
700
|
+
wireCodecReason?: "fleet-capable" | "missing-capability" | "no-replicas" | "presence-unavailable" | "replicas-unaccounted" | undefined;
|
|
701
|
+
configurationServices?: any[] | undefined;
|
|
702
|
+
}[] | undefined;
|
|
703
|
+
} | {
|
|
704
|
+
outputs: {
|
|
705
|
+
name: string | null;
|
|
706
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
707
|
+
}[];
|
|
708
|
+
id: string;
|
|
709
|
+
type: "logic";
|
|
710
|
+
alias?: string | undefined;
|
|
711
|
+
script: string;
|
|
712
|
+
concurrency: boolean;
|
|
713
|
+
language: "javascript" | "python" | "typescript";
|
|
714
|
+
maxExecutionTime: number;
|
|
715
|
+
} | {
|
|
716
|
+
id: string;
|
|
717
|
+
type: "or";
|
|
718
|
+
alias?: string | undefined;
|
|
719
|
+
} | {
|
|
720
|
+
outputs: {
|
|
721
|
+
name: string | null;
|
|
722
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
723
|
+
}[];
|
|
724
|
+
id: string;
|
|
725
|
+
type: "reference";
|
|
726
|
+
alias?: string | undefined;
|
|
727
|
+
reference: string;
|
|
728
|
+
enabled: boolean;
|
|
729
|
+
inputSchema: {
|
|
730
|
+
type: "null";
|
|
731
|
+
} | ({
|
|
732
|
+
type: "object";
|
|
733
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
734
|
+
$ref: string;
|
|
735
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
736
|
+
oneOf: ({
|
|
737
|
+
type: "null";
|
|
738
|
+
} | ({
|
|
739
|
+
type: "object";
|
|
740
|
+
} & import("json-schema").JSONSchema7) | ({
|
|
741
|
+
$ref: string;
|
|
742
|
+
} & import("json-schema").JSONSchema7))[];
|
|
743
|
+
} & import("json-schema").JSONSchema7);
|
|
744
|
+
} | {
|
|
745
|
+
id: string;
|
|
746
|
+
type: "exit";
|
|
747
|
+
alias?: string | undefined;
|
|
748
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
749
|
+
} | {
|
|
750
|
+
id: string;
|
|
751
|
+
type: "comment";
|
|
752
|
+
text: string;
|
|
753
|
+
alias?: string | undefined;
|
|
754
|
+
})[];
|
|
755
|
+
edges: {
|
|
756
|
+
id: string;
|
|
757
|
+
source: string;
|
|
758
|
+
sourceHandle: string | null;
|
|
759
|
+
target: string;
|
|
760
|
+
}[];
|
|
761
|
+
};
|
|
762
|
+
}[] | undefined;
|
|
763
|
+
schemas?: Record<string, import("json-schema").JSONSchema7> | undefined;
|
|
764
|
+
};
|
|
765
|
+
}, {
|
|
766
|
+
type: "CREATE";
|
|
767
|
+
treeList: {
|
|
768
|
+
tree: {
|
|
769
|
+
nodes: any[];
|
|
770
|
+
edges: any[];
|
|
771
|
+
};
|
|
772
|
+
references?: any[] | undefined;
|
|
773
|
+
schemas?: Record<string, any> | undefined;
|
|
774
|
+
};
|
|
775
|
+
input?: any;
|
|
776
|
+
options: {
|
|
777
|
+
maxExecutions: number;
|
|
778
|
+
mode: "CONTINUOUS" | "LINEAR";
|
|
779
|
+
priority: number;
|
|
780
|
+
uploadUrl?: string | undefined;
|
|
781
|
+
streamUrl?: string | undefined;
|
|
782
|
+
maxPayloadSize?: number | undefined;
|
|
783
|
+
maxFileSize?: number | undefined;
|
|
784
|
+
continuous: {
|
|
785
|
+
maxReconnects: number;
|
|
786
|
+
};
|
|
787
|
+
referencedBy?: {
|
|
788
|
+
rootTaskId: string;
|
|
789
|
+
taskId: string;
|
|
790
|
+
nodeId: string;
|
|
791
|
+
messageId: string;
|
|
792
|
+
epoch?: string | undefined;
|
|
793
|
+
} | undefined;
|
|
794
|
+
};
|
|
795
|
+
}>>;
|
|
7
796
|
export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
8
797
|
type: z.ZodLiteral<"CREATE">;
|
|
9
798
|
treeList: z.ZodObject<{
|
|
@@ -14,7 +803,7 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
14
803
|
references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
15
804
|
schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
16
805
|
}, z.core.$strip>;
|
|
17
|
-
input: z.ZodAny
|
|
806
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
18
807
|
options: z.ZodObject<{
|
|
19
808
|
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
20
809
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -39,7 +828,7 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
39
828
|
}, z.core.$strip>;
|
|
40
829
|
}, z.core.$strip>, z.ZodTransform<{
|
|
41
830
|
type: "CREATE";
|
|
42
|
-
input
|
|
831
|
+
input?: any;
|
|
43
832
|
options: {
|
|
44
833
|
maxExecutions: number;
|
|
45
834
|
mode: "CONTINUOUS" | "LINEAR";
|
|
@@ -349,7 +1138,7 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
349
1138
|
references?: any[] | undefined;
|
|
350
1139
|
schemas?: Record<string, any> | undefined;
|
|
351
1140
|
};
|
|
352
|
-
input
|
|
1141
|
+
input?: any;
|
|
353
1142
|
options: {
|
|
354
1143
|
maxExecutions: number;
|
|
355
1144
|
mode: "CONTINUOUS" | "LINEAR";
|
|
@@ -371,9 +1160,54 @@ export declare const createCommandSchema: z.ZodPipe<z.ZodObject<{
|
|
|
371
1160
|
};
|
|
372
1161
|
}>>;
|
|
373
1162
|
export type CreateCommand = z.infer<typeof createCommandSchema>;
|
|
1163
|
+
/**
|
|
1164
|
+
* A viewer drove a service-provided surface (#104).
|
|
1165
|
+
*
|
|
1166
|
+
* A command rather than a result, because there is no service process behind a
|
|
1167
|
+
* click: ui/backend holds no capability of the service's, opens no connection on
|
|
1168
|
+
* its behalf and composes no service-protocol message — it forwards *which
|
|
1169
|
+
* handler, with what*, and the operator publishes the invocation. It travels the
|
|
1170
|
+
* one channel ui/backend already has to the operator, so it hashes onto the
|
|
1171
|
+
* task's own shard and cannot overtake or be overtaken by that task's other
|
|
1172
|
+
* commands (knowledge/task-sharding.md).
|
|
1173
|
+
*
|
|
1174
|
+
* `nodeId` — not a message id — is what names the service the handler belongs
|
|
1175
|
+
* to. The pair `(name, version)` is read off the node, and the node is the only
|
|
1176
|
+
* one of the two that a **durable** handler can still be resolved through: it
|
|
1177
|
+
* outlives the message that published the render, which is the whole point of
|
|
1178
|
+
* being durable.
|
|
1179
|
+
*
|
|
1180
|
+
* The handler reference travels verbatim, exactly as the render carried it out
|
|
1181
|
+
* (#103): its `lifetime` is what decides whether the operator publishes to the
|
|
1182
|
+
* version's handler queue or to one connection's backchannel, and the browser
|
|
1183
|
+
* never sees either — it names a props path, and ui/backend resolves it against
|
|
1184
|
+
* what it stored.
|
|
1185
|
+
*/
|
|
1186
|
+
export declare const invokeSurfaceHandlerCommandSchema: z.ZodObject<{
|
|
1187
|
+
type: z.ZodLiteral<"INVOKE_SURFACE_HANDLER">;
|
|
1188
|
+
nodeId: z.ZodUUID;
|
|
1189
|
+
surface: z.ZodUUID;
|
|
1190
|
+
handler: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1191
|
+
__REQUENCE_type: z.ZodLiteral<"RequenceHandler">;
|
|
1192
|
+
lifetime: z.ZodLiteral<"durable">;
|
|
1193
|
+
uiId: z.ZodString;
|
|
1194
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
1195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1196
|
+
__REQUENCE_type: z.ZodLiteral<"RequenceHandler">;
|
|
1197
|
+
lifetime: z.ZodLiteral<"connection">;
|
|
1198
|
+
uiId: z.ZodString;
|
|
1199
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
1200
|
+
connectionId: z.ZodString;
|
|
1201
|
+
handlerId: z.ZodUUID;
|
|
1202
|
+
}, z.core.$strip>], "lifetime">;
|
|
1203
|
+
arg: z.ZodOptional<z.ZodUnknown>;
|
|
1204
|
+
}, z.core.$strip>;
|
|
1205
|
+
export type InvokeSurfaceHandlerCommand = z.infer<typeof invokeSurfaceHandlerCommandSchema>;
|
|
374
1206
|
export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
375
1207
|
type: z.ZodLiteral<"ABORT">;
|
|
376
1208
|
reason: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1210
|
+
type: z.ZodLiteral<"RECONCILE">;
|
|
377
1211
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
378
1212
|
type: z.ZodLiteral<"CREATE">;
|
|
379
1213
|
treeList: z.ZodObject<{
|
|
@@ -384,7 +1218,7 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
384
1218
|
references: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
385
1219
|
schemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
386
1220
|
}, z.core.$strip>;
|
|
387
|
-
input: z.ZodAny
|
|
1221
|
+
input: z.ZodOptional<z.ZodAny>;
|
|
388
1222
|
options: z.ZodObject<{
|
|
389
1223
|
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
390
1224
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
@@ -409,7 +1243,7 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
409
1243
|
}, z.core.$strip>;
|
|
410
1244
|
}, z.core.$strip>, z.ZodTransform<{
|
|
411
1245
|
type: "CREATE";
|
|
412
|
-
input
|
|
1246
|
+
input?: any;
|
|
413
1247
|
options: {
|
|
414
1248
|
maxExecutions: number;
|
|
415
1249
|
mode: "CONTINUOUS" | "LINEAR";
|
|
@@ -719,7 +1553,7 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
719
1553
|
references?: any[] | undefined;
|
|
720
1554
|
schemas?: Record<string, any> | undefined;
|
|
721
1555
|
};
|
|
722
|
-
input
|
|
1556
|
+
input?: any;
|
|
723
1557
|
options: {
|
|
724
1558
|
maxExecutions: number;
|
|
725
1559
|
mode: "CONTINUOUS" | "LINEAR";
|
|
@@ -739,7 +1573,25 @@ export declare const commandSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
739
1573
|
epoch?: string | undefined;
|
|
740
1574
|
} | undefined;
|
|
741
1575
|
};
|
|
742
|
-
}
|
|
1576
|
+
}>>, z.ZodObject<{
|
|
1577
|
+
type: z.ZodLiteral<"INVOKE_SURFACE_HANDLER">;
|
|
1578
|
+
nodeId: z.ZodUUID;
|
|
1579
|
+
surface: z.ZodUUID;
|
|
1580
|
+
handler: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1581
|
+
__REQUENCE_type: z.ZodLiteral<"RequenceHandler">;
|
|
1582
|
+
lifetime: z.ZodLiteral<"durable">;
|
|
1583
|
+
uiId: z.ZodString;
|
|
1584
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
1585
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1586
|
+
__REQUENCE_type: z.ZodLiteral<"RequenceHandler">;
|
|
1587
|
+
lifetime: z.ZodLiteral<"connection">;
|
|
1588
|
+
uiId: z.ZodString;
|
|
1589
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
1590
|
+
connectionId: z.ZodString;
|
|
1591
|
+
handlerId: z.ZodUUID;
|
|
1592
|
+
}, z.core.$strip>], "lifetime">;
|
|
1593
|
+
arg: z.ZodOptional<z.ZodUnknown>;
|
|
1594
|
+
}, z.core.$strip>]>;
|
|
743
1595
|
export type Command = z.infer<typeof commandSchema>;
|
|
744
1596
|
export type CommandInput = z.input<typeof commandSchema>;
|
|
745
1597
|
//# sourceMappingURL=command.d.ts.map
|