optio-contracts 0.4.5 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-to-frontend.d.ts +359 -0
- 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 +2 -0
- package/dist/engine-failure-reasons.d.ts.map +1 -1
- package/dist/engine-failure-reasons.js +8 -0
- package/dist/engine-failure-reasons.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +421 -0
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +13 -1
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/route-error-reasons.d.ts +1 -0
- package/dist/route-error-reasons.d.ts.map +1 -1
- package/dist/route-error-reasons.js +2 -1
- package/dist/route-error-reasons.js.map +1 -1
- package/dist/schemas/process.d.ts +9 -0
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +6 -0
- package/dist/schemas/process.js.map +1 -1
- package/package.json +1 -1
|
@@ -101,6 +101,9 @@ export declare const processesContract: {
|
|
|
101
101
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
102
102
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
103
103
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
104
107
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
105
108
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
109
|
requestId: z.ZodString;
|
|
@@ -183,6 +186,9 @@ export declare const processesContract: {
|
|
|
183
186
|
widgetData?: unknown;
|
|
184
187
|
supportsResume?: boolean | undefined;
|
|
185
188
|
hasSavedState?: boolean | undefined;
|
|
189
|
+
supportsResurrect?: boolean | undefined;
|
|
190
|
+
hasUnsavedWork?: boolean | undefined;
|
|
191
|
+
resurrecting?: boolean | undefined;
|
|
186
192
|
autoResumeScheduled?: boolean | undefined;
|
|
187
193
|
browserOpenRequests?: {
|
|
188
194
|
requestId: string;
|
|
@@ -238,6 +244,9 @@ export declare const processesContract: {
|
|
|
238
244
|
widgetData?: unknown;
|
|
239
245
|
supportsResume?: boolean | undefined;
|
|
240
246
|
hasSavedState?: boolean | undefined;
|
|
247
|
+
supportsResurrect?: boolean | undefined;
|
|
248
|
+
hasUnsavedWork?: boolean | undefined;
|
|
249
|
+
resurrecting?: boolean | undefined;
|
|
241
250
|
autoResumeScheduled?: boolean | undefined;
|
|
242
251
|
browserOpenRequests?: {
|
|
243
252
|
requestId: string;
|
|
@@ -297,6 +306,9 @@ export declare const processesContract: {
|
|
|
297
306
|
widgetData?: unknown;
|
|
298
307
|
supportsResume?: boolean | undefined;
|
|
299
308
|
hasSavedState?: boolean | undefined;
|
|
309
|
+
supportsResurrect?: boolean | undefined;
|
|
310
|
+
hasUnsavedWork?: boolean | undefined;
|
|
311
|
+
resurrecting?: boolean | undefined;
|
|
300
312
|
autoResumeScheduled?: boolean | undefined;
|
|
301
313
|
browserOpenRequests?: {
|
|
302
314
|
requestId: string;
|
|
@@ -356,6 +368,9 @@ export declare const processesContract: {
|
|
|
356
368
|
widgetData?: unknown;
|
|
357
369
|
supportsResume?: boolean | undefined;
|
|
358
370
|
hasSavedState?: boolean | undefined;
|
|
371
|
+
supportsResurrect?: boolean | undefined;
|
|
372
|
+
hasUnsavedWork?: boolean | undefined;
|
|
373
|
+
resurrecting?: boolean | undefined;
|
|
359
374
|
autoResumeScheduled?: boolean | undefined;
|
|
360
375
|
browserOpenRequests?: {
|
|
361
376
|
requestId: string;
|
|
@@ -470,6 +485,9 @@ export declare const processesContract: {
|
|
|
470
485
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
471
486
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
472
487
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
490
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
473
491
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
474
492
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
475
493
|
requestId: z.ZodString;
|
|
@@ -552,6 +570,9 @@ export declare const processesContract: {
|
|
|
552
570
|
widgetData?: unknown;
|
|
553
571
|
supportsResume?: boolean | undefined;
|
|
554
572
|
hasSavedState?: boolean | undefined;
|
|
573
|
+
supportsResurrect?: boolean | undefined;
|
|
574
|
+
hasUnsavedWork?: boolean | undefined;
|
|
575
|
+
resurrecting?: boolean | undefined;
|
|
555
576
|
autoResumeScheduled?: boolean | undefined;
|
|
556
577
|
browserOpenRequests?: {
|
|
557
578
|
requestId: string;
|
|
@@ -607,6 +628,9 @@ export declare const processesContract: {
|
|
|
607
628
|
widgetData?: unknown;
|
|
608
629
|
supportsResume?: boolean | undefined;
|
|
609
630
|
hasSavedState?: boolean | undefined;
|
|
631
|
+
supportsResurrect?: boolean | undefined;
|
|
632
|
+
hasUnsavedWork?: boolean | undefined;
|
|
633
|
+
resurrecting?: boolean | undefined;
|
|
610
634
|
autoResumeScheduled?: boolean | undefined;
|
|
611
635
|
browserOpenRequests?: {
|
|
612
636
|
requestId: string;
|
|
@@ -728,6 +752,9 @@ export declare const processesContract: {
|
|
|
728
752
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
729
753
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
730
754
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
756
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
757
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
731
758
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
732
759
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
733
760
|
requestId: z.ZodString;
|
|
@@ -842,6 +869,9 @@ export declare const processesContract: {
|
|
|
842
869
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
843
870
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
844
871
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
872
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
873
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
874
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
845
875
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
846
876
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
847
877
|
requestId: z.ZodString;
|
|
@@ -927,6 +957,9 @@ export declare const processesContract: {
|
|
|
927
957
|
widgetData?: unknown;
|
|
928
958
|
supportsResume?: boolean | undefined;
|
|
929
959
|
hasSavedState?: boolean | undefined;
|
|
960
|
+
supportsResurrect?: boolean | undefined;
|
|
961
|
+
hasUnsavedWork?: boolean | undefined;
|
|
962
|
+
resurrecting?: boolean | undefined;
|
|
930
963
|
autoResumeScheduled?: boolean | undefined;
|
|
931
964
|
browserOpenRequests?: {
|
|
932
965
|
requestId: string;
|
|
@@ -983,6 +1016,9 @@ export declare const processesContract: {
|
|
|
983
1016
|
widgetData?: unknown;
|
|
984
1017
|
supportsResume?: boolean | undefined;
|
|
985
1018
|
hasSavedState?: boolean | undefined;
|
|
1019
|
+
supportsResurrect?: boolean | undefined;
|
|
1020
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1021
|
+
resurrecting?: boolean | undefined;
|
|
986
1022
|
autoResumeScheduled?: boolean | undefined;
|
|
987
1023
|
browserOpenRequests?: {
|
|
988
1024
|
requestId: string;
|
|
@@ -1068,6 +1104,9 @@ export declare const processesContract: {
|
|
|
1068
1104
|
widgetData?: unknown;
|
|
1069
1105
|
supportsResume?: boolean | undefined;
|
|
1070
1106
|
hasSavedState?: boolean | undefined;
|
|
1107
|
+
supportsResurrect?: boolean | undefined;
|
|
1108
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1109
|
+
resurrecting?: boolean | undefined;
|
|
1071
1110
|
autoResumeScheduled?: boolean | undefined;
|
|
1072
1111
|
browserOpenRequests?: {
|
|
1073
1112
|
requestId: string;
|
|
@@ -1096,6 +1135,9 @@ export declare const processesContract: {
|
|
|
1096
1135
|
widgetData?: unknown;
|
|
1097
1136
|
supportsResume?: boolean | undefined;
|
|
1098
1137
|
hasSavedState?: boolean | undefined;
|
|
1138
|
+
supportsResurrect?: boolean | undefined;
|
|
1139
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1140
|
+
resurrecting?: boolean | undefined;
|
|
1099
1141
|
autoResumeScheduled?: boolean | undefined;
|
|
1100
1142
|
browserOpenRequests?: {
|
|
1101
1143
|
requestId: string;
|
|
@@ -1180,6 +1222,9 @@ export declare const processesContract: {
|
|
|
1180
1222
|
widgetData?: unknown;
|
|
1181
1223
|
supportsResume?: boolean | undefined;
|
|
1182
1224
|
hasSavedState?: boolean | undefined;
|
|
1225
|
+
supportsResurrect?: boolean | undefined;
|
|
1226
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1227
|
+
resurrecting?: boolean | undefined;
|
|
1183
1228
|
autoResumeScheduled?: boolean | undefined;
|
|
1184
1229
|
browserOpenRequests?: {
|
|
1185
1230
|
requestId: string;
|
|
@@ -1208,6 +1253,9 @@ export declare const processesContract: {
|
|
|
1208
1253
|
widgetData?: unknown;
|
|
1209
1254
|
supportsResume?: boolean | undefined;
|
|
1210
1255
|
hasSavedState?: boolean | undefined;
|
|
1256
|
+
supportsResurrect?: boolean | undefined;
|
|
1257
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1258
|
+
resurrecting?: boolean | undefined;
|
|
1211
1259
|
autoResumeScheduled?: boolean | undefined;
|
|
1212
1260
|
browserOpenRequests?: {
|
|
1213
1261
|
requestId: string;
|
|
@@ -1502,6 +1550,9 @@ export declare const processesContract: {
|
|
|
1502
1550
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1503
1551
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1504
1552
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1553
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
1554
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1555
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
1505
1556
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
1506
1557
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1507
1558
|
requestId: z.ZodString;
|
|
@@ -1584,6 +1635,9 @@ export declare const processesContract: {
|
|
|
1584
1635
|
widgetData?: unknown;
|
|
1585
1636
|
supportsResume?: boolean | undefined;
|
|
1586
1637
|
hasSavedState?: boolean | undefined;
|
|
1638
|
+
supportsResurrect?: boolean | undefined;
|
|
1639
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1640
|
+
resurrecting?: boolean | undefined;
|
|
1587
1641
|
autoResumeScheduled?: boolean | undefined;
|
|
1588
1642
|
browserOpenRequests?: {
|
|
1589
1643
|
requestId: string;
|
|
@@ -1639,6 +1693,9 @@ export declare const processesContract: {
|
|
|
1639
1693
|
widgetData?: unknown;
|
|
1640
1694
|
supportsResume?: boolean | undefined;
|
|
1641
1695
|
hasSavedState?: boolean | undefined;
|
|
1696
|
+
supportsResurrect?: boolean | undefined;
|
|
1697
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1698
|
+
resurrecting?: boolean | undefined;
|
|
1642
1699
|
autoResumeScheduled?: boolean | undefined;
|
|
1643
1700
|
browserOpenRequests?: {
|
|
1644
1701
|
requestId: string;
|
|
@@ -1771,6 +1828,9 @@ export declare const processesContract: {
|
|
|
1771
1828
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1772
1829
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1773
1830
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1831
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
1832
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1833
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
1774
1834
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
1775
1835
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1776
1836
|
requestId: z.ZodString;
|
|
@@ -1853,6 +1913,9 @@ export declare const processesContract: {
|
|
|
1853
1913
|
widgetData?: unknown;
|
|
1854
1914
|
supportsResume?: boolean | undefined;
|
|
1855
1915
|
hasSavedState?: boolean | undefined;
|
|
1916
|
+
supportsResurrect?: boolean | undefined;
|
|
1917
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1918
|
+
resurrecting?: boolean | undefined;
|
|
1856
1919
|
autoResumeScheduled?: boolean | undefined;
|
|
1857
1920
|
browserOpenRequests?: {
|
|
1858
1921
|
requestId: string;
|
|
@@ -1908,6 +1971,9 @@ export declare const processesContract: {
|
|
|
1908
1971
|
widgetData?: unknown;
|
|
1909
1972
|
supportsResume?: boolean | undefined;
|
|
1910
1973
|
hasSavedState?: boolean | undefined;
|
|
1974
|
+
supportsResurrect?: boolean | undefined;
|
|
1975
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1976
|
+
resurrecting?: boolean | undefined;
|
|
1911
1977
|
autoResumeScheduled?: boolean | undefined;
|
|
1912
1978
|
browserOpenRequests?: {
|
|
1913
1979
|
requestId: string;
|
|
@@ -2040,6 +2106,9 @@ export declare const processesContract: {
|
|
|
2040
2106
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
2041
2107
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
2042
2108
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
2109
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
2110
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
2111
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
2043
2112
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
2044
2113
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2045
2114
|
requestId: z.ZodString;
|
|
@@ -2122,6 +2191,9 @@ export declare const processesContract: {
|
|
|
2122
2191
|
widgetData?: unknown;
|
|
2123
2192
|
supportsResume?: boolean | undefined;
|
|
2124
2193
|
hasSavedState?: boolean | undefined;
|
|
2194
|
+
supportsResurrect?: boolean | undefined;
|
|
2195
|
+
hasUnsavedWork?: boolean | undefined;
|
|
2196
|
+
resurrecting?: boolean | undefined;
|
|
2125
2197
|
autoResumeScheduled?: boolean | undefined;
|
|
2126
2198
|
browserOpenRequests?: {
|
|
2127
2199
|
requestId: string;
|
|
@@ -2177,6 +2249,9 @@ export declare const processesContract: {
|
|
|
2177
2249
|
widgetData?: unknown;
|
|
2178
2250
|
supportsResume?: boolean | undefined;
|
|
2179
2251
|
hasSavedState?: boolean | undefined;
|
|
2252
|
+
supportsResurrect?: boolean | undefined;
|
|
2253
|
+
hasUnsavedWork?: boolean | undefined;
|
|
2254
|
+
resurrecting?: boolean | undefined;
|
|
2180
2255
|
autoResumeScheduled?: boolean | undefined;
|
|
2181
2256
|
browserOpenRequests?: {
|
|
2182
2257
|
requestId: string;
|
|
@@ -2217,6 +2292,290 @@ export declare const processesContract: {
|
|
|
2217
2292
|
}>;
|
|
2218
2293
|
};
|
|
2219
2294
|
};
|
|
2295
|
+
resurrect: {
|
|
2296
|
+
pathParams: z.ZodObject<{
|
|
2297
|
+
id: z.ZodString;
|
|
2298
|
+
}, "strip", z.ZodTypeAny, {
|
|
2299
|
+
id: string;
|
|
2300
|
+
}, {
|
|
2301
|
+
id: string;
|
|
2302
|
+
}>;
|
|
2303
|
+
query: z.ZodObject<{
|
|
2304
|
+
database: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
2306
|
+
}, "strip", z.ZodTypeAny, {
|
|
2307
|
+
database?: string | undefined;
|
|
2308
|
+
prefix?: string | undefined;
|
|
2309
|
+
}, {
|
|
2310
|
+
database?: string | undefined;
|
|
2311
|
+
prefix?: string | undefined;
|
|
2312
|
+
}>;
|
|
2313
|
+
summary: "Save the work a failed run left on its host, then resume";
|
|
2314
|
+
method: "POST";
|
|
2315
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
2316
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2317
|
+
}, "strip", z.ZodTypeAny, {
|
|
2318
|
+
sessionId?: string | null | undefined;
|
|
2319
|
+
}, {
|
|
2320
|
+
sessionId?: string | null | undefined;
|
|
2321
|
+
}>>;
|
|
2322
|
+
path: "/processes/:id/resurrect";
|
|
2323
|
+
responses: {
|
|
2324
|
+
200: z.ZodObject<{
|
|
2325
|
+
_id: z.ZodString;
|
|
2326
|
+
processId: z.ZodString;
|
|
2327
|
+
name: z.ZodString;
|
|
2328
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2329
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2330
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2331
|
+
rootId: z.ZodString;
|
|
2332
|
+
depth: z.ZodNumber;
|
|
2333
|
+
order: z.ZodNumber;
|
|
2334
|
+
cancellable: z.ZodBoolean;
|
|
2335
|
+
special: z.ZodOptional<z.ZodBoolean>;
|
|
2336
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
2337
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2338
|
+
status: z.ZodObject<{
|
|
2339
|
+
state: z.ZodEnum<["idle", "scheduled", "running", "done", "failed", "cancel_requested", "cancelling", "cancelled"]>;
|
|
2340
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2341
|
+
runningSince: z.ZodOptional<z.ZodDate>;
|
|
2342
|
+
doneAt: z.ZodOptional<z.ZodDate>;
|
|
2343
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2344
|
+
failedAt: z.ZodOptional<z.ZodDate>;
|
|
2345
|
+
stoppedAt: z.ZodOptional<z.ZodDate>;
|
|
2346
|
+
}, "strip", z.ZodTypeAny, {
|
|
2347
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
2348
|
+
error?: string | undefined;
|
|
2349
|
+
runningSince?: Date | undefined;
|
|
2350
|
+
doneAt?: Date | undefined;
|
|
2351
|
+
duration?: number | undefined;
|
|
2352
|
+
failedAt?: Date | undefined;
|
|
2353
|
+
stoppedAt?: Date | undefined;
|
|
2354
|
+
}, {
|
|
2355
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
2356
|
+
error?: string | undefined;
|
|
2357
|
+
runningSince?: Date | undefined;
|
|
2358
|
+
doneAt?: Date | undefined;
|
|
2359
|
+
duration?: number | undefined;
|
|
2360
|
+
failedAt?: Date | undefined;
|
|
2361
|
+
stoppedAt?: Date | undefined;
|
|
2362
|
+
}>;
|
|
2363
|
+
progress: z.ZodObject<{
|
|
2364
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
2365
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2366
|
+
}, "strip", z.ZodTypeAny, {
|
|
2367
|
+
percent: number | null;
|
|
2368
|
+
message?: string | undefined;
|
|
2369
|
+
}, {
|
|
2370
|
+
percent: number | null;
|
|
2371
|
+
message?: string | undefined;
|
|
2372
|
+
}>;
|
|
2373
|
+
log: z.ZodArray<z.ZodObject<{
|
|
2374
|
+
timestamp: z.ZodDate;
|
|
2375
|
+
level: z.ZodEnum<["event", "info", "debug", "warning", "error"]>;
|
|
2376
|
+
message: z.ZodString;
|
|
2377
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2378
|
+
}, "strip", z.ZodTypeAny, {
|
|
2379
|
+
message: string;
|
|
2380
|
+
timestamp: Date;
|
|
2381
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
2382
|
+
data?: Record<string, unknown> | undefined;
|
|
2383
|
+
}, {
|
|
2384
|
+
message: string;
|
|
2385
|
+
timestamp: Date;
|
|
2386
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
2387
|
+
data?: Record<string, unknown> | undefined;
|
|
2388
|
+
}>, "many">;
|
|
2389
|
+
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2390
|
+
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
2391
|
+
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
2392
|
+
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
2393
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
2394
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
2395
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
2396
|
+
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
2397
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2398
|
+
requestId: z.ZodString;
|
|
2399
|
+
url: z.ZodString;
|
|
2400
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2401
|
+
}, "strip", z.ZodTypeAny, {
|
|
2402
|
+
requestId: string;
|
|
2403
|
+
url: string;
|
|
2404
|
+
createdAt?: Date | undefined;
|
|
2405
|
+
}, {
|
|
2406
|
+
requestId: string;
|
|
2407
|
+
url: string;
|
|
2408
|
+
createdAt?: Date | undefined;
|
|
2409
|
+
}>, "many">>;
|
|
2410
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2411
|
+
requestId: z.ZodString;
|
|
2412
|
+
type: z.ZodLiteral<"attention">;
|
|
2413
|
+
reason: z.ZodString;
|
|
2414
|
+
}, "strip", z.ZodTypeAny, {
|
|
2415
|
+
type: "attention";
|
|
2416
|
+
requestId: string;
|
|
2417
|
+
reason: string;
|
|
2418
|
+
}, {
|
|
2419
|
+
type: "attention";
|
|
2420
|
+
requestId: string;
|
|
2421
|
+
reason: string;
|
|
2422
|
+
}>, z.ZodObject<{
|
|
2423
|
+
requestId: z.ZodString;
|
|
2424
|
+
type: z.ZodLiteral<"client">;
|
|
2425
|
+
keyword: z.ZodString;
|
|
2426
|
+
data: z.ZodUnknown;
|
|
2427
|
+
}, "strip", z.ZodTypeAny, {
|
|
2428
|
+
type: "client";
|
|
2429
|
+
requestId: string;
|
|
2430
|
+
keyword: string;
|
|
2431
|
+
data?: unknown;
|
|
2432
|
+
}, {
|
|
2433
|
+
type: "client";
|
|
2434
|
+
requestId: string;
|
|
2435
|
+
keyword: string;
|
|
2436
|
+
data?: unknown;
|
|
2437
|
+
}>]>, "many">>;
|
|
2438
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2439
|
+
createdAt: z.ZodDate;
|
|
2440
|
+
}, "strip", z.ZodTypeAny, {
|
|
2441
|
+
status: {
|
|
2442
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
2443
|
+
error?: string | undefined;
|
|
2444
|
+
runningSince?: Date | undefined;
|
|
2445
|
+
doneAt?: Date | undefined;
|
|
2446
|
+
duration?: number | undefined;
|
|
2447
|
+
failedAt?: Date | undefined;
|
|
2448
|
+
stoppedAt?: Date | undefined;
|
|
2449
|
+
};
|
|
2450
|
+
createdAt: Date;
|
|
2451
|
+
_id: string;
|
|
2452
|
+
processId: string;
|
|
2453
|
+
name: string;
|
|
2454
|
+
rootId: string;
|
|
2455
|
+
depth: number;
|
|
2456
|
+
order: number;
|
|
2457
|
+
cancellable: boolean;
|
|
2458
|
+
progress: {
|
|
2459
|
+
percent: number | null;
|
|
2460
|
+
message?: string | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
log: {
|
|
2463
|
+
message: string;
|
|
2464
|
+
timestamp: Date;
|
|
2465
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
2466
|
+
data?: Record<string, unknown> | undefined;
|
|
2467
|
+
}[];
|
|
2468
|
+
params?: Record<string, unknown> | undefined;
|
|
2469
|
+
warning?: string | undefined;
|
|
2470
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2471
|
+
parentId?: string | undefined;
|
|
2472
|
+
special?: boolean | undefined;
|
|
2473
|
+
description?: string | null | undefined;
|
|
2474
|
+
uiWidget?: string | null | undefined;
|
|
2475
|
+
widgetData?: unknown;
|
|
2476
|
+
supportsResume?: boolean | undefined;
|
|
2477
|
+
hasSavedState?: boolean | undefined;
|
|
2478
|
+
supportsResurrect?: boolean | undefined;
|
|
2479
|
+
hasUnsavedWork?: boolean | undefined;
|
|
2480
|
+
resurrecting?: boolean | undefined;
|
|
2481
|
+
autoResumeScheduled?: boolean | undefined;
|
|
2482
|
+
browserOpenRequests?: {
|
|
2483
|
+
requestId: string;
|
|
2484
|
+
url: string;
|
|
2485
|
+
createdAt?: Date | undefined;
|
|
2486
|
+
}[] | undefined;
|
|
2487
|
+
sessionEvents?: ({
|
|
2488
|
+
type: "attention";
|
|
2489
|
+
requestId: string;
|
|
2490
|
+
reason: string;
|
|
2491
|
+
} | {
|
|
2492
|
+
type: "client";
|
|
2493
|
+
requestId: string;
|
|
2494
|
+
keyword: string;
|
|
2495
|
+
data?: unknown;
|
|
2496
|
+
})[] | undefined;
|
|
2497
|
+
originatingSessionId?: string | null | undefined;
|
|
2498
|
+
}, {
|
|
2499
|
+
status: {
|
|
2500
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
2501
|
+
error?: string | undefined;
|
|
2502
|
+
runningSince?: Date | undefined;
|
|
2503
|
+
doneAt?: Date | undefined;
|
|
2504
|
+
duration?: number | undefined;
|
|
2505
|
+
failedAt?: Date | undefined;
|
|
2506
|
+
stoppedAt?: Date | undefined;
|
|
2507
|
+
};
|
|
2508
|
+
createdAt: Date;
|
|
2509
|
+
_id: string;
|
|
2510
|
+
processId: string;
|
|
2511
|
+
name: string;
|
|
2512
|
+
rootId: string;
|
|
2513
|
+
depth: number;
|
|
2514
|
+
order: number;
|
|
2515
|
+
cancellable: boolean;
|
|
2516
|
+
progress: {
|
|
2517
|
+
percent: number | null;
|
|
2518
|
+
message?: string | undefined;
|
|
2519
|
+
};
|
|
2520
|
+
log: {
|
|
2521
|
+
message: string;
|
|
2522
|
+
timestamp: Date;
|
|
2523
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
2524
|
+
data?: Record<string, unknown> | undefined;
|
|
2525
|
+
}[];
|
|
2526
|
+
params?: Record<string, unknown> | undefined;
|
|
2527
|
+
warning?: string | undefined;
|
|
2528
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2529
|
+
parentId?: string | undefined;
|
|
2530
|
+
special?: boolean | undefined;
|
|
2531
|
+
description?: string | null | undefined;
|
|
2532
|
+
uiWidget?: string | null | undefined;
|
|
2533
|
+
widgetData?: unknown;
|
|
2534
|
+
supportsResume?: boolean | undefined;
|
|
2535
|
+
hasSavedState?: boolean | undefined;
|
|
2536
|
+
supportsResurrect?: boolean | undefined;
|
|
2537
|
+
hasUnsavedWork?: boolean | undefined;
|
|
2538
|
+
resurrecting?: boolean | undefined;
|
|
2539
|
+
autoResumeScheduled?: boolean | undefined;
|
|
2540
|
+
browserOpenRequests?: {
|
|
2541
|
+
requestId: string;
|
|
2542
|
+
url: string;
|
|
2543
|
+
createdAt?: Date | undefined;
|
|
2544
|
+
}[] | undefined;
|
|
2545
|
+
sessionEvents?: ({
|
|
2546
|
+
type: "attention";
|
|
2547
|
+
requestId: string;
|
|
2548
|
+
reason: string;
|
|
2549
|
+
} | {
|
|
2550
|
+
type: "client";
|
|
2551
|
+
requestId: string;
|
|
2552
|
+
keyword: string;
|
|
2553
|
+
data?: unknown;
|
|
2554
|
+
})[] | undefined;
|
|
2555
|
+
originatingSessionId?: string | null | undefined;
|
|
2556
|
+
}>;
|
|
2557
|
+
404: z.ZodObject<{
|
|
2558
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
2559
|
+
message: z.ZodString;
|
|
2560
|
+
}, "strip", z.ZodTypeAny, {
|
|
2561
|
+
message: string;
|
|
2562
|
+
reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
|
|
2563
|
+
}, {
|
|
2564
|
+
message: string;
|
|
2565
|
+
reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
|
|
2566
|
+
}>;
|
|
2567
|
+
409: z.ZodObject<{
|
|
2568
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
2569
|
+
message: z.ZodString;
|
|
2570
|
+
}, "strip", z.ZodTypeAny, {
|
|
2571
|
+
message: string;
|
|
2572
|
+
reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
|
|
2573
|
+
}, {
|
|
2574
|
+
message: string;
|
|
2575
|
+
reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
|
|
2576
|
+
}>;
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2220
2579
|
resync: {
|
|
2221
2580
|
query: z.ZodObject<{
|
|
2222
2581
|
database: z.ZodOptional<z.ZodString>;
|
|
@@ -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;
|
|
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;AAiCxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
package/dist/api-to-frontend.js
CHANGED
|
@@ -2,7 +2,7 @@ import { initContract } from '@ts-rest/core';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { PaginationQuerySchema, PaginatedResponseSchema, ErrorSchema, ObjectIdSchema, ProcessIdParamSchema } from './schemas/common.js';
|
|
4
4
|
import { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema } from './schemas/process.js';
|
|
5
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason } from './engine-failure-reasons.js';
|
|
5
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason } from './engine-failure-reasons.js';
|
|
6
6
|
const c = initContract();
|
|
7
7
|
const LaunchErrorBody = z.object({
|
|
8
8
|
reason: LaunchFailureReason,
|
|
@@ -16,6 +16,7 @@ const DismissErrorBody = z.object({
|
|
|
16
16
|
reason: DismissFailureReason,
|
|
17
17
|
message: z.string(),
|
|
18
18
|
});
|
|
19
|
+
const ResurrectErrorBody = z.object({ reason: ResurrectFailureReason, message: z.string() });
|
|
19
20
|
const ProcessTreeNodeSchema = ProcessSchema.extend({
|
|
20
21
|
children: z.array(z.lazy(() => ProcessSchema.extend({ children: z.array(z.any()) }))),
|
|
21
22
|
});
|
|
@@ -139,6 +140,21 @@ export const processesContract = c.router({
|
|
|
139
140
|
},
|
|
140
141
|
summary: 'Dismiss process (reset to idle)',
|
|
141
142
|
},
|
|
143
|
+
resurrect: {
|
|
144
|
+
method: 'POST',
|
|
145
|
+
path: '/processes/:id/resurrect',
|
|
146
|
+
pathParams: z.object({ id: ProcessIdParamSchema }),
|
|
147
|
+
query: InstanceQuerySchema,
|
|
148
|
+
body: z.object({
|
|
149
|
+
sessionId: z.string().nullable().optional(),
|
|
150
|
+
}).optional(),
|
|
151
|
+
responses: {
|
|
152
|
+
200: ProcessSchema,
|
|
153
|
+
404: ResurrectErrorBody,
|
|
154
|
+
409: ResurrectErrorBody,
|
|
155
|
+
},
|
|
156
|
+
summary: 'Save the work a failed run left on its host, then resume',
|
|
157
|
+
},
|
|
142
158
|
resync: {
|
|
143
159
|
method: 'POST',
|
|
144
160
|
path: '/processes/resync',
|
|
@@ -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,MAAM,6BAA6B,CAAC;
|
|
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,mB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EAAE;SAC5C,CAAC,CAAC,QAAQ,EAAE;QACb,SAAS,EAAE;YACT,GAAG,EAAE,aAAa;YAClB,GAAG,EAAE,kBAAkB;YACvB,GAAG,EAAE,kBAAkB;SACxB;QACD,OAAO,EAAE,0DAA0D;KACpE;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE,EAAE,CAAC;QACzG,SAAS,EAAE;YACT,GAAG,EAAE,CAAC,CAAC,MAAM,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"}
|
|
@@ -2,11 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const LaunchFailureReason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked"]>;
|
|
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
|
+
export declare const ResurrectFailureReason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
5
6
|
export declare const GroupCancelFailureReason: z.ZodEnum<["invalid-persist-without-block"]>;
|
|
6
7
|
export declare const BlockLaunchesFailureReason: z.ZodEnum<["invalid-filter"]>;
|
|
7
8
|
export type LaunchFailureReason = z.infer<typeof LaunchFailureReason>;
|
|
8
9
|
export type CancelFailureReason = z.infer<typeof CancelFailureReason>;
|
|
9
10
|
export type DismissFailureReason = z.infer<typeof DismissFailureReason>;
|
|
11
|
+
export type ResurrectFailureReason = z.infer<typeof ResurrectFailureReason>;
|
|
10
12
|
export type GroupCancelFailureReason = z.infer<typeof GroupCancelFailureReason>;
|
|
11
13
|
export type BlockLaunchesFailureReason = z.infer<typeof BlockLaunchesFailureReason>;
|
|
12
14
|
//# sourceMappingURL=engine-failure-reasons.d.ts.map
|
|
@@ -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,mFAK9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAG/B,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,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
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,mFAK9B,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"}
|
|
@@ -19,6 +19,14 @@ export const DismissFailureReason = z.enum([
|
|
|
19
19
|
'not-found',
|
|
20
20
|
'not-dismissable',
|
|
21
21
|
]);
|
|
22
|
+
export const ResurrectFailureReason = z.enum([
|
|
23
|
+
'not-found',
|
|
24
|
+
'not-resurrectable',
|
|
25
|
+
'no-resurrect-support',
|
|
26
|
+
'resurrect-in-progress',
|
|
27
|
+
'launch-blocked',
|
|
28
|
+
'shutting-down',
|
|
29
|
+
]);
|
|
22
30
|
export const GroupCancelFailureReason = z.enum([
|
|
23
31
|
'invalid-persist-without-block',
|
|
24
32
|
]);
|
|
@@ -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;CACjB,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,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"}
|
|
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,O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