@trigger.dev/core 3.0.0-beta.36 → 3.0.0-beta.38

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 (37) hide show
  1. package/dist/{catalog-dRKTgwQ7.d.ts → catalog-Tdea4K0I.d.mts} +43 -3
  2. package/dist/{catalog-XTlJQaMn.d.mts → catalog-yeAHwmSe.d.ts} +43 -3
  3. package/dist/{manager-JkbddlcO.d.mts → manager-S98VaLUy.d.mts} +244 -1
  4. package/dist/{manager-JkbddlcO.d.ts → manager-S98VaLUy.d.ts} +244 -1
  5. package/dist/{messages-6_-q72KG.d.mts → messages-BD0yXLtn.d.mts} +2390 -188
  6. package/dist/{messages-6_-q72KG.d.ts → messages-BD0yXLtn.d.ts} +2390 -188
  7. package/dist/{schemas-r4ZP9S-F.d.mts → schemas-XNxZYXOy.d.mts} +199 -33
  8. package/dist/{schemas-r4ZP9S-F.d.ts → schemas-XNxZYXOy.d.ts} +199 -33
  9. package/dist/v3/dev/index.d.mts +1 -1
  10. package/dist/v3/dev/index.d.ts +1 -1
  11. package/dist/v3/index.d.mts +125 -52
  12. package/dist/v3/index.d.ts +125 -52
  13. package/dist/v3/index.js +214 -87
  14. package/dist/v3/index.js.map +1 -1
  15. package/dist/v3/index.mjs +209 -87
  16. package/dist/v3/index.mjs.map +1 -1
  17. package/dist/v3/otel/index.js +15 -5
  18. package/dist/v3/otel/index.js.map +1 -1
  19. package/dist/v3/otel/index.mjs +15 -5
  20. package/dist/v3/otel/index.mjs.map +1 -1
  21. package/dist/v3/prod/index.d.mts +2 -2
  22. package/dist/v3/prod/index.d.ts +2 -2
  23. package/dist/v3/prod/index.js.map +1 -1
  24. package/dist/v3/prod/index.mjs.map +1 -1
  25. package/dist/v3/workers/index.d.mts +54 -8
  26. package/dist/v3/workers/index.d.ts +54 -8
  27. package/dist/v3/workers/index.js +406 -44
  28. package/dist/v3/workers/index.js.map +1 -1
  29. package/dist/v3/workers/index.mjs +404 -45
  30. package/dist/v3/workers/index.mjs.map +1 -1
  31. package/dist/v3/zodIpc.js.map +1 -1
  32. package/dist/v3/zodIpc.mjs.map +1 -1
  33. package/dist/v3/zodMessageHandler.d.mts +1 -1
  34. package/dist/v3/zodMessageHandler.d.ts +1 -1
  35. package/dist/v3/zodfetch.d.mts +1 -1
  36. package/dist/v3/zodfetch.d.ts +1 -1
  37. package/package.json +1 -1
@@ -2,15 +2,15 @@ import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
3
  import { Uploadable, BlobLikePart, CursorPageParams, ApiPromise, CursorPagePromise, OffsetLimitPagePromise } from './zodfetch.js';
4
4
  export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadRequestError, ConflictError, CursorPage, CursorPageResponse, InternalServerError, NotFoundError, OffsetLimitPage, OffsetLimitPageParams, OffsetLimitPageResponse, Page, PageResponse, PermissionDeniedError, RateLimitError, UnprocessableEntityError } from './zodfetch.js';
5
- import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, c as TaskRunError, a as TaskRunContext, R as RuntimeManager } from '../manager-JkbddlcO.js';
6
- export { i as TaskRun, d as TaskRunBuiltInError, e as TaskRunCustomErrorObject, g as TaskRunErrorCodes, b as TaskRunExecution, k as TaskRunExecutionAttempt, p as TaskRunExecutionBatch, l as TaskRunExecutionEnvironment, m as TaskRunExecutionOrganization, n as TaskRunExecutionProject, o as TaskRunExecutionQueue, q as TaskRunExecutionRetry, j as TaskRunExecutionTask, r as TaskRunFailedExecutionResult, h as TaskRunInternalError, f as TaskRunStringError, s as TaskRunSuccessfulExecutionResult } from '../manager-JkbddlcO.js';
7
- import { C as Clock, b as ClockTime, d as TaskLogger, c as TaskCatalog, a as TaskMetadataWithFunctions, T as TriggerTracer } from '../catalog-dRKTgwQ7.js';
8
- export { f as Context, F as FailureFnParams, k as HandleErrorArgs, h as HandleErrorFnParams, H as HandleErrorFunction, i as HandleErrorModificationOptions, j as HandleErrorResult, e as InitFnParams, I as InitOutput, L as LogLevel, M as MiddlewareFnParams, P as ProjectConfig, o as ResolveEnvironmentVariablesFunction, n as ResolveEnvironmentVariablesParams, m as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams } from '../catalog-dRKTgwQ7.js';
5
+ import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, c as TaskRunError, a as TaskRunContext, R as RuntimeManager } from '../manager-S98VaLUy.js';
6
+ export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, k as TaskRunErrorCodes, b as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../manager-S98VaLUy.js';
7
+ import { C as Clock, b as ClockTime, f as TaskLogger, c as TaskCatalog, a as TaskMetadataWithFunctions, T as TriggerTracer } from '../catalog-yeAHwmSe.js';
8
+ export { h as Context, F as FailureFnParams, n as HandleErrorArgs, j as HandleErrorFnParams, H as HandleErrorFunction, k as HandleErrorModificationOptions, m as HandleErrorResult, g as InitFnParams, I as InitOutput, L as LogLevel, M as MiddlewareFnParams, P as ProjectConfig, q as ResolveEnvironmentVariablesFunction, p as ResolveEnvironmentVariablesParams, o as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, i as SuccessFnParams, u as usage } from '../catalog-yeAHwmSe.js';
9
9
  import { Attributes, Span } from '@opentelemetry/api';
10
- import { B as BackgroundWorkerProperties } from '../messages-6_-q72KG.js';
11
- export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, 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-6_-q72KG.js';
12
- import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-r4ZP9S-F.js';
13
- export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, d as Machine, M as MachineCpu, c as MachineMemory, i as PostStartCauses, j as PreStopCauses, f as ProdTaskRunExecution, g as ProdTaskRunExecutionPayload, Q as QueueOptions, h as RateLimitOptions, m as RequireKeys, k as ResolvedConfig, S as SlidingWindowRateLimit, b as TaskMetadata, l as TaskRunExecutionLazyAttemptPayload, e as TaskRunExecutionPayload, W as WaitReason } from '../schemas-r4ZP9S-F.js';
10
+ import { B as BackgroundWorkerProperties } from '../messages-BD0yXLtn.js';
11
+ export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, 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-BD0yXLtn.js';
12
+ import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-XNxZYXOy.js';
13
+ 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, k as RequireKeys, i as ResolvedConfig, S as SlidingWindowRateLimit, b as TaskMetadata, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-XNxZYXOy.js';
14
14
  import { Unit } from 'humanize-duration';
15
15
  export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.js';
16
16
  import 'node:stream';
@@ -399,17 +399,17 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
399
399
  randomize?: boolean | undefined;
400
400
  }>>;
401
401
  machine: z.ZodOptional<z.ZodObject<{
402
- version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
403
- cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
404
- memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
402
+ cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
403
+ memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
404
+ preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
405
405
  }, "strip", z.ZodTypeAny, {
406
- version?: "v1" | undefined;
407
406
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
408
407
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
408
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
409
409
  }, {
410
- version?: "v1" | undefined;
411
410
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
412
411
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
412
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
413
413
  }>>;
414
414
  triggerSource: z.ZodOptional<z.ZodString>;
415
415
  }, "strip", z.ZodTypeAny, {
@@ -461,9 +461,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
461
461
  randomize?: boolean | undefined;
462
462
  } | undefined;
463
463
  machine?: {
464
- version?: "v1" | undefined;
465
464
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
466
465
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
466
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
467
467
  } | undefined;
468
468
  triggerSource?: string | undefined;
469
469
  }, {
@@ -515,9 +515,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
515
515
  randomize?: boolean | undefined;
516
516
  } | undefined;
517
517
  machine?: {
518
- version?: "v1" | undefined;
519
518
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
520
519
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
520
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
521
521
  } | undefined;
522
522
  triggerSource?: string | undefined;
523
523
  }>, "many">;
@@ -573,9 +573,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
573
573
  randomize?: boolean | undefined;
574
574
  } | undefined;
575
575
  machine?: {
576
- version?: "v1" | undefined;
577
576
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
578
577
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
578
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
579
579
  } | undefined;
580
580
  triggerSource?: string | undefined;
581
581
  }[];
@@ -632,9 +632,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
632
632
  randomize?: boolean | undefined;
633
633
  } | undefined;
634
634
  machine?: {
635
- version?: "v1" | undefined;
636
635
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
637
636
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
637
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
638
638
  } | undefined;
639
639
  triggerSource?: string | undefined;
640
640
  }[];
@@ -695,9 +695,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
695
695
  randomize?: boolean | undefined;
696
696
  } | undefined;
697
697
  machine?: {
698
- version?: "v1" | undefined;
699
698
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
700
699
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
700
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
701
701
  } | undefined;
702
702
  triggerSource?: string | undefined;
703
703
  }[];
@@ -758,9 +758,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
758
758
  randomize?: boolean | undefined;
759
759
  } | undefined;
760
760
  machine?: {
761
- version?: "v1" | undefined;
762
761
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
763
762
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
763
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
764
764
  } | undefined;
765
765
  triggerSource?: string | undefined;
766
766
  }[];
@@ -1819,14 +1819,17 @@ declare const DeploymentErrorData: z.ZodObject<{
1819
1819
  name: z.ZodString;
1820
1820
  message: z.ZodString;
1821
1821
  stack: z.ZodOptional<z.ZodString>;
1822
+ stderr: z.ZodOptional<z.ZodString>;
1822
1823
  }, "strip", z.ZodTypeAny, {
1823
1824
  message: string;
1824
1825
  name: string;
1825
1826
  stack?: string | undefined;
1827
+ stderr?: string | undefined;
1826
1828
  }, {
1827
1829
  message: string;
1828
1830
  name: string;
1829
1831
  stack?: string | undefined;
1832
+ stderr?: string | undefined;
1830
1833
  }>;
1831
1834
  declare const GetDeploymentResponseBody: z.ZodObject<{
1832
1835
  id: z.ZodString;
@@ -1839,14 +1842,17 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
1839
1842
  name: z.ZodString;
1840
1843
  message: z.ZodString;
1841
1844
  stack: z.ZodOptional<z.ZodString>;
1845
+ stderr: z.ZodOptional<z.ZodString>;
1842
1846
  }, "strip", z.ZodTypeAny, {
1843
1847
  message: string;
1844
1848
  name: string;
1845
1849
  stack?: string | undefined;
1850
+ stderr?: string | undefined;
1846
1851
  }, {
1847
1852
  message: string;
1848
1853
  name: string;
1849
1854
  stack?: string | undefined;
1855
+ stderr?: string | undefined;
1850
1856
  }>>>;
1851
1857
  worker: z.ZodOptional<z.ZodObject<{
1852
1858
  id: z.ZodString;
@@ -1897,6 +1903,7 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
1897
1903
  message: string;
1898
1904
  name: string;
1899
1905
  stack?: string | undefined;
1906
+ stderr?: string | undefined;
1900
1907
  } | null | undefined;
1901
1908
  worker?: {
1902
1909
  id: string;
@@ -1919,6 +1926,7 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
1919
1926
  message: string;
1920
1927
  name: string;
1921
1928
  stack?: string | undefined;
1929
+ stderr?: string | undefined;
1922
1930
  } | null | undefined;
1923
1931
  worker?: {
1924
1932
  id: string;
@@ -1961,26 +1969,39 @@ declare const ScheduledTaskPayload: z.ZodObject<{
1961
1969
  You can use this to remove the schedule, update it, etc */
1962
1970
  scheduleId: z.ZodString;
1963
1971
  /** When the task was scheduled to run.
1964
- * Note this will be slightly different from `new Date()` because it takes a few ms to run the task. */
1972
+ * Note this will be slightly different from `new Date()` because it takes a few ms to run the task.
1973
+ *
1974
+ * This date is UTC. To output it as a string with a timezone you would do this:
1975
+ * ```ts
1976
+ * const formatted = payload.timestamp.toLocaleString("en-US", {
1977
+ timeZone: payload.timezone,
1978
+ });
1979
+ ``` */
1965
1980
  timestamp: z.ZodDate;
1966
1981
  /** When the task was last run (it has been).
1967
- This can be undefined if it's never been run */
1982
+ This can be undefined if it's never been run. This date is UTC. */
1968
1983
  lastTimestamp: z.ZodOptional<z.ZodDate>;
1969
1984
  /** You can optionally provide an external id when creating the schedule.
1970
1985
  Usually you would use a userId or some other unique identifier.
1971
1986
  This defaults to undefined if you didn't provide one. */
1972
1987
  externalId: z.ZodOptional<z.ZodString>;
1988
+ /** The IANA timezone the schedule is set to. The default is UTC.
1989
+ * You can see the full list of supported timezones here: https://cloud.trigger.dev/timezones
1990
+ */
1991
+ timezone: z.ZodString;
1973
1992
  /** The next 5 dates this task is scheduled to run */
1974
1993
  upcoming: z.ZodArray<z.ZodDate, "many">;
1975
1994
  }, "strip", z.ZodTypeAny, {
1976
1995
  timestamp: Date;
1977
1996
  scheduleId: string;
1997
+ timezone: string;
1978
1998
  upcoming: Date[];
1979
1999
  lastTimestamp?: Date | undefined;
1980
2000
  externalId?: string | undefined;
1981
2001
  }, {
1982
2002
  timestamp: Date;
1983
2003
  scheduleId: string;
2004
+ timezone: string;
1984
2005
  upcoming: Date[];
1985
2006
  lastTimestamp?: Date | undefined;
1986
2007
  externalId?: string | undefined;
@@ -2006,28 +2027,41 @@ declare const CreateScheduleOptions: z.ZodObject<{
2006
2027
 
2007
2028
  */
2008
2029
  cron: z.ZodString;
2009
- /** (Optional) You can only create one schedule with this key. If you use it twice, the second call will update the schedule.
2030
+ /** You can only create one schedule with this key. If you use it twice, the second call will update the schedule.
2010
2031
  *
2011
- * This is useful if you don't want to create duplicate schedules for a user. */
2012
- deduplicationKey: z.ZodOptional<z.ZodString>;
2032
+ * This is required to prevent you from creating duplicate schedules. */
2033
+ deduplicationKey: z.ZodString;
2013
2034
  /** Optionally, you can specify your own IDs (like a user ID) and then use it inside the run function of your task.
2014
2035
  *
2015
2036
  * This allows you to have per-user CRON tasks.
2016
2037
  */
2017
2038
  externalId: z.ZodOptional<z.ZodString>;
2039
+ /** Optionally, you can specify a timezone in the IANA format. If unset it will use UTC.
2040
+ * If specified then the CRON will be evaluated in that timezone and will respect daylight savings.
2041
+ *
2042
+ * If you set the CRON to `0 0 * * *` and the timezone to `America/New_York` then the task will run at midnight in New York time, no matter whether it's daylight savings or not.
2043
+ *
2044
+ * You can see the full list of supported timezones here: https://cloud.trigger.dev/timezones
2045
+ *
2046
+ * @example "America/New_York", "Europe/London", "Asia/Tokyo", "Africa/Cairo"
2047
+ *
2048
+ */
2049
+ timezone: z.ZodOptional<z.ZodString>;
2018
2050
  }, "strip", z.ZodTypeAny, {
2019
2051
  task: string;
2020
2052
  cron: string;
2021
- deduplicationKey?: string | undefined;
2053
+ deduplicationKey: string;
2022
2054
  externalId?: string | undefined;
2055
+ timezone?: string | undefined;
2023
2056
  }, {
2024
2057
  task: string;
2025
2058
  cron: string;
2026
- deduplicationKey?: string | undefined;
2059
+ deduplicationKey: string;
2027
2060
  externalId?: string | undefined;
2061
+ timezone?: string | undefined;
2028
2062
  }>;
2029
2063
  type CreateScheduleOptions = z.infer<typeof CreateScheduleOptions>;
2030
- declare const UpdateScheduleOptions: z.ZodObject<{
2064
+ declare const UpdateScheduleOptions: z.ZodObject<Omit<{
2031
2065
  /** The id of the task you want to attach to. */
2032
2066
  task: z.ZodString;
2033
2067
  /** The schedule in CRON format.
@@ -2047,25 +2081,36 @@ declare const UpdateScheduleOptions: z.ZodObject<{
2047
2081
 
2048
2082
  */
2049
2083
  cron: z.ZodString;
2050
- /** (Optional) You can only create one schedule with this key. If you use it twice, the second call will update the schedule.
2084
+ /** You can only create one schedule with this key. If you use it twice, the second call will update the schedule.
2051
2085
  *
2052
- * This is useful if you don't want to create duplicate schedules for a user. */
2053
- deduplicationKey: z.ZodOptional<z.ZodString>;
2086
+ * This is required to prevent you from creating duplicate schedules. */
2087
+ deduplicationKey: z.ZodString;
2054
2088
  /** Optionally, you can specify your own IDs (like a user ID) and then use it inside the run function of your task.
2055
2089
  *
2056
2090
  * This allows you to have per-user CRON tasks.
2057
2091
  */
2058
2092
  externalId: z.ZodOptional<z.ZodString>;
2059
- }, "strip", z.ZodTypeAny, {
2093
+ /** Optionally, you can specify a timezone in the IANA format. If unset it will use UTC.
2094
+ * If specified then the CRON will be evaluated in that timezone and will respect daylight savings.
2095
+ *
2096
+ * If you set the CRON to `0 0 * * *` and the timezone to `America/New_York` then the task will run at midnight in New York time, no matter whether it's daylight savings or not.
2097
+ *
2098
+ * You can see the full list of supported timezones here: https://cloud.trigger.dev/timezones
2099
+ *
2100
+ * @example "America/New_York", "Europe/London", "Asia/Tokyo", "Africa/Cairo"
2101
+ *
2102
+ */
2103
+ timezone: z.ZodOptional<z.ZodString>;
2104
+ }, "deduplicationKey">, "strip", z.ZodTypeAny, {
2060
2105
  task: string;
2061
2106
  cron: string;
2062
- deduplicationKey?: string | undefined;
2063
2107
  externalId?: string | undefined;
2108
+ timezone?: string | undefined;
2064
2109
  }, {
2065
2110
  task: string;
2066
2111
  cron: string;
2067
- deduplicationKey?: string | undefined;
2068
2112
  externalId?: string | undefined;
2113
+ timezone?: string | undefined;
2069
2114
  }>;
2070
2115
  type UpdateScheduleOptions = z.infer<typeof UpdateScheduleOptions>;
2071
2116
  declare const ScheduleGenerator: z.ZodObject<{
@@ -2101,6 +2146,7 @@ declare const ScheduleObject: z.ZodObject<{
2101
2146
  expression: string;
2102
2147
  description: string;
2103
2148
  }>;
2149
+ timezone: z.ZodString;
2104
2150
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2105
2151
  environments: z.ZodArray<z.ZodObject<{
2106
2152
  id: z.ZodString;
@@ -2118,6 +2164,7 @@ declare const ScheduleObject: z.ZodObject<{
2118
2164
  }, "strip", z.ZodTypeAny, {
2119
2165
  id: string;
2120
2166
  task: string;
2167
+ timezone: string;
2121
2168
  active: boolean;
2122
2169
  generator: {
2123
2170
  type: "CRON";
@@ -2135,6 +2182,7 @@ declare const ScheduleObject: z.ZodObject<{
2135
2182
  }, {
2136
2183
  id: string;
2137
2184
  task: string;
2185
+ timezone: string;
2138
2186
  active: boolean;
2139
2187
  generator: {
2140
2188
  type: "CRON";
@@ -2179,6 +2227,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2179
2227
  expression: string;
2180
2228
  description: string;
2181
2229
  }>;
2230
+ timezone: z.ZodString;
2182
2231
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2183
2232
  environments: z.ZodArray<z.ZodObject<{
2184
2233
  id: z.ZodString;
@@ -2196,6 +2245,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2196
2245
  }, "strip", z.ZodTypeAny, {
2197
2246
  id: string;
2198
2247
  task: string;
2248
+ timezone: string;
2199
2249
  active: boolean;
2200
2250
  generator: {
2201
2251
  type: "CRON";
@@ -2213,6 +2263,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2213
2263
  }, {
2214
2264
  id: string;
2215
2265
  task: string;
2266
+ timezone: string;
2216
2267
  active: boolean;
2217
2268
  generator: {
2218
2269
  type: "CRON";
@@ -2245,6 +2296,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2245
2296
  data: {
2246
2297
  id: string;
2247
2298
  task: string;
2299
+ timezone: string;
2248
2300
  active: boolean;
2249
2301
  generator: {
2250
2302
  type: "CRON";
@@ -2269,6 +2321,7 @@ declare const ListSchedulesResult: z.ZodObject<{
2269
2321
  data: {
2270
2322
  id: string;
2271
2323
  task: string;
2324
+ timezone: string;
2272
2325
  active: boolean;
2273
2326
  generator: {
2274
2327
  type: "CRON";
@@ -2302,6 +2355,14 @@ declare const ListScheduleOptions: z.ZodObject<{
2302
2355
  perPage?: number | undefined;
2303
2356
  }>;
2304
2357
  type ListScheduleOptions = z.infer<typeof ListScheduleOptions>;
2358
+ declare const TimezonesResult: z.ZodObject<{
2359
+ timezones: z.ZodArray<z.ZodString, "many">;
2360
+ }, "strip", z.ZodTypeAny, {
2361
+ timezones: string[];
2362
+ }, {
2363
+ timezones: string[];
2364
+ }>;
2365
+ type TimezonesResult = z.infer<typeof TimezonesResult>;
2305
2366
  declare const RunStatus: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE"]>;
2306
2367
  type RunStatus = z.infer<typeof RunStatus>;
2307
2368
  declare const AttemptStatus: z.ZodEnum<["PENDING", "EXECUTING", "PAUSED", "COMPLETED", "FAILED", "CANCELED"]>;
@@ -3040,17 +3101,17 @@ declare const TaskResource: z.ZodObject<{
3040
3101
  randomize?: boolean | undefined;
3041
3102
  }>>;
3042
3103
  machine: z.ZodOptional<z.ZodObject<{
3043
- version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
3044
- cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
3045
- memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
3104
+ cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
3105
+ memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
3106
+ preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
3046
3107
  }, "strip", z.ZodTypeAny, {
3047
- version?: "v1" | undefined;
3048
3108
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3049
3109
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3110
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3050
3111
  }, {
3051
- version?: "v1" | undefined;
3052
3112
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3053
3113
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3114
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3054
3115
  }>>;
3055
3116
  triggerSource: z.ZodOptional<z.ZodString>;
3056
3117
  }, "strip", z.ZodTypeAny, {
@@ -3102,9 +3163,9 @@ declare const TaskResource: z.ZodObject<{
3102
3163
  randomize?: boolean | undefined;
3103
3164
  } | undefined;
3104
3165
  machine?: {
3105
- version?: "v1" | undefined;
3106
3166
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3107
3167
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3168
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3108
3169
  } | undefined;
3109
3170
  triggerSource?: string | undefined;
3110
3171
  }, {
@@ -3156,9 +3217,9 @@ declare const TaskResource: z.ZodObject<{
3156
3217
  randomize?: boolean | undefined;
3157
3218
  } | undefined;
3158
3219
  machine?: {
3159
- version?: "v1" | undefined;
3160
3220
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3161
3221
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3222
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3162
3223
  } | undefined;
3163
3224
  triggerSource?: string | undefined;
3164
3225
  }>;
@@ -3376,17 +3437,17 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3376
3437
  randomize?: boolean | undefined;
3377
3438
  }>>;
3378
3439
  machine: z.ZodOptional<z.ZodObject<{
3379
- version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
3380
- cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
3381
- memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
3440
+ cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
3441
+ memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
3442
+ preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
3382
3443
  }, "strip", z.ZodTypeAny, {
3383
- version?: "v1" | undefined;
3384
3444
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3385
3445
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3446
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3386
3447
  }, {
3387
- version?: "v1" | undefined;
3388
3448
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3389
3449
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3450
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3390
3451
  }>>;
3391
3452
  triggerSource: z.ZodOptional<z.ZodString>;
3392
3453
  }, "strip", z.ZodTypeAny, {
@@ -3438,9 +3499,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3438
3499
  randomize?: boolean | undefined;
3439
3500
  } | undefined;
3440
3501
  machine?: {
3441
- version?: "v1" | undefined;
3442
3502
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3443
3503
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3504
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3444
3505
  } | undefined;
3445
3506
  triggerSource?: string | undefined;
3446
3507
  }, {
@@ -3492,9 +3553,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3492
3553
  randomize?: boolean | undefined;
3493
3554
  } | undefined;
3494
3555
  machine?: {
3495
- version?: "v1" | undefined;
3496
3556
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3497
3557
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3558
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3498
3559
  } | undefined;
3499
3560
  triggerSource?: string | undefined;
3500
3561
  }>, "many">;
@@ -3550,9 +3611,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3550
3611
  randomize?: boolean | undefined;
3551
3612
  } | undefined;
3552
3613
  machine?: {
3553
- version?: "v1" | undefined;
3554
3614
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3555
3615
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3616
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3556
3617
  } | undefined;
3557
3618
  triggerSource?: string | undefined;
3558
3619
  }[];
@@ -3609,9 +3670,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
3609
3670
  randomize?: boolean | undefined;
3610
3671
  } | undefined;
3611
3672
  machine?: {
3612
- version?: "v1" | undefined;
3613
3673
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
3614
3674
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
3675
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
3615
3676
  } | undefined;
3616
3677
  triggerSource?: string | undefined;
3617
3678
  }[];
@@ -4005,7 +4066,6 @@ declare const FetchTimeoutOptions: z.ZodObject<{
4005
4066
  durationInMs: z.ZodOptional<z.ZodNumber>;
4006
4067
  retry: z.ZodOptional<z.ZodObject<{
4007
4068
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4008
- /** The timeout options for the request. */
4009
4069
  factor: z.ZodOptional<z.ZodNumber>;
4010
4070
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4011
4071
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
@@ -4122,7 +4182,6 @@ declare const FetchRetryOptions: z.ZodObject<{
4122
4182
  */
4123
4183
  connectionError: z.ZodOptional<z.ZodObject<{
4124
4184
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4125
- /** The timeout options for the request. */
4126
4185
  factor: z.ZodOptional<z.ZodNumber>;
4127
4186
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4128
4187
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
@@ -4618,6 +4677,7 @@ declare class ApiClient {
4618
4677
  createSchedule(options: CreateScheduleOptions): ApiPromise<{
4619
4678
  id: string;
4620
4679
  task: string;
4680
+ timezone: string;
4621
4681
  active: boolean;
4622
4682
  generator: {
4623
4683
  type: "CRON";
@@ -4652,6 +4712,7 @@ declare class ApiClient {
4652
4712
  expression: string;
4653
4713
  description: string;
4654
4714
  }>;
4715
+ timezone: zod.ZodString;
4655
4716
  nextRun: zod.ZodOptional<zod.ZodNullable<zod.ZodDate>>;
4656
4717
  environments: zod.ZodArray<zod.ZodObject<{
4657
4718
  id: zod.ZodString;
@@ -4669,6 +4730,7 @@ declare class ApiClient {
4669
4730
  }, "strip", zod.ZodTypeAny, {
4670
4731
  id: string;
4671
4732
  task: string;
4733
+ timezone: string;
4672
4734
  active: boolean;
4673
4735
  generator: {
4674
4736
  type: "CRON";
@@ -4686,6 +4748,7 @@ declare class ApiClient {
4686
4748
  }, {
4687
4749
  id: string;
4688
4750
  task: string;
4751
+ timezone: string;
4689
4752
  active: boolean;
4690
4753
  generator: {
4691
4754
  type: "CRON";
@@ -4704,6 +4767,7 @@ declare class ApiClient {
4704
4767
  retrieveSchedule(scheduleId: string): ApiPromise<{
4705
4768
  id: string;
4706
4769
  task: string;
4770
+ timezone: string;
4707
4771
  active: boolean;
4708
4772
  generator: {
4709
4773
  type: "CRON";
@@ -4722,6 +4786,7 @@ declare class ApiClient {
4722
4786
  updateSchedule(scheduleId: string, options: UpdateScheduleOptions): ApiPromise<{
4723
4787
  id: string;
4724
4788
  task: string;
4789
+ timezone: string;
4725
4790
  active: boolean;
4726
4791
  generator: {
4727
4792
  type: "CRON";
@@ -4740,6 +4805,7 @@ declare class ApiClient {
4740
4805
  deactivateSchedule(scheduleId: string): ApiPromise<{
4741
4806
  id: string;
4742
4807
  task: string;
4808
+ timezone: string;
4743
4809
  active: boolean;
4744
4810
  generator: {
4745
4811
  type: "CRON";
@@ -4758,6 +4824,7 @@ declare class ApiClient {
4758
4824
  activateSchedule(scheduleId: string): ApiPromise<{
4759
4825
  id: string;
4760
4826
  task: string;
4827
+ timezone: string;
4761
4828
  active: boolean;
4762
4829
  generator: {
4763
4830
  type: "CRON";
@@ -4956,6 +5023,10 @@ declare const SemanticInternalAttributes: {
4956
5023
  TASK_EXPORT_NAME: string;
4957
5024
  QUEUE_NAME: string;
4958
5025
  QUEUE_ID: string;
5026
+ MACHINE_PRESET_NAME: string;
5027
+ MACHINE_PRESET_CPU: string;
5028
+ MACHINE_PRESET_MEMORY: string;
5029
+ MACHINE_PRESET_CENTS_PER_MS: string;
4959
5030
  SPAN_PARTIAL: string;
4960
5031
  SPAN_ID: string;
4961
5032
  OUTPUT: string;
@@ -4980,6 +5051,8 @@ declare const SemanticInternalAttributes: {
4980
5051
  RETRY_COUNT: string;
4981
5052
  LINK_TITLE: string;
4982
5053
  IDEMPOTENCY_KEY: string;
5054
+ USAGE_DURATION_MS: string;
5055
+ USAGE_COST_IN_CENTS: string;
4983
5056
  };
4984
5057
 
4985
5058
  declare class TaskCatalogAPI {
@@ -5082,4 +5155,4 @@ declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataT
5082
5155
  declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
5083
5156
  declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
5084
5157
 
5085
- export { Accessory, ApiClient, type ApiClientConfiguration, ApiPromise, AttemptStatus, BackgroundWorkerMetadata, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, CursorPageParams, 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, type IOPacket, ImageDetailsMetadata, type ImportEnvironmentVariablesParams, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, type ListProjectRunsQueryParams, ListRunResponse, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, ListSchedulesResult, NULL_SENTINEL, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtherSpanEvent, PRIMARY_VARIANT, Prettify, ReplayRunResponse, RetrieveRunResponse, RetryOptions, RunEnvironmentDetails, RunScheduleDetails, RunStatus, ScheduleGenerator, ScheduleObject, ScheduledTaskPayload, SemanticInternalAttributes, SerializedError, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskResource, TaskRunContext, TaskRunError, TaskRunExecutionResult, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, groupTaskMetadataIssuesByTask, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseError, parsePacket, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, stringPatternMatchers, stringifyIO, taskCatalog, taskContext, unflattenAttributes };
5158
+ export { Accessory, ApiClient, type ApiClientConfiguration, ApiPromise, AttemptStatus, BackgroundWorkerMetadata, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, CursorPageParams, CursorPagePromise, 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, type IOPacket, ImageDetailsMetadata, type ImportEnvironmentVariablesParams, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, type ListProjectRunsQueryParams, ListRunResponse, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, ListSchedulesResult, NULL_SENTINEL, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OffsetLimitPagePromise, OtherSpanEvent, PRIMARY_VARIANT, Prettify, ReplayRunResponse, RetrieveRunResponse, RetryOptions, RunEnvironmentDetails, RunScheduleDetails, RunStatus, ScheduleGenerator, ScheduleObject, ScheduledTaskPayload, SemanticInternalAttributes, SerializedError, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskResource, TaskRunContext, TaskRunError, TaskRunExecutionResult, TimezonesResult, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, groupTaskMetadataIssuesByTask, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseError, parsePacket, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, stringPatternMatchers, stringifyIO, taskCatalog, taskContext, unflattenAttributes };