@trigger.dev/core 4.0.0-v4-beta.25 → 4.0.0-v4-beta.27

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 (221) 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/core.js +0 -3
  5. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  6. package/dist/commonjs/v3/apiClient/index.d.ts +8 -8
  7. package/dist/commonjs/v3/config.d.ts +47 -35
  8. package/dist/commonjs/v3/index.d.ts +1 -0
  9. package/dist/commonjs/v3/index.js +1 -0
  10. package/dist/commonjs/v3/index.js.map +1 -1
  11. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
  12. package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
  13. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  14. package/dist/commonjs/v3/isomorphic/index.d.ts +1 -0
  15. package/dist/commonjs/v3/isomorphic/index.js +1 -0
  16. package/dist/commonjs/v3/isomorphic/index.js.map +1 -1
  17. package/dist/commonjs/v3/isomorphic/traceContext.d.ts +5 -0
  18. package/dist/commonjs/v3/isomorphic/traceContext.js +25 -0
  19. package/dist/commonjs/v3/isomorphic/traceContext.js.map +1 -0
  20. package/dist/commonjs/v3/otel/tracingSDK.d.ts +1 -14
  21. package/dist/commonjs/v3/otel/tracingSDK.js +92 -84
  22. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  23. package/dist/commonjs/v3/resource-catalog/catalog.d.ts +2 -1
  24. package/dist/commonjs/v3/resource-catalog/index.d.ts +2 -1
  25. package/dist/commonjs/v3/resource-catalog/index.js +3 -0
  26. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
  27. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +2 -1
  28. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +3 -0
  29. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  30. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +3 -1
  31. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +10 -2
  32. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  33. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +80 -61
  34. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +628 -489
  35. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +64 -45
  36. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +625 -486
  37. package/dist/commonjs/v3/runMetadata/manager.d.ts +1 -0
  38. package/dist/commonjs/v3/runMetadata/manager.js +72 -2
  39. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  40. package/dist/commonjs/v3/schemas/api.d.ts +233 -196
  41. package/dist/commonjs/v3/schemas/api.js +2 -0
  42. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  43. package/dist/commonjs/v3/schemas/build.d.ts +88 -76
  44. package/dist/commonjs/v3/schemas/checkpoints.d.ts +72 -72
  45. package/dist/commonjs/v3/schemas/common.d.ts +2351 -1038
  46. package/dist/commonjs/v3/schemas/common.js +102 -42
  47. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  48. package/dist/commonjs/v3/schemas/fetch.d.ts +12 -12
  49. package/dist/commonjs/v3/schemas/messages.d.ts +6692 -6167
  50. package/dist/commonjs/v3/schemas/messages.js +10 -10
  51. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  52. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +18 -18
  53. package/dist/commonjs/v3/schemas/resources.d.ts +44 -38
  54. package/dist/commonjs/v3/schemas/resources.js +2 -0
  55. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  56. package/dist/commonjs/v3/schemas/runEngine.d.ts +360 -221
  57. package/dist/commonjs/v3/schemas/schemas.d.ts +593 -533
  58. package/dist/commonjs/v3/schemas/schemas.js +15 -4
  59. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  60. package/dist/commonjs/v3/schemas/webhooks.d.ts +120 -120
  61. package/dist/commonjs/v3/taskContext/index.js +0 -2
  62. package/dist/commonjs/v3/taskContext/index.js.map +1 -1
  63. package/dist/commonjs/v3/taskContext/otelProcessors.d.ts +4 -5
  64. package/dist/commonjs/v3/taskContext/otelProcessors.js +4 -3
  65. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  66. package/dist/commonjs/v3/trace-context-api.d.ts +3 -0
  67. package/dist/commonjs/v3/trace-context-api.js +9 -0
  68. package/dist/commonjs/v3/trace-context-api.js.map +1 -0
  69. package/dist/commonjs/v3/traceContext/api.d.ts +19 -0
  70. package/dist/commonjs/v3/traceContext/api.js +59 -0
  71. package/dist/commonjs/v3/traceContext/api.js.map +1 -0
  72. package/dist/commonjs/v3/traceContext/manager.d.ts +14 -0
  73. package/dist/commonjs/v3/traceContext/manager.js +60 -0
  74. package/dist/commonjs/v3/traceContext/manager.js.map +1 -0
  75. package/dist/commonjs/v3/traceContext/types.d.ts +12 -0
  76. package/dist/commonjs/v3/traceContext/types.js +3 -0
  77. package/dist/commonjs/v3/traceContext/types.js.map +1 -0
  78. package/dist/commonjs/v3/tracer.d.ts +0 -1
  79. package/dist/commonjs/v3/tracer.js +0 -3
  80. package/dist/commonjs/v3/tracer.js.map +1 -1
  81. package/dist/commonjs/v3/types/index.d.ts +1 -0
  82. package/dist/commonjs/v3/types/index.js +1 -0
  83. package/dist/commonjs/v3/types/index.js.map +1 -1
  84. package/dist/commonjs/v3/types/jsonSchema.d.ts +51 -0
  85. package/dist/commonjs/v3/types/jsonSchema.js +3 -0
  86. package/dist/commonjs/v3/types/jsonSchema.js.map +1 -0
  87. package/dist/commonjs/v3/types/tasks.d.ts +24 -0
  88. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  89. package/dist/commonjs/v3/usage/api.d.ts +2 -1
  90. package/dist/commonjs/v3/usage/api.js +3 -0
  91. package/dist/commonjs/v3/usage/api.js.map +1 -1
  92. package/dist/commonjs/v3/usage/devUsageManager.d.ts +4 -1
  93. package/dist/commonjs/v3/usage/devUsageManager.js +14 -0
  94. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
  95. package/dist/commonjs/v3/usage/noopUsageManager.d.ts +2 -1
  96. package/dist/commonjs/v3/usage/noopUsageManager.js +6 -0
  97. package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
  98. package/dist/commonjs/v3/usage/prodUsageManager.d.ts +4 -1
  99. package/dist/commonjs/v3/usage/prodUsageManager.js +14 -0
  100. package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
  101. package/dist/commonjs/v3/usage/types.d.ts +5 -0
  102. package/dist/commonjs/v3/utils/globals.d.ts +2 -0
  103. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  104. package/dist/commonjs/v3/workers/index.d.ts +1 -0
  105. package/dist/commonjs/v3/workers/index.js +3 -1
  106. package/dist/commonjs/v3/workers/index.js.map +1 -1
  107. package/dist/commonjs/v3/workers/taskExecutor.d.ts +2 -2
  108. package/dist/commonjs/v3/workers/taskExecutor.js +3 -15
  109. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  110. package/dist/commonjs/version.js +1 -1
  111. package/dist/esm/logger.d.ts +1 -0
  112. package/dist/esm/logger.js +5 -0
  113. package/dist/esm/logger.js.map +1 -1
  114. package/dist/esm/v3/apiClient/core.js +0 -3
  115. package/dist/esm/v3/apiClient/core.js.map +1 -1
  116. package/dist/esm/v3/apiClient/index.d.ts +8 -8
  117. package/dist/esm/v3/config.d.ts +47 -35
  118. package/dist/esm/v3/index.d.ts +1 -0
  119. package/dist/esm/v3/index.js +1 -0
  120. package/dist/esm/v3/index.js.map +1 -1
  121. package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
  122. package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
  123. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  124. package/dist/esm/v3/isomorphic/index.d.ts +1 -0
  125. package/dist/esm/v3/isomorphic/index.js +1 -0
  126. package/dist/esm/v3/isomorphic/index.js.map +1 -1
  127. package/dist/esm/v3/isomorphic/traceContext.d.ts +5 -0
  128. package/dist/esm/v3/isomorphic/traceContext.js +21 -0
  129. package/dist/esm/v3/isomorphic/traceContext.js.map +1 -0
  130. package/dist/esm/v3/otel/tracingSDK.d.ts +1 -14
  131. package/dist/esm/v3/otel/tracingSDK.js +93 -85
  132. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  133. package/dist/esm/v3/resource-catalog/catalog.d.ts +2 -1
  134. package/dist/esm/v3/resource-catalog/index.d.ts +2 -1
  135. package/dist/esm/v3/resource-catalog/index.js +3 -0
  136. package/dist/esm/v3/resource-catalog/index.js.map +1 -1
  137. package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +2 -1
  138. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +3 -0
  139. package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  140. package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +3 -1
  141. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +10 -2
  142. package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  143. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +80 -61
  144. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +628 -489
  145. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +64 -45
  146. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +625 -486
  147. package/dist/esm/v3/runMetadata/manager.d.ts +1 -0
  148. package/dist/esm/v3/runMetadata/manager.js +72 -2
  149. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  150. package/dist/esm/v3/schemas/api.d.ts +233 -196
  151. package/dist/esm/v3/schemas/api.js +2 -0
  152. package/dist/esm/v3/schemas/api.js.map +1 -1
  153. package/dist/esm/v3/schemas/build.d.ts +88 -76
  154. package/dist/esm/v3/schemas/checkpoints.d.ts +72 -72
  155. package/dist/esm/v3/schemas/common.d.ts +2351 -1038
  156. package/dist/esm/v3/schemas/common.js +101 -41
  157. package/dist/esm/v3/schemas/common.js.map +1 -1
  158. package/dist/esm/v3/schemas/fetch.d.ts +12 -12
  159. package/dist/esm/v3/schemas/messages.d.ts +6692 -6167
  160. package/dist/esm/v3/schemas/messages.js +11 -11
  161. package/dist/esm/v3/schemas/messages.js.map +1 -1
  162. package/dist/esm/v3/schemas/openTelemetry.d.ts +18 -18
  163. package/dist/esm/v3/schemas/resources.d.ts +44 -38
  164. package/dist/esm/v3/schemas/resources.js +2 -0
  165. package/dist/esm/v3/schemas/resources.js.map +1 -1
  166. package/dist/esm/v3/schemas/runEngine.d.ts +360 -221
  167. package/dist/esm/v3/schemas/schemas.d.ts +593 -533
  168. package/dist/esm/v3/schemas/schemas.js +15 -4
  169. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  170. package/dist/esm/v3/schemas/webhooks.d.ts +120 -120
  171. package/dist/esm/v3/taskContext/index.js +0 -2
  172. package/dist/esm/v3/taskContext/index.js.map +1 -1
  173. package/dist/esm/v3/taskContext/otelProcessors.d.ts +4 -5
  174. package/dist/esm/v3/taskContext/otelProcessors.js +4 -3
  175. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  176. package/dist/esm/v3/trace-context-api.d.ts +3 -0
  177. package/dist/esm/v3/trace-context-api.js +6 -0
  178. package/dist/esm/v3/trace-context-api.js.map +1 -0
  179. package/dist/esm/v3/traceContext/api.d.ts +19 -0
  180. package/dist/esm/v3/traceContext/api.js +55 -0
  181. package/dist/esm/v3/traceContext/api.js.map +1 -0
  182. package/dist/esm/v3/traceContext/manager.d.ts +14 -0
  183. package/dist/esm/v3/traceContext/manager.js +56 -0
  184. package/dist/esm/v3/traceContext/manager.js.map +1 -0
  185. package/dist/esm/v3/traceContext/types.d.ts +12 -0
  186. package/dist/esm/v3/traceContext/types.js +2 -0
  187. package/dist/esm/v3/traceContext/types.js.map +1 -0
  188. package/dist/esm/v3/tracer.d.ts +0 -1
  189. package/dist/esm/v3/tracer.js +1 -4
  190. package/dist/esm/v3/tracer.js.map +1 -1
  191. package/dist/esm/v3/types/index.d.ts +1 -0
  192. package/dist/esm/v3/types/index.js +1 -0
  193. package/dist/esm/v3/types/index.js.map +1 -1
  194. package/dist/esm/v3/types/jsonSchema.d.ts +51 -0
  195. package/dist/esm/v3/types/jsonSchema.js +2 -0
  196. package/dist/esm/v3/types/jsonSchema.js.map +1 -0
  197. package/dist/esm/v3/types/tasks.d.ts +24 -0
  198. package/dist/esm/v3/types/tasks.js.map +1 -1
  199. package/dist/esm/v3/usage/api.d.ts +2 -1
  200. package/dist/esm/v3/usage/api.js +3 -0
  201. package/dist/esm/v3/usage/api.js.map +1 -1
  202. package/dist/esm/v3/usage/devUsageManager.d.ts +4 -1
  203. package/dist/esm/v3/usage/devUsageManager.js +14 -0
  204. package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
  205. package/dist/esm/v3/usage/noopUsageManager.d.ts +2 -1
  206. package/dist/esm/v3/usage/noopUsageManager.js +6 -0
  207. package/dist/esm/v3/usage/noopUsageManager.js.map +1 -1
  208. package/dist/esm/v3/usage/prodUsageManager.d.ts +4 -1
  209. package/dist/esm/v3/usage/prodUsageManager.js +14 -0
  210. package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
  211. package/dist/esm/v3/usage/types.d.ts +5 -0
  212. package/dist/esm/v3/utils/globals.d.ts +2 -0
  213. package/dist/esm/v3/utils/globals.js.map +1 -1
  214. package/dist/esm/v3/workers/index.d.ts +1 -0
  215. package/dist/esm/v3/workers/index.js +1 -0
  216. package/dist/esm/v3/workers/index.js.map +1 -1
  217. package/dist/esm/v3/workers/taskExecutor.d.ts +2 -2
  218. package/dist/esm/v3/workers/taskExecutor.js +5 -17
  219. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  220. package/dist/esm/version.js +1 -1
  221. package/package.json +12 -13
@@ -288,99 +288,13 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
288
288
  task: z.ZodObject<{
289
289
  id: z.ZodString;
290
290
  filePath: z.ZodString;
291
- exportName: z.ZodOptional<z.ZodString>;
292
- }, "strip", z.ZodTypeAny, {
293
- id: string;
294
- filePath: string;
295
- exportName?: string | undefined;
296
- }, {
297
- id: string;
298
- filePath: string;
299
- exportName?: string | undefined;
300
- }>;
301
- attempt: z.ZodObject<{
302
- number: z.ZodNumber;
303
- startedAt: z.ZodDate;
291
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
304
292
  id: z.ZodString;
305
- backgroundWorkerId: z.ZodString;
306
- backgroundWorkerTaskId: z.ZodString;
307
- status: z.ZodString;
308
- }, "strip", z.ZodTypeAny, {
309
- number: number;
310
- status: string;
311
- id: string;
312
- startedAt: Date;
313
- backgroundWorkerId: string;
314
- backgroundWorkerTaskId: string;
315
- }, {
316
- number: number;
317
- status: string;
318
- id: string;
319
- startedAt: Date;
320
- backgroundWorkerId: string;
321
- backgroundWorkerTaskId: string;
322
- }>;
323
- run: z.ZodIntersection<z.ZodObject<{
293
+ filePath: z.ZodString;
294
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
324
295
  id: z.ZodString;
325
- payload: z.ZodString;
326
- payloadType: z.ZodString;
327
- tags: z.ZodArray<z.ZodString, "many">;
328
- isTest: z.ZodDefault<z.ZodBoolean>;
329
- createdAt: z.ZodDate;
330
- startedAt: z.ZodDefault<z.ZodDate>;
331
- idempotencyKey: z.ZodOptional<z.ZodString>;
332
- maxAttempts: z.ZodOptional<z.ZodNumber>;
333
- version: z.ZodOptional<z.ZodString>;
334
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
335
- maxDuration: z.ZodOptional<z.ZodNumber>;
336
- context: z.ZodAny;
337
- durationMs: z.ZodDefault<z.ZodNumber>;
338
- costInCents: z.ZodDefault<z.ZodNumber>;
339
- baseCostInCents: z.ZodDefault<z.ZodNumber>;
340
- priority: z.ZodOptional<z.ZodNumber>;
341
- }, "strip", z.ZodTypeAny, {
342
- payload: string;
343
- id: string;
344
- payloadType: string;
345
- tags: string[];
346
- isTest: boolean;
347
- createdAt: Date;
348
- startedAt: Date;
349
- durationMs: number;
350
- costInCents: number;
351
- baseCostInCents: number;
352
- context?: any;
353
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
354
- idempotencyKey?: string | undefined;
355
- maxAttempts?: number | undefined;
356
- version?: string | undefined;
357
- maxDuration?: number | undefined;
358
- priority?: number | undefined;
359
- }, {
360
- payload: string;
361
- id: string;
362
- payloadType: string;
363
- tags: string[];
364
- createdAt: Date;
365
- context?: any;
366
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
367
- isTest?: boolean | undefined;
368
- startedAt?: Date | undefined;
369
- idempotencyKey?: string | undefined;
370
- maxAttempts?: number | undefined;
371
- version?: string | undefined;
372
- maxDuration?: number | undefined;
373
- durationMs?: number | undefined;
374
- costInCents?: number | undefined;
375
- baseCostInCents?: number | undefined;
376
- priority?: number | undefined;
377
- }>, z.ZodObject<{
378
- traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
- }, "strip", z.ZodTypeAny, {
380
- traceContext?: Record<string, unknown> | undefined;
381
- }, {
382
- traceContext?: Record<string, unknown> | undefined;
383
- }>>;
296
+ filePath: z.ZodString;
297
+ }, z.ZodTypeAny, "passthrough">>;
384
298
  queue: z.ZodObject<{
385
299
  id: z.ZodString;
386
300
  name: z.ZodString;
@@ -489,13 +403,6 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
489
403
  slug: string;
490
404
  ref: string;
491
405
  }>;
492
- batch: z.ZodOptional<z.ZodObject<{
493
- id: z.ZodString;
494
- }, "strip", z.ZodTypeAny, {
495
- id: string;
496
- }, {
497
- id: string;
498
- }>>;
499
406
  machine: z.ZodObject<{
500
407
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
501
408
  cpu: z.ZodNumber;
@@ -512,21 +419,116 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
512
419
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
513
420
  centsPerMs: number;
514
421
  }>;
515
- }, "strip", z.ZodTypeAny, {
516
- task: {
422
+ batch: z.ZodOptional<z.ZodObject<{
423
+ id: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
517
425
  id: string;
518
- filePath: string;
519
- exportName?: string | undefined;
520
- };
521
- attempt: {
522
- number: number;
523
- status: string;
426
+ }, {
524
427
  id: string;
525
- startedAt: Date;
526
- backgroundWorkerId: string;
527
- backgroundWorkerTaskId: string;
528
- };
529
- run: {
428
+ }>>;
429
+ deployment: z.ZodOptional<z.ZodObject<{
430
+ id: z.ZodString;
431
+ shortCode: z.ZodString;
432
+ version: z.ZodString;
433
+ runtime: z.ZodString;
434
+ runtimeVersion: z.ZodString;
435
+ git: z.ZodOptional<z.ZodObject<{
436
+ commitAuthorName: z.ZodOptional<z.ZodString>;
437
+ commitMessage: z.ZodOptional<z.ZodString>;
438
+ commitRef: z.ZodOptional<z.ZodString>;
439
+ commitSha: z.ZodOptional<z.ZodString>;
440
+ dirty: z.ZodOptional<z.ZodBoolean>;
441
+ remoteUrl: z.ZodOptional<z.ZodString>;
442
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
443
+ pullRequestTitle: z.ZodOptional<z.ZodString>;
444
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ dirty?: boolean | undefined;
447
+ commitAuthorName?: string | undefined;
448
+ commitMessage?: string | undefined;
449
+ commitRef?: string | undefined;
450
+ commitSha?: string | undefined;
451
+ remoteUrl?: string | undefined;
452
+ pullRequestNumber?: number | undefined;
453
+ pullRequestTitle?: string | undefined;
454
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
455
+ }, {
456
+ dirty?: boolean | undefined;
457
+ commitAuthorName?: string | undefined;
458
+ commitMessage?: string | undefined;
459
+ commitRef?: string | undefined;
460
+ commitSha?: string | undefined;
461
+ remoteUrl?: string | undefined;
462
+ pullRequestNumber?: number | undefined;
463
+ pullRequestTitle?: string | undefined;
464
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
465
+ }>>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ id: string;
468
+ version: string;
469
+ shortCode: string;
470
+ runtime: string;
471
+ runtimeVersion: string;
472
+ git?: {
473
+ dirty?: boolean | undefined;
474
+ commitAuthorName?: string | undefined;
475
+ commitMessage?: string | undefined;
476
+ commitRef?: string | undefined;
477
+ commitSha?: string | undefined;
478
+ remoteUrl?: string | undefined;
479
+ pullRequestNumber?: number | undefined;
480
+ pullRequestTitle?: string | undefined;
481
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
482
+ } | undefined;
483
+ }, {
484
+ id: string;
485
+ version: string;
486
+ shortCode: string;
487
+ runtime: string;
488
+ runtimeVersion: string;
489
+ git?: {
490
+ dirty?: boolean | undefined;
491
+ commitAuthorName?: string | undefined;
492
+ commitMessage?: string | undefined;
493
+ commitRef?: string | undefined;
494
+ commitSha?: string | undefined;
495
+ remoteUrl?: string | undefined;
496
+ pullRequestNumber?: number | undefined;
497
+ pullRequestTitle?: string | undefined;
498
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
499
+ } | undefined;
500
+ }>>;
501
+ attempt: z.ZodObject<{
502
+ number: z.ZodNumber;
503
+ startedAt: z.ZodDate;
504
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
505
+ number: z.ZodNumber;
506
+ startedAt: z.ZodDate;
507
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
508
+ number: z.ZodNumber;
509
+ startedAt: z.ZodDate;
510
+ }, z.ZodTypeAny, "passthrough">>;
511
+ run: z.ZodIntersection<z.ZodObject<{
512
+ id: z.ZodString;
513
+ payload: z.ZodString;
514
+ payloadType: z.ZodString;
515
+ tags: z.ZodArray<z.ZodString, "many">;
516
+ isTest: z.ZodDefault<z.ZodBoolean>;
517
+ createdAt: z.ZodDate;
518
+ startedAt: z.ZodDefault<z.ZodDate>;
519
+ idempotencyKey: z.ZodOptional<z.ZodString>;
520
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
521
+ version: z.ZodOptional<z.ZodString>;
522
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
523
+ maxDuration: z.ZodOptional<z.ZodNumber>;
524
+ priority: z.ZodOptional<z.ZodNumber>;
525
+ baseCostInCents: z.ZodOptional<z.ZodNumber>;
526
+ parentTaskRunId: z.ZodOptional<z.ZodString>;
527
+ rootTaskRunId: z.ZodOptional<z.ZodString>;
528
+ durationMs: z.ZodOptional<z.ZodNumber>;
529
+ costInCents: z.ZodOptional<z.ZodNumber>;
530
+ region: z.ZodOptional<z.ZodString>;
531
+ }, "strip", z.ZodTypeAny, {
530
532
  payload: string;
531
533
  id: string;
532
534
  payloadType: string;
@@ -534,18 +536,51 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
534
536
  isTest: boolean;
535
537
  createdAt: Date;
536
538
  startedAt: Date;
537
- durationMs: number;
538
- costInCents: number;
539
- baseCostInCents: number;
540
- context?: any;
541
539
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
542
540
  idempotencyKey?: string | undefined;
543
541
  maxAttempts?: number | undefined;
544
542
  version?: string | undefined;
545
543
  maxDuration?: number | undefined;
546
544
  priority?: number | undefined;
547
- } & {
545
+ baseCostInCents?: number | undefined;
546
+ parentTaskRunId?: string | undefined;
547
+ rootTaskRunId?: string | undefined;
548
+ durationMs?: number | undefined;
549
+ costInCents?: number | undefined;
550
+ region?: string | undefined;
551
+ }, {
552
+ payload: string;
553
+ id: string;
554
+ payloadType: string;
555
+ tags: string[];
556
+ createdAt: Date;
557
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
558
+ isTest?: boolean | undefined;
559
+ startedAt?: Date | undefined;
560
+ idempotencyKey?: string | undefined;
561
+ maxAttempts?: number | undefined;
562
+ version?: string | undefined;
563
+ maxDuration?: number | undefined;
564
+ priority?: number | undefined;
565
+ baseCostInCents?: number | undefined;
566
+ parentTaskRunId?: string | undefined;
567
+ rootTaskRunId?: string | undefined;
568
+ durationMs?: number | undefined;
569
+ costInCents?: number | undefined;
570
+ region?: string | undefined;
571
+ }>, z.ZodObject<{
572
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ traceContext?: Record<string, unknown> | undefined;
575
+ }, {
548
576
  traceContext?: Record<string, unknown> | undefined;
577
+ }>>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ task: {
580
+ id: string;
581
+ filePath: string;
582
+ } & {
583
+ [k: string]: unknown;
549
584
  };
550
585
  queue: {
551
586
  name: string;
@@ -585,44 +620,63 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
585
620
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
586
621
  centsPerMs: number;
587
622
  };
588
- batch?: {
589
- id: string;
590
- } | undefined;
591
- }, {
592
- task: {
593
- id: string;
594
- filePath: string;
595
- exportName?: string | undefined;
596
- };
597
623
  attempt: {
598
624
  number: number;
599
- status: string;
600
- id: string;
601
625
  startedAt: Date;
602
- backgroundWorkerId: string;
603
- backgroundWorkerTaskId: string;
626
+ } & {
627
+ [k: string]: unknown;
604
628
  };
605
629
  run: {
606
630
  payload: string;
607
631
  id: string;
608
632
  payloadType: string;
609
633
  tags: string[];
634
+ isTest: boolean;
610
635
  createdAt: Date;
611
- context?: any;
636
+ startedAt: Date;
612
637
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
613
- isTest?: boolean | undefined;
614
- startedAt?: Date | undefined;
615
638
  idempotencyKey?: string | undefined;
616
639
  maxAttempts?: number | undefined;
617
640
  version?: string | undefined;
618
641
  maxDuration?: number | undefined;
642
+ priority?: number | undefined;
643
+ baseCostInCents?: number | undefined;
644
+ parentTaskRunId?: string | undefined;
645
+ rootTaskRunId?: string | undefined;
619
646
  durationMs?: number | undefined;
620
647
  costInCents?: number | undefined;
621
- baseCostInCents?: number | undefined;
622
- priority?: number | undefined;
648
+ region?: string | undefined;
623
649
  } & {
624
650
  traceContext?: Record<string, unknown> | undefined;
625
651
  };
652
+ batch?: {
653
+ id: string;
654
+ } | undefined;
655
+ deployment?: {
656
+ id: string;
657
+ version: string;
658
+ shortCode: string;
659
+ runtime: string;
660
+ runtimeVersion: string;
661
+ git?: {
662
+ dirty?: boolean | undefined;
663
+ commitAuthorName?: string | undefined;
664
+ commitMessage?: string | undefined;
665
+ commitRef?: string | undefined;
666
+ commitSha?: string | undefined;
667
+ remoteUrl?: string | undefined;
668
+ pullRequestNumber?: number | undefined;
669
+ pullRequestTitle?: string | undefined;
670
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
671
+ } | undefined;
672
+ } | undefined;
673
+ }, {
674
+ task: {
675
+ id: string;
676
+ filePath: string;
677
+ } & {
678
+ [k: string]: unknown;
679
+ };
626
680
  queue: {
627
681
  name: string;
628
682
  id: string;
@@ -661,46 +715,65 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
661
715
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
662
716
  centsPerMs: number;
663
717
  };
664
- batch?: {
665
- id: string;
666
- } | undefined;
667
- }>;
668
- }, "strip", z.ZodTypeAny, {
669
- execution: {
670
- task: {
671
- id: string;
672
- filePath: string;
673
- exportName?: string | undefined;
674
- };
675
718
  attempt: {
676
719
  number: number;
677
- status: string;
678
- id: string;
679
720
  startedAt: Date;
680
- backgroundWorkerId: string;
681
- backgroundWorkerTaskId: string;
721
+ } & {
722
+ [k: string]: unknown;
682
723
  };
683
724
  run: {
684
725
  payload: string;
685
726
  id: string;
686
727
  payloadType: string;
687
728
  tags: string[];
688
- isTest: boolean;
689
729
  createdAt: Date;
690
- startedAt: Date;
691
- durationMs: number;
692
- costInCents: number;
693
- baseCostInCents: number;
694
- context?: any;
695
730
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
731
+ isTest?: boolean | undefined;
732
+ startedAt?: Date | undefined;
696
733
  idempotencyKey?: string | undefined;
697
734
  maxAttempts?: number | undefined;
698
735
  version?: string | undefined;
699
736
  maxDuration?: number | undefined;
700
737
  priority?: number | undefined;
738
+ baseCostInCents?: number | undefined;
739
+ parentTaskRunId?: string | undefined;
740
+ rootTaskRunId?: string | undefined;
741
+ durationMs?: number | undefined;
742
+ costInCents?: number | undefined;
743
+ region?: string | undefined;
701
744
  } & {
702
745
  traceContext?: Record<string, unknown> | undefined;
703
746
  };
747
+ batch?: {
748
+ id: string;
749
+ } | undefined;
750
+ deployment?: {
751
+ id: string;
752
+ version: string;
753
+ shortCode: string;
754
+ runtime: string;
755
+ runtimeVersion: string;
756
+ git?: {
757
+ dirty?: boolean | undefined;
758
+ commitAuthorName?: string | undefined;
759
+ commitMessage?: string | undefined;
760
+ commitRef?: string | undefined;
761
+ commitSha?: string | undefined;
762
+ remoteUrl?: string | undefined;
763
+ pullRequestNumber?: number | undefined;
764
+ pullRequestTitle?: string | undefined;
765
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
766
+ } | undefined;
767
+ } | undefined;
768
+ }>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ execution: {
771
+ task: {
772
+ id: string;
773
+ filePath: string;
774
+ } & {
775
+ [k: string]: unknown;
776
+ };
704
777
  queue: {
705
778
  name: string;
706
779
  id: string;
@@ -739,46 +812,65 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
739
812
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
740
813
  centsPerMs: number;
741
814
  };
742
- batch?: {
743
- id: string;
744
- } | undefined;
745
- };
746
- }, {
747
- execution: {
748
- task: {
749
- id: string;
750
- filePath: string;
751
- exportName?: string | undefined;
752
- };
753
815
  attempt: {
754
816
  number: number;
755
- status: string;
756
- id: string;
757
817
  startedAt: Date;
758
- backgroundWorkerId: string;
759
- backgroundWorkerTaskId: string;
818
+ } & {
819
+ [k: string]: unknown;
760
820
  };
761
821
  run: {
762
822
  payload: string;
763
823
  id: string;
764
824
  payloadType: string;
765
825
  tags: string[];
826
+ isTest: boolean;
766
827
  createdAt: Date;
767
- context?: any;
828
+ startedAt: Date;
768
829
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
769
- isTest?: boolean | undefined;
770
- startedAt?: Date | undefined;
771
830
  idempotencyKey?: string | undefined;
772
831
  maxAttempts?: number | undefined;
773
832
  version?: string | undefined;
774
833
  maxDuration?: number | undefined;
834
+ priority?: number | undefined;
835
+ baseCostInCents?: number | undefined;
836
+ parentTaskRunId?: string | undefined;
837
+ rootTaskRunId?: string | undefined;
775
838
  durationMs?: number | undefined;
776
839
  costInCents?: number | undefined;
777
- baseCostInCents?: number | undefined;
778
- priority?: number | undefined;
840
+ region?: string | undefined;
779
841
  } & {
780
842
  traceContext?: Record<string, unknown> | undefined;
781
843
  };
844
+ batch?: {
845
+ id: string;
846
+ } | undefined;
847
+ deployment?: {
848
+ id: string;
849
+ version: string;
850
+ shortCode: string;
851
+ runtime: string;
852
+ runtimeVersion: string;
853
+ git?: {
854
+ dirty?: boolean | undefined;
855
+ commitAuthorName?: string | undefined;
856
+ commitMessage?: string | undefined;
857
+ commitRef?: string | undefined;
858
+ commitSha?: string | undefined;
859
+ remoteUrl?: string | undefined;
860
+ pullRequestNumber?: number | undefined;
861
+ pullRequestTitle?: string | undefined;
862
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
863
+ } | undefined;
864
+ } | undefined;
865
+ };
866
+ }, {
867
+ execution: {
868
+ task: {
869
+ id: string;
870
+ filePath: string;
871
+ } & {
872
+ [k: string]: unknown;
873
+ };
782
874
  queue: {
783
875
  name: string;
784
876
  id: string;
@@ -817,9 +909,56 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
817
909
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
818
910
  centsPerMs: number;
819
911
  };
912
+ attempt: {
913
+ number: number;
914
+ startedAt: Date;
915
+ } & {
916
+ [k: string]: unknown;
917
+ };
918
+ run: {
919
+ payload: string;
920
+ id: string;
921
+ payloadType: string;
922
+ tags: string[];
923
+ createdAt: Date;
924
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
925
+ isTest?: boolean | undefined;
926
+ startedAt?: Date | undefined;
927
+ idempotencyKey?: string | undefined;
928
+ maxAttempts?: number | undefined;
929
+ version?: string | undefined;
930
+ maxDuration?: number | undefined;
931
+ priority?: number | undefined;
932
+ baseCostInCents?: number | undefined;
933
+ parentTaskRunId?: string | undefined;
934
+ rootTaskRunId?: string | undefined;
935
+ durationMs?: number | undefined;
936
+ costInCents?: number | undefined;
937
+ region?: string | undefined;
938
+ } & {
939
+ traceContext?: Record<string, unknown> | undefined;
940
+ };
820
941
  batch?: {
821
942
  id: string;
822
943
  } | undefined;
944
+ deployment?: {
945
+ id: string;
946
+ version: string;
947
+ shortCode: string;
948
+ runtime: string;
949
+ runtimeVersion: string;
950
+ git?: {
951
+ dirty?: boolean | undefined;
952
+ commitAuthorName?: string | undefined;
953
+ commitMessage?: string | undefined;
954
+ commitRef?: string | undefined;
955
+ commitSha?: string | undefined;
956
+ remoteUrl?: string | undefined;
957
+ pullRequestNumber?: number | undefined;
958
+ pullRequestTitle?: string | undefined;
959
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
960
+ } | undefined;
961
+ } | undefined;
823
962
  };
824
963
  }>>;
825
964
  export type StartRunAttemptResult = z.infer<typeof StartRunAttemptResult>;
@@ -922,15 +1061,15 @@ export declare const CheckpointInput: z.ZodObject<{
922
1061
  reason?: string | null | undefined;
923
1062
  }>;
924
1063
  export type CheckpointInput = z.infer<typeof CheckpointInput>;
925
- export declare const TaskRunCheckpoint: z.ZodObject<z.objectUtil.extendShape<{
1064
+ export declare const TaskRunCheckpoint: z.ZodObject<{
926
1065
  type: z.ZodEnum<[CheckpointTypeEnum]>;
927
1066
  location: z.ZodString;
928
1067
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
1068
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
- }, {
1069
+ } & {
931
1070
  id: z.ZodString;
932
1071
  friendlyId: z.ZodString;
933
- }>, "strip", z.ZodTypeAny, {
1072
+ }, "strip", z.ZodTypeAny, {
934
1073
  type: CheckpointTypeEnum;
935
1074
  id: string;
936
1075
  friendlyId: string;
@@ -994,15 +1133,15 @@ export declare const RunExecutionData: z.ZodObject<{
994
1133
  id: string;
995
1134
  friendlyId: string;
996
1135
  }>>;
997
- checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
1136
+ checkpoint: z.ZodOptional<z.ZodObject<{
998
1137
  type: z.ZodEnum<[CheckpointTypeEnum]>;
999
1138
  location: z.ZodString;
1000
1139
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1001
1140
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1002
- }, {
1141
+ } & {
1003
1142
  id: z.ZodString;
1004
1143
  friendlyId: z.ZodString;
1005
- }>, "strip", z.ZodTypeAny, {
1144
+ }, "strip", z.ZodTypeAny, {
1006
1145
  type: CheckpointTypeEnum;
1007
1146
  id: string;
1008
1147
  friendlyId: string;
@@ -1221,17 +1360,17 @@ export declare const RunExecutionData: z.ZodObject<{
1221
1360
  } | undefined;
1222
1361
  }>;
1223
1362
  export type RunExecutionData = z.infer<typeof RunExecutionData>;
1224
- export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<z.objectUtil.extendShape<{
1363
+ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1225
1364
  ok: z.ZodLiteral<true>;
1226
- checkpoint: z.ZodObject<z.objectUtil.extendShape<{
1365
+ checkpoint: z.ZodObject<{
1227
1366
  type: z.ZodEnum<[CheckpointTypeEnum]>;
1228
1367
  location: z.ZodString;
1229
1368
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
1369
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
- }, {
1370
+ } & {
1232
1371
  id: z.ZodString;
1233
1372
  friendlyId: z.ZodString;
1234
- }>, "strip", z.ZodTypeAny, {
1373
+ }, "strip", z.ZodTypeAny, {
1235
1374
  type: CheckpointTypeEnum;
1236
1375
  id: string;
1237
1376
  friendlyId: string;
@@ -1246,7 +1385,7 @@ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1246
1385
  imageRef?: string | null | undefined;
1247
1386
  reason?: string | null | undefined;
1248
1387
  }>;
1249
- }, {
1388
+ } & {
1250
1389
  snapshot: z.ZodObject<{
1251
1390
  id: z.ZodString;
1252
1391
  friendlyId: z.ZodString;
@@ -1282,7 +1421,7 @@ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1282
1421
  friendlyId: string;
1283
1422
  attemptNumber?: number | null | undefined;
1284
1423
  }>;
1285
- }>, "strip", z.ZodTypeAny, {
1424
+ }, "strip", z.ZodTypeAny, {
1286
1425
  ok: true;
1287
1426
  run: {
1288
1427
  status: TaskRunStatus;
@@ -1565,26 +1704,26 @@ export declare const DequeuedMessage: z.ZodObject<{
1565
1704
  }, "strip", z.ZodTypeAny, {
1566
1705
  id: string;
1567
1706
  isTest: boolean;
1568
- traceContext: Record<string, unknown>;
1569
1707
  machine: {
1570
1708
  cpu: number;
1571
1709
  memory: number;
1572
1710
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1573
1711
  centsPerMs: number;
1574
1712
  };
1713
+ traceContext: Record<string, unknown>;
1575
1714
  friendlyId: string;
1576
1715
  attemptNumber: number;
1577
1716
  masterQueue: string;
1578
1717
  }, {
1579
1718
  id: string;
1580
1719
  isTest: boolean;
1581
- traceContext: Record<string, unknown>;
1582
1720
  machine: {
1583
1721
  cpu: number;
1584
1722
  memory: number;
1585
1723
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1586
1724
  centsPerMs: number;
1587
1725
  };
1726
+ traceContext: Record<string, unknown>;
1588
1727
  friendlyId: string;
1589
1728
  attemptNumber: number;
1590
1729
  masterQueue: string;
@@ -1615,30 +1754,35 @@ export declare const DequeuedMessage: z.ZodObject<{
1615
1754
  }>;
1616
1755
  }, "strip", z.ZodTypeAny, {
1617
1756
  version: "1";
1757
+ environment: {
1758
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1759
+ id: string;
1760
+ };
1761
+ organization: {
1762
+ id: string;
1763
+ };
1764
+ project: {
1765
+ id: string;
1766
+ };
1767
+ deployment: {
1768
+ id?: string | undefined;
1769
+ friendlyId?: string | undefined;
1770
+ imagePlatform?: string | undefined;
1771
+ };
1618
1772
  run: {
1619
1773
  id: string;
1620
1774
  isTest: boolean;
1621
- traceContext: Record<string, unknown>;
1622
1775
  machine: {
1623
1776
  cpu: number;
1624
1777
  memory: number;
1625
1778
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1626
1779
  centsPerMs: number;
1627
1780
  };
1781
+ traceContext: Record<string, unknown>;
1628
1782
  friendlyId: string;
1629
1783
  attemptNumber: number;
1630
1784
  masterQueue: string;
1631
1785
  };
1632
- environment: {
1633
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1634
- id: string;
1635
- };
1636
- organization: {
1637
- id: string;
1638
- };
1639
- project: {
1640
- id: string;
1641
- };
1642
1786
  snapshot: {
1643
1787
  id: string;
1644
1788
  createdAt: Date;
@@ -1676,11 +1820,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1676
1820
  version: string;
1677
1821
  friendlyId: string;
1678
1822
  };
1679
- deployment: {
1680
- id?: string | undefined;
1681
- friendlyId?: string | undefined;
1682
- imagePlatform?: string | undefined;
1683
- };
1684
1823
  checkpoint?: {
1685
1824
  type: CheckpointTypeEnum;
1686
1825
  id: string;
@@ -1691,30 +1830,35 @@ export declare const DequeuedMessage: z.ZodObject<{
1691
1830
  image?: string | undefined;
1692
1831
  }, {
1693
1832
  version: "1";
1833
+ environment: {
1834
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1835
+ id: string;
1836
+ };
1837
+ organization: {
1838
+ id: string;
1839
+ };
1840
+ project: {
1841
+ id: string;
1842
+ };
1843
+ deployment: {
1844
+ id?: string | undefined;
1845
+ friendlyId?: string | undefined;
1846
+ imagePlatform?: string | undefined;
1847
+ };
1694
1848
  run: {
1695
1849
  id: string;
1696
1850
  isTest: boolean;
1697
- traceContext: Record<string, unknown>;
1698
1851
  machine: {
1699
1852
  cpu: number;
1700
1853
  memory: number;
1701
1854
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1702
1855
  centsPerMs: number;
1703
1856
  };
1857
+ traceContext: Record<string, unknown>;
1704
1858
  friendlyId: string;
1705
1859
  attemptNumber: number;
1706
1860
  masterQueue: string;
1707
1861
  };
1708
- environment: {
1709
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1710
- id: string;
1711
- };
1712
- organization: {
1713
- id: string;
1714
- };
1715
- project: {
1716
- id: string;
1717
- };
1718
1862
  snapshot: {
1719
1863
  id: string;
1720
1864
  createdAt: Date;
@@ -1752,11 +1896,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1752
1896
  version: string;
1753
1897
  friendlyId: string;
1754
1898
  };
1755
- deployment: {
1756
- id?: string | undefined;
1757
- friendlyId?: string | undefined;
1758
- imagePlatform?: string | undefined;
1759
- };
1760
1899
  checkpoint?: {
1761
1900
  type: CheckpointTypeEnum;
1762
1901
  id: string;