optio-contracts 0.7.1 → 0.7.2
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/README.md +2 -1
- package/dist/api-to-frontend.d.ts +281 -11
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +17 -1
- package/dist/api-to-frontend.js.map +1 -1
- package/dist/engine-failure-reasons.d.ts +1 -1
- package/dist/engine-failure-reasons.d.ts.map +1 -1
- package/dist/engine-failure-reasons.js +4 -0
- package/dist/engine-failure-reasons.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +169 -11
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +11 -2
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/route-error-reasons.d.ts +1 -1
- package/dist/schemas/process.d.ts +26 -0
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +13 -0
- package/dist/schemas/process.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-to-frontend.d.ts","sourceRoot":"","sources":["../src/api-to-frontend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,2IAQpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIlF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAW1E,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"api-to-frontend.d.ts","sourceRoot":"","sources":["../src/api-to-frontend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgL5B,CAAC;AAQH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC"}
|
package/dist/api-to-frontend.js
CHANGED
|
@@ -78,6 +78,19 @@ export const processesContract = c.router({
|
|
|
78
78
|
},
|
|
79
79
|
summary: 'Get single process',
|
|
80
80
|
},
|
|
81
|
+
getResult: {
|
|
82
|
+
method: 'GET',
|
|
83
|
+
path: '/processes/:id/result',
|
|
84
|
+
pathParams: z.object({ id: ProcessIdParamSchema }),
|
|
85
|
+
query: InstanceQuerySchema,
|
|
86
|
+
responses: {
|
|
87
|
+
// The file's bytes, its own Content-Type (the record's result.contentType).
|
|
88
|
+
200: c.otherResponse({ contentType: 'application/octet-stream', body: z.unknown() }),
|
|
89
|
+
// not-found also answers a process the request may not see (visibility).
|
|
90
|
+
404: z.object({ reason: z.enum(['not-found', 'no-result']), message: z.string() }),
|
|
91
|
+
},
|
|
92
|
+
summary: 'Download a process\'s result file',
|
|
93
|
+
},
|
|
81
94
|
getTree: {
|
|
82
95
|
method: 'GET',
|
|
83
96
|
path: '/processes/:id/tree',
|
|
@@ -151,6 +164,8 @@ export const processesContract = c.router({
|
|
|
151
164
|
sessionId: z.string().nullable().optional(),
|
|
152
165
|
// A task factory's parameter values; the answer is the child's record.
|
|
153
166
|
params: z.record(z.unknown()).optional(),
|
|
167
|
+
// Overrides the factory's default retention of the launch's record.
|
|
168
|
+
ephemeral: z.boolean().optional(),
|
|
154
169
|
}).optional(),
|
|
155
170
|
responses: {
|
|
156
171
|
200: ProcessSchema,
|
|
@@ -180,7 +195,8 @@ export const processesContract = c.router({
|
|
|
180
195
|
query: InstanceQuerySchema,
|
|
181
196
|
body: c.noBody(),
|
|
182
197
|
responses: {
|
|
183
|
-
|
|
198
|
+
// null when dismissing deleted the record (an ended factory launch).
|
|
199
|
+
200: ProcessSchema.nullable(),
|
|
184
200
|
404: DismissErrorBody,
|
|
185
201
|
409: DismissErrorBody,
|
|
186
202
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-to-frontend.js","sourceRoot":"","sources":["../src/api-to-frontend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,WAAW,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACxI,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtJ,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErI,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;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AAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACvC;QACD,OAAO,EAAE,6BAA6B;KACvC;CACF,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE;QACT,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE;YACT,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;SACtD;QACD,OAAO,EAAE,kDAAkD;KAC5D;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const LaunchFailureReason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
|
|
2
|
+
export declare const LaunchFailureReason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
|
|
3
3
|
export declare const CancelFailureReason: z.ZodEnum<["not-found", "not-cancellable"]>;
|
|
4
4
|
export declare const DismissFailureReason: z.ZodEnum<["not-found", "not-dismissable"]>;
|
|
5
5
|
export declare const ResurrectFailureReason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-failure-reasons.d.ts","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"engine-failure-reasons.d.ts","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,sLAgB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAG/B,CAAC;AAEH,eAAO,MAAM,sBAAsB,mIAOjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,8CAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B,+BAErC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -17,6 +17,10 @@ export const LaunchFailureReason = z.enum([
|
|
|
17
17
|
'parameters-required',
|
|
18
18
|
'not-a-factory',
|
|
19
19
|
'invalid-parameters',
|
|
20
|
+
// A factory launch's stamp (`metadata`) with keys of the factory's own
|
|
21
|
+
// metadata (with `task_for`, the instance's too) or the reserved
|
|
22
|
+
// `taskFactory` (the message names them).
|
|
23
|
+
'invalid-metadata',
|
|
20
24
|
]);
|
|
21
25
|
export const CancelFailureReason = z.enum([
|
|
22
26
|
'not-found',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-failure-reasons.js","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,qEAAqE;AACrE,2EAA2E;AAC3E,+EAA+E;AAC/E,6EAA6E;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,wEAAwE;IACxE,qEAAqE;IACrE,gDAAgD;IAChD,qBAAqB;IACrB,eAAe;IACf,oBAAoB;
|
|
1
|
+
{"version":3,"file":"engine-failure-reasons.js","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,qEAAqE;AACrE,2EAA2E;AAC3E,+EAA+E;AAC/E,6EAA6E;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,wEAAwE;IACxE,qEAAqE;IACrE,gDAAgD;IAChD,qBAAqB;IACrB,eAAe;IACf,oBAAoB;IACpB,uEAAuE;IACvE,iEAAiE;IACjE,0CAA0C;IAC1C,kBAAkB;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,WAAW;IACX,mBAAmB;IACnB,sBAAsB;IACtB,uBAAuB;IACvB,gBAAgB;IAChB,eAAe;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,+BAA+B;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,gBAAgB;CACjB,CAAC,CAAC"}
|
|
@@ -5,16 +5,22 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
5
5
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
7
7
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
8
10
|
}, "strip", z.ZodTypeAny, {
|
|
9
11
|
processId: string;
|
|
10
12
|
sessionId: string | null;
|
|
11
13
|
params?: Record<string, unknown> | undefined;
|
|
14
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
12
15
|
resume?: boolean | undefined;
|
|
16
|
+
ephemeral?: boolean | undefined;
|
|
13
17
|
}, {
|
|
14
18
|
processId: string;
|
|
15
19
|
sessionId: string | null;
|
|
16
20
|
params?: Record<string, unknown> | undefined;
|
|
21
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
17
22
|
resume?: boolean | undefined;
|
|
23
|
+
ephemeral?: boolean | undefined;
|
|
18
24
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
19
25
|
ok: z.ZodLiteral<true>;
|
|
20
26
|
process: z.ZodObject<{
|
|
@@ -82,10 +88,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
82
88
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
83
89
|
data?: Record<string, unknown> | undefined;
|
|
84
90
|
}>, "many">;
|
|
91
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
filename: z.ZodString;
|
|
93
|
+
contentType: z.ZodString;
|
|
94
|
+
size: z.ZodNumber;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
filename: string;
|
|
97
|
+
contentType: string;
|
|
98
|
+
size: number;
|
|
99
|
+
}, {
|
|
100
|
+
filename: string;
|
|
101
|
+
contentType: string;
|
|
102
|
+
size: number;
|
|
103
|
+
}>>;
|
|
85
104
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
105
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
87
106
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
88
107
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
108
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
89
109
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
90
110
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
91
111
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -169,10 +189,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
169
189
|
parentId?: string | undefined;
|
|
170
190
|
special?: boolean | undefined;
|
|
171
191
|
description?: string | null | undefined;
|
|
192
|
+
result?: {
|
|
193
|
+
filename: string;
|
|
194
|
+
contentType: string;
|
|
195
|
+
size: number;
|
|
196
|
+
} | undefined;
|
|
172
197
|
uiWidget?: string | null | undefined;
|
|
173
198
|
widgetData?: unknown;
|
|
174
199
|
taskFactory?: boolean | undefined;
|
|
175
200
|
parameters?: unknown[] | undefined;
|
|
201
|
+
ttlSeconds?: number | null | undefined;
|
|
176
202
|
supportsResume?: boolean | undefined;
|
|
177
203
|
hasSavedState?: boolean | undefined;
|
|
178
204
|
supportsResurrect?: boolean | undefined;
|
|
@@ -229,10 +255,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
229
255
|
parentId?: string | undefined;
|
|
230
256
|
special?: boolean | undefined;
|
|
231
257
|
description?: string | null | undefined;
|
|
258
|
+
result?: {
|
|
259
|
+
filename: string;
|
|
260
|
+
contentType: string;
|
|
261
|
+
size: number;
|
|
262
|
+
} | undefined;
|
|
232
263
|
uiWidget?: string | null | undefined;
|
|
233
264
|
widgetData?: unknown;
|
|
234
265
|
taskFactory?: boolean | undefined;
|
|
235
266
|
parameters?: unknown[] | undefined;
|
|
267
|
+
ttlSeconds?: number | null | undefined;
|
|
236
268
|
supportsResume?: boolean | undefined;
|
|
237
269
|
hasSavedState?: boolean | undefined;
|
|
238
270
|
supportsResurrect?: boolean | undefined;
|
|
@@ -292,10 +324,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
292
324
|
parentId?: string | undefined;
|
|
293
325
|
special?: boolean | undefined;
|
|
294
326
|
description?: string | null | undefined;
|
|
327
|
+
result?: {
|
|
328
|
+
filename: string;
|
|
329
|
+
contentType: string;
|
|
330
|
+
size: number;
|
|
331
|
+
} | undefined;
|
|
295
332
|
uiWidget?: string | null | undefined;
|
|
296
333
|
widgetData?: unknown;
|
|
297
334
|
taskFactory?: boolean | undefined;
|
|
298
335
|
parameters?: unknown[] | undefined;
|
|
336
|
+
ttlSeconds?: number | null | undefined;
|
|
299
337
|
supportsResume?: boolean | undefined;
|
|
300
338
|
hasSavedState?: boolean | undefined;
|
|
301
339
|
supportsResurrect?: boolean | undefined;
|
|
@@ -355,10 +393,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
355
393
|
parentId?: string | undefined;
|
|
356
394
|
special?: boolean | undefined;
|
|
357
395
|
description?: string | null | undefined;
|
|
396
|
+
result?: {
|
|
397
|
+
filename: string;
|
|
398
|
+
contentType: string;
|
|
399
|
+
size: number;
|
|
400
|
+
} | undefined;
|
|
358
401
|
uiWidget?: string | null | undefined;
|
|
359
402
|
widgetData?: unknown;
|
|
360
403
|
taskFactory?: boolean | undefined;
|
|
361
404
|
parameters?: unknown[] | undefined;
|
|
405
|
+
ttlSeconds?: number | null | undefined;
|
|
362
406
|
supportsResume?: boolean | undefined;
|
|
363
407
|
hasSavedState?: boolean | undefined;
|
|
364
408
|
supportsResurrect?: boolean | undefined;
|
|
@@ -384,14 +428,14 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
384
428
|
};
|
|
385
429
|
}>, z.ZodObject<{
|
|
386
430
|
ok: z.ZodLiteral<false>;
|
|
387
|
-
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
|
|
431
|
+
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
|
|
388
432
|
message: z.ZodOptional<z.ZodString>;
|
|
389
433
|
}, "strip", z.ZodTypeAny, {
|
|
390
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
|
|
434
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
391
435
|
ok: false;
|
|
392
436
|
message?: string | undefined;
|
|
393
437
|
}, {
|
|
394
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
|
|
438
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
395
439
|
ok: false;
|
|
396
440
|
message?: string | undefined;
|
|
397
441
|
}>]>>;
|
|
@@ -468,10 +512,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
468
512
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
469
513
|
data?: Record<string, unknown> | undefined;
|
|
470
514
|
}>, "many">;
|
|
515
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
filename: z.ZodString;
|
|
517
|
+
contentType: z.ZodString;
|
|
518
|
+
size: z.ZodNumber;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
filename: string;
|
|
521
|
+
contentType: string;
|
|
522
|
+
size: number;
|
|
523
|
+
}, {
|
|
524
|
+
filename: string;
|
|
525
|
+
contentType: string;
|
|
526
|
+
size: number;
|
|
527
|
+
}>>;
|
|
471
528
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
529
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
473
530
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
474
531
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
532
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
475
533
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
476
534
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
477
535
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -555,10 +613,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
555
613
|
parentId?: string | undefined;
|
|
556
614
|
special?: boolean | undefined;
|
|
557
615
|
description?: string | null | undefined;
|
|
616
|
+
result?: {
|
|
617
|
+
filename: string;
|
|
618
|
+
contentType: string;
|
|
619
|
+
size: number;
|
|
620
|
+
} | undefined;
|
|
558
621
|
uiWidget?: string | null | undefined;
|
|
559
622
|
widgetData?: unknown;
|
|
560
623
|
taskFactory?: boolean | undefined;
|
|
561
624
|
parameters?: unknown[] | undefined;
|
|
625
|
+
ttlSeconds?: number | null | undefined;
|
|
562
626
|
supportsResume?: boolean | undefined;
|
|
563
627
|
hasSavedState?: boolean | undefined;
|
|
564
628
|
supportsResurrect?: boolean | undefined;
|
|
@@ -615,10 +679,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
615
679
|
parentId?: string | undefined;
|
|
616
680
|
special?: boolean | undefined;
|
|
617
681
|
description?: string | null | undefined;
|
|
682
|
+
result?: {
|
|
683
|
+
filename: string;
|
|
684
|
+
contentType: string;
|
|
685
|
+
size: number;
|
|
686
|
+
} | undefined;
|
|
618
687
|
uiWidget?: string | null | undefined;
|
|
619
688
|
widgetData?: unknown;
|
|
620
689
|
taskFactory?: boolean | undefined;
|
|
621
690
|
parameters?: unknown[] | undefined;
|
|
691
|
+
ttlSeconds?: number | null | undefined;
|
|
622
692
|
supportsResume?: boolean | undefined;
|
|
623
693
|
hasSavedState?: boolean | undefined;
|
|
624
694
|
supportsResurrect?: boolean | undefined;
|
|
@@ -678,10 +748,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
678
748
|
parentId?: string | undefined;
|
|
679
749
|
special?: boolean | undefined;
|
|
680
750
|
description?: string | null | undefined;
|
|
751
|
+
result?: {
|
|
752
|
+
filename: string;
|
|
753
|
+
contentType: string;
|
|
754
|
+
size: number;
|
|
755
|
+
} | undefined;
|
|
681
756
|
uiWidget?: string | null | undefined;
|
|
682
757
|
widgetData?: unknown;
|
|
683
758
|
taskFactory?: boolean | undefined;
|
|
684
759
|
parameters?: unknown[] | undefined;
|
|
760
|
+
ttlSeconds?: number | null | undefined;
|
|
685
761
|
supportsResume?: boolean | undefined;
|
|
686
762
|
hasSavedState?: boolean | undefined;
|
|
687
763
|
supportsResurrect?: boolean | undefined;
|
|
@@ -741,10 +817,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
741
817
|
parentId?: string | undefined;
|
|
742
818
|
special?: boolean | undefined;
|
|
743
819
|
description?: string | null | undefined;
|
|
820
|
+
result?: {
|
|
821
|
+
filename: string;
|
|
822
|
+
contentType: string;
|
|
823
|
+
size: number;
|
|
824
|
+
} | undefined;
|
|
744
825
|
uiWidget?: string | null | undefined;
|
|
745
826
|
widgetData?: unknown;
|
|
746
827
|
taskFactory?: boolean | undefined;
|
|
747
828
|
parameters?: unknown[] | undefined;
|
|
829
|
+
ttlSeconds?: number | null | undefined;
|
|
748
830
|
supportsResume?: boolean | undefined;
|
|
749
831
|
hasSavedState?: boolean | undefined;
|
|
750
832
|
supportsResurrect?: boolean | undefined;
|
|
@@ -786,7 +868,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
786
868
|
processId: string;
|
|
787
869
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
788
870
|
ok: z.ZodLiteral<true>;
|
|
789
|
-
process: z.ZodObject<{
|
|
871
|
+
process: z.ZodOptional<z.ZodObject<{
|
|
790
872
|
_id: z.ZodString;
|
|
791
873
|
processId: z.ZodString;
|
|
792
874
|
name: z.ZodString;
|
|
@@ -851,10 +933,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
851
933
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
852
934
|
data?: Record<string, unknown> | undefined;
|
|
853
935
|
}>, "many">;
|
|
936
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
937
|
+
filename: z.ZodString;
|
|
938
|
+
contentType: z.ZodString;
|
|
939
|
+
size: z.ZodNumber;
|
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
|
+
filename: string;
|
|
942
|
+
contentType: string;
|
|
943
|
+
size: number;
|
|
944
|
+
}, {
|
|
945
|
+
filename: string;
|
|
946
|
+
contentType: string;
|
|
947
|
+
size: number;
|
|
948
|
+
}>>;
|
|
854
949
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
855
950
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
856
951
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
857
952
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
953
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
858
954
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
859
955
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
860
956
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -938,10 +1034,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
938
1034
|
parentId?: string | undefined;
|
|
939
1035
|
special?: boolean | undefined;
|
|
940
1036
|
description?: string | null | undefined;
|
|
1037
|
+
result?: {
|
|
1038
|
+
filename: string;
|
|
1039
|
+
contentType: string;
|
|
1040
|
+
size: number;
|
|
1041
|
+
} | undefined;
|
|
941
1042
|
uiWidget?: string | null | undefined;
|
|
942
1043
|
widgetData?: unknown;
|
|
943
1044
|
taskFactory?: boolean | undefined;
|
|
944
1045
|
parameters?: unknown[] | undefined;
|
|
1046
|
+
ttlSeconds?: number | null | undefined;
|
|
945
1047
|
supportsResume?: boolean | undefined;
|
|
946
1048
|
hasSavedState?: boolean | undefined;
|
|
947
1049
|
supportsResurrect?: boolean | undefined;
|
|
@@ -998,10 +1100,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
998
1100
|
parentId?: string | undefined;
|
|
999
1101
|
special?: boolean | undefined;
|
|
1000
1102
|
description?: string | null | undefined;
|
|
1103
|
+
result?: {
|
|
1104
|
+
filename: string;
|
|
1105
|
+
contentType: string;
|
|
1106
|
+
size: number;
|
|
1107
|
+
} | undefined;
|
|
1001
1108
|
uiWidget?: string | null | undefined;
|
|
1002
1109
|
widgetData?: unknown;
|
|
1003
1110
|
taskFactory?: boolean | undefined;
|
|
1004
1111
|
parameters?: unknown[] | undefined;
|
|
1112
|
+
ttlSeconds?: number | null | undefined;
|
|
1005
1113
|
supportsResume?: boolean | undefined;
|
|
1006
1114
|
hasSavedState?: boolean | undefined;
|
|
1007
1115
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1024,10 +1132,10 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1024
1132
|
data?: unknown;
|
|
1025
1133
|
})[] | undefined;
|
|
1026
1134
|
originatingSessionId?: string | null | undefined;
|
|
1027
|
-
}
|
|
1135
|
+
}>>;
|
|
1028
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1029
1137
|
ok: true;
|
|
1030
|
-
process
|
|
1138
|
+
process?: {
|
|
1031
1139
|
status: {
|
|
1032
1140
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1033
1141
|
error?: string | undefined;
|
|
@@ -1061,10 +1169,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1061
1169
|
parentId?: string | undefined;
|
|
1062
1170
|
special?: boolean | undefined;
|
|
1063
1171
|
description?: string | null | undefined;
|
|
1172
|
+
result?: {
|
|
1173
|
+
filename: string;
|
|
1174
|
+
contentType: string;
|
|
1175
|
+
size: number;
|
|
1176
|
+
} | undefined;
|
|
1064
1177
|
uiWidget?: string | null | undefined;
|
|
1065
1178
|
widgetData?: unknown;
|
|
1066
1179
|
taskFactory?: boolean | undefined;
|
|
1067
1180
|
parameters?: unknown[] | undefined;
|
|
1181
|
+
ttlSeconds?: number | null | undefined;
|
|
1068
1182
|
supportsResume?: boolean | undefined;
|
|
1069
1183
|
hasSavedState?: boolean | undefined;
|
|
1070
1184
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1087,10 +1201,10 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1087
1201
|
data?: unknown;
|
|
1088
1202
|
})[] | undefined;
|
|
1089
1203
|
originatingSessionId?: string | null | undefined;
|
|
1090
|
-
};
|
|
1204
|
+
} | undefined;
|
|
1091
1205
|
}, {
|
|
1092
1206
|
ok: true;
|
|
1093
|
-
process
|
|
1207
|
+
process?: {
|
|
1094
1208
|
status: {
|
|
1095
1209
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1096
1210
|
error?: string | undefined;
|
|
@@ -1124,10 +1238,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1124
1238
|
parentId?: string | undefined;
|
|
1125
1239
|
special?: boolean | undefined;
|
|
1126
1240
|
description?: string | null | undefined;
|
|
1241
|
+
result?: {
|
|
1242
|
+
filename: string;
|
|
1243
|
+
contentType: string;
|
|
1244
|
+
size: number;
|
|
1245
|
+
} | undefined;
|
|
1127
1246
|
uiWidget?: string | null | undefined;
|
|
1128
1247
|
widgetData?: unknown;
|
|
1129
1248
|
taskFactory?: boolean | undefined;
|
|
1130
1249
|
parameters?: unknown[] | undefined;
|
|
1250
|
+
ttlSeconds?: number | null | undefined;
|
|
1131
1251
|
supportsResume?: boolean | undefined;
|
|
1132
1252
|
hasSavedState?: boolean | undefined;
|
|
1133
1253
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1150,7 +1270,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1150
1270
|
data?: unknown;
|
|
1151
1271
|
})[] | undefined;
|
|
1152
1272
|
originatingSessionId?: string | null | undefined;
|
|
1153
|
-
};
|
|
1273
|
+
} | undefined;
|
|
1154
1274
|
}>, z.ZodObject<{
|
|
1155
1275
|
ok: z.ZodLiteral<false>;
|
|
1156
1276
|
reason: z.ZodEnum<["not-found", "not-dismissable"]>;
|
|
@@ -1237,10 +1357,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1237
1357
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1238
1358
|
data?: Record<string, unknown> | undefined;
|
|
1239
1359
|
}>, "many">;
|
|
1360
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
1361
|
+
filename: z.ZodString;
|
|
1362
|
+
contentType: z.ZodString;
|
|
1363
|
+
size: z.ZodNumber;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
filename: string;
|
|
1366
|
+
contentType: string;
|
|
1367
|
+
size: number;
|
|
1368
|
+
}, {
|
|
1369
|
+
filename: string;
|
|
1370
|
+
contentType: string;
|
|
1371
|
+
size: number;
|
|
1372
|
+
}>>;
|
|
1240
1373
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
1374
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1242
1375
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
1243
1376
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1377
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1244
1378
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1245
1379
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1246
1380
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1324,10 +1458,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1324
1458
|
parentId?: string | undefined;
|
|
1325
1459
|
special?: boolean | undefined;
|
|
1326
1460
|
description?: string | null | undefined;
|
|
1461
|
+
result?: {
|
|
1462
|
+
filename: string;
|
|
1463
|
+
contentType: string;
|
|
1464
|
+
size: number;
|
|
1465
|
+
} | undefined;
|
|
1327
1466
|
uiWidget?: string | null | undefined;
|
|
1328
1467
|
widgetData?: unknown;
|
|
1329
1468
|
taskFactory?: boolean | undefined;
|
|
1330
1469
|
parameters?: unknown[] | undefined;
|
|
1470
|
+
ttlSeconds?: number | null | undefined;
|
|
1331
1471
|
supportsResume?: boolean | undefined;
|
|
1332
1472
|
hasSavedState?: boolean | undefined;
|
|
1333
1473
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1384,10 +1524,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1384
1524
|
parentId?: string | undefined;
|
|
1385
1525
|
special?: boolean | undefined;
|
|
1386
1526
|
description?: string | null | undefined;
|
|
1527
|
+
result?: {
|
|
1528
|
+
filename: string;
|
|
1529
|
+
contentType: string;
|
|
1530
|
+
size: number;
|
|
1531
|
+
} | undefined;
|
|
1387
1532
|
uiWidget?: string | null | undefined;
|
|
1388
1533
|
widgetData?: unknown;
|
|
1389
1534
|
taskFactory?: boolean | undefined;
|
|
1390
1535
|
parameters?: unknown[] | undefined;
|
|
1536
|
+
ttlSeconds?: number | null | undefined;
|
|
1391
1537
|
supportsResume?: boolean | undefined;
|
|
1392
1538
|
hasSavedState?: boolean | undefined;
|
|
1393
1539
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1447,10 +1593,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1447
1593
|
parentId?: string | undefined;
|
|
1448
1594
|
special?: boolean | undefined;
|
|
1449
1595
|
description?: string | null | undefined;
|
|
1596
|
+
result?: {
|
|
1597
|
+
filename: string;
|
|
1598
|
+
contentType: string;
|
|
1599
|
+
size: number;
|
|
1600
|
+
} | undefined;
|
|
1450
1601
|
uiWidget?: string | null | undefined;
|
|
1451
1602
|
widgetData?: unknown;
|
|
1452
1603
|
taskFactory?: boolean | undefined;
|
|
1453
1604
|
parameters?: unknown[] | undefined;
|
|
1605
|
+
ttlSeconds?: number | null | undefined;
|
|
1454
1606
|
supportsResume?: boolean | undefined;
|
|
1455
1607
|
hasSavedState?: boolean | undefined;
|
|
1456
1608
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1510,10 +1662,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1510
1662
|
parentId?: string | undefined;
|
|
1511
1663
|
special?: boolean | undefined;
|
|
1512
1664
|
description?: string | null | undefined;
|
|
1665
|
+
result?: {
|
|
1666
|
+
filename: string;
|
|
1667
|
+
contentType: string;
|
|
1668
|
+
size: number;
|
|
1669
|
+
} | undefined;
|
|
1513
1670
|
uiWidget?: string | null | undefined;
|
|
1514
1671
|
widgetData?: unknown;
|
|
1515
1672
|
taskFactory?: boolean | undefined;
|
|
1516
1673
|
parameters?: unknown[] | undefined;
|
|
1674
|
+
ttlSeconds?: number | null | undefined;
|
|
1517
1675
|
supportsResume?: boolean | undefined;
|
|
1518
1676
|
hasSavedState?: boolean | undefined;
|
|
1519
1677
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1665,12 +1823,12 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1665
1823
|
filename: z.ZodString;
|
|
1666
1824
|
}, "strip", z.ZodTypeAny, {
|
|
1667
1825
|
processId: string;
|
|
1668
|
-
blobId: string;
|
|
1669
1826
|
filename: string;
|
|
1827
|
+
blobId: string;
|
|
1670
1828
|
}, {
|
|
1671
1829
|
processId: string;
|
|
1672
|
-
blobId: string;
|
|
1673
1830
|
filename: string;
|
|
1831
|
+
blobId: string;
|
|
1674
1832
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1675
1833
|
ok: z.ZodLiteral<true>;
|
|
1676
1834
|
path: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optio-engine-to-api.d.ts","sourceRoot":"","sources":["../src/optio-engine-to-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"optio-engine-to-api.d.ts","sourceRoot":"","sources":["../src/optio-engine-to-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6DxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmF9B,CAAC"}
|
|
@@ -5,7 +5,8 @@ import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, Resurre
|
|
|
5
5
|
const ProcessIdParam = z.string().min(1);
|
|
6
6
|
const launchResult = z.discriminatedUnion('ok', [
|
|
7
7
|
z.object({ ok: z.literal(true), process: ProcessSchema }),
|
|
8
|
-
// `message` is optio-core's text of an `invalid-parameters`
|
|
8
|
+
// `message` is optio-core's text of an `invalid-parameters` or
|
|
9
|
+
// `invalid-metadata` refusal.
|
|
9
10
|
z.object({ ok: z.literal(false), reason: LaunchFailureReason, message: z.string().optional() }),
|
|
10
11
|
]);
|
|
11
12
|
const cancelResult = z.discriminatedUnion('ok', [
|
|
@@ -13,7 +14,8 @@ const cancelResult = z.discriminatedUnion('ok', [
|
|
|
13
14
|
z.object({ ok: z.literal(false), reason: CancelFailureReason }),
|
|
14
15
|
]);
|
|
15
16
|
const dismissResult = z.discriminatedUnion('ok', [
|
|
16
|
-
|
|
17
|
+
// `process` is absent when dismissing deleted the record (an ended factory launch).
|
|
18
|
+
z.object({ ok: z.literal(true), process: ProcessSchema.optional() }),
|
|
17
19
|
z.object({ ok: z.literal(false), reason: DismissFailureReason }),
|
|
18
20
|
]);
|
|
19
21
|
const resurrectResult = z.discriminatedUnion('ok', [
|
|
@@ -51,6 +53,13 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
51
53
|
// A task factory's parameter values (required for a factory, refused
|
|
52
54
|
// for any other process).
|
|
53
55
|
params: z.record(z.unknown()).optional(),
|
|
56
|
+
// Overrides the factory's default retention of the launch's record:
|
|
57
|
+
// true = deleted when it ends, false = kept until dismissed.
|
|
58
|
+
ephemeral: z.boolean().optional(),
|
|
59
|
+
// A task factory launch's stamp, from optio-api's `launchMetadata` hook
|
|
60
|
+
// (server-side only: the frontend's launch body cannot carry it); merged
|
|
61
|
+
// into the new launch's metadata.
|
|
62
|
+
metadata: z.record(z.union([z.string(), z.number(), z.boolean(), z.null()])).optional(),
|
|
54
63
|
}),
|
|
55
64
|
result: launchResult,
|
|
56
65
|
}),
|