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

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.
@@ -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 };
@@ -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 };
@@ -484,6 +484,11 @@ var CreateBackgroundWorkerResponse = zod.z.object({
484
484
  version: zod.z.string(),
485
485
  contentHash: zod.z.string()
486
486
  });
487
+ var RunTag = zod.z.string().max(64, "Tags must be less than 64 characters");
488
+ var RunTags = zod.z.union([
489
+ RunTag,
490
+ RunTag.array().max(3, "You can only set a maximum of 3 tags on a run.")
491
+ ]);
487
492
  var TriggerTaskRequestBody = zod.z.object({
488
493
  payload: zod.z.any(),
489
494
  context: zod.z.any(),
@@ -498,6 +503,7 @@ var TriggerTaskRequestBody = zod.z.object({
498
503
  payloadType: zod.z.string().optional(),
499
504
  delay: zod.z.string().or(zod.z.coerce.date()).optional(),
500
505
  ttl: zod.z.string().or(zod.z.number().nonnegative().int()).optional(),
506
+ tags: RunTags.optional(),
501
507
  maxAttempts: zod.z.number().int().optional()
502
508
  }).optional()
503
509
  });
@@ -525,6 +531,9 @@ var GetBatchResponseBody = zod.z.object({
525
531
  ])
526
532
  }))
527
533
  });
534
+ var AddTagsRequestBody = zod.z.object({
535
+ tags: RunTags
536
+ });
528
537
  var RescheduleRunRequestBody = zod.z.object({
529
538
  delay: zod.z.string().or(zod.z.coerce.date())
530
539
  });
@@ -787,7 +796,11 @@ var CommonRunFields = {
787
796
  finishedAt: zod.z.coerce.date().optional(),
788
797
  delayedUntil: zod.z.coerce.date().optional(),
789
798
  ttl: zod.z.string().optional(),
790
- expiredAt: zod.z.coerce.date().optional()
799
+ expiredAt: zod.z.coerce.date().optional(),
800
+ tags: zod.z.string().array(),
801
+ costInCents: zod.z.number(),
802
+ baseCostInCents: zod.z.number(),
803
+ durationMs: zod.z.number()
791
804
  };
792
805
  var RetrieveRunResponse = zod.z.object({
793
806
  ...CommonRunFields,
@@ -1897,6 +1910,7 @@ var SpanMessagingEvent = zod.z.object({
1897
1910
  destination: zod.z.string().optional()
1898
1911
  });
1899
1912
 
1913
+ exports.AddTagsRequestBody = AddTagsRequestBody;
1900
1914
  exports.AttemptStatus = AttemptStatus;
1901
1915
  exports.BackgroundWorkerClientMessages = BackgroundWorkerClientMessages;
1902
1916
  exports.BackgroundWorkerMetadata = BackgroundWorkerMetadata;
@@ -1979,6 +1993,7 @@ exports.RetryOptions = RetryOptions;
1979
1993
  exports.RunEnvironmentDetails = RunEnvironmentDetails;
1980
1994
  exports.RunScheduleDetails = RunScheduleDetails;
1981
1995
  exports.RunStatus = RunStatus;
1996
+ exports.RunTags = RunTags;
1982
1997
  exports.ScheduleGenerator = ScheduleGenerator;
1983
1998
  exports.ScheduleMetadata = ScheduleMetadata;
1984
1999
  exports.ScheduleObject = ScheduleObject;