@trigger.dev/core 0.0.0-v3-prerelease-20240923150540 → 0.0.0-v3-prerelease-20241009112547

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 (170) hide show
  1. package/dist/commonjs/schemas/api.d.ts +8 -8
  2. package/dist/commonjs/v3/apiClient/core.js +18 -1
  3. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +78 -67
  5. package/dist/commonjs/v3/apiClient/index.js +7 -2
  6. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  7. package/dist/commonjs/v3/apiClientManager/index.d.ts +5 -0
  8. package/dist/commonjs/v3/apiClientManager/index.js +28 -1
  9. package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
  10. package/dist/commonjs/v3/apps/duration.d.ts +1 -0
  11. package/dist/commonjs/v3/apps/duration.js +51 -0
  12. package/dist/commonjs/v3/apps/duration.js.map +1 -0
  13. package/dist/commonjs/v3/apps/friendlyId.d.ts +1 -0
  14. package/dist/commonjs/v3/apps/friendlyId.js +9 -0
  15. package/dist/commonjs/v3/apps/friendlyId.js.map +1 -0
  16. package/dist/commonjs/v3/apps/index.d.ts +2 -0
  17. package/dist/commonjs/v3/apps/index.js +2 -0
  18. package/dist/commonjs/v3/apps/index.js.map +1 -1
  19. package/dist/commonjs/v3/config.d.ts +8 -0
  20. package/dist/commonjs/v3/errors.d.ts +12 -2
  21. package/dist/commonjs/v3/errors.js +107 -24
  22. package/dist/commonjs/v3/errors.js.map +1 -1
  23. package/dist/commonjs/v3/index.d.ts +3 -0
  24. package/dist/commonjs/v3/index.js +5 -1
  25. package/dist/commonjs/v3/index.js.map +1 -1
  26. package/dist/commonjs/v3/links.d.ts +17 -0
  27. package/dist/commonjs/v3/links.js +21 -0
  28. package/dist/commonjs/v3/links.js.map +1 -0
  29. package/dist/commonjs/v3/run-metadata-api.d.ts +2 -0
  30. package/dist/commonjs/v3/run-metadata-api.js +8 -0
  31. package/dist/commonjs/v3/run-metadata-api.js.map +1 -0
  32. package/dist/commonjs/v3/runMetadata/index.d.ts +15 -0
  33. package/dist/commonjs/v3/runMetadata/index.js +67 -0
  34. package/dist/commonjs/v3/runMetadata/index.js.map +1 -0
  35. package/dist/commonjs/v3/schemas/api.d.ts +387 -290
  36. package/dist/commonjs/v3/schemas/api.js +15 -1
  37. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  38. package/dist/commonjs/v3/schemas/build.d.ts +90 -76
  39. package/dist/commonjs/v3/schemas/common.d.ts +151 -123
  40. package/dist/commonjs/v3/schemas/common.js +16 -1
  41. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  42. package/dist/commonjs/v3/schemas/messages.d.ts +2710 -2442
  43. package/dist/commonjs/v3/schemas/messages.js +1 -0
  44. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  45. package/dist/commonjs/v3/schemas/resources.d.ts +36 -28
  46. package/dist/commonjs/v3/schemas/resources.js +1 -0
  47. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  48. package/dist/commonjs/v3/schemas/schemas.d.ts +307 -263
  49. package/dist/commonjs/v3/schemas/schemas.js +1 -0
  50. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  51. package/dist/commonjs/v3/timeout/api.d.ts +11 -0
  52. package/dist/commonjs/v3/timeout/api.js +38 -0
  53. package/dist/commonjs/v3/timeout/api.js.map +1 -0
  54. package/dist/commonjs/v3/timeout/types.d.ts +9 -0
  55. package/dist/commonjs/v3/timeout/types.js +15 -0
  56. package/dist/commonjs/v3/timeout/types.js.map +1 -0
  57. package/dist/commonjs/v3/timeout/usageTimeoutManager.d.ts +10 -0
  58. package/dist/commonjs/v3/timeout/usageTimeoutManager.js +32 -0
  59. package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -0
  60. package/dist/commonjs/v3/timeout-api.d.ts +3 -0
  61. package/dist/commonjs/v3/timeout-api.js +9 -0
  62. package/dist/commonjs/v3/timeout-api.js.map +1 -0
  63. package/dist/commonjs/v3/tracer.d.ts +1 -1
  64. package/dist/commonjs/v3/tracer.js +28 -14
  65. package/dist/commonjs/v3/tracer.js.map +1 -1
  66. package/dist/commonjs/v3/types/index.d.ts +10 -0
  67. package/dist/commonjs/v3/utils/globals.d.ts +4 -0
  68. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  69. package/dist/commonjs/v3/utils/structuredLogger.d.ts +1 -0
  70. package/dist/commonjs/v3/utils/structuredLogger.js +10 -4
  71. package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
  72. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  73. package/dist/commonjs/v3/workers/index.js +3 -1
  74. package/dist/commonjs/v3/workers/index.js.map +1 -1
  75. package/dist/commonjs/v3/workers/taskExecutor.d.ts +1 -1
  76. package/dist/commonjs/v3/workers/taskExecutor.js +53 -43
  77. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  78. package/dist/commonjs/v3/zodNamespace.d.ts +1 -0
  79. package/dist/commonjs/v3/zodNamespace.js +6 -1
  80. package/dist/commonjs/v3/zodNamespace.js.map +1 -1
  81. package/dist/commonjs/v3/zodSocket.d.ts +2 -0
  82. package/dist/commonjs/v3/zodSocket.js +15 -5
  83. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  84. package/dist/commonjs/version.js +1 -1
  85. package/dist/esm/schemas/api.d.ts +8 -8
  86. package/dist/esm/v3/apiClient/core.js +18 -1
  87. package/dist/esm/v3/apiClient/core.js.map +1 -1
  88. package/dist/esm/v3/apiClient/index.d.ts +78 -67
  89. package/dist/esm/v3/apiClient/index.js +8 -3
  90. package/dist/esm/v3/apiClient/index.js.map +1 -1
  91. package/dist/esm/v3/apiClientManager/index.d.ts +5 -0
  92. package/dist/esm/v3/apiClientManager/index.js +26 -0
  93. package/dist/esm/v3/apiClientManager/index.js.map +1 -1
  94. package/dist/esm/v3/apps/duration.d.ts +1 -0
  95. package/dist/esm/v3/apps/duration.js +48 -0
  96. package/dist/esm/v3/apps/duration.js.map +1 -0
  97. package/dist/esm/v3/apps/friendlyId.d.ts +1 -0
  98. package/dist/esm/v3/apps/friendlyId.js +6 -0
  99. package/dist/esm/v3/apps/friendlyId.js.map +1 -0
  100. package/dist/esm/v3/apps/index.d.ts +2 -0
  101. package/dist/esm/v3/apps/index.js +2 -0
  102. package/dist/esm/v3/apps/index.js.map +1 -1
  103. package/dist/esm/v3/config.d.ts +8 -0
  104. package/dist/esm/v3/errors.d.ts +12 -2
  105. package/dist/esm/v3/errors.js +104 -23
  106. package/dist/esm/v3/errors.js.map +1 -1
  107. package/dist/esm/v3/index.d.ts +3 -0
  108. package/dist/esm/v3/index.js +3 -0
  109. package/dist/esm/v3/index.js.map +1 -1
  110. package/dist/esm/v3/links.d.ts +17 -0
  111. package/dist/esm/v3/links.js +18 -0
  112. package/dist/esm/v3/links.js.map +1 -0
  113. package/dist/esm/v3/run-metadata-api.d.ts +2 -0
  114. package/dist/esm/v3/run-metadata-api.js +5 -0
  115. package/dist/esm/v3/run-metadata-api.js.map +1 -0
  116. package/dist/esm/v3/runMetadata/index.d.ts +15 -0
  117. package/dist/esm/v3/runMetadata/index.js +63 -0
  118. package/dist/esm/v3/runMetadata/index.js.map +1 -0
  119. package/dist/esm/v3/schemas/api.d.ts +317 -220
  120. package/dist/esm/v3/schemas/api.js +14 -0
  121. package/dist/esm/v3/schemas/api.js.map +1 -1
  122. package/dist/esm/v3/schemas/build.d.ts +160 -146
  123. package/dist/esm/v3/schemas/common.d.ts +151 -123
  124. package/dist/esm/v3/schemas/common.js +16 -1
  125. package/dist/esm/v3/schemas/common.js.map +1 -1
  126. package/dist/esm/v3/schemas/fetch.d.ts +14 -14
  127. package/dist/esm/v3/schemas/messages.d.ts +2909 -2641
  128. package/dist/esm/v3/schemas/messages.js +2 -1
  129. package/dist/esm/v3/schemas/messages.js.map +1 -1
  130. package/dist/esm/v3/schemas/resources.d.ts +30 -22
  131. package/dist/esm/v3/schemas/resources.js +1 -0
  132. package/dist/esm/v3/schemas/resources.js.map +1 -1
  133. package/dist/esm/v3/schemas/schemas.d.ts +387 -343
  134. package/dist/esm/v3/schemas/schemas.js +1 -0
  135. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  136. package/dist/esm/v3/timeout/api.d.ts +11 -0
  137. package/dist/esm/v3/timeout/api.js +34 -0
  138. package/dist/esm/v3/timeout/api.js.map +1 -0
  139. package/dist/esm/v3/timeout/types.d.ts +9 -0
  140. package/dist/esm/v3/timeout/types.js +11 -0
  141. package/dist/esm/v3/timeout/types.js.map +1 -0
  142. package/dist/esm/v3/timeout/usageTimeoutManager.d.ts +10 -0
  143. package/dist/esm/v3/timeout/usageTimeoutManager.js +28 -0
  144. package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -0
  145. package/dist/esm/v3/timeout-api.d.ts +3 -0
  146. package/dist/esm/v3/timeout-api.js +6 -0
  147. package/dist/esm/v3/timeout-api.js.map +1 -0
  148. package/dist/esm/v3/tracer.d.ts +1 -1
  149. package/dist/esm/v3/tracer.js +28 -14
  150. package/dist/esm/v3/tracer.js.map +1 -1
  151. package/dist/esm/v3/types/index.d.ts +10 -0
  152. package/dist/esm/v3/utils/globals.d.ts +4 -0
  153. package/dist/esm/v3/utils/globals.js.map +1 -1
  154. package/dist/esm/v3/utils/structuredLogger.d.ts +1 -0
  155. package/dist/esm/v3/utils/structuredLogger.js +10 -4
  156. package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
  157. package/dist/esm/v3/workers/index.d.ts +1 -0
  158. package/dist/esm/v3/workers/index.js +1 -0
  159. package/dist/esm/v3/workers/index.js.map +1 -1
  160. package/dist/esm/v3/workers/taskExecutor.d.ts +1 -1
  161. package/dist/esm/v3/workers/taskExecutor.js +45 -35
  162. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  163. package/dist/esm/v3/zodNamespace.d.ts +1 -0
  164. package/dist/esm/v3/zodNamespace.js +6 -1
  165. package/dist/esm/v3/zodNamespace.js.map +1 -1
  166. package/dist/esm/v3/zodSocket.d.ts +2 -0
  167. package/dist/esm/v3/zodSocket.js +15 -5
  168. package/dist/esm/v3/zodSocket.js.map +1 -1
  169. package/dist/esm/version.js +1 -1
  170. package/package.json +2 -1
@@ -54,27 +54,31 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
54
54
  costInCents: z.ZodDefault<z.ZodNumber>;
55
55
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
56
56
  version: z.ZodOptional<z.ZodString>;
57
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
58
+ maxDuration: z.ZodOptional<z.ZodNumber>;
57
59
  }, "strip", z.ZodTypeAny, {
58
60
  id: string;
59
- createdAt: Date;
60
61
  payload: string;
61
62
  payloadType: string;
62
63
  tags: string[];
63
64
  isTest: boolean;
65
+ createdAt: Date;
64
66
  startedAt: Date;
67
+ durationMs: number;
65
68
  costInCents: number;
66
69
  baseCostInCents: number;
67
- durationMs: number;
68
70
  context?: any;
69
71
  idempotencyKey?: string | undefined;
70
72
  maxAttempts?: number | undefined;
71
73
  version?: string | undefined;
74
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
75
+ maxDuration?: number | undefined;
72
76
  }, {
73
77
  id: string;
74
- createdAt: Date;
75
78
  payload: string;
76
79
  payloadType: string;
77
80
  tags: string[];
81
+ createdAt: Date;
78
82
  context?: any;
79
83
  isTest?: boolean | undefined;
80
84
  startedAt?: Date | undefined;
@@ -84,16 +88,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
84
88
  costInCents?: number | undefined;
85
89
  baseCostInCents?: number | undefined;
86
90
  version?: string | undefined;
91
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
92
+ maxDuration?: number | undefined;
87
93
  }>;
88
94
  queue: z.ZodObject<{
89
95
  id: z.ZodString;
90
96
  name: z.ZodString;
91
97
  }, "strip", z.ZodTypeAny, {
92
- id: string;
93
98
  name: string;
94
- }, {
95
99
  id: string;
100
+ }, {
96
101
  name: string;
102
+ id: string;
97
103
  }>;
98
104
  environment: z.ZodObject<{
99
105
  id: z.ZodString;
@@ -113,12 +119,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
113
119
  slug: z.ZodString;
114
120
  name: z.ZodString;
115
121
  }, "strip", z.ZodTypeAny, {
116
- id: string;
117
122
  name: string;
123
+ id: string;
118
124
  slug: string;
119
125
  }, {
120
- id: string;
121
126
  name: string;
127
+ id: string;
122
128
  slug: string;
123
129
  }>;
124
130
  project: z.ZodObject<{
@@ -127,13 +133,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
127
133
  slug: z.ZodString;
128
134
  name: z.ZodString;
129
135
  }, "strip", z.ZodTypeAny, {
130
- id: string;
131
136
  name: string;
137
+ id: string;
132
138
  slug: string;
133
139
  ref: string;
134
140
  }, {
135
- id: string;
136
141
  name: string;
142
+ id: string;
137
143
  slug: string;
138
144
  ref: string;
139
145
  }>;
@@ -150,26 +156,17 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
150
156
  memory: z.ZodNumber;
151
157
  centsPerMs: z.ZodNumber;
152
158
  }, "strip", z.ZodTypeAny, {
153
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
154
159
  cpu: number;
155
160
  memory: number;
161
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
156
162
  centsPerMs: number;
157
163
  }, {
158
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
159
164
  cpu: number;
160
165
  memory: number;
166
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
161
167
  centsPerMs: number;
162
168
  }>>;
163
169
  }, "strip", z.ZodTypeAny, {
164
- organization: {
165
- id: string;
166
- name: string;
167
- slug: string;
168
- };
169
- queue: {
170
- id: string;
171
- name: string;
172
- };
173
170
  task: {
174
171
  id: string;
175
172
  filePath: string;
@@ -185,28 +182,39 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
185
182
  };
186
183
  run: {
187
184
  id: string;
188
- createdAt: Date;
189
185
  payload: string;
190
186
  payloadType: string;
191
187
  tags: string[];
192
188
  isTest: boolean;
189
+ createdAt: Date;
193
190
  startedAt: Date;
191
+ durationMs: number;
194
192
  costInCents: number;
195
193
  baseCostInCents: number;
196
- durationMs: number;
197
194
  context?: any;
198
195
  idempotencyKey?: string | undefined;
199
196
  maxAttempts?: number | undefined;
200
197
  version?: string | undefined;
198
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
199
+ maxDuration?: number | undefined;
200
+ };
201
+ queue: {
202
+ name: string;
203
+ id: string;
201
204
  };
202
205
  environment: {
203
206
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
204
207
  id: string;
205
208
  slug: string;
206
209
  };
207
- project: {
210
+ organization: {
211
+ name: string;
208
212
  id: string;
213
+ slug: string;
214
+ };
215
+ project: {
209
216
  name: string;
217
+ id: string;
210
218
  slug: string;
211
219
  ref: string;
212
220
  };
@@ -214,21 +222,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
214
222
  id: string;
215
223
  } | undefined;
216
224
  machine?: {
217
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
218
225
  cpu: number;
219
226
  memory: number;
227
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
220
228
  centsPerMs: number;
221
229
  } | undefined;
222
230
  }, {
223
- organization: {
224
- id: string;
225
- name: string;
226
- slug: string;
227
- };
228
- queue: {
229
- id: string;
230
- name: string;
231
- };
232
231
  task: {
233
232
  id: string;
234
233
  filePath: string;
@@ -244,10 +243,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
244
243
  };
245
244
  run: {
246
245
  id: string;
247
- createdAt: Date;
248
246
  payload: string;
249
247
  payloadType: string;
250
248
  tags: string[];
249
+ createdAt: Date;
251
250
  context?: any;
252
251
  isTest?: boolean | undefined;
253
252
  startedAt?: Date | undefined;
@@ -257,15 +256,26 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
257
256
  costInCents?: number | undefined;
258
257
  baseCostInCents?: number | undefined;
259
258
  version?: string | undefined;
259
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
260
+ maxDuration?: number | undefined;
261
+ };
262
+ queue: {
263
+ name: string;
264
+ id: string;
260
265
  };
261
266
  environment: {
262
267
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
263
268
  id: string;
264
269
  slug: string;
265
270
  };
266
- project: {
271
+ organization: {
272
+ name: string;
267
273
  id: string;
274
+ slug: string;
275
+ };
276
+ project: {
268
277
  name: string;
278
+ id: string;
269
279
  slug: string;
270
280
  ref: string;
271
281
  };
@@ -273,25 +283,17 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
273
283
  id: string;
274
284
  } | undefined;
275
285
  machine?: {
276
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
277
286
  cpu: number;
278
287
  memory: number;
288
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
279
289
  centsPerMs: number;
280
290
  } | undefined;
281
291
  }>;
282
292
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
283
293
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
284
294
  }, "strip", z.ZodTypeAny, {
295
+ traceContext: Record<string, unknown>;
285
296
  execution: {
286
- organization: {
287
- id: string;
288
- name: string;
289
- slug: string;
290
- };
291
- queue: {
292
- id: string;
293
- name: string;
294
- };
295
297
  task: {
296
298
  id: string;
297
299
  filePath: string;
@@ -307,28 +309,39 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
307
309
  };
308
310
  run: {
309
311
  id: string;
310
- createdAt: Date;
311
312
  payload: string;
312
313
  payloadType: string;
313
314
  tags: string[];
314
315
  isTest: boolean;
316
+ createdAt: Date;
315
317
  startedAt: Date;
318
+ durationMs: number;
316
319
  costInCents: number;
317
320
  baseCostInCents: number;
318
- durationMs: number;
319
321
  context?: any;
320
322
  idempotencyKey?: string | undefined;
321
323
  maxAttempts?: number | undefined;
322
324
  version?: string | undefined;
325
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
326
+ maxDuration?: number | undefined;
327
+ };
328
+ queue: {
329
+ name: string;
330
+ id: string;
323
331
  };
324
332
  environment: {
325
333
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
326
334
  id: string;
327
335
  slug: string;
328
336
  };
329
- project: {
337
+ organization: {
338
+ name: string;
330
339
  id: string;
340
+ slug: string;
341
+ };
342
+ project: {
331
343
  name: string;
344
+ id: string;
332
345
  slug: string;
333
346
  ref: string;
334
347
  };
@@ -336,25 +349,16 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
336
349
  id: string;
337
350
  } | undefined;
338
351
  machine?: {
339
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
340
352
  cpu: number;
341
353
  memory: number;
354
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
342
355
  centsPerMs: number;
343
356
  } | undefined;
344
357
  };
345
- traceContext: Record<string, unknown>;
346
358
  environment?: Record<string, string> | undefined;
347
359
  }, {
360
+ traceContext: Record<string, unknown>;
348
361
  execution: {
349
- organization: {
350
- id: string;
351
- name: string;
352
- slug: string;
353
- };
354
- queue: {
355
- id: string;
356
- name: string;
357
- };
358
362
  task: {
359
363
  id: string;
360
364
  filePath: string;
@@ -370,10 +374,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
370
374
  };
371
375
  run: {
372
376
  id: string;
373
- createdAt: Date;
374
377
  payload: string;
375
378
  payloadType: string;
376
379
  tags: string[];
380
+ createdAt: Date;
377
381
  context?: any;
378
382
  isTest?: boolean | undefined;
379
383
  startedAt?: Date | undefined;
@@ -383,15 +387,26 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
383
387
  costInCents?: number | undefined;
384
388
  baseCostInCents?: number | undefined;
385
389
  version?: string | undefined;
390
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
391
+ maxDuration?: number | undefined;
392
+ };
393
+ queue: {
394
+ name: string;
395
+ id: string;
386
396
  };
387
397
  environment: {
388
398
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
389
399
  id: string;
390
400
  slug: string;
391
401
  };
392
- project: {
402
+ organization: {
403
+ name: string;
393
404
  id: string;
405
+ slug: string;
406
+ };
407
+ project: {
394
408
  name: string;
409
+ id: string;
395
410
  slug: string;
396
411
  ref: string;
397
412
  };
@@ -399,40 +414,16 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
399
414
  id: string;
400
415
  } | undefined;
401
416
  machine?: {
402
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
403
417
  cpu: number;
404
418
  memory: number;
419
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
405
420
  centsPerMs: number;
406
421
  } | undefined;
407
422
  };
408
- traceContext: Record<string, unknown>;
409
423
  environment?: Record<string, string> | undefined;
410
424
  }>;
411
425
  export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
412
426
  export declare const ProdTaskRunExecution: z.ZodObject<{
413
- organization: z.ZodObject<{
414
- id: z.ZodString;
415
- slug: z.ZodString;
416
- name: z.ZodString;
417
- }, "strip", z.ZodTypeAny, {
418
- id: string;
419
- name: string;
420
- slug: string;
421
- }, {
422
- id: string;
423
- name: string;
424
- slug: string;
425
- }>;
426
- queue: z.ZodObject<{
427
- id: z.ZodString;
428
- name: z.ZodString;
429
- }, "strip", z.ZodTypeAny, {
430
- id: string;
431
- name: string;
432
- }, {
433
- id: string;
434
- name: string;
435
- }>;
436
427
  task: z.ZodObject<{
437
428
  id: z.ZodString;
438
429
  filePath: z.ZodString;
@@ -483,27 +474,31 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
483
474
  costInCents: z.ZodDefault<z.ZodNumber>;
484
475
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
485
476
  version: z.ZodOptional<z.ZodString>;
477
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
478
+ maxDuration: z.ZodOptional<z.ZodNumber>;
486
479
  }, "strip", z.ZodTypeAny, {
487
480
  id: string;
488
- createdAt: Date;
489
481
  payload: string;
490
482
  payloadType: string;
491
483
  tags: string[];
492
484
  isTest: boolean;
485
+ createdAt: Date;
493
486
  startedAt: Date;
487
+ durationMs: number;
494
488
  costInCents: number;
495
489
  baseCostInCents: number;
496
- durationMs: number;
497
490
  context?: any;
498
491
  idempotencyKey?: string | undefined;
499
492
  maxAttempts?: number | undefined;
500
493
  version?: string | undefined;
494
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
495
+ maxDuration?: number | undefined;
501
496
  }, {
502
497
  id: string;
503
- createdAt: Date;
504
498
  payload: string;
505
499
  payloadType: string;
506
500
  tags: string[];
501
+ createdAt: Date;
507
502
  context?: any;
508
503
  isTest?: boolean | undefined;
509
504
  startedAt?: Date | undefined;
@@ -513,6 +508,18 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
513
508
  costInCents?: number | undefined;
514
509
  baseCostInCents?: number | undefined;
515
510
  version?: string | undefined;
511
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
512
+ maxDuration?: number | undefined;
513
+ }>;
514
+ queue: z.ZodObject<{
515
+ id: z.ZodString;
516
+ name: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ name: string;
519
+ id: string;
520
+ }, {
521
+ name: string;
522
+ id: string;
516
523
  }>;
517
524
  environment: z.ZodObject<{
518
525
  id: z.ZodString;
@@ -527,19 +534,32 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
527
534
  id: string;
528
535
  slug: string;
529
536
  }>;
537
+ organization: z.ZodObject<{
538
+ id: z.ZodString;
539
+ slug: z.ZodString;
540
+ name: z.ZodString;
541
+ }, "strip", z.ZodTypeAny, {
542
+ name: string;
543
+ id: string;
544
+ slug: string;
545
+ }, {
546
+ name: string;
547
+ id: string;
548
+ slug: string;
549
+ }>;
530
550
  project: z.ZodObject<{
531
551
  id: z.ZodString;
532
552
  ref: z.ZodString;
533
553
  slug: z.ZodString;
534
554
  name: z.ZodString;
535
555
  }, "strip", z.ZodTypeAny, {
536
- id: string;
537
556
  name: string;
557
+ id: string;
538
558
  slug: string;
539
559
  ref: string;
540
560
  }, {
541
- id: string;
542
561
  name: string;
562
+ id: string;
543
563
  slug: string;
544
564
  ref: string;
545
565
  }>;
@@ -556,12 +576,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
556
576
  version: z.ZodString;
557
577
  }, "strip", z.ZodTypeAny, {
558
578
  id: string;
559
- contentHash: string;
560
579
  version: string;
580
+ contentHash: string;
561
581
  }, {
562
582
  id: string;
563
- contentHash: string;
564
583
  version: string;
584
+ contentHash: string;
565
585
  }>;
566
586
  machine: z.ZodDefault<z.ZodObject<{
567
587
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
@@ -569,37 +589,17 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
569
589
  memory: z.ZodNumber;
570
590
  centsPerMs: z.ZodNumber;
571
591
  }, "strip", z.ZodTypeAny, {
572
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
573
592
  cpu: number;
574
593
  memory: number;
594
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
575
595
  centsPerMs: number;
576
596
  }, {
577
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
578
597
  cpu: number;
579
598
  memory: number;
599
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
580
600
  centsPerMs: number;
581
601
  }>>;
582
602
  }, "strip", z.ZodTypeAny, {
583
- organization: {
584
- id: string;
585
- name: string;
586
- slug: string;
587
- };
588
- queue: {
589
- id: string;
590
- name: string;
591
- };
592
- machine: {
593
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
594
- cpu: number;
595
- memory: number;
596
- centsPerMs: number;
597
- };
598
- worker: {
599
- id: string;
600
- contentHash: string;
601
- version: string;
602
- };
603
603
  task: {
604
604
  id: string;
605
605
  filePath: string;
@@ -615,49 +615,57 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
615
615
  };
616
616
  run: {
617
617
  id: string;
618
- createdAt: Date;
619
618
  payload: string;
620
619
  payloadType: string;
621
620
  tags: string[];
622
621
  isTest: boolean;
622
+ createdAt: Date;
623
623
  startedAt: Date;
624
+ durationMs: number;
624
625
  costInCents: number;
625
626
  baseCostInCents: number;
626
- durationMs: number;
627
627
  context?: any;
628
628
  idempotencyKey?: string | undefined;
629
629
  maxAttempts?: number | undefined;
630
630
  version?: string | undefined;
631
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
632
+ maxDuration?: number | undefined;
633
+ };
634
+ queue: {
635
+ name: string;
636
+ id: string;
631
637
  };
632
638
  environment: {
633
639
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
634
640
  id: string;
635
641
  slug: string;
636
642
  };
637
- project: {
638
- id: string;
643
+ organization: {
639
644
  name: string;
645
+ id: string;
640
646
  slug: string;
641
- ref: string;
642
647
  };
643
- batch?: {
644
- id: string;
645
- } | undefined;
646
- }, {
647
- organization: {
648
- id: string;
648
+ project: {
649
649
  name: string;
650
+ id: string;
650
651
  slug: string;
652
+ ref: string;
651
653
  };
652
- queue: {
653
- id: string;
654
- name: string;
654
+ machine: {
655
+ cpu: number;
656
+ memory: number;
657
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
658
+ centsPerMs: number;
655
659
  };
656
660
  worker: {
657
661
  id: string;
658
- contentHash: string;
659
662
  version: string;
663
+ contentHash: string;
660
664
  };
665
+ batch?: {
666
+ id: string;
667
+ } | undefined;
668
+ }, {
661
669
  task: {
662
670
  id: string;
663
671
  filePath: string;
@@ -673,10 +681,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
673
681
  };
674
682
  run: {
675
683
  id: string;
676
- createdAt: Date;
677
684
  payload: string;
678
685
  payloadType: string;
679
686
  tags: string[];
687
+ createdAt: Date;
680
688
  context?: any;
681
689
  isTest?: boolean | undefined;
682
690
  startedAt?: Date | undefined;
@@ -686,54 +694,47 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
686
694
  costInCents?: number | undefined;
687
695
  baseCostInCents?: number | undefined;
688
696
  version?: string | undefined;
697
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
698
+ maxDuration?: number | undefined;
699
+ };
700
+ queue: {
701
+ name: string;
702
+ id: string;
689
703
  };
690
704
  environment: {
691
705
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
692
706
  id: string;
693
707
  slug: string;
694
708
  };
695
- project: {
709
+ organization: {
710
+ name: string;
696
711
  id: string;
712
+ slug: string;
713
+ };
714
+ project: {
697
715
  name: string;
716
+ id: string;
698
717
  slug: string;
699
718
  ref: string;
700
719
  };
720
+ worker: {
721
+ id: string;
722
+ version: string;
723
+ contentHash: string;
724
+ };
701
725
  batch?: {
702
726
  id: string;
703
727
  } | undefined;
704
728
  machine?: {
705
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
706
729
  cpu: number;
707
730
  memory: number;
731
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
708
732
  centsPerMs: number;
709
733
  } | undefined;
710
734
  }>;
711
735
  export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
712
736
  export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
713
737
  execution: z.ZodObject<{
714
- organization: z.ZodObject<{
715
- id: z.ZodString;
716
- slug: z.ZodString;
717
- name: z.ZodString;
718
- }, "strip", z.ZodTypeAny, {
719
- id: string;
720
- name: string;
721
- slug: string;
722
- }, {
723
- id: string;
724
- name: string;
725
- slug: string;
726
- }>;
727
- queue: z.ZodObject<{
728
- id: z.ZodString;
729
- name: z.ZodString;
730
- }, "strip", z.ZodTypeAny, {
731
- id: string;
732
- name: string;
733
- }, {
734
- id: string;
735
- name: string;
736
- }>;
737
738
  task: z.ZodObject<{
738
739
  id: z.ZodString;
739
740
  filePath: z.ZodString;
@@ -784,27 +785,31 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
784
785
  costInCents: z.ZodDefault<z.ZodNumber>;
785
786
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
786
787
  version: z.ZodOptional<z.ZodString>;
788
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
789
+ maxDuration: z.ZodOptional<z.ZodNumber>;
787
790
  }, "strip", z.ZodTypeAny, {
788
791
  id: string;
789
- createdAt: Date;
790
792
  payload: string;
791
793
  payloadType: string;
792
794
  tags: string[];
793
795
  isTest: boolean;
796
+ createdAt: Date;
794
797
  startedAt: Date;
798
+ durationMs: number;
795
799
  costInCents: number;
796
800
  baseCostInCents: number;
797
- durationMs: number;
798
801
  context?: any;
799
802
  idempotencyKey?: string | undefined;
800
803
  maxAttempts?: number | undefined;
801
804
  version?: string | undefined;
805
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
806
+ maxDuration?: number | undefined;
802
807
  }, {
803
808
  id: string;
804
- createdAt: Date;
805
809
  payload: string;
806
810
  payloadType: string;
807
811
  tags: string[];
812
+ createdAt: Date;
808
813
  context?: any;
809
814
  isTest?: boolean | undefined;
810
815
  startedAt?: Date | undefined;
@@ -814,6 +819,18 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
814
819
  costInCents?: number | undefined;
815
820
  baseCostInCents?: number | undefined;
816
821
  version?: string | undefined;
822
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
823
+ maxDuration?: number | undefined;
824
+ }>;
825
+ queue: z.ZodObject<{
826
+ id: z.ZodString;
827
+ name: z.ZodString;
828
+ }, "strip", z.ZodTypeAny, {
829
+ name: string;
830
+ id: string;
831
+ }, {
832
+ name: string;
833
+ id: string;
817
834
  }>;
818
835
  environment: z.ZodObject<{
819
836
  id: z.ZodString;
@@ -828,19 +845,32 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
828
845
  id: string;
829
846
  slug: string;
830
847
  }>;
848
+ organization: z.ZodObject<{
849
+ id: z.ZodString;
850
+ slug: z.ZodString;
851
+ name: z.ZodString;
852
+ }, "strip", z.ZodTypeAny, {
853
+ name: string;
854
+ id: string;
855
+ slug: string;
856
+ }, {
857
+ name: string;
858
+ id: string;
859
+ slug: string;
860
+ }>;
831
861
  project: z.ZodObject<{
832
862
  id: z.ZodString;
833
863
  ref: z.ZodString;
834
864
  slug: z.ZodString;
835
865
  name: z.ZodString;
836
866
  }, "strip", z.ZodTypeAny, {
837
- id: string;
838
867
  name: string;
868
+ id: string;
839
869
  slug: string;
840
870
  ref: string;
841
871
  }, {
842
- id: string;
843
872
  name: string;
873
+ id: string;
844
874
  slug: string;
845
875
  ref: string;
846
876
  }>;
@@ -857,12 +887,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
857
887
  version: z.ZodString;
858
888
  }, "strip", z.ZodTypeAny, {
859
889
  id: string;
860
- contentHash: string;
861
890
  version: string;
891
+ contentHash: string;
862
892
  }, {
863
893
  id: string;
864
- contentHash: string;
865
894
  version: string;
895
+ contentHash: string;
866
896
  }>;
867
897
  machine: z.ZodDefault<z.ZodObject<{
868
898
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
@@ -870,37 +900,17 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
870
900
  memory: z.ZodNumber;
871
901
  centsPerMs: z.ZodNumber;
872
902
  }, "strip", z.ZodTypeAny, {
873
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
874
903
  cpu: number;
875
904
  memory: number;
905
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
876
906
  centsPerMs: number;
877
907
  }, {
878
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
879
908
  cpu: number;
880
909
  memory: number;
910
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
881
911
  centsPerMs: number;
882
912
  }>>;
883
913
  }, "strip", z.ZodTypeAny, {
884
- organization: {
885
- id: string;
886
- name: string;
887
- slug: string;
888
- };
889
- queue: {
890
- id: string;
891
- name: string;
892
- };
893
- machine: {
894
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
895
- cpu: number;
896
- memory: number;
897
- centsPerMs: number;
898
- };
899
- worker: {
900
- id: string;
901
- contentHash: string;
902
- version: string;
903
- };
904
914
  task: {
905
915
  id: string;
906
916
  filePath: string;
@@ -916,49 +926,57 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
916
926
  };
917
927
  run: {
918
928
  id: string;
919
- createdAt: Date;
920
929
  payload: string;
921
930
  payloadType: string;
922
931
  tags: string[];
923
932
  isTest: boolean;
933
+ createdAt: Date;
924
934
  startedAt: Date;
935
+ durationMs: number;
925
936
  costInCents: number;
926
937
  baseCostInCents: number;
927
- durationMs: number;
928
938
  context?: any;
929
939
  idempotencyKey?: string | undefined;
930
940
  maxAttempts?: number | undefined;
931
941
  version?: string | undefined;
942
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
943
+ maxDuration?: number | undefined;
944
+ };
945
+ queue: {
946
+ name: string;
947
+ id: string;
932
948
  };
933
949
  environment: {
934
950
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
935
951
  id: string;
936
952
  slug: string;
937
953
  };
938
- project: {
939
- id: string;
954
+ organization: {
940
955
  name: string;
956
+ id: string;
941
957
  slug: string;
942
- ref: string;
943
958
  };
944
- batch?: {
945
- id: string;
946
- } | undefined;
947
- }, {
948
- organization: {
949
- id: string;
959
+ project: {
950
960
  name: string;
961
+ id: string;
951
962
  slug: string;
963
+ ref: string;
952
964
  };
953
- queue: {
954
- id: string;
955
- name: string;
965
+ machine: {
966
+ cpu: number;
967
+ memory: number;
968
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
969
+ centsPerMs: number;
956
970
  };
957
971
  worker: {
958
972
  id: string;
959
- contentHash: string;
960
973
  version: string;
974
+ contentHash: string;
961
975
  };
976
+ batch?: {
977
+ id: string;
978
+ } | undefined;
979
+ }, {
962
980
  task: {
963
981
  id: string;
964
982
  filePath: string;
@@ -974,10 +992,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
974
992
  };
975
993
  run: {
976
994
  id: string;
977
- createdAt: Date;
978
995
  payload: string;
979
996
  payloadType: string;
980
997
  tags: string[];
998
+ createdAt: Date;
981
999
  context?: any;
982
1000
  isTest?: boolean | undefined;
983
1001
  startedAt?: Date | undefined;
@@ -987,52 +1005,49 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
987
1005
  costInCents?: number | undefined;
988
1006
  baseCostInCents?: number | undefined;
989
1007
  version?: string | undefined;
1008
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1009
+ maxDuration?: number | undefined;
1010
+ };
1011
+ queue: {
1012
+ name: string;
1013
+ id: string;
990
1014
  };
991
1015
  environment: {
992
1016
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
993
1017
  id: string;
994
1018
  slug: string;
995
1019
  };
996
- project: {
1020
+ organization: {
1021
+ name: string;
997
1022
  id: string;
1023
+ slug: string;
1024
+ };
1025
+ project: {
998
1026
  name: string;
1027
+ id: string;
999
1028
  slug: string;
1000
1029
  ref: string;
1001
1030
  };
1031
+ worker: {
1032
+ id: string;
1033
+ version: string;
1034
+ contentHash: string;
1035
+ };
1002
1036
  batch?: {
1003
1037
  id: string;
1004
1038
  } | undefined;
1005
1039
  machine?: {
1006
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1007
1040
  cpu: number;
1008
1041
  memory: number;
1042
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1009
1043
  centsPerMs: number;
1010
1044
  } | undefined;
1011
1045
  }>;
1012
1046
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1013
1047
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1014
1048
  }, "strip", z.ZodTypeAny, {
1049
+ traceContext: Record<string, unknown>;
1015
1050
  execution: {
1016
- organization: {
1017
- id: string;
1018
- name: string;
1019
- slug: string;
1020
- };
1021
- queue: {
1022
- id: string;
1023
- name: string;
1024
- };
1025
- machine: {
1026
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1027
- cpu: number;
1028
- memory: number;
1029
- centsPerMs: number;
1030
- };
1031
- worker: {
1032
- id: string;
1033
- contentHash: string;
1034
- version: string;
1035
- };
1036
1051
  task: {
1037
1052
  id: string;
1038
1053
  filePath: string;
@@ -1048,53 +1063,61 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1048
1063
  };
1049
1064
  run: {
1050
1065
  id: string;
1051
- createdAt: Date;
1052
1066
  payload: string;
1053
1067
  payloadType: string;
1054
1068
  tags: string[];
1055
1069
  isTest: boolean;
1070
+ createdAt: Date;
1056
1071
  startedAt: Date;
1072
+ durationMs: number;
1057
1073
  costInCents: number;
1058
1074
  baseCostInCents: number;
1059
- durationMs: number;
1060
1075
  context?: any;
1061
1076
  idempotencyKey?: string | undefined;
1062
1077
  maxAttempts?: number | undefined;
1063
1078
  version?: string | undefined;
1079
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1080
+ maxDuration?: number | undefined;
1081
+ };
1082
+ queue: {
1083
+ name: string;
1084
+ id: string;
1064
1085
  };
1065
1086
  environment: {
1066
1087
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1067
1088
  id: string;
1068
1089
  slug: string;
1069
1090
  };
1070
- project: {
1091
+ organization: {
1092
+ name: string;
1071
1093
  id: string;
1094
+ slug: string;
1095
+ };
1096
+ project: {
1072
1097
  name: string;
1098
+ id: string;
1073
1099
  slug: string;
1074
1100
  ref: string;
1075
1101
  };
1102
+ machine: {
1103
+ cpu: number;
1104
+ memory: number;
1105
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1106
+ centsPerMs: number;
1107
+ };
1108
+ worker: {
1109
+ id: string;
1110
+ version: string;
1111
+ contentHash: string;
1112
+ };
1076
1113
  batch?: {
1077
1114
  id: string;
1078
1115
  } | undefined;
1079
1116
  };
1080
- traceContext: Record<string, unknown>;
1081
1117
  environment?: Record<string, string> | undefined;
1082
1118
  }, {
1119
+ traceContext: Record<string, unknown>;
1083
1120
  execution: {
1084
- organization: {
1085
- id: string;
1086
- name: string;
1087
- slug: string;
1088
- };
1089
- queue: {
1090
- id: string;
1091
- name: string;
1092
- };
1093
- worker: {
1094
- id: string;
1095
- contentHash: string;
1096
- version: string;
1097
- };
1098
1121
  task: {
1099
1122
  id: string;
1100
1123
  filePath: string;
@@ -1110,10 +1133,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1110
1133
  };
1111
1134
  run: {
1112
1135
  id: string;
1113
- createdAt: Date;
1114
1136
  payload: string;
1115
1137
  payloadType: string;
1116
1138
  tags: string[];
1139
+ createdAt: Date;
1117
1140
  context?: any;
1118
1141
  isTest?: boolean | undefined;
1119
1142
  startedAt?: Date | undefined;
@@ -1123,29 +1146,44 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1123
1146
  costInCents?: number | undefined;
1124
1147
  baseCostInCents?: number | undefined;
1125
1148
  version?: string | undefined;
1149
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
1150
+ maxDuration?: number | undefined;
1151
+ };
1152
+ queue: {
1153
+ name: string;
1154
+ id: string;
1126
1155
  };
1127
1156
  environment: {
1128
1157
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1129
1158
  id: string;
1130
1159
  slug: string;
1131
1160
  };
1132
- project: {
1161
+ organization: {
1162
+ name: string;
1133
1163
  id: string;
1164
+ slug: string;
1165
+ };
1166
+ project: {
1134
1167
  name: string;
1168
+ id: string;
1135
1169
  slug: string;
1136
1170
  ref: string;
1137
1171
  };
1172
+ worker: {
1173
+ id: string;
1174
+ version: string;
1175
+ contentHash: string;
1176
+ };
1138
1177
  batch?: {
1139
1178
  id: string;
1140
1179
  } | undefined;
1141
1180
  machine?: {
1142
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1143
1181
  cpu: number;
1144
1182
  memory: number;
1183
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1145
1184
  centsPerMs: number;
1146
1185
  } | undefined;
1147
1186
  };
1148
- traceContext: Record<string, unknown>;
1149
1187
  environment?: Record<string, string> | undefined;
1150
1188
  }>;
1151
1189
  export type ProdTaskRunExecutionPayload = z.infer<typeof ProdTaskRunExecutionPayload>;
@@ -1888,12 +1926,12 @@ export declare const TaskMetadata: z.ZodObject<{
1888
1926
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
1889
1927
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
1890
1928
  }, "strip", z.ZodTypeAny, {
1891
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1892
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1929
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1930
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1893
1931
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1894
1932
  }, {
1895
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1896
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1933
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1934
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1897
1935
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1898
1936
  }>>;
1899
1937
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -1907,6 +1945,7 @@ export declare const TaskMetadata: z.ZodObject<{
1907
1945
  cron: string;
1908
1946
  timezone: string;
1909
1947
  }>>;
1948
+ maxDuration: z.ZodOptional<z.ZodNumber>;
1910
1949
  }, "strip", z.ZodTypeAny, {
1911
1950
  id: string;
1912
1951
  queue?: {
@@ -1954,8 +1993,8 @@ export declare const TaskMetadata: z.ZodObject<{
1954
1993
  randomize?: boolean | undefined;
1955
1994
  } | undefined;
1956
1995
  machine?: {
1957
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
1958
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
1996
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
1997
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
1959
1998
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
1960
1999
  } | undefined;
1961
2000
  triggerSource?: string | undefined;
@@ -1963,6 +2002,7 @@ export declare const TaskMetadata: z.ZodObject<{
1963
2002
  cron: string;
1964
2003
  timezone: string;
1965
2004
  } | undefined;
2005
+ maxDuration?: number | undefined;
1966
2006
  }, {
1967
2007
  id: string;
1968
2008
  queue?: {
@@ -2010,8 +2050,8 @@ export declare const TaskMetadata: z.ZodObject<{
2010
2050
  randomize?: boolean | undefined;
2011
2051
  } | undefined;
2012
2052
  machine?: {
2013
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2014
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2053
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2054
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2015
2055
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2016
2056
  } | undefined;
2017
2057
  triggerSource?: string | undefined;
@@ -2019,6 +2059,7 @@ export declare const TaskMetadata: z.ZodObject<{
2019
2059
  cron: string;
2020
2060
  timezone: string;
2021
2061
  } | undefined;
2062
+ maxDuration?: number | undefined;
2022
2063
  }>;
2023
2064
  export type TaskMetadata = z.infer<typeof TaskMetadata>;
2024
2065
  export declare const TaskFile: z.ZodObject<{
@@ -2306,12 +2347,12 @@ export declare const TaskManifest: z.ZodObject<{
2306
2347
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
2307
2348
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
2308
2349
  }, "strip", z.ZodTypeAny, {
2309
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2310
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2350
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2351
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2311
2352
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2312
2353
  }, {
2313
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2314
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2354
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2355
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2315
2356
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2316
2357
  }>>;
2317
2358
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -2325,6 +2366,7 @@ export declare const TaskManifest: z.ZodObject<{
2325
2366
  cron: string;
2326
2367
  timezone: string;
2327
2368
  }>>;
2369
+ maxDuration: z.ZodOptional<z.ZodNumber>;
2328
2370
  }, "strip", z.ZodTypeAny, {
2329
2371
  id: string;
2330
2372
  filePath: string;
@@ -2375,8 +2417,8 @@ export declare const TaskManifest: z.ZodObject<{
2375
2417
  randomize?: boolean | undefined;
2376
2418
  } | undefined;
2377
2419
  machine?: {
2378
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2379
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2420
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2421
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2380
2422
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2381
2423
  } | undefined;
2382
2424
  triggerSource?: string | undefined;
@@ -2384,6 +2426,7 @@ export declare const TaskManifest: z.ZodObject<{
2384
2426
  cron: string;
2385
2427
  timezone: string;
2386
2428
  } | undefined;
2429
+ maxDuration?: number | undefined;
2387
2430
  }, {
2388
2431
  id: string;
2389
2432
  filePath: string;
@@ -2434,8 +2477,8 @@ export declare const TaskManifest: z.ZodObject<{
2434
2477
  randomize?: boolean | undefined;
2435
2478
  } | undefined;
2436
2479
  machine?: {
2437
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
2438
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
2480
+ cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
2481
+ memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
2439
2482
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
2440
2483
  } | undefined;
2441
2484
  triggerSource?: string | undefined;
@@ -2443,6 +2486,7 @@ export declare const TaskManifest: z.ZodObject<{
2443
2486
  cron: string;
2444
2487
  timezone: string;
2445
2488
  } | undefined;
2489
+ maxDuration?: number | undefined;
2446
2490
  }>;
2447
2491
  export type TaskManifest = z.infer<typeof TaskManifest>;
2448
2492
  export declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
@@ -2573,16 +2617,16 @@ export declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
2573
2617
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2574
2618
  }, "strip", z.ZodTypeAny, {
2575
2619
  isTest: boolean;
2576
- traceContext: Record<string, unknown>;
2577
2620
  runId: string;
2578
2621
  messageId: string;
2622
+ traceContext: Record<string, unknown>;
2579
2623
  attemptCount?: number | undefined;
2580
2624
  environment?: Record<string, string> | undefined;
2581
2625
  }, {
2582
2626
  isTest: boolean;
2583
- traceContext: Record<string, unknown>;
2584
2627
  runId: string;
2585
2628
  messageId: string;
2629
+ traceContext: Record<string, unknown>;
2586
2630
  attemptCount?: number | undefined;
2587
2631
  environment?: Record<string, string> | undefined;
2588
2632
  }>;