@trigger.dev/core 3.0.0-beta.50 → 3.0.0-beta.52

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 (57) hide show
  1. package/dist/{catalog-h79CG5Wy.d.ts → catalog-gM5Cvgc3.d.ts} +2 -2
  2. package/dist/{catalog-H7yFiZ60.d.mts → catalog-nhfltZFA.d.mts} +2 -2
  3. package/dist/{common-CLW82lkt.d.mts → common-B45g-vNI.d.mts} +13 -0
  4. package/dist/{common-CLW82lkt.d.ts → common-B45g-vNI.d.ts} +13 -0
  5. package/dist/index.d.mts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/{manager-KvCabW1a.d.mts → manager-q7bZZNwE.d.mts} +1 -1
  8. package/dist/{manager-OBA35PzR.d.ts → manager-zf0yn2lA.d.ts} +1 -1
  9. package/dist/{messages-JvHJ83wv.d.mts → messages-248C7Ut6.d.mts} +203 -11
  10. package/dist/{messages-JvHJ83wv.d.ts → messages-248C7Ut6.d.ts} +203 -11
  11. package/dist/retry.d.mts +1 -1
  12. package/dist/retry.d.ts +1 -1
  13. package/dist/schemas/index.d.mts +6 -6
  14. package/dist/schemas/index.d.ts +6 -6
  15. package/dist/{schemas-C9ssfehv.d.mts → schemas-38ilA21d.d.mts} +19 -0
  16. package/dist/{schemas-C9ssfehv.d.ts → schemas-38ilA21d.d.ts} +19 -0
  17. package/dist/v3/dev/index.d.mts +2 -2
  18. package/dist/v3/dev/index.d.ts +2 -2
  19. package/dist/v3/errors.d.mts +1 -1
  20. package/dist/v3/errors.d.ts +1 -1
  21. package/dist/v3/index.d.mts +45 -33
  22. package/dist/v3/index.d.ts +45 -33
  23. package/dist/v3/index.js +44 -3
  24. package/dist/v3/index.js.map +1 -1
  25. package/dist/v3/index.mjs +43 -4
  26. package/dist/v3/index.mjs.map +1 -1
  27. package/dist/v3/otel/index.js +1 -1
  28. package/dist/v3/otel/index.js.map +1 -1
  29. package/dist/v3/otel/index.mjs +1 -1
  30. package/dist/v3/otel/index.mjs.map +1 -1
  31. package/dist/v3/prod/index.d.mts +3 -3
  32. package/dist/v3/prod/index.d.ts +3 -3
  33. package/dist/v3/schemas/index.d.mts +71 -5
  34. package/dist/v3/schemas/index.d.ts +71 -5
  35. package/dist/v3/schemas/index.js +31 -2
  36. package/dist/v3/schemas/index.js.map +1 -1
  37. package/dist/v3/schemas/index.mjs +30 -3
  38. package/dist/v3/schemas/index.mjs.map +1 -1
  39. package/dist/v3/utils/ioSerialization.d.mts +2 -1
  40. package/dist/v3/utils/ioSerialization.d.ts +2 -1
  41. package/dist/v3/utils/ioSerialization.js +41 -3
  42. package/dist/v3/utils/ioSerialization.js.map +1 -1
  43. package/dist/v3/utils/ioSerialization.mjs +41 -4
  44. package/dist/v3/utils/ioSerialization.mjs.map +1 -1
  45. package/dist/v3/utils/retries.d.mts +1 -1
  46. package/dist/v3/utils/retries.d.ts +1 -1
  47. package/dist/v3/workers/index.d.mts +6 -6
  48. package/dist/v3/workers/index.d.ts +6 -6
  49. package/dist/v3/workers/index.js +29 -3
  50. package/dist/v3/workers/index.js.map +1 -1
  51. package/dist/v3/workers/index.mjs +29 -3
  52. package/dist/v3/workers/index.mjs.map +1 -1
  53. package/dist/v3/zodfetch.d.mts +1 -1
  54. package/dist/v3/zodfetch.d.ts +1 -1
  55. package/package.json +1 -1
  56. package/dist/{api-sNoooMbT.d.ts → api--StDLb4h.d.ts} +153 -153
  57. package/dist/{api-Pl9fxB8v.d.mts → api-a39zAY3E.d.mts} +153 -153
@@ -1,7 +1,7 @@
1
- import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-CLW82lkt.mjs';
2
- import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-JvHJ83wv.mjs';
1
+ import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-B45g-vNI.mjs';
2
+ import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-248C7Ut6.mjs';
3
3
  import { ZodIpcConnection } from '../zodIpc.mjs';
4
- import { R as RuntimeManager } from '../../manager-KvCabW1a.mjs';
4
+ import { R as RuntimeManager } from '../../manager-q7bZZNwE.mjs';
5
5
  import 'zod';
6
6
  import '../zodSocket.mjs';
7
7
  import 'socket.io-client';
@@ -1,7 +1,7 @@
1
- import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-CLW82lkt.js';
2
- import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-JvHJ83wv.js';
1
+ import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-B45g-vNI.js';
2
+ import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-248C7Ut6.js';
3
3
  import { ZodIpcConnection } from '../zodIpc.js';
4
- import { R as RuntimeManager } from '../../manager-OBA35PzR.js';
4
+ import { R as RuntimeManager } from '../../manager-zf0yn2lA.js';
5
5
  import 'zod';
6
6
  import '../zodSocket.js';
7
7
  import 'socket.io-client';
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- export { B as BatchTaskRunExecutionResult, f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, a as TaskRunContext, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, T as TaskRunExecutionResult, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../../common-CLW82lkt.mjs';
3
- export { c as BackgroundWorkerClientMessages, B as BackgroundWorkerProperties, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../../messages-JvHJ83wv.mjs';
4
- import { P as Prettify } from '../../schemas-C9ssfehv.mjs';
5
- export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-C9ssfehv.mjs';
2
+ export { B as BatchTaskRunExecutionResult, f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, a as TaskRunContext, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, T as TaskRunExecutionResult, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../../common-B45g-vNI.mjs';
3
+ export { c as BackgroundWorkerClientMessages, B as BackgroundWorkerProperties, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../../messages-248C7Ut6.mjs';
4
+ import { P as Prettify } from '../../schemas-38ilA21d.mjs';
5
+ export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-38ilA21d.mjs';
6
6
 
7
7
  declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
8
8
  url: z.ZodString;
@@ -804,6 +804,8 @@ declare const CreateBackgroundWorkerResponse: z.ZodObject<{
804
804
  contentHash: string;
805
805
  }>;
806
806
  type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
807
+ declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
808
+ type RunTags = z.infer<typeof RunTags>;
807
809
  declare const TriggerTaskRequestBody: z.ZodObject<{
808
810
  payload: z.ZodAny;
809
811
  context: z.ZodAny;
@@ -1002,6 +1004,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1002
1004
  payloadType: z.ZodOptional<z.ZodString>;
1003
1005
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1004
1006
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1007
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1005
1008
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1006
1009
  }, "strip", z.ZodTypeAny, {
1007
1010
  dependentAttempt?: string | undefined;
@@ -1050,6 +1053,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1050
1053
  payloadType?: string | undefined;
1051
1054
  delay?: string | Date | undefined;
1052
1055
  ttl?: string | number | undefined;
1056
+ tags?: string | string[] | undefined;
1053
1057
  maxAttempts?: number | undefined;
1054
1058
  }, {
1055
1059
  dependentAttempt?: string | undefined;
@@ -1098,6 +1102,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1098
1102
  payloadType?: string | undefined;
1099
1103
  delay?: string | Date | undefined;
1100
1104
  ttl?: string | number | undefined;
1105
+ tags?: string | string[] | undefined;
1101
1106
  maxAttempts?: number | undefined;
1102
1107
  }>>;
1103
1108
  }, "strip", z.ZodTypeAny, {
@@ -1150,6 +1155,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1150
1155
  payloadType?: string | undefined;
1151
1156
  delay?: string | Date | undefined;
1152
1157
  ttl?: string | number | undefined;
1158
+ tags?: string | string[] | undefined;
1153
1159
  maxAttempts?: number | undefined;
1154
1160
  } | undefined;
1155
1161
  }, {
@@ -1202,6 +1208,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1202
1208
  payloadType?: string | undefined;
1203
1209
  delay?: string | Date | undefined;
1204
1210
  ttl?: string | number | undefined;
1211
+ tags?: string | string[] | undefined;
1205
1212
  maxAttempts?: number | undefined;
1206
1213
  } | undefined;
1207
1214
  }>;
@@ -1413,6 +1420,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1413
1420
  payloadType: z.ZodOptional<z.ZodString>;
1414
1421
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1415
1422
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1423
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1416
1424
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1417
1425
  }, "strip", z.ZodTypeAny, {
1418
1426
  dependentAttempt?: string | undefined;
@@ -1461,6 +1469,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1461
1469
  payloadType?: string | undefined;
1462
1470
  delay?: string | Date | undefined;
1463
1471
  ttl?: string | number | undefined;
1472
+ tags?: string | string[] | undefined;
1464
1473
  maxAttempts?: number | undefined;
1465
1474
  }, {
1466
1475
  dependentAttempt?: string | undefined;
@@ -1509,6 +1518,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1509
1518
  payloadType?: string | undefined;
1510
1519
  delay?: string | Date | undefined;
1511
1520
  ttl?: string | number | undefined;
1521
+ tags?: string | string[] | undefined;
1512
1522
  maxAttempts?: number | undefined;
1513
1523
  }>>;
1514
1524
  }, "strip", z.ZodTypeAny, {
@@ -1561,6 +1571,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1561
1571
  payloadType?: string | undefined;
1562
1572
  delay?: string | Date | undefined;
1563
1573
  ttl?: string | number | undefined;
1574
+ tags?: string | string[] | undefined;
1564
1575
  maxAttempts?: number | undefined;
1565
1576
  } | undefined;
1566
1577
  }, {
@@ -1613,6 +1624,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1613
1624
  payloadType?: string | undefined;
1614
1625
  delay?: string | Date | undefined;
1615
1626
  ttl?: string | number | undefined;
1627
+ tags?: string | string[] | undefined;
1616
1628
  maxAttempts?: number | undefined;
1617
1629
  } | undefined;
1618
1630
  }>, "many">;
@@ -1668,6 +1680,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1668
1680
  payloadType?: string | undefined;
1669
1681
  delay?: string | Date | undefined;
1670
1682
  ttl?: string | number | undefined;
1683
+ tags?: string | string[] | undefined;
1671
1684
  maxAttempts?: number | undefined;
1672
1685
  } | undefined;
1673
1686
  }[];
@@ -1723,6 +1736,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1723
1736
  payloadType?: string | undefined;
1724
1737
  delay?: string | Date | undefined;
1725
1738
  ttl?: string | number | undefined;
1739
+ tags?: string | string[] | undefined;
1726
1740
  maxAttempts?: number | undefined;
1727
1741
  } | undefined;
1728
1742
  }[];
@@ -1771,6 +1785,14 @@ declare const GetBatchResponseBody: z.ZodObject<{
1771
1785
  }[];
1772
1786
  }>;
1773
1787
  type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
1788
+ declare const AddTagsRequestBody: z.ZodObject<{
1789
+ tags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ tags: (string | string[]) & (string | string[] | undefined);
1792
+ }, {
1793
+ tags: (string | string[]) & (string | string[] | undefined);
1794
+ }>;
1795
+ type AddTagsRequestBody = z.infer<typeof AddTagsRequestBody>;
1774
1796
  declare const RescheduleRunRequestBody: z.ZodObject<{
1775
1797
  delay: z.ZodUnion<[z.ZodString, z.ZodDate]>;
1776
1798
  }, "strip", z.ZodTypeAny, {
@@ -2606,11 +2628,19 @@ declare const RetrieveRunResponse: z.ZodObject<{
2606
2628
  delayedUntil: z.ZodOptional<z.ZodDate>;
2607
2629
  ttl: z.ZodOptional<z.ZodString>;
2608
2630
  expiredAt: z.ZodOptional<z.ZodDate>;
2631
+ tags: z.ZodArray<z.ZodString, "many">;
2632
+ costInCents: z.ZodNumber;
2633
+ baseCostInCents: z.ZodNumber;
2634
+ durationMs: z.ZodNumber;
2609
2635
  }, "strip", z.ZodTypeAny, {
2610
2636
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2611
2637
  id: string;
2638
+ tags: string[];
2612
2639
  isTest: boolean;
2613
2640
  createdAt: Date;
2641
+ durationMs: number;
2642
+ costInCents: number;
2643
+ baseCostInCents: number;
2614
2644
  attempts: ({
2615
2645
  status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2616
2646
  id: string;
@@ -2656,8 +2686,12 @@ declare const RetrieveRunResponse: z.ZodObject<{
2656
2686
  }, {
2657
2687
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2658
2688
  id: string;
2689
+ tags: string[];
2659
2690
  isTest: boolean;
2660
2691
  createdAt: Date;
2692
+ durationMs: number;
2693
+ costInCents: number;
2694
+ baseCostInCents: number;
2661
2695
  attempts: ({
2662
2696
  status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2663
2697
  id: string;
@@ -2735,11 +2769,19 @@ declare const ListRunResponseItem: z.ZodObject<{
2735
2769
  delayedUntil: z.ZodOptional<z.ZodDate>;
2736
2770
  ttl: z.ZodOptional<z.ZodString>;
2737
2771
  expiredAt: z.ZodOptional<z.ZodDate>;
2772
+ tags: z.ZodArray<z.ZodString, "many">;
2773
+ costInCents: z.ZodNumber;
2774
+ baseCostInCents: z.ZodNumber;
2775
+ durationMs: z.ZodNumber;
2738
2776
  }, "strip", z.ZodTypeAny, {
2739
2777
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2740
2778
  id: string;
2779
+ tags: string[];
2741
2780
  isTest: boolean;
2742
2781
  createdAt: Date;
2782
+ durationMs: number;
2783
+ costInCents: number;
2784
+ baseCostInCents: number;
2743
2785
  updatedAt: Date;
2744
2786
  taskIdentifier: string;
2745
2787
  env: {
@@ -2763,8 +2805,12 @@ declare const ListRunResponseItem: z.ZodObject<{
2763
2805
  }, {
2764
2806
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2765
2807
  id: string;
2808
+ tags: string[];
2766
2809
  isTest: boolean;
2767
2810
  createdAt: Date;
2811
+ durationMs: number;
2812
+ costInCents: number;
2813
+ baseCostInCents: number;
2768
2814
  updatedAt: Date;
2769
2815
  taskIdentifier: string;
2770
2816
  env: {
@@ -2821,11 +2867,19 @@ declare const ListRunResponse: z.ZodObject<{
2821
2867
  delayedUntil: z.ZodOptional<z.ZodDate>;
2822
2868
  ttl: z.ZodOptional<z.ZodString>;
2823
2869
  expiredAt: z.ZodOptional<z.ZodDate>;
2870
+ tags: z.ZodArray<z.ZodString, "many">;
2871
+ costInCents: z.ZodNumber;
2872
+ baseCostInCents: z.ZodNumber;
2873
+ durationMs: z.ZodNumber;
2824
2874
  }, "strip", z.ZodTypeAny, {
2825
2875
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2826
2876
  id: string;
2877
+ tags: string[];
2827
2878
  isTest: boolean;
2828
2879
  createdAt: Date;
2880
+ durationMs: number;
2881
+ costInCents: number;
2882
+ baseCostInCents: number;
2829
2883
  updatedAt: Date;
2830
2884
  taskIdentifier: string;
2831
2885
  env: {
@@ -2849,8 +2903,12 @@ declare const ListRunResponse: z.ZodObject<{
2849
2903
  }, {
2850
2904
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2851
2905
  id: string;
2906
+ tags: string[];
2852
2907
  isTest: boolean;
2853
2908
  createdAt: Date;
2909
+ durationMs: number;
2910
+ costInCents: number;
2911
+ baseCostInCents: number;
2854
2912
  updatedAt: Date;
2855
2913
  taskIdentifier: string;
2856
2914
  env: {
@@ -2886,8 +2944,12 @@ declare const ListRunResponse: z.ZodObject<{
2886
2944
  data: {
2887
2945
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2888
2946
  id: string;
2947
+ tags: string[];
2889
2948
  isTest: boolean;
2890
2949
  createdAt: Date;
2950
+ durationMs: number;
2951
+ costInCents: number;
2952
+ baseCostInCents: number;
2891
2953
  updatedAt: Date;
2892
2954
  taskIdentifier: string;
2893
2955
  env: {
@@ -2917,8 +2979,12 @@ declare const ListRunResponse: z.ZodObject<{
2917
2979
  data: {
2918
2980
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2919
2981
  id: string;
2982
+ tags: string[];
2920
2983
  isTest: boolean;
2921
2984
  createdAt: Date;
2985
+ durationMs: number;
2986
+ costInCents: number;
2987
+ baseCostInCents: number;
2922
2988
  updatedAt: Date;
2923
2989
  taskIdentifier: string;
2924
2990
  env: {
@@ -4738,4 +4804,4 @@ declare const SpanMessagingEvent: z.ZodObject<{
4738
4804
  }>;
4739
4805
  type SpanMessagingEvent = z.infer<typeof SpanMessagingEvent>;
4740
4806
 
4741
- export { Accessory, AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListRunResponseItem, ListScheduleOptions, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RescheduleRunRequestBody, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunStatus, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskRequestBody, TriggerTaskResponse, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers };
4807
+ export { Accessory, AddTagsRequestBody, AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListRunResponseItem, ListScheduleOptions, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RescheduleRunRequestBody, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunStatus, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskRequestBody, TriggerTaskResponse, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers };
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- export { B as BatchTaskRunExecutionResult, f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, a as TaskRunContext, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, T as TaskRunExecutionResult, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../../common-CLW82lkt.js';
3
- export { c as BackgroundWorkerClientMessages, B as BackgroundWorkerProperties, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../../messages-JvHJ83wv.js';
4
- import { P as Prettify } from '../../schemas-C9ssfehv.js';
5
- export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-C9ssfehv.js';
2
+ export { B as BatchTaskRunExecutionResult, f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, a as TaskRunContext, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, T as TaskRunExecutionResult, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../../common-B45g-vNI.js';
3
+ export { c as BackgroundWorkerClientMessages, B as BackgroundWorkerProperties, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../../messages-248C7Ut6.js';
4
+ import { P as Prettify } from '../../schemas-38ilA21d.js';
5
+ export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-38ilA21d.js';
6
6
 
7
7
  declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
8
8
  url: z.ZodString;
@@ -804,6 +804,8 @@ declare const CreateBackgroundWorkerResponse: z.ZodObject<{
804
804
  contentHash: string;
805
805
  }>;
806
806
  type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
807
+ declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
808
+ type RunTags = z.infer<typeof RunTags>;
807
809
  declare const TriggerTaskRequestBody: z.ZodObject<{
808
810
  payload: z.ZodAny;
809
811
  context: z.ZodAny;
@@ -1002,6 +1004,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1002
1004
  payloadType: z.ZodOptional<z.ZodString>;
1003
1005
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1004
1006
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1007
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1005
1008
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1006
1009
  }, "strip", z.ZodTypeAny, {
1007
1010
  dependentAttempt?: string | undefined;
@@ -1050,6 +1053,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1050
1053
  payloadType?: string | undefined;
1051
1054
  delay?: string | Date | undefined;
1052
1055
  ttl?: string | number | undefined;
1056
+ tags?: string | string[] | undefined;
1053
1057
  maxAttempts?: number | undefined;
1054
1058
  }, {
1055
1059
  dependentAttempt?: string | undefined;
@@ -1098,6 +1102,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1098
1102
  payloadType?: string | undefined;
1099
1103
  delay?: string | Date | undefined;
1100
1104
  ttl?: string | number | undefined;
1105
+ tags?: string | string[] | undefined;
1101
1106
  maxAttempts?: number | undefined;
1102
1107
  }>>;
1103
1108
  }, "strip", z.ZodTypeAny, {
@@ -1150,6 +1155,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1150
1155
  payloadType?: string | undefined;
1151
1156
  delay?: string | Date | undefined;
1152
1157
  ttl?: string | number | undefined;
1158
+ tags?: string | string[] | undefined;
1153
1159
  maxAttempts?: number | undefined;
1154
1160
  } | undefined;
1155
1161
  }, {
@@ -1202,6 +1208,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1202
1208
  payloadType?: string | undefined;
1203
1209
  delay?: string | Date | undefined;
1204
1210
  ttl?: string | number | undefined;
1211
+ tags?: string | string[] | undefined;
1205
1212
  maxAttempts?: number | undefined;
1206
1213
  } | undefined;
1207
1214
  }>;
@@ -1413,6 +1420,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1413
1420
  payloadType: z.ZodOptional<z.ZodString>;
1414
1421
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1415
1422
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1423
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1416
1424
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1417
1425
  }, "strip", z.ZodTypeAny, {
1418
1426
  dependentAttempt?: string | undefined;
@@ -1461,6 +1469,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1461
1469
  payloadType?: string | undefined;
1462
1470
  delay?: string | Date | undefined;
1463
1471
  ttl?: string | number | undefined;
1472
+ tags?: string | string[] | undefined;
1464
1473
  maxAttempts?: number | undefined;
1465
1474
  }, {
1466
1475
  dependentAttempt?: string | undefined;
@@ -1509,6 +1518,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1509
1518
  payloadType?: string | undefined;
1510
1519
  delay?: string | Date | undefined;
1511
1520
  ttl?: string | number | undefined;
1521
+ tags?: string | string[] | undefined;
1512
1522
  maxAttempts?: number | undefined;
1513
1523
  }>>;
1514
1524
  }, "strip", z.ZodTypeAny, {
@@ -1561,6 +1571,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1561
1571
  payloadType?: string | undefined;
1562
1572
  delay?: string | Date | undefined;
1563
1573
  ttl?: string | number | undefined;
1574
+ tags?: string | string[] | undefined;
1564
1575
  maxAttempts?: number | undefined;
1565
1576
  } | undefined;
1566
1577
  }, {
@@ -1613,6 +1624,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1613
1624
  payloadType?: string | undefined;
1614
1625
  delay?: string | Date | undefined;
1615
1626
  ttl?: string | number | undefined;
1627
+ tags?: string | string[] | undefined;
1616
1628
  maxAttempts?: number | undefined;
1617
1629
  } | undefined;
1618
1630
  }>, "many">;
@@ -1668,6 +1680,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1668
1680
  payloadType?: string | undefined;
1669
1681
  delay?: string | Date | undefined;
1670
1682
  ttl?: string | number | undefined;
1683
+ tags?: string | string[] | undefined;
1671
1684
  maxAttempts?: number | undefined;
1672
1685
  } | undefined;
1673
1686
  }[];
@@ -1723,6 +1736,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1723
1736
  payloadType?: string | undefined;
1724
1737
  delay?: string | Date | undefined;
1725
1738
  ttl?: string | number | undefined;
1739
+ tags?: string | string[] | undefined;
1726
1740
  maxAttempts?: number | undefined;
1727
1741
  } | undefined;
1728
1742
  }[];
@@ -1771,6 +1785,14 @@ declare const GetBatchResponseBody: z.ZodObject<{
1771
1785
  }[];
1772
1786
  }>;
1773
1787
  type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
1788
+ declare const AddTagsRequestBody: z.ZodObject<{
1789
+ tags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ tags: (string | string[]) & (string | string[] | undefined);
1792
+ }, {
1793
+ tags: (string | string[]) & (string | string[] | undefined);
1794
+ }>;
1795
+ type AddTagsRequestBody = z.infer<typeof AddTagsRequestBody>;
1774
1796
  declare const RescheduleRunRequestBody: z.ZodObject<{
1775
1797
  delay: z.ZodUnion<[z.ZodString, z.ZodDate]>;
1776
1798
  }, "strip", z.ZodTypeAny, {
@@ -2606,11 +2628,19 @@ declare const RetrieveRunResponse: z.ZodObject<{
2606
2628
  delayedUntil: z.ZodOptional<z.ZodDate>;
2607
2629
  ttl: z.ZodOptional<z.ZodString>;
2608
2630
  expiredAt: z.ZodOptional<z.ZodDate>;
2631
+ tags: z.ZodArray<z.ZodString, "many">;
2632
+ costInCents: z.ZodNumber;
2633
+ baseCostInCents: z.ZodNumber;
2634
+ durationMs: z.ZodNumber;
2609
2635
  }, "strip", z.ZodTypeAny, {
2610
2636
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2611
2637
  id: string;
2638
+ tags: string[];
2612
2639
  isTest: boolean;
2613
2640
  createdAt: Date;
2641
+ durationMs: number;
2642
+ costInCents: number;
2643
+ baseCostInCents: number;
2614
2644
  attempts: ({
2615
2645
  status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2616
2646
  id: string;
@@ -2656,8 +2686,12 @@ declare const RetrieveRunResponse: z.ZodObject<{
2656
2686
  }, {
2657
2687
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2658
2688
  id: string;
2689
+ tags: string[];
2659
2690
  isTest: boolean;
2660
2691
  createdAt: Date;
2692
+ durationMs: number;
2693
+ costInCents: number;
2694
+ baseCostInCents: number;
2661
2695
  attempts: ({
2662
2696
  status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2663
2697
  id: string;
@@ -2735,11 +2769,19 @@ declare const ListRunResponseItem: z.ZodObject<{
2735
2769
  delayedUntil: z.ZodOptional<z.ZodDate>;
2736
2770
  ttl: z.ZodOptional<z.ZodString>;
2737
2771
  expiredAt: z.ZodOptional<z.ZodDate>;
2772
+ tags: z.ZodArray<z.ZodString, "many">;
2773
+ costInCents: z.ZodNumber;
2774
+ baseCostInCents: z.ZodNumber;
2775
+ durationMs: z.ZodNumber;
2738
2776
  }, "strip", z.ZodTypeAny, {
2739
2777
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2740
2778
  id: string;
2779
+ tags: string[];
2741
2780
  isTest: boolean;
2742
2781
  createdAt: Date;
2782
+ durationMs: number;
2783
+ costInCents: number;
2784
+ baseCostInCents: number;
2743
2785
  updatedAt: Date;
2744
2786
  taskIdentifier: string;
2745
2787
  env: {
@@ -2763,8 +2805,12 @@ declare const ListRunResponseItem: z.ZodObject<{
2763
2805
  }, {
2764
2806
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2765
2807
  id: string;
2808
+ tags: string[];
2766
2809
  isTest: boolean;
2767
2810
  createdAt: Date;
2811
+ durationMs: number;
2812
+ costInCents: number;
2813
+ baseCostInCents: number;
2768
2814
  updatedAt: Date;
2769
2815
  taskIdentifier: string;
2770
2816
  env: {
@@ -2821,11 +2867,19 @@ declare const ListRunResponse: z.ZodObject<{
2821
2867
  delayedUntil: z.ZodOptional<z.ZodDate>;
2822
2868
  ttl: z.ZodOptional<z.ZodString>;
2823
2869
  expiredAt: z.ZodOptional<z.ZodDate>;
2870
+ tags: z.ZodArray<z.ZodString, "many">;
2871
+ costInCents: z.ZodNumber;
2872
+ baseCostInCents: z.ZodNumber;
2873
+ durationMs: z.ZodNumber;
2824
2874
  }, "strip", z.ZodTypeAny, {
2825
2875
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2826
2876
  id: string;
2877
+ tags: string[];
2827
2878
  isTest: boolean;
2828
2879
  createdAt: Date;
2880
+ durationMs: number;
2881
+ costInCents: number;
2882
+ baseCostInCents: number;
2829
2883
  updatedAt: Date;
2830
2884
  taskIdentifier: string;
2831
2885
  env: {
@@ -2849,8 +2903,12 @@ declare const ListRunResponse: z.ZodObject<{
2849
2903
  }, {
2850
2904
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2851
2905
  id: string;
2906
+ tags: string[];
2852
2907
  isTest: boolean;
2853
2908
  createdAt: Date;
2909
+ durationMs: number;
2910
+ costInCents: number;
2911
+ baseCostInCents: number;
2854
2912
  updatedAt: Date;
2855
2913
  taskIdentifier: string;
2856
2914
  env: {
@@ -2886,8 +2944,12 @@ declare const ListRunResponse: z.ZodObject<{
2886
2944
  data: {
2887
2945
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2888
2946
  id: string;
2947
+ tags: string[];
2889
2948
  isTest: boolean;
2890
2949
  createdAt: Date;
2950
+ durationMs: number;
2951
+ costInCents: number;
2952
+ baseCostInCents: number;
2891
2953
  updatedAt: Date;
2892
2954
  taskIdentifier: string;
2893
2955
  env: {
@@ -2917,8 +2979,12 @@ declare const ListRunResponse: z.ZodObject<{
2917
2979
  data: {
2918
2980
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2919
2981
  id: string;
2982
+ tags: string[];
2920
2983
  isTest: boolean;
2921
2984
  createdAt: Date;
2985
+ durationMs: number;
2986
+ costInCents: number;
2987
+ baseCostInCents: number;
2922
2988
  updatedAt: Date;
2923
2989
  taskIdentifier: string;
2924
2990
  env: {
@@ -4738,4 +4804,4 @@ declare const SpanMessagingEvent: z.ZodObject<{
4738
4804
  }>;
4739
4805
  type SpanMessagingEvent = z.infer<typeof SpanMessagingEvent>;
4740
4806
 
4741
- export { Accessory, AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListRunResponseItem, ListScheduleOptions, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RescheduleRunRequestBody, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunStatus, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskRequestBody, TriggerTaskResponse, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers };
4807
+ export { Accessory, AddTagsRequestBody, AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListRunResponseItem, ListScheduleOptions, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RescheduleRunRequestBody, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunStatus, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskRequestBody, TriggerTaskResponse, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers };
@@ -119,7 +119,8 @@ var TaskRun = zod.z.object({
119
119
  maxAttempts: zod.z.number().optional(),
120
120
  durationMs: zod.z.number().default(0),
121
121
  costInCents: zod.z.number().default(0),
122
- baseCostInCents: zod.z.number().default(0)
122
+ baseCostInCents: zod.z.number().default(0),
123
+ version: zod.z.string().optional()
123
124
  });
124
125
  var TaskRunExecutionTask = zod.z.object({
125
126
  id: zod.z.string(),
@@ -484,6 +485,11 @@ var CreateBackgroundWorkerResponse = zod.z.object({
484
485
  version: zod.z.string(),
485
486
  contentHash: zod.z.string()
486
487
  });
488
+ var RunTag = zod.z.string().max(64, "Tags must be less than 64 characters");
489
+ var RunTags = zod.z.union([
490
+ RunTag,
491
+ RunTag.array()
492
+ ]);
487
493
  var TriggerTaskRequestBody = zod.z.object({
488
494
  payload: zod.z.any(),
489
495
  context: zod.z.any(),
@@ -498,6 +504,7 @@ var TriggerTaskRequestBody = zod.z.object({
498
504
  payloadType: zod.z.string().optional(),
499
505
  delay: zod.z.string().or(zod.z.coerce.date()).optional(),
500
506
  ttl: zod.z.string().or(zod.z.number().nonnegative().int()).optional(),
507
+ tags: RunTags.optional(),
501
508
  maxAttempts: zod.z.number().int().optional()
502
509
  }).optional()
503
510
  });
@@ -525,6 +532,9 @@ var GetBatchResponseBody = zod.z.object({
525
532
  ])
526
533
  }))
527
534
  });
535
+ var AddTagsRequestBody = zod.z.object({
536
+ tags: RunTags
537
+ });
528
538
  var RescheduleRunRequestBody = zod.z.object({
529
539
  delay: zod.z.string().or(zod.z.coerce.date())
530
540
  });
@@ -787,7 +797,11 @@ var CommonRunFields = {
787
797
  finishedAt: zod.z.coerce.date().optional(),
788
798
  delayedUntil: zod.z.coerce.date().optional(),
789
799
  ttl: zod.z.string().optional(),
790
- expiredAt: zod.z.coerce.date().optional()
800
+ expiredAt: zod.z.coerce.date().optional(),
801
+ tags: zod.z.string().array(),
802
+ costInCents: zod.z.number(),
803
+ baseCostInCents: zod.z.number(),
804
+ durationMs: zod.z.number()
791
805
  };
792
806
  var RetrieveRunResponse = zod.z.object({
793
807
  ...CommonRunFields,
@@ -1177,6 +1191,19 @@ var PlatformToProviderMessages = {
1177
1191
  projectId: zod.z.string(),
1178
1192
  runId: zod.z.string()
1179
1193
  })
1194
+ },
1195
+ PRE_PULL_DEPLOYMENT: {
1196
+ message: zod.z.object({
1197
+ version: zod.z.literal("v1").default("v1"),
1198
+ imageRef: zod.z.string(),
1199
+ shortCode: zod.z.string(),
1200
+ // identifiers
1201
+ envId: zod.z.string(),
1202
+ envType: EnvironmentType,
1203
+ orgId: zod.z.string(),
1204
+ projectId: zod.z.string(),
1205
+ deploymentId: zod.z.string()
1206
+ })
1180
1207
  }
1181
1208
  };
1182
1209
  var CreateWorkerMessage = zod.z.object({
@@ -1897,6 +1924,7 @@ var SpanMessagingEvent = zod.z.object({
1897
1924
  destination: zod.z.string().optional()
1898
1925
  });
1899
1926
 
1927
+ exports.AddTagsRequestBody = AddTagsRequestBody;
1900
1928
  exports.AttemptStatus = AttemptStatus;
1901
1929
  exports.BackgroundWorkerClientMessages = BackgroundWorkerClientMessages;
1902
1930
  exports.BackgroundWorkerMetadata = BackgroundWorkerMetadata;
@@ -1979,6 +2007,7 @@ exports.RetryOptions = RetryOptions;
1979
2007
  exports.RunEnvironmentDetails = RunEnvironmentDetails;
1980
2008
  exports.RunScheduleDetails = RunScheduleDetails;
1981
2009
  exports.RunStatus = RunStatus;
2010
+ exports.RunTags = RunTags;
1982
2011
  exports.ScheduleGenerator = ScheduleGenerator;
1983
2012
  exports.ScheduleMetadata = ScheduleMetadata;
1984
2013
  exports.ScheduleObject = ScheduleObject;