@trigger.dev/core 0.0.0-v3-pnpm-fix-20240409132306 → 0.0.0-v3-schedules-beta-20240417103105

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.
@@ -411,6 +411,7 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
411
411
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
412
412
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
413
413
  }>>;
414
+ triggerSource: z.ZodOptional<z.ZodString>;
414
415
  }, "strip", z.ZodTypeAny, {
415
416
  id: string;
416
417
  filePath: string;
@@ -464,6 +465,7 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
464
465
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
465
466
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
466
467
  } | undefined;
468
+ triggerSource?: string | undefined;
467
469
  }, {
468
470
  id: string;
469
471
  filePath: string;
@@ -517,10 +519,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
517
519
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
518
520
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
519
521
  } | undefined;
522
+ triggerSource?: string | undefined;
520
523
  }>, "many">;
521
524
  }, "strip", z.ZodTypeAny, {
522
- contentHash: string;
523
525
  packageVersion: string;
526
+ contentHash: string;
524
527
  tasks: {
525
528
  id: string;
526
529
  filePath: string;
@@ -574,11 +577,12 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
574
577
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
575
578
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
576
579
  } | undefined;
580
+ triggerSource?: string | undefined;
577
581
  }[];
578
582
  cliPackageVersion?: string | undefined;
579
583
  }, {
580
- contentHash: string;
581
584
  packageVersion: string;
585
+ contentHash: string;
582
586
  tasks: {
583
587
  id: string;
584
588
  filePath: string;
@@ -632,13 +636,14 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
632
636
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
633
637
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
634
638
  } | undefined;
639
+ triggerSource?: string | undefined;
635
640
  }[];
636
641
  cliPackageVersion?: string | undefined;
637
642
  }>;
638
643
  }, "strip", z.ZodTypeAny, {
639
644
  metadata: {
640
- contentHash: string;
641
645
  packageVersion: string;
646
+ contentHash: string;
642
647
  tasks: {
643
648
  id: string;
644
649
  filePath: string;
@@ -692,14 +697,15 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
692
697
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
693
698
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
694
699
  } | undefined;
700
+ triggerSource?: string | undefined;
695
701
  }[];
696
702
  cliPackageVersion?: string | undefined;
697
703
  };
698
704
  localOnly: boolean;
699
705
  }, {
700
706
  metadata: {
701
- contentHash: string;
702
707
  packageVersion: string;
708
+ contentHash: string;
703
709
  tasks: {
704
710
  id: string;
705
711
  filePath: string;
@@ -753,6 +759,7 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
753
759
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
754
760
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
755
761
  } | undefined;
762
+ triggerSource?: string | undefined;
756
763
  }[];
757
764
  cliPackageVersion?: string | undefined;
758
765
  };
@@ -966,7 +973,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
966
973
  } | undefined;
967
974
  }>>;
968
975
  concurrencyKey: z.ZodOptional<z.ZodString>;
976
+ idempotencyKey: z.ZodOptional<z.ZodString>;
969
977
  test: z.ZodOptional<z.ZodBoolean>;
978
+ payloadType: z.ZodOptional<z.ZodString>;
970
979
  }, "strip", z.ZodTypeAny, {
971
980
  dependentAttempt?: string | undefined;
972
981
  dependentBatch?: string | undefined;
@@ -1009,7 +1018,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1009
1018
  } | undefined;
1010
1019
  } | undefined;
1011
1020
  concurrencyKey?: string | undefined;
1021
+ idempotencyKey?: string | undefined;
1012
1022
  test?: boolean | undefined;
1023
+ payloadType?: string | undefined;
1013
1024
  }, {
1014
1025
  dependentAttempt?: string | undefined;
1015
1026
  dependentBatch?: string | undefined;
@@ -1052,7 +1063,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1052
1063
  } | undefined;
1053
1064
  } | undefined;
1054
1065
  concurrencyKey?: string | undefined;
1066
+ idempotencyKey?: string | undefined;
1055
1067
  test?: boolean | undefined;
1068
+ payloadType?: string | undefined;
1056
1069
  }>>;
1057
1070
  }, "strip", z.ZodTypeAny, {
1058
1071
  payload?: any;
@@ -1099,7 +1112,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1099
1112
  } | undefined;
1100
1113
  } | undefined;
1101
1114
  concurrencyKey?: string | undefined;
1115
+ idempotencyKey?: string | undefined;
1102
1116
  test?: boolean | undefined;
1117
+ payloadType?: string | undefined;
1103
1118
  } | undefined;
1104
1119
  }, {
1105
1120
  payload?: any;
@@ -1146,7 +1161,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1146
1161
  } | undefined;
1147
1162
  } | undefined;
1148
1163
  concurrencyKey?: string | undefined;
1164
+ idempotencyKey?: string | undefined;
1149
1165
  test?: boolean | undefined;
1166
+ payloadType?: string | undefined;
1150
1167
  } | undefined;
1151
1168
  }>;
1152
1169
  type TriggerTaskRequestBody = z.infer<typeof TriggerTaskRequestBody>;
@@ -1352,7 +1369,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1352
1369
  } | undefined;
1353
1370
  }>>;
1354
1371
  concurrencyKey: z.ZodOptional<z.ZodString>;
1372
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1355
1373
  test: z.ZodOptional<z.ZodBoolean>;
1374
+ payloadType: z.ZodOptional<z.ZodString>;
1356
1375
  }, "strip", z.ZodTypeAny, {
1357
1376
  dependentAttempt?: string | undefined;
1358
1377
  dependentBatch?: string | undefined;
@@ -1395,7 +1414,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1395
1414
  } | undefined;
1396
1415
  } | undefined;
1397
1416
  concurrencyKey?: string | undefined;
1417
+ idempotencyKey?: string | undefined;
1398
1418
  test?: boolean | undefined;
1419
+ payloadType?: string | undefined;
1399
1420
  }, {
1400
1421
  dependentAttempt?: string | undefined;
1401
1422
  dependentBatch?: string | undefined;
@@ -1438,7 +1459,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1438
1459
  } | undefined;
1439
1460
  } | undefined;
1440
1461
  concurrencyKey?: string | undefined;
1462
+ idempotencyKey?: string | undefined;
1441
1463
  test?: boolean | undefined;
1464
+ payloadType?: string | undefined;
1442
1465
  }>>;
1443
1466
  }, "strip", z.ZodTypeAny, {
1444
1467
  payload?: any;
@@ -1485,7 +1508,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1485
1508
  } | undefined;
1486
1509
  } | undefined;
1487
1510
  concurrencyKey?: string | undefined;
1511
+ idempotencyKey?: string | undefined;
1488
1512
  test?: boolean | undefined;
1513
+ payloadType?: string | undefined;
1489
1514
  } | undefined;
1490
1515
  }, {
1491
1516
  payload?: any;
@@ -1532,7 +1557,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1532
1557
  } | undefined;
1533
1558
  } | undefined;
1534
1559
  concurrencyKey?: string | undefined;
1560
+ idempotencyKey?: string | undefined;
1535
1561
  test?: boolean | undefined;
1562
+ payloadType?: string | undefined;
1536
1563
  } | undefined;
1537
1564
  }>, "many">;
1538
1565
  dependentAttempt: z.ZodOptional<z.ZodString>;
@@ -1582,7 +1609,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1582
1609
  } | undefined;
1583
1610
  } | undefined;
1584
1611
  concurrencyKey?: string | undefined;
1612
+ idempotencyKey?: string | undefined;
1585
1613
  test?: boolean | undefined;
1614
+ payloadType?: string | undefined;
1586
1615
  } | undefined;
1587
1616
  }[];
1588
1617
  dependentAttempt?: string | undefined;
@@ -1632,7 +1661,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1632
1661
  } | undefined;
1633
1662
  } | undefined;
1634
1663
  concurrencyKey?: string | undefined;
1664
+ idempotencyKey?: string | undefined;
1635
1665
  test?: boolean | undefined;
1666
+ payloadType?: string | undefined;
1636
1667
  } | undefined;
1637
1668
  }[];
1638
1669
  dependentAttempt?: string | undefined;
@@ -1919,6 +1950,280 @@ declare const CanceledRunResponse: z.ZodObject<{
1919
1950
  message: string;
1920
1951
  }>;
1921
1952
  type CanceledRunResponse = z.infer<typeof CanceledRunResponse>;
1953
+ declare const ScheduledTaskPayload: z.ZodObject<{
1954
+ scheduleId: z.ZodString;
1955
+ timestamp: z.ZodDate;
1956
+ lastTimestamp: z.ZodOptional<z.ZodDate>;
1957
+ externalId: z.ZodOptional<z.ZodString>;
1958
+ upcoming: z.ZodArray<z.ZodDate, "many">;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ timestamp: Date;
1961
+ scheduleId: string;
1962
+ upcoming: Date[];
1963
+ lastTimestamp?: Date | undefined;
1964
+ externalId?: string | undefined;
1965
+ }, {
1966
+ timestamp: Date;
1967
+ scheduleId: string;
1968
+ upcoming: Date[];
1969
+ lastTimestamp?: Date | undefined;
1970
+ externalId?: string | undefined;
1971
+ }>;
1972
+ type ScheduledTaskPayload = z.infer<typeof ScheduledTaskPayload>;
1973
+ declare const CreateScheduleOptions: z.ZodObject<{
1974
+ task: z.ZodString;
1975
+ cron: z.ZodString;
1976
+ deduplicationKey: z.ZodOptional<z.ZodString>;
1977
+ externalId: z.ZodOptional<z.ZodString>;
1978
+ }, "strip", z.ZodTypeAny, {
1979
+ task: string;
1980
+ cron: string;
1981
+ deduplicationKey?: string | undefined;
1982
+ externalId?: string | undefined;
1983
+ }, {
1984
+ task: string;
1985
+ cron: string;
1986
+ deduplicationKey?: string | undefined;
1987
+ externalId?: string | undefined;
1988
+ }>;
1989
+ type CreateScheduleOptions = z.infer<typeof CreateScheduleOptions>;
1990
+ declare const UpdateScheduleOptions: z.ZodObject<{
1991
+ task: z.ZodString;
1992
+ cron: z.ZodString;
1993
+ deduplicationKey: z.ZodOptional<z.ZodString>;
1994
+ externalId: z.ZodOptional<z.ZodString>;
1995
+ }, "strip", z.ZodTypeAny, {
1996
+ task: string;
1997
+ cron: string;
1998
+ deduplicationKey?: string | undefined;
1999
+ externalId?: string | undefined;
2000
+ }, {
2001
+ task: string;
2002
+ cron: string;
2003
+ deduplicationKey?: string | undefined;
2004
+ externalId?: string | undefined;
2005
+ }>;
2006
+ type UpdateScheduleOptions = z.infer<typeof UpdateScheduleOptions>;
2007
+ declare const ScheduleObject: z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ task: z.ZodString;
2010
+ active: z.ZodBoolean;
2011
+ deduplicationKey: z.ZodOptional<z.ZodString>;
2012
+ externalId: z.ZodOptional<z.ZodString>;
2013
+ generator: z.ZodObject<{
2014
+ type: z.ZodLiteral<"CRON">;
2015
+ expression: z.ZodString;
2016
+ description: z.ZodString;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ type: "CRON";
2019
+ expression: string;
2020
+ description: string;
2021
+ }, {
2022
+ type: "CRON";
2023
+ expression: string;
2024
+ description: string;
2025
+ }>;
2026
+ nextRun: z.ZodOptional<z.ZodDate>;
2027
+ environments: z.ZodArray<z.ZodObject<{
2028
+ id: z.ZodString;
2029
+ type: z.ZodString;
2030
+ userName: z.ZodOptional<z.ZodString>;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ type: string;
2033
+ id: string;
2034
+ userName?: string | undefined;
2035
+ }, {
2036
+ type: string;
2037
+ id: string;
2038
+ userName?: string | undefined;
2039
+ }>, "many">;
2040
+ }, "strip", z.ZodTypeAny, {
2041
+ id: string;
2042
+ task: string;
2043
+ active: boolean;
2044
+ generator: {
2045
+ type: "CRON";
2046
+ expression: string;
2047
+ description: string;
2048
+ };
2049
+ environments: {
2050
+ type: string;
2051
+ id: string;
2052
+ userName?: string | undefined;
2053
+ }[];
2054
+ deduplicationKey?: string | undefined;
2055
+ externalId?: string | undefined;
2056
+ nextRun?: Date | undefined;
2057
+ }, {
2058
+ id: string;
2059
+ task: string;
2060
+ active: boolean;
2061
+ generator: {
2062
+ type: "CRON";
2063
+ expression: string;
2064
+ description: string;
2065
+ };
2066
+ environments: {
2067
+ type: string;
2068
+ id: string;
2069
+ userName?: string | undefined;
2070
+ }[];
2071
+ deduplicationKey?: string | undefined;
2072
+ externalId?: string | undefined;
2073
+ nextRun?: Date | undefined;
2074
+ }>;
2075
+ type ScheduleObject = z.infer<typeof ScheduleObject>;
2076
+ declare const DeletedScheduleObject: z.ZodObject<{
2077
+ id: z.ZodString;
2078
+ }, "strip", z.ZodTypeAny, {
2079
+ id: string;
2080
+ }, {
2081
+ id: string;
2082
+ }>;
2083
+ type DeletedScheduleObject = z.infer<typeof DeletedScheduleObject>;
2084
+ declare const ListSchedulesResult: z.ZodObject<{
2085
+ data: z.ZodArray<z.ZodObject<{
2086
+ id: z.ZodString;
2087
+ task: z.ZodString;
2088
+ active: z.ZodBoolean;
2089
+ deduplicationKey: z.ZodOptional<z.ZodString>;
2090
+ externalId: z.ZodOptional<z.ZodString>;
2091
+ generator: z.ZodObject<{
2092
+ type: z.ZodLiteral<"CRON">;
2093
+ expression: z.ZodString;
2094
+ description: z.ZodString;
2095
+ }, "strip", z.ZodTypeAny, {
2096
+ type: "CRON";
2097
+ expression: string;
2098
+ description: string;
2099
+ }, {
2100
+ type: "CRON";
2101
+ expression: string;
2102
+ description: string;
2103
+ }>;
2104
+ nextRun: z.ZodOptional<z.ZodDate>;
2105
+ environments: z.ZodArray<z.ZodObject<{
2106
+ id: z.ZodString;
2107
+ type: z.ZodString;
2108
+ userName: z.ZodOptional<z.ZodString>;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ type: string;
2111
+ id: string;
2112
+ userName?: string | undefined;
2113
+ }, {
2114
+ type: string;
2115
+ id: string;
2116
+ userName?: string | undefined;
2117
+ }>, "many">;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ id: string;
2120
+ task: string;
2121
+ active: boolean;
2122
+ generator: {
2123
+ type: "CRON";
2124
+ expression: string;
2125
+ description: string;
2126
+ };
2127
+ environments: {
2128
+ type: string;
2129
+ id: string;
2130
+ userName?: string | undefined;
2131
+ }[];
2132
+ deduplicationKey?: string | undefined;
2133
+ externalId?: string | undefined;
2134
+ nextRun?: Date | undefined;
2135
+ }, {
2136
+ id: string;
2137
+ task: string;
2138
+ active: boolean;
2139
+ generator: {
2140
+ type: "CRON";
2141
+ expression: string;
2142
+ description: string;
2143
+ };
2144
+ environments: {
2145
+ type: string;
2146
+ id: string;
2147
+ userName?: string | undefined;
2148
+ }[];
2149
+ deduplicationKey?: string | undefined;
2150
+ externalId?: string | undefined;
2151
+ nextRun?: Date | undefined;
2152
+ }>, "many">;
2153
+ pagination: z.ZodObject<{
2154
+ currentPage: z.ZodNumber;
2155
+ totalPages: z.ZodNumber;
2156
+ count: z.ZodNumber;
2157
+ }, "strip", z.ZodTypeAny, {
2158
+ currentPage: number;
2159
+ totalPages: number;
2160
+ count: number;
2161
+ }, {
2162
+ currentPage: number;
2163
+ totalPages: number;
2164
+ count: number;
2165
+ }>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ data: {
2168
+ id: string;
2169
+ task: string;
2170
+ active: boolean;
2171
+ generator: {
2172
+ type: "CRON";
2173
+ expression: string;
2174
+ description: string;
2175
+ };
2176
+ environments: {
2177
+ type: string;
2178
+ id: string;
2179
+ userName?: string | undefined;
2180
+ }[];
2181
+ deduplicationKey?: string | undefined;
2182
+ externalId?: string | undefined;
2183
+ nextRun?: Date | undefined;
2184
+ }[];
2185
+ pagination: {
2186
+ currentPage: number;
2187
+ totalPages: number;
2188
+ count: number;
2189
+ };
2190
+ }, {
2191
+ data: {
2192
+ id: string;
2193
+ task: string;
2194
+ active: boolean;
2195
+ generator: {
2196
+ type: "CRON";
2197
+ expression: string;
2198
+ description: string;
2199
+ };
2200
+ environments: {
2201
+ type: string;
2202
+ id: string;
2203
+ userName?: string | undefined;
2204
+ }[];
2205
+ deduplicationKey?: string | undefined;
2206
+ externalId?: string | undefined;
2207
+ nextRun?: Date | undefined;
2208
+ }[];
2209
+ pagination: {
2210
+ currentPage: number;
2211
+ totalPages: number;
2212
+ count: number;
2213
+ };
2214
+ }>;
2215
+ type ListSchedulesResult = z.infer<typeof ListSchedulesResult>;
2216
+ declare const ListScheduleOptions: z.ZodObject<{
2217
+ page: z.ZodOptional<z.ZodNumber>;
2218
+ perPage: z.ZodOptional<z.ZodNumber>;
2219
+ }, "strip", z.ZodTypeAny, {
2220
+ page?: number | undefined;
2221
+ perPage?: number | undefined;
2222
+ }, {
2223
+ page?: number | undefined;
2224
+ perPage?: number | undefined;
2225
+ }>;
2226
+ type ListScheduleOptions = z.infer<typeof ListScheduleOptions>;
1922
2227
 
1923
2228
  declare const TaskResource: z.ZodObject<{
1924
2229
  id: z.ZodString;
@@ -2141,6 +2446,7 @@ declare const TaskResource: z.ZodObject<{
2141
2446
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2142
2447
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2143
2448
  }>>;
2449
+ triggerSource: z.ZodOptional<z.ZodString>;
2144
2450
  }, "strip", z.ZodTypeAny, {
2145
2451
  id: string;
2146
2452
  filePath: string;
@@ -2194,6 +2500,7 @@ declare const TaskResource: z.ZodObject<{
2194
2500
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2195
2501
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2196
2502
  } | undefined;
2503
+ triggerSource?: string | undefined;
2197
2504
  }, {
2198
2505
  id: string;
2199
2506
  filePath: string;
@@ -2247,6 +2554,7 @@ declare const TaskResource: z.ZodObject<{
2247
2554
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2248
2555
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2249
2556
  } | undefined;
2557
+ triggerSource?: string | undefined;
2250
2558
  }>;
2251
2559
  type TaskResource = z.infer<typeof TaskResource>;
2252
2560
  declare const BackgroundWorkerMetadata: z.ZodObject<{
@@ -2474,6 +2782,7 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
2474
2782
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2475
2783
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2476
2784
  }>>;
2785
+ triggerSource: z.ZodOptional<z.ZodString>;
2477
2786
  }, "strip", z.ZodTypeAny, {
2478
2787
  id: string;
2479
2788
  filePath: string;
@@ -2527,6 +2836,7 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
2527
2836
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2528
2837
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2529
2838
  } | undefined;
2839
+ triggerSource?: string | undefined;
2530
2840
  }, {
2531
2841
  id: string;
2532
2842
  filePath: string;
@@ -2580,10 +2890,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
2580
2890
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2581
2891
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2582
2892
  } | undefined;
2893
+ triggerSource?: string | undefined;
2583
2894
  }>, "many">;
2584
2895
  }, "strip", z.ZodTypeAny, {
2585
- contentHash: string;
2586
2896
  packageVersion: string;
2897
+ contentHash: string;
2587
2898
  tasks: {
2588
2899
  id: string;
2589
2900
  filePath: string;
@@ -2637,11 +2948,12 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
2637
2948
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2638
2949
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2639
2950
  } | undefined;
2951
+ triggerSource?: string | undefined;
2640
2952
  }[];
2641
2953
  cliPackageVersion?: string | undefined;
2642
2954
  }, {
2643
- contentHash: string;
2644
2955
  packageVersion: string;
2956
+ contentHash: string;
2645
2957
  tasks: {
2646
2958
  id: string;
2647
2959
  filePath: string;
@@ -2695,6 +3007,7 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
2695
3007
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2696
3008
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2697
3009
  } | undefined;
3010
+ triggerSource?: string | undefined;
2698
3011
  }[];
2699
3012
  cliPackageVersion?: string | undefined;
2700
3013
  }>;
@@ -2752,6 +3065,7 @@ declare const TaskRunStringError: z.ZodObject<{
2752
3065
  type TaskRunStringError = z.infer<typeof TaskRunStringError>;
2753
3066
  declare const TaskRunErrorCodes: {
2754
3067
  readonly COULD_NOT_FIND_EXECUTOR: "COULD_NOT_FIND_EXECUTOR";
3068
+ readonly COULD_NOT_FIND_TASK: "COULD_NOT_FIND_TASK";
2755
3069
  readonly CONFIGURED_INCORRECTLY: "CONFIGURED_INCORRECTLY";
2756
3070
  readonly TASK_ALREADY_RUNNING: "TASK_ALREADY_RUNNING";
2757
3071
  readonly TASK_EXECUTION_FAILED: "TASK_EXECUTION_FAILED";
@@ -2763,15 +3077,15 @@ declare const TaskRunErrorCodes: {
2763
3077
  };
2764
3078
  declare const TaskRunInternalError: z.ZodObject<{
2765
3079
  type: z.ZodLiteral<"INTERNAL_ERROR">;
2766
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3080
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
2767
3081
  message: z.ZodOptional<z.ZodString>;
2768
3082
  }, "strip", z.ZodTypeAny, {
2769
3083
  type: "INTERNAL_ERROR";
2770
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3084
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
2771
3085
  message?: string | undefined;
2772
3086
  }, {
2773
3087
  type: "INTERNAL_ERROR";
2774
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3088
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
2775
3089
  message?: string | undefined;
2776
3090
  }>;
2777
3091
  type TaskRunInternalError = z.infer<typeof TaskRunInternalError>;
@@ -2810,15 +3124,15 @@ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2810
3124
  raw: string;
2811
3125
  }>, z.ZodObject<{
2812
3126
  type: z.ZodLiteral<"INTERNAL_ERROR">;
2813
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3127
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
2814
3128
  message: z.ZodOptional<z.ZodString>;
2815
3129
  }, "strip", z.ZodTypeAny, {
2816
3130
  type: "INTERNAL_ERROR";
2817
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3131
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
2818
3132
  message?: string | undefined;
2819
3133
  }, {
2820
3134
  type: "INTERNAL_ERROR";
2821
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3135
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
2822
3136
  message?: string | undefined;
2823
3137
  }>]>;
2824
3138
  type TaskRunError = z.infer<typeof TaskRunError>;
@@ -2832,16 +3146,16 @@ declare const TaskRun: z.ZodObject<{
2832
3146
  createdAt: z.ZodDate;
2833
3147
  }, "strip", z.ZodTypeAny, {
2834
3148
  payload: string;
2835
- id: string;
2836
3149
  payloadType: string;
3150
+ id: string;
2837
3151
  tags: string[];
2838
3152
  isTest: boolean;
2839
3153
  createdAt: Date;
2840
3154
  context?: any;
2841
3155
  }, {
2842
3156
  payload: string;
2843
- id: string;
2844
3157
  payloadType: string;
3158
+ id: string;
2845
3159
  tags: string[];
2846
3160
  createdAt: Date;
2847
3161
  context?: any;
@@ -2994,16 +3308,16 @@ declare const TaskRunExecution: z.ZodObject<{
2994
3308
  createdAt: z.ZodDate;
2995
3309
  }, "strip", z.ZodTypeAny, {
2996
3310
  payload: string;
2997
- id: string;
2998
3311
  payloadType: string;
3312
+ id: string;
2999
3313
  tags: string[];
3000
3314
  isTest: boolean;
3001
3315
  createdAt: Date;
3002
3316
  context?: any;
3003
3317
  }, {
3004
3318
  payload: string;
3005
- id: string;
3006
3319
  payloadType: string;
3320
+ id: string;
3007
3321
  tags: string[];
3008
3322
  createdAt: Date;
3009
3323
  context?: any;
@@ -3088,8 +3402,8 @@ declare const TaskRunExecution: z.ZodObject<{
3088
3402
  };
3089
3403
  run: {
3090
3404
  payload: string;
3091
- id: string;
3092
3405
  payloadType: string;
3406
+ id: string;
3093
3407
  tags: string[];
3094
3408
  isTest: boolean;
3095
3409
  createdAt: Date;
@@ -3134,8 +3448,8 @@ declare const TaskRunExecution: z.ZodObject<{
3134
3448
  };
3135
3449
  run: {
3136
3450
  payload: string;
3137
- id: string;
3138
3451
  payloadType: string;
3452
+ id: string;
3139
3453
  tags: string[];
3140
3454
  createdAt: Date;
3141
3455
  context?: any;
@@ -3412,15 +3726,15 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
3412
3726
  raw: string;
3413
3727
  }>, z.ZodObject<{
3414
3728
  type: z.ZodLiteral<"INTERNAL_ERROR">;
3415
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3729
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3416
3730
  message: z.ZodOptional<z.ZodString>;
3417
3731
  }, "strip", z.ZodTypeAny, {
3418
3732
  type: "INTERNAL_ERROR";
3419
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3733
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3420
3734
  message?: string | undefined;
3421
3735
  }, {
3422
3736
  type: "INTERNAL_ERROR";
3423
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3737
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3424
3738
  message?: string | undefined;
3425
3739
  }>]>;
3426
3740
  retry: z.ZodOptional<z.ZodObject<{
@@ -3451,7 +3765,7 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
3451
3765
  raw: string;
3452
3766
  } | {
3453
3767
  type: "INTERNAL_ERROR";
3454
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3768
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3455
3769
  message?: string | undefined;
3456
3770
  };
3457
3771
  id: string;
@@ -3476,7 +3790,7 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
3476
3790
  raw: string;
3477
3791
  } | {
3478
3792
  type: "INTERNAL_ERROR";
3479
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3793
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3480
3794
  message?: string | undefined;
3481
3795
  };
3482
3796
  id: string;
@@ -3559,15 +3873,15 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
3559
3873
  raw: string;
3560
3874
  }>, z.ZodObject<{
3561
3875
  type: z.ZodLiteral<"INTERNAL_ERROR">;
3562
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3876
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3563
3877
  message: z.ZodOptional<z.ZodString>;
3564
3878
  }, "strip", z.ZodTypeAny, {
3565
3879
  type: "INTERNAL_ERROR";
3566
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3880
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3567
3881
  message?: string | undefined;
3568
3882
  }, {
3569
3883
  type: "INTERNAL_ERROR";
3570
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3884
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3571
3885
  message?: string | undefined;
3572
3886
  }>]>;
3573
3887
  retry: z.ZodOptional<z.ZodObject<{
@@ -3598,7 +3912,7 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
3598
3912
  raw: string;
3599
3913
  } | {
3600
3914
  type: "INTERNAL_ERROR";
3601
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3915
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3602
3916
  message?: string | undefined;
3603
3917
  };
3604
3918
  id: string;
@@ -3623,7 +3937,7 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
3623
3937
  raw: string;
3624
3938
  } | {
3625
3939
  type: "INTERNAL_ERROR";
3626
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3940
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3627
3941
  message?: string | undefined;
3628
3942
  };
3629
3943
  id: string;
@@ -3691,15 +4005,15 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
3691
4005
  raw: string;
3692
4006
  }>, z.ZodObject<{
3693
4007
  type: z.ZodLiteral<"INTERNAL_ERROR">;
3694
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
4008
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
3695
4009
  message: z.ZodOptional<z.ZodString>;
3696
4010
  }, "strip", z.ZodTypeAny, {
3697
4011
  type: "INTERNAL_ERROR";
3698
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
4012
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3699
4013
  message?: string | undefined;
3700
4014
  }, {
3701
4015
  type: "INTERNAL_ERROR";
3702
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
4016
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3703
4017
  message?: string | undefined;
3704
4018
  }>]>;
3705
4019
  retry: z.ZodOptional<z.ZodObject<{
@@ -3730,7 +4044,7 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
3730
4044
  raw: string;
3731
4045
  } | {
3732
4046
  type: "INTERNAL_ERROR";
3733
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
4047
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3734
4048
  message?: string | undefined;
3735
4049
  };
3736
4050
  id: string;
@@ -3755,7 +4069,7 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
3755
4069
  raw: string;
3756
4070
  } | {
3757
4071
  type: "INTERNAL_ERROR";
3758
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
4072
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3759
4073
  message?: string | undefined;
3760
4074
  };
3761
4075
  id: string;
@@ -3782,7 +4096,7 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
3782
4096
  raw: string;
3783
4097
  } | {
3784
4098
  type: "INTERNAL_ERROR";
3785
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
4099
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3786
4100
  message?: string | undefined;
3787
4101
  };
3788
4102
  id: string;
@@ -3815,7 +4129,7 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
3815
4129
  raw: string;
3816
4130
  } | {
3817
4131
  type: "INTERNAL_ERROR";
3818
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
4132
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
3819
4133
  message?: string | undefined;
3820
4134
  };
3821
4135
  id: string;
@@ -3903,16 +4217,16 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
3903
4217
  createdAt: z.ZodDate;
3904
4218
  }, "strip", z.ZodTypeAny, {
3905
4219
  payload: string;
3906
- id: string;
3907
4220
  payloadType: string;
4221
+ id: string;
3908
4222
  tags: string[];
3909
4223
  isTest: boolean;
3910
4224
  createdAt: Date;
3911
4225
  context?: any;
3912
4226
  }, {
3913
4227
  payload: string;
3914
- id: string;
3915
4228
  payloadType: string;
4229
+ id: string;
3916
4230
  tags: string[];
3917
4231
  createdAt: Date;
3918
4232
  context?: any;
@@ -3997,8 +4311,8 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
3997
4311
  };
3998
4312
  run: {
3999
4313
  payload: string;
4000
- id: string;
4001
4314
  payloadType: string;
4315
+ id: string;
4002
4316
  tags: string[];
4003
4317
  isTest: boolean;
4004
4318
  createdAt: Date;
@@ -4043,8 +4357,8 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
4043
4357
  };
4044
4358
  run: {
4045
4359
  payload: string;
4046
- id: string;
4047
4360
  payloadType: string;
4361
+ id: string;
4048
4362
  tags: string[];
4049
4363
  createdAt: Date;
4050
4364
  context?: any;
@@ -4093,8 +4407,8 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
4093
4407
  };
4094
4408
  run: {
4095
4409
  payload: string;
4096
- id: string;
4097
4410
  payloadType: string;
4411
+ id: string;
4098
4412
  tags: string[];
4099
4413
  isTest: boolean;
4100
4414
  createdAt: Date;
@@ -4143,8 +4457,8 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
4143
4457
  };
4144
4458
  run: {
4145
4459
  payload: string;
4146
- id: string;
4147
4460
  payloadType: string;
4461
+ id: string;
4148
4462
  tags: string[];
4149
4463
  createdAt: Date;
4150
4464
  context?: any;
@@ -4230,16 +4544,16 @@ declare const ProdTaskRunExecution: z.ZodObject<{
4230
4544
  createdAt: z.ZodDate;
4231
4545
  }, "strip", z.ZodTypeAny, {
4232
4546
  payload: string;
4233
- id: string;
4234
4547
  payloadType: string;
4548
+ id: string;
4235
4549
  tags: string[];
4236
4550
  isTest: boolean;
4237
4551
  createdAt: Date;
4238
4552
  context?: any;
4239
4553
  }, {
4240
4554
  payload: string;
4241
- id: string;
4242
4555
  payloadType: string;
4556
+ id: string;
4243
4557
  tags: string[];
4244
4558
  createdAt: Date;
4245
4559
  context?: any;
@@ -4327,8 +4641,8 @@ declare const ProdTaskRunExecution: z.ZodObject<{
4327
4641
  };
4328
4642
  run: {
4329
4643
  payload: string;
4330
- id: string;
4331
4644
  payloadType: string;
4645
+ id: string;
4332
4646
  tags: string[];
4333
4647
  isTest: boolean;
4334
4648
  createdAt: Date;
@@ -4378,8 +4692,8 @@ declare const ProdTaskRunExecution: z.ZodObject<{
4378
4692
  };
4379
4693
  run: {
4380
4694
  payload: string;
4381
- id: string;
4382
4695
  payloadType: string;
4696
+ id: string;
4383
4697
  tags: string[];
4384
4698
  createdAt: Date;
4385
4699
  context?: any;
@@ -4468,16 +4782,16 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
4468
4782
  createdAt: z.ZodDate;
4469
4783
  }, "strip", z.ZodTypeAny, {
4470
4784
  payload: string;
4471
- id: string;
4472
4785
  payloadType: string;
4786
+ id: string;
4473
4787
  tags: string[];
4474
4788
  isTest: boolean;
4475
4789
  createdAt: Date;
4476
4790
  context?: any;
4477
4791
  }, {
4478
4792
  payload: string;
4479
- id: string;
4480
4793
  payloadType: string;
4794
+ id: string;
4481
4795
  tags: string[];
4482
4796
  createdAt: Date;
4483
4797
  context?: any;
@@ -4565,8 +4879,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
4565
4879
  };
4566
4880
  run: {
4567
4881
  payload: string;
4568
- id: string;
4569
4882
  payloadType: string;
4883
+ id: string;
4570
4884
  tags: string[];
4571
4885
  isTest: boolean;
4572
4886
  createdAt: Date;
@@ -4616,8 +4930,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
4616
4930
  };
4617
4931
  run: {
4618
4932
  payload: string;
4619
- id: string;
4620
4933
  payloadType: string;
4934
+ id: string;
4621
4935
  tags: string[];
4622
4936
  createdAt: Date;
4623
4937
  context?: any;
@@ -4671,8 +4985,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
4671
4985
  };
4672
4986
  run: {
4673
4987
  payload: string;
4674
- id: string;
4675
4988
  payloadType: string;
4989
+ id: string;
4676
4990
  tags: string[];
4677
4991
  isTest: boolean;
4678
4992
  createdAt: Date;
@@ -4726,8 +5040,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
4726
5040
  };
4727
5041
  run: {
4728
5042
  payload: string;
4729
- id: string;
4730
5043
  payloadType: string;
5044
+ id: string;
4731
5045
  tags: string[];
4732
5046
  createdAt: Date;
4733
5047
  context?: any;
@@ -4811,16 +5125,16 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
4811
5125
  createdAt: z.ZodDate;
4812
5126
  }, "strip", z.ZodTypeAny, {
4813
5127
  payload: string;
4814
- id: string;
4815
5128
  payloadType: string;
5129
+ id: string;
4816
5130
  tags: string[];
4817
5131
  isTest: boolean;
4818
5132
  createdAt: Date;
4819
5133
  context?: any;
4820
5134
  }, {
4821
5135
  payload: string;
4822
- id: string;
4823
5136
  payloadType: string;
5137
+ id: string;
4824
5138
  tags: string[];
4825
5139
  createdAt: Date;
4826
5140
  context?: any;
@@ -4905,8 +5219,8 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
4905
5219
  };
4906
5220
  run: {
4907
5221
  payload: string;
4908
- id: string;
4909
5222
  payloadType: string;
5223
+ id: string;
4910
5224
  tags: string[];
4911
5225
  isTest: boolean;
4912
5226
  createdAt: Date;
@@ -4951,8 +5265,8 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
4951
5265
  };
4952
5266
  run: {
4953
5267
  payload: string;
4954
- id: string;
4955
5268
  payloadType: string;
5269
+ id: string;
4956
5270
  tags: string[];
4957
5271
  createdAt: Date;
4958
5272
  context?: any;
@@ -5001,8 +5315,8 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
5001
5315
  };
5002
5316
  run: {
5003
5317
  payload: string;
5004
- id: string;
5005
5318
  payloadType: string;
5319
+ id: string;
5006
5320
  tags: string[];
5007
5321
  isTest: boolean;
5008
5322
  createdAt: Date;
@@ -5051,8 +5365,8 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
5051
5365
  };
5052
5366
  run: {
5053
5367
  payload: string;
5054
- id: string;
5055
5368
  payloadType: string;
5369
+ id: string;
5056
5370
  tags: string[];
5057
5371
  createdAt: Date;
5058
5372
  context?: any;
@@ -5104,8 +5418,8 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
5104
5418
  };
5105
5419
  run: {
5106
5420
  payload: string;
5107
- id: string;
5108
5421
  payloadType: string;
5422
+ id: string;
5109
5423
  tags: string[];
5110
5424
  isTest: boolean;
5111
5425
  createdAt: Date;
@@ -5157,8 +5471,8 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
5157
5471
  };
5158
5472
  run: {
5159
5473
  payload: string;
5160
- id: string;
5161
5474
  payloadType: string;
5475
+ id: string;
5162
5476
  tags: string[];
5163
5477
  createdAt: Date;
5164
5478
  context?: any;
@@ -5226,12 +5540,12 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
5226
5540
  type: "SCHEDULE_ATTEMPT";
5227
5541
  id: string;
5228
5542
  version: string;
5229
- image: string;
5230
5543
  machine: {
5231
5544
  version: "v1";
5232
5545
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
5233
5546
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
5234
5547
  };
5548
+ image: string;
5235
5549
  envId: string;
5236
5550
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5237
5551
  orgId: string;
@@ -5241,12 +5555,12 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
5241
5555
  type: "SCHEDULE_ATTEMPT";
5242
5556
  id: string;
5243
5557
  version: string;
5244
- image: string;
5245
5558
  machine: {
5246
5559
  version?: "v1" | undefined;
5247
5560
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
5248
5561
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
5249
5562
  };
5563
+ image: string;
5250
5564
  envId: string;
5251
5565
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5252
5566
  orgId: string;
@@ -5317,16 +5631,16 @@ declare const serverWebsocketMessages: {
5317
5631
  createdAt: z.ZodDate;
5318
5632
  }, "strip", z.ZodTypeAny, {
5319
5633
  payload: string;
5320
- id: string;
5321
5634
  payloadType: string;
5635
+ id: string;
5322
5636
  tags: string[];
5323
5637
  isTest: boolean;
5324
5638
  createdAt: Date;
5325
5639
  context?: any;
5326
5640
  }, {
5327
5641
  payload: string;
5328
- id: string;
5329
5642
  payloadType: string;
5643
+ id: string;
5330
5644
  tags: string[];
5331
5645
  createdAt: Date;
5332
5646
  context?: any;
@@ -5411,8 +5725,8 @@ declare const serverWebsocketMessages: {
5411
5725
  };
5412
5726
  run: {
5413
5727
  payload: string;
5414
- id: string;
5415
5728
  payloadType: string;
5729
+ id: string;
5416
5730
  tags: string[];
5417
5731
  isTest: boolean;
5418
5732
  createdAt: Date;
@@ -5457,8 +5771,8 @@ declare const serverWebsocketMessages: {
5457
5771
  };
5458
5772
  run: {
5459
5773
  payload: string;
5460
- id: string;
5461
5774
  payloadType: string;
5775
+ id: string;
5462
5776
  tags: string[];
5463
5777
  createdAt: Date;
5464
5778
  context?: any;
@@ -5507,8 +5821,8 @@ declare const serverWebsocketMessages: {
5507
5821
  };
5508
5822
  run: {
5509
5823
  payload: string;
5510
- id: string;
5511
5824
  payloadType: string;
5825
+ id: string;
5512
5826
  tags: string[];
5513
5827
  isTest: boolean;
5514
5828
  createdAt: Date;
@@ -5557,8 +5871,8 @@ declare const serverWebsocketMessages: {
5557
5871
  };
5558
5872
  run: {
5559
5873
  payload: string;
5560
- id: string;
5561
5874
  payloadType: string;
5875
+ id: string;
5562
5876
  tags: string[];
5563
5877
  createdAt: Date;
5564
5878
  context?: any;
@@ -5610,8 +5924,8 @@ declare const serverWebsocketMessages: {
5610
5924
  };
5611
5925
  run: {
5612
5926
  payload: string;
5613
- id: string;
5614
5927
  payloadType: string;
5928
+ id: string;
5615
5929
  tags: string[];
5616
5930
  isTest: boolean;
5617
5931
  createdAt: Date;
@@ -5663,8 +5977,8 @@ declare const serverWebsocketMessages: {
5663
5977
  };
5664
5978
  run: {
5665
5979
  payload: string;
5666
- id: string;
5667
5980
  payloadType: string;
5981
+ id: string;
5668
5982
  tags: string[];
5669
5983
  createdAt: Date;
5670
5984
  context?: any;
@@ -5732,12 +6046,12 @@ declare const serverWebsocketMessages: {
5732
6046
  type: "SCHEDULE_ATTEMPT";
5733
6047
  id: string;
5734
6048
  version: string;
5735
- image: string;
5736
6049
  machine: {
5737
6050
  version: "v1";
5738
6051
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
5739
6052
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
5740
6053
  };
6054
+ image: string;
5741
6055
  envId: string;
5742
6056
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5743
6057
  orgId: string;
@@ -5747,12 +6061,12 @@ declare const serverWebsocketMessages: {
5747
6061
  type: "SCHEDULE_ATTEMPT";
5748
6062
  id: string;
5749
6063
  version: string;
5750
- image: string;
5751
6064
  machine: {
5752
6065
  version?: "v1" | undefined;
5753
6066
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
5754
6067
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
5755
6068
  };
6069
+ image: string;
5756
6070
  envId: string;
5757
6071
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5758
6072
  orgId: string;
@@ -5783,8 +6097,8 @@ declare const serverWebsocketMessages: {
5783
6097
  };
5784
6098
  run: {
5785
6099
  payload: string;
5786
- id: string;
5787
6100
  payloadType: string;
6101
+ id: string;
5788
6102
  tags: string[];
5789
6103
  isTest: boolean;
5790
6104
  createdAt: Date;
@@ -5821,12 +6135,12 @@ declare const serverWebsocketMessages: {
5821
6135
  type: "SCHEDULE_ATTEMPT";
5822
6136
  id: string;
5823
6137
  version: string;
5824
- image: string;
5825
6138
  machine: {
5826
6139
  version: "v1";
5827
6140
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
5828
6141
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
5829
6142
  };
6143
+ image: string;
5830
6144
  envId: string;
5831
6145
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5832
6146
  orgId: string;
@@ -5859,8 +6173,8 @@ declare const serverWebsocketMessages: {
5859
6173
  };
5860
6174
  run: {
5861
6175
  payload: string;
5862
- id: string;
5863
6176
  payloadType: string;
6177
+ id: string;
5864
6178
  tags: string[];
5865
6179
  createdAt: Date;
5866
6180
  context?: any;
@@ -5897,12 +6211,12 @@ declare const serverWebsocketMessages: {
5897
6211
  type: "SCHEDULE_ATTEMPT";
5898
6212
  id: string;
5899
6213
  version: string;
5900
- image: string;
5901
6214
  machine: {
5902
6215
  version?: "v1" | undefined;
5903
6216
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
5904
6217
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
5905
6218
  };
6219
+ image: string;
5906
6220
  envId: string;
5907
6221
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5908
6222
  orgId: string;
@@ -5917,7 +6231,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
5917
6231
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
5918
6232
  type: z.ZodLiteral<"TASK_RUN_COMPLETED">;
5919
6233
  completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
5920
- ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
6234
+ ok: z.ZodLiteral<true>;
5921
6235
  id: z.ZodString;
5922
6236
  output: z.ZodOptional<z.ZodString>;
5923
6237
  outputType: z.ZodString;
@@ -5969,15 +6283,15 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
5969
6283
  raw: string;
5970
6284
  }>, z.ZodObject<{
5971
6285
  type: z.ZodLiteral<"INTERNAL_ERROR">;
5972
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
6286
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
5973
6287
  message: z.ZodOptional<z.ZodString>;
5974
6288
  }, "strip", z.ZodTypeAny, {
5975
6289
  type: "INTERNAL_ERROR";
5976
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6290
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
5977
6291
  message?: string | undefined;
5978
6292
  }, {
5979
6293
  type: "INTERNAL_ERROR";
5980
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6294
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
5981
6295
  message?: string | undefined;
5982
6296
  }>]>;
5983
6297
  retry: z.ZodOptional<z.ZodObject<{
@@ -6008,7 +6322,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6008
6322
  raw: string;
6009
6323
  } | {
6010
6324
  type: "INTERNAL_ERROR";
6011
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6325
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6012
6326
  message?: string | undefined;
6013
6327
  };
6014
6328
  id: string;
@@ -6033,7 +6347,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6033
6347
  raw: string;
6034
6348
  } | {
6035
6349
  type: "INTERNAL_ERROR";
6036
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6350
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6037
6351
  message?: string | undefined;
6038
6352
  };
6039
6353
  id: string;
@@ -6091,16 +6405,16 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6091
6405
  createdAt: z.ZodDate;
6092
6406
  }, "strip", z.ZodTypeAny, {
6093
6407
  payload: string;
6094
- id: string;
6095
6408
  payloadType: string;
6409
+ id: string;
6096
6410
  tags: string[];
6097
6411
  isTest: boolean;
6098
6412
  createdAt: Date;
6099
6413
  context?: any;
6100
6414
  }, {
6101
6415
  payload: string;
6102
- id: string;
6103
6416
  payloadType: string;
6417
+ id: string;
6104
6418
  tags: string[];
6105
6419
  createdAt: Date;
6106
6420
  context?: any;
@@ -6185,8 +6499,8 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6185
6499
  };
6186
6500
  run: {
6187
6501
  payload: string;
6188
- id: string;
6189
6502
  payloadType: string;
6503
+ id: string;
6190
6504
  tags: string[];
6191
6505
  isTest: boolean;
6192
6506
  createdAt: Date;
@@ -6231,8 +6545,8 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6231
6545
  };
6232
6546
  run: {
6233
6547
  payload: string;
6234
- id: string;
6235
6548
  payloadType: string;
6549
+ id: string;
6236
6550
  tags: string[];
6237
6551
  createdAt: Date;
6238
6552
  context?: any;
@@ -6281,8 +6595,8 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6281
6595
  };
6282
6596
  run: {
6283
6597
  payload: string;
6284
- id: string;
6285
6598
  payloadType: string;
6599
+ id: string;
6286
6600
  tags: string[];
6287
6601
  isTest: boolean;
6288
6602
  createdAt: Date;
@@ -6322,7 +6636,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6322
6636
  raw: string;
6323
6637
  } | {
6324
6638
  type: "INTERNAL_ERROR";
6325
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6639
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6326
6640
  message?: string | undefined;
6327
6641
  };
6328
6642
  id: string;
@@ -6361,8 +6675,8 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6361
6675
  };
6362
6676
  run: {
6363
6677
  payload: string;
6364
- id: string;
6365
6678
  payloadType: string;
6679
+ id: string;
6366
6680
  tags: string[];
6367
6681
  createdAt: Date;
6368
6682
  context?: any;
@@ -6402,7 +6716,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
6402
6716
  raw: string;
6403
6717
  } | {
6404
6718
  type: "INTERNAL_ERROR";
6405
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6719
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6406
6720
  message?: string | undefined;
6407
6721
  };
6408
6722
  id: string;
@@ -6476,7 +6790,7 @@ declare const clientWebsocketMessages: {
6476
6790
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
6477
6791
  type: z.ZodLiteral<"TASK_RUN_COMPLETED">;
6478
6792
  completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
6479
- ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
6793
+ ok: z.ZodLiteral<true>;
6480
6794
  id: z.ZodString;
6481
6795
  output: z.ZodOptional<z.ZodString>;
6482
6796
  outputType: z.ZodString;
@@ -6528,15 +6842,15 @@ declare const clientWebsocketMessages: {
6528
6842
  raw: string;
6529
6843
  }>, z.ZodObject<{
6530
6844
  type: z.ZodLiteral<"INTERNAL_ERROR">;
6531
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
6845
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
6532
6846
  message: z.ZodOptional<z.ZodString>;
6533
6847
  }, "strip", z.ZodTypeAny, {
6534
6848
  type: "INTERNAL_ERROR";
6535
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6849
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6536
6850
  message?: string | undefined;
6537
6851
  }, {
6538
6852
  type: "INTERNAL_ERROR";
6539
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6853
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6540
6854
  message?: string | undefined;
6541
6855
  }>]>;
6542
6856
  retry: z.ZodOptional<z.ZodObject<{
@@ -6567,7 +6881,7 @@ declare const clientWebsocketMessages: {
6567
6881
  raw: string;
6568
6882
  } | {
6569
6883
  type: "INTERNAL_ERROR";
6570
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6884
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6571
6885
  message?: string | undefined;
6572
6886
  };
6573
6887
  id: string;
@@ -6592,7 +6906,7 @@ declare const clientWebsocketMessages: {
6592
6906
  raw: string;
6593
6907
  } | {
6594
6908
  type: "INTERNAL_ERROR";
6595
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6909
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6596
6910
  message?: string | undefined;
6597
6911
  };
6598
6912
  id: string;
@@ -6650,16 +6964,16 @@ declare const clientWebsocketMessages: {
6650
6964
  createdAt: z.ZodDate;
6651
6965
  }, "strip", z.ZodTypeAny, {
6652
6966
  payload: string;
6653
- id: string;
6654
6967
  payloadType: string;
6968
+ id: string;
6655
6969
  tags: string[];
6656
6970
  isTest: boolean;
6657
6971
  createdAt: Date;
6658
6972
  context?: any;
6659
6973
  }, {
6660
6974
  payload: string;
6661
- id: string;
6662
6975
  payloadType: string;
6976
+ id: string;
6663
6977
  tags: string[];
6664
6978
  createdAt: Date;
6665
6979
  context?: any;
@@ -6744,8 +7058,8 @@ declare const clientWebsocketMessages: {
6744
7058
  };
6745
7059
  run: {
6746
7060
  payload: string;
6747
- id: string;
6748
7061
  payloadType: string;
7062
+ id: string;
6749
7063
  tags: string[];
6750
7064
  isTest: boolean;
6751
7065
  createdAt: Date;
@@ -6790,8 +7104,8 @@ declare const clientWebsocketMessages: {
6790
7104
  };
6791
7105
  run: {
6792
7106
  payload: string;
6793
- id: string;
6794
7107
  payloadType: string;
7108
+ id: string;
6795
7109
  tags: string[];
6796
7110
  createdAt: Date;
6797
7111
  context?: any;
@@ -6840,8 +7154,8 @@ declare const clientWebsocketMessages: {
6840
7154
  };
6841
7155
  run: {
6842
7156
  payload: string;
6843
- id: string;
6844
7157
  payloadType: string;
7158
+ id: string;
6845
7159
  tags: string[];
6846
7160
  isTest: boolean;
6847
7161
  createdAt: Date;
@@ -6881,7 +7195,7 @@ declare const clientWebsocketMessages: {
6881
7195
  raw: string;
6882
7196
  } | {
6883
7197
  type: "INTERNAL_ERROR";
6884
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7198
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6885
7199
  message?: string | undefined;
6886
7200
  };
6887
7201
  id: string;
@@ -6920,8 +7234,8 @@ declare const clientWebsocketMessages: {
6920
7234
  };
6921
7235
  run: {
6922
7236
  payload: string;
6923
- id: string;
6924
7237
  payloadType: string;
7238
+ id: string;
6925
7239
  tags: string[];
6926
7240
  createdAt: Date;
6927
7241
  context?: any;
@@ -6961,7 +7275,7 @@ declare const clientWebsocketMessages: {
6961
7275
  raw: string;
6962
7276
  } | {
6963
7277
  type: "INTERNAL_ERROR";
6964
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7278
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
6965
7279
  message?: string | undefined;
6966
7280
  };
6967
7281
  id: string;
@@ -7016,8 +7330,8 @@ declare const clientWebsocketMessages: {
7016
7330
  };
7017
7331
  run: {
7018
7332
  payload: string;
7019
- id: string;
7020
7333
  payloadType: string;
7334
+ id: string;
7021
7335
  tags: string[];
7022
7336
  isTest: boolean;
7023
7337
  createdAt: Date;
@@ -7057,7 +7371,7 @@ declare const clientWebsocketMessages: {
7057
7371
  raw: string;
7058
7372
  } | {
7059
7373
  type: "INTERNAL_ERROR";
7060
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7374
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7061
7375
  message?: string | undefined;
7062
7376
  };
7063
7377
  id: string;
@@ -7104,8 +7418,8 @@ declare const clientWebsocketMessages: {
7104
7418
  };
7105
7419
  run: {
7106
7420
  payload: string;
7107
- id: string;
7108
7421
  payloadType: string;
7422
+ id: string;
7109
7423
  tags: string[];
7110
7424
  createdAt: Date;
7111
7425
  context?: any;
@@ -7145,7 +7459,7 @@ declare const clientWebsocketMessages: {
7145
7459
  raw: string;
7146
7460
  } | {
7147
7461
  type: "INTERNAL_ERROR";
7148
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7462
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7149
7463
  message?: string | undefined;
7150
7464
  };
7151
7465
  id: string;
@@ -7221,16 +7535,16 @@ declare const workerToChildMessages: {
7221
7535
  createdAt: z.ZodDate;
7222
7536
  }, "strip", z.ZodTypeAny, {
7223
7537
  payload: string;
7224
- id: string;
7225
7538
  payloadType: string;
7539
+ id: string;
7226
7540
  tags: string[];
7227
7541
  isTest: boolean;
7228
7542
  createdAt: Date;
7229
7543
  context?: any;
7230
7544
  }, {
7231
7545
  payload: string;
7232
- id: string;
7233
7546
  payloadType: string;
7547
+ id: string;
7234
7548
  tags: string[];
7235
7549
  createdAt: Date;
7236
7550
  context?: any;
@@ -7315,8 +7629,8 @@ declare const workerToChildMessages: {
7315
7629
  };
7316
7630
  run: {
7317
7631
  payload: string;
7318
- id: string;
7319
7632
  payloadType: string;
7633
+ id: string;
7320
7634
  tags: string[];
7321
7635
  isTest: boolean;
7322
7636
  createdAt: Date;
@@ -7361,8 +7675,8 @@ declare const workerToChildMessages: {
7361
7675
  };
7362
7676
  run: {
7363
7677
  payload: string;
7364
- id: string;
7365
7678
  payloadType: string;
7679
+ id: string;
7366
7680
  tags: string[];
7367
7681
  createdAt: Date;
7368
7682
  context?: any;
@@ -7424,8 +7738,8 @@ declare const workerToChildMessages: {
7424
7738
  };
7425
7739
  run: {
7426
7740
  payload: string;
7427
- id: string;
7428
7741
  payloadType: string;
7742
+ id: string;
7429
7743
  tags: string[];
7430
7744
  isTest: boolean;
7431
7745
  createdAt: Date;
@@ -7478,8 +7792,8 @@ declare const workerToChildMessages: {
7478
7792
  };
7479
7793
  run: {
7480
7794
  payload: string;
7481
- id: string;
7482
7795
  payloadType: string;
7796
+ id: string;
7483
7797
  tags: string[];
7484
7798
  createdAt: Date;
7485
7799
  context?: any;
@@ -7516,7 +7830,7 @@ declare const workerToChildMessages: {
7516
7830
  TASK_RUN_COMPLETED_NOTIFICATION: z.ZodObject<{
7517
7831
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
7518
7832
  completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
7519
- ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
7833
+ ok: z.ZodLiteral<true>;
7520
7834
  id: z.ZodString;
7521
7835
  output: z.ZodOptional<z.ZodString>;
7522
7836
  outputType: z.ZodString;
@@ -7568,15 +7882,15 @@ declare const workerToChildMessages: {
7568
7882
  raw: string;
7569
7883
  }>, z.ZodObject<{
7570
7884
  type: z.ZodLiteral<"INTERNAL_ERROR">;
7571
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
7885
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
7572
7886
  message: z.ZodOptional<z.ZodString>;
7573
7887
  }, "strip", z.ZodTypeAny, {
7574
7888
  type: "INTERNAL_ERROR";
7575
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7889
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7576
7890
  message?: string | undefined;
7577
7891
  }, {
7578
7892
  type: "INTERNAL_ERROR";
7579
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7893
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7580
7894
  message?: string | undefined;
7581
7895
  }>]>;
7582
7896
  retry: z.ZodOptional<z.ZodObject<{
@@ -7607,7 +7921,7 @@ declare const workerToChildMessages: {
7607
7921
  raw: string;
7608
7922
  } | {
7609
7923
  type: "INTERNAL_ERROR";
7610
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7924
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7611
7925
  message?: string | undefined;
7612
7926
  };
7613
7927
  id: string;
@@ -7632,7 +7946,7 @@ declare const workerToChildMessages: {
7632
7946
  raw: string;
7633
7947
  } | {
7634
7948
  type: "INTERNAL_ERROR";
7635
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7949
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7636
7950
  message?: string | undefined;
7637
7951
  };
7638
7952
  id: string;
@@ -7690,16 +8004,16 @@ declare const workerToChildMessages: {
7690
8004
  createdAt: z.ZodDate;
7691
8005
  }, "strip", z.ZodTypeAny, {
7692
8006
  payload: string;
7693
- id: string;
7694
8007
  payloadType: string;
8008
+ id: string;
7695
8009
  tags: string[];
7696
8010
  isTest: boolean;
7697
8011
  createdAt: Date;
7698
8012
  context?: any;
7699
8013
  }, {
7700
8014
  payload: string;
7701
- id: string;
7702
8015
  payloadType: string;
8016
+ id: string;
7703
8017
  tags: string[];
7704
8018
  createdAt: Date;
7705
8019
  context?: any;
@@ -7784,8 +8098,8 @@ declare const workerToChildMessages: {
7784
8098
  };
7785
8099
  run: {
7786
8100
  payload: string;
7787
- id: string;
7788
8101
  payloadType: string;
8102
+ id: string;
7789
8103
  tags: string[];
7790
8104
  isTest: boolean;
7791
8105
  createdAt: Date;
@@ -7830,8 +8144,8 @@ declare const workerToChildMessages: {
7830
8144
  };
7831
8145
  run: {
7832
8146
  payload: string;
7833
- id: string;
7834
8147
  payloadType: string;
8148
+ id: string;
7835
8149
  tags: string[];
7836
8150
  createdAt: Date;
7837
8151
  context?: any;
@@ -7879,8 +8193,8 @@ declare const workerToChildMessages: {
7879
8193
  };
7880
8194
  run: {
7881
8195
  payload: string;
7882
- id: string;
7883
8196
  payloadType: string;
8197
+ id: string;
7884
8198
  tags: string[];
7885
8199
  isTest: boolean;
7886
8200
  createdAt: Date;
@@ -7920,7 +8234,7 @@ declare const workerToChildMessages: {
7920
8234
  raw: string;
7921
8235
  } | {
7922
8236
  type: "INTERNAL_ERROR";
7923
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
8237
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
7924
8238
  message?: string | undefined;
7925
8239
  };
7926
8240
  id: string;
@@ -7958,8 +8272,8 @@ declare const workerToChildMessages: {
7958
8272
  };
7959
8273
  run: {
7960
8274
  payload: string;
7961
- id: string;
7962
8275
  payloadType: string;
8276
+ id: string;
7963
8277
  tags: string[];
7964
8278
  createdAt: Date;
7965
8279
  context?: any;
@@ -7999,7 +8313,7 @@ declare const workerToChildMessages: {
7999
8313
  raw: string;
8000
8314
  } | {
8001
8315
  type: "INTERNAL_ERROR";
8002
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
8316
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
8003
8317
  message?: string | undefined;
8004
8318
  };
8005
8319
  id: string;
@@ -8506,7 +8820,6 @@ declare const QueueOptions: z.ZodObject<{
8506
8820
  type QueueOptions = z.infer<typeof QueueOptions>;
8507
8821
  declare const TaskMetadata: z.ZodObject<{
8508
8822
  id: z.ZodString;
8509
- exportName: z.ZodString;
8510
8823
  packageVersion: z.ZodString;
8511
8824
  queue: z.ZodOptional<z.ZodObject<{
8512
8825
  /** You can define a shared queue and then pass the name in to your task.
@@ -8771,9 +9084,9 @@ declare const TaskMetadata: z.ZodObject<{
8771
9084
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
8772
9085
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
8773
9086
  }>>;
9087
+ triggerSource: z.ZodOptional<z.ZodString>;
8774
9088
  }, "strip", z.ZodTypeAny, {
8775
9089
  id: string;
8776
- exportName: string;
8777
9090
  packageVersion: string;
8778
9091
  queue?: {
8779
9092
  name?: string | undefined;
@@ -8824,9 +9137,9 @@ declare const TaskMetadata: z.ZodObject<{
8824
9137
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
8825
9138
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
8826
9139
  } | undefined;
9140
+ triggerSource?: string | undefined;
8827
9141
  }, {
8828
9142
  id: string;
8829
- exportName: string;
8830
9143
  packageVersion: string;
8831
9144
  queue?: {
8832
9145
  name?: string | undefined;
@@ -8877,8 +9190,20 @@ declare const TaskMetadata: z.ZodObject<{
8877
9190
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
8878
9191
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
8879
9192
  } | undefined;
9193
+ triggerSource?: string | undefined;
8880
9194
  }>;
8881
9195
  type TaskMetadata = z.infer<typeof TaskMetadata>;
9196
+ declare const TaskFileMetadata: z.ZodObject<{
9197
+ filePath: z.ZodString;
9198
+ exportName: z.ZodString;
9199
+ }, "strip", z.ZodTypeAny, {
9200
+ filePath: string;
9201
+ exportName: string;
9202
+ }, {
9203
+ filePath: string;
9204
+ exportName: string;
9205
+ }>;
9206
+ type TaskFileMetadata = z.infer<typeof TaskFileMetadata>;
8882
9207
  declare const TaskMetadataWithFilePath: z.ZodObject<{
8883
9208
  queue: z.ZodOptional<z.ZodObject<{
8884
9209
  /** You can define a shared queue and then pass the name in to your task.
@@ -9101,7 +9426,6 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
9101
9426
  } | undefined;
9102
9427
  }>>;
9103
9428
  id: z.ZodString;
9104
- exportName: z.ZodString;
9105
9429
  retry: z.ZodOptional<z.ZodObject<{
9106
9430
  /** The number of attempts before giving up */
9107
9431
  maxAttempts: z.ZodOptional<z.ZodNumber>;
@@ -9132,6 +9456,7 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
9132
9456
  maxTimeoutInMs?: number | undefined;
9133
9457
  randomize?: boolean | undefined;
9134
9458
  }>>;
9459
+ packageVersion: z.ZodString;
9135
9460
  machine: z.ZodOptional<z.ZodObject<{
9136
9461
  version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
9137
9462
  cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
@@ -9145,8 +9470,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
9145
9470
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
9146
9471
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
9147
9472
  }>>;
9148
- packageVersion: z.ZodString;
9473
+ triggerSource: z.ZodOptional<z.ZodString>;
9149
9474
  filePath: z.ZodString;
9475
+ exportName: z.ZodString;
9150
9476
  }, "strip", z.ZodTypeAny, {
9151
9477
  id: string;
9152
9478
  filePath: string;
@@ -9201,6 +9527,7 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
9201
9527
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
9202
9528
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
9203
9529
  } | undefined;
9530
+ triggerSource?: string | undefined;
9204
9531
  }, {
9205
9532
  id: string;
9206
9533
  filePath: string;
@@ -9255,6 +9582,7 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
9255
9582
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
9256
9583
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
9257
9584
  } | undefined;
9585
+ triggerSource?: string | undefined;
9258
9586
  }>;
9259
9587
  type TaskMetadataWithFilePath = z.infer<typeof TaskMetadataWithFilePath>;
9260
9588
  declare const UncaughtExceptionMessage: z.ZodObject<{
@@ -9352,16 +9680,16 @@ declare const childToWorkerMessages: {
9352
9680
  createdAt: z.ZodDate;
9353
9681
  }, "strip", z.ZodTypeAny, {
9354
9682
  payload: string;
9355
- id: string;
9356
9683
  payloadType: string;
9684
+ id: string;
9357
9685
  tags: string[];
9358
9686
  isTest: boolean;
9359
9687
  createdAt: Date;
9360
9688
  context?: any;
9361
9689
  }, {
9362
9690
  payload: string;
9363
- id: string;
9364
9691
  payloadType: string;
9692
+ id: string;
9365
9693
  tags: string[];
9366
9694
  createdAt: Date;
9367
9695
  context?: any;
@@ -9446,8 +9774,8 @@ declare const childToWorkerMessages: {
9446
9774
  };
9447
9775
  run: {
9448
9776
  payload: string;
9449
- id: string;
9450
9777
  payloadType: string;
9778
+ id: string;
9451
9779
  tags: string[];
9452
9780
  isTest: boolean;
9453
9781
  createdAt: Date;
@@ -9492,8 +9820,8 @@ declare const childToWorkerMessages: {
9492
9820
  };
9493
9821
  run: {
9494
9822
  payload: string;
9495
- id: string;
9496
9823
  payloadType: string;
9824
+ id: string;
9497
9825
  tags: string[];
9498
9826
  createdAt: Date;
9499
9827
  context?: any;
@@ -9520,7 +9848,7 @@ declare const childToWorkerMessages: {
9520
9848
  } | undefined;
9521
9849
  }>;
9522
9850
  result: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
9523
- ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
9851
+ ok: z.ZodLiteral<true>;
9524
9852
  id: z.ZodString;
9525
9853
  output: z.ZodOptional<z.ZodString>;
9526
9854
  outputType: z.ZodString;
@@ -9572,15 +9900,15 @@ declare const childToWorkerMessages: {
9572
9900
  raw: string;
9573
9901
  }>, z.ZodObject<{
9574
9902
  type: z.ZodLiteral<"INTERNAL_ERROR">;
9575
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
9903
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
9576
9904
  message: z.ZodOptional<z.ZodString>;
9577
9905
  }, "strip", z.ZodTypeAny, {
9578
9906
  type: "INTERNAL_ERROR";
9579
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9907
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9580
9908
  message?: string | undefined;
9581
9909
  }, {
9582
9910
  type: "INTERNAL_ERROR";
9583
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9911
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9584
9912
  message?: string | undefined;
9585
9913
  }>]>;
9586
9914
  retry: z.ZodOptional<z.ZodObject<{
@@ -9611,7 +9939,7 @@ declare const childToWorkerMessages: {
9611
9939
  raw: string;
9612
9940
  } | {
9613
9941
  type: "INTERNAL_ERROR";
9614
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9942
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9615
9943
  message?: string | undefined;
9616
9944
  };
9617
9945
  id: string;
@@ -9636,7 +9964,7 @@ declare const childToWorkerMessages: {
9636
9964
  raw: string;
9637
9965
  } | {
9638
9966
  type: "INTERNAL_ERROR";
9639
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9967
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9640
9968
  message?: string | undefined;
9641
9969
  };
9642
9970
  id: string;
@@ -9670,8 +9998,8 @@ declare const childToWorkerMessages: {
9670
9998
  };
9671
9999
  run: {
9672
10000
  payload: string;
9673
- id: string;
9674
10001
  payloadType: string;
10002
+ id: string;
9675
10003
  tags: string[];
9676
10004
  isTest: boolean;
9677
10005
  createdAt: Date;
@@ -9711,7 +10039,7 @@ declare const childToWorkerMessages: {
9711
10039
  raw: string;
9712
10040
  } | {
9713
10041
  type: "INTERNAL_ERROR";
9714
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10042
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9715
10043
  message?: string | undefined;
9716
10044
  };
9717
10045
  id: string;
@@ -9749,8 +10077,8 @@ declare const childToWorkerMessages: {
9749
10077
  };
9750
10078
  run: {
9751
10079
  payload: string;
9752
- id: string;
9753
10080
  payloadType: string;
10081
+ id: string;
9754
10082
  tags: string[];
9755
10083
  createdAt: Date;
9756
10084
  context?: any;
@@ -9790,7 +10118,7 @@ declare const childToWorkerMessages: {
9790
10118
  raw: string;
9791
10119
  } | {
9792
10120
  type: "INTERNAL_ERROR";
9793
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10121
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
9794
10122
  message?: string | undefined;
9795
10123
  };
9796
10124
  id: string;
@@ -10033,7 +10361,6 @@ declare const childToWorkerMessages: {
10033
10361
  } | undefined;
10034
10362
  }>>;
10035
10363
  id: z.ZodString;
10036
- exportName: z.ZodString;
10037
10364
  retry: z.ZodOptional<z.ZodObject<{
10038
10365
  /** The number of attempts before giving up */
10039
10366
  maxAttempts: z.ZodOptional<z.ZodNumber>;
@@ -10064,6 +10391,7 @@ declare const childToWorkerMessages: {
10064
10391
  maxTimeoutInMs?: number | undefined;
10065
10392
  randomize?: boolean | undefined;
10066
10393
  }>>;
10394
+ packageVersion: z.ZodString;
10067
10395
  machine: z.ZodOptional<z.ZodObject<{
10068
10396
  version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
10069
10397
  cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
@@ -10077,8 +10405,9 @@ declare const childToWorkerMessages: {
10077
10405
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
10078
10406
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
10079
10407
  }>>;
10080
- packageVersion: z.ZodString;
10408
+ triggerSource: z.ZodOptional<z.ZodString>;
10081
10409
  filePath: z.ZodString;
10410
+ exportName: z.ZodString;
10082
10411
  }, "strip", z.ZodTypeAny, {
10083
10412
  id: string;
10084
10413
  filePath: string;
@@ -10133,6 +10462,7 @@ declare const childToWorkerMessages: {
10133
10462
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
10134
10463
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
10135
10464
  } | undefined;
10465
+ triggerSource?: string | undefined;
10136
10466
  }, {
10137
10467
  id: string;
10138
10468
  filePath: string;
@@ -10187,6 +10517,7 @@ declare const childToWorkerMessages: {
10187
10517
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
10188
10518
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
10189
10519
  } | undefined;
10520
+ triggerSource?: string | undefined;
10190
10521
  }>, "many">;
10191
10522
  }, "strip", z.ZodTypeAny, {
10192
10523
  version: "v1";
@@ -10244,6 +10575,7 @@ declare const childToWorkerMessages: {
10244
10575
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
10245
10576
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
10246
10577
  } | undefined;
10578
+ triggerSource?: string | undefined;
10247
10579
  }[];
10248
10580
  }, {
10249
10581
  tasks: {
@@ -10300,6 +10632,7 @@ declare const childToWorkerMessages: {
10300
10632
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
10301
10633
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
10302
10634
  } | undefined;
10635
+ triggerSource?: string | undefined;
10303
10636
  }[];
10304
10637
  version?: "v1" | undefined;
10305
10638
  }>;
@@ -10444,16 +10777,16 @@ declare const ProdChildToWorkerMessages: {
10444
10777
  createdAt: z.ZodDate;
10445
10778
  }, "strip", z.ZodTypeAny, {
10446
10779
  payload: string;
10447
- id: string;
10448
10780
  payloadType: string;
10781
+ id: string;
10449
10782
  tags: string[];
10450
10783
  isTest: boolean;
10451
10784
  createdAt: Date;
10452
10785
  context?: any;
10453
10786
  }, {
10454
10787
  payload: string;
10455
- id: string;
10456
10788
  payloadType: string;
10789
+ id: string;
10457
10790
  tags: string[];
10458
10791
  createdAt: Date;
10459
10792
  context?: any;
@@ -10538,8 +10871,8 @@ declare const ProdChildToWorkerMessages: {
10538
10871
  };
10539
10872
  run: {
10540
10873
  payload: string;
10541
- id: string;
10542
10874
  payloadType: string;
10875
+ id: string;
10543
10876
  tags: string[];
10544
10877
  isTest: boolean;
10545
10878
  createdAt: Date;
@@ -10584,8 +10917,8 @@ declare const ProdChildToWorkerMessages: {
10584
10917
  };
10585
10918
  run: {
10586
10919
  payload: string;
10587
- id: string;
10588
10920
  payloadType: string;
10921
+ id: string;
10589
10922
  tags: string[];
10590
10923
  createdAt: Date;
10591
10924
  context?: any;
@@ -10612,7 +10945,7 @@ declare const ProdChildToWorkerMessages: {
10612
10945
  } | undefined;
10613
10946
  }>;
10614
10947
  result: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
10615
- ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
10948
+ ok: z.ZodLiteral<true>;
10616
10949
  id: z.ZodString;
10617
10950
  output: z.ZodOptional<z.ZodString>;
10618
10951
  outputType: z.ZodString;
@@ -10664,15 +10997,15 @@ declare const ProdChildToWorkerMessages: {
10664
10997
  raw: string;
10665
10998
  }>, z.ZodObject<{
10666
10999
  type: z.ZodLiteral<"INTERNAL_ERROR">;
10667
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
11000
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
10668
11001
  message: z.ZodOptional<z.ZodString>;
10669
11002
  }, "strip", z.ZodTypeAny, {
10670
11003
  type: "INTERNAL_ERROR";
10671
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11004
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10672
11005
  message?: string | undefined;
10673
11006
  }, {
10674
11007
  type: "INTERNAL_ERROR";
10675
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11008
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10676
11009
  message?: string | undefined;
10677
11010
  }>]>;
10678
11011
  retry: z.ZodOptional<z.ZodObject<{
@@ -10703,7 +11036,7 @@ declare const ProdChildToWorkerMessages: {
10703
11036
  raw: string;
10704
11037
  } | {
10705
11038
  type: "INTERNAL_ERROR";
10706
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11039
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10707
11040
  message?: string | undefined;
10708
11041
  };
10709
11042
  id: string;
@@ -10728,7 +11061,7 @@ declare const ProdChildToWorkerMessages: {
10728
11061
  raw: string;
10729
11062
  } | {
10730
11063
  type: "INTERNAL_ERROR";
10731
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11064
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10732
11065
  message?: string | undefined;
10733
11066
  };
10734
11067
  id: string;
@@ -10762,8 +11095,8 @@ declare const ProdChildToWorkerMessages: {
10762
11095
  };
10763
11096
  run: {
10764
11097
  payload: string;
10765
- id: string;
10766
11098
  payloadType: string;
11099
+ id: string;
10767
11100
  tags: string[];
10768
11101
  isTest: boolean;
10769
11102
  createdAt: Date;
@@ -10803,7 +11136,7 @@ declare const ProdChildToWorkerMessages: {
10803
11136
  raw: string;
10804
11137
  } | {
10805
11138
  type: "INTERNAL_ERROR";
10806
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11139
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10807
11140
  message?: string | undefined;
10808
11141
  };
10809
11142
  id: string;
@@ -10841,8 +11174,8 @@ declare const ProdChildToWorkerMessages: {
10841
11174
  };
10842
11175
  run: {
10843
11176
  payload: string;
10844
- id: string;
10845
11177
  payloadType: string;
11178
+ id: string;
10846
11179
  tags: string[];
10847
11180
  createdAt: Date;
10848
11181
  context?: any;
@@ -10882,7 +11215,7 @@ declare const ProdChildToWorkerMessages: {
10882
11215
  raw: string;
10883
11216
  } | {
10884
11217
  type: "INTERNAL_ERROR";
10885
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11218
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
10886
11219
  message?: string | undefined;
10887
11220
  };
10888
11221
  id: string;
@@ -11127,7 +11460,6 @@ declare const ProdChildToWorkerMessages: {
11127
11460
  } | undefined;
11128
11461
  }>>;
11129
11462
  id: z.ZodString;
11130
- exportName: z.ZodString;
11131
11463
  retry: z.ZodOptional<z.ZodObject<{
11132
11464
  /** The number of attempts before giving up */
11133
11465
  maxAttempts: z.ZodOptional<z.ZodNumber>;
@@ -11158,6 +11490,7 @@ declare const ProdChildToWorkerMessages: {
11158
11490
  maxTimeoutInMs?: number | undefined;
11159
11491
  randomize?: boolean | undefined;
11160
11492
  }>>;
11493
+ packageVersion: z.ZodString;
11161
11494
  machine: z.ZodOptional<z.ZodObject<{
11162
11495
  version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
11163
11496
  cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
@@ -11171,8 +11504,9 @@ declare const ProdChildToWorkerMessages: {
11171
11504
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
11172
11505
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
11173
11506
  }>>;
11174
- packageVersion: z.ZodString;
11507
+ triggerSource: z.ZodOptional<z.ZodString>;
11175
11508
  filePath: z.ZodString;
11509
+ exportName: z.ZodString;
11176
11510
  }, "strip", z.ZodTypeAny, {
11177
11511
  id: string;
11178
11512
  filePath: string;
@@ -11227,6 +11561,7 @@ declare const ProdChildToWorkerMessages: {
11227
11561
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
11228
11562
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
11229
11563
  } | undefined;
11564
+ triggerSource?: string | undefined;
11230
11565
  }, {
11231
11566
  id: string;
11232
11567
  filePath: string;
@@ -11281,6 +11616,7 @@ declare const ProdChildToWorkerMessages: {
11281
11616
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
11282
11617
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
11283
11618
  } | undefined;
11619
+ triggerSource?: string | undefined;
11284
11620
  }>, "many">;
11285
11621
  }, "strip", z.ZodTypeAny, {
11286
11622
  version: "v1";
@@ -11338,6 +11674,7 @@ declare const ProdChildToWorkerMessages: {
11338
11674
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
11339
11675
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
11340
11676
  } | undefined;
11677
+ triggerSource?: string | undefined;
11341
11678
  }[];
11342
11679
  }, {
11343
11680
  tasks: {
@@ -11394,6 +11731,7 @@ declare const ProdChildToWorkerMessages: {
11394
11731
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
11395
11732
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
11396
11733
  } | undefined;
11734
+ triggerSource?: string | undefined;
11397
11735
  }[];
11398
11736
  version?: "v1" | undefined;
11399
11737
  }>;
@@ -11581,16 +11919,16 @@ declare const ProdWorkerToChildMessages: {
11581
11919
  createdAt: z.ZodDate;
11582
11920
  }, "strip", z.ZodTypeAny, {
11583
11921
  payload: string;
11584
- id: string;
11585
11922
  payloadType: string;
11923
+ id: string;
11586
11924
  tags: string[];
11587
11925
  isTest: boolean;
11588
11926
  createdAt: Date;
11589
11927
  context?: any;
11590
11928
  }, {
11591
11929
  payload: string;
11592
- id: string;
11593
11930
  payloadType: string;
11931
+ id: string;
11594
11932
  tags: string[];
11595
11933
  createdAt: Date;
11596
11934
  context?: any;
@@ -11675,8 +12013,8 @@ declare const ProdWorkerToChildMessages: {
11675
12013
  };
11676
12014
  run: {
11677
12015
  payload: string;
11678
- id: string;
11679
12016
  payloadType: string;
12017
+ id: string;
11680
12018
  tags: string[];
11681
12019
  isTest: boolean;
11682
12020
  createdAt: Date;
@@ -11721,8 +12059,8 @@ declare const ProdWorkerToChildMessages: {
11721
12059
  };
11722
12060
  run: {
11723
12061
  payload: string;
11724
- id: string;
11725
12062
  payloadType: string;
12063
+ id: string;
11726
12064
  tags: string[];
11727
12065
  createdAt: Date;
11728
12066
  context?: any;
@@ -11784,8 +12122,8 @@ declare const ProdWorkerToChildMessages: {
11784
12122
  };
11785
12123
  run: {
11786
12124
  payload: string;
11787
- id: string;
11788
12125
  payloadType: string;
12126
+ id: string;
11789
12127
  tags: string[];
11790
12128
  isTest: boolean;
11791
12129
  createdAt: Date;
@@ -11838,8 +12176,8 @@ declare const ProdWorkerToChildMessages: {
11838
12176
  };
11839
12177
  run: {
11840
12178
  payload: string;
11841
- id: string;
11842
12179
  payloadType: string;
12180
+ id: string;
11843
12181
  tags: string[];
11844
12182
  createdAt: Date;
11845
12183
  context?: any;
@@ -11878,7 +12216,7 @@ declare const ProdWorkerToChildMessages: {
11878
12216
  message: z.ZodObject<{
11879
12217
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
11880
12218
  completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
11881
- ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
12219
+ ok: z.ZodLiteral<true>;
11882
12220
  id: z.ZodString;
11883
12221
  output: z.ZodOptional<z.ZodString>;
11884
12222
  outputType: z.ZodString;
@@ -11930,15 +12268,15 @@ declare const ProdWorkerToChildMessages: {
11930
12268
  raw: string;
11931
12269
  }>, z.ZodObject<{
11932
12270
  type: z.ZodLiteral<"INTERNAL_ERROR">;
11933
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
12271
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
11934
12272
  message: z.ZodOptional<z.ZodString>;
11935
12273
  }, "strip", z.ZodTypeAny, {
11936
12274
  type: "INTERNAL_ERROR";
11937
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12275
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11938
12276
  message?: string | undefined;
11939
12277
  }, {
11940
12278
  type: "INTERNAL_ERROR";
11941
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12279
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11942
12280
  message?: string | undefined;
11943
12281
  }>]>;
11944
12282
  retry: z.ZodOptional<z.ZodObject<{
@@ -11969,7 +12307,7 @@ declare const ProdWorkerToChildMessages: {
11969
12307
  raw: string;
11970
12308
  } | {
11971
12309
  type: "INTERNAL_ERROR";
11972
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12310
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11973
12311
  message?: string | undefined;
11974
12312
  };
11975
12313
  id: string;
@@ -11994,7 +12332,7 @@ declare const ProdWorkerToChildMessages: {
11994
12332
  raw: string;
11995
12333
  } | {
11996
12334
  type: "INTERNAL_ERROR";
11997
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12335
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
11998
12336
  message?: string | undefined;
11999
12337
  };
12000
12338
  id: string;
@@ -12052,16 +12390,16 @@ declare const ProdWorkerToChildMessages: {
12052
12390
  createdAt: z.ZodDate;
12053
12391
  }, "strip", z.ZodTypeAny, {
12054
12392
  payload: string;
12055
- id: string;
12056
12393
  payloadType: string;
12394
+ id: string;
12057
12395
  tags: string[];
12058
12396
  isTest: boolean;
12059
12397
  createdAt: Date;
12060
12398
  context?: any;
12061
12399
  }, {
12062
12400
  payload: string;
12063
- id: string;
12064
12401
  payloadType: string;
12402
+ id: string;
12065
12403
  tags: string[];
12066
12404
  createdAt: Date;
12067
12405
  context?: any;
@@ -12146,8 +12484,8 @@ declare const ProdWorkerToChildMessages: {
12146
12484
  };
12147
12485
  run: {
12148
12486
  payload: string;
12149
- id: string;
12150
12487
  payloadType: string;
12488
+ id: string;
12151
12489
  tags: string[];
12152
12490
  isTest: boolean;
12153
12491
  createdAt: Date;
@@ -12192,8 +12530,8 @@ declare const ProdWorkerToChildMessages: {
12192
12530
  };
12193
12531
  run: {
12194
12532
  payload: string;
12195
- id: string;
12196
12533
  payloadType: string;
12534
+ id: string;
12197
12535
  tags: string[];
12198
12536
  createdAt: Date;
12199
12537
  context?: any;
@@ -12241,8 +12579,8 @@ declare const ProdWorkerToChildMessages: {
12241
12579
  };
12242
12580
  run: {
12243
12581
  payload: string;
12244
- id: string;
12245
12582
  payloadType: string;
12583
+ id: string;
12246
12584
  tags: string[];
12247
12585
  isTest: boolean;
12248
12586
  createdAt: Date;
@@ -12282,7 +12620,7 @@ declare const ProdWorkerToChildMessages: {
12282
12620
  raw: string;
12283
12621
  } | {
12284
12622
  type: "INTERNAL_ERROR";
12285
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12623
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12286
12624
  message?: string | undefined;
12287
12625
  };
12288
12626
  id: string;
@@ -12320,8 +12658,8 @@ declare const ProdWorkerToChildMessages: {
12320
12658
  };
12321
12659
  run: {
12322
12660
  payload: string;
12323
- id: string;
12324
12661
  payloadType: string;
12662
+ id: string;
12325
12663
  tags: string[];
12326
12664
  createdAt: Date;
12327
12665
  context?: any;
@@ -12361,7 +12699,7 @@ declare const ProdWorkerToChildMessages: {
12361
12699
  raw: string;
12362
12700
  } | {
12363
12701
  type: "INTERNAL_ERROR";
12364
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12702
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
12365
12703
  message?: string | undefined;
12366
12704
  };
12367
12705
  id: string;
@@ -12497,6 +12835,10 @@ interface ProjectConfig {
12497
12835
  * @default "log"
12498
12836
  */
12499
12837
  logLevel?: LogLevel$1;
12838
+ /**
12839
+ * Enable console logging while running the dev CLI. This will print out logs from console.log, console.warn, and console.error. By default all logs are sent to the trigger.dev backend, and not logged to the console.
12840
+ */
12841
+ enableConsoleLogging?: boolean;
12500
12842
  }
12501
12843
 
12502
12844
  type InitOutput = Record<string, any> | void | undefined;
@@ -12537,7 +12879,7 @@ type HandleErrorArgs = {
12537
12879
  retryDelayInMs?: number;
12538
12880
  };
12539
12881
  type HandleErrorFunction = (payload: any, error: unknown, params: HandleErrorArgs) => HandleErrorResult;
12540
- type TaskMetadataWithFunctions = TaskMetadataWithFilePath & {
12882
+ type TaskMetadataWithFunctions = TaskMetadata & {
12541
12883
  fns: {
12542
12884
  run: (payload: any, params: RunFnParams<any>) => Promise<any>;
12543
12885
  init?: (payload: any, params: InitFnParams) => Promise<InitOutput>;
@@ -12601,6 +12943,7 @@ declare const Config: z.ZodObject<{
12601
12943
  additionalFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12602
12944
  dependenciesToBundle: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
12603
12945
  logLevel: z.ZodOptional<z.ZodString>;
12946
+ enableConsoleLogging: z.ZodOptional<z.ZodBoolean>;
12604
12947
  }, "strip", z.ZodTypeAny, {
12605
12948
  project: string;
12606
12949
  triggerDirectories?: string[] | undefined;
@@ -12621,6 +12964,7 @@ declare const Config: z.ZodObject<{
12621
12964
  additionalFiles?: string[] | undefined;
12622
12965
  dependenciesToBundle?: (string | RegExp)[] | undefined;
12623
12966
  logLevel?: string | undefined;
12967
+ enableConsoleLogging?: boolean | undefined;
12624
12968
  }, {
12625
12969
  project: string;
12626
12970
  triggerDirectories?: string[] | undefined;
@@ -12641,6 +12985,7 @@ declare const Config: z.ZodObject<{
12641
12985
  additionalFiles?: string[] | undefined;
12642
12986
  dependenciesToBundle?: (string | RegExp)[] | undefined;
12643
12987
  logLevel?: string | undefined;
12988
+ enableConsoleLogging?: boolean | undefined;
12644
12989
  }>;
12645
12990
  type Config = z.infer<typeof Config>;
12646
12991
  type ResolvedConfig = RequireKeys<Config, "triggerDirectories" | "triggerUrl" | "projectDir" | "tsconfigPath">;
@@ -13168,6 +13513,7 @@ declare const CoordinatorToPlatformMessages: {
13168
13513
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13169
13514
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13170
13515
  }>>;
13516
+ triggerSource: z.ZodOptional<z.ZodString>;
13171
13517
  }, "strip", z.ZodTypeAny, {
13172
13518
  id: string;
13173
13519
  filePath: string;
@@ -13221,6 +13567,7 @@ declare const CoordinatorToPlatformMessages: {
13221
13567
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13222
13568
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13223
13569
  } | undefined;
13570
+ triggerSource?: string | undefined;
13224
13571
  }, {
13225
13572
  id: string;
13226
13573
  filePath: string;
@@ -13274,10 +13621,11 @@ declare const CoordinatorToPlatformMessages: {
13274
13621
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13275
13622
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13276
13623
  } | undefined;
13624
+ triggerSource?: string | undefined;
13277
13625
  }>, "many">;
13278
13626
  }, "strip", z.ZodTypeAny, {
13279
- contentHash: string;
13280
13627
  packageVersion: string;
13628
+ contentHash: string;
13281
13629
  tasks: {
13282
13630
  id: string;
13283
13631
  filePath: string;
@@ -13331,11 +13679,12 @@ declare const CoordinatorToPlatformMessages: {
13331
13679
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13332
13680
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13333
13681
  } | undefined;
13682
+ triggerSource?: string | undefined;
13334
13683
  }[];
13335
13684
  cliPackageVersion?: string | undefined;
13336
13685
  }, {
13337
- contentHash: string;
13338
13686
  packageVersion: string;
13687
+ contentHash: string;
13339
13688
  tasks: {
13340
13689
  id: string;
13341
13690
  filePath: string;
@@ -13389,6 +13738,7 @@ declare const CoordinatorToPlatformMessages: {
13389
13738
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13390
13739
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13391
13740
  } | undefined;
13741
+ triggerSource?: string | undefined;
13392
13742
  }[];
13393
13743
  cliPackageVersion?: string | undefined;
13394
13744
  }>;
@@ -13396,8 +13746,8 @@ declare const CoordinatorToPlatformMessages: {
13396
13746
  version: "v1";
13397
13747
  envId: string;
13398
13748
  metadata: {
13399
- contentHash: string;
13400
13749
  packageVersion: string;
13750
+ contentHash: string;
13401
13751
  tasks: {
13402
13752
  id: string;
13403
13753
  filePath: string;
@@ -13451,6 +13801,7 @@ declare const CoordinatorToPlatformMessages: {
13451
13801
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13452
13802
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13453
13803
  } | undefined;
13804
+ triggerSource?: string | undefined;
13454
13805
  }[];
13455
13806
  cliPackageVersion?: string | undefined;
13456
13807
  };
@@ -13459,8 +13810,8 @@ declare const CoordinatorToPlatformMessages: {
13459
13810
  }, {
13460
13811
  envId: string;
13461
13812
  metadata: {
13462
- contentHash: string;
13463
13813
  packageVersion: string;
13814
+ contentHash: string;
13464
13815
  tasks: {
13465
13816
  id: string;
13466
13817
  filePath: string;
@@ -13514,6 +13865,7 @@ declare const CoordinatorToPlatformMessages: {
13514
13865
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
13515
13866
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
13516
13867
  } | undefined;
13868
+ triggerSource?: string | undefined;
13517
13869
  }[];
13518
13870
  cliPackageVersion?: string | undefined;
13519
13871
  };
@@ -13614,16 +13966,16 @@ declare const CoordinatorToPlatformMessages: {
13614
13966
  createdAt: z.ZodDate;
13615
13967
  }, "strip", z.ZodTypeAny, {
13616
13968
  payload: string;
13617
- id: string;
13618
13969
  payloadType: string;
13970
+ id: string;
13619
13971
  tags: string[];
13620
13972
  isTest: boolean;
13621
13973
  createdAt: Date;
13622
13974
  context?: any;
13623
13975
  }, {
13624
13976
  payload: string;
13625
- id: string;
13626
13977
  payloadType: string;
13978
+ id: string;
13627
13979
  tags: string[];
13628
13980
  createdAt: Date;
13629
13981
  context?: any;
@@ -13711,8 +14063,8 @@ declare const CoordinatorToPlatformMessages: {
13711
14063
  };
13712
14064
  run: {
13713
14065
  payload: string;
13714
- id: string;
13715
14066
  payloadType: string;
14067
+ id: string;
13716
14068
  tags: string[];
13717
14069
  isTest: boolean;
13718
14070
  createdAt: Date;
@@ -13762,8 +14114,8 @@ declare const CoordinatorToPlatformMessages: {
13762
14114
  };
13763
14115
  run: {
13764
14116
  payload: string;
13765
- id: string;
13766
14117
  payloadType: string;
14118
+ id: string;
13767
14119
  tags: string[];
13768
14120
  createdAt: Date;
13769
14121
  context?: any;
@@ -13817,8 +14169,8 @@ declare const CoordinatorToPlatformMessages: {
13817
14169
  };
13818
14170
  run: {
13819
14171
  payload: string;
13820
- id: string;
13821
14172
  payloadType: string;
14173
+ id: string;
13822
14174
  tags: string[];
13823
14175
  isTest: boolean;
13824
14176
  createdAt: Date;
@@ -13872,8 +14224,8 @@ declare const CoordinatorToPlatformMessages: {
13872
14224
  };
13873
14225
  run: {
13874
14226
  payload: string;
13875
- id: string;
13876
14227
  payloadType: string;
14228
+ id: string;
13877
14229
  tags: string[];
13878
14230
  createdAt: Date;
13879
14231
  context?: any;
@@ -13929,8 +14281,8 @@ declare const CoordinatorToPlatformMessages: {
13929
14281
  };
13930
14282
  run: {
13931
14283
  payload: string;
13932
- id: string;
13933
14284
  payloadType: string;
14285
+ id: string;
13934
14286
  tags: string[];
13935
14287
  isTest: boolean;
13936
14288
  createdAt: Date;
@@ -13987,8 +14339,8 @@ declare const CoordinatorToPlatformMessages: {
13987
14339
  };
13988
14340
  run: {
13989
14341
  payload: string;
13990
- id: string;
13991
14342
  payloadType: string;
14343
+ id: string;
13992
14344
  tags: string[];
13993
14345
  createdAt: Date;
13994
14346
  context?: any;
@@ -14099,16 +14451,16 @@ declare const CoordinatorToPlatformMessages: {
14099
14451
  createdAt: z.ZodDate;
14100
14452
  }, "strip", z.ZodTypeAny, {
14101
14453
  payload: string;
14102
- id: string;
14103
14454
  payloadType: string;
14455
+ id: string;
14104
14456
  tags: string[];
14105
14457
  isTest: boolean;
14106
14458
  createdAt: Date;
14107
14459
  context?: any;
14108
14460
  }, {
14109
14461
  payload: string;
14110
- id: string;
14111
14462
  payloadType: string;
14463
+ id: string;
14112
14464
  tags: string[];
14113
14465
  createdAt: Date;
14114
14466
  context?: any;
@@ -14196,8 +14548,8 @@ declare const CoordinatorToPlatformMessages: {
14196
14548
  };
14197
14549
  run: {
14198
14550
  payload: string;
14199
- id: string;
14200
14551
  payloadType: string;
14552
+ id: string;
14201
14553
  tags: string[];
14202
14554
  isTest: boolean;
14203
14555
  createdAt: Date;
@@ -14247,8 +14599,8 @@ declare const CoordinatorToPlatformMessages: {
14247
14599
  };
14248
14600
  run: {
14249
14601
  payload: string;
14250
- id: string;
14251
14602
  payloadType: string;
14603
+ id: string;
14252
14604
  tags: string[];
14253
14605
  createdAt: Date;
14254
14606
  context?: any;
@@ -14332,15 +14684,15 @@ declare const CoordinatorToPlatformMessages: {
14332
14684
  raw: string;
14333
14685
  }>, z.ZodObject<{
14334
14686
  type: z.ZodLiteral<"INTERNAL_ERROR">;
14335
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
14687
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
14336
14688
  message: z.ZodOptional<z.ZodString>;
14337
14689
  }, "strip", z.ZodTypeAny, {
14338
14690
  type: "INTERNAL_ERROR";
14339
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14691
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14340
14692
  message?: string | undefined;
14341
14693
  }, {
14342
14694
  type: "INTERNAL_ERROR";
14343
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14695
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14344
14696
  message?: string | undefined;
14345
14697
  }>]>;
14346
14698
  retry: z.ZodOptional<z.ZodObject<{
@@ -14371,7 +14723,7 @@ declare const CoordinatorToPlatformMessages: {
14371
14723
  raw: string;
14372
14724
  } | {
14373
14725
  type: "INTERNAL_ERROR";
14374
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14726
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14375
14727
  message?: string | undefined;
14376
14728
  };
14377
14729
  id: string;
@@ -14396,7 +14748,7 @@ declare const CoordinatorToPlatformMessages: {
14396
14748
  raw: string;
14397
14749
  } | {
14398
14750
  type: "INTERNAL_ERROR";
14399
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14751
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14400
14752
  message?: string | undefined;
14401
14753
  };
14402
14754
  id: string;
@@ -14440,8 +14792,8 @@ declare const CoordinatorToPlatformMessages: {
14440
14792
  };
14441
14793
  run: {
14442
14794
  payload: string;
14443
- id: string;
14444
14795
  payloadType: string;
14796
+ id: string;
14445
14797
  tags: string[];
14446
14798
  isTest: boolean;
14447
14799
  createdAt: Date;
@@ -14486,7 +14838,7 @@ declare const CoordinatorToPlatformMessages: {
14486
14838
  raw: string;
14487
14839
  } | {
14488
14840
  type: "INTERNAL_ERROR";
14489
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14841
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14490
14842
  message?: string | undefined;
14491
14843
  };
14492
14844
  id: string;
@@ -14528,8 +14880,8 @@ declare const CoordinatorToPlatformMessages: {
14528
14880
  };
14529
14881
  run: {
14530
14882
  payload: string;
14531
- id: string;
14532
14883
  payloadType: string;
14884
+ id: string;
14533
14885
  tags: string[];
14534
14886
  createdAt: Date;
14535
14887
  context?: any;
@@ -14574,7 +14926,7 @@ declare const CoordinatorToPlatformMessages: {
14574
14926
  raw: string;
14575
14927
  } | {
14576
14928
  type: "INTERNAL_ERROR";
14577
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14929
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14578
14930
  message?: string | undefined;
14579
14931
  };
14580
14932
  id: string;
@@ -14797,15 +15149,15 @@ declare const PlatformToCoordinatorMessages: {
14797
15149
  raw: string;
14798
15150
  }>, z.ZodObject<{
14799
15151
  type: z.ZodLiteral<"INTERNAL_ERROR">;
14800
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
15152
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
14801
15153
  message: z.ZodOptional<z.ZodString>;
14802
15154
  }, "strip", z.ZodTypeAny, {
14803
15155
  type: "INTERNAL_ERROR";
14804
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15156
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14805
15157
  message?: string | undefined;
14806
15158
  }, {
14807
15159
  type: "INTERNAL_ERROR";
14808
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15160
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14809
15161
  message?: string | undefined;
14810
15162
  }>]>;
14811
15163
  retry: z.ZodOptional<z.ZodObject<{
@@ -14836,7 +15188,7 @@ declare const PlatformToCoordinatorMessages: {
14836
15188
  raw: string;
14837
15189
  } | {
14838
15190
  type: "INTERNAL_ERROR";
14839
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15191
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14840
15192
  message?: string | undefined;
14841
15193
  };
14842
15194
  id: string;
@@ -14861,7 +15213,7 @@ declare const PlatformToCoordinatorMessages: {
14861
15213
  raw: string;
14862
15214
  } | {
14863
15215
  type: "INTERNAL_ERROR";
14864
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15216
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
14865
15217
  message?: string | undefined;
14866
15218
  };
14867
15219
  id: string;
@@ -14919,16 +15271,16 @@ declare const PlatformToCoordinatorMessages: {
14919
15271
  createdAt: z.ZodDate;
14920
15272
  }, "strip", z.ZodTypeAny, {
14921
15273
  payload: string;
14922
- id: string;
14923
15274
  payloadType: string;
15275
+ id: string;
14924
15276
  tags: string[];
14925
15277
  isTest: boolean;
14926
15278
  createdAt: Date;
14927
15279
  context?: any;
14928
15280
  }, {
14929
15281
  payload: string;
14930
- id: string;
14931
15282
  payloadType: string;
15283
+ id: string;
14932
15284
  tags: string[];
14933
15285
  createdAt: Date;
14934
15286
  context?: any;
@@ -15013,8 +15365,8 @@ declare const PlatformToCoordinatorMessages: {
15013
15365
  };
15014
15366
  run: {
15015
15367
  payload: string;
15016
- id: string;
15017
15368
  payloadType: string;
15369
+ id: string;
15018
15370
  tags: string[];
15019
15371
  isTest: boolean;
15020
15372
  createdAt: Date;
@@ -15059,8 +15411,8 @@ declare const PlatformToCoordinatorMessages: {
15059
15411
  };
15060
15412
  run: {
15061
15413
  payload: string;
15062
- id: string;
15063
15414
  payloadType: string;
15415
+ id: string;
15064
15416
  tags: string[];
15065
15417
  createdAt: Date;
15066
15418
  context?: any;
@@ -15105,7 +15457,7 @@ declare const PlatformToCoordinatorMessages: {
15105
15457
  raw: string;
15106
15458
  } | {
15107
15459
  type: "INTERNAL_ERROR";
15108
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15460
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15109
15461
  message?: string | undefined;
15110
15462
  };
15111
15463
  id: string;
@@ -15142,8 +15494,8 @@ declare const PlatformToCoordinatorMessages: {
15142
15494
  };
15143
15495
  run: {
15144
15496
  payload: string;
15145
- id: string;
15146
15497
  payloadType: string;
15498
+ id: string;
15147
15499
  tags: string[];
15148
15500
  isTest: boolean;
15149
15501
  createdAt: Date;
@@ -15187,7 +15539,7 @@ declare const PlatformToCoordinatorMessages: {
15187
15539
  raw: string;
15188
15540
  } | {
15189
15541
  type: "INTERNAL_ERROR";
15190
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15542
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15191
15543
  message?: string | undefined;
15192
15544
  };
15193
15545
  id: string;
@@ -15224,8 +15576,8 @@ declare const PlatformToCoordinatorMessages: {
15224
15576
  };
15225
15577
  run: {
15226
15578
  payload: string;
15227
- id: string;
15228
15579
  payloadType: string;
15580
+ id: string;
15229
15581
  tags: string[];
15230
15582
  createdAt: Date;
15231
15583
  context?: any;
@@ -15382,15 +15734,15 @@ declare const ClientToSharedQueueMessages: {
15382
15734
  raw: string;
15383
15735
  }>, z.ZodObject<{
15384
15736
  type: z.ZodLiteral<"INTERNAL_ERROR">;
15385
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
15737
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
15386
15738
  message: z.ZodOptional<z.ZodString>;
15387
15739
  }, "strip", z.ZodTypeAny, {
15388
15740
  type: "INTERNAL_ERROR";
15389
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15741
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15390
15742
  message?: string | undefined;
15391
15743
  }, {
15392
15744
  type: "INTERNAL_ERROR";
15393
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15745
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15394
15746
  message?: string | undefined;
15395
15747
  }>]>;
15396
15748
  retry: z.ZodOptional<z.ZodObject<{
@@ -15421,7 +15773,7 @@ declare const ClientToSharedQueueMessages: {
15421
15773
  raw: string;
15422
15774
  } | {
15423
15775
  type: "INTERNAL_ERROR";
15424
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15776
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15425
15777
  message?: string | undefined;
15426
15778
  };
15427
15779
  id: string;
@@ -15446,7 +15798,7 @@ declare const ClientToSharedQueueMessages: {
15446
15798
  raw: string;
15447
15799
  } | {
15448
15800
  type: "INTERNAL_ERROR";
15449
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15801
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15450
15802
  message?: string | undefined;
15451
15803
  };
15452
15804
  id: string;
@@ -15504,16 +15856,16 @@ declare const ClientToSharedQueueMessages: {
15504
15856
  createdAt: z.ZodDate;
15505
15857
  }, "strip", z.ZodTypeAny, {
15506
15858
  payload: string;
15507
- id: string;
15508
15859
  payloadType: string;
15860
+ id: string;
15509
15861
  tags: string[];
15510
15862
  isTest: boolean;
15511
15863
  createdAt: Date;
15512
15864
  context?: any;
15513
15865
  }, {
15514
15866
  payload: string;
15515
- id: string;
15516
15867
  payloadType: string;
15868
+ id: string;
15517
15869
  tags: string[];
15518
15870
  createdAt: Date;
15519
15871
  context?: any;
@@ -15598,8 +15950,8 @@ declare const ClientToSharedQueueMessages: {
15598
15950
  };
15599
15951
  run: {
15600
15952
  payload: string;
15601
- id: string;
15602
15953
  payloadType: string;
15954
+ id: string;
15603
15955
  tags: string[];
15604
15956
  isTest: boolean;
15605
15957
  createdAt: Date;
@@ -15644,8 +15996,8 @@ declare const ClientToSharedQueueMessages: {
15644
15996
  };
15645
15997
  run: {
15646
15998
  payload: string;
15647
- id: string;
15648
15999
  payloadType: string;
16000
+ id: string;
15649
16001
  tags: string[];
15650
16002
  createdAt: Date;
15651
16003
  context?: any;
@@ -15694,8 +16046,8 @@ declare const ClientToSharedQueueMessages: {
15694
16046
  };
15695
16047
  run: {
15696
16048
  payload: string;
15697
- id: string;
15698
16049
  payloadType: string;
16050
+ id: string;
15699
16051
  tags: string[];
15700
16052
  isTest: boolean;
15701
16053
  createdAt: Date;
@@ -15735,7 +16087,7 @@ declare const ClientToSharedQueueMessages: {
15735
16087
  raw: string;
15736
16088
  } | {
15737
16089
  type: "INTERNAL_ERROR";
15738
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
16090
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15739
16091
  message?: string | undefined;
15740
16092
  };
15741
16093
  id: string;
@@ -15774,8 +16126,8 @@ declare const ClientToSharedQueueMessages: {
15774
16126
  };
15775
16127
  run: {
15776
16128
  payload: string;
15777
- id: string;
15778
16129
  payloadType: string;
16130
+ id: string;
15779
16131
  tags: string[];
15780
16132
  createdAt: Date;
15781
16133
  context?: any;
@@ -15815,7 +16167,7 @@ declare const ClientToSharedQueueMessages: {
15815
16167
  raw: string;
15816
16168
  } | {
15817
16169
  type: "INTERNAL_ERROR";
15818
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
16170
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15819
16171
  message?: string | undefined;
15820
16172
  };
15821
16173
  id: string;
@@ -15870,8 +16222,8 @@ declare const ClientToSharedQueueMessages: {
15870
16222
  };
15871
16223
  run: {
15872
16224
  payload: string;
15873
- id: string;
15874
16225
  payloadType: string;
16226
+ id: string;
15875
16227
  tags: string[];
15876
16228
  isTest: boolean;
15877
16229
  createdAt: Date;
@@ -15911,7 +16263,7 @@ declare const ClientToSharedQueueMessages: {
15911
16263
  raw: string;
15912
16264
  } | {
15913
16265
  type: "INTERNAL_ERROR";
15914
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
16266
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
15915
16267
  message?: string | undefined;
15916
16268
  };
15917
16269
  id: string;
@@ -15958,8 +16310,8 @@ declare const ClientToSharedQueueMessages: {
15958
16310
  };
15959
16311
  run: {
15960
16312
  payload: string;
15961
- id: string;
15962
16313
  payloadType: string;
16314
+ id: string;
15963
16315
  tags: string[];
15964
16316
  createdAt: Date;
15965
16317
  context?: any;
@@ -15999,7 +16351,7 @@ declare const ClientToSharedQueueMessages: {
15999
16351
  raw: string;
16000
16352
  } | {
16001
16353
  type: "INTERNAL_ERROR";
16002
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
16354
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
16003
16355
  message?: string | undefined;
16004
16356
  };
16005
16357
  id: string;
@@ -16093,16 +16445,16 @@ declare const SharedQueueToClientMessages: {
16093
16445
  createdAt: z.ZodDate;
16094
16446
  }, "strip", z.ZodTypeAny, {
16095
16447
  payload: string;
16096
- id: string;
16097
16448
  payloadType: string;
16449
+ id: string;
16098
16450
  tags: string[];
16099
16451
  isTest: boolean;
16100
16452
  createdAt: Date;
16101
16453
  context?: any;
16102
16454
  }, {
16103
16455
  payload: string;
16104
- id: string;
16105
16456
  payloadType: string;
16457
+ id: string;
16106
16458
  tags: string[];
16107
16459
  createdAt: Date;
16108
16460
  context?: any;
@@ -16187,8 +16539,8 @@ declare const SharedQueueToClientMessages: {
16187
16539
  };
16188
16540
  run: {
16189
16541
  payload: string;
16190
- id: string;
16191
16542
  payloadType: string;
16543
+ id: string;
16192
16544
  tags: string[];
16193
16545
  isTest: boolean;
16194
16546
  createdAt: Date;
@@ -16233,8 +16585,8 @@ declare const SharedQueueToClientMessages: {
16233
16585
  };
16234
16586
  run: {
16235
16587
  payload: string;
16236
- id: string;
16237
16588
  payloadType: string;
16589
+ id: string;
16238
16590
  tags: string[];
16239
16591
  createdAt: Date;
16240
16592
  context?: any;
@@ -16283,8 +16635,8 @@ declare const SharedQueueToClientMessages: {
16283
16635
  };
16284
16636
  run: {
16285
16637
  payload: string;
16286
- id: string;
16287
16638
  payloadType: string;
16639
+ id: string;
16288
16640
  tags: string[];
16289
16641
  isTest: boolean;
16290
16642
  createdAt: Date;
@@ -16333,8 +16685,8 @@ declare const SharedQueueToClientMessages: {
16333
16685
  };
16334
16686
  run: {
16335
16687
  payload: string;
16336
- id: string;
16337
16688
  payloadType: string;
16689
+ id: string;
16338
16690
  tags: string[];
16339
16691
  createdAt: Date;
16340
16692
  context?: any;
@@ -16386,8 +16738,8 @@ declare const SharedQueueToClientMessages: {
16386
16738
  };
16387
16739
  run: {
16388
16740
  payload: string;
16389
- id: string;
16390
16741
  payloadType: string;
16742
+ id: string;
16391
16743
  tags: string[];
16392
16744
  isTest: boolean;
16393
16745
  createdAt: Date;
@@ -16439,8 +16791,8 @@ declare const SharedQueueToClientMessages: {
16439
16791
  };
16440
16792
  run: {
16441
16793
  payload: string;
16442
- id: string;
16443
16794
  payloadType: string;
16795
+ id: string;
16444
16796
  tags: string[];
16445
16797
  createdAt: Date;
16446
16798
  context?: any;
@@ -16508,12 +16860,12 @@ declare const SharedQueueToClientMessages: {
16508
16860
  type: "SCHEDULE_ATTEMPT";
16509
16861
  id: string;
16510
16862
  version: string;
16511
- image: string;
16512
16863
  machine: {
16513
16864
  version: "v1";
16514
16865
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
16515
16866
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
16516
16867
  };
16868
+ image: string;
16517
16869
  envId: string;
16518
16870
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
16519
16871
  orgId: string;
@@ -16523,12 +16875,12 @@ declare const SharedQueueToClientMessages: {
16523
16875
  type: "SCHEDULE_ATTEMPT";
16524
16876
  id: string;
16525
16877
  version: string;
16526
- image: string;
16527
16878
  machine: {
16528
16879
  version?: "v1" | undefined;
16529
16880
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
16530
16881
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
16531
16882
  };
16883
+ image: string;
16532
16884
  envId: string;
16533
16885
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
16534
16886
  orgId: string;
@@ -16559,8 +16911,8 @@ declare const SharedQueueToClientMessages: {
16559
16911
  };
16560
16912
  run: {
16561
16913
  payload: string;
16562
- id: string;
16563
16914
  payloadType: string;
16915
+ id: string;
16564
16916
  tags: string[];
16565
16917
  isTest: boolean;
16566
16918
  createdAt: Date;
@@ -16597,12 +16949,12 @@ declare const SharedQueueToClientMessages: {
16597
16949
  type: "SCHEDULE_ATTEMPT";
16598
16950
  id: string;
16599
16951
  version: string;
16600
- image: string;
16601
16952
  machine: {
16602
16953
  version: "v1";
16603
16954
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
16604
16955
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
16605
16956
  };
16957
+ image: string;
16606
16958
  envId: string;
16607
16959
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
16608
16960
  orgId: string;
@@ -16635,8 +16987,8 @@ declare const SharedQueueToClientMessages: {
16635
16987
  };
16636
16988
  run: {
16637
16989
  payload: string;
16638
- id: string;
16639
16990
  payloadType: string;
16991
+ id: string;
16640
16992
  tags: string[];
16641
16993
  createdAt: Date;
16642
16994
  context?: any;
@@ -16673,12 +17025,12 @@ declare const SharedQueueToClientMessages: {
16673
17025
  type: "SCHEDULE_ATTEMPT";
16674
17026
  id: string;
16675
17027
  version: string;
16676
- image: string;
16677
17028
  machine: {
16678
17029
  version?: "v1" | undefined;
16679
17030
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
16680
17031
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
16681
17032
  };
17033
+ image: string;
16682
17034
  envId: string;
16683
17035
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
16684
17036
  orgId: string;
@@ -16929,6 +17281,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16929
17281
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
16930
17282
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
16931
17283
  }>>;
17284
+ triggerSource: z.ZodOptional<z.ZodString>;
16932
17285
  }, "strip", z.ZodTypeAny, {
16933
17286
  id: string;
16934
17287
  filePath: string;
@@ -16982,6 +17335,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16982
17335
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
16983
17336
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
16984
17337
  } | undefined;
17338
+ triggerSource?: string | undefined;
16985
17339
  }, {
16986
17340
  id: string;
16987
17341
  filePath: string;
@@ -17035,11 +17389,12 @@ declare const ProdWorkerToCoordinatorMessages: {
17035
17389
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
17036
17390
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
17037
17391
  } | undefined;
17392
+ triggerSource?: string | undefined;
17038
17393
  }>, "many">;
17039
17394
  packageVersion: z.ZodString;
17040
17395
  }, "strip", z.ZodTypeAny, {
17041
- version: "v1";
17042
17396
  packageVersion: string;
17397
+ version: "v1";
17043
17398
  tasks: {
17044
17399
  id: string;
17045
17400
  filePath: string;
@@ -17093,6 +17448,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17093
17448
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
17094
17449
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
17095
17450
  } | undefined;
17451
+ triggerSource?: string | undefined;
17096
17452
  }[];
17097
17453
  deploymentId: string;
17098
17454
  }, {
@@ -17150,6 +17506,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17150
17506
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
17151
17507
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
17152
17508
  } | undefined;
17509
+ triggerSource?: string | undefined;
17153
17510
  }[];
17154
17511
  deploymentId: string;
17155
17512
  version?: "v1" | undefined;
@@ -17287,16 +17644,16 @@ declare const ProdWorkerToCoordinatorMessages: {
17287
17644
  createdAt: z.ZodDate;
17288
17645
  }, "strip", z.ZodTypeAny, {
17289
17646
  payload: string;
17290
- id: string;
17291
17647
  payloadType: string;
17648
+ id: string;
17292
17649
  tags: string[];
17293
17650
  isTest: boolean;
17294
17651
  createdAt: Date;
17295
17652
  context?: any;
17296
17653
  }, {
17297
17654
  payload: string;
17298
- id: string;
17299
17655
  payloadType: string;
17656
+ id: string;
17300
17657
  tags: string[];
17301
17658
  createdAt: Date;
17302
17659
  context?: any;
@@ -17384,8 +17741,8 @@ declare const ProdWorkerToCoordinatorMessages: {
17384
17741
  };
17385
17742
  run: {
17386
17743
  payload: string;
17387
- id: string;
17388
17744
  payloadType: string;
17745
+ id: string;
17389
17746
  tags: string[];
17390
17747
  isTest: boolean;
17391
17748
  createdAt: Date;
@@ -17435,8 +17792,8 @@ declare const ProdWorkerToCoordinatorMessages: {
17435
17792
  };
17436
17793
  run: {
17437
17794
  payload: string;
17438
- id: string;
17439
17795
  payloadType: string;
17796
+ id: string;
17440
17797
  tags: string[];
17441
17798
  createdAt: Date;
17442
17799
  context?: any;
@@ -17520,15 +17877,15 @@ declare const ProdWorkerToCoordinatorMessages: {
17520
17877
  raw: string;
17521
17878
  }>, z.ZodObject<{
17522
17879
  type: z.ZodLiteral<"INTERNAL_ERROR">;
17523
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
17880
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
17524
17881
  message: z.ZodOptional<z.ZodString>;
17525
17882
  }, "strip", z.ZodTypeAny, {
17526
17883
  type: "INTERNAL_ERROR";
17527
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17884
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17528
17885
  message?: string | undefined;
17529
17886
  }, {
17530
17887
  type: "INTERNAL_ERROR";
17531
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17888
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17532
17889
  message?: string | undefined;
17533
17890
  }>]>;
17534
17891
  retry: z.ZodOptional<z.ZodObject<{
@@ -17559,7 +17916,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17559
17916
  raw: string;
17560
17917
  } | {
17561
17918
  type: "INTERNAL_ERROR";
17562
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17919
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17563
17920
  message?: string | undefined;
17564
17921
  };
17565
17922
  id: string;
@@ -17584,7 +17941,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17584
17941
  raw: string;
17585
17942
  } | {
17586
17943
  type: "INTERNAL_ERROR";
17587
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17944
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17588
17945
  message?: string | undefined;
17589
17946
  };
17590
17947
  id: string;
@@ -17618,8 +17975,8 @@ declare const ProdWorkerToCoordinatorMessages: {
17618
17975
  };
17619
17976
  run: {
17620
17977
  payload: string;
17621
- id: string;
17622
17978
  payloadType: string;
17979
+ id: string;
17623
17980
  tags: string[];
17624
17981
  isTest: boolean;
17625
17982
  createdAt: Date;
@@ -17664,7 +18021,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17664
18021
  raw: string;
17665
18022
  } | {
17666
18023
  type: "INTERNAL_ERROR";
17667
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18024
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17668
18025
  message?: string | undefined;
17669
18026
  };
17670
18027
  id: string;
@@ -17702,8 +18059,8 @@ declare const ProdWorkerToCoordinatorMessages: {
17702
18059
  };
17703
18060
  run: {
17704
18061
  payload: string;
17705
- id: string;
17706
18062
  payloadType: string;
18063
+ id: string;
17707
18064
  tags: string[];
17708
18065
  createdAt: Date;
17709
18066
  context?: any;
@@ -17748,7 +18105,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17748
18105
  raw: string;
17749
18106
  } | {
17750
18107
  type: "INTERNAL_ERROR";
17751
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18108
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17752
18109
  message?: string | undefined;
17753
18110
  };
17754
18111
  id: string;
@@ -17944,15 +18301,15 @@ declare const CoordinatorToProdWorkerMessages: {
17944
18301
  raw: string;
17945
18302
  }>, z.ZodObject<{
17946
18303
  type: z.ZodLiteral<"INTERNAL_ERROR">;
17947
- code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
18304
+ code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR"]>;
17948
18305
  message: z.ZodOptional<z.ZodString>;
17949
18306
  }, "strip", z.ZodTypeAny, {
17950
18307
  type: "INTERNAL_ERROR";
17951
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18308
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17952
18309
  message?: string | undefined;
17953
18310
  }, {
17954
18311
  type: "INTERNAL_ERROR";
17955
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18312
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17956
18313
  message?: string | undefined;
17957
18314
  }>]>;
17958
18315
  retry: z.ZodOptional<z.ZodObject<{
@@ -17983,7 +18340,7 @@ declare const CoordinatorToProdWorkerMessages: {
17983
18340
  raw: string;
17984
18341
  } | {
17985
18342
  type: "INTERNAL_ERROR";
17986
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18343
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
17987
18344
  message?: string | undefined;
17988
18345
  };
17989
18346
  id: string;
@@ -18008,7 +18365,7 @@ declare const CoordinatorToProdWorkerMessages: {
18008
18365
  raw: string;
18009
18366
  } | {
18010
18367
  type: "INTERNAL_ERROR";
18011
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18368
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18012
18369
  message?: string | undefined;
18013
18370
  };
18014
18371
  id: string;
@@ -18066,16 +18423,16 @@ declare const CoordinatorToProdWorkerMessages: {
18066
18423
  createdAt: z.ZodDate;
18067
18424
  }, "strip", z.ZodTypeAny, {
18068
18425
  payload: string;
18069
- id: string;
18070
18426
  payloadType: string;
18427
+ id: string;
18071
18428
  tags: string[];
18072
18429
  isTest: boolean;
18073
18430
  createdAt: Date;
18074
18431
  context?: any;
18075
18432
  }, {
18076
18433
  payload: string;
18077
- id: string;
18078
18434
  payloadType: string;
18435
+ id: string;
18079
18436
  tags: string[];
18080
18437
  createdAt: Date;
18081
18438
  context?: any;
@@ -18160,8 +18517,8 @@ declare const CoordinatorToProdWorkerMessages: {
18160
18517
  };
18161
18518
  run: {
18162
18519
  payload: string;
18163
- id: string;
18164
18520
  payloadType: string;
18521
+ id: string;
18165
18522
  tags: string[];
18166
18523
  isTest: boolean;
18167
18524
  createdAt: Date;
@@ -18206,8 +18563,8 @@ declare const CoordinatorToProdWorkerMessages: {
18206
18563
  };
18207
18564
  run: {
18208
18565
  payload: string;
18209
- id: string;
18210
18566
  payloadType: string;
18567
+ id: string;
18211
18568
  tags: string[];
18212
18569
  createdAt: Date;
18213
18570
  context?: any;
@@ -18250,7 +18607,7 @@ declare const CoordinatorToProdWorkerMessages: {
18250
18607
  raw: string;
18251
18608
  } | {
18252
18609
  type: "INTERNAL_ERROR";
18253
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18610
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18254
18611
  message?: string | undefined;
18255
18612
  };
18256
18613
  id: string;
@@ -18287,8 +18644,8 @@ declare const CoordinatorToProdWorkerMessages: {
18287
18644
  };
18288
18645
  run: {
18289
18646
  payload: string;
18290
- id: string;
18291
18647
  payloadType: string;
18648
+ id: string;
18292
18649
  tags: string[];
18293
18650
  isTest: boolean;
18294
18651
  createdAt: Date;
@@ -18330,7 +18687,7 @@ declare const CoordinatorToProdWorkerMessages: {
18330
18687
  raw: string;
18331
18688
  } | {
18332
18689
  type: "INTERNAL_ERROR";
18333
- code: "COULD_NOT_FIND_EXECUTOR" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18690
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR";
18334
18691
  message?: string | undefined;
18335
18692
  };
18336
18693
  id: string;
@@ -18367,8 +18724,8 @@ declare const CoordinatorToProdWorkerMessages: {
18367
18724
  };
18368
18725
  run: {
18369
18726
  payload: string;
18370
- id: string;
18371
18727
  payloadType: string;
18728
+ id: string;
18372
18729
  tags: string[];
18373
18730
  createdAt: Date;
18374
18731
  context?: any;
@@ -18469,16 +18826,16 @@ declare const CoordinatorToProdWorkerMessages: {
18469
18826
  createdAt: z.ZodDate;
18470
18827
  }, "strip", z.ZodTypeAny, {
18471
18828
  payload: string;
18472
- id: string;
18473
18829
  payloadType: string;
18830
+ id: string;
18474
18831
  tags: string[];
18475
18832
  isTest: boolean;
18476
18833
  createdAt: Date;
18477
18834
  context?: any;
18478
18835
  }, {
18479
18836
  payload: string;
18480
- id: string;
18481
18837
  payloadType: string;
18838
+ id: string;
18482
18839
  tags: string[];
18483
18840
  createdAt: Date;
18484
18841
  context?: any;
@@ -18566,8 +18923,8 @@ declare const CoordinatorToProdWorkerMessages: {
18566
18923
  };
18567
18924
  run: {
18568
18925
  payload: string;
18569
- id: string;
18570
18926
  payloadType: string;
18927
+ id: string;
18571
18928
  tags: string[];
18572
18929
  isTest: boolean;
18573
18930
  createdAt: Date;
@@ -18617,8 +18974,8 @@ declare const CoordinatorToProdWorkerMessages: {
18617
18974
  };
18618
18975
  run: {
18619
18976
  payload: string;
18620
- id: string;
18621
18977
  payloadType: string;
18978
+ id: string;
18622
18979
  tags: string[];
18623
18980
  createdAt: Date;
18624
18981
  context?: any;
@@ -18672,8 +19029,8 @@ declare const CoordinatorToProdWorkerMessages: {
18672
19029
  };
18673
19030
  run: {
18674
19031
  payload: string;
18675
- id: string;
18676
19032
  payloadType: string;
19033
+ id: string;
18677
19034
  tags: string[];
18678
19035
  isTest: boolean;
18679
19036
  createdAt: Date;
@@ -18727,8 +19084,8 @@ declare const CoordinatorToProdWorkerMessages: {
18727
19084
  };
18728
19085
  run: {
18729
19086
  payload: string;
18730
- id: string;
18731
19087
  payloadType: string;
19088
+ id: string;
18732
19089
  tags: string[];
18733
19090
  createdAt: Date;
18734
19091
  context?: any;
@@ -18785,8 +19142,8 @@ declare const CoordinatorToProdWorkerMessages: {
18785
19142
  };
18786
19143
  run: {
18787
19144
  payload: string;
18788
- id: string;
18789
19145
  payloadType: string;
19146
+ id: string;
18790
19147
  tags: string[];
18791
19148
  isTest: boolean;
18792
19149
  createdAt: Date;
@@ -18842,8 +19199,8 @@ declare const CoordinatorToProdWorkerMessages: {
18842
19199
  };
18843
19200
  run: {
18844
19201
  payload: string;
18845
- id: string;
18846
19202
  payloadType: string;
19203
+ id: string;
18847
19204
  tags: string[];
18848
19205
  createdAt: Date;
18849
19206
  context?: any;
@@ -19853,6 +20210,124 @@ declare class ApiClient {
19853
20210
  cancelRun(runId: string): Promise<ApiResult<{
19854
20211
  message: string;
19855
20212
  }>>;
20213
+ createSchedule(options: CreateScheduleOptions): Promise<ApiResult<{
20214
+ id: string;
20215
+ task: string;
20216
+ active: boolean;
20217
+ generator: {
20218
+ type: "CRON";
20219
+ expression: string;
20220
+ description: string;
20221
+ };
20222
+ environments: {
20223
+ type: string;
20224
+ id: string;
20225
+ userName?: string | undefined;
20226
+ }[];
20227
+ deduplicationKey?: string | undefined;
20228
+ externalId?: string | undefined;
20229
+ nextRun?: Date | undefined;
20230
+ }>>;
20231
+ listSchedules(options?: ListScheduleOptions): Promise<ApiResult<{
20232
+ data: {
20233
+ id: string;
20234
+ task: string;
20235
+ active: boolean;
20236
+ generator: {
20237
+ type: "CRON";
20238
+ expression: string;
20239
+ description: string;
20240
+ };
20241
+ environments: {
20242
+ type: string;
20243
+ id: string;
20244
+ userName?: string | undefined;
20245
+ }[];
20246
+ deduplicationKey?: string | undefined;
20247
+ externalId?: string | undefined;
20248
+ nextRun?: Date | undefined;
20249
+ }[];
20250
+ pagination: {
20251
+ currentPage: number;
20252
+ totalPages: number;
20253
+ count: number;
20254
+ };
20255
+ }>>;
20256
+ retrieveSchedule(scheduleId: string): Promise<ApiResult<{
20257
+ id: string;
20258
+ task: string;
20259
+ active: boolean;
20260
+ generator: {
20261
+ type: "CRON";
20262
+ expression: string;
20263
+ description: string;
20264
+ };
20265
+ environments: {
20266
+ type: string;
20267
+ id: string;
20268
+ userName?: string | undefined;
20269
+ }[];
20270
+ deduplicationKey?: string | undefined;
20271
+ externalId?: string | undefined;
20272
+ nextRun?: Date | undefined;
20273
+ }>>;
20274
+ updateSchedule(scheduleId: string, options: UpdateScheduleOptions): Promise<ApiResult<{
20275
+ id: string;
20276
+ task: string;
20277
+ active: boolean;
20278
+ generator: {
20279
+ type: "CRON";
20280
+ expression: string;
20281
+ description: string;
20282
+ };
20283
+ environments: {
20284
+ type: string;
20285
+ id: string;
20286
+ userName?: string | undefined;
20287
+ }[];
20288
+ deduplicationKey?: string | undefined;
20289
+ externalId?: string | undefined;
20290
+ nextRun?: Date | undefined;
20291
+ }>>;
20292
+ deactivateSchedule(scheduleId: string): Promise<ApiResult<{
20293
+ id: string;
20294
+ task: string;
20295
+ active: boolean;
20296
+ generator: {
20297
+ type: "CRON";
20298
+ expression: string;
20299
+ description: string;
20300
+ };
20301
+ environments: {
20302
+ type: string;
20303
+ id: string;
20304
+ userName?: string | undefined;
20305
+ }[];
20306
+ deduplicationKey?: string | undefined;
20307
+ externalId?: string | undefined;
20308
+ nextRun?: Date | undefined;
20309
+ }>>;
20310
+ activateSchedule(scheduleId: string): Promise<ApiResult<{
20311
+ id: string;
20312
+ task: string;
20313
+ active: boolean;
20314
+ generator: {
20315
+ type: "CRON";
20316
+ expression: string;
20317
+ description: string;
20318
+ };
20319
+ environments: {
20320
+ type: string;
20321
+ id: string;
20322
+ userName?: string | undefined;
20323
+ }[];
20324
+ deduplicationKey?: string | undefined;
20325
+ externalId?: string | undefined;
20326
+ nextRun?: Date | undefined;
20327
+ }>>;
20328
+ deleteSchedule(scheduleId: string): Promise<ApiResult<{
20329
+ id: string;
20330
+ }>>;
19856
20331
  }
19857
20332
  type ApiClientContext = {
19858
20333
  baseURL: string;
@@ -20114,8 +20589,6 @@ declare function groupTaskMetadataIssuesByTask(tasks: any, issues: z.ZodIssue[])
20114
20589
 
20115
20590
  interface RuntimeManager {
20116
20591
  disable(): void;
20117
- registerTasks(tasks: TaskMetadataWithFilePath[]): void;
20118
- getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20119
20592
  waitUntil(date: Date): Promise<void>;
20120
20593
  waitForDuration(ms: number): Promise<void>;
20121
20594
  waitForTask(params: {
@@ -20147,8 +20620,6 @@ declare class RuntimeAPI {
20147
20620
  }): Promise<BatchTaskRunExecutionResult>;
20148
20621
  setGlobalRuntimeManager(runtimeManager: RuntimeManager): boolean;
20149
20622
  disable(): void;
20150
- registerTasks(tasks: TaskMetadataWithFilePath[]): void;
20151
- getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20152
20623
  }
20153
20624
 
20154
20625
  /** Entrypoint for runtime API */
@@ -20191,6 +20662,33 @@ declare class ClockAPI {
20191
20662
  /** Entrypoint for clock API */
20192
20663
  declare const clock: ClockAPI;
20193
20664
 
20665
+ interface TaskCatalog {
20666
+ registerTaskMetadata(task: TaskMetadataWithFunctions): void;
20667
+ updateTaskMetadata(id: string, task: Partial<TaskMetadataWithFunctions>): void;
20668
+ registerTaskFileMetadata(id: string, metadata: TaskFileMetadata): void;
20669
+ getAllTaskMetadata(): Array<TaskMetadataWithFilePath>;
20670
+ getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20671
+ getTask(id: string): TaskMetadataWithFunctions | undefined;
20672
+ }
20673
+
20674
+ declare class TaskCatalogAPI {
20675
+ #private;
20676
+ private static _instance?;
20677
+ private constructor();
20678
+ static getInstance(): TaskCatalogAPI;
20679
+ setGlobalTaskCatalog(taskCatalog: TaskCatalog): boolean;
20680
+ disable(): void;
20681
+ registerTaskMetadata(task: TaskMetadataWithFunctions): void;
20682
+ updateTaskMetadata(id: string, updates: Partial<TaskMetadataWithFunctions>): void;
20683
+ registerTaskFileMetadata(id: string, metadata: TaskFileMetadata): void;
20684
+ getAllTaskMetadata(): Array<TaskMetadataWithFilePath>;
20685
+ getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20686
+ getTask(id: string): TaskMetadataWithFunctions | undefined;
20687
+ }
20688
+
20689
+ /** Entrypoint for runtime API */
20690
+ declare const taskCatalog: TaskCatalogAPI;
20691
+
20194
20692
  declare const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 256;
20195
20693
  declare const OTEL_LOG_ATTRIBUTE_COUNT_LIMIT = 256;
20196
20694
  declare const OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = 1028;
@@ -20244,6 +20742,7 @@ declare const SemanticInternalAttributes: {
20244
20742
  RETRY_AT: string;
20245
20743
  RETRY_DELAY: string;
20246
20744
  RETRY_COUNT: string;
20745
+ LINK_TITLE: string;
20247
20746
  };
20248
20747
 
20249
20748
  declare function iconStringForSeverity(severityNumber: SeverityNumber): "trace" | "debug" | "info" | "warn" | "error" | "fatal" | undefined;
@@ -20297,11 +20796,8 @@ declare class DevRuntimeManager implements RuntimeManager {
20297
20796
  resolve: (value: BatchTaskRunExecutionResult) => void;
20298
20797
  reject: (err?: any) => void;
20299
20798
  }>;
20300
- _tasks: Map<string, TaskMetadataWithFilePath>;
20301
20799
  _pendingCompletionNotifications: Map<string, TaskRunExecutionResult>;
20302
20800
  disable(): void;
20303
- registerTasks(tasks: TaskMetadataWithFilePath[]): void;
20304
- getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20305
20801
  waitForDuration(ms: number): Promise<void>;
20306
20802
  waitUntil(date: Date): Promise<void>;
20307
20803
  waitForTask(params: {
@@ -20334,11 +20830,8 @@ declare class ProdRuntimeManager implements RuntimeManager {
20334
20830
  resolve: (value: "restore") => void;
20335
20831
  reject: (err?: any) => void;
20336
20832
  } | undefined;
20337
- _tasks: Map<string, TaskMetadataWithFilePath>;
20338
20833
  constructor(ipc: ZodIpcConnection<typeof ProdWorkerToChildMessages, typeof ProdChildToWorkerMessages>, options?: ProdRuntimeManagerOptions);
20339
20834
  disable(): void;
20340
- registerTasks(tasks: TaskMetadataWithFilePath[]): void;
20341
- getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20342
20835
  waitForDuration(ms: number): Promise<void>;
20343
20836
  resumeAfterRestore(): void;
20344
20837
  waitUntil(date: Date): Promise<void>;
@@ -20370,8 +20863,10 @@ declare class PreciseWallClock implements Clock {
20370
20863
  declare class ConsoleInterceptor {
20371
20864
  #private;
20372
20865
  private readonly logger;
20373
- constructor(logger: logsAPI.Logger);
20866
+ private readonly sendToStdIO;
20867
+ constructor(logger: logsAPI.Logger, sendToStdIO: boolean);
20374
20868
  intercept<T>(console: Console, callback: () => Promise<T>): Promise<T>;
20869
+ debug(...args: unknown[]): void;
20375
20870
  log(...args: unknown[]): void;
20376
20871
  info(...args: unknown[]): void;
20377
20872
  warn(...args: unknown[]): void;
@@ -20467,6 +20962,19 @@ declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataT
20467
20962
  declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
20468
20963
  declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
20469
20964
 
20965
+ declare class StandardTaskCatalog implements TaskCatalog {
20966
+ private _taskMetadata;
20967
+ private _taskFunctions;
20968
+ private _taskFileMetadata;
20969
+ registerTaskMetadata(task: TaskMetadataWithFunctions): void;
20970
+ updateTaskMetadata(id: string, updates: Partial<TaskMetadataWithFunctions>): void;
20971
+ registerTaskFileMetadata(id: string, metadata: TaskFileMetadata): void;
20972
+ getAllTaskMetadata(): Array<TaskMetadataWithFilePath>;
20973
+ getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
20974
+ getTask(id: string): TaskMetadataWithFunctions | undefined;
20975
+ disable(): void;
20976
+ }
20977
+
20470
20978
  declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturnType<{
20471
20979
  payload?: any;
20472
20980
  context?: any;
@@ -20512,7 +21020,9 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
20512
21020
  } | undefined;
20513
21021
  } | undefined;
20514
21022
  concurrencyKey?: string | undefined;
21023
+ idempotencyKey?: string | undefined;
20515
21024
  test?: boolean | undefined;
21025
+ payloadType?: string | undefined;
20516
21026
  } | undefined;
20517
21027
  }, {
20518
21028
  payload?: any;
@@ -20559,7 +21069,9 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
20559
21069
  } | undefined;
20560
21070
  } | undefined;
20561
21071
  concurrencyKey?: string | undefined;
21072
+ idempotencyKey?: string | undefined;
20562
21073
  test?: boolean | undefined;
21074
+ payloadType?: string | undefined;
20563
21075
  } | undefined;
20564
21076
  }>;
20565
21077
  declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseReturnType<{
@@ -20608,7 +21120,9 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
20608
21120
  } | undefined;
20609
21121
  } | undefined;
20610
21122
  concurrencyKey?: string | undefined;
21123
+ idempotencyKey?: string | undefined;
20611
21124
  test?: boolean | undefined;
21125
+ payloadType?: string | undefined;
20612
21126
  } | undefined;
20613
21127
  }[];
20614
21128
  dependentAttempt?: string | undefined;
@@ -20658,10 +21172,12 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
20658
21172
  } | undefined;
20659
21173
  } | undefined;
20660
21174
  concurrencyKey?: string | undefined;
21175
+ idempotencyKey?: string | undefined;
20661
21176
  test?: boolean | undefined;
21177
+ payloadType?: string | undefined;
20662
21178
  } | undefined;
20663
21179
  }[];
20664
21180
  dependentAttempt?: string | undefined;
20665
21181
  }>;
20666
21182
 
20667
- export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DeploymentErrorData, DevRuntimeManager, PreciseWallClock as DurableClock, EnvironmentType, type EventEmitterLike, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, type GetSocketCallbackSchema, type GetSocketMessageSchema, type GetSocketMessagesWithCallback, type GetSocketMessagesWithoutCallback, type HandleErrorArgs, type HandleErrorFnParams, type HandleErrorFunction, type HandleErrorModificationOptions, type HandleErrorResult, type IOPacket, ImageDetailsMetadata, type InferSocketCallbackSchema, type InferSocketMessageSchema, type InitFnParams, type InitOutput, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, type LogLevel$1 as LogLevel, Machine, MachineCpu, MachineMemory, type MessageCatalogToSocketIoEvents, type MessageFromCatalog, type MessageFromSchema, type MessagesFromSocketCatalog, type MiddlewareFnParams, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, PostStartCauses, PreStopCauses, type Prettify, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, type ProjectConfig, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, ReplayRunResponse, type RequireKeys, type ResolvedConfig, RetryOptions, type RunFnParams, type RuntimeManager, SemanticInternalAttributes, SharedQueueToClientMessages, SimpleStructuredLogger, SlidingWindowRateLimit, type SocketMessageHasCallback, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, type StructuredLogger, type SuccessFnParams, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, type TaskExecutorOptions, type TaskLogger, TaskMetadata, TaskMetadataFailedToParseData, TaskMetadataWithFilePath, type TaskMetadataWithFunctions, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, Variant, WaitReason, type WhoAmIResponse, WhoAmIResponseSchema, ZodIpcConnection, type ZodMessageCatalogSchema, type ZodMessageCatalogToSocketIoEvents, ZodMessageHandler, type ZodMessageHandlerOptions, type ZodMessageHandlers, ZodMessageSchema, ZodMessageSender, type ZodMessageSenderOptions, type ZodMessageValueSchema, ZodNamespace, type ZodNamespaceSocket, ZodSchemaParsedError, type ZodSocket, ZodSocketConnection, type ZodSocketMessageCatalogSchema, ZodSocketMessageHandler, type ZodSocketMessageHandlerOptions, type ZodSocketMessageHandlers, ZodSocketMessageSender, type ZodSocketMessageSenderOptions, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt, childToWorkerMessages, clientWebsocketMessages, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, groupTaskMetadataIssuesByTask, iconStringForSeverity, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logLevels, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseBatchTriggerTaskRequestBody, parseError, parsePacket, parseTriggerTaskRequestBody, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, serverWebsocketMessages, stringPatternMatchers, stringifyIO, taskContextManager, unflattenAttributes, workerToChildMessages };
21183
+ export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, DevRuntimeManager, PreciseWallClock as DurableClock, EnvironmentType, type EventEmitterLike, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, type GetSocketCallbackSchema, type GetSocketMessageSchema, type GetSocketMessagesWithCallback, type GetSocketMessagesWithoutCallback, type HandleErrorArgs, type HandleErrorFnParams, type HandleErrorFunction, type HandleErrorModificationOptions, type HandleErrorResult, type IOPacket, ImageDetailsMetadata, type InferSocketCallbackSchema, type InferSocketMessageSchema, type InitFnParams, type InitOutput, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListScheduleOptions, ListSchedulesResult, type LogLevel$1 as LogLevel, Machine, MachineCpu, MachineMemory, type MessageCatalogToSocketIoEvents, type MessageFromCatalog, type MessageFromSchema, type MessagesFromSocketCatalog, type MiddlewareFnParams, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, PostStartCauses, PreStopCauses, type Prettify, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, type ProjectConfig, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, ReplayRunResponse, type RequireKeys, type ResolvedConfig, RetryOptions, type RunFnParams, type RuntimeManager, ScheduleObject, ScheduledTaskPayload, SemanticInternalAttributes, SharedQueueToClientMessages, SimpleStructuredLogger, SlidingWindowRateLimit, type SocketMessageHasCallback, SpanEvent, SpanEvents, SpanMessagingEvent, StandardTaskCatalog, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, type StructuredLogger, type SuccessFnParams, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, type TaskExecutorOptions, TaskFileMetadata, type TaskLogger, TaskMetadata, TaskMetadataFailedToParseData, TaskMetadataWithFilePath, type TaskMetadataWithFunctions, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, UpdateScheduleOptions, Variant, WaitReason, type WhoAmIResponse, WhoAmIResponseSchema, ZodIpcConnection, type ZodMessageCatalogSchema, type ZodMessageCatalogToSocketIoEvents, ZodMessageHandler, type ZodMessageHandlerOptions, type ZodMessageHandlers, ZodMessageSchema, ZodMessageSender, type ZodMessageSenderOptions, type ZodMessageValueSchema, ZodNamespace, type ZodNamespaceSocket, ZodSchemaParsedError, type ZodSocket, ZodSocketConnection, type ZodSocketMessageCatalogSchema, ZodSocketMessageHandler, type ZodSocketMessageHandlerOptions, type ZodSocketMessageHandlers, ZodSocketMessageSender, type ZodSocketMessageSenderOptions, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt, childToWorkerMessages, clientWebsocketMessages, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, groupTaskMetadataIssuesByTask, iconStringForSeverity, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logLevels, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseBatchTriggerTaskRequestBody, parseError, parsePacket, parseTriggerTaskRequestBody, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, serverWebsocketMessages, stringPatternMatchers, stringifyIO, taskCatalog, taskContextManager, unflattenAttributes, workerToChildMessages };