@trigger.dev/core 4.0.0-v4-beta.24 → 4.0.0-v4-beta.26

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.
Files changed (91) hide show
  1. package/dist/commonjs/logger.d.ts +1 -0
  2. package/dist/commonjs/logger.js +5 -0
  3. package/dist/commonjs/logger.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +8 -8
  5. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
  6. package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
  7. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  8. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +79 -61
  9. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
  10. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +63 -45
  11. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +341 -209
  12. package/dist/commonjs/v3/runMetadata/manager.d.ts +1 -0
  13. package/dist/commonjs/v3/runMetadata/manager.js +72 -2
  14. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  15. package/dist/commonjs/v3/schemas/api.d.ts +116 -116
  16. package/dist/commonjs/v3/schemas/build.d.ts +36 -36
  17. package/dist/commonjs/v3/schemas/checkpoints.d.ts +72 -72
  18. package/dist/commonjs/v3/schemas/common.d.ts +1708 -408
  19. package/dist/commonjs/v3/schemas/common.js +101 -42
  20. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  21. package/dist/commonjs/v3/schemas/messages.d.ts +3564 -2986
  22. package/dist/commonjs/v3/schemas/messages.js +10 -10
  23. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  24. package/dist/commonjs/v3/schemas/resources.d.ts +10 -10
  25. package/dist/commonjs/v3/schemas/runEngine.d.ts +341 -209
  26. package/dist/commonjs/v3/schemas/schemas.d.ts +562 -442
  27. package/dist/commonjs/v3/schemas/schemas.js +4 -4
  28. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  29. package/dist/commonjs/v3/schemas/webhooks.d.ts +120 -120
  30. package/dist/commonjs/v3/taskContext/index.js +0 -2
  31. package/dist/commonjs/v3/taskContext/index.js.map +1 -1
  32. package/dist/commonjs/v3/usage/api.d.ts +2 -1
  33. package/dist/commonjs/v3/usage/api.js +3 -0
  34. package/dist/commonjs/v3/usage/api.js.map +1 -1
  35. package/dist/commonjs/v3/usage/devUsageManager.d.ts +4 -1
  36. package/dist/commonjs/v3/usage/devUsageManager.js +14 -0
  37. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
  38. package/dist/commonjs/v3/usage/noopUsageManager.d.ts +2 -1
  39. package/dist/commonjs/v3/usage/noopUsageManager.js +6 -0
  40. package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
  41. package/dist/commonjs/v3/usage/prodUsageManager.d.ts +4 -1
  42. package/dist/commonjs/v3/usage/prodUsageManager.js +14 -0
  43. package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
  44. package/dist/commonjs/v3/usage/types.d.ts +5 -0
  45. package/dist/commonjs/version.js +1 -1
  46. package/dist/esm/logger.d.ts +1 -0
  47. package/dist/esm/logger.js +5 -0
  48. package/dist/esm/logger.js.map +1 -1
  49. package/dist/esm/v3/apiClient/index.d.ts +8 -8
  50. package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
  51. package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
  52. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  53. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +79 -61
  54. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
  55. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +63 -45
  56. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +341 -209
  57. package/dist/esm/v3/runMetadata/manager.d.ts +1 -0
  58. package/dist/esm/v3/runMetadata/manager.js +72 -2
  59. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  60. package/dist/esm/v3/schemas/api.d.ts +116 -116
  61. package/dist/esm/v3/schemas/build.d.ts +36 -36
  62. package/dist/esm/v3/schemas/checkpoints.d.ts +72 -72
  63. package/dist/esm/v3/schemas/common.d.ts +1708 -408
  64. package/dist/esm/v3/schemas/common.js +100 -41
  65. package/dist/esm/v3/schemas/common.js.map +1 -1
  66. package/dist/esm/v3/schemas/messages.d.ts +3564 -2986
  67. package/dist/esm/v3/schemas/messages.js +11 -11
  68. package/dist/esm/v3/schemas/messages.js.map +1 -1
  69. package/dist/esm/v3/schemas/resources.d.ts +10 -10
  70. package/dist/esm/v3/schemas/runEngine.d.ts +341 -209
  71. package/dist/esm/v3/schemas/schemas.d.ts +562 -442
  72. package/dist/esm/v3/schemas/schemas.js +4 -4
  73. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  74. package/dist/esm/v3/schemas/webhooks.d.ts +120 -120
  75. package/dist/esm/v3/taskContext/index.js +0 -2
  76. package/dist/esm/v3/taskContext/index.js.map +1 -1
  77. package/dist/esm/v3/usage/api.d.ts +2 -1
  78. package/dist/esm/v3/usage/api.js +3 -0
  79. package/dist/esm/v3/usage/api.js.map +1 -1
  80. package/dist/esm/v3/usage/devUsageManager.d.ts +4 -1
  81. package/dist/esm/v3/usage/devUsageManager.js +14 -0
  82. package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
  83. package/dist/esm/v3/usage/noopUsageManager.d.ts +2 -1
  84. package/dist/esm/v3/usage/noopUsageManager.js +6 -0
  85. package/dist/esm/v3/usage/noopUsageManager.js.map +1 -1
  86. package/dist/esm/v3/usage/prodUsageManager.d.ts +4 -1
  87. package/dist/esm/v3/usage/prodUsageManager.js +14 -0
  88. package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
  89. package/dist/esm/v3/usage/types.d.ts +5 -0
  90. package/dist/esm/version.js +1 -1
  91. package/package.json +1 -1
@@ -1859,99 +1859,13 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
1859
1859
  task: z.ZodObject<{
1860
1860
  id: z.ZodString;
1861
1861
  filePath: z.ZodString;
1862
- exportName: z.ZodOptional<z.ZodString>;
1863
- }, "strip", z.ZodTypeAny, {
1864
- id: string;
1865
- filePath: string;
1866
- exportName?: string | undefined;
1867
- }, {
1868
- id: string;
1869
- filePath: string;
1870
- exportName?: string | undefined;
1871
- }>;
1872
- attempt: z.ZodObject<{
1873
- number: z.ZodNumber;
1874
- startedAt: z.ZodDate;
1862
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1875
1863
  id: z.ZodString;
1876
- backgroundWorkerId: z.ZodString;
1877
- backgroundWorkerTaskId: z.ZodString;
1878
- status: z.ZodString;
1879
- }, "strip", z.ZodTypeAny, {
1880
- number: number;
1881
- status: string;
1882
- id: string;
1883
- startedAt: Date;
1884
- backgroundWorkerId: string;
1885
- backgroundWorkerTaskId: string;
1886
- }, {
1887
- number: number;
1888
- status: string;
1889
- id: string;
1890
- startedAt: Date;
1891
- backgroundWorkerId: string;
1892
- backgroundWorkerTaskId: string;
1893
- }>;
1894
- run: z.ZodIntersection<z.ZodObject<{
1864
+ filePath: z.ZodString;
1865
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1895
1866
  id: z.ZodString;
1896
- payload: z.ZodString;
1897
- payloadType: z.ZodString;
1898
- tags: z.ZodArray<z.ZodString, "many">;
1899
- isTest: z.ZodDefault<z.ZodBoolean>;
1900
- createdAt: z.ZodDate;
1901
- startedAt: z.ZodDefault<z.ZodDate>;
1902
- idempotencyKey: z.ZodOptional<z.ZodString>;
1903
- maxAttempts: z.ZodOptional<z.ZodNumber>;
1904
- version: z.ZodOptional<z.ZodString>;
1905
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
1906
- maxDuration: z.ZodOptional<z.ZodNumber>;
1907
- context: z.ZodAny;
1908
- durationMs: z.ZodDefault<z.ZodNumber>;
1909
- costInCents: z.ZodDefault<z.ZodNumber>;
1910
- baseCostInCents: z.ZodDefault<z.ZodNumber>;
1911
- priority: z.ZodOptional<z.ZodNumber>;
1912
- }, "strip", z.ZodTypeAny, {
1913
- payload: string;
1914
- id: string;
1915
- payloadType: string;
1916
- tags: string[];
1917
- isTest: boolean;
1918
- createdAt: Date;
1919
- startedAt: Date;
1920
- durationMs: number;
1921
- costInCents: number;
1922
- baseCostInCents: number;
1923
- context?: any;
1924
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1925
- idempotencyKey?: string | undefined;
1926
- maxAttempts?: number | undefined;
1927
- version?: string | undefined;
1928
- maxDuration?: number | undefined;
1929
- priority?: number | undefined;
1930
- }, {
1931
- payload: string;
1932
- id: string;
1933
- payloadType: string;
1934
- tags: string[];
1935
- createdAt: Date;
1936
- context?: any;
1937
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1938
- isTest?: boolean | undefined;
1939
- startedAt?: Date | undefined;
1940
- idempotencyKey?: string | undefined;
1941
- maxAttempts?: number | undefined;
1942
- version?: string | undefined;
1943
- maxDuration?: number | undefined;
1944
- durationMs?: number | undefined;
1945
- costInCents?: number | undefined;
1946
- baseCostInCents?: number | undefined;
1947
- priority?: number | undefined;
1948
- }>, z.ZodObject<{
1949
- traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1950
- }, "strip", z.ZodTypeAny, {
1951
- traceContext?: Record<string, unknown> | undefined;
1952
- }, {
1953
- traceContext?: Record<string, unknown> | undefined;
1954
- }>>;
1867
+ filePath: z.ZodString;
1868
+ }, z.ZodTypeAny, "passthrough">>;
1955
1869
  queue: z.ZodObject<{
1956
1870
  id: z.ZodString;
1957
1871
  name: z.ZodString;
@@ -2060,13 +1974,6 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2060
1974
  slug: string;
2061
1975
  ref: string;
2062
1976
  }>;
2063
- batch: z.ZodOptional<z.ZodObject<{
2064
- id: z.ZodString;
2065
- }, "strip", z.ZodTypeAny, {
2066
- id: string;
2067
- }, {
2068
- id: string;
2069
- }>>;
2070
1977
  machine: z.ZodObject<{
2071
1978
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
2072
1979
  cpu: z.ZodNumber;
@@ -2083,21 +1990,115 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2083
1990
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2084
1991
  centsPerMs: number;
2085
1992
  }>;
2086
- }, "strip", z.ZodTypeAny, {
2087
- task: {
1993
+ batch: z.ZodOptional<z.ZodObject<{
1994
+ id: z.ZodString;
1995
+ }, "strip", z.ZodTypeAny, {
2088
1996
  id: string;
2089
- filePath: string;
2090
- exportName?: string | undefined;
2091
- };
2092
- attempt: {
2093
- number: number;
2094
- status: string;
1997
+ }, {
2095
1998
  id: string;
2096
- startedAt: Date;
2097
- backgroundWorkerId: string;
2098
- backgroundWorkerTaskId: string;
2099
- };
2100
- run: {
1999
+ }>>;
2000
+ deployment: z.ZodOptional<z.ZodObject<{
2001
+ id: z.ZodString;
2002
+ shortCode: z.ZodString;
2003
+ version: z.ZodString;
2004
+ runtime: z.ZodString;
2005
+ runtimeVersion: z.ZodString;
2006
+ git: z.ZodOptional<z.ZodObject<{
2007
+ commitAuthorName: z.ZodOptional<z.ZodString>;
2008
+ commitMessage: z.ZodOptional<z.ZodString>;
2009
+ commitRef: z.ZodOptional<z.ZodString>;
2010
+ commitSha: z.ZodOptional<z.ZodString>;
2011
+ dirty: z.ZodOptional<z.ZodBoolean>;
2012
+ remoteUrl: z.ZodOptional<z.ZodString>;
2013
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
2014
+ pullRequestTitle: z.ZodOptional<z.ZodString>;
2015
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ dirty?: boolean | undefined;
2018
+ commitAuthorName?: string | undefined;
2019
+ commitMessage?: string | undefined;
2020
+ commitRef?: string | undefined;
2021
+ commitSha?: string | undefined;
2022
+ remoteUrl?: string | undefined;
2023
+ pullRequestNumber?: number | undefined;
2024
+ pullRequestTitle?: string | undefined;
2025
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2026
+ }, {
2027
+ dirty?: boolean | undefined;
2028
+ commitAuthorName?: string | undefined;
2029
+ commitMessage?: string | undefined;
2030
+ commitRef?: string | undefined;
2031
+ commitSha?: string | undefined;
2032
+ remoteUrl?: string | undefined;
2033
+ pullRequestNumber?: number | undefined;
2034
+ pullRequestTitle?: string | undefined;
2035
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2036
+ }>>;
2037
+ }, "strip", z.ZodTypeAny, {
2038
+ id: string;
2039
+ version: string;
2040
+ shortCode: string;
2041
+ runtime: string;
2042
+ runtimeVersion: string;
2043
+ git?: {
2044
+ dirty?: boolean | undefined;
2045
+ commitAuthorName?: string | undefined;
2046
+ commitMessage?: string | undefined;
2047
+ commitRef?: string | undefined;
2048
+ commitSha?: string | undefined;
2049
+ remoteUrl?: string | undefined;
2050
+ pullRequestNumber?: number | undefined;
2051
+ pullRequestTitle?: string | undefined;
2052
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2053
+ } | undefined;
2054
+ }, {
2055
+ id: string;
2056
+ version: string;
2057
+ shortCode: string;
2058
+ runtime: string;
2059
+ runtimeVersion: string;
2060
+ git?: {
2061
+ dirty?: boolean | undefined;
2062
+ commitAuthorName?: string | undefined;
2063
+ commitMessage?: string | undefined;
2064
+ commitRef?: string | undefined;
2065
+ commitSha?: string | undefined;
2066
+ remoteUrl?: string | undefined;
2067
+ pullRequestNumber?: number | undefined;
2068
+ pullRequestTitle?: string | undefined;
2069
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2070
+ } | undefined;
2071
+ }>>;
2072
+ attempt: z.ZodObject<{
2073
+ number: z.ZodNumber;
2074
+ startedAt: z.ZodDate;
2075
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2076
+ number: z.ZodNumber;
2077
+ startedAt: z.ZodDate;
2078
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2079
+ number: z.ZodNumber;
2080
+ startedAt: z.ZodDate;
2081
+ }, z.ZodTypeAny, "passthrough">>;
2082
+ run: z.ZodIntersection<z.ZodObject<{
2083
+ id: z.ZodString;
2084
+ payload: z.ZodString;
2085
+ payloadType: z.ZodString;
2086
+ tags: z.ZodArray<z.ZodString, "many">;
2087
+ isTest: z.ZodDefault<z.ZodBoolean>;
2088
+ createdAt: z.ZodDate;
2089
+ startedAt: z.ZodDefault<z.ZodDate>;
2090
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2091
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
2092
+ version: z.ZodOptional<z.ZodString>;
2093
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
2094
+ maxDuration: z.ZodOptional<z.ZodNumber>;
2095
+ priority: z.ZodOptional<z.ZodNumber>;
2096
+ baseCostInCents: z.ZodOptional<z.ZodNumber>;
2097
+ parentTaskRunId: z.ZodOptional<z.ZodString>;
2098
+ rootTaskRunId: z.ZodOptional<z.ZodString>;
2099
+ durationMs: z.ZodOptional<z.ZodNumber>;
2100
+ costInCents: z.ZodOptional<z.ZodNumber>;
2101
+ }, "strip", z.ZodTypeAny, {
2101
2102
  payload: string;
2102
2103
  id: string;
2103
2104
  payloadType: string;
@@ -2105,18 +2106,49 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2105
2106
  isTest: boolean;
2106
2107
  createdAt: Date;
2107
2108
  startedAt: Date;
2108
- durationMs: number;
2109
- costInCents: number;
2110
- baseCostInCents: number;
2111
- context?: any;
2112
2109
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2113
2110
  idempotencyKey?: string | undefined;
2114
2111
  maxAttempts?: number | undefined;
2115
2112
  version?: string | undefined;
2116
2113
  maxDuration?: number | undefined;
2117
2114
  priority?: number | undefined;
2118
- } & {
2115
+ baseCostInCents?: number | undefined;
2116
+ parentTaskRunId?: string | undefined;
2117
+ rootTaskRunId?: string | undefined;
2118
+ durationMs?: number | undefined;
2119
+ costInCents?: number | undefined;
2120
+ }, {
2121
+ payload: string;
2122
+ id: string;
2123
+ payloadType: string;
2124
+ tags: string[];
2125
+ createdAt: Date;
2126
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2127
+ isTest?: boolean | undefined;
2128
+ startedAt?: Date | undefined;
2129
+ idempotencyKey?: string | undefined;
2130
+ maxAttempts?: number | undefined;
2131
+ version?: string | undefined;
2132
+ maxDuration?: number | undefined;
2133
+ priority?: number | undefined;
2134
+ baseCostInCents?: number | undefined;
2135
+ parentTaskRunId?: string | undefined;
2136
+ rootTaskRunId?: string | undefined;
2137
+ durationMs?: number | undefined;
2138
+ costInCents?: number | undefined;
2139
+ }>, z.ZodObject<{
2140
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ traceContext?: Record<string, unknown> | undefined;
2143
+ }, {
2119
2144
  traceContext?: Record<string, unknown> | undefined;
2145
+ }>>;
2146
+ }, "strip", z.ZodTypeAny, {
2147
+ task: {
2148
+ id: string;
2149
+ filePath: string;
2150
+ } & {
2151
+ [k: string]: unknown;
2120
2152
  };
2121
2153
  queue: {
2122
2154
  name: string;
@@ -2156,44 +2188,62 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2156
2188
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2157
2189
  centsPerMs: number;
2158
2190
  };
2159
- batch?: {
2160
- id: string;
2161
- } | undefined;
2162
- }, {
2163
- task: {
2164
- id: string;
2165
- filePath: string;
2166
- exportName?: string | undefined;
2167
- };
2168
2191
  attempt: {
2169
2192
  number: number;
2170
- status: string;
2171
- id: string;
2172
2193
  startedAt: Date;
2173
- backgroundWorkerId: string;
2174
- backgroundWorkerTaskId: string;
2194
+ } & {
2195
+ [k: string]: unknown;
2175
2196
  };
2176
2197
  run: {
2177
2198
  payload: string;
2178
2199
  id: string;
2179
2200
  payloadType: string;
2180
2201
  tags: string[];
2202
+ isTest: boolean;
2181
2203
  createdAt: Date;
2182
- context?: any;
2204
+ startedAt: Date;
2183
2205
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2184
- isTest?: boolean | undefined;
2185
- startedAt?: Date | undefined;
2186
2206
  idempotencyKey?: string | undefined;
2187
2207
  maxAttempts?: number | undefined;
2188
2208
  version?: string | undefined;
2189
2209
  maxDuration?: number | undefined;
2210
+ priority?: number | undefined;
2211
+ baseCostInCents?: number | undefined;
2212
+ parentTaskRunId?: string | undefined;
2213
+ rootTaskRunId?: string | undefined;
2190
2214
  durationMs?: number | undefined;
2191
2215
  costInCents?: number | undefined;
2192
- baseCostInCents?: number | undefined;
2193
- priority?: number | undefined;
2194
2216
  } & {
2195
2217
  traceContext?: Record<string, unknown> | undefined;
2196
2218
  };
2219
+ batch?: {
2220
+ id: string;
2221
+ } | undefined;
2222
+ deployment?: {
2223
+ id: string;
2224
+ version: string;
2225
+ shortCode: string;
2226
+ runtime: string;
2227
+ runtimeVersion: string;
2228
+ git?: {
2229
+ dirty?: boolean | undefined;
2230
+ commitAuthorName?: string | undefined;
2231
+ commitMessage?: string | undefined;
2232
+ commitRef?: string | undefined;
2233
+ commitSha?: string | undefined;
2234
+ remoteUrl?: string | undefined;
2235
+ pullRequestNumber?: number | undefined;
2236
+ pullRequestTitle?: string | undefined;
2237
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2238
+ } | undefined;
2239
+ } | undefined;
2240
+ }, {
2241
+ task: {
2242
+ id: string;
2243
+ filePath: string;
2244
+ } & {
2245
+ [k: string]: unknown;
2246
+ };
2197
2247
  queue: {
2198
2248
  name: string;
2199
2249
  id: string;
@@ -2232,46 +2282,64 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2232
2282
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2233
2283
  centsPerMs: number;
2234
2284
  };
2235
- batch?: {
2236
- id: string;
2237
- } | undefined;
2238
- }>;
2239
- }, "strip", z.ZodTypeAny, {
2240
- execution: {
2241
- task: {
2242
- id: string;
2243
- filePath: string;
2244
- exportName?: string | undefined;
2245
- };
2246
2285
  attempt: {
2247
2286
  number: number;
2248
- status: string;
2249
- id: string;
2250
2287
  startedAt: Date;
2251
- backgroundWorkerId: string;
2252
- backgroundWorkerTaskId: string;
2288
+ } & {
2289
+ [k: string]: unknown;
2253
2290
  };
2254
2291
  run: {
2255
2292
  payload: string;
2256
2293
  id: string;
2257
2294
  payloadType: string;
2258
2295
  tags: string[];
2259
- isTest: boolean;
2260
2296
  createdAt: Date;
2261
- startedAt: Date;
2262
- durationMs: number;
2263
- costInCents: number;
2264
- baseCostInCents: number;
2265
- context?: any;
2266
2297
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2298
+ isTest?: boolean | undefined;
2299
+ startedAt?: Date | undefined;
2267
2300
  idempotencyKey?: string | undefined;
2268
2301
  maxAttempts?: number | undefined;
2269
2302
  version?: string | undefined;
2270
2303
  maxDuration?: number | undefined;
2271
2304
  priority?: number | undefined;
2305
+ baseCostInCents?: number | undefined;
2306
+ parentTaskRunId?: string | undefined;
2307
+ rootTaskRunId?: string | undefined;
2308
+ durationMs?: number | undefined;
2309
+ costInCents?: number | undefined;
2272
2310
  } & {
2273
2311
  traceContext?: Record<string, unknown> | undefined;
2274
2312
  };
2313
+ batch?: {
2314
+ id: string;
2315
+ } | undefined;
2316
+ deployment?: {
2317
+ id: string;
2318
+ version: string;
2319
+ shortCode: string;
2320
+ runtime: string;
2321
+ runtimeVersion: string;
2322
+ git?: {
2323
+ dirty?: boolean | undefined;
2324
+ commitAuthorName?: string | undefined;
2325
+ commitMessage?: string | undefined;
2326
+ commitRef?: string | undefined;
2327
+ commitSha?: string | undefined;
2328
+ remoteUrl?: string | undefined;
2329
+ pullRequestNumber?: number | undefined;
2330
+ pullRequestTitle?: string | undefined;
2331
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2332
+ } | undefined;
2333
+ } | undefined;
2334
+ }>;
2335
+ }, "strip", z.ZodTypeAny, {
2336
+ execution: {
2337
+ task: {
2338
+ id: string;
2339
+ filePath: string;
2340
+ } & {
2341
+ [k: string]: unknown;
2342
+ };
2275
2343
  queue: {
2276
2344
  name: string;
2277
2345
  id: string;
@@ -2310,46 +2378,64 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2310
2378
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2311
2379
  centsPerMs: number;
2312
2380
  };
2313
- batch?: {
2314
- id: string;
2315
- } | undefined;
2316
- };
2317
- }, {
2318
- execution: {
2319
- task: {
2320
- id: string;
2321
- filePath: string;
2322
- exportName?: string | undefined;
2323
- };
2324
2381
  attempt: {
2325
2382
  number: number;
2326
- status: string;
2327
- id: string;
2328
2383
  startedAt: Date;
2329
- backgroundWorkerId: string;
2330
- backgroundWorkerTaskId: string;
2384
+ } & {
2385
+ [k: string]: unknown;
2331
2386
  };
2332
2387
  run: {
2333
2388
  payload: string;
2334
2389
  id: string;
2335
2390
  payloadType: string;
2336
2391
  tags: string[];
2392
+ isTest: boolean;
2337
2393
  createdAt: Date;
2338
- context?: any;
2394
+ startedAt: Date;
2339
2395
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2340
- isTest?: boolean | undefined;
2341
- startedAt?: Date | undefined;
2342
2396
  idempotencyKey?: string | undefined;
2343
2397
  maxAttempts?: number | undefined;
2344
2398
  version?: string | undefined;
2345
2399
  maxDuration?: number | undefined;
2400
+ priority?: number | undefined;
2401
+ baseCostInCents?: number | undefined;
2402
+ parentTaskRunId?: string | undefined;
2403
+ rootTaskRunId?: string | undefined;
2346
2404
  durationMs?: number | undefined;
2347
2405
  costInCents?: number | undefined;
2348
- baseCostInCents?: number | undefined;
2349
- priority?: number | undefined;
2350
2406
  } & {
2351
2407
  traceContext?: Record<string, unknown> | undefined;
2352
2408
  };
2409
+ batch?: {
2410
+ id: string;
2411
+ } | undefined;
2412
+ deployment?: {
2413
+ id: string;
2414
+ version: string;
2415
+ shortCode: string;
2416
+ runtime: string;
2417
+ runtimeVersion: string;
2418
+ git?: {
2419
+ dirty?: boolean | undefined;
2420
+ commitAuthorName?: string | undefined;
2421
+ commitMessage?: string | undefined;
2422
+ commitRef?: string | undefined;
2423
+ commitSha?: string | undefined;
2424
+ remoteUrl?: string | undefined;
2425
+ pullRequestNumber?: number | undefined;
2426
+ pullRequestTitle?: string | undefined;
2427
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2428
+ } | undefined;
2429
+ } | undefined;
2430
+ };
2431
+ }, {
2432
+ execution: {
2433
+ task: {
2434
+ id: string;
2435
+ filePath: string;
2436
+ } & {
2437
+ [k: string]: unknown;
2438
+ };
2353
2439
  queue: {
2354
2440
  name: string;
2355
2441
  id: string;
@@ -2388,9 +2474,55 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2388
2474
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2389
2475
  centsPerMs: number;
2390
2476
  };
2477
+ attempt: {
2478
+ number: number;
2479
+ startedAt: Date;
2480
+ } & {
2481
+ [k: string]: unknown;
2482
+ };
2483
+ run: {
2484
+ payload: string;
2485
+ id: string;
2486
+ payloadType: string;
2487
+ tags: string[];
2488
+ createdAt: Date;
2489
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2490
+ isTest?: boolean | undefined;
2491
+ startedAt?: Date | undefined;
2492
+ idempotencyKey?: string | undefined;
2493
+ maxAttempts?: number | undefined;
2494
+ version?: string | undefined;
2495
+ maxDuration?: number | undefined;
2496
+ priority?: number | undefined;
2497
+ baseCostInCents?: number | undefined;
2498
+ parentTaskRunId?: string | undefined;
2499
+ rootTaskRunId?: string | undefined;
2500
+ durationMs?: number | undefined;
2501
+ costInCents?: number | undefined;
2502
+ } & {
2503
+ traceContext?: Record<string, unknown> | undefined;
2504
+ };
2391
2505
  batch?: {
2392
2506
  id: string;
2393
2507
  } | undefined;
2508
+ deployment?: {
2509
+ id: string;
2510
+ version: string;
2511
+ shortCode: string;
2512
+ runtime: string;
2513
+ runtimeVersion: string;
2514
+ git?: {
2515
+ dirty?: boolean | undefined;
2516
+ commitAuthorName?: string | undefined;
2517
+ commitMessage?: string | undefined;
2518
+ commitRef?: string | undefined;
2519
+ commitSha?: string | undefined;
2520
+ remoteUrl?: string | undefined;
2521
+ pullRequestNumber?: number | undefined;
2522
+ pullRequestTitle?: string | undefined;
2523
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
2524
+ } | undefined;
2525
+ } | undefined;
2394
2526
  };
2395
2527
  }>>, z.ZodObject<{
2396
2528
  envVars: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -2982,26 +3114,26 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2982
3114
  }, "strip", z.ZodTypeAny, {
2983
3115
  id: string;
2984
3116
  isTest: boolean;
2985
- traceContext: Record<string, unknown>;
2986
3117
  machine: {
2987
3118
  cpu: number;
2988
3119
  memory: number;
2989
3120
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2990
3121
  centsPerMs: number;
2991
3122
  };
3123
+ traceContext: Record<string, unknown>;
2992
3124
  friendlyId: string;
2993
3125
  attemptNumber: number;
2994
3126
  masterQueue: string;
2995
3127
  }, {
2996
3128
  id: string;
2997
3129
  isTest: boolean;
2998
- traceContext: Record<string, unknown>;
2999
3130
  machine: {
3000
3131
  cpu: number;
3001
3132
  memory: number;
3002
3133
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3003
3134
  centsPerMs: number;
3004
3135
  };
3136
+ traceContext: Record<string, unknown>;
3005
3137
  friendlyId: string;
3006
3138
  attemptNumber: number;
3007
3139
  masterQueue: string;
@@ -3032,30 +3164,35 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3032
3164
  }>;
3033
3165
  }, "strip", z.ZodTypeAny, {
3034
3166
  version: "1";
3167
+ environment: {
3168
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3169
+ id: string;
3170
+ };
3171
+ organization: {
3172
+ id: string;
3173
+ };
3174
+ project: {
3175
+ id: string;
3176
+ };
3177
+ deployment: {
3178
+ id?: string | undefined;
3179
+ friendlyId?: string | undefined;
3180
+ imagePlatform?: string | undefined;
3181
+ };
3035
3182
  run: {
3036
3183
  id: string;
3037
3184
  isTest: boolean;
3038
- traceContext: Record<string, unknown>;
3039
3185
  machine: {
3040
3186
  cpu: number;
3041
3187
  memory: number;
3042
3188
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3043
3189
  centsPerMs: number;
3044
3190
  };
3191
+ traceContext: Record<string, unknown>;
3045
3192
  friendlyId: string;
3046
3193
  attemptNumber: number;
3047
3194
  masterQueue: string;
3048
3195
  };
3049
- environment: {
3050
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3051
- id: string;
3052
- };
3053
- organization: {
3054
- id: string;
3055
- };
3056
- project: {
3057
- id: string;
3058
- };
3059
3196
  snapshot: {
3060
3197
  id: string;
3061
3198
  createdAt: Date;
@@ -3093,11 +3230,6 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3093
3230
  version: string;
3094
3231
  friendlyId: string;
3095
3232
  };
3096
- deployment: {
3097
- id?: string | undefined;
3098
- friendlyId?: string | undefined;
3099
- imagePlatform?: string | undefined;
3100
- };
3101
3233
  checkpoint?: {
3102
3234
  type: import("../../index.js").CheckpointTypeEnum;
3103
3235
  id: string;
@@ -3108,30 +3240,35 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3108
3240
  image?: string | undefined;
3109
3241
  }, {
3110
3242
  version: "1";
3243
+ environment: {
3244
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3245
+ id: string;
3246
+ };
3247
+ organization: {
3248
+ id: string;
3249
+ };
3250
+ project: {
3251
+ id: string;
3252
+ };
3253
+ deployment: {
3254
+ id?: string | undefined;
3255
+ friendlyId?: string | undefined;
3256
+ imagePlatform?: string | undefined;
3257
+ };
3111
3258
  run: {
3112
3259
  id: string;
3113
3260
  isTest: boolean;
3114
- traceContext: Record<string, unknown>;
3115
3261
  machine: {
3116
3262
  cpu: number;
3117
3263
  memory: number;
3118
3264
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3119
3265
  centsPerMs: number;
3120
3266
  };
3267
+ traceContext: Record<string, unknown>;
3121
3268
  friendlyId: string;
3122
3269
  attemptNumber: number;
3123
3270
  masterQueue: string;
3124
3271
  };
3125
- environment: {
3126
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3127
- id: string;
3128
- };
3129
- organization: {
3130
- id: string;
3131
- };
3132
- project: {
3133
- id: string;
3134
- };
3135
3272
  snapshot: {
3136
3273
  id: string;
3137
3274
  createdAt: Date;
@@ -3169,11 +3306,6 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
3169
3306
  version: string;
3170
3307
  friendlyId: string;
3171
3308
  };
3172
- deployment: {
3173
- id?: string | undefined;
3174
- friendlyId?: string | undefined;
3175
- imagePlatform?: string | undefined;
3176
- };
3177
3309
  checkpoint?: {
3178
3310
  type: import("../../index.js").CheckpointTypeEnum;
3179
3311
  id: string;