@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
@@ -420,26 +420,26 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
420
420
  }, "strip", z.ZodTypeAny, {
421
421
  id: string;
422
422
  isTest: boolean;
423
- traceContext: Record<string, unknown>;
424
423
  machine: {
425
424
  cpu: number;
426
425
  memory: number;
427
426
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
428
427
  centsPerMs: number;
429
428
  };
429
+ traceContext: Record<string, unknown>;
430
430
  friendlyId: string;
431
431
  attemptNumber: number;
432
432
  masterQueue: string;
433
433
  }, {
434
434
  id: string;
435
435
  isTest: boolean;
436
- traceContext: Record<string, unknown>;
437
436
  machine: {
438
437
  cpu: number;
439
438
  memory: number;
440
439
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
441
440
  centsPerMs: number;
442
441
  };
442
+ traceContext: Record<string, unknown>;
443
443
  friendlyId: string;
444
444
  attemptNumber: number;
445
445
  masterQueue: string;
@@ -470,30 +470,35 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
470
470
  }>;
471
471
  }, "strip", z.ZodTypeAny, {
472
472
  version: "1";
473
+ environment: {
474
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
475
+ id: string;
476
+ };
477
+ organization: {
478
+ id: string;
479
+ };
480
+ project: {
481
+ id: string;
482
+ };
483
+ deployment: {
484
+ id?: string | undefined;
485
+ friendlyId?: string | undefined;
486
+ imagePlatform?: string | undefined;
487
+ };
473
488
  run: {
474
489
  id: string;
475
490
  isTest: boolean;
476
- traceContext: Record<string, unknown>;
477
491
  machine: {
478
492
  cpu: number;
479
493
  memory: number;
480
494
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
481
495
  centsPerMs: number;
482
496
  };
497
+ traceContext: Record<string, unknown>;
483
498
  friendlyId: string;
484
499
  attemptNumber: number;
485
500
  masterQueue: string;
486
501
  };
487
- environment: {
488
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
489
- id: string;
490
- };
491
- organization: {
492
- id: string;
493
- };
494
- project: {
495
- id: string;
496
- };
497
502
  snapshot: {
498
503
  id: string;
499
504
  createdAt: Date;
@@ -531,11 +536,6 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
531
536
  version: string;
532
537
  friendlyId: string;
533
538
  };
534
- deployment: {
535
- id?: string | undefined;
536
- friendlyId?: string | undefined;
537
- imagePlatform?: string | undefined;
538
- };
539
539
  checkpoint?: {
540
540
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
541
541
  id: string;
@@ -546,30 +546,35 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
546
546
  image?: string | undefined;
547
547
  }, {
548
548
  version: "1";
549
+ environment: {
550
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
551
+ id: string;
552
+ };
553
+ organization: {
554
+ id: string;
555
+ };
556
+ project: {
557
+ id: string;
558
+ };
559
+ deployment: {
560
+ id?: string | undefined;
561
+ friendlyId?: string | undefined;
562
+ imagePlatform?: string | undefined;
563
+ };
549
564
  run: {
550
565
  id: string;
551
566
  isTest: boolean;
552
- traceContext: Record<string, unknown>;
553
567
  machine: {
554
568
  cpu: number;
555
569
  memory: number;
556
570
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
557
571
  centsPerMs: number;
558
572
  };
573
+ traceContext: Record<string, unknown>;
559
574
  friendlyId: string;
560
575
  attemptNumber: number;
561
576
  masterQueue: string;
562
577
  };
563
- environment: {
564
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
565
- id: string;
566
- };
567
- organization: {
568
- id: string;
569
- };
570
- project: {
571
- id: string;
572
- };
573
578
  snapshot: {
574
579
  id: string;
575
580
  createdAt: Date;
@@ -607,11 +612,6 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
607
612
  version: string;
608
613
  friendlyId: string;
609
614
  };
610
- deployment: {
611
- id?: string | undefined;
612
- friendlyId?: string | undefined;
613
- imagePlatform?: string | undefined;
614
- };
615
615
  checkpoint?: {
616
616
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
617
617
  id: string;
@@ -718,99 +718,13 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
718
718
  task: z.ZodObject<{
719
719
  id: z.ZodString;
720
720
  filePath: z.ZodString;
721
- exportName: z.ZodOptional<z.ZodString>;
722
- }, "strip", z.ZodTypeAny, {
723
- id: string;
724
- filePath: string;
725
- exportName?: string | undefined;
726
- }, {
727
- id: string;
728
- filePath: string;
729
- exportName?: string | undefined;
730
- }>;
731
- attempt: z.ZodObject<{
732
- number: z.ZodNumber;
733
- startedAt: z.ZodDate;
721
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
734
722
  id: z.ZodString;
735
- backgroundWorkerId: z.ZodString;
736
- backgroundWorkerTaskId: z.ZodString;
737
- status: z.ZodString;
738
- }, "strip", z.ZodTypeAny, {
739
- number: number;
740
- status: string;
741
- id: string;
742
- startedAt: Date;
743
- backgroundWorkerId: string;
744
- backgroundWorkerTaskId: string;
745
- }, {
746
- number: number;
747
- status: string;
748
- id: string;
749
- startedAt: Date;
750
- backgroundWorkerId: string;
751
- backgroundWorkerTaskId: string;
752
- }>;
753
- run: z.ZodIntersection<z.ZodObject<{
723
+ filePath: z.ZodString;
724
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
754
725
  id: z.ZodString;
755
- payload: z.ZodString;
756
- payloadType: z.ZodString;
757
- tags: z.ZodArray<z.ZodString, "many">;
758
- isTest: z.ZodDefault<z.ZodBoolean>;
759
- createdAt: z.ZodDate;
760
- startedAt: z.ZodDefault<z.ZodDate>;
761
- idempotencyKey: z.ZodOptional<z.ZodString>;
762
- maxAttempts: z.ZodOptional<z.ZodNumber>;
763
- version: z.ZodOptional<z.ZodString>;
764
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
765
- maxDuration: z.ZodOptional<z.ZodNumber>;
766
- context: z.ZodAny;
767
- durationMs: z.ZodDefault<z.ZodNumber>;
768
- costInCents: z.ZodDefault<z.ZodNumber>;
769
- baseCostInCents: z.ZodDefault<z.ZodNumber>;
770
- priority: z.ZodOptional<z.ZodNumber>;
771
- }, "strip", z.ZodTypeAny, {
772
- payload: string;
773
- id: string;
774
- payloadType: string;
775
- tags: string[];
776
- isTest: boolean;
777
- createdAt: Date;
778
- startedAt: Date;
779
- durationMs: number;
780
- costInCents: number;
781
- baseCostInCents: number;
782
- context?: any;
783
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
784
- idempotencyKey?: string | undefined;
785
- maxAttempts?: number | undefined;
786
- version?: string | undefined;
787
- maxDuration?: number | undefined;
788
- priority?: number | undefined;
789
- }, {
790
- payload: string;
791
- id: string;
792
- payloadType: string;
793
- tags: string[];
794
- createdAt: Date;
795
- context?: any;
796
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
797
- isTest?: boolean | undefined;
798
- startedAt?: Date | undefined;
799
- idempotencyKey?: string | undefined;
800
- maxAttempts?: number | undefined;
801
- version?: string | undefined;
802
- maxDuration?: number | undefined;
803
- durationMs?: number | undefined;
804
- costInCents?: number | undefined;
805
- baseCostInCents?: number | undefined;
806
- priority?: number | undefined;
807
- }>, z.ZodObject<{
808
- traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
809
- }, "strip", z.ZodTypeAny, {
810
- traceContext?: Record<string, unknown> | undefined;
811
- }, {
812
- traceContext?: Record<string, unknown> | undefined;
813
- }>>;
726
+ filePath: z.ZodString;
727
+ }, z.ZodTypeAny, "passthrough">>;
814
728
  queue: z.ZodObject<{
815
729
  id: z.ZodString;
816
730
  name: z.ZodString;
@@ -919,13 +833,6 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
919
833
  slug: string;
920
834
  ref: string;
921
835
  }>;
922
- batch: z.ZodOptional<z.ZodObject<{
923
- id: z.ZodString;
924
- }, "strip", z.ZodTypeAny, {
925
- id: string;
926
- }, {
927
- id: string;
928
- }>>;
929
836
  machine: z.ZodObject<{
930
837
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
931
838
  cpu: z.ZodNumber;
@@ -942,21 +849,115 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
942
849
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
943
850
  centsPerMs: number;
944
851
  }>;
945
- }, "strip", z.ZodTypeAny, {
946
- task: {
852
+ batch: z.ZodOptional<z.ZodObject<{
853
+ id: z.ZodString;
854
+ }, "strip", z.ZodTypeAny, {
947
855
  id: string;
948
- filePath: string;
949
- exportName?: string | undefined;
950
- };
951
- attempt: {
952
- number: number;
953
- status: string;
856
+ }, {
954
857
  id: string;
955
- startedAt: Date;
956
- backgroundWorkerId: string;
957
- backgroundWorkerTaskId: string;
958
- };
959
- run: {
858
+ }>>;
859
+ deployment: z.ZodOptional<z.ZodObject<{
860
+ id: z.ZodString;
861
+ shortCode: z.ZodString;
862
+ version: z.ZodString;
863
+ runtime: z.ZodString;
864
+ runtimeVersion: z.ZodString;
865
+ git: z.ZodOptional<z.ZodObject<{
866
+ commitAuthorName: z.ZodOptional<z.ZodString>;
867
+ commitMessage: z.ZodOptional<z.ZodString>;
868
+ commitRef: z.ZodOptional<z.ZodString>;
869
+ commitSha: z.ZodOptional<z.ZodString>;
870
+ dirty: z.ZodOptional<z.ZodBoolean>;
871
+ remoteUrl: z.ZodOptional<z.ZodString>;
872
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
873
+ pullRequestTitle: z.ZodOptional<z.ZodString>;
874
+ pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ dirty?: boolean | undefined;
877
+ commitAuthorName?: string | undefined;
878
+ commitMessage?: string | undefined;
879
+ commitRef?: string | undefined;
880
+ commitSha?: string | undefined;
881
+ remoteUrl?: string | undefined;
882
+ pullRequestNumber?: number | undefined;
883
+ pullRequestTitle?: string | undefined;
884
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
885
+ }, {
886
+ dirty?: boolean | undefined;
887
+ commitAuthorName?: string | undefined;
888
+ commitMessage?: string | undefined;
889
+ commitRef?: string | undefined;
890
+ commitSha?: string | undefined;
891
+ remoteUrl?: string | undefined;
892
+ pullRequestNumber?: number | undefined;
893
+ pullRequestTitle?: string | undefined;
894
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
895
+ }>>;
896
+ }, "strip", z.ZodTypeAny, {
897
+ id: string;
898
+ version: string;
899
+ shortCode: string;
900
+ runtime: string;
901
+ runtimeVersion: string;
902
+ git?: {
903
+ dirty?: boolean | undefined;
904
+ commitAuthorName?: string | undefined;
905
+ commitMessage?: string | undefined;
906
+ commitRef?: string | undefined;
907
+ commitSha?: string | undefined;
908
+ remoteUrl?: string | undefined;
909
+ pullRequestNumber?: number | undefined;
910
+ pullRequestTitle?: string | undefined;
911
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
912
+ } | undefined;
913
+ }, {
914
+ id: string;
915
+ version: string;
916
+ shortCode: string;
917
+ runtime: string;
918
+ runtimeVersion: string;
919
+ git?: {
920
+ dirty?: boolean | undefined;
921
+ commitAuthorName?: string | undefined;
922
+ commitMessage?: string | undefined;
923
+ commitRef?: string | undefined;
924
+ commitSha?: string | undefined;
925
+ remoteUrl?: string | undefined;
926
+ pullRequestNumber?: number | undefined;
927
+ pullRequestTitle?: string | undefined;
928
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
929
+ } | undefined;
930
+ }>>;
931
+ attempt: z.ZodObject<{
932
+ number: z.ZodNumber;
933
+ startedAt: z.ZodDate;
934
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
935
+ number: z.ZodNumber;
936
+ startedAt: z.ZodDate;
937
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
938
+ number: z.ZodNumber;
939
+ startedAt: z.ZodDate;
940
+ }, z.ZodTypeAny, "passthrough">>;
941
+ run: z.ZodIntersection<z.ZodObject<{
942
+ id: z.ZodString;
943
+ payload: z.ZodString;
944
+ payloadType: z.ZodString;
945
+ tags: z.ZodArray<z.ZodString, "many">;
946
+ isTest: z.ZodDefault<z.ZodBoolean>;
947
+ createdAt: z.ZodDate;
948
+ startedAt: z.ZodDefault<z.ZodDate>;
949
+ idempotencyKey: z.ZodOptional<z.ZodString>;
950
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
951
+ version: z.ZodOptional<z.ZodString>;
952
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>>>;
953
+ maxDuration: z.ZodOptional<z.ZodNumber>;
954
+ priority: z.ZodOptional<z.ZodNumber>;
955
+ baseCostInCents: z.ZodOptional<z.ZodNumber>;
956
+ parentTaskRunId: z.ZodOptional<z.ZodString>;
957
+ rootTaskRunId: z.ZodOptional<z.ZodString>;
958
+ durationMs: z.ZodOptional<z.ZodNumber>;
959
+ costInCents: z.ZodOptional<z.ZodNumber>;
960
+ }, "strip", z.ZodTypeAny, {
960
961
  payload: string;
961
962
  id: string;
962
963
  payloadType: string;
@@ -964,18 +965,49 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
964
965
  isTest: boolean;
965
966
  createdAt: Date;
966
967
  startedAt: Date;
967
- durationMs: number;
968
- costInCents: number;
969
- baseCostInCents: number;
970
- context?: any;
971
968
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
972
969
  idempotencyKey?: string | undefined;
973
970
  maxAttempts?: number | undefined;
974
971
  version?: string | undefined;
975
972
  maxDuration?: number | undefined;
976
973
  priority?: number | undefined;
977
- } & {
974
+ baseCostInCents?: number | undefined;
975
+ parentTaskRunId?: string | undefined;
976
+ rootTaskRunId?: string | undefined;
977
+ durationMs?: number | undefined;
978
+ costInCents?: number | undefined;
979
+ }, {
980
+ payload: string;
981
+ id: string;
982
+ payloadType: string;
983
+ tags: string[];
984
+ createdAt: Date;
985
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
986
+ isTest?: boolean | undefined;
987
+ startedAt?: Date | undefined;
988
+ idempotencyKey?: string | undefined;
989
+ maxAttempts?: number | undefined;
990
+ version?: string | undefined;
991
+ maxDuration?: number | undefined;
992
+ priority?: number | undefined;
993
+ baseCostInCents?: number | undefined;
994
+ parentTaskRunId?: string | undefined;
995
+ rootTaskRunId?: string | undefined;
996
+ durationMs?: number | undefined;
997
+ costInCents?: number | undefined;
998
+ }>, z.ZodObject<{
999
+ traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ traceContext?: Record<string, unknown> | undefined;
1002
+ }, {
978
1003
  traceContext?: Record<string, unknown> | undefined;
1004
+ }>>;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ task: {
1007
+ id: string;
1008
+ filePath: string;
1009
+ } & {
1010
+ [k: string]: unknown;
979
1011
  };
980
1012
  queue: {
981
1013
  name: string;
@@ -1015,44 +1047,62 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1015
1047
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1016
1048
  centsPerMs: number;
1017
1049
  };
1018
- batch?: {
1019
- id: string;
1020
- } | undefined;
1021
- }, {
1022
- task: {
1023
- id: string;
1024
- filePath: string;
1025
- exportName?: string | undefined;
1026
- };
1027
1050
  attempt: {
1028
1051
  number: number;
1029
- status: string;
1030
- id: string;
1031
1052
  startedAt: Date;
1032
- backgroundWorkerId: string;
1033
- backgroundWorkerTaskId: string;
1053
+ } & {
1054
+ [k: string]: unknown;
1034
1055
  };
1035
1056
  run: {
1036
1057
  payload: string;
1037
1058
  id: string;
1038
1059
  payloadType: string;
1039
1060
  tags: string[];
1061
+ isTest: boolean;
1040
1062
  createdAt: Date;
1041
- context?: any;
1063
+ startedAt: Date;
1042
1064
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1043
- isTest?: boolean | undefined;
1044
- startedAt?: Date | undefined;
1045
1065
  idempotencyKey?: string | undefined;
1046
1066
  maxAttempts?: number | undefined;
1047
1067
  version?: string | undefined;
1048
1068
  maxDuration?: number | undefined;
1069
+ priority?: number | undefined;
1070
+ baseCostInCents?: number | undefined;
1071
+ parentTaskRunId?: string | undefined;
1072
+ rootTaskRunId?: string | undefined;
1049
1073
  durationMs?: number | undefined;
1050
1074
  costInCents?: number | undefined;
1051
- baseCostInCents?: number | undefined;
1052
- priority?: number | undefined;
1053
1075
  } & {
1054
1076
  traceContext?: Record<string, unknown> | undefined;
1055
1077
  };
1078
+ batch?: {
1079
+ id: string;
1080
+ } | undefined;
1081
+ deployment?: {
1082
+ id: string;
1083
+ version: string;
1084
+ shortCode: string;
1085
+ runtime: string;
1086
+ runtimeVersion: string;
1087
+ git?: {
1088
+ dirty?: boolean | undefined;
1089
+ commitAuthorName?: string | undefined;
1090
+ commitMessage?: string | undefined;
1091
+ commitRef?: string | undefined;
1092
+ commitSha?: string | undefined;
1093
+ remoteUrl?: string | undefined;
1094
+ pullRequestNumber?: number | undefined;
1095
+ pullRequestTitle?: string | undefined;
1096
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
1097
+ } | undefined;
1098
+ } | undefined;
1099
+ }, {
1100
+ task: {
1101
+ id: string;
1102
+ filePath: string;
1103
+ } & {
1104
+ [k: string]: unknown;
1105
+ };
1056
1106
  queue: {
1057
1107
  name: string;
1058
1108
  id: string;
@@ -1091,46 +1141,64 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1091
1141
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1092
1142
  centsPerMs: number;
1093
1143
  };
1094
- batch?: {
1095
- id: string;
1096
- } | undefined;
1097
- }>;
1098
- }, "strip", z.ZodTypeAny, {
1099
- execution: {
1100
- task: {
1101
- id: string;
1102
- filePath: string;
1103
- exportName?: string | undefined;
1104
- };
1105
1144
  attempt: {
1106
1145
  number: number;
1107
- status: string;
1108
- id: string;
1109
1146
  startedAt: Date;
1110
- backgroundWorkerId: string;
1111
- backgroundWorkerTaskId: string;
1147
+ } & {
1148
+ [k: string]: unknown;
1112
1149
  };
1113
1150
  run: {
1114
1151
  payload: string;
1115
1152
  id: string;
1116
1153
  payloadType: string;
1117
1154
  tags: string[];
1118
- isTest: boolean;
1119
1155
  createdAt: Date;
1120
- startedAt: Date;
1121
- durationMs: number;
1122
- costInCents: number;
1123
- baseCostInCents: number;
1124
- context?: any;
1125
1156
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1157
+ isTest?: boolean | undefined;
1158
+ startedAt?: Date | undefined;
1126
1159
  idempotencyKey?: string | undefined;
1127
1160
  maxAttempts?: number | undefined;
1128
1161
  version?: string | undefined;
1129
1162
  maxDuration?: number | undefined;
1130
1163
  priority?: number | undefined;
1164
+ baseCostInCents?: number | undefined;
1165
+ parentTaskRunId?: string | undefined;
1166
+ rootTaskRunId?: string | undefined;
1167
+ durationMs?: number | undefined;
1168
+ costInCents?: number | undefined;
1131
1169
  } & {
1132
1170
  traceContext?: Record<string, unknown> | undefined;
1133
1171
  };
1172
+ batch?: {
1173
+ id: string;
1174
+ } | undefined;
1175
+ deployment?: {
1176
+ id: string;
1177
+ version: string;
1178
+ shortCode: string;
1179
+ runtime: string;
1180
+ runtimeVersion: string;
1181
+ git?: {
1182
+ dirty?: boolean | undefined;
1183
+ commitAuthorName?: string | undefined;
1184
+ commitMessage?: string | undefined;
1185
+ commitRef?: string | undefined;
1186
+ commitSha?: string | undefined;
1187
+ remoteUrl?: string | undefined;
1188
+ pullRequestNumber?: number | undefined;
1189
+ pullRequestTitle?: string | undefined;
1190
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
1191
+ } | undefined;
1192
+ } | undefined;
1193
+ }>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ execution: {
1196
+ task: {
1197
+ id: string;
1198
+ filePath: string;
1199
+ } & {
1200
+ [k: string]: unknown;
1201
+ };
1134
1202
  queue: {
1135
1203
  name: string;
1136
1204
  id: string;
@@ -1169,46 +1237,64 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1169
1237
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1170
1238
  centsPerMs: number;
1171
1239
  };
1172
- batch?: {
1173
- id: string;
1174
- } | undefined;
1175
- };
1176
- }, {
1177
- execution: {
1178
- task: {
1179
- id: string;
1180
- filePath: string;
1181
- exportName?: string | undefined;
1182
- };
1183
1240
  attempt: {
1184
1241
  number: number;
1185
- status: string;
1186
- id: string;
1187
1242
  startedAt: Date;
1188
- backgroundWorkerId: string;
1189
- backgroundWorkerTaskId: string;
1243
+ } & {
1244
+ [k: string]: unknown;
1190
1245
  };
1191
1246
  run: {
1192
1247
  payload: string;
1193
1248
  id: string;
1194
1249
  payloadType: string;
1195
1250
  tags: string[];
1251
+ isTest: boolean;
1196
1252
  createdAt: Date;
1197
- context?: any;
1253
+ startedAt: Date;
1198
1254
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1199
- isTest?: boolean | undefined;
1200
- startedAt?: Date | undefined;
1201
1255
  idempotencyKey?: string | undefined;
1202
1256
  maxAttempts?: number | undefined;
1203
1257
  version?: string | undefined;
1204
1258
  maxDuration?: number | undefined;
1259
+ priority?: number | undefined;
1260
+ baseCostInCents?: number | undefined;
1261
+ parentTaskRunId?: string | undefined;
1262
+ rootTaskRunId?: string | undefined;
1205
1263
  durationMs?: number | undefined;
1206
1264
  costInCents?: number | undefined;
1207
- baseCostInCents?: number | undefined;
1208
- priority?: number | undefined;
1209
1265
  } & {
1210
1266
  traceContext?: Record<string, unknown> | undefined;
1211
1267
  };
1268
+ batch?: {
1269
+ id: string;
1270
+ } | undefined;
1271
+ deployment?: {
1272
+ id: string;
1273
+ version: string;
1274
+ shortCode: string;
1275
+ runtime: string;
1276
+ runtimeVersion: string;
1277
+ git?: {
1278
+ dirty?: boolean | undefined;
1279
+ commitAuthorName?: string | undefined;
1280
+ commitMessage?: string | undefined;
1281
+ commitRef?: string | undefined;
1282
+ commitSha?: string | undefined;
1283
+ remoteUrl?: string | undefined;
1284
+ pullRequestNumber?: number | undefined;
1285
+ pullRequestTitle?: string | undefined;
1286
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
1287
+ } | undefined;
1288
+ } | undefined;
1289
+ };
1290
+ }, {
1291
+ execution: {
1292
+ task: {
1293
+ id: string;
1294
+ filePath: string;
1295
+ } & {
1296
+ [k: string]: unknown;
1297
+ };
1212
1298
  queue: {
1213
1299
  name: string;
1214
1300
  id: string;
@@ -1247,9 +1333,55 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1247
1333
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1248
1334
  centsPerMs: number;
1249
1335
  };
1336
+ attempt: {
1337
+ number: number;
1338
+ startedAt: Date;
1339
+ } & {
1340
+ [k: string]: unknown;
1341
+ };
1342
+ run: {
1343
+ payload: string;
1344
+ id: string;
1345
+ payloadType: string;
1346
+ tags: string[];
1347
+ createdAt: Date;
1348
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1349
+ isTest?: boolean | undefined;
1350
+ startedAt?: Date | undefined;
1351
+ idempotencyKey?: string | undefined;
1352
+ maxAttempts?: number | undefined;
1353
+ version?: string | undefined;
1354
+ maxDuration?: number | undefined;
1355
+ priority?: number | undefined;
1356
+ baseCostInCents?: number | undefined;
1357
+ parentTaskRunId?: string | undefined;
1358
+ rootTaskRunId?: string | undefined;
1359
+ durationMs?: number | undefined;
1360
+ costInCents?: number | undefined;
1361
+ } & {
1362
+ traceContext?: Record<string, unknown> | undefined;
1363
+ };
1250
1364
  batch?: {
1251
1365
  id: string;
1252
1366
  } | undefined;
1367
+ deployment?: {
1368
+ id: string;
1369
+ version: string;
1370
+ shortCode: string;
1371
+ runtime: string;
1372
+ runtimeVersion: string;
1373
+ git?: {
1374
+ dirty?: boolean | undefined;
1375
+ commitAuthorName?: string | undefined;
1376
+ commitMessage?: string | undefined;
1377
+ commitRef?: string | undefined;
1378
+ commitSha?: string | undefined;
1379
+ remoteUrl?: string | undefined;
1380
+ pullRequestNumber?: number | undefined;
1381
+ pullRequestTitle?: string | undefined;
1382
+ pullRequestState?: "open" | "closed" | "merged" | undefined;
1383
+ } | undefined;
1384
+ } | undefined;
1253
1385
  };
1254
1386
  }>>, z.ZodObject<{
1255
1387
  envVars: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -3508,26 +3640,26 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3508
3640
  }, "strip", z.ZodTypeAny, {
3509
3641
  id: string;
3510
3642
  isTest: boolean;
3511
- traceContext: Record<string, unknown>;
3512
3643
  machine: {
3513
3644
  cpu: number;
3514
3645
  memory: number;
3515
3646
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3516
3647
  centsPerMs: number;
3517
3648
  };
3649
+ traceContext: Record<string, unknown>;
3518
3650
  friendlyId: string;
3519
3651
  attemptNumber: number;
3520
3652
  masterQueue: string;
3521
3653
  }, {
3522
3654
  id: string;
3523
3655
  isTest: boolean;
3524
- traceContext: Record<string, unknown>;
3525
3656
  machine: {
3526
3657
  cpu: number;
3527
3658
  memory: number;
3528
3659
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3529
3660
  centsPerMs: number;
3530
3661
  };
3662
+ traceContext: Record<string, unknown>;
3531
3663
  friendlyId: string;
3532
3664
  attemptNumber: number;
3533
3665
  masterQueue: string;
@@ -3558,30 +3690,35 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3558
3690
  }>;
3559
3691
  }, "strip", z.ZodTypeAny, {
3560
3692
  version: "1";
3693
+ environment: {
3694
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3695
+ id: string;
3696
+ };
3697
+ organization: {
3698
+ id: string;
3699
+ };
3700
+ project: {
3701
+ id: string;
3702
+ };
3703
+ deployment: {
3704
+ id?: string | undefined;
3705
+ friendlyId?: string | undefined;
3706
+ imagePlatform?: string | undefined;
3707
+ };
3561
3708
  run: {
3562
3709
  id: string;
3563
3710
  isTest: boolean;
3564
- traceContext: Record<string, unknown>;
3565
3711
  machine: {
3566
3712
  cpu: number;
3567
3713
  memory: number;
3568
3714
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3569
3715
  centsPerMs: number;
3570
3716
  };
3717
+ traceContext: Record<string, unknown>;
3571
3718
  friendlyId: string;
3572
3719
  attemptNumber: number;
3573
3720
  masterQueue: string;
3574
3721
  };
3575
- environment: {
3576
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3577
- id: string;
3578
- };
3579
- organization: {
3580
- id: string;
3581
- };
3582
- project: {
3583
- id: string;
3584
- };
3585
3722
  snapshot: {
3586
3723
  id: string;
3587
3724
  createdAt: Date;
@@ -3619,11 +3756,6 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3619
3756
  version: string;
3620
3757
  friendlyId: string;
3621
3758
  };
3622
- deployment: {
3623
- id?: string | undefined;
3624
- friendlyId?: string | undefined;
3625
- imagePlatform?: string | undefined;
3626
- };
3627
3759
  checkpoint?: {
3628
3760
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3629
3761
  id: string;
@@ -3634,30 +3766,35 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3634
3766
  image?: string | undefined;
3635
3767
  }, {
3636
3768
  version: "1";
3769
+ environment: {
3770
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3771
+ id: string;
3772
+ };
3773
+ organization: {
3774
+ id: string;
3775
+ };
3776
+ project: {
3777
+ id: string;
3778
+ };
3779
+ deployment: {
3780
+ id?: string | undefined;
3781
+ friendlyId?: string | undefined;
3782
+ imagePlatform?: string | undefined;
3783
+ };
3637
3784
  run: {
3638
3785
  id: string;
3639
3786
  isTest: boolean;
3640
- traceContext: Record<string, unknown>;
3641
3787
  machine: {
3642
3788
  cpu: number;
3643
3789
  memory: number;
3644
3790
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3645
3791
  centsPerMs: number;
3646
3792
  };
3793
+ traceContext: Record<string, unknown>;
3647
3794
  friendlyId: string;
3648
3795
  attemptNumber: number;
3649
3796
  masterQueue: string;
3650
3797
  };
3651
- environment: {
3652
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3653
- id: string;
3654
- };
3655
- organization: {
3656
- id: string;
3657
- };
3658
- project: {
3659
- id: string;
3660
- };
3661
3798
  snapshot: {
3662
3799
  id: string;
3663
3800
  createdAt: Date;
@@ -3695,11 +3832,6 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3695
3832
  version: string;
3696
3833
  friendlyId: string;
3697
3834
  };
3698
- deployment: {
3699
- id?: string | undefined;
3700
- friendlyId?: string | undefined;
3701
- imagePlatform?: string | undefined;
3702
- };
3703
3835
  checkpoint?: {
3704
3836
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3705
3837
  id: string;