@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.
- package/dist/{catalog-U7_q4XsM.d.mts → catalog-H7yFiZ60.d.mts} +1 -1
- package/dist/{catalog-bSnBE19I.d.ts → catalog-h79CG5Wy.d.ts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{messages-CHPNqMXf.d.mts → messages-mhHZiNGN.d.mts} +202 -9
- package/dist/{messages-CHPNqMXf.d.ts → messages-mhHZiNGN.d.ts} +202 -9
- package/dist/retry.d.mts +1 -1
- package/dist/retry.d.ts +1 -1
- package/dist/schemas/index.d.mts +6 -6
- package/dist/schemas/index.d.ts +6 -6
- package/dist/{schemas-WHkFakb3.d.mts → schemas-C9ssfehv.d.mts} +47 -1
- package/dist/{schemas-WHkFakb3.d.ts → schemas-C9ssfehv.d.ts} +47 -1
- package/dist/v3/index.d.mts +49 -29
- package/dist/v3/index.d.ts +49 -29
- package/dist/v3/index.js +65 -9
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +62 -10
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +1 -1
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +1 -1
- package/dist/v3/otel/index.mjs.map +1 -1
- package/dist/v3/prod/index.d.mts +1 -1
- package/dist/v3/prod/index.d.ts +1 -1
- package/dist/v3/schemas/index.d.mts +166 -4
- package/dist/v3/schemas/index.d.ts +166 -4
- package/dist/v3/schemas/index.js +52 -8
- package/dist/v3/schemas/index.js.map +1 -1
- package/dist/v3/schemas/index.mjs +49 -9
- package/dist/v3/schemas/index.mjs.map +1 -1
- package/dist/v3/utils/ioSerialization.js +48 -4
- package/dist/v3/utils/ioSerialization.js.map +1 -1
- package/dist/v3/utils/ioSerialization.mjs +48 -4
- package/dist/v3/utils/ioSerialization.mjs.map +1 -1
- package/dist/v3/utils/retries.d.mts +1 -1
- package/dist/v3/utils/retries.d.ts +1 -1
- package/dist/v3/workers/index.d.mts +4 -4
- package/dist/v3/workers/index.d.ts +4 -4
- package/dist/v3/workers/index.js +48 -4
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +48 -4
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodfetch.d.mts +1 -1
- package/dist/v3/zodfetch.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{api-a39zAY3E.d.mts → api-Pl9fxB8v.d.mts} +153 -153
- package/dist/{api--StDLb4h.d.ts → api-sNoooMbT.d.ts} +153 -153
|
@@ -1609,6 +1609,16 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
1609
1609
|
} | undefined;
|
|
1610
1610
|
}>;
|
|
1611
1611
|
type QueueOptions = z.infer<typeof QueueOptions>;
|
|
1612
|
+
declare const ScheduleMetadata: z.ZodObject<{
|
|
1613
|
+
cron: z.ZodString;
|
|
1614
|
+
timezone: z.ZodString;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
|
+
cron: string;
|
|
1617
|
+
timezone: string;
|
|
1618
|
+
}, {
|
|
1619
|
+
cron: string;
|
|
1620
|
+
timezone: string;
|
|
1621
|
+
}>;
|
|
1612
1622
|
declare const TaskMetadata: z.ZodObject<{
|
|
1613
1623
|
id: z.ZodString;
|
|
1614
1624
|
packageVersion: z.ZodString;
|
|
@@ -1876,6 +1886,16 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
1876
1886
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1877
1887
|
}>>;
|
|
1878
1888
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
1889
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
1890
|
+
cron: z.ZodString;
|
|
1891
|
+
timezone: z.ZodString;
|
|
1892
|
+
}, "strip", z.ZodTypeAny, {
|
|
1893
|
+
cron: string;
|
|
1894
|
+
timezone: string;
|
|
1895
|
+
}, {
|
|
1896
|
+
cron: string;
|
|
1897
|
+
timezone: string;
|
|
1898
|
+
}>>;
|
|
1879
1899
|
}, "strip", z.ZodTypeAny, {
|
|
1880
1900
|
id: string;
|
|
1881
1901
|
packageVersion: string;
|
|
@@ -1929,6 +1949,10 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
1929
1949
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1930
1950
|
} | undefined;
|
|
1931
1951
|
triggerSource?: string | undefined;
|
|
1952
|
+
schedule?: {
|
|
1953
|
+
cron: string;
|
|
1954
|
+
timezone: string;
|
|
1955
|
+
} | undefined;
|
|
1932
1956
|
}, {
|
|
1933
1957
|
id: string;
|
|
1934
1958
|
packageVersion: string;
|
|
@@ -1982,6 +2006,10 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
1982
2006
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1983
2007
|
} | undefined;
|
|
1984
2008
|
triggerSource?: string | undefined;
|
|
2009
|
+
schedule?: {
|
|
2010
|
+
cron: string;
|
|
2011
|
+
timezone: string;
|
|
2012
|
+
} | undefined;
|
|
1985
2013
|
}>;
|
|
1986
2014
|
type TaskMetadata = z.infer<typeof TaskMetadata>;
|
|
1987
2015
|
declare const TaskFileMetadata: z.ZodObject<{
|
|
@@ -2262,6 +2290,16 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
2262
2290
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2263
2291
|
}>>;
|
|
2264
2292
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
2294
|
+
cron: z.ZodString;
|
|
2295
|
+
timezone: z.ZodString;
|
|
2296
|
+
}, "strip", z.ZodTypeAny, {
|
|
2297
|
+
cron: string;
|
|
2298
|
+
timezone: string;
|
|
2299
|
+
}, {
|
|
2300
|
+
cron: string;
|
|
2301
|
+
timezone: string;
|
|
2302
|
+
}>>;
|
|
2265
2303
|
filePath: z.ZodString;
|
|
2266
2304
|
exportName: z.ZodString;
|
|
2267
2305
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2319,6 +2357,10 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
2319
2357
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2320
2358
|
} | undefined;
|
|
2321
2359
|
triggerSource?: string | undefined;
|
|
2360
|
+
schedule?: {
|
|
2361
|
+
cron: string;
|
|
2362
|
+
timezone: string;
|
|
2363
|
+
} | undefined;
|
|
2322
2364
|
}, {
|
|
2323
2365
|
id: string;
|
|
2324
2366
|
filePath: string;
|
|
@@ -2374,6 +2416,10 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
2374
2416
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2375
2417
|
} | undefined;
|
|
2376
2418
|
triggerSource?: string | undefined;
|
|
2419
|
+
schedule?: {
|
|
2420
|
+
cron: string;
|
|
2421
|
+
timezone: string;
|
|
2422
|
+
} | undefined;
|
|
2377
2423
|
}>;
|
|
2378
2424
|
type TaskMetadataWithFilePath = z.infer<typeof TaskMetadataWithFilePath>;
|
|
2379
2425
|
declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
|
|
@@ -2519,4 +2565,4 @@ declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
|
|
|
2519
2565
|
}>;
|
|
2520
2566
|
type TaskRunExecutionLazyAttemptPayload = z.infer<typeof TaskRunExecutionLazyAttemptPayload>;
|
|
2521
2567
|
|
|
2522
|
-
export { Config as C, EnvironmentType as E, FixedWindowRateLimit as F, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, TaskMetadata as T, WaitReason as W, TaskFileMetadata as a, TaskMetadataWithFilePath as b, TaskRunExecutionPayload as c, ProdTaskRunExecution as d, ProdTaskRunExecutionPayload as e, RateLimitOptions as f,
|
|
2568
|
+
export { Config as C, EnvironmentType as E, FixedWindowRateLimit as F, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, TaskMetadata as T, WaitReason as W, TaskFileMetadata as a, TaskMetadataWithFilePath as b, TaskRunExecutionPayload as c, ProdTaskRunExecution as d, ProdTaskRunExecutionPayload as e, RateLimitOptions as f, ScheduleMetadata as g, PostStartCauses as h, PreStopCauses as i, type ResolvedConfig as j, TaskRunExecutionLazyAttemptPayload as k, type RequireKeys as l };
|
|
@@ -1609,6 +1609,16 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
1609
1609
|
} | undefined;
|
|
1610
1610
|
}>;
|
|
1611
1611
|
type QueueOptions = z.infer<typeof QueueOptions>;
|
|
1612
|
+
declare const ScheduleMetadata: z.ZodObject<{
|
|
1613
|
+
cron: z.ZodString;
|
|
1614
|
+
timezone: z.ZodString;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
|
+
cron: string;
|
|
1617
|
+
timezone: string;
|
|
1618
|
+
}, {
|
|
1619
|
+
cron: string;
|
|
1620
|
+
timezone: string;
|
|
1621
|
+
}>;
|
|
1612
1622
|
declare const TaskMetadata: z.ZodObject<{
|
|
1613
1623
|
id: z.ZodString;
|
|
1614
1624
|
packageVersion: z.ZodString;
|
|
@@ -1876,6 +1886,16 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
1876
1886
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1877
1887
|
}>>;
|
|
1878
1888
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
1889
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
1890
|
+
cron: z.ZodString;
|
|
1891
|
+
timezone: z.ZodString;
|
|
1892
|
+
}, "strip", z.ZodTypeAny, {
|
|
1893
|
+
cron: string;
|
|
1894
|
+
timezone: string;
|
|
1895
|
+
}, {
|
|
1896
|
+
cron: string;
|
|
1897
|
+
timezone: string;
|
|
1898
|
+
}>>;
|
|
1879
1899
|
}, "strip", z.ZodTypeAny, {
|
|
1880
1900
|
id: string;
|
|
1881
1901
|
packageVersion: string;
|
|
@@ -1929,6 +1949,10 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
1929
1949
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1930
1950
|
} | undefined;
|
|
1931
1951
|
triggerSource?: string | undefined;
|
|
1952
|
+
schedule?: {
|
|
1953
|
+
cron: string;
|
|
1954
|
+
timezone: string;
|
|
1955
|
+
} | undefined;
|
|
1932
1956
|
}, {
|
|
1933
1957
|
id: string;
|
|
1934
1958
|
packageVersion: string;
|
|
@@ -1982,6 +2006,10 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
1982
2006
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1983
2007
|
} | undefined;
|
|
1984
2008
|
triggerSource?: string | undefined;
|
|
2009
|
+
schedule?: {
|
|
2010
|
+
cron: string;
|
|
2011
|
+
timezone: string;
|
|
2012
|
+
} | undefined;
|
|
1985
2013
|
}>;
|
|
1986
2014
|
type TaskMetadata = z.infer<typeof TaskMetadata>;
|
|
1987
2015
|
declare const TaskFileMetadata: z.ZodObject<{
|
|
@@ -2262,6 +2290,16 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
2262
2290
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2263
2291
|
}>>;
|
|
2264
2292
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
2294
|
+
cron: z.ZodString;
|
|
2295
|
+
timezone: z.ZodString;
|
|
2296
|
+
}, "strip", z.ZodTypeAny, {
|
|
2297
|
+
cron: string;
|
|
2298
|
+
timezone: string;
|
|
2299
|
+
}, {
|
|
2300
|
+
cron: string;
|
|
2301
|
+
timezone: string;
|
|
2302
|
+
}>>;
|
|
2265
2303
|
filePath: z.ZodString;
|
|
2266
2304
|
exportName: z.ZodString;
|
|
2267
2305
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2319,6 +2357,10 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
2319
2357
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2320
2358
|
} | undefined;
|
|
2321
2359
|
triggerSource?: string | undefined;
|
|
2360
|
+
schedule?: {
|
|
2361
|
+
cron: string;
|
|
2362
|
+
timezone: string;
|
|
2363
|
+
} | undefined;
|
|
2322
2364
|
}, {
|
|
2323
2365
|
id: string;
|
|
2324
2366
|
filePath: string;
|
|
@@ -2374,6 +2416,10 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
2374
2416
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2375
2417
|
} | undefined;
|
|
2376
2418
|
triggerSource?: string | undefined;
|
|
2419
|
+
schedule?: {
|
|
2420
|
+
cron: string;
|
|
2421
|
+
timezone: string;
|
|
2422
|
+
} | undefined;
|
|
2377
2423
|
}>;
|
|
2378
2424
|
type TaskMetadataWithFilePath = z.infer<typeof TaskMetadataWithFilePath>;
|
|
2379
2425
|
declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
|
|
@@ -2519,4 +2565,4 @@ declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
|
|
|
2519
2565
|
}>;
|
|
2520
2566
|
type TaskRunExecutionLazyAttemptPayload = z.infer<typeof TaskRunExecutionLazyAttemptPayload>;
|
|
2521
2567
|
|
|
2522
|
-
export { Config as C, EnvironmentType as E, FixedWindowRateLimit as F, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, TaskMetadata as T, WaitReason as W, TaskFileMetadata as a, TaskMetadataWithFilePath as b, TaskRunExecutionPayload as c, ProdTaskRunExecution as d, ProdTaskRunExecutionPayload as e, RateLimitOptions as f,
|
|
2568
|
+
export { Config as C, EnvironmentType as E, FixedWindowRateLimit as F, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, TaskMetadata as T, WaitReason as W, TaskFileMetadata as a, TaskMetadataWithFilePath as b, TaskRunExecutionPayload as c, ProdTaskRunExecution as d, ProdTaskRunExecutionPayload as e, RateLimitOptions as f, ScheduleMetadata as g, PostStartCauses as h, PreStopCauses as i, type ResolvedConfig as j, TaskRunExecutionLazyAttemptPayload as k, type RequireKeys as l };
|
package/dist/v3/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
1
|
import { CursorPageParams, ApiRequestOptions, ZodFetchOptions, ApiPromise, CursorPagePromise, OffsetLimitPagePromise } from './zodfetch.mjs';
|
|
3
2
|
export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadRequestError, ConflictError, CursorPage, CursorPageResponse, InternalServerError, NotFoundError, OffsetLimitPage, OffsetLimitPageParams, OffsetLimitPageResponse, Page, PageResponse, PermissionDeniedError, RateLimitError, UnprocessableEntityError, isRequestOptions } from './zodfetch.mjs';
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { RunStatus, TriggerTaskRequestBody, BatchTriggerTaskRequestBody, ListRunResponseItem, RescheduleRunRequestBody, AddTagsRequestBody, CreateScheduleOptions, ListScheduleOptions, UpdateScheduleOptions, CreateEnvironmentVariableRequestBody, UpdateEnvironmentVariableRequestBody, Accessory } from './schemas/index.mjs';
|
|
5
|
+
export { AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskResponse, Variant, WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers } from './schemas/index.mjs';
|
|
6
6
|
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-CLW82lkt.mjs';
|
|
7
7
|
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, 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, 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';
|
|
8
|
-
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-
|
|
9
|
-
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, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-
|
|
8
|
+
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-H7yFiZ60.mjs';
|
|
9
|
+
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, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-H7yFiZ60.mjs';
|
|
10
10
|
export { AbortTaskRunError, SerializedError, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, groupTaskMetadataIssuesByTask, parseError, sanitizeError } from './errors.mjs';
|
|
11
11
|
import { Attributes } from '@opentelemetry/api';
|
|
12
12
|
export { logger } from './logger-api.mjs';
|
|
13
13
|
import { R as RuntimeManager } from '../manager-KvCabW1a.mjs';
|
|
14
|
-
import { B as BackgroundWorkerProperties } from '../messages-
|
|
15
|
-
export { c as BackgroundWorkerClientMessages, 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-
|
|
16
|
-
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-
|
|
17
|
-
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit,
|
|
14
|
+
import { B as BackgroundWorkerProperties } from '../messages-mhHZiNGN.mjs';
|
|
15
|
+
export { c as BackgroundWorkerClientMessages, 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.mjs';
|
|
16
|
+
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-C9ssfehv.mjs';
|
|
17
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, l as RequireKeys, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, T as TaskMetadata, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-C9ssfehv.mjs';
|
|
18
18
|
export { SemanticInternalAttributes } from './semanticInternalAttributes.mjs';
|
|
19
19
|
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.mjs';
|
|
20
20
|
export { T as TriggerTracer } from '../tracer-N0p2Fuuv.mjs';
|
|
@@ -53,6 +53,7 @@ interface ListRunsQueryParams extends CursorPageParams {
|
|
|
53
53
|
to?: Date | number;
|
|
54
54
|
period?: string;
|
|
55
55
|
bulkAction?: string;
|
|
56
|
+
tag?: Array<string> | string;
|
|
56
57
|
schedule?: string;
|
|
57
58
|
isTest?: boolean;
|
|
58
59
|
}
|
|
@@ -91,8 +92,12 @@ declare class ApiClient {
|
|
|
91
92
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
92
93
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
93
94
|
id: string;
|
|
95
|
+
tags: string[];
|
|
94
96
|
isTest: boolean;
|
|
95
97
|
createdAt: Date;
|
|
98
|
+
durationMs: number;
|
|
99
|
+
costInCents: number;
|
|
100
|
+
baseCostInCents: number;
|
|
96
101
|
attempts: ({
|
|
97
102
|
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
98
103
|
id: string;
|
|
@@ -147,8 +152,12 @@ declare class ApiClient {
|
|
|
147
152
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
148
153
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
149
154
|
id: string;
|
|
155
|
+
tags: string[];
|
|
150
156
|
isTest: boolean;
|
|
151
157
|
createdAt: Date;
|
|
158
|
+
durationMs: number;
|
|
159
|
+
costInCents: number;
|
|
160
|
+
baseCostInCents: number;
|
|
152
161
|
attempts: ({
|
|
153
162
|
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
154
163
|
id: string;
|
|
@@ -192,7 +201,11 @@ declare class ApiClient {
|
|
|
192
201
|
ttl?: string | undefined;
|
|
193
202
|
expiredAt?: Date | undefined;
|
|
194
203
|
}>;
|
|
204
|
+
addTags(runId: string, body: AddTagsRequestBody, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
205
|
+
message: string;
|
|
206
|
+
}>;
|
|
195
207
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
208
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
196
209
|
id: string;
|
|
197
210
|
task: string;
|
|
198
211
|
active: boolean;
|
|
@@ -211,17 +224,18 @@ declare class ApiClient {
|
|
|
211
224
|
externalId?: string | null | undefined;
|
|
212
225
|
nextRun?: Date | null | undefined;
|
|
213
226
|
}>;
|
|
214
|
-
listSchedules(options?: ListScheduleOptions, requestOptions?: ZodFetchOptions): OffsetLimitPagePromise<
|
|
215
|
-
id:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
listSchedules(options?: ListScheduleOptions, requestOptions?: ZodFetchOptions): OffsetLimitPagePromise<z.ZodObject<{
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
type: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
|
|
230
|
+
task: z.ZodString;
|
|
231
|
+
active: z.ZodBoolean;
|
|
232
|
+
deduplicationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
generator: z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"CRON">;
|
|
236
|
+
expression: z.ZodString;
|
|
237
|
+
description: z.ZodString;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
239
|
type: "CRON";
|
|
226
240
|
description: string;
|
|
227
241
|
expression: string;
|
|
@@ -230,13 +244,13 @@ declare class ApiClient {
|
|
|
230
244
|
description: string;
|
|
231
245
|
expression: string;
|
|
232
246
|
}>;
|
|
233
|
-
timezone:
|
|
234
|
-
nextRun:
|
|
235
|
-
environments:
|
|
236
|
-
id:
|
|
237
|
-
type:
|
|
238
|
-
userName:
|
|
239
|
-
}, "strip",
|
|
247
|
+
timezone: z.ZodString;
|
|
248
|
+
nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
249
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
type: z.ZodString;
|
|
252
|
+
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
254
|
type: string;
|
|
241
255
|
id: string;
|
|
242
256
|
userName?: string | null | undefined;
|
|
@@ -245,7 +259,8 @@ declare class ApiClient {
|
|
|
245
259
|
id: string;
|
|
246
260
|
userName?: string | null | undefined;
|
|
247
261
|
}>, "many">;
|
|
248
|
-
}, "strip",
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
249
264
|
id: string;
|
|
250
265
|
task: string;
|
|
251
266
|
active: boolean;
|
|
@@ -264,6 +279,7 @@ declare class ApiClient {
|
|
|
264
279
|
externalId?: string | null | undefined;
|
|
265
280
|
nextRun?: Date | null | undefined;
|
|
266
281
|
}, {
|
|
282
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
267
283
|
id: string;
|
|
268
284
|
task: string;
|
|
269
285
|
active: boolean;
|
|
@@ -283,6 +299,7 @@ declare class ApiClient {
|
|
|
283
299
|
nextRun?: Date | null | undefined;
|
|
284
300
|
}>>;
|
|
285
301
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
302
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
286
303
|
id: string;
|
|
287
304
|
task: string;
|
|
288
305
|
active: boolean;
|
|
@@ -302,6 +319,7 @@ declare class ApiClient {
|
|
|
302
319
|
nextRun?: Date | null | undefined;
|
|
303
320
|
}>;
|
|
304
321
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
322
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
305
323
|
id: string;
|
|
306
324
|
task: string;
|
|
307
325
|
active: boolean;
|
|
@@ -321,6 +339,7 @@ declare class ApiClient {
|
|
|
321
339
|
nextRun?: Date | null | undefined;
|
|
322
340
|
}>;
|
|
323
341
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
342
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
324
343
|
id: string;
|
|
325
344
|
task: string;
|
|
326
345
|
active: boolean;
|
|
@@ -340,6 +359,7 @@ declare class ApiClient {
|
|
|
340
359
|
nextRun?: Date | null | undefined;
|
|
341
360
|
}>;
|
|
342
361
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
362
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
343
363
|
id: string;
|
|
344
364
|
task: string;
|
|
345
365
|
active: boolean;
|
|
@@ -497,4 +517,4 @@ declare function accessoryAttributes(accessory: Accessory): Attributes;
|
|
|
497
517
|
|
|
498
518
|
declare function detectDependencyVersion(dependency: string): string | undefined;
|
|
499
519
|
|
|
500
|
-
export { Accessory, ApiClient, type ApiClientConfiguration, ApiPromise, ApiRequestOptions, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CursorPageParams, CursorPagePromise, type ImportEnvironmentVariablesParams, type ListProjectRunsQueryParams, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, 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, RescheduleRunRequestBody, RunStatus, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskRunContext, TaskRunExecutionResult, type TriggerOptions, TriggerTaskRequestBody, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, accessoryAttributes, apiClientManager, clock, detectDependencyVersion, imposeAttributeLimits, mergeRequestOptions, runtime, taskCatalog, taskContext };
|
|
520
|
+
export { Accessory, AddTagsRequestBody, ApiClient, type ApiClientConfiguration, ApiPromise, ApiRequestOptions, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CursorPageParams, CursorPagePromise, type ImportEnvironmentVariablesParams, type ListProjectRunsQueryParams, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, 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, RescheduleRunRequestBody, RunStatus, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskRunContext, TaskRunExecutionResult, type TriggerOptions, TriggerTaskRequestBody, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, accessoryAttributes, apiClientManager, clock, detectDependencyVersion, imposeAttributeLimits, mergeRequestOptions, runtime, taskCatalog, taskContext };
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
1
|
import { CursorPageParams, ApiRequestOptions, ZodFetchOptions, ApiPromise, CursorPagePromise, OffsetLimitPagePromise } from './zodfetch.js';
|
|
3
2
|
export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadRequestError, ConflictError, CursorPage, CursorPageResponse, InternalServerError, NotFoundError, OffsetLimitPage, OffsetLimitPageParams, OffsetLimitPageResponse, Page, PageResponse, PermissionDeniedError, RateLimitError, UnprocessableEntityError, isRequestOptions } from './zodfetch.js';
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { RunStatus, TriggerTaskRequestBody, BatchTriggerTaskRequestBody, ListRunResponseItem, RescheduleRunRequestBody, AddTagsRequestBody, CreateScheduleOptions, ListScheduleOptions, UpdateScheduleOptions, CreateEnvironmentVariableRequestBody, UpdateEnvironmentVariableRequestBody, Accessory } from './schemas/index.js';
|
|
5
|
+
export { AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskResponse, Variant, WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers } from './schemas/index.js';
|
|
6
6
|
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-CLW82lkt.js';
|
|
7
7
|
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, 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, 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';
|
|
8
|
-
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-
|
|
9
|
-
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, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-
|
|
8
|
+
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-h79CG5Wy.js';
|
|
9
|
+
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, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-h79CG5Wy.js';
|
|
10
10
|
export { AbortTaskRunError, SerializedError, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, groupTaskMetadataIssuesByTask, parseError, sanitizeError } from './errors.js';
|
|
11
11
|
import { Attributes } from '@opentelemetry/api';
|
|
12
12
|
export { logger } from './logger-api.js';
|
|
13
13
|
import { R as RuntimeManager } from '../manager-OBA35PzR.js';
|
|
14
|
-
import { B as BackgroundWorkerProperties } from '../messages-
|
|
15
|
-
export { c as BackgroundWorkerClientMessages, 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-
|
|
16
|
-
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-
|
|
17
|
-
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit,
|
|
14
|
+
import { B as BackgroundWorkerProperties } from '../messages-mhHZiNGN.js';
|
|
15
|
+
export { c as BackgroundWorkerClientMessages, 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';
|
|
16
|
+
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-C9ssfehv.js';
|
|
17
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, l as RequireKeys, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, T as TaskMetadata, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-C9ssfehv.js';
|
|
18
18
|
export { SemanticInternalAttributes } from './semanticInternalAttributes.js';
|
|
19
19
|
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.js';
|
|
20
20
|
export { T as TriggerTracer } from '../tracer-N0p2Fuuv.js';
|
|
@@ -53,6 +53,7 @@ interface ListRunsQueryParams extends CursorPageParams {
|
|
|
53
53
|
to?: Date | number;
|
|
54
54
|
period?: string;
|
|
55
55
|
bulkAction?: string;
|
|
56
|
+
tag?: Array<string> | string;
|
|
56
57
|
schedule?: string;
|
|
57
58
|
isTest?: boolean;
|
|
58
59
|
}
|
|
@@ -91,8 +92,12 @@ declare class ApiClient {
|
|
|
91
92
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
92
93
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
93
94
|
id: string;
|
|
95
|
+
tags: string[];
|
|
94
96
|
isTest: boolean;
|
|
95
97
|
createdAt: Date;
|
|
98
|
+
durationMs: number;
|
|
99
|
+
costInCents: number;
|
|
100
|
+
baseCostInCents: number;
|
|
96
101
|
attempts: ({
|
|
97
102
|
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
98
103
|
id: string;
|
|
@@ -147,8 +152,12 @@ declare class ApiClient {
|
|
|
147
152
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
148
153
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
149
154
|
id: string;
|
|
155
|
+
tags: string[];
|
|
150
156
|
isTest: boolean;
|
|
151
157
|
createdAt: Date;
|
|
158
|
+
durationMs: number;
|
|
159
|
+
costInCents: number;
|
|
160
|
+
baseCostInCents: number;
|
|
152
161
|
attempts: ({
|
|
153
162
|
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
154
163
|
id: string;
|
|
@@ -192,7 +201,11 @@ declare class ApiClient {
|
|
|
192
201
|
ttl?: string | undefined;
|
|
193
202
|
expiredAt?: Date | undefined;
|
|
194
203
|
}>;
|
|
204
|
+
addTags(runId: string, body: AddTagsRequestBody, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
205
|
+
message: string;
|
|
206
|
+
}>;
|
|
195
207
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
208
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
196
209
|
id: string;
|
|
197
210
|
task: string;
|
|
198
211
|
active: boolean;
|
|
@@ -211,17 +224,18 @@ declare class ApiClient {
|
|
|
211
224
|
externalId?: string | null | undefined;
|
|
212
225
|
nextRun?: Date | null | undefined;
|
|
213
226
|
}>;
|
|
214
|
-
listSchedules(options?: ListScheduleOptions, requestOptions?: ZodFetchOptions): OffsetLimitPagePromise<
|
|
215
|
-
id:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
listSchedules(options?: ListScheduleOptions, requestOptions?: ZodFetchOptions): OffsetLimitPagePromise<z.ZodObject<{
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
type: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
|
|
230
|
+
task: z.ZodString;
|
|
231
|
+
active: z.ZodBoolean;
|
|
232
|
+
deduplicationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
generator: z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"CRON">;
|
|
236
|
+
expression: z.ZodString;
|
|
237
|
+
description: z.ZodString;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
239
|
type: "CRON";
|
|
226
240
|
description: string;
|
|
227
241
|
expression: string;
|
|
@@ -230,13 +244,13 @@ declare class ApiClient {
|
|
|
230
244
|
description: string;
|
|
231
245
|
expression: string;
|
|
232
246
|
}>;
|
|
233
|
-
timezone:
|
|
234
|
-
nextRun:
|
|
235
|
-
environments:
|
|
236
|
-
id:
|
|
237
|
-
type:
|
|
238
|
-
userName:
|
|
239
|
-
}, "strip",
|
|
247
|
+
timezone: z.ZodString;
|
|
248
|
+
nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
249
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
type: z.ZodString;
|
|
252
|
+
userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
254
|
type: string;
|
|
241
255
|
id: string;
|
|
242
256
|
userName?: string | null | undefined;
|
|
@@ -245,7 +259,8 @@ declare class ApiClient {
|
|
|
245
259
|
id: string;
|
|
246
260
|
userName?: string | null | undefined;
|
|
247
261
|
}>, "many">;
|
|
248
|
-
}, "strip",
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
249
264
|
id: string;
|
|
250
265
|
task: string;
|
|
251
266
|
active: boolean;
|
|
@@ -264,6 +279,7 @@ declare class ApiClient {
|
|
|
264
279
|
externalId?: string | null | undefined;
|
|
265
280
|
nextRun?: Date | null | undefined;
|
|
266
281
|
}, {
|
|
282
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
267
283
|
id: string;
|
|
268
284
|
task: string;
|
|
269
285
|
active: boolean;
|
|
@@ -283,6 +299,7 @@ declare class ApiClient {
|
|
|
283
299
|
nextRun?: Date | null | undefined;
|
|
284
300
|
}>>;
|
|
285
301
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
302
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
286
303
|
id: string;
|
|
287
304
|
task: string;
|
|
288
305
|
active: boolean;
|
|
@@ -302,6 +319,7 @@ declare class ApiClient {
|
|
|
302
319
|
nextRun?: Date | null | undefined;
|
|
303
320
|
}>;
|
|
304
321
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
322
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
305
323
|
id: string;
|
|
306
324
|
task: string;
|
|
307
325
|
active: boolean;
|
|
@@ -321,6 +339,7 @@ declare class ApiClient {
|
|
|
321
339
|
nextRun?: Date | null | undefined;
|
|
322
340
|
}>;
|
|
323
341
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
342
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
324
343
|
id: string;
|
|
325
344
|
task: string;
|
|
326
345
|
active: boolean;
|
|
@@ -340,6 +359,7 @@ declare class ApiClient {
|
|
|
340
359
|
nextRun?: Date | null | undefined;
|
|
341
360
|
}>;
|
|
342
361
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
362
|
+
type: "DECLARATIVE" | "IMPERATIVE";
|
|
343
363
|
id: string;
|
|
344
364
|
task: string;
|
|
345
365
|
active: boolean;
|
|
@@ -497,4 +517,4 @@ declare function accessoryAttributes(accessory: Accessory): Attributes;
|
|
|
497
517
|
|
|
498
518
|
declare function detectDependencyVersion(dependency: string): string | undefined;
|
|
499
519
|
|
|
500
|
-
export { Accessory, ApiClient, type ApiClientConfiguration, ApiPromise, ApiRequestOptions, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CursorPageParams, CursorPagePromise, type ImportEnvironmentVariablesParams, type ListProjectRunsQueryParams, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, 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, RescheduleRunRequestBody, RunStatus, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskRunContext, TaskRunExecutionResult, type TriggerOptions, TriggerTaskRequestBody, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, accessoryAttributes, apiClientManager, clock, detectDependencyVersion, imposeAttributeLimits, mergeRequestOptions, runtime, taskCatalog, taskContext };
|
|
520
|
+
export { Accessory, AddTagsRequestBody, ApiClient, type ApiClientConfiguration, ApiPromise, ApiRequestOptions, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CursorPageParams, CursorPagePromise, type ImportEnvironmentVariablesParams, type ListProjectRunsQueryParams, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, 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, RescheduleRunRequestBody, RunStatus, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskRunContext, TaskRunExecutionResult, type TriggerOptions, TriggerTaskRequestBody, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, accessoryAttributes, apiClientManager, clock, detectDependencyVersion, imposeAttributeLimits, mergeRequestOptions, runtime, taskCatalog, taskContext };
|