@trigger.dev/core 0.0.0-v3-prerelease-20240717092755 → 0.0.0-v3-prerelease-20240730135037

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-U7_q4XsM.d.mts → catalog-H7yFiZ60.d.mts} +1 -1
  2. package/dist/{catalog-bSnBE19I.d.ts → catalog-h79CG5Wy.d.ts} +1 -1
  3. package/dist/index.d.mts +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/{messages-CHPNqMXf.d.mts → messages-mhHZiNGN.d.mts} +202 -9
  6. package/dist/{messages-CHPNqMXf.d.ts → messages-mhHZiNGN.d.ts} +202 -9
  7. package/dist/retry.d.mts +1 -1
  8. package/dist/retry.d.ts +1 -1
  9. package/dist/schemas/index.d.mts +6 -6
  10. package/dist/schemas/index.d.ts +6 -6
  11. package/dist/{schemas-WHkFakb3.d.mts → schemas-C9ssfehv.d.mts} +47 -1
  12. package/dist/{schemas-WHkFakb3.d.ts → schemas-C9ssfehv.d.ts} +47 -1
  13. package/dist/v3/index.d.mts +49 -29
  14. package/dist/v3/index.d.ts +49 -29
  15. package/dist/v3/index.js +65 -9
  16. package/dist/v3/index.js.map +1 -1
  17. package/dist/v3/index.mjs +62 -10
  18. package/dist/v3/index.mjs.map +1 -1
  19. package/dist/v3/otel/index.js +1 -1
  20. package/dist/v3/otel/index.js.map +1 -1
  21. package/dist/v3/otel/index.mjs +1 -1
  22. package/dist/v3/otel/index.mjs.map +1 -1
  23. package/dist/v3/prod/index.d.mts +1 -1
  24. package/dist/v3/prod/index.d.ts +1 -1
  25. package/dist/v3/schemas/index.d.mts +166 -4
  26. package/dist/v3/schemas/index.d.ts +166 -4
  27. package/dist/v3/schemas/index.js +52 -8
  28. package/dist/v3/schemas/index.js.map +1 -1
  29. package/dist/v3/schemas/index.mjs +49 -9
  30. package/dist/v3/schemas/index.mjs.map +1 -1
  31. package/dist/v3/utils/ioSerialization.js +48 -4
  32. package/dist/v3/utils/ioSerialization.js.map +1 -1
  33. package/dist/v3/utils/ioSerialization.mjs +48 -4
  34. package/dist/v3/utils/ioSerialization.mjs.map +1 -1
  35. package/dist/v3/utils/retries.d.mts +1 -1
  36. package/dist/v3/utils/retries.d.ts +1 -1
  37. package/dist/v3/workers/index.d.mts +4 -4
  38. package/dist/v3/workers/index.d.ts +4 -4
  39. package/dist/v3/workers/index.js +48 -4
  40. package/dist/v3/workers/index.js.map +1 -1
  41. package/dist/v3/workers/index.mjs +48 -4
  42. package/dist/v3/workers/index.mjs.map +1 -1
  43. package/dist/v3/zodfetch.d.mts +1 -1
  44. package/dist/v3/zodfetch.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/dist/{api-a39zAY3E.d.mts → api-Pl9fxB8v.d.mts} +153 -153
  47. package/dist/{api--StDLb4h.d.ts → api-sNoooMbT.d.ts} +153 -153
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
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-CHPNqMXf.js';
4
- import { P as Prettify } from '../../schemas-WHkFakb3.js';
5
- export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, i as ResolvedConfig, R as RetryOptions, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-WHkFakb3.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-mhHZiNGN.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';
6
6
 
7
7
  declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
8
8
  url: z.ZodString;
@@ -399,6 +399,16 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
399
399
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
400
400
  }>>;
401
401
  triggerSource: z.ZodOptional<z.ZodString>;
402
+ schedule: z.ZodOptional<z.ZodObject<{
403
+ cron: z.ZodString;
404
+ timezone: z.ZodString;
405
+ }, "strip", z.ZodTypeAny, {
406
+ cron: string;
407
+ timezone: string;
408
+ }, {
409
+ cron: string;
410
+ timezone: string;
411
+ }>>;
402
412
  }, "strip", z.ZodTypeAny, {
403
413
  id: string;
404
414
  filePath: string;
@@ -453,6 +463,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
453
463
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
454
464
  } | undefined;
455
465
  triggerSource?: string | undefined;
466
+ schedule?: {
467
+ cron: string;
468
+ timezone: string;
469
+ } | undefined;
456
470
  }, {
457
471
  id: string;
458
472
  filePath: string;
@@ -507,6 +521,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
507
521
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
508
522
  } | undefined;
509
523
  triggerSource?: string | undefined;
524
+ schedule?: {
525
+ cron: string;
526
+ timezone: string;
527
+ } | undefined;
510
528
  }>, "many">;
511
529
  }, "strip", z.ZodTypeAny, {
512
530
  contentHash: string;
@@ -564,6 +582,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
564
582
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
565
583
  } | undefined;
566
584
  triggerSource?: string | undefined;
585
+ schedule?: {
586
+ cron: string;
587
+ timezone: string;
588
+ } | undefined;
567
589
  }[];
568
590
  packageVersion: string;
569
591
  cliPackageVersion?: string | undefined;
@@ -623,6 +645,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
623
645
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
624
646
  } | undefined;
625
647
  triggerSource?: string | undefined;
648
+ schedule?: {
649
+ cron: string;
650
+ timezone: string;
651
+ } | undefined;
626
652
  }[];
627
653
  packageVersion: string;
628
654
  cliPackageVersion?: string | undefined;
@@ -685,6 +711,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
685
711
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
686
712
  } | undefined;
687
713
  triggerSource?: string | undefined;
714
+ schedule?: {
715
+ cron: string;
716
+ timezone: string;
717
+ } | undefined;
688
718
  }[];
689
719
  packageVersion: string;
690
720
  cliPackageVersion?: string | undefined;
@@ -748,6 +778,10 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
748
778
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
749
779
  } | undefined;
750
780
  triggerSource?: string | undefined;
781
+ schedule?: {
782
+ cron: string;
783
+ timezone: string;
784
+ } | undefined;
751
785
  }[];
752
786
  packageVersion: string;
753
787
  cliPackageVersion?: string | undefined;
@@ -770,6 +804,8 @@ declare const CreateBackgroundWorkerResponse: z.ZodObject<{
770
804
  contentHash: string;
771
805
  }>;
772
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>;
773
809
  declare const TriggerTaskRequestBody: z.ZodObject<{
774
810
  payload: z.ZodAny;
775
811
  context: z.ZodAny;
@@ -968,6 +1004,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
968
1004
  payloadType: z.ZodOptional<z.ZodString>;
969
1005
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
970
1006
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1007
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
971
1008
  maxAttempts: z.ZodOptional<z.ZodNumber>;
972
1009
  }, "strip", z.ZodTypeAny, {
973
1010
  dependentAttempt?: string | undefined;
@@ -1016,6 +1053,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1016
1053
  payloadType?: string | undefined;
1017
1054
  delay?: string | Date | undefined;
1018
1055
  ttl?: string | number | undefined;
1056
+ tags?: string | string[] | undefined;
1019
1057
  maxAttempts?: number | undefined;
1020
1058
  }, {
1021
1059
  dependentAttempt?: string | undefined;
@@ -1064,6 +1102,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1064
1102
  payloadType?: string | undefined;
1065
1103
  delay?: string | Date | undefined;
1066
1104
  ttl?: string | number | undefined;
1105
+ tags?: string | string[] | undefined;
1067
1106
  maxAttempts?: number | undefined;
1068
1107
  }>>;
1069
1108
  }, "strip", z.ZodTypeAny, {
@@ -1116,6 +1155,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1116
1155
  payloadType?: string | undefined;
1117
1156
  delay?: string | Date | undefined;
1118
1157
  ttl?: string | number | undefined;
1158
+ tags?: string | string[] | undefined;
1119
1159
  maxAttempts?: number | undefined;
1120
1160
  } | undefined;
1121
1161
  }, {
@@ -1168,6 +1208,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
1168
1208
  payloadType?: string | undefined;
1169
1209
  delay?: string | Date | undefined;
1170
1210
  ttl?: string | number | undefined;
1211
+ tags?: string | string[] | undefined;
1171
1212
  maxAttempts?: number | undefined;
1172
1213
  } | undefined;
1173
1214
  }>;
@@ -1379,6 +1420,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1379
1420
  payloadType: z.ZodOptional<z.ZodString>;
1380
1421
  delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1381
1422
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1423
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1382
1424
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1383
1425
  }, "strip", z.ZodTypeAny, {
1384
1426
  dependentAttempt?: string | undefined;
@@ -1427,6 +1469,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1427
1469
  payloadType?: string | undefined;
1428
1470
  delay?: string | Date | undefined;
1429
1471
  ttl?: string | number | undefined;
1472
+ tags?: string | string[] | undefined;
1430
1473
  maxAttempts?: number | undefined;
1431
1474
  }, {
1432
1475
  dependentAttempt?: string | undefined;
@@ -1475,6 +1518,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1475
1518
  payloadType?: string | undefined;
1476
1519
  delay?: string | Date | undefined;
1477
1520
  ttl?: string | number | undefined;
1521
+ tags?: string | string[] | undefined;
1478
1522
  maxAttempts?: number | undefined;
1479
1523
  }>>;
1480
1524
  }, "strip", z.ZodTypeAny, {
@@ -1527,6 +1571,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1527
1571
  payloadType?: string | undefined;
1528
1572
  delay?: string | Date | undefined;
1529
1573
  ttl?: string | number | undefined;
1574
+ tags?: string | string[] | undefined;
1530
1575
  maxAttempts?: number | undefined;
1531
1576
  } | undefined;
1532
1577
  }, {
@@ -1579,6 +1624,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1579
1624
  payloadType?: string | undefined;
1580
1625
  delay?: string | Date | undefined;
1581
1626
  ttl?: string | number | undefined;
1627
+ tags?: string | string[] | undefined;
1582
1628
  maxAttempts?: number | undefined;
1583
1629
  } | undefined;
1584
1630
  }>, "many">;
@@ -1634,6 +1680,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1634
1680
  payloadType?: string | undefined;
1635
1681
  delay?: string | Date | undefined;
1636
1682
  ttl?: string | number | undefined;
1683
+ tags?: string | string[] | undefined;
1637
1684
  maxAttempts?: number | undefined;
1638
1685
  } | undefined;
1639
1686
  }[];
@@ -1689,6 +1736,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1689
1736
  payloadType?: string | undefined;
1690
1737
  delay?: string | Date | undefined;
1691
1738
  ttl?: string | number | undefined;
1739
+ tags?: string | string[] | undefined;
1692
1740
  maxAttempts?: number | undefined;
1693
1741
  } | undefined;
1694
1742
  }[];
@@ -1737,6 +1785,14 @@ declare const GetBatchResponseBody: z.ZodObject<{
1737
1785
  }[];
1738
1786
  }>;
1739
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>;
1740
1796
  declare const RescheduleRunRequestBody: z.ZodObject<{
1741
1797
  delay: z.ZodUnion<[z.ZodString, z.ZodDate]>;
1742
1798
  }, "strip", z.ZodTypeAny, {
@@ -1995,10 +2051,18 @@ declare const CanceledRunResponse: z.ZodObject<{
1995
2051
  id: string;
1996
2052
  }>;
1997
2053
  type CanceledRunResponse = z.infer<typeof CanceledRunResponse>;
2054
+ declare const ScheduleType: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
1998
2055
  declare const ScheduledTaskPayload: z.ZodObject<{
1999
2056
  /** The schedule id associated with this run (you can have many schedules for the same task).
2000
2057
  You can use this to remove the schedule, update it, etc */
2001
2058
  scheduleId: z.ZodString;
2059
+ /** The type of schedule – `"DECLARATIVE"` or `"IMPERATIVE"`.
2060
+ *
2061
+ * **DECLARATIVE** – defined inline on your `schedules.task` using the `cron` property. They can only be created, updated or deleted by modifying the `cron` property on your task.
2062
+ *
2063
+ * **IMPERATIVE** – created using the `schedules.create` functions or in the dashboard.
2064
+ */
2065
+ type: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
2002
2066
  /** When the task was scheduled to run.
2003
2067
  * Note this will be slightly different from `new Date()` because it takes a few ms to run the task.
2004
2068
  *
@@ -2023,6 +2087,7 @@ declare const ScheduledTaskPayload: z.ZodObject<{
2023
2087
  /** The next 5 dates this task is scheduled to run */
2024
2088
  upcoming: z.ZodArray<z.ZodDate, "many">;
2025
2089
  }, "strip", z.ZodTypeAny, {
2090
+ type: "DECLARATIVE" | "IMPERATIVE";
2026
2091
  timestamp: Date;
2027
2092
  timezone: string;
2028
2093
  scheduleId: string;
@@ -2030,6 +2095,7 @@ declare const ScheduledTaskPayload: z.ZodObject<{
2030
2095
  lastTimestamp?: Date | undefined;
2031
2096
  externalId?: string | undefined;
2032
2097
  }, {
2098
+ type: "DECLARATIVE" | "IMPERATIVE";
2033
2099
  timestamp: Date;
2034
2100
  timezone: string;
2035
2101
  scheduleId: string;
@@ -2160,6 +2226,7 @@ declare const ScheduleGenerator: z.ZodObject<{
2160
2226
  type ScheduleGenerator = z.infer<typeof ScheduleGenerator>;
2161
2227
  declare const ScheduleObject: z.ZodObject<{
2162
2228
  id: z.ZodString;
2229
+ type: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
2163
2230
  task: z.ZodString;
2164
2231
  active: z.ZodBoolean;
2165
2232
  deduplicationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2193,6 +2260,7 @@ declare const ScheduleObject: z.ZodObject<{
2193
2260
  userName?: string | null | undefined;
2194
2261
  }>, "many">;
2195
2262
  }, "strip", z.ZodTypeAny, {
2263
+ type: "DECLARATIVE" | "IMPERATIVE";
2196
2264
  id: string;
2197
2265
  task: string;
2198
2266
  active: boolean;
@@ -2211,6 +2279,7 @@ declare const ScheduleObject: z.ZodObject<{
2211
2279
  externalId?: string | null | undefined;
2212
2280
  nextRun?: Date | null | undefined;
2213
2281
  }, {
2282
+ type: "DECLARATIVE" | "IMPERATIVE";
2214
2283
  id: string;
2215
2284
  task: string;
2216
2285
  active: boolean;
@@ -2241,6 +2310,7 @@ type DeletedScheduleObject = z.infer<typeof DeletedScheduleObject>;
2241
2310
  declare const ListSchedulesResult: z.ZodObject<{
2242
2311
  data: z.ZodArray<z.ZodObject<{
2243
2312
  id: z.ZodString;
2313
+ type: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
2244
2314
  task: z.ZodString;
2245
2315
  active: z.ZodBoolean;
2246
2316
  deduplicationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2274,6 +2344,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2274
2344
  userName?: string | null | undefined;
2275
2345
  }>, "many">;
2276
2346
  }, "strip", z.ZodTypeAny, {
2347
+ type: "DECLARATIVE" | "IMPERATIVE";
2277
2348
  id: string;
2278
2349
  task: string;
2279
2350
  active: boolean;
@@ -2292,6 +2363,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2292
2363
  externalId?: string | null | undefined;
2293
2364
  nextRun?: Date | null | undefined;
2294
2365
  }, {
2366
+ type: "DECLARATIVE" | "IMPERATIVE";
2295
2367
  id: string;
2296
2368
  task: string;
2297
2369
  active: boolean;
@@ -2325,6 +2397,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2325
2397
  }>;
2326
2398
  }, "strip", z.ZodTypeAny, {
2327
2399
  data: {
2400
+ type: "DECLARATIVE" | "IMPERATIVE";
2328
2401
  id: string;
2329
2402
  task: string;
2330
2403
  active: boolean;
@@ -2350,6 +2423,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2350
2423
  };
2351
2424
  }, {
2352
2425
  data: {
2426
+ type: "DECLARATIVE" | "IMPERATIVE";
2353
2427
  id: string;
2354
2428
  task: string;
2355
2429
  active: boolean;
@@ -2554,11 +2628,19 @@ declare const RetrieveRunResponse: z.ZodObject<{
2554
2628
  delayedUntil: z.ZodOptional<z.ZodDate>;
2555
2629
  ttl: z.ZodOptional<z.ZodString>;
2556
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;
2557
2635
  }, "strip", z.ZodTypeAny, {
2558
2636
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2559
2637
  id: string;
2638
+ tags: string[];
2560
2639
  isTest: boolean;
2561
2640
  createdAt: Date;
2641
+ durationMs: number;
2642
+ costInCents: number;
2643
+ baseCostInCents: number;
2562
2644
  attempts: ({
2563
2645
  status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2564
2646
  id: string;
@@ -2604,8 +2686,12 @@ declare const RetrieveRunResponse: z.ZodObject<{
2604
2686
  }, {
2605
2687
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2606
2688
  id: string;
2689
+ tags: string[];
2607
2690
  isTest: boolean;
2608
2691
  createdAt: Date;
2692
+ durationMs: number;
2693
+ costInCents: number;
2694
+ baseCostInCents: number;
2609
2695
  attempts: ({
2610
2696
  status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2611
2697
  id: string;
@@ -2683,11 +2769,19 @@ declare const ListRunResponseItem: z.ZodObject<{
2683
2769
  delayedUntil: z.ZodOptional<z.ZodDate>;
2684
2770
  ttl: z.ZodOptional<z.ZodString>;
2685
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;
2686
2776
  }, "strip", z.ZodTypeAny, {
2687
2777
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2688
2778
  id: string;
2779
+ tags: string[];
2689
2780
  isTest: boolean;
2690
2781
  createdAt: Date;
2782
+ durationMs: number;
2783
+ costInCents: number;
2784
+ baseCostInCents: number;
2691
2785
  updatedAt: Date;
2692
2786
  taskIdentifier: string;
2693
2787
  env: {
@@ -2711,8 +2805,12 @@ declare const ListRunResponseItem: z.ZodObject<{
2711
2805
  }, {
2712
2806
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2713
2807
  id: string;
2808
+ tags: string[];
2714
2809
  isTest: boolean;
2715
2810
  createdAt: Date;
2811
+ durationMs: number;
2812
+ costInCents: number;
2813
+ baseCostInCents: number;
2716
2814
  updatedAt: Date;
2717
2815
  taskIdentifier: string;
2718
2816
  env: {
@@ -2769,11 +2867,19 @@ declare const ListRunResponse: z.ZodObject<{
2769
2867
  delayedUntil: z.ZodOptional<z.ZodDate>;
2770
2868
  ttl: z.ZodOptional<z.ZodString>;
2771
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;
2772
2874
  }, "strip", z.ZodTypeAny, {
2773
2875
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2774
2876
  id: string;
2877
+ tags: string[];
2775
2878
  isTest: boolean;
2776
2879
  createdAt: Date;
2880
+ durationMs: number;
2881
+ costInCents: number;
2882
+ baseCostInCents: number;
2777
2883
  updatedAt: Date;
2778
2884
  taskIdentifier: string;
2779
2885
  env: {
@@ -2797,8 +2903,12 @@ declare const ListRunResponse: z.ZodObject<{
2797
2903
  }, {
2798
2904
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2799
2905
  id: string;
2906
+ tags: string[];
2800
2907
  isTest: boolean;
2801
2908
  createdAt: Date;
2909
+ durationMs: number;
2910
+ costInCents: number;
2911
+ baseCostInCents: number;
2802
2912
  updatedAt: Date;
2803
2913
  taskIdentifier: string;
2804
2914
  env: {
@@ -2834,8 +2944,12 @@ declare const ListRunResponse: z.ZodObject<{
2834
2944
  data: {
2835
2945
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2836
2946
  id: string;
2947
+ tags: string[];
2837
2948
  isTest: boolean;
2838
2949
  createdAt: Date;
2950
+ durationMs: number;
2951
+ costInCents: number;
2952
+ baseCostInCents: number;
2839
2953
  updatedAt: Date;
2840
2954
  taskIdentifier: string;
2841
2955
  env: {
@@ -2865,8 +2979,12 @@ declare const ListRunResponse: z.ZodObject<{
2865
2979
  data: {
2866
2980
  status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2867
2981
  id: string;
2982
+ tags: string[];
2868
2983
  isTest: boolean;
2869
2984
  createdAt: Date;
2985
+ durationMs: number;
2986
+ costInCents: number;
2987
+ baseCostInCents: number;
2870
2988
  updatedAt: Date;
2871
2989
  taskIdentifier: string;
2872
2990
  env: {
@@ -3184,6 +3302,16 @@ declare const TaskResource: z.ZodObject<{
3184
3302
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3185
3303
  }>>;
3186
3304
  triggerSource: z.ZodOptional<z.ZodString>;
3305
+ schedule: z.ZodOptional<z.ZodObject<{
3306
+ cron: z.ZodString;
3307
+ timezone: z.ZodString;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ cron: string;
3310
+ timezone: string;
3311
+ }, {
3312
+ cron: string;
3313
+ timezone: string;
3314
+ }>>;
3187
3315
  }, "strip", z.ZodTypeAny, {
3188
3316
  id: string;
3189
3317
  filePath: string;
@@ -3238,6 +3366,10 @@ declare const TaskResource: z.ZodObject<{
3238
3366
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3239
3367
  } | undefined;
3240
3368
  triggerSource?: string | undefined;
3369
+ schedule?: {
3370
+ cron: string;
3371
+ timezone: string;
3372
+ } | undefined;
3241
3373
  }, {
3242
3374
  id: string;
3243
3375
  filePath: string;
@@ -3292,6 +3424,10 @@ declare const TaskResource: z.ZodObject<{
3292
3424
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3293
3425
  } | undefined;
3294
3426
  triggerSource?: string | undefined;
3427
+ schedule?: {
3428
+ cron: string;
3429
+ timezone: string;
3430
+ } | undefined;
3295
3431
  }>;
3296
3432
  type TaskResource = z.infer<typeof TaskResource>;
3297
3433
  declare const BackgroundWorkerMetadata: z.ZodObject<{
@@ -3520,6 +3656,16 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3520
3656
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3521
3657
  }>>;
3522
3658
  triggerSource: z.ZodOptional<z.ZodString>;
3659
+ schedule: z.ZodOptional<z.ZodObject<{
3660
+ cron: z.ZodString;
3661
+ timezone: z.ZodString;
3662
+ }, "strip", z.ZodTypeAny, {
3663
+ cron: string;
3664
+ timezone: string;
3665
+ }, {
3666
+ cron: string;
3667
+ timezone: string;
3668
+ }>>;
3523
3669
  }, "strip", z.ZodTypeAny, {
3524
3670
  id: string;
3525
3671
  filePath: string;
@@ -3574,6 +3720,10 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3574
3720
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3575
3721
  } | undefined;
3576
3722
  triggerSource?: string | undefined;
3723
+ schedule?: {
3724
+ cron: string;
3725
+ timezone: string;
3726
+ } | undefined;
3577
3727
  }, {
3578
3728
  id: string;
3579
3729
  filePath: string;
@@ -3628,6 +3778,10 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3628
3778
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3629
3779
  } | undefined;
3630
3780
  triggerSource?: string | undefined;
3781
+ schedule?: {
3782
+ cron: string;
3783
+ timezone: string;
3784
+ } | undefined;
3631
3785
  }>, "many">;
3632
3786
  }, "strip", z.ZodTypeAny, {
3633
3787
  contentHash: string;
@@ -3685,6 +3839,10 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3685
3839
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3686
3840
  } | undefined;
3687
3841
  triggerSource?: string | undefined;
3842
+ schedule?: {
3843
+ cron: string;
3844
+ timezone: string;
3845
+ } | undefined;
3688
3846
  }[];
3689
3847
  packageVersion: string;
3690
3848
  cliPackageVersion?: string | undefined;
@@ -3744,6 +3902,10 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3744
3902
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3745
3903
  } | undefined;
3746
3904
  triggerSource?: string | undefined;
3905
+ schedule?: {
3906
+ cron: string;
3907
+ timezone: string;
3908
+ } | undefined;
3747
3909
  }[];
3748
3910
  packageVersion: string;
3749
3911
  cliPackageVersion?: string | undefined;
@@ -4642,4 +4804,4 @@ declare const SpanMessagingEvent: z.ZodObject<{
4642
4804
  }>;
4643
4805
  type SpanMessagingEvent = z.infer<typeof SpanMessagingEvent>;
4644
4806
 
4645
- 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, 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 };