optio-contracts 0.7.1 → 0.8.0
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 +350 -21
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +35 -3
- package/dist/api-to-frontend.js.map +1 -1
- package/dist/engine-failure-reasons.d.ts +4 -2
- package/dist/engine-failure-reasons.d.ts.map +1 -1
- package/dist/engine-failure-reasons.js +20 -0
- package/dist/engine-failure-reasons.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +215 -14
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +26 -4
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/route-error-reasons.d.ts +2 -2
- package/dist/schemas/process.d.ts +37 -0
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +22 -0
- package/dist/schemas/process.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,18 +3,27 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
3
3
|
launch: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
4
4
|
processId: z.ZodString;
|
|
5
5
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
resumeFrom: z.ZodOptional<z.ZodString>;
|
|
6
7
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
7
8
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
8
11
|
}, "strip", z.ZodTypeAny, {
|
|
9
12
|
processId: string;
|
|
10
13
|
sessionId: string | null;
|
|
11
14
|
params?: Record<string, unknown> | undefined;
|
|
15
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
12
16
|
resume?: boolean | undefined;
|
|
17
|
+
resumeFrom?: string | undefined;
|
|
18
|
+
ephemeral?: boolean | undefined;
|
|
13
19
|
}, {
|
|
14
20
|
processId: string;
|
|
15
21
|
sessionId: string | null;
|
|
16
22
|
params?: Record<string, unknown> | undefined;
|
|
23
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
17
24
|
resume?: boolean | undefined;
|
|
25
|
+
resumeFrom?: string | undefined;
|
|
26
|
+
ephemeral?: boolean | undefined;
|
|
18
27
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
19
28
|
ok: z.ZodLiteral<true>;
|
|
20
29
|
process: z.ZodObject<{
|
|
@@ -82,10 +91,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
82
91
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
83
92
|
data?: Record<string, unknown> | undefined;
|
|
84
93
|
}>, "many">;
|
|
94
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
filename: z.ZodString;
|
|
96
|
+
contentType: z.ZodString;
|
|
97
|
+
size: z.ZodNumber;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
filename: string;
|
|
100
|
+
contentType: string;
|
|
101
|
+
size: number;
|
|
102
|
+
}, {
|
|
103
|
+
filename: string;
|
|
104
|
+
contentType: string;
|
|
105
|
+
size: number;
|
|
106
|
+
}>>;
|
|
85
107
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
108
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
87
109
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
88
110
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
111
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
89
112
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
90
113
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
91
114
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -169,10 +192,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
169
192
|
parentId?: string | undefined;
|
|
170
193
|
special?: boolean | undefined;
|
|
171
194
|
description?: string | null | undefined;
|
|
195
|
+
result?: {
|
|
196
|
+
filename: string;
|
|
197
|
+
contentType: string;
|
|
198
|
+
size: number;
|
|
199
|
+
} | undefined;
|
|
172
200
|
uiWidget?: string | null | undefined;
|
|
173
201
|
widgetData?: unknown;
|
|
174
202
|
taskFactory?: boolean | undefined;
|
|
175
203
|
parameters?: unknown[] | undefined;
|
|
204
|
+
ttlSeconds?: number | null | undefined;
|
|
176
205
|
supportsResume?: boolean | undefined;
|
|
177
206
|
hasSavedState?: boolean | undefined;
|
|
178
207
|
supportsResurrect?: boolean | undefined;
|
|
@@ -229,10 +258,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
229
258
|
parentId?: string | undefined;
|
|
230
259
|
special?: boolean | undefined;
|
|
231
260
|
description?: string | null | undefined;
|
|
261
|
+
result?: {
|
|
262
|
+
filename: string;
|
|
263
|
+
contentType: string;
|
|
264
|
+
size: number;
|
|
265
|
+
} | undefined;
|
|
232
266
|
uiWidget?: string | null | undefined;
|
|
233
267
|
widgetData?: unknown;
|
|
234
268
|
taskFactory?: boolean | undefined;
|
|
235
269
|
parameters?: unknown[] | undefined;
|
|
270
|
+
ttlSeconds?: number | null | undefined;
|
|
236
271
|
supportsResume?: boolean | undefined;
|
|
237
272
|
hasSavedState?: boolean | undefined;
|
|
238
273
|
supportsResurrect?: boolean | undefined;
|
|
@@ -292,10 +327,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
292
327
|
parentId?: string | undefined;
|
|
293
328
|
special?: boolean | undefined;
|
|
294
329
|
description?: string | null | undefined;
|
|
330
|
+
result?: {
|
|
331
|
+
filename: string;
|
|
332
|
+
contentType: string;
|
|
333
|
+
size: number;
|
|
334
|
+
} | undefined;
|
|
295
335
|
uiWidget?: string | null | undefined;
|
|
296
336
|
widgetData?: unknown;
|
|
297
337
|
taskFactory?: boolean | undefined;
|
|
298
338
|
parameters?: unknown[] | undefined;
|
|
339
|
+
ttlSeconds?: number | null | undefined;
|
|
299
340
|
supportsResume?: boolean | undefined;
|
|
300
341
|
hasSavedState?: boolean | undefined;
|
|
301
342
|
supportsResurrect?: boolean | undefined;
|
|
@@ -355,10 +396,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
355
396
|
parentId?: string | undefined;
|
|
356
397
|
special?: boolean | undefined;
|
|
357
398
|
description?: string | null | undefined;
|
|
399
|
+
result?: {
|
|
400
|
+
filename: string;
|
|
401
|
+
contentType: string;
|
|
402
|
+
size: number;
|
|
403
|
+
} | undefined;
|
|
358
404
|
uiWidget?: string | null | undefined;
|
|
359
405
|
widgetData?: unknown;
|
|
360
406
|
taskFactory?: boolean | undefined;
|
|
361
407
|
parameters?: unknown[] | undefined;
|
|
408
|
+
ttlSeconds?: number | null | undefined;
|
|
362
409
|
supportsResume?: boolean | undefined;
|
|
363
410
|
hasSavedState?: boolean | undefined;
|
|
364
411
|
supportsResurrect?: boolean | undefined;
|
|
@@ -384,14 +431,14 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
384
431
|
};
|
|
385
432
|
}>, z.ZodObject<{
|
|
386
433
|
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"]>;
|
|
434
|
+
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"]>;
|
|
388
435
|
message: z.ZodOptional<z.ZodString>;
|
|
389
436
|
}, "strip", z.ZodTypeAny, {
|
|
390
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
|
|
437
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
391
438
|
ok: false;
|
|
392
439
|
message?: string | undefined;
|
|
393
440
|
}, {
|
|
394
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
|
|
441
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
395
442
|
ok: false;
|
|
396
443
|
message?: string | undefined;
|
|
397
444
|
}>]>>;
|
|
@@ -468,10 +515,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
468
515
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
469
516
|
data?: Record<string, unknown> | undefined;
|
|
470
517
|
}>, "many">;
|
|
518
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
519
|
+
filename: z.ZodString;
|
|
520
|
+
contentType: z.ZodString;
|
|
521
|
+
size: z.ZodNumber;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
filename: string;
|
|
524
|
+
contentType: string;
|
|
525
|
+
size: number;
|
|
526
|
+
}, {
|
|
527
|
+
filename: string;
|
|
528
|
+
contentType: string;
|
|
529
|
+
size: number;
|
|
530
|
+
}>>;
|
|
471
531
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
532
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
473
533
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
474
534
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
535
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
475
536
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
476
537
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
477
538
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -555,10 +616,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
555
616
|
parentId?: string | undefined;
|
|
556
617
|
special?: boolean | undefined;
|
|
557
618
|
description?: string | null | undefined;
|
|
619
|
+
result?: {
|
|
620
|
+
filename: string;
|
|
621
|
+
contentType: string;
|
|
622
|
+
size: number;
|
|
623
|
+
} | undefined;
|
|
558
624
|
uiWidget?: string | null | undefined;
|
|
559
625
|
widgetData?: unknown;
|
|
560
626
|
taskFactory?: boolean | undefined;
|
|
561
627
|
parameters?: unknown[] | undefined;
|
|
628
|
+
ttlSeconds?: number | null | undefined;
|
|
562
629
|
supportsResume?: boolean | undefined;
|
|
563
630
|
hasSavedState?: boolean | undefined;
|
|
564
631
|
supportsResurrect?: boolean | undefined;
|
|
@@ -615,10 +682,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
615
682
|
parentId?: string | undefined;
|
|
616
683
|
special?: boolean | undefined;
|
|
617
684
|
description?: string | null | undefined;
|
|
685
|
+
result?: {
|
|
686
|
+
filename: string;
|
|
687
|
+
contentType: string;
|
|
688
|
+
size: number;
|
|
689
|
+
} | undefined;
|
|
618
690
|
uiWidget?: string | null | undefined;
|
|
619
691
|
widgetData?: unknown;
|
|
620
692
|
taskFactory?: boolean | undefined;
|
|
621
693
|
parameters?: unknown[] | undefined;
|
|
694
|
+
ttlSeconds?: number | null | undefined;
|
|
622
695
|
supportsResume?: boolean | undefined;
|
|
623
696
|
hasSavedState?: boolean | undefined;
|
|
624
697
|
supportsResurrect?: boolean | undefined;
|
|
@@ -678,10 +751,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
678
751
|
parentId?: string | undefined;
|
|
679
752
|
special?: boolean | undefined;
|
|
680
753
|
description?: string | null | undefined;
|
|
754
|
+
result?: {
|
|
755
|
+
filename: string;
|
|
756
|
+
contentType: string;
|
|
757
|
+
size: number;
|
|
758
|
+
} | undefined;
|
|
681
759
|
uiWidget?: string | null | undefined;
|
|
682
760
|
widgetData?: unknown;
|
|
683
761
|
taskFactory?: boolean | undefined;
|
|
684
762
|
parameters?: unknown[] | undefined;
|
|
763
|
+
ttlSeconds?: number | null | undefined;
|
|
685
764
|
supportsResume?: boolean | undefined;
|
|
686
765
|
hasSavedState?: boolean | undefined;
|
|
687
766
|
supportsResurrect?: boolean | undefined;
|
|
@@ -741,10 +820,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
741
820
|
parentId?: string | undefined;
|
|
742
821
|
special?: boolean | undefined;
|
|
743
822
|
description?: string | null | undefined;
|
|
823
|
+
result?: {
|
|
824
|
+
filename: string;
|
|
825
|
+
contentType: string;
|
|
826
|
+
size: number;
|
|
827
|
+
} | undefined;
|
|
744
828
|
uiWidget?: string | null | undefined;
|
|
745
829
|
widgetData?: unknown;
|
|
746
830
|
taskFactory?: boolean | undefined;
|
|
747
831
|
parameters?: unknown[] | undefined;
|
|
832
|
+
ttlSeconds?: number | null | undefined;
|
|
748
833
|
supportsResume?: boolean | undefined;
|
|
749
834
|
hasSavedState?: boolean | undefined;
|
|
750
835
|
supportsResurrect?: boolean | undefined;
|
|
@@ -786,7 +871,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
786
871
|
processId: string;
|
|
787
872
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
788
873
|
ok: z.ZodLiteral<true>;
|
|
789
|
-
process: z.ZodObject<{
|
|
874
|
+
process: z.ZodOptional<z.ZodObject<{
|
|
790
875
|
_id: z.ZodString;
|
|
791
876
|
processId: z.ZodString;
|
|
792
877
|
name: z.ZodString;
|
|
@@ -851,10 +936,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
851
936
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
852
937
|
data?: Record<string, unknown> | undefined;
|
|
853
938
|
}>, "many">;
|
|
939
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
940
|
+
filename: z.ZodString;
|
|
941
|
+
contentType: z.ZodString;
|
|
942
|
+
size: z.ZodNumber;
|
|
943
|
+
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
filename: string;
|
|
945
|
+
contentType: string;
|
|
946
|
+
size: number;
|
|
947
|
+
}, {
|
|
948
|
+
filename: string;
|
|
949
|
+
contentType: string;
|
|
950
|
+
size: number;
|
|
951
|
+
}>>;
|
|
854
952
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
855
953
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
856
954
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
857
955
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
956
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
858
957
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
859
958
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
860
959
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -938,10 +1037,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
938
1037
|
parentId?: string | undefined;
|
|
939
1038
|
special?: boolean | undefined;
|
|
940
1039
|
description?: string | null | undefined;
|
|
1040
|
+
result?: {
|
|
1041
|
+
filename: string;
|
|
1042
|
+
contentType: string;
|
|
1043
|
+
size: number;
|
|
1044
|
+
} | undefined;
|
|
941
1045
|
uiWidget?: string | null | undefined;
|
|
942
1046
|
widgetData?: unknown;
|
|
943
1047
|
taskFactory?: boolean | undefined;
|
|
944
1048
|
parameters?: unknown[] | undefined;
|
|
1049
|
+
ttlSeconds?: number | null | undefined;
|
|
945
1050
|
supportsResume?: boolean | undefined;
|
|
946
1051
|
hasSavedState?: boolean | undefined;
|
|
947
1052
|
supportsResurrect?: boolean | undefined;
|
|
@@ -998,10 +1103,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
998
1103
|
parentId?: string | undefined;
|
|
999
1104
|
special?: boolean | undefined;
|
|
1000
1105
|
description?: string | null | undefined;
|
|
1106
|
+
result?: {
|
|
1107
|
+
filename: string;
|
|
1108
|
+
contentType: string;
|
|
1109
|
+
size: number;
|
|
1110
|
+
} | undefined;
|
|
1001
1111
|
uiWidget?: string | null | undefined;
|
|
1002
1112
|
widgetData?: unknown;
|
|
1003
1113
|
taskFactory?: boolean | undefined;
|
|
1004
1114
|
parameters?: unknown[] | undefined;
|
|
1115
|
+
ttlSeconds?: number | null | undefined;
|
|
1005
1116
|
supportsResume?: boolean | undefined;
|
|
1006
1117
|
hasSavedState?: boolean | undefined;
|
|
1007
1118
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1024,10 +1135,10 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1024
1135
|
data?: unknown;
|
|
1025
1136
|
})[] | undefined;
|
|
1026
1137
|
originatingSessionId?: string | null | undefined;
|
|
1027
|
-
}
|
|
1138
|
+
}>>;
|
|
1028
1139
|
}, "strip", z.ZodTypeAny, {
|
|
1029
1140
|
ok: true;
|
|
1030
|
-
process
|
|
1141
|
+
process?: {
|
|
1031
1142
|
status: {
|
|
1032
1143
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1033
1144
|
error?: string | undefined;
|
|
@@ -1061,10 +1172,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1061
1172
|
parentId?: string | undefined;
|
|
1062
1173
|
special?: boolean | undefined;
|
|
1063
1174
|
description?: string | null | undefined;
|
|
1175
|
+
result?: {
|
|
1176
|
+
filename: string;
|
|
1177
|
+
contentType: string;
|
|
1178
|
+
size: number;
|
|
1179
|
+
} | undefined;
|
|
1064
1180
|
uiWidget?: string | null | undefined;
|
|
1065
1181
|
widgetData?: unknown;
|
|
1066
1182
|
taskFactory?: boolean | undefined;
|
|
1067
1183
|
parameters?: unknown[] | undefined;
|
|
1184
|
+
ttlSeconds?: number | null | undefined;
|
|
1068
1185
|
supportsResume?: boolean | undefined;
|
|
1069
1186
|
hasSavedState?: boolean | undefined;
|
|
1070
1187
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1087,10 +1204,10 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1087
1204
|
data?: unknown;
|
|
1088
1205
|
})[] | undefined;
|
|
1089
1206
|
originatingSessionId?: string | null | undefined;
|
|
1090
|
-
};
|
|
1207
|
+
} | undefined;
|
|
1091
1208
|
}, {
|
|
1092
1209
|
ok: true;
|
|
1093
|
-
process
|
|
1210
|
+
process?: {
|
|
1094
1211
|
status: {
|
|
1095
1212
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1096
1213
|
error?: string | undefined;
|
|
@@ -1124,10 +1241,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1124
1241
|
parentId?: string | undefined;
|
|
1125
1242
|
special?: boolean | undefined;
|
|
1126
1243
|
description?: string | null | undefined;
|
|
1244
|
+
result?: {
|
|
1245
|
+
filename: string;
|
|
1246
|
+
contentType: string;
|
|
1247
|
+
size: number;
|
|
1248
|
+
} | undefined;
|
|
1127
1249
|
uiWidget?: string | null | undefined;
|
|
1128
1250
|
widgetData?: unknown;
|
|
1129
1251
|
taskFactory?: boolean | undefined;
|
|
1130
1252
|
parameters?: unknown[] | undefined;
|
|
1253
|
+
ttlSeconds?: number | null | undefined;
|
|
1131
1254
|
supportsResume?: boolean | undefined;
|
|
1132
1255
|
hasSavedState?: boolean | undefined;
|
|
1133
1256
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1150,7 +1273,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1150
1273
|
data?: unknown;
|
|
1151
1274
|
})[] | undefined;
|
|
1152
1275
|
originatingSessionId?: string | null | undefined;
|
|
1153
|
-
};
|
|
1276
|
+
} | undefined;
|
|
1154
1277
|
}>, z.ZodObject<{
|
|
1155
1278
|
ok: z.ZodLiteral<false>;
|
|
1156
1279
|
reason: z.ZodEnum<["not-found", "not-dismissable"]>;
|
|
@@ -1237,10 +1360,24 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1237
1360
|
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1238
1361
|
data?: Record<string, unknown> | undefined;
|
|
1239
1362
|
}>, "many">;
|
|
1363
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
1364
|
+
filename: z.ZodString;
|
|
1365
|
+
contentType: z.ZodString;
|
|
1366
|
+
size: z.ZodNumber;
|
|
1367
|
+
}, "strip", z.ZodTypeAny, {
|
|
1368
|
+
filename: string;
|
|
1369
|
+
contentType: string;
|
|
1370
|
+
size: number;
|
|
1371
|
+
}, {
|
|
1372
|
+
filename: string;
|
|
1373
|
+
contentType: string;
|
|
1374
|
+
size: number;
|
|
1375
|
+
}>>;
|
|
1240
1376
|
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
1377
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1242
1378
|
taskFactory: z.ZodOptional<z.ZodBoolean>;
|
|
1243
1379
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1380
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1244
1381
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1245
1382
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1246
1383
|
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1324,10 +1461,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1324
1461
|
parentId?: string | undefined;
|
|
1325
1462
|
special?: boolean | undefined;
|
|
1326
1463
|
description?: string | null | undefined;
|
|
1464
|
+
result?: {
|
|
1465
|
+
filename: string;
|
|
1466
|
+
contentType: string;
|
|
1467
|
+
size: number;
|
|
1468
|
+
} | undefined;
|
|
1327
1469
|
uiWidget?: string | null | undefined;
|
|
1328
1470
|
widgetData?: unknown;
|
|
1329
1471
|
taskFactory?: boolean | undefined;
|
|
1330
1472
|
parameters?: unknown[] | undefined;
|
|
1473
|
+
ttlSeconds?: number | null | undefined;
|
|
1331
1474
|
supportsResume?: boolean | undefined;
|
|
1332
1475
|
hasSavedState?: boolean | undefined;
|
|
1333
1476
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1384,10 +1527,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1384
1527
|
parentId?: string | undefined;
|
|
1385
1528
|
special?: boolean | undefined;
|
|
1386
1529
|
description?: string | null | undefined;
|
|
1530
|
+
result?: {
|
|
1531
|
+
filename: string;
|
|
1532
|
+
contentType: string;
|
|
1533
|
+
size: number;
|
|
1534
|
+
} | undefined;
|
|
1387
1535
|
uiWidget?: string | null | undefined;
|
|
1388
1536
|
widgetData?: unknown;
|
|
1389
1537
|
taskFactory?: boolean | undefined;
|
|
1390
1538
|
parameters?: unknown[] | undefined;
|
|
1539
|
+
ttlSeconds?: number | null | undefined;
|
|
1391
1540
|
supportsResume?: boolean | undefined;
|
|
1392
1541
|
hasSavedState?: boolean | undefined;
|
|
1393
1542
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1447,10 +1596,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1447
1596
|
parentId?: string | undefined;
|
|
1448
1597
|
special?: boolean | undefined;
|
|
1449
1598
|
description?: string | null | undefined;
|
|
1599
|
+
result?: {
|
|
1600
|
+
filename: string;
|
|
1601
|
+
contentType: string;
|
|
1602
|
+
size: number;
|
|
1603
|
+
} | undefined;
|
|
1450
1604
|
uiWidget?: string | null | undefined;
|
|
1451
1605
|
widgetData?: unknown;
|
|
1452
1606
|
taskFactory?: boolean | undefined;
|
|
1453
1607
|
parameters?: unknown[] | undefined;
|
|
1608
|
+
ttlSeconds?: number | null | undefined;
|
|
1454
1609
|
supportsResume?: boolean | undefined;
|
|
1455
1610
|
hasSavedState?: boolean | undefined;
|
|
1456
1611
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1510,10 +1665,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1510
1665
|
parentId?: string | undefined;
|
|
1511
1666
|
special?: boolean | undefined;
|
|
1512
1667
|
description?: string | null | undefined;
|
|
1668
|
+
result?: {
|
|
1669
|
+
filename: string;
|
|
1670
|
+
contentType: string;
|
|
1671
|
+
size: number;
|
|
1672
|
+
} | undefined;
|
|
1513
1673
|
uiWidget?: string | null | undefined;
|
|
1514
1674
|
widgetData?: unknown;
|
|
1515
1675
|
taskFactory?: boolean | undefined;
|
|
1516
1676
|
parameters?: unknown[] | undefined;
|
|
1677
|
+
ttlSeconds?: number | null | undefined;
|
|
1517
1678
|
supportsResume?: boolean | undefined;
|
|
1518
1679
|
hasSavedState?: boolean | undefined;
|
|
1519
1680
|
supportsResurrect?: boolean | undefined;
|
|
@@ -1539,12 +1700,52 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1539
1700
|
};
|
|
1540
1701
|
}>, z.ZodObject<{
|
|
1541
1702
|
ok: z.ZodLiteral<false>;
|
|
1542
|
-
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
1703
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
|
|
1704
|
+
}, "strip", z.ZodTypeAny, {
|
|
1705
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
1706
|
+
ok: false;
|
|
1707
|
+
}, {
|
|
1708
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
1709
|
+
ok: false;
|
|
1710
|
+
}>]>>;
|
|
1711
|
+
listSnapshots: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
1712
|
+
processId: z.ZodString;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1714
|
+
processId: string;
|
|
1715
|
+
}, {
|
|
1716
|
+
processId: string;
|
|
1717
|
+
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1718
|
+
ok: z.ZodLiteral<true>;
|
|
1719
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
1720
|
+
capturedAt: z.ZodString;
|
|
1721
|
+
endState: z.ZodString;
|
|
1722
|
+
}, "strip", z.ZodTypeAny, {
|
|
1723
|
+
capturedAt: string;
|
|
1724
|
+
endState: string;
|
|
1725
|
+
}, {
|
|
1726
|
+
capturedAt: string;
|
|
1727
|
+
endState: string;
|
|
1728
|
+
}>, "many">;
|
|
1729
|
+
}, "strip", z.ZodTypeAny, {
|
|
1730
|
+
snapshots: {
|
|
1731
|
+
capturedAt: string;
|
|
1732
|
+
endState: string;
|
|
1733
|
+
}[];
|
|
1734
|
+
ok: true;
|
|
1735
|
+
}, {
|
|
1736
|
+
snapshots: {
|
|
1737
|
+
capturedAt: string;
|
|
1738
|
+
endState: string;
|
|
1739
|
+
}[];
|
|
1740
|
+
ok: true;
|
|
1741
|
+
}>, z.ZodObject<{
|
|
1742
|
+
ok: z.ZodLiteral<false>;
|
|
1743
|
+
reason: z.ZodEnum<["not-found", "no-snapshot-support"]>;
|
|
1543
1744
|
}, "strip", z.ZodTypeAny, {
|
|
1544
|
-
reason: "not-found" | "
|
|
1745
|
+
reason: "not-found" | "no-snapshot-support";
|
|
1545
1746
|
ok: false;
|
|
1546
1747
|
}, {
|
|
1547
|
-
reason: "not-found" | "
|
|
1748
|
+
reason: "not-found" | "no-snapshot-support";
|
|
1548
1749
|
ok: false;
|
|
1549
1750
|
}>]>>;
|
|
1550
1751
|
groupCancel: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
@@ -1665,12 +1866,12 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1665
1866
|
filename: z.ZodString;
|
|
1666
1867
|
}, "strip", z.ZodTypeAny, {
|
|
1667
1868
|
processId: string;
|
|
1668
|
-
blobId: string;
|
|
1669
1869
|
filename: string;
|
|
1870
|
+
blobId: string;
|
|
1670
1871
|
}, {
|
|
1671
1872
|
processId: string;
|
|
1672
|
-
blobId: string;
|
|
1673
1873
|
filename: string;
|
|
1874
|
+
blobId: string;
|
|
1674
1875
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1675
1876
|
ok: z.ZodLiteral<true>;
|
|
1676
1877
|
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;AAoExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2F9B,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineContract, defineMethod, defineNotification } from '@clamator/protocol';
|
|
3
|
-
import { ProcessSchema, ProcessMetadataFilterSchema } from './schemas/process.js';
|
|
4
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
3
|
+
import { ProcessSchema, ProcessMetadataFilterSchema, ProcessSnapshotSchema } from './schemas/process.js';
|
|
4
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
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,13 +14,19 @@ 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', [
|
|
20
22
|
z.object({ ok: z.literal(true), process: ProcessSchema }),
|
|
21
23
|
z.object({ ok: z.literal(false), reason: ResurrectFailureReason }),
|
|
22
24
|
]);
|
|
25
|
+
// The process's valid snapshots, newest first, the newest included.
|
|
26
|
+
const listSnapshotsResult = z.discriminatedUnion('ok', [
|
|
27
|
+
z.object({ ok: z.literal(true), snapshots: z.array(ProcessSnapshotSchema) }),
|
|
28
|
+
z.object({ ok: z.literal(false), reason: ListSnapshotsFailureReason }),
|
|
29
|
+
]);
|
|
23
30
|
const groupCancelResult = z.discriminatedUnion('ok', [
|
|
24
31
|
z.object({ ok: z.literal(true), cancelledCount: z.number().int().nonnegative() }),
|
|
25
32
|
z.object({ ok: z.literal(false), reason: GroupCancelFailureReason }),
|
|
@@ -44,6 +51,10 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
44
51
|
params: z.object({
|
|
45
52
|
processId: ProcessIdParam,
|
|
46
53
|
resume: z.boolean().optional(),
|
|
54
|
+
// Resume from an older snapshot: the capturedAt listSnapshots gave
|
|
55
|
+
// it. Needs `resume: true` (else invalid-request); the newer
|
|
56
|
+
// snapshots are deleted once every launch check has passed.
|
|
57
|
+
resumeFrom: z.string().min(1).optional(),
|
|
47
58
|
// Required (no `.optional()`) but nullable: every caller must
|
|
48
59
|
// consciously supply the initiating session token, or explicit null
|
|
49
60
|
// for unattended launches.
|
|
@@ -51,6 +62,13 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
51
62
|
// A task factory's parameter values (required for a factory, refused
|
|
52
63
|
// for any other process).
|
|
53
64
|
params: z.record(z.unknown()).optional(),
|
|
65
|
+
// Overrides the factory's default retention of the launch's record:
|
|
66
|
+
// true = deleted when it ends, false = kept until dismissed.
|
|
67
|
+
ephemeral: z.boolean().optional(),
|
|
68
|
+
// A task factory launch's stamp, from optio-api's `launchMetadata` hook
|
|
69
|
+
// (server-side only: the frontend's launch body cannot carry it); merged
|
|
70
|
+
// into the new launch's metadata.
|
|
71
|
+
metadata: z.record(z.union([z.string(), z.number(), z.boolean(), z.null()])).optional(),
|
|
54
72
|
}),
|
|
55
73
|
result: launchResult,
|
|
56
74
|
}),
|
|
@@ -70,6 +88,10 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
70
88
|
}),
|
|
71
89
|
result: resurrectResult,
|
|
72
90
|
}),
|
|
91
|
+
listSnapshots: defineMethod({
|
|
92
|
+
params: z.object({ processId: ProcessIdParam }),
|
|
93
|
+
result: listSnapshotsResult,
|
|
94
|
+
}),
|
|
73
95
|
groupCancel: defineMethod({
|
|
74
96
|
params: z.object({
|
|
75
97
|
metadataFilter: ProcessMetadataFilterSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optio-engine-to-api.js","sourceRoot":"","sources":["../src/optio-engine-to-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"optio-engine-to-api.js","sourceRoot":"","sources":["../src/optio-engine-to-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAErC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEzC,MAAM,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;IAC9C,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACzD,+DAA+D;IAC/D,8BAA8B;IAC9B,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAA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C7B,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;SACvD,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const apiToFrontendRouteErrorReasons: {
|
|
2
|
-
readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"];
|
|
2
|
+
readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"];
|
|
3
3
|
readonly 'processes.cancel': ["not-found", "not-cancellable"];
|
|
4
4
|
readonly 'processes.dismiss': ["not-found", "not-dismissable"];
|
|
5
|
-
readonly 'processes.resurrect': ["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"];
|
|
5
|
+
readonly 'processes.resurrect': ["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"];
|
|
6
6
|
};
|
|
7
7
|
export type ApiToFrontendRouteId = keyof typeof apiToFrontendRouteErrorReasons;
|
|
8
8
|
//# sourceMappingURL=route-error-reasons.d.ts.map
|