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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/commonjs/logger.d.ts +1 -0
  2. package/dist/commonjs/logger.js +5 -0
  3. package/dist/commonjs/logger.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +8 -8
  5. package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
  6. package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
  7. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  8. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +79 -61
  9. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
  10. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +63 -45
  11. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +341 -209
  12. package/dist/commonjs/v3/runMetadata/manager.d.ts +1 -0
  13. package/dist/commonjs/v3/runMetadata/manager.js +72 -2
  14. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  15. package/dist/commonjs/v3/schemas/api.d.ts +116 -116
  16. package/dist/commonjs/v3/schemas/build.d.ts +36 -36
  17. package/dist/commonjs/v3/schemas/checkpoints.d.ts +72 -72
  18. package/dist/commonjs/v3/schemas/common.d.ts +1708 -408
  19. package/dist/commonjs/v3/schemas/common.js +101 -42
  20. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  21. package/dist/commonjs/v3/schemas/messages.d.ts +3564 -2986
  22. package/dist/commonjs/v3/schemas/messages.js +10 -10
  23. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  24. package/dist/commonjs/v3/schemas/resources.d.ts +10 -10
  25. package/dist/commonjs/v3/schemas/runEngine.d.ts +341 -209
  26. package/dist/commonjs/v3/schemas/schemas.d.ts +562 -442
  27. package/dist/commonjs/v3/schemas/schemas.js +4 -4
  28. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  29. package/dist/commonjs/v3/schemas/webhooks.d.ts +120 -120
  30. package/dist/commonjs/v3/taskContext/index.js +0 -2
  31. package/dist/commonjs/v3/taskContext/index.js.map +1 -1
  32. package/dist/commonjs/v3/usage/api.d.ts +2 -1
  33. package/dist/commonjs/v3/usage/api.js +3 -0
  34. package/dist/commonjs/v3/usage/api.js.map +1 -1
  35. package/dist/commonjs/v3/usage/devUsageManager.d.ts +4 -1
  36. package/dist/commonjs/v3/usage/devUsageManager.js +14 -0
  37. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
  38. package/dist/commonjs/v3/usage/noopUsageManager.d.ts +2 -1
  39. package/dist/commonjs/v3/usage/noopUsageManager.js +6 -0
  40. package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
  41. package/dist/commonjs/v3/usage/prodUsageManager.d.ts +4 -1
  42. package/dist/commonjs/v3/usage/prodUsageManager.js +14 -0
  43. package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
  44. package/dist/commonjs/v3/usage/types.d.ts +5 -0
  45. package/dist/commonjs/version.js +1 -1
  46. package/dist/esm/logger.d.ts +1 -0
  47. package/dist/esm/logger.js +5 -0
  48. package/dist/esm/logger.js.map +1 -1
  49. package/dist/esm/v3/apiClient/index.d.ts +8 -8
  50. package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
  51. package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
  52. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  53. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +79 -61
  54. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
  55. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +63 -45
  56. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +341 -209
  57. package/dist/esm/v3/runMetadata/manager.d.ts +1 -0
  58. package/dist/esm/v3/runMetadata/manager.js +72 -2
  59. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  60. package/dist/esm/v3/schemas/api.d.ts +116 -116
  61. package/dist/esm/v3/schemas/build.d.ts +36 -36
  62. package/dist/esm/v3/schemas/checkpoints.d.ts +72 -72
  63. package/dist/esm/v3/schemas/common.d.ts +1708 -408
  64. package/dist/esm/v3/schemas/common.js +100 -41
  65. package/dist/esm/v3/schemas/common.js.map +1 -1
  66. package/dist/esm/v3/schemas/messages.d.ts +3564 -2986
  67. package/dist/esm/v3/schemas/messages.js +11 -11
  68. package/dist/esm/v3/schemas/messages.js.map +1 -1
  69. package/dist/esm/v3/schemas/resources.d.ts +10 -10
  70. package/dist/esm/v3/schemas/runEngine.d.ts +341 -209
  71. package/dist/esm/v3/schemas/schemas.d.ts +562 -442
  72. package/dist/esm/v3/schemas/schemas.js +4 -4
  73. package/dist/esm/v3/schemas/schemas.js.map +1 -1
  74. package/dist/esm/v3/schemas/webhooks.d.ts +120 -120
  75. package/dist/esm/v3/taskContext/index.js +0 -2
  76. package/dist/esm/v3/taskContext/index.js.map +1 -1
  77. package/dist/esm/v3/usage/api.d.ts +2 -1
  78. package/dist/esm/v3/usage/api.js +3 -0
  79. package/dist/esm/v3/usage/api.js.map +1 -1
  80. package/dist/esm/v3/usage/devUsageManager.d.ts +4 -1
  81. package/dist/esm/v3/usage/devUsageManager.js +14 -0
  82. package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
  83. package/dist/esm/v3/usage/noopUsageManager.d.ts +2 -1
  84. package/dist/esm/v3/usage/noopUsageManager.js +6 -0
  85. package/dist/esm/v3/usage/noopUsageManager.js.map +1 -1
  86. package/dist/esm/v3/usage/prodUsageManager.d.ts +4 -1
  87. package/dist/esm/v3/usage/prodUsageManager.js +14 -0
  88. package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
  89. package/dist/esm/v3/usage/types.d.ts +5 -0
  90. package/dist/esm/version.js +1 -1
  91. package/package.json +1 -1
@@ -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,115 @@ 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
+ }, "strip", z.ZodTypeAny, {
530
531
  payload: string;
531
532
  id: string;
532
533
  payloadType: string;
@@ -534,18 +535,49 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
534
535
  isTest: boolean;
535
536
  createdAt: Date;
536
537
  startedAt: Date;
537
- durationMs: number;
538
- costInCents: number;
539
- baseCostInCents: number;
540
- context?: any;
541
538
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
542
539
  idempotencyKey?: string | undefined;
543
540
  maxAttempts?: number | undefined;
544
541
  version?: string | undefined;
545
542
  maxDuration?: number | undefined;
546
543
  priority?: number | undefined;
547
- } & {
544
+ baseCostInCents?: number | undefined;
545
+ parentTaskRunId?: string | undefined;
546
+ rootTaskRunId?: string | undefined;
547
+ durationMs?: number | undefined;
548
+ costInCents?: number | undefined;
549
+ }, {
550
+ payload: string;
551
+ id: string;
552
+ payloadType: string;
553
+ tags: string[];
554
+ createdAt: Date;
555
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
556
+ isTest?: boolean | undefined;
557
+ startedAt?: Date | undefined;
558
+ idempotencyKey?: string | undefined;
559
+ maxAttempts?: number | undefined;
560
+ version?: string | undefined;
561
+ maxDuration?: number | undefined;
562
+ priority?: number | undefined;
563
+ baseCostInCents?: number | undefined;
564
+ parentTaskRunId?: string | undefined;
565
+ rootTaskRunId?: string | undefined;
566
+ durationMs?: number | undefined;
567
+ costInCents?: number | undefined;
568
+ }>, z.ZodObject<{
569
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ traceContext?: Record<string, unknown> | undefined;
572
+ }, {
548
573
  traceContext?: Record<string, unknown> | undefined;
574
+ }>>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ task: {
577
+ id: string;
578
+ filePath: string;
579
+ } & {
580
+ [k: string]: unknown;
549
581
  };
550
582
  queue: {
551
583
  name: string;
@@ -585,44 +617,62 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
585
617
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
586
618
  centsPerMs: number;
587
619
  };
588
- batch?: {
589
- id: string;
590
- } | undefined;
591
- }, {
592
- task: {
593
- id: string;
594
- filePath: string;
595
- exportName?: string | undefined;
596
- };
597
620
  attempt: {
598
621
  number: number;
599
- status: string;
600
- id: string;
601
622
  startedAt: Date;
602
- backgroundWorkerId: string;
603
- backgroundWorkerTaskId: string;
623
+ } & {
624
+ [k: string]: unknown;
604
625
  };
605
626
  run: {
606
627
  payload: string;
607
628
  id: string;
608
629
  payloadType: string;
609
630
  tags: string[];
631
+ isTest: boolean;
610
632
  createdAt: Date;
611
- context?: any;
633
+ startedAt: Date;
612
634
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
613
- isTest?: boolean | undefined;
614
- startedAt?: Date | undefined;
615
635
  idempotencyKey?: string | undefined;
616
636
  maxAttempts?: number | undefined;
617
637
  version?: string | undefined;
618
638
  maxDuration?: number | undefined;
639
+ priority?: number | undefined;
640
+ baseCostInCents?: number | undefined;
641
+ parentTaskRunId?: string | undefined;
642
+ rootTaskRunId?: string | undefined;
619
643
  durationMs?: number | undefined;
620
644
  costInCents?: number | undefined;
621
- baseCostInCents?: number | undefined;
622
- priority?: number | undefined;
623
645
  } & {
624
646
  traceContext?: Record<string, unknown> | undefined;
625
647
  };
648
+ batch?: {
649
+ id: string;
650
+ } | undefined;
651
+ deployment?: {
652
+ id: string;
653
+ version: string;
654
+ shortCode: string;
655
+ runtime: string;
656
+ runtimeVersion: string;
657
+ git?: {
658
+ dirty?: boolean | undefined;
659
+ commitAuthorName?: string | undefined;
660
+ commitMessage?: string | undefined;
661
+ commitRef?: string | undefined;
662
+ commitSha?: string | undefined;
663
+ remoteUrl?: string | undefined;
664
+ pullRequestNumber?: number | undefined;
665
+ pullRequestTitle?: string | undefined;
666
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
667
+ } | undefined;
668
+ } | undefined;
669
+ }, {
670
+ task: {
671
+ id: string;
672
+ filePath: string;
673
+ } & {
674
+ [k: string]: unknown;
675
+ };
626
676
  queue: {
627
677
  name: string;
628
678
  id: string;
@@ -661,46 +711,64 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
661
711
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
662
712
  centsPerMs: number;
663
713
  };
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
714
  attempt: {
676
715
  number: number;
677
- status: string;
678
- id: string;
679
716
  startedAt: Date;
680
- backgroundWorkerId: string;
681
- backgroundWorkerTaskId: string;
717
+ } & {
718
+ [k: string]: unknown;
682
719
  };
683
720
  run: {
684
721
  payload: string;
685
722
  id: string;
686
723
  payloadType: string;
687
724
  tags: string[];
688
- isTest: boolean;
689
725
  createdAt: Date;
690
- startedAt: Date;
691
- durationMs: number;
692
- costInCents: number;
693
- baseCostInCents: number;
694
- context?: any;
695
726
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
727
+ isTest?: boolean | undefined;
728
+ startedAt?: Date | undefined;
696
729
  idempotencyKey?: string | undefined;
697
730
  maxAttempts?: number | undefined;
698
731
  version?: string | undefined;
699
732
  maxDuration?: number | undefined;
700
733
  priority?: number | undefined;
734
+ baseCostInCents?: number | undefined;
735
+ parentTaskRunId?: string | undefined;
736
+ rootTaskRunId?: string | undefined;
737
+ durationMs?: number | undefined;
738
+ costInCents?: number | undefined;
701
739
  } & {
702
740
  traceContext?: Record<string, unknown> | undefined;
703
741
  };
742
+ batch?: {
743
+ id: string;
744
+ } | undefined;
745
+ deployment?: {
746
+ id: string;
747
+ version: string;
748
+ shortCode: string;
749
+ runtime: string;
750
+ runtimeVersion: string;
751
+ git?: {
752
+ dirty?: boolean | undefined;
753
+ commitAuthorName?: string | undefined;
754
+ commitMessage?: string | undefined;
755
+ commitRef?: string | undefined;
756
+ commitSha?: string | undefined;
757
+ remoteUrl?: string | undefined;
758
+ pullRequestNumber?: number | undefined;
759
+ pullRequestTitle?: string | undefined;
760
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
761
+ } | undefined;
762
+ } | undefined;
763
+ }>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ execution: {
766
+ task: {
767
+ id: string;
768
+ filePath: string;
769
+ } & {
770
+ [k: string]: unknown;
771
+ };
704
772
  queue: {
705
773
  name: string;
706
774
  id: string;
@@ -739,46 +807,64 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
739
807
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
740
808
  centsPerMs: number;
741
809
  };
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
810
  attempt: {
754
811
  number: number;
755
- status: string;
756
- id: string;
757
812
  startedAt: Date;
758
- backgroundWorkerId: string;
759
- backgroundWorkerTaskId: string;
813
+ } & {
814
+ [k: string]: unknown;
760
815
  };
761
816
  run: {
762
817
  payload: string;
763
818
  id: string;
764
819
  payloadType: string;
765
820
  tags: string[];
821
+ isTest: boolean;
766
822
  createdAt: Date;
767
- context?: any;
823
+ startedAt: Date;
768
824
  metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
769
- isTest?: boolean | undefined;
770
- startedAt?: Date | undefined;
771
825
  idempotencyKey?: string | undefined;
772
826
  maxAttempts?: number | undefined;
773
827
  version?: string | undefined;
774
828
  maxDuration?: number | undefined;
829
+ priority?: number | undefined;
830
+ baseCostInCents?: number | undefined;
831
+ parentTaskRunId?: string | undefined;
832
+ rootTaskRunId?: string | undefined;
775
833
  durationMs?: number | undefined;
776
834
  costInCents?: number | undefined;
777
- baseCostInCents?: number | undefined;
778
- priority?: number | undefined;
779
835
  } & {
780
836
  traceContext?: Record<string, unknown> | undefined;
781
837
  };
838
+ batch?: {
839
+ id: string;
840
+ } | undefined;
841
+ deployment?: {
842
+ id: string;
843
+ version: string;
844
+ shortCode: string;
845
+ runtime: string;
846
+ runtimeVersion: string;
847
+ git?: {
848
+ dirty?: boolean | undefined;
849
+ commitAuthorName?: string | undefined;
850
+ commitMessage?: string | undefined;
851
+ commitRef?: string | undefined;
852
+ commitSha?: string | undefined;
853
+ remoteUrl?: string | undefined;
854
+ pullRequestNumber?: number | undefined;
855
+ pullRequestTitle?: string | undefined;
856
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
857
+ } | undefined;
858
+ } | undefined;
859
+ };
860
+ }, {
861
+ execution: {
862
+ task: {
863
+ id: string;
864
+ filePath: string;
865
+ } & {
866
+ [k: string]: unknown;
867
+ };
782
868
  queue: {
783
869
  name: string;
784
870
  id: string;
@@ -817,9 +903,55 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
817
903
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
818
904
  centsPerMs: number;
819
905
  };
906
+ attempt: {
907
+ number: number;
908
+ startedAt: Date;
909
+ } & {
910
+ [k: string]: unknown;
911
+ };
912
+ run: {
913
+ payload: string;
914
+ id: string;
915
+ payloadType: string;
916
+ tags: string[];
917
+ createdAt: Date;
918
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
919
+ isTest?: boolean | undefined;
920
+ startedAt?: Date | undefined;
921
+ idempotencyKey?: string | undefined;
922
+ maxAttempts?: number | undefined;
923
+ version?: string | undefined;
924
+ maxDuration?: number | undefined;
925
+ priority?: number | undefined;
926
+ baseCostInCents?: number | undefined;
927
+ parentTaskRunId?: string | undefined;
928
+ rootTaskRunId?: string | undefined;
929
+ durationMs?: number | undefined;
930
+ costInCents?: number | undefined;
931
+ } & {
932
+ traceContext?: Record<string, unknown> | undefined;
933
+ };
820
934
  batch?: {
821
935
  id: string;
822
936
  } | undefined;
937
+ deployment?: {
938
+ id: string;
939
+ version: string;
940
+ shortCode: string;
941
+ runtime: string;
942
+ runtimeVersion: string;
943
+ git?: {
944
+ dirty?: boolean | undefined;
945
+ commitAuthorName?: string | undefined;
946
+ commitMessage?: string | undefined;
947
+ commitRef?: string | undefined;
948
+ commitSha?: string | undefined;
949
+ remoteUrl?: string | undefined;
950
+ pullRequestNumber?: number | undefined;
951
+ pullRequestTitle?: string | undefined;
952
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
953
+ } | undefined;
954
+ } | undefined;
823
955
  };
824
956
  }>>;
825
957
  export type StartRunAttemptResult = z.infer<typeof StartRunAttemptResult>;
@@ -1565,26 +1697,26 @@ export declare const DequeuedMessage: z.ZodObject<{
1565
1697
  }, "strip", z.ZodTypeAny, {
1566
1698
  id: string;
1567
1699
  isTest: boolean;
1568
- traceContext: Record<string, unknown>;
1569
1700
  machine: {
1570
1701
  cpu: number;
1571
1702
  memory: number;
1572
1703
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1573
1704
  centsPerMs: number;
1574
1705
  };
1706
+ traceContext: Record<string, unknown>;
1575
1707
  friendlyId: string;
1576
1708
  attemptNumber: number;
1577
1709
  masterQueue: string;
1578
1710
  }, {
1579
1711
  id: string;
1580
1712
  isTest: boolean;
1581
- traceContext: Record<string, unknown>;
1582
1713
  machine: {
1583
1714
  cpu: number;
1584
1715
  memory: number;
1585
1716
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1586
1717
  centsPerMs: number;
1587
1718
  };
1719
+ traceContext: Record<string, unknown>;
1588
1720
  friendlyId: string;
1589
1721
  attemptNumber: number;
1590
1722
  masterQueue: string;
@@ -1615,30 +1747,35 @@ export declare const DequeuedMessage: z.ZodObject<{
1615
1747
  }>;
1616
1748
  }, "strip", z.ZodTypeAny, {
1617
1749
  version: "1";
1750
+ environment: {
1751
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1752
+ id: string;
1753
+ };
1754
+ organization: {
1755
+ id: string;
1756
+ };
1757
+ project: {
1758
+ id: string;
1759
+ };
1760
+ deployment: {
1761
+ id?: string | undefined;
1762
+ friendlyId?: string | undefined;
1763
+ imagePlatform?: string | undefined;
1764
+ };
1618
1765
  run: {
1619
1766
  id: string;
1620
1767
  isTest: boolean;
1621
- traceContext: Record<string, unknown>;
1622
1768
  machine: {
1623
1769
  cpu: number;
1624
1770
  memory: number;
1625
1771
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1626
1772
  centsPerMs: number;
1627
1773
  };
1774
+ traceContext: Record<string, unknown>;
1628
1775
  friendlyId: string;
1629
1776
  attemptNumber: number;
1630
1777
  masterQueue: string;
1631
1778
  };
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
1779
  snapshot: {
1643
1780
  id: string;
1644
1781
  createdAt: Date;
@@ -1676,11 +1813,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1676
1813
  version: string;
1677
1814
  friendlyId: string;
1678
1815
  };
1679
- deployment: {
1680
- id?: string | undefined;
1681
- friendlyId?: string | undefined;
1682
- imagePlatform?: string | undefined;
1683
- };
1684
1816
  checkpoint?: {
1685
1817
  type: CheckpointTypeEnum;
1686
1818
  id: string;
@@ -1691,30 +1823,35 @@ export declare const DequeuedMessage: z.ZodObject<{
1691
1823
  image?: string | undefined;
1692
1824
  }, {
1693
1825
  version: "1";
1826
+ environment: {
1827
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1828
+ id: string;
1829
+ };
1830
+ organization: {
1831
+ id: string;
1832
+ };
1833
+ project: {
1834
+ id: string;
1835
+ };
1836
+ deployment: {
1837
+ id?: string | undefined;
1838
+ friendlyId?: string | undefined;
1839
+ imagePlatform?: string | undefined;
1840
+ };
1694
1841
  run: {
1695
1842
  id: string;
1696
1843
  isTest: boolean;
1697
- traceContext: Record<string, unknown>;
1698
1844
  machine: {
1699
1845
  cpu: number;
1700
1846
  memory: number;
1701
1847
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1702
1848
  centsPerMs: number;
1703
1849
  };
1850
+ traceContext: Record<string, unknown>;
1704
1851
  friendlyId: string;
1705
1852
  attemptNumber: number;
1706
1853
  masterQueue: string;
1707
1854
  };
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
1855
  snapshot: {
1719
1856
  id: string;
1720
1857
  createdAt: Date;
@@ -1752,11 +1889,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1752
1889
  version: string;
1753
1890
  friendlyId: string;
1754
1891
  };
1755
- deployment: {
1756
- id?: string | undefined;
1757
- friendlyId?: string | undefined;
1758
- imagePlatform?: string | undefined;
1759
- };
1760
1892
  checkpoint?: {
1761
1893
  type: CheckpointTypeEnum;
1762
1894
  id: string;