@trigger.dev/core 0.0.0-prerelease-20240723165848 → 0.0.0-prerelease-20240724110801

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 (47) hide show
  1. package/dist/{catalog-h79CG5Wy.d.ts → catalog-1uqiDu4t.d.ts} +2 -2
  2. package/dist/{catalog-H7yFiZ60.d.mts → catalog-HfeyVfYa.d.mts} +2 -2
  3. package/dist/{manager-KvCabW1a.d.mts → manager-CkUnBH2E.d.mts} +1 -1
  4. package/dist/{manager-OBA35PzR.d.ts → manager-y-nT-ymn.d.ts} +1 -1
  5. package/dist/v3/dev/index.d.mts +2 -2
  6. package/dist/v3/dev/index.d.ts +2 -2
  7. package/dist/v3/errors.d.mts +1 -1
  8. package/dist/v3/errors.d.ts +1 -1
  9. package/dist/v3/index.d.mts +9 -9
  10. package/dist/v3/index.d.ts +9 -9
  11. package/dist/v3/index.js +2 -13
  12. package/dist/v3/index.js.map +1 -1
  13. package/dist/v3/index.mjs +2 -13
  14. package/dist/v3/index.mjs.map +1 -1
  15. package/dist/v3/otel/index.js +1 -1
  16. package/dist/v3/otel/index.js.map +1 -1
  17. package/dist/v3/otel/index.mjs +1 -1
  18. package/dist/v3/otel/index.mjs.map +1 -1
  19. package/dist/v3/prod/index.d.mts +3 -3
  20. package/dist/v3/prod/index.d.ts +3 -3
  21. package/dist/v3/schemas/index.d.mts +36 -36
  22. package/dist/v3/schemas/index.d.ts +36 -36
  23. package/dist/v3/schemas/index.js +1 -12
  24. package/dist/v3/schemas/index.js.map +1 -1
  25. package/dist/v3/schemas/index.mjs +1 -12
  26. package/dist/v3/schemas/index.mjs.map +1 -1
  27. package/dist/v3/utils/ioSerialization.js +2 -13
  28. package/dist/v3/utils/ioSerialization.js.map +1 -1
  29. package/dist/v3/utils/ioSerialization.mjs +2 -13
  30. package/dist/v3/utils/ioSerialization.mjs.map +1 -1
  31. package/dist/v3/utils/retries.d.mts +1 -1
  32. package/dist/v3/utils/retries.d.ts +1 -1
  33. package/dist/v3/workers/index.d.mts +6 -6
  34. package/dist/v3/workers/index.d.ts +6 -6
  35. package/dist/v3/workers/index.js +2 -13
  36. package/dist/v3/workers/index.js.map +1 -1
  37. package/dist/v3/workers/index.mjs +2 -13
  38. package/dist/v3/workers/index.mjs.map +1 -1
  39. package/dist/v3/zodfetch.d.mts +1 -1
  40. package/dist/v3/zodfetch.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/{common-CLW82lkt.d.mts → common-ufw5MzBe.d.mts} +66 -66
  43. package/dist/{common-CLW82lkt.d.ts → common-ufw5MzBe.d.ts} +66 -66
  44. package/dist/{messages-JvHJ83wv.d.mts → messages-7b5K4qKr.d.mts} +666 -666
  45. package/dist/{messages-JvHJ83wv.d.ts → messages-7b5K4qKr.d.ts} +666 -666
  46. package/dist/{schemas-C9ssfehv.d.mts → schemas-kjSfajbV.d.mts} +48 -48
  47. package/dist/{schemas-C9ssfehv.d.ts → schemas-kjSfajbV.d.ts} +48 -48
@@ -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-ufw5MzBe.mjs';
2
+ import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-7b5K4qKr.mjs';
3
3
  import { ZodIpcConnection } from '../zodIpc.mjs';
4
- import { R as RuntimeManager } from '../../manager-KvCabW1a.mjs';
4
+ import { R as RuntimeManager } from '../../manager-CkUnBH2E.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-ufw5MzBe.js';
2
+ import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-7b5K4qKr.js';
3
3
  import { ZodIpcConnection } from '../zodIpc.js';
4
- import { R as RuntimeManager } from '../../manager-OBA35PzR.js';
4
+ import { R as RuntimeManager } from '../../manager-y-nT-ymn.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-ufw5MzBe.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-7b5K4qKr.mjs';
4
+ import { P as Prettify } from '../../schemas-kjSfajbV.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-kjSfajbV.mjs';
6
6
 
7
7
  declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
8
8
  url: z.ZodString;
@@ -84,9 +84,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
84
84
  title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
+ name: string;
87
88
  id: string;
88
89
  createdAt: Date;
89
- name: string;
90
90
  slug: string;
91
91
  organization: {
92
92
  id: string;
@@ -96,9 +96,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
96
96
  };
97
97
  externalRef: string;
98
98
  }, {
99
+ name: string;
99
100
  id: string;
100
101
  createdAt: Date;
101
- name: string;
102
102
  slug: string;
103
103
  organization: {
104
104
  id: string;
@@ -132,9 +132,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
132
132
  title: string;
133
133
  }>;
134
134
  }, "strip", z.ZodTypeAny, {
135
+ name: string;
135
136
  id: string;
136
137
  createdAt: Date;
137
- name: string;
138
138
  slug: string;
139
139
  organization: {
140
140
  id: string;
@@ -144,9 +144,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
144
144
  };
145
145
  externalRef: string;
146
146
  }, {
147
+ name: string;
147
148
  id: string;
148
149
  createdAt: Date;
149
- name: string;
150
150
  slug: string;
151
151
  organization: {
152
152
  id: string;
@@ -804,7 +804,7 @@ 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.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>;
807
+ declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
808
808
  type RunTags = z.infer<typeof RunTags>;
809
809
  declare const TriggerTaskRequestBody: z.ZodObject<{
810
810
  payload: z.ZodAny;
@@ -1004,7 +1004,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1004
1004
  payloadType: z.ZodOptional<z.ZodString>;
1005
1005
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1006
1006
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1007
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>>;
1007
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1008
1008
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1009
1009
  }, "strip", z.ZodTypeAny, {
1010
1010
  dependentAttempt?: string | undefined;
@@ -1053,7 +1053,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1053
1053
  payloadType?: string | undefined;
1054
1054
  delay?: string | Date | undefined;
1055
1055
  ttl?: string | number | undefined;
1056
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1056
+ tags?: string | string[] | undefined;
1057
1057
  maxAttempts?: number | undefined;
1058
1058
  }, {
1059
1059
  dependentAttempt?: string | undefined;
@@ -1102,7 +1102,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1102
1102
  payloadType?: string | undefined;
1103
1103
  delay?: string | Date | undefined;
1104
1104
  ttl?: string | number | undefined;
1105
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1105
+ tags?: string | string[] | undefined;
1106
1106
  maxAttempts?: number | undefined;
1107
1107
  }>>;
1108
1108
  }, "strip", z.ZodTypeAny, {
@@ -1155,7 +1155,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1155
1155
  payloadType?: string | undefined;
1156
1156
  delay?: string | Date | undefined;
1157
1157
  ttl?: string | number | undefined;
1158
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1158
+ tags?: string | string[] | undefined;
1159
1159
  maxAttempts?: number | undefined;
1160
1160
  } | undefined;
1161
1161
  }, {
@@ -1208,7 +1208,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1208
1208
  payloadType?: string | undefined;
1209
1209
  delay?: string | Date | undefined;
1210
1210
  ttl?: string | number | undefined;
1211
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1211
+ tags?: string | string[] | undefined;
1212
1212
  maxAttempts?: number | undefined;
1213
1213
  } | undefined;
1214
1214
  }>;
@@ -1420,7 +1420,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1420
1420
  payloadType: z.ZodOptional<z.ZodString>;
1421
1421
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1422
1422
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1423
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>>;
1423
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1424
1424
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1425
1425
  }, "strip", z.ZodTypeAny, {
1426
1426
  dependentAttempt?: string | undefined;
@@ -1469,7 +1469,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1469
1469
  payloadType?: string | undefined;
1470
1470
  delay?: string | Date | undefined;
1471
1471
  ttl?: string | number | undefined;
1472
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1472
+ tags?: string | string[] | undefined;
1473
1473
  maxAttempts?: number | undefined;
1474
1474
  }, {
1475
1475
  dependentAttempt?: string | undefined;
@@ -1518,7 +1518,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1518
1518
  payloadType?: string | undefined;
1519
1519
  delay?: string | Date | undefined;
1520
1520
  ttl?: string | number | undefined;
1521
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1521
+ tags?: string | string[] | undefined;
1522
1522
  maxAttempts?: number | undefined;
1523
1523
  }>>;
1524
1524
  }, "strip", z.ZodTypeAny, {
@@ -1571,7 +1571,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1571
1571
  payloadType?: string | undefined;
1572
1572
  delay?: string | Date | undefined;
1573
1573
  ttl?: string | number | undefined;
1574
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1574
+ tags?: string | string[] | undefined;
1575
1575
  maxAttempts?: number | undefined;
1576
1576
  } | undefined;
1577
1577
  }, {
@@ -1624,7 +1624,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1624
1624
  payloadType?: string | undefined;
1625
1625
  delay?: string | Date | undefined;
1626
1626
  ttl?: string | number | undefined;
1627
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1627
+ tags?: string | string[] | undefined;
1628
1628
  maxAttempts?: number | undefined;
1629
1629
  } | undefined;
1630
1630
  }>, "many">;
@@ -1680,7 +1680,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1680
1680
  payloadType?: string | undefined;
1681
1681
  delay?: string | Date | undefined;
1682
1682
  ttl?: string | number | undefined;
1683
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1683
+ tags?: string | string[] | undefined;
1684
1684
  maxAttempts?: number | undefined;
1685
1685
  } | undefined;
1686
1686
  }[];
@@ -1736,7 +1736,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1736
1736
  payloadType?: string | undefined;
1737
1737
  delay?: string | Date | undefined;
1738
1738
  ttl?: string | number | undefined;
1739
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1739
+ tags?: string | string[] | undefined;
1740
1740
  maxAttempts?: number | undefined;
1741
1741
  } | undefined;
1742
1742
  }[];
@@ -1786,11 +1786,11 @@ declare const GetBatchResponseBody: z.ZodObject<{
1786
1786
  }>;
1787
1787
  type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
1788
1788
  declare const AddTagsRequestBody: z.ZodObject<{
1789
- tags: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>;
1789
+ tags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1790
1790
  }, "strip", z.ZodTypeAny, {
1791
- tags: string | [string] | [string, string] | [string, string, string] | (string & [string]) | (string & [string, string]) | (string & [string, string, string]) | ([string] & string) | ([string, string] & string) | ([string, string, string] & string);
1791
+ tags: (string | string[]) & (string | string[] | undefined);
1792
1792
  }, {
1793
- tags: string | [string] | [string, string] | [string, string, string] | (string & [string]) | (string & [string, string]) | (string & [string, string, string]) | ([string] & string) | ([string, string] & string) | ([string, string, string] & string);
1793
+ tags: (string | string[]) & (string | string[] | undefined);
1794
1794
  }>;
1795
1795
  type AddTagsRequestBody = z.infer<typeof AddTagsRequestBody>;
1796
1796
  declare const RescheduleRunRequestBody: z.ZodObject<{
@@ -2477,12 +2477,12 @@ declare const RunEnvironmentDetails: z.ZodObject<{
2477
2477
  name: z.ZodString;
2478
2478
  user: z.ZodOptional<z.ZodString>;
2479
2479
  }, "strip", z.ZodTypeAny, {
2480
- id: string;
2481
2480
  name: string;
2481
+ id: string;
2482
2482
  user?: string | undefined;
2483
2483
  }, {
2484
- id: string;
2485
2484
  name: string;
2485
+ id: string;
2486
2486
  user?: string | undefined;
2487
2487
  }>;
2488
2488
  type RunEnvironmentDetails = z.infer<typeof RunEnvironmentDetails>;
@@ -2742,12 +2742,12 @@ declare const ListRunResponseItem: z.ZodObject<{
2742
2742
  name: z.ZodString;
2743
2743
  user: z.ZodOptional<z.ZodString>;
2744
2744
  }, "strip", z.ZodTypeAny, {
2745
- id: string;
2746
2745
  name: string;
2746
+ id: string;
2747
2747
  user?: string | undefined;
2748
2748
  }, {
2749
- id: string;
2750
2749
  name: string;
2750
+ id: string;
2751
2751
  user?: string | undefined;
2752
2752
  }>;
2753
2753
  id: z.ZodString;
@@ -2785,8 +2785,8 @@ declare const ListRunResponseItem: z.ZodObject<{
2785
2785
  updatedAt: Date;
2786
2786
  taskIdentifier: string;
2787
2787
  env: {
2788
- id: string;
2789
2788
  name: string;
2789
+ id: string;
2790
2790
  user?: string | undefined;
2791
2791
  };
2792
2792
  isQueued: boolean;
@@ -2814,8 +2814,8 @@ declare const ListRunResponseItem: z.ZodObject<{
2814
2814
  updatedAt: Date;
2815
2815
  taskIdentifier: string;
2816
2816
  env: {
2817
- id: string;
2818
2817
  name: string;
2818
+ id: string;
2819
2819
  user?: string | undefined;
2820
2820
  };
2821
2821
  isQueued: boolean;
@@ -2840,12 +2840,12 @@ declare const ListRunResponse: z.ZodObject<{
2840
2840
  name: z.ZodString;
2841
2841
  user: z.ZodOptional<z.ZodString>;
2842
2842
  }, "strip", z.ZodTypeAny, {
2843
- id: string;
2844
2843
  name: string;
2844
+ id: string;
2845
2845
  user?: string | undefined;
2846
2846
  }, {
2847
- id: string;
2848
2847
  name: string;
2848
+ id: string;
2849
2849
  user?: string | undefined;
2850
2850
  }>;
2851
2851
  id: z.ZodString;
@@ -2883,8 +2883,8 @@ declare const ListRunResponse: z.ZodObject<{
2883
2883
  updatedAt: Date;
2884
2884
  taskIdentifier: string;
2885
2885
  env: {
2886
- id: string;
2887
2886
  name: string;
2887
+ id: string;
2888
2888
  user?: string | undefined;
2889
2889
  };
2890
2890
  isQueued: boolean;
@@ -2912,8 +2912,8 @@ declare const ListRunResponse: z.ZodObject<{
2912
2912
  updatedAt: Date;
2913
2913
  taskIdentifier: string;
2914
2914
  env: {
2915
- id: string;
2916
2915
  name: string;
2916
+ id: string;
2917
2917
  user?: string | undefined;
2918
2918
  };
2919
2919
  isQueued: boolean;
@@ -2953,8 +2953,8 @@ declare const ListRunResponse: z.ZodObject<{
2953
2953
  updatedAt: Date;
2954
2954
  taskIdentifier: string;
2955
2955
  env: {
2956
- id: string;
2957
2956
  name: string;
2957
+ id: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
2960
  isQueued: boolean;
@@ -2988,8 +2988,8 @@ declare const ListRunResponse: z.ZodObject<{
2988
2988
  updatedAt: Date;
2989
2989
  taskIdentifier: string;
2990
2990
  env: {
2991
- id: string;
2992
2991
  name: string;
2992
+ id: string;
2993
2993
  user?: string | undefined;
2994
2994
  };
2995
2995
  isQueued: boolean;
@@ -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-ufw5MzBe.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-7b5K4qKr.js';
4
+ import { P as Prettify } from '../../schemas-kjSfajbV.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-kjSfajbV.js';
6
6
 
7
7
  declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
8
8
  url: z.ZodString;
@@ -84,9 +84,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
84
84
  title: string;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
+ name: string;
87
88
  id: string;
88
89
  createdAt: Date;
89
- name: string;
90
90
  slug: string;
91
91
  organization: {
92
92
  id: string;
@@ -96,9 +96,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
96
96
  };
97
97
  externalRef: string;
98
98
  }, {
99
+ name: string;
99
100
  id: string;
100
101
  createdAt: Date;
101
- name: string;
102
102
  slug: string;
103
103
  organization: {
104
104
  id: string;
@@ -132,9 +132,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
132
132
  title: string;
133
133
  }>;
134
134
  }, "strip", z.ZodTypeAny, {
135
+ name: string;
135
136
  id: string;
136
137
  createdAt: Date;
137
- name: string;
138
138
  slug: string;
139
139
  organization: {
140
140
  id: string;
@@ -144,9 +144,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
144
144
  };
145
145
  externalRef: string;
146
146
  }, {
147
+ name: string;
147
148
  id: string;
148
149
  createdAt: Date;
149
- name: string;
150
150
  slug: string;
151
151
  organization: {
152
152
  id: string;
@@ -804,7 +804,7 @@ 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.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>;
807
+ declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
808
808
  type RunTags = z.infer<typeof RunTags>;
809
809
  declare const TriggerTaskRequestBody: z.ZodObject<{
810
810
  payload: z.ZodAny;
@@ -1004,7 +1004,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1004
1004
  payloadType: z.ZodOptional<z.ZodString>;
1005
1005
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1006
1006
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1007
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>>;
1007
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1008
1008
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1009
1009
  }, "strip", z.ZodTypeAny, {
1010
1010
  dependentAttempt?: string | undefined;
@@ -1053,7 +1053,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1053
1053
  payloadType?: string | undefined;
1054
1054
  delay?: string | Date | undefined;
1055
1055
  ttl?: string | number | undefined;
1056
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1056
+ tags?: string | string[] | undefined;
1057
1057
  maxAttempts?: number | undefined;
1058
1058
  }, {
1059
1059
  dependentAttempt?: string | undefined;
@@ -1102,7 +1102,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1102
1102
  payloadType?: string | undefined;
1103
1103
  delay?: string | Date | undefined;
1104
1104
  ttl?: string | number | undefined;
1105
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1105
+ tags?: string | string[] | undefined;
1106
1106
  maxAttempts?: number | undefined;
1107
1107
  }>>;
1108
1108
  }, "strip", z.ZodTypeAny, {
@@ -1155,7 +1155,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1155
1155
  payloadType?: string | undefined;
1156
1156
  delay?: string | Date | undefined;
1157
1157
  ttl?: string | number | undefined;
1158
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1158
+ tags?: string | string[] | undefined;
1159
1159
  maxAttempts?: number | undefined;
1160
1160
  } | undefined;
1161
1161
  }, {
@@ -1208,7 +1208,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1208
1208
  payloadType?: string | undefined;
1209
1209
  delay?: string | Date | undefined;
1210
1210
  ttl?: string | number | undefined;
1211
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1211
+ tags?: string | string[] | undefined;
1212
1212
  maxAttempts?: number | undefined;
1213
1213
  } | undefined;
1214
1214
  }>;
@@ -1420,7 +1420,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1420
1420
  payloadType: z.ZodOptional<z.ZodString>;
1421
1421
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1422
1422
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1423
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>>;
1423
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1424
1424
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1425
1425
  }, "strip", z.ZodTypeAny, {
1426
1426
  dependentAttempt?: string | undefined;
@@ -1469,7 +1469,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1469
1469
  payloadType?: string | undefined;
1470
1470
  delay?: string | Date | undefined;
1471
1471
  ttl?: string | number | undefined;
1472
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1472
+ tags?: string | string[] | undefined;
1473
1473
  maxAttempts?: number | undefined;
1474
1474
  }, {
1475
1475
  dependentAttempt?: string | undefined;
@@ -1518,7 +1518,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1518
1518
  payloadType?: string | undefined;
1519
1519
  delay?: string | Date | undefined;
1520
1520
  ttl?: string | number | undefined;
1521
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1521
+ tags?: string | string[] | undefined;
1522
1522
  maxAttempts?: number | undefined;
1523
1523
  }>>;
1524
1524
  }, "strip", z.ZodTypeAny, {
@@ -1571,7 +1571,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1571
1571
  payloadType?: string | undefined;
1572
1572
  delay?: string | Date | undefined;
1573
1573
  ttl?: string | number | undefined;
1574
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1574
+ tags?: string | string[] | undefined;
1575
1575
  maxAttempts?: number | undefined;
1576
1576
  } | undefined;
1577
1577
  }, {
@@ -1624,7 +1624,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1624
1624
  payloadType?: string | undefined;
1625
1625
  delay?: string | Date | undefined;
1626
1626
  ttl?: string | number | undefined;
1627
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1627
+ tags?: string | string[] | undefined;
1628
1628
  maxAttempts?: number | undefined;
1629
1629
  } | undefined;
1630
1630
  }>, "many">;
@@ -1680,7 +1680,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1680
1680
  payloadType?: string | undefined;
1681
1681
  delay?: string | Date | undefined;
1682
1682
  ttl?: string | number | undefined;
1683
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1683
+ tags?: string | string[] | undefined;
1684
1684
  maxAttempts?: number | undefined;
1685
1685
  } | undefined;
1686
1686
  }[];
@@ -1736,7 +1736,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1736
1736
  payloadType?: string | undefined;
1737
1737
  delay?: string | Date | undefined;
1738
1738
  ttl?: string | number | undefined;
1739
- tags?: string | [string] | [string, string] | [string, string, string] | undefined;
1739
+ tags?: string | string[] | undefined;
1740
1740
  maxAttempts?: number | undefined;
1741
1741
  } | undefined;
1742
1742
  }[];
@@ -1786,11 +1786,11 @@ declare const GetBatchResponseBody: z.ZodObject<{
1786
1786
  }>;
1787
1787
  type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
1788
1788
  declare const AddTagsRequestBody: z.ZodObject<{
1789
- tags: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString, z.ZodString], null>]>;
1789
+ tags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1790
1790
  }, "strip", z.ZodTypeAny, {
1791
- tags: string | [string] | [string, string] | [string, string, string] | (string & [string]) | (string & [string, string]) | (string & [string, string, string]) | ([string] & string) | ([string, string] & string) | ([string, string, string] & string);
1791
+ tags: (string | string[]) & (string | string[] | undefined);
1792
1792
  }, {
1793
- tags: string | [string] | [string, string] | [string, string, string] | (string & [string]) | (string & [string, string]) | (string & [string, string, string]) | ([string] & string) | ([string, string] & string) | ([string, string, string] & string);
1793
+ tags: (string | string[]) & (string | string[] | undefined);
1794
1794
  }>;
1795
1795
  type AddTagsRequestBody = z.infer<typeof AddTagsRequestBody>;
1796
1796
  declare const RescheduleRunRequestBody: z.ZodObject<{
@@ -2477,12 +2477,12 @@ declare const RunEnvironmentDetails: z.ZodObject<{
2477
2477
  name: z.ZodString;
2478
2478
  user: z.ZodOptional<z.ZodString>;
2479
2479
  }, "strip", z.ZodTypeAny, {
2480
- id: string;
2481
2480
  name: string;
2481
+ id: string;
2482
2482
  user?: string | undefined;
2483
2483
  }, {
2484
- id: string;
2485
2484
  name: string;
2485
+ id: string;
2486
2486
  user?: string | undefined;
2487
2487
  }>;
2488
2488
  type RunEnvironmentDetails = z.infer<typeof RunEnvironmentDetails>;
@@ -2742,12 +2742,12 @@ declare const ListRunResponseItem: z.ZodObject<{
2742
2742
  name: z.ZodString;
2743
2743
  user: z.ZodOptional<z.ZodString>;
2744
2744
  }, "strip", z.ZodTypeAny, {
2745
- id: string;
2746
2745
  name: string;
2746
+ id: string;
2747
2747
  user?: string | undefined;
2748
2748
  }, {
2749
- id: string;
2750
2749
  name: string;
2750
+ id: string;
2751
2751
  user?: string | undefined;
2752
2752
  }>;
2753
2753
  id: z.ZodString;
@@ -2785,8 +2785,8 @@ declare const ListRunResponseItem: z.ZodObject<{
2785
2785
  updatedAt: Date;
2786
2786
  taskIdentifier: string;
2787
2787
  env: {
2788
- id: string;
2789
2788
  name: string;
2789
+ id: string;
2790
2790
  user?: string | undefined;
2791
2791
  };
2792
2792
  isQueued: boolean;
@@ -2814,8 +2814,8 @@ declare const ListRunResponseItem: z.ZodObject<{
2814
2814
  updatedAt: Date;
2815
2815
  taskIdentifier: string;
2816
2816
  env: {
2817
- id: string;
2818
2817
  name: string;
2818
+ id: string;
2819
2819
  user?: string | undefined;
2820
2820
  };
2821
2821
  isQueued: boolean;
@@ -2840,12 +2840,12 @@ declare const ListRunResponse: z.ZodObject<{
2840
2840
  name: z.ZodString;
2841
2841
  user: z.ZodOptional<z.ZodString>;
2842
2842
  }, "strip", z.ZodTypeAny, {
2843
- id: string;
2844
2843
  name: string;
2844
+ id: string;
2845
2845
  user?: string | undefined;
2846
2846
  }, {
2847
- id: string;
2848
2847
  name: string;
2848
+ id: string;
2849
2849
  user?: string | undefined;
2850
2850
  }>;
2851
2851
  id: z.ZodString;
@@ -2883,8 +2883,8 @@ declare const ListRunResponse: z.ZodObject<{
2883
2883
  updatedAt: Date;
2884
2884
  taskIdentifier: string;
2885
2885
  env: {
2886
- id: string;
2887
2886
  name: string;
2887
+ id: string;
2888
2888
  user?: string | undefined;
2889
2889
  };
2890
2890
  isQueued: boolean;
@@ -2912,8 +2912,8 @@ declare const ListRunResponse: z.ZodObject<{
2912
2912
  updatedAt: Date;
2913
2913
  taskIdentifier: string;
2914
2914
  env: {
2915
- id: string;
2916
2915
  name: string;
2916
+ id: string;
2917
2917
  user?: string | undefined;
2918
2918
  };
2919
2919
  isQueued: boolean;
@@ -2953,8 +2953,8 @@ declare const ListRunResponse: z.ZodObject<{
2953
2953
  updatedAt: Date;
2954
2954
  taskIdentifier: string;
2955
2955
  env: {
2956
- id: string;
2957
2956
  name: string;
2957
+ id: string;
2958
2958
  user?: string | undefined;
2959
2959
  };
2960
2960
  isQueued: boolean;
@@ -2988,8 +2988,8 @@ declare const ListRunResponse: z.ZodObject<{
2988
2988
  updatedAt: Date;
2989
2989
  taskIdentifier: string;
2990
2990
  env: {
2991
- id: string;
2992
2991
  name: string;
2992
+ id: string;
2993
2993
  user?: string | undefined;
2994
2994
  };
2995
2995
  isQueued: boolean;
@@ -487,18 +487,7 @@ var CreateBackgroundWorkerResponse = zod.z.object({
487
487
  var RunTag = zod.z.string().max(64, "Tags must be less than 64 characters");
488
488
  var RunTags = zod.z.union([
489
489
  RunTag,
490
- zod.z.tuple([
491
- RunTag
492
- ]),
493
- zod.z.tuple([
494
- RunTag,
495
- RunTag
496
- ]),
497
- zod.z.tuple([
498
- RunTag,
499
- RunTag,
500
- RunTag
501
- ])
490
+ RunTag.array().max(3, "You can only set a maximum of 3 tags on a run.")
502
491
  ]);
503
492
  var TriggerTaskRequestBody = zod.z.object({
504
493
  payload: zod.z.any(),