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.
@@ -18,11 +18,11 @@ export declare const ConversationRecordSchema: z.ZodObject<{
18
18
  events: z.ZodArray<z.ZodUnknown, "many">;
19
19
  capturedAt: z.ZodNullable<z.ZodString>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- events: unknown[];
22
21
  capturedAt: string | null;
23
- }, {
24
22
  events: unknown[];
23
+ }, {
25
24
  capturedAt: string | null;
25
+ events: unknown[];
26
26
  }>;
27
27
  export type ConversationRecord = z.infer<typeof ConversationRecordSchema>;
28
28
  export declare const processesContract: {
@@ -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;
@@ -1533,11 +1696,11 @@ export declare const processesContract: {
1533
1696
  events: z.ZodArray<z.ZodUnknown, "many">;
1534
1697
  capturedAt: z.ZodNullable<z.ZodString>;
1535
1698
  }, "strip", z.ZodTypeAny, {
1536
- events: unknown[];
1537
1699
  capturedAt: string | null;
1538
- }, {
1539
1700
  events: unknown[];
1701
+ }, {
1540
1702
  capturedAt: string | null;
1703
+ events: unknown[];
1541
1704
  }>;
1542
1705
  401: z.ZodObject<{
1543
1706
  message: z.ZodString;
@@ -1598,6 +1761,62 @@ export declare const processesContract: {
1598
1761
  }>;
1599
1762
  };
1600
1763
  };
1764
+ getSnapshots: {
1765
+ pathParams: z.ZodObject<{
1766
+ id: z.ZodString;
1767
+ }, "strip", z.ZodTypeAny, {
1768
+ id: string;
1769
+ }, {
1770
+ id: string;
1771
+ }>;
1772
+ query: z.ZodObject<{
1773
+ database: z.ZodOptional<z.ZodString>;
1774
+ prefix: z.ZodOptional<z.ZodString>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ database?: string | undefined;
1777
+ prefix?: string | undefined;
1778
+ }, {
1779
+ database?: string | undefined;
1780
+ prefix?: string | undefined;
1781
+ }>;
1782
+ summary: "List a process's valid snapshots, newest first (a launch's resumeFrom names one)";
1783
+ method: "GET";
1784
+ path: "/processes/:id/snapshots";
1785
+ responses: {
1786
+ 200: z.ZodObject<{
1787
+ snapshots: z.ZodArray<z.ZodObject<{
1788
+ capturedAt: z.ZodString;
1789
+ endState: z.ZodString;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ capturedAt: string;
1792
+ endState: string;
1793
+ }, {
1794
+ capturedAt: string;
1795
+ endState: string;
1796
+ }>, "many">;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ snapshots: {
1799
+ capturedAt: string;
1800
+ endState: string;
1801
+ }[];
1802
+ }, {
1803
+ snapshots: {
1804
+ capturedAt: string;
1805
+ endState: string;
1806
+ }[];
1807
+ }>;
1808
+ 404: z.ZodObject<{
1809
+ reason: z.ZodEnum<["not-found", "no-snapshot-support"]>;
1810
+ message: z.ZodString;
1811
+ }, "strip", z.ZodTypeAny, {
1812
+ message: string;
1813
+ reason: "not-found" | "no-snapshot-support";
1814
+ }, {
1815
+ message: string;
1816
+ reason: "not-found" | "no-snapshot-support";
1817
+ }>;
1818
+ };
1819
+ };
1601
1820
  launch: {
1602
1821
  pathParams: z.ZodObject<{
1603
1822
  id: z.ZodString;
@@ -1620,16 +1839,22 @@ export declare const processesContract: {
1620
1839
  method: "POST";
1621
1840
  body: z.ZodOptional<z.ZodObject<{
1622
1841
  resume: z.ZodOptional<z.ZodBoolean>;
1842
+ resumeFrom: z.ZodOptional<z.ZodString>;
1623
1843
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1624
1844
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1845
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
1625
1846
  }, "strip", z.ZodTypeAny, {
1626
1847
  params?: Record<string, unknown> | undefined;
1627
1848
  resume?: boolean | undefined;
1849
+ resumeFrom?: string | undefined;
1628
1850
  sessionId?: string | null | undefined;
1851
+ ephemeral?: boolean | undefined;
1629
1852
  }, {
1630
1853
  params?: Record<string, unknown> | undefined;
1631
1854
  resume?: boolean | undefined;
1855
+ resumeFrom?: string | undefined;
1632
1856
  sessionId?: string | null | undefined;
1857
+ ephemeral?: boolean | undefined;
1633
1858
  }>>;
1634
1859
  path: "/processes/:id/launch";
1635
1860
  responses: {
@@ -1698,10 +1923,24 @@ export declare const processesContract: {
1698
1923
  level: "error" | "event" | "info" | "debug" | "warning";
1699
1924
  data?: Record<string, unknown> | undefined;
1700
1925
  }>, "many">;
1926
+ result: z.ZodOptional<z.ZodObject<{
1927
+ filename: z.ZodString;
1928
+ contentType: z.ZodString;
1929
+ size: z.ZodNumber;
1930
+ }, "strip", z.ZodTypeAny, {
1931
+ filename: string;
1932
+ contentType: string;
1933
+ size: number;
1934
+ }, {
1935
+ filename: string;
1936
+ contentType: string;
1937
+ size: number;
1938
+ }>>;
1701
1939
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
1940
  widgetData: z.ZodOptional<z.ZodUnknown>;
1703
1941
  taskFactory: z.ZodOptional<z.ZodBoolean>;
1704
1942
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1943
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1705
1944
  supportsResume: z.ZodOptional<z.ZodBoolean>;
1706
1945
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
1707
1946
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -1785,10 +2024,16 @@ export declare const processesContract: {
1785
2024
  parentId?: string | undefined;
1786
2025
  special?: boolean | undefined;
1787
2026
  description?: string | null | undefined;
2027
+ result?: {
2028
+ filename: string;
2029
+ contentType: string;
2030
+ size: number;
2031
+ } | undefined;
1788
2032
  uiWidget?: string | null | undefined;
1789
2033
  widgetData?: unknown;
1790
2034
  taskFactory?: boolean | undefined;
1791
2035
  parameters?: unknown[] | undefined;
2036
+ ttlSeconds?: number | null | undefined;
1792
2037
  supportsResume?: boolean | undefined;
1793
2038
  hasSavedState?: boolean | undefined;
1794
2039
  supportsResurrect?: boolean | undefined;
@@ -1845,10 +2090,16 @@ export declare const processesContract: {
1845
2090
  parentId?: string | undefined;
1846
2091
  special?: boolean | undefined;
1847
2092
  description?: string | null | undefined;
2093
+ result?: {
2094
+ filename: string;
2095
+ contentType: string;
2096
+ size: number;
2097
+ } | undefined;
1848
2098
  uiWidget?: string | null | undefined;
1849
2099
  widgetData?: unknown;
1850
2100
  taskFactory?: boolean | undefined;
1851
2101
  parameters?: unknown[] | undefined;
2102
+ ttlSeconds?: number | null | undefined;
1852
2103
  supportsResume?: boolean | undefined;
1853
2104
  hasSavedState?: boolean | undefined;
1854
2105
  supportsResurrect?: boolean | undefined;
@@ -1873,34 +2124,34 @@ export declare const processesContract: {
1873
2124
  originatingSessionId?: string | null | undefined;
1874
2125
  }>;
1875
2126
  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"]>;
2127
+ 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"]>;
1877
2128
  message: z.ZodString;
1878
2129
  }, "strip", z.ZodTypeAny, {
1879
2130
  message: string;
1880
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2131
+ 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";
1881
2132
  }, {
1882
2133
  message: string;
1883
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2134
+ 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";
1884
2135
  }>;
1885
2136
  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"]>;
2137
+ 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"]>;
1887
2138
  message: z.ZodString;
1888
2139
  }, "strip", z.ZodTypeAny, {
1889
2140
  message: string;
1890
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2141
+ 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";
1891
2142
  }, {
1892
2143
  message: string;
1893
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2144
+ 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";
1894
2145
  }>;
1895
2146
  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"]>;
2147
+ 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"]>;
1897
2148
  message: z.ZodString;
1898
2149
  }, "strip", z.ZodTypeAny, {
1899
2150
  message: string;
1900
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2151
+ 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";
1901
2152
  }, {
1902
2153
  message: string;
1903
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
2154
+ 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";
1904
2155
  }>;
1905
2156
  };
1906
2157
  };
@@ -1992,10 +2243,24 @@ export declare const processesContract: {
1992
2243
  level: "error" | "event" | "info" | "debug" | "warning";
1993
2244
  data?: Record<string, unknown> | undefined;
1994
2245
  }>, "many">;
2246
+ result: z.ZodOptional<z.ZodObject<{
2247
+ filename: z.ZodString;
2248
+ contentType: z.ZodString;
2249
+ size: z.ZodNumber;
2250
+ }, "strip", z.ZodTypeAny, {
2251
+ filename: string;
2252
+ contentType: string;
2253
+ size: number;
2254
+ }, {
2255
+ filename: string;
2256
+ contentType: string;
2257
+ size: number;
2258
+ }>>;
1995
2259
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1996
2260
  widgetData: z.ZodOptional<z.ZodUnknown>;
1997
2261
  taskFactory: z.ZodOptional<z.ZodBoolean>;
1998
2262
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2263
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1999
2264
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2000
2265
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2001
2266
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2079,10 +2344,16 @@ export declare const processesContract: {
2079
2344
  parentId?: string | undefined;
2080
2345
  special?: boolean | undefined;
2081
2346
  description?: string | null | undefined;
2347
+ result?: {
2348
+ filename: string;
2349
+ contentType: string;
2350
+ size: number;
2351
+ } | undefined;
2082
2352
  uiWidget?: string | null | undefined;
2083
2353
  widgetData?: unknown;
2084
2354
  taskFactory?: boolean | undefined;
2085
2355
  parameters?: unknown[] | undefined;
2356
+ ttlSeconds?: number | null | undefined;
2086
2357
  supportsResume?: boolean | undefined;
2087
2358
  hasSavedState?: boolean | undefined;
2088
2359
  supportsResurrect?: boolean | undefined;
@@ -2139,10 +2410,16 @@ export declare const processesContract: {
2139
2410
  parentId?: string | undefined;
2140
2411
  special?: boolean | undefined;
2141
2412
  description?: string | null | undefined;
2413
+ result?: {
2414
+ filename: string;
2415
+ contentType: string;
2416
+ size: number;
2417
+ } | undefined;
2142
2418
  uiWidget?: string | null | undefined;
2143
2419
  widgetData?: unknown;
2144
2420
  taskFactory?: boolean | undefined;
2145
2421
  parameters?: unknown[] | undefined;
2422
+ ttlSeconds?: number | null | undefined;
2146
2423
  supportsResume?: boolean | undefined;
2147
2424
  hasSavedState?: boolean | undefined;
2148
2425
  supportsResurrect?: boolean | undefined;
@@ -2211,7 +2488,7 @@ export declare const processesContract: {
2211
2488
  body: typeof import("@ts-rest/core").ContractNoBody;
2212
2489
  path: "/processes/:id/dismiss";
2213
2490
  responses: {
2214
- 200: z.ZodObject<{
2491
+ 200: z.ZodNullable<z.ZodObject<{
2215
2492
  _id: z.ZodString;
2216
2493
  processId: z.ZodString;
2217
2494
  name: z.ZodString;
@@ -2276,10 +2553,24 @@ export declare const processesContract: {
2276
2553
  level: "error" | "event" | "info" | "debug" | "warning";
2277
2554
  data?: Record<string, unknown> | undefined;
2278
2555
  }>, "many">;
2556
+ result: z.ZodOptional<z.ZodObject<{
2557
+ filename: z.ZodString;
2558
+ contentType: z.ZodString;
2559
+ size: z.ZodNumber;
2560
+ }, "strip", z.ZodTypeAny, {
2561
+ filename: string;
2562
+ contentType: string;
2563
+ size: number;
2564
+ }, {
2565
+ filename: string;
2566
+ contentType: string;
2567
+ size: number;
2568
+ }>>;
2279
2569
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2280
2570
  widgetData: z.ZodOptional<z.ZodUnknown>;
2281
2571
  taskFactory: z.ZodOptional<z.ZodBoolean>;
2282
2572
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2573
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2283
2574
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2284
2575
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2285
2576
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2363,10 +2654,16 @@ export declare const processesContract: {
2363
2654
  parentId?: string | undefined;
2364
2655
  special?: boolean | undefined;
2365
2656
  description?: string | null | undefined;
2657
+ result?: {
2658
+ filename: string;
2659
+ contentType: string;
2660
+ size: number;
2661
+ } | undefined;
2366
2662
  uiWidget?: string | null | undefined;
2367
2663
  widgetData?: unknown;
2368
2664
  taskFactory?: boolean | undefined;
2369
2665
  parameters?: unknown[] | undefined;
2666
+ ttlSeconds?: number | null | undefined;
2370
2667
  supportsResume?: boolean | undefined;
2371
2668
  hasSavedState?: boolean | undefined;
2372
2669
  supportsResurrect?: boolean | undefined;
@@ -2423,10 +2720,16 @@ export declare const processesContract: {
2423
2720
  parentId?: string | undefined;
2424
2721
  special?: boolean | undefined;
2425
2722
  description?: string | null | undefined;
2723
+ result?: {
2724
+ filename: string;
2725
+ contentType: string;
2726
+ size: number;
2727
+ } | undefined;
2426
2728
  uiWidget?: string | null | undefined;
2427
2729
  widgetData?: unknown;
2428
2730
  taskFactory?: boolean | undefined;
2429
2731
  parameters?: unknown[] | undefined;
2732
+ ttlSeconds?: number | null | undefined;
2430
2733
  supportsResume?: boolean | undefined;
2431
2734
  hasSavedState?: boolean | undefined;
2432
2735
  supportsResurrect?: boolean | undefined;
@@ -2449,7 +2752,7 @@ export declare const processesContract: {
2449
2752
  data?: unknown;
2450
2753
  })[] | undefined;
2451
2754
  originatingSessionId?: string | null | undefined;
2452
- }>;
2755
+ }>>;
2453
2756
  404: z.ZodObject<{
2454
2757
  reason: z.ZodEnum<["not-found", "not-dismissable"]>;
2455
2758
  message: z.ZodString;
@@ -2566,10 +2869,24 @@ export declare const processesContract: {
2566
2869
  level: "error" | "event" | "info" | "debug" | "warning";
2567
2870
  data?: Record<string, unknown> | undefined;
2568
2871
  }>, "many">;
2872
+ result: z.ZodOptional<z.ZodObject<{
2873
+ filename: z.ZodString;
2874
+ contentType: z.ZodString;
2875
+ size: z.ZodNumber;
2876
+ }, "strip", z.ZodTypeAny, {
2877
+ filename: string;
2878
+ contentType: string;
2879
+ size: number;
2880
+ }, {
2881
+ filename: string;
2882
+ contentType: string;
2883
+ size: number;
2884
+ }>>;
2569
2885
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2570
2886
  widgetData: z.ZodOptional<z.ZodUnknown>;
2571
2887
  taskFactory: z.ZodOptional<z.ZodBoolean>;
2572
2888
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2889
+ ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2573
2890
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2574
2891
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2575
2892
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2653,10 +2970,16 @@ export declare const processesContract: {
2653
2970
  parentId?: string | undefined;
2654
2971
  special?: boolean | undefined;
2655
2972
  description?: string | null | undefined;
2973
+ result?: {
2974
+ filename: string;
2975
+ contentType: string;
2976
+ size: number;
2977
+ } | undefined;
2656
2978
  uiWidget?: string | null | undefined;
2657
2979
  widgetData?: unknown;
2658
2980
  taskFactory?: boolean | undefined;
2659
2981
  parameters?: unknown[] | undefined;
2982
+ ttlSeconds?: number | null | undefined;
2660
2983
  supportsResume?: boolean | undefined;
2661
2984
  hasSavedState?: boolean | undefined;
2662
2985
  supportsResurrect?: boolean | undefined;
@@ -2713,10 +3036,16 @@ export declare const processesContract: {
2713
3036
  parentId?: string | undefined;
2714
3037
  special?: boolean | undefined;
2715
3038
  description?: string | null | undefined;
3039
+ result?: {
3040
+ filename: string;
3041
+ contentType: string;
3042
+ size: number;
3043
+ } | undefined;
2716
3044
  uiWidget?: string | null | undefined;
2717
3045
  widgetData?: unknown;
2718
3046
  taskFactory?: boolean | undefined;
2719
3047
  parameters?: unknown[] | undefined;
3048
+ ttlSeconds?: number | null | undefined;
2720
3049
  supportsResume?: boolean | undefined;
2721
3050
  hasSavedState?: boolean | undefined;
2722
3051
  supportsResurrect?: boolean | undefined;
@@ -2741,24 +3070,24 @@ export declare const processesContract: {
2741
3070
  originatingSessionId?: string | null | undefined;
2742
3071
  }>;
2743
3072
  404: z.ZodObject<{
2744
- reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
3073
+ reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
2745
3074
  message: z.ZodString;
2746
3075
  }, "strip", z.ZodTypeAny, {
2747
3076
  message: string;
2748
- reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
3077
+ reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2749
3078
  }, {
2750
3079
  message: string;
2751
- reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
3080
+ reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2752
3081
  }>;
2753
3082
  409: z.ZodObject<{
2754
- reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
3083
+ reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
2755
3084
  message: z.ZodString;
2756
3085
  }, "strip", z.ZodTypeAny, {
2757
3086
  message: string;
2758
- reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
3087
+ reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2759
3088
  }, {
2760
3089
  message: string;
2761
- reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
3090
+ reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2762
3091
  }>;
2763
3092
  };
2764
3093
  };