optio-contracts 0.7.0 → 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 CHANGED
@@ -34,12 +34,13 @@ The package hosts two contract files. Contract files follow `<server>-to-<client
34
34
 
35
35
  ### `processesContract` (HTTP, ts-rest)
36
36
 
37
- ts-rest router with 11 endpoints, used by `optio-ui` to call `optio-api`. Every endpoint takes the optional query parameters `?database=&prefix=` that select the optio instance; `:id` is either the process `_id` or its `processId`:
37
+ ts-rest router with 12 endpoints, used by `optio-ui` to call `optio-api`. Every endpoint takes the optional query parameters `?database=&prefix=` that select the optio instance; `:id` is either the process `_id` or its `processId`:
38
38
 
39
39
  | Name | Method | Path |
40
40
  |------|--------|------|
41
41
  | `list` | GET | `/processes` |
42
42
  | `get` | GET | `/processes/:id` |
43
+ | `getResult` | GET | `/processes/:id/result` |
43
44
  | `getTree` | GET | `/processes/:id/tree` |
44
45
  | `getLog` | GET | `/processes/:id/log` |
45
46
  | `getTreeLog` | GET | `/processes/:id/tree/log` |
@@ -123,10 +123,24 @@ export declare const processesContract: {
123
123
  level: "error" | "event" | "info" | "debug" | "warning";
124
124
  data?: Record<string, unknown> | undefined;
125
125
  }>, "many">;
126
+ result: z.ZodOptional<z.ZodObject<{
127
+ filename: z.ZodString;
128
+ contentType: z.ZodString;
129
+ size: z.ZodNumber;
130
+ }, "strip", z.ZodTypeAny, {
131
+ filename: string;
132
+ contentType: string;
133
+ size: number;
134
+ }, {
135
+ filename: string;
136
+ contentType: string;
137
+ size: number;
138
+ }>>;
126
139
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
140
  widgetData: z.ZodOptional<z.ZodUnknown>;
128
141
  taskFactory: z.ZodOptional<z.ZodBoolean>;
129
142
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
143
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
130
144
  supportsResume: z.ZodOptional<z.ZodBoolean>;
131
145
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
132
146
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -210,10 +224,16 @@ export declare const processesContract: {
210
224
  parentId?: string | undefined;
211
225
  special?: boolean | undefined;
212
226
  description?: string | null | undefined;
227
+ result?: {
228
+ filename: string;
229
+ contentType: string;
230
+ size: number;
231
+ } | undefined;
213
232
  uiWidget?: string | null | undefined;
214
233
  widgetData?: unknown;
215
234
  taskFactory?: boolean | undefined;
216
235
  parameters?: unknown[] | undefined;
236
+ ttlSeconds?: number | null | undefined;
217
237
  supportsResume?: boolean | undefined;
218
238
  hasSavedState?: boolean | undefined;
219
239
  supportsResurrect?: boolean | undefined;
@@ -270,10 +290,16 @@ export declare const processesContract: {
270
290
  parentId?: string | undefined;
271
291
  special?: boolean | undefined;
272
292
  description?: string | null | undefined;
293
+ result?: {
294
+ filename: string;
295
+ contentType: string;
296
+ size: number;
297
+ } | undefined;
273
298
  uiWidget?: string | null | undefined;
274
299
  widgetData?: unknown;
275
300
  taskFactory?: boolean | undefined;
276
301
  parameters?: unknown[] | undefined;
302
+ ttlSeconds?: number | null | undefined;
277
303
  supportsResume?: boolean | undefined;
278
304
  hasSavedState?: boolean | undefined;
279
305
  supportsResurrect?: boolean | undefined;
@@ -334,10 +360,16 @@ export declare const processesContract: {
334
360
  parentId?: string | undefined;
335
361
  special?: boolean | undefined;
336
362
  description?: string | null | undefined;
363
+ result?: {
364
+ filename: string;
365
+ contentType: string;
366
+ size: number;
367
+ } | undefined;
337
368
  uiWidget?: string | null | undefined;
338
369
  widgetData?: unknown;
339
370
  taskFactory?: boolean | undefined;
340
371
  parameters?: unknown[] | undefined;
372
+ ttlSeconds?: number | null | undefined;
341
373
  supportsResume?: boolean | undefined;
342
374
  hasSavedState?: boolean | undefined;
343
375
  supportsResurrect?: boolean | undefined;
@@ -398,10 +430,16 @@ export declare const processesContract: {
398
430
  parentId?: string | undefined;
399
431
  special?: boolean | undefined;
400
432
  description?: string | null | undefined;
433
+ result?: {
434
+ filename: string;
435
+ contentType: string;
436
+ size: number;
437
+ } | undefined;
401
438
  uiWidget?: string | null | undefined;
402
439
  widgetData?: unknown;
403
440
  taskFactory?: boolean | undefined;
404
441
  parameters?: unknown[] | undefined;
442
+ ttlSeconds?: number | null | undefined;
405
443
  supportsResume?: boolean | undefined;
406
444
  hasSavedState?: boolean | undefined;
407
445
  supportsResurrect?: boolean | undefined;
@@ -517,10 +555,24 @@ export declare const processesContract: {
517
555
  level: "error" | "event" | "info" | "debug" | "warning";
518
556
  data?: Record<string, unknown> | undefined;
519
557
  }>, "many">;
558
+ result: z.ZodOptional<z.ZodObject<{
559
+ filename: z.ZodString;
560
+ contentType: z.ZodString;
561
+ size: z.ZodNumber;
562
+ }, "strip", z.ZodTypeAny, {
563
+ filename: string;
564
+ contentType: string;
565
+ size: number;
566
+ }, {
567
+ filename: string;
568
+ contentType: string;
569
+ size: number;
570
+ }>>;
520
571
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
572
  widgetData: z.ZodOptional<z.ZodUnknown>;
522
573
  taskFactory: z.ZodOptional<z.ZodBoolean>;
523
574
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
575
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
524
576
  supportsResume: z.ZodOptional<z.ZodBoolean>;
525
577
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
526
578
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -604,10 +656,16 @@ export declare const processesContract: {
604
656
  parentId?: string | undefined;
605
657
  special?: boolean | undefined;
606
658
  description?: string | null | undefined;
659
+ result?: {
660
+ filename: string;
661
+ contentType: string;
662
+ size: number;
663
+ } | undefined;
607
664
  uiWidget?: string | null | undefined;
608
665
  widgetData?: unknown;
609
666
  taskFactory?: boolean | undefined;
610
667
  parameters?: unknown[] | undefined;
668
+ ttlSeconds?: number | null | undefined;
611
669
  supportsResume?: boolean | undefined;
612
670
  hasSavedState?: boolean | undefined;
613
671
  supportsResurrect?: boolean | undefined;
@@ -664,10 +722,16 @@ export declare const processesContract: {
664
722
  parentId?: string | undefined;
665
723
  special?: boolean | undefined;
666
724
  description?: string | null | undefined;
725
+ result?: {
726
+ filename: string;
727
+ contentType: string;
728
+ size: number;
729
+ } | undefined;
667
730
  uiWidget?: string | null | undefined;
668
731
  widgetData?: unknown;
669
732
  taskFactory?: boolean | undefined;
670
733
  parameters?: unknown[] | undefined;
734
+ ttlSeconds?: number | null | undefined;
671
735
  supportsResume?: boolean | undefined;
672
736
  hasSavedState?: boolean | undefined;
673
737
  supportsResurrect?: boolean | undefined;
@@ -700,6 +764,41 @@ export declare const processesContract: {
700
764
  }>;
701
765
  };
702
766
  };
767
+ getResult: {
768
+ pathParams: z.ZodObject<{
769
+ id: z.ZodString;
770
+ }, "strip", z.ZodTypeAny, {
771
+ id: string;
772
+ }, {
773
+ id: string;
774
+ }>;
775
+ query: z.ZodObject<{
776
+ database: z.ZodOptional<z.ZodString>;
777
+ prefix: z.ZodOptional<z.ZodString>;
778
+ }, "strip", z.ZodTypeAny, {
779
+ database?: string | undefined;
780
+ prefix?: string | undefined;
781
+ }, {
782
+ database?: string | undefined;
783
+ prefix?: string | undefined;
784
+ }>;
785
+ summary: "Download a process's result file";
786
+ method: "GET";
787
+ path: "/processes/:id/result";
788
+ responses: {
789
+ 200: import("@ts-rest/core").ContractOtherResponse<z.ZodUnknown>;
790
+ 404: z.ZodObject<{
791
+ reason: z.ZodEnum<["not-found", "no-result"]>;
792
+ message: z.ZodString;
793
+ }, "strip", z.ZodTypeAny, {
794
+ message: string;
795
+ reason: "not-found" | "no-result";
796
+ }, {
797
+ message: string;
798
+ reason: "not-found" | "no-result";
799
+ }>;
800
+ };
801
+ };
703
802
  getTree: {
704
803
  pathParams: z.ZodObject<{
705
804
  id: z.ZodString;
@@ -790,10 +889,24 @@ export declare const processesContract: {
790
889
  level: "error" | "event" | "info" | "debug" | "warning";
791
890
  data?: Record<string, unknown> | undefined;
792
891
  }>, "many">;
892
+ result: z.ZodOptional<z.ZodObject<{
893
+ filename: z.ZodString;
894
+ contentType: z.ZodString;
895
+ size: z.ZodNumber;
896
+ }, "strip", z.ZodTypeAny, {
897
+ filename: string;
898
+ contentType: string;
899
+ size: number;
900
+ }, {
901
+ filename: string;
902
+ contentType: string;
903
+ size: number;
904
+ }>>;
793
905
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
794
906
  widgetData: z.ZodOptional<z.ZodUnknown>;
795
907
  taskFactory: z.ZodOptional<z.ZodBoolean>;
796
908
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
909
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
797
910
  supportsResume: z.ZodOptional<z.ZodBoolean>;
798
911
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
799
912
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -909,10 +1022,24 @@ export declare const processesContract: {
909
1022
  level: "error" | "event" | "info" | "debug" | "warning";
910
1023
  data?: Record<string, unknown> | undefined;
911
1024
  }>, "many">;
1025
+ result: z.ZodOptional<z.ZodObject<{
1026
+ filename: z.ZodString;
1027
+ contentType: z.ZodString;
1028
+ size: z.ZodNumber;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ filename: string;
1031
+ contentType: string;
1032
+ size: number;
1033
+ }, {
1034
+ filename: string;
1035
+ contentType: string;
1036
+ size: number;
1037
+ }>>;
912
1038
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
1039
  widgetData: z.ZodOptional<z.ZodUnknown>;
914
1040
  taskFactory: z.ZodOptional<z.ZodBoolean>;
915
1041
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1042
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
916
1043
  supportsResume: z.ZodOptional<z.ZodBoolean>;
917
1044
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
918
1045
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -999,10 +1126,16 @@ export declare const processesContract: {
999
1126
  parentId?: string | undefined;
1000
1127
  special?: boolean | undefined;
1001
1128
  description?: string | null | undefined;
1129
+ result?: {
1130
+ filename: string;
1131
+ contentType: string;
1132
+ size: number;
1133
+ } | undefined;
1002
1134
  uiWidget?: string | null | undefined;
1003
1135
  widgetData?: unknown;
1004
1136
  taskFactory?: boolean | undefined;
1005
1137
  parameters?: unknown[] | undefined;
1138
+ ttlSeconds?: number | null | undefined;
1006
1139
  supportsResume?: boolean | undefined;
1007
1140
  hasSavedState?: boolean | undefined;
1008
1141
  supportsResurrect?: boolean | undefined;
@@ -1060,10 +1193,16 @@ export declare const processesContract: {
1060
1193
  parentId?: string | undefined;
1061
1194
  special?: boolean | undefined;
1062
1195
  description?: string | null | undefined;
1196
+ result?: {
1197
+ filename: string;
1198
+ contentType: string;
1199
+ size: number;
1200
+ } | undefined;
1063
1201
  uiWidget?: string | null | undefined;
1064
1202
  widgetData?: unknown;
1065
1203
  taskFactory?: boolean | undefined;
1066
1204
  parameters?: unknown[] | undefined;
1205
+ ttlSeconds?: number | null | undefined;
1067
1206
  supportsResume?: boolean | undefined;
1068
1207
  hasSavedState?: boolean | undefined;
1069
1208
  supportsResurrect?: boolean | undefined;
@@ -1150,10 +1289,16 @@ export declare const processesContract: {
1150
1289
  parentId?: string | undefined;
1151
1290
  special?: boolean | undefined;
1152
1291
  description?: string | null | undefined;
1292
+ result?: {
1293
+ filename: string;
1294
+ contentType: string;
1295
+ size: number;
1296
+ } | undefined;
1153
1297
  uiWidget?: string | null | undefined;
1154
1298
  widgetData?: unknown;
1155
1299
  taskFactory?: boolean | undefined;
1156
1300
  parameters?: unknown[] | undefined;
1301
+ ttlSeconds?: number | null | undefined;
1157
1302
  supportsResume?: boolean | undefined;
1158
1303
  hasSavedState?: boolean | undefined;
1159
1304
  supportsResurrect?: boolean | undefined;
@@ -1183,10 +1328,16 @@ export declare const processesContract: {
1183
1328
  parentId?: string | undefined;
1184
1329
  special?: boolean | undefined;
1185
1330
  description?: string | null | undefined;
1331
+ result?: {
1332
+ filename: string;
1333
+ contentType: string;
1334
+ size: number;
1335
+ } | undefined;
1186
1336
  uiWidget?: string | null | undefined;
1187
1337
  widgetData?: unknown;
1188
1338
  taskFactory?: boolean | undefined;
1189
1339
  parameters?: unknown[] | undefined;
1340
+ ttlSeconds?: number | null | undefined;
1190
1341
  supportsResume?: boolean | undefined;
1191
1342
  hasSavedState?: boolean | undefined;
1192
1343
  supportsResurrect?: boolean | undefined;
@@ -1272,10 +1423,16 @@ export declare const processesContract: {
1272
1423
  parentId?: string | undefined;
1273
1424
  special?: boolean | undefined;
1274
1425
  description?: string | null | undefined;
1426
+ result?: {
1427
+ filename: string;
1428
+ contentType: string;
1429
+ size: number;
1430
+ } | undefined;
1275
1431
  uiWidget?: string | null | undefined;
1276
1432
  widgetData?: unknown;
1277
1433
  taskFactory?: boolean | undefined;
1278
1434
  parameters?: unknown[] | undefined;
1435
+ ttlSeconds?: number | null | undefined;
1279
1436
  supportsResume?: boolean | undefined;
1280
1437
  hasSavedState?: boolean | undefined;
1281
1438
  supportsResurrect?: boolean | undefined;
@@ -1305,10 +1462,16 @@ export declare const processesContract: {
1305
1462
  parentId?: string | undefined;
1306
1463
  special?: boolean | undefined;
1307
1464
  description?: string | null | undefined;
1465
+ result?: {
1466
+ filename: string;
1467
+ contentType: string;
1468
+ size: number;
1469
+ } | undefined;
1308
1470
  uiWidget?: string | null | undefined;
1309
1471
  widgetData?: unknown;
1310
1472
  taskFactory?: boolean | undefined;
1311
1473
  parameters?: unknown[] | undefined;
1474
+ ttlSeconds?: number | null | undefined;
1312
1475
  supportsResume?: boolean | undefined;
1313
1476
  hasSavedState?: boolean | undefined;
1314
1477
  supportsResurrect?: boolean | undefined;
@@ -1622,14 +1785,17 @@ export declare const processesContract: {
1622
1785
  resume: z.ZodOptional<z.ZodBoolean>;
1623
1786
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1624
1787
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1788
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
1625
1789
  }, "strip", z.ZodTypeAny, {
1626
1790
  params?: Record<string, unknown> | undefined;
1627
1791
  resume?: boolean | undefined;
1628
1792
  sessionId?: string | null | undefined;
1793
+ ephemeral?: boolean | undefined;
1629
1794
  }, {
1630
1795
  params?: Record<string, unknown> | undefined;
1631
1796
  resume?: boolean | undefined;
1632
1797
  sessionId?: string | null | undefined;
1798
+ ephemeral?: boolean | undefined;
1633
1799
  }>>;
1634
1800
  path: "/processes/:id/launch";
1635
1801
  responses: {
@@ -1698,10 +1864,24 @@ export declare const processesContract: {
1698
1864
  level: "error" | "event" | "info" | "debug" | "warning";
1699
1865
  data?: Record<string, unknown> | undefined;
1700
1866
  }>, "many">;
1867
+ result: z.ZodOptional<z.ZodObject<{
1868
+ filename: z.ZodString;
1869
+ contentType: z.ZodString;
1870
+ size: z.ZodNumber;
1871
+ }, "strip", z.ZodTypeAny, {
1872
+ filename: string;
1873
+ contentType: string;
1874
+ size: number;
1875
+ }, {
1876
+ filename: string;
1877
+ contentType: string;
1878
+ size: number;
1879
+ }>>;
1701
1880
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
1881
  widgetData: z.ZodOptional<z.ZodUnknown>;
1703
1882
  taskFactory: z.ZodOptional<z.ZodBoolean>;
1704
1883
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1884
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1705
1885
  supportsResume: z.ZodOptional<z.ZodBoolean>;
1706
1886
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
1707
1887
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -1785,10 +1965,16 @@ export declare const processesContract: {
1785
1965
  parentId?: string | undefined;
1786
1966
  special?: boolean | undefined;
1787
1967
  description?: string | null | undefined;
1968
+ result?: {
1969
+ filename: string;
1970
+ contentType: string;
1971
+ size: number;
1972
+ } | undefined;
1788
1973
  uiWidget?: string | null | undefined;
1789
1974
  widgetData?: unknown;
1790
1975
  taskFactory?: boolean | undefined;
1791
1976
  parameters?: unknown[] | undefined;
1977
+ ttlSeconds?: number | null | undefined;
1792
1978
  supportsResume?: boolean | undefined;
1793
1979
  hasSavedState?: boolean | undefined;
1794
1980
  supportsResurrect?: boolean | undefined;
@@ -1845,10 +2031,16 @@ export declare const processesContract: {
1845
2031
  parentId?: string | undefined;
1846
2032
  special?: boolean | undefined;
1847
2033
  description?: string | null | undefined;
2034
+ result?: {
2035
+ filename: string;
2036
+ contentType: string;
2037
+ size: number;
2038
+ } | undefined;
1848
2039
  uiWidget?: string | null | undefined;
1849
2040
  widgetData?: unknown;
1850
2041
  taskFactory?: boolean | undefined;
1851
2042
  parameters?: unknown[] | undefined;
2043
+ ttlSeconds?: number | null | undefined;
1852
2044
  supportsResume?: boolean | undefined;
1853
2045
  hasSavedState?: boolean | undefined;
1854
2046
  supportsResurrect?: boolean | undefined;
@@ -1873,34 +2065,34 @@ export declare const processesContract: {
1873
2065
  originatingSessionId?: string | null | undefined;
1874
2066
  }>;
1875
2067
  400: z.ZodObject<{
1876
- reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
2068
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
1877
2069
  message: z.ZodString;
1878
2070
  }, "strip", z.ZodTypeAny, {
1879
2071
  message: string;
1880
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2072
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
1881
2073
  }, {
1882
2074
  message: string;
1883
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2075
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
1884
2076
  }>;
1885
2077
  404: z.ZodObject<{
1886
- reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
2078
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
1887
2079
  message: z.ZodString;
1888
2080
  }, "strip", z.ZodTypeAny, {
1889
2081
  message: string;
1890
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2082
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
1891
2083
  }, {
1892
2084
  message: string;
1893
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2085
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
1894
2086
  }>;
1895
2087
  409: z.ZodObject<{
1896
- reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
2088
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
1897
2089
  message: z.ZodString;
1898
2090
  }, "strip", z.ZodTypeAny, {
1899
2091
  message: string;
1900
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2092
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
1901
2093
  }, {
1902
2094
  message: string;
1903
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2095
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
1904
2096
  }>;
1905
2097
  };
1906
2098
  };
@@ -1992,10 +2184,24 @@ export declare const processesContract: {
1992
2184
  level: "error" | "event" | "info" | "debug" | "warning";
1993
2185
  data?: Record<string, unknown> | undefined;
1994
2186
  }>, "many">;
2187
+ result: z.ZodOptional<z.ZodObject<{
2188
+ filename: z.ZodString;
2189
+ contentType: z.ZodString;
2190
+ size: z.ZodNumber;
2191
+ }, "strip", z.ZodTypeAny, {
2192
+ filename: string;
2193
+ contentType: string;
2194
+ size: number;
2195
+ }, {
2196
+ filename: string;
2197
+ contentType: string;
2198
+ size: number;
2199
+ }>>;
1995
2200
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1996
2201
  widgetData: z.ZodOptional<z.ZodUnknown>;
1997
2202
  taskFactory: z.ZodOptional<z.ZodBoolean>;
1998
2203
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2204
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1999
2205
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2000
2206
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2001
2207
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2079,10 +2285,16 @@ export declare const processesContract: {
2079
2285
  parentId?: string | undefined;
2080
2286
  special?: boolean | undefined;
2081
2287
  description?: string | null | undefined;
2288
+ result?: {
2289
+ filename: string;
2290
+ contentType: string;
2291
+ size: number;
2292
+ } | undefined;
2082
2293
  uiWidget?: string | null | undefined;
2083
2294
  widgetData?: unknown;
2084
2295
  taskFactory?: boolean | undefined;
2085
2296
  parameters?: unknown[] | undefined;
2297
+ ttlSeconds?: number | null | undefined;
2086
2298
  supportsResume?: boolean | undefined;
2087
2299
  hasSavedState?: boolean | undefined;
2088
2300
  supportsResurrect?: boolean | undefined;
@@ -2139,10 +2351,16 @@ export declare const processesContract: {
2139
2351
  parentId?: string | undefined;
2140
2352
  special?: boolean | undefined;
2141
2353
  description?: string | null | undefined;
2354
+ result?: {
2355
+ filename: string;
2356
+ contentType: string;
2357
+ size: number;
2358
+ } | undefined;
2142
2359
  uiWidget?: string | null | undefined;
2143
2360
  widgetData?: unknown;
2144
2361
  taskFactory?: boolean | undefined;
2145
2362
  parameters?: unknown[] | undefined;
2363
+ ttlSeconds?: number | null | undefined;
2146
2364
  supportsResume?: boolean | undefined;
2147
2365
  hasSavedState?: boolean | undefined;
2148
2366
  supportsResurrect?: boolean | undefined;
@@ -2211,7 +2429,7 @@ export declare const processesContract: {
2211
2429
  body: typeof import("@ts-rest/core").ContractNoBody;
2212
2430
  path: "/processes/:id/dismiss";
2213
2431
  responses: {
2214
- 200: z.ZodObject<{
2432
+ 200: z.ZodNullable<z.ZodObject<{
2215
2433
  _id: z.ZodString;
2216
2434
  processId: z.ZodString;
2217
2435
  name: z.ZodString;
@@ -2276,10 +2494,24 @@ export declare const processesContract: {
2276
2494
  level: "error" | "event" | "info" | "debug" | "warning";
2277
2495
  data?: Record<string, unknown> | undefined;
2278
2496
  }>, "many">;
2497
+ result: z.ZodOptional<z.ZodObject<{
2498
+ filename: z.ZodString;
2499
+ contentType: z.ZodString;
2500
+ size: z.ZodNumber;
2501
+ }, "strip", z.ZodTypeAny, {
2502
+ filename: string;
2503
+ contentType: string;
2504
+ size: number;
2505
+ }, {
2506
+ filename: string;
2507
+ contentType: string;
2508
+ size: number;
2509
+ }>>;
2279
2510
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2280
2511
  widgetData: z.ZodOptional<z.ZodUnknown>;
2281
2512
  taskFactory: z.ZodOptional<z.ZodBoolean>;
2282
2513
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2514
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2283
2515
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2284
2516
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2285
2517
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2363,10 +2595,16 @@ export declare const processesContract: {
2363
2595
  parentId?: string | undefined;
2364
2596
  special?: boolean | undefined;
2365
2597
  description?: string | null | undefined;
2598
+ result?: {
2599
+ filename: string;
2600
+ contentType: string;
2601
+ size: number;
2602
+ } | undefined;
2366
2603
  uiWidget?: string | null | undefined;
2367
2604
  widgetData?: unknown;
2368
2605
  taskFactory?: boolean | undefined;
2369
2606
  parameters?: unknown[] | undefined;
2607
+ ttlSeconds?: number | null | undefined;
2370
2608
  supportsResume?: boolean | undefined;
2371
2609
  hasSavedState?: boolean | undefined;
2372
2610
  supportsResurrect?: boolean | undefined;
@@ -2423,10 +2661,16 @@ export declare const processesContract: {
2423
2661
  parentId?: string | undefined;
2424
2662
  special?: boolean | undefined;
2425
2663
  description?: string | null | undefined;
2664
+ result?: {
2665
+ filename: string;
2666
+ contentType: string;
2667
+ size: number;
2668
+ } | undefined;
2426
2669
  uiWidget?: string | null | undefined;
2427
2670
  widgetData?: unknown;
2428
2671
  taskFactory?: boolean | undefined;
2429
2672
  parameters?: unknown[] | undefined;
2673
+ ttlSeconds?: number | null | undefined;
2430
2674
  supportsResume?: boolean | undefined;
2431
2675
  hasSavedState?: boolean | undefined;
2432
2676
  supportsResurrect?: boolean | undefined;
@@ -2449,7 +2693,7 @@ export declare const processesContract: {
2449
2693
  data?: unknown;
2450
2694
  })[] | undefined;
2451
2695
  originatingSessionId?: string | null | undefined;
2452
- }>;
2696
+ }>>;
2453
2697
  404: z.ZodObject<{
2454
2698
  reason: z.ZodEnum<["not-found", "not-dismissable"]>;
2455
2699
  message: z.ZodString;
@@ -2566,10 +2810,24 @@ export declare const processesContract: {
2566
2810
  level: "error" | "event" | "info" | "debug" | "warning";
2567
2811
  data?: Record<string, unknown> | undefined;
2568
2812
  }>, "many">;
2813
+ result: z.ZodOptional<z.ZodObject<{
2814
+ filename: z.ZodString;
2815
+ contentType: z.ZodString;
2816
+ size: z.ZodNumber;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ filename: string;
2819
+ contentType: string;
2820
+ size: number;
2821
+ }, {
2822
+ filename: string;
2823
+ contentType: string;
2824
+ size: number;
2825
+ }>>;
2569
2826
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2570
2827
  widgetData: z.ZodOptional<z.ZodUnknown>;
2571
2828
  taskFactory: z.ZodOptional<z.ZodBoolean>;
2572
2829
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2830
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2573
2831
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2574
2832
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2575
2833
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2653,10 +2911,16 @@ export declare const processesContract: {
2653
2911
  parentId?: string | undefined;
2654
2912
  special?: boolean | undefined;
2655
2913
  description?: string | null | undefined;
2914
+ result?: {
2915
+ filename: string;
2916
+ contentType: string;
2917
+ size: number;
2918
+ } | undefined;
2656
2919
  uiWidget?: string | null | undefined;
2657
2920
  widgetData?: unknown;
2658
2921
  taskFactory?: boolean | undefined;
2659
2922
  parameters?: unknown[] | undefined;
2923
+ ttlSeconds?: number | null | undefined;
2660
2924
  supportsResume?: boolean | undefined;
2661
2925
  hasSavedState?: boolean | undefined;
2662
2926
  supportsResurrect?: boolean | undefined;
@@ -2713,10 +2977,16 @@ export declare const processesContract: {
2713
2977
  parentId?: string | undefined;
2714
2978
  special?: boolean | undefined;
2715
2979
  description?: string | null | undefined;
2980
+ result?: {
2981
+ filename: string;
2982
+ contentType: string;
2983
+ size: number;
2984
+ } | undefined;
2716
2985
  uiWidget?: string | null | undefined;
2717
2986
  widgetData?: unknown;
2718
2987
  taskFactory?: boolean | undefined;
2719
2988
  parameters?: unknown[] | undefined;
2989
+ ttlSeconds?: number | null | undefined;
2720
2990
  supportsResume?: boolean | undefined;
2721
2991
  hasSavedState?: boolean | undefined;
2722
2992
  supportsResurrect?: boolean | undefined;