@trigger.dev/core 3.0.0-beta.48 → 3.0.0-beta.49
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/api-Pl9fxB8v.d.mts +13879 -0
- package/dist/api-sNoooMbT.d.ts +13879 -0
- package/dist/{catalog-NxVZnWZh.d.ts → catalog-U7_q4XsM.d.mts} +12 -34
- package/dist/{catalog-N-X0Te3W.d.mts → catalog-bSnBE19I.d.ts} +12 -34
- package/dist/{common-fIyU5pmz.d.mts → common-CLW82lkt.d.mts} +1 -1
- package/dist/{common-fIyU5pmz.d.ts → common-CLW82lkt.d.ts} +1 -1
- package/dist/{eventFilterMatches-2kHImluE.d.mts → eventFilter-66NaBAMi.d.mts} +1 -3
- package/dist/{eventFilterMatches-2kHImluE.d.ts → eventFilter-66NaBAMi.d.ts} +1 -3
- package/dist/eventFilterMatches.d.mts +6 -0
- package/dist/eventFilterMatches.d.ts +6 -0
- package/dist/eventFilterMatches.js +165 -0
- package/dist/eventFilterMatches.js.map +1 -0
- package/dist/eventFilterMatches.mjs +163 -0
- package/dist/eventFilterMatches.mjs.map +1 -0
- package/dist/index.d.mts +14 -16716
- package/dist/index.d.ts +14 -16716
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/json-DBPEJQRe.d.mts +16 -0
- package/dist/json-DBPEJQRe.d.ts +16 -0
- package/dist/{manager-X_HrWQ7_.d.mts → manager-KvCabW1a.d.mts} +1 -1
- package/dist/{manager-2ZQ3_twq.d.ts → manager-OBA35PzR.d.ts} +1 -1
- package/dist/replacements.d.mts +22 -0
- package/dist/replacements.d.ts +22 -0
- package/dist/replacements.js +33 -0
- package/dist/replacements.js.map +1 -0
- package/dist/replacements.mjs +28 -0
- package/dist/replacements.mjs.map +1 -0
- package/dist/requestFilter-HNZQEpQb.d.ts +180 -0
- package/dist/requestFilter-b5W2_1oP.d.mts +180 -0
- package/dist/requestFilterMatches.d.mts +13 -0
- package/dist/requestFilterMatches.d.ts +13 -0
- package/dist/requestFilterMatches.js +238 -0
- package/dist/requestFilterMatches.js.map +1 -0
- package/dist/requestFilterMatches.mjs +235 -0
- package/dist/requestFilterMatches.mjs.map +1 -0
- package/dist/retry.d.mts +10 -0
- package/dist/retry.d.ts +10 -0
- package/dist/retry.js +100 -0
- package/dist/retry.js.map +1 -0
- package/dist/retry.mjs +97 -0
- package/dist/retry.mjs.map +1 -0
- package/dist/schemas/index.d.mts +2611 -0
- package/dist/schemas/index.d.ts +2611 -0
- package/dist/schemas/index.js +1630 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/index.mjs +1463 -0
- package/dist/schemas/index.mjs.map +1 -0
- package/dist/{schemas-Zy7mGFgD.d.mts → schemas-WHkFakb3.d.mts} +4 -1
- package/dist/{schemas-Zy7mGFgD.d.ts → schemas-WHkFakb3.d.ts} +4 -1
- package/dist/taskLogger-CzADe4je.d.ts +33 -0
- package/dist/taskLogger-r_AFTX45.d.mts +33 -0
- package/dist/types.d.mts +11 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/types.mjs +3 -0
- package/dist/types.mjs.map +1 -0
- package/dist/utils.d.mts +7 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +33 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +30 -0
- package/dist/utils.mjs.map +1 -0
- package/dist/v3/dev/index.d.mts +2 -2
- package/dist/v3/dev/index.d.ts +2 -2
- package/dist/v3/errors.d.mts +39 -0
- package/dist/v3/errors.d.ts +39 -0
- package/dist/v3/errors.js +204 -0
- package/dist/v3/errors.js.map +1 -0
- package/dist/v3/errors.mjs +195 -0
- package/dist/v3/errors.mjs.map +1 -0
- package/dist/v3/index.d.mts +46 -211
- package/dist/v3/index.d.ts +46 -211
- package/dist/v3/index.js +3 -2
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +3 -2
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/logger-api.d.mts +24 -0
- package/dist/v3/logger-api.d.ts +24 -0
- package/dist/v3/logger-api.js +118 -0
- package/dist/v3/logger-api.js.map +1 -0
- package/dist/v3/logger-api.mjs +116 -0
- package/dist/v3/logger-api.mjs.map +1 -0
- 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 +3 -3
- package/dist/v3/prod/index.d.ts +3 -3
- package/dist/v3/schemas/index.d.mts +110 -110
- package/dist/v3/schemas/index.d.ts +110 -110
- package/dist/v3/schemas/index.js +2 -1
- package/dist/v3/schemas/index.js.map +1 -1
- package/dist/v3/schemas/index.mjs +2 -1
- package/dist/v3/schemas/index.mjs.map +1 -1
- package/dist/v3/semanticInternalAttributes.d.mts +56 -0
- package/dist/v3/semanticInternalAttributes.d.ts +56 -0
- package/dist/v3/semanticInternalAttributes.js +61 -0
- package/dist/v3/semanticInternalAttributes.js.map +1 -0
- package/dist/v3/semanticInternalAttributes.mjs +59 -0
- package/dist/v3/semanticInternalAttributes.mjs.map +1 -0
- package/dist/v3/utils/flattenAttributes.d.mts +8 -0
- package/dist/v3/utils/flattenAttributes.d.ts +8 -0
- package/dist/v3/utils/flattenAttributes.js +131 -0
- package/dist/v3/utils/flattenAttributes.js.map +1 -0
- package/dist/v3/utils/flattenAttributes.mjs +126 -0
- package/dist/v3/utils/flattenAttributes.mjs.map +1 -0
- package/dist/v3/utils/ioSerialization.d.mts +21 -0
- package/dist/v3/utils/ioSerialization.d.ts +21 -0
- package/dist/v3/utils/ioSerialization.js +2348 -0
- package/dist/v3/utils/ioSerialization.js.map +1 -0
- package/dist/v3/utils/ioSerialization.mjs +2339 -0
- package/dist/v3/utils/ioSerialization.mjs.map +1 -0
- package/dist/v3/utils/omit.d.mts +3 -0
- package/dist/v3/utils/omit.d.ts +3 -0
- package/dist/v3/utils/omit.js +20 -0
- package/dist/v3/utils/omit.js.map +1 -0
- package/dist/v3/utils/omit.mjs +18 -0
- package/dist/v3/utils/omit.mjs.map +1 -0
- package/dist/v3/utils/retries.d.mts +46 -0
- package/dist/v3/utils/retries.d.ts +46 -0
- package/dist/v3/utils/retries.js +118 -0
- package/dist/v3/utils/retries.js.map +1 -0
- package/dist/v3/utils/retries.mjs +113 -0
- package/dist/v3/utils/retries.mjs.map +1 -0
- package/dist/v3/workers/index.d.mts +7 -6
- package/dist/v3/workers/index.d.ts +7 -6
- package/dist/v3/workers/index.js +3 -2
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +3 -2
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodIpc.js.map +1 -1
- package/dist/v3/zodIpc.mjs.map +1 -1
- package/dist/v3/zodMessageHandler.d.mts +16 -3
- package/dist/v3/zodMessageHandler.d.ts +16 -3
- package/dist/v3/zodMessageHandler.js +59 -13
- package/dist/v3/zodMessageHandler.js.map +1 -1
- package/dist/v3/zodMessageHandler.mjs +59 -13
- package/dist/v3/zodMessageHandler.mjs.map +1 -1
- package/dist/v3/zodNamespace.js.map +1 -1
- package/dist/v3/zodNamespace.mjs.map +1 -1
- package/dist/v3/zodfetch.d.mts +1 -1
- package/dist/v3/zodfetch.d.ts +1 -1
- package/dist/versions.d.mts +11 -0
- package/dist/versions.d.ts +11 -0
- package/dist/versions.js +31 -0
- package/dist/versions.js.map +1 -0
- package/dist/versions.mjs +27 -0
- package/dist/versions.mjs.map +1 -0
- package/package.json +137 -17
- package/dist/{messages-Sggr4tid.d.mts → messages-I-h-zZN9.d.mts} +32 -32
- package/dist/{messages-Sggr4tid.d.ts → messages-I-h-zZN9.d.ts} +32 -32
package/dist/v3/index.d.mts
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
|
-
import { z } from 'zod';
|
|
3
2
|
import { CursorPageParams, ApiRequestOptions, ZodFetchOptions, ApiPromise, CursorPagePromise, OffsetLimitPagePromise } from './zodfetch.mjs';
|
|
4
3
|
export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadRequestError, ConflictError, CursorPage, CursorPageResponse, InternalServerError, NotFoundError, OffsetLimitPage, OffsetLimitPageParams, OffsetLimitPageResponse, Page, PageResponse, PermissionDeniedError, RateLimitError, UnprocessableEntityError, isRequestOptions } from './zodfetch.mjs';
|
|
5
4
|
import { RunStatus, TriggerTaskRequestBody, BatchTriggerTaskRequestBody, ListRunResponseItem, RescheduleRunRequestBody, CreateScheduleOptions, ListScheduleOptions, UpdateScheduleOptions, CreateEnvironmentVariableRequestBody, UpdateEnvironmentVariableRequestBody, Accessory } from './schemas/index.mjs';
|
|
6
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, ScheduleGenerator, ScheduleObject, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskResponse, Variant, WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers } from './schemas/index.mjs';
|
|
7
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult,
|
|
8
|
-
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,
|
|
9
|
-
import { C as Clock, a as ClockTime,
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
export {
|
|
6
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-CLW82lkt.mjs';
|
|
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-U7_q4XsM.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-U7_q4XsM.mjs';
|
|
10
|
+
export { AbortTaskRunError, SerializedError, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, groupTaskMetadataIssuesByTask, parseError, sanitizeError } from './errors.mjs';
|
|
11
|
+
import { Attributes } from '@opentelemetry/api';
|
|
12
|
+
export { logger } from './logger-api.mjs';
|
|
13
|
+
import { R as RuntimeManager } from '../manager-KvCabW1a.mjs';
|
|
14
|
+
import { B as BackgroundWorkerProperties } from '../messages-I-h-zZN9.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-I-h-zZN9.mjs';
|
|
16
|
+
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-WHkFakb3.mjs';
|
|
17
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, k as RequireKeys, i as ResolvedConfig, R as RetryOptions, S as SlidingWindowRateLimit, T as TaskMetadata, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-WHkFakb3.mjs';
|
|
18
|
+
export { SemanticInternalAttributes } from './semanticInternalAttributes.mjs';
|
|
17
19
|
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.mjs';
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
|
|
20
|
+
export { T as TriggerTracer } from '../tracer-N0p2Fuuv.mjs';
|
|
21
|
+
export { L as LogLevel } from '../taskLogger-r_AFTX45.mjs';
|
|
22
|
+
export { eventFilterMatches } from '../eventFilterMatches.mjs';
|
|
23
|
+
export { NULL_SENTINEL, flattenAttributes, primitiveValueOrflattenedAttributes, unflattenAttributes } from './utils/flattenAttributes.mjs';
|
|
24
|
+
export { omit } from './utils/omit.mjs';
|
|
25
|
+
export { calculateNextRetryDelay, calculateResetAt, defaultFetchRetryOptions, defaultRetryOptions } from './utils/retries.mjs';
|
|
26
|
+
export { IOPacket, conditionallyExportPacket, conditionallyImportPacket, createPacketAttributes, createPacketAttributesAsJson, packetRequiresOffloading, parsePacket, prettyPrintPacket, stringifyIO } from './utils/ioSerialization.mjs';
|
|
21
27
|
import '@opentelemetry/instrumentation';
|
|
28
|
+
import '@opentelemetry/api-logs';
|
|
22
29
|
import 'humanize-duration';
|
|
30
|
+
import '../eventFilter-66NaBAMi.mjs';
|
|
23
31
|
|
|
24
32
|
interface ImportEnvironmentVariablesParams {
|
|
25
33
|
/**
|
|
@@ -71,8 +79,8 @@ declare class ApiClient {
|
|
|
71
79
|
id: string;
|
|
72
80
|
}>;
|
|
73
81
|
batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
74
|
-
batchId: string;
|
|
75
82
|
runs: string[];
|
|
83
|
+
batchId: string;
|
|
76
84
|
}>;
|
|
77
85
|
createUploadPayloadUrl(filename: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
78
86
|
presignedUrl: string;
|
|
@@ -81,12 +89,12 @@ declare class ApiClient {
|
|
|
81
89
|
presignedUrl: string;
|
|
82
90
|
}>;
|
|
83
91
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
84
|
-
status: "
|
|
92
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
85
93
|
id: string;
|
|
86
94
|
isTest: boolean;
|
|
87
95
|
createdAt: Date;
|
|
88
96
|
attempts: ({
|
|
89
|
-
status: "PENDING" | "
|
|
97
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
90
98
|
id: string;
|
|
91
99
|
createdAt: Date;
|
|
92
100
|
updatedAt: Date;
|
|
@@ -114,8 +122,8 @@ declare class ApiClient {
|
|
|
114
122
|
id: string;
|
|
115
123
|
generator: {
|
|
116
124
|
type: "CRON";
|
|
117
|
-
expression: string;
|
|
118
125
|
description: string;
|
|
126
|
+
expression: string;
|
|
119
127
|
};
|
|
120
128
|
externalId?: string | undefined;
|
|
121
129
|
deduplicationKey?: string | undefined;
|
|
@@ -137,12 +145,12 @@ declare class ApiClient {
|
|
|
137
145
|
id: string;
|
|
138
146
|
}>;
|
|
139
147
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
140
|
-
status: "
|
|
148
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
141
149
|
id: string;
|
|
142
150
|
isTest: boolean;
|
|
143
151
|
createdAt: Date;
|
|
144
152
|
attempts: ({
|
|
145
|
-
status: "PENDING" | "
|
|
153
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
146
154
|
id: string;
|
|
147
155
|
createdAt: Date;
|
|
148
156
|
updatedAt: Date;
|
|
@@ -170,8 +178,8 @@ declare class ApiClient {
|
|
|
170
178
|
id: string;
|
|
171
179
|
generator: {
|
|
172
180
|
type: "CRON";
|
|
173
|
-
expression: string;
|
|
174
181
|
description: string;
|
|
182
|
+
expression: string;
|
|
175
183
|
};
|
|
176
184
|
externalId?: string | undefined;
|
|
177
185
|
deduplicationKey?: string | undefined;
|
|
@@ -187,13 +195,13 @@ declare class ApiClient {
|
|
|
187
195
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
188
196
|
id: string;
|
|
189
197
|
task: string;
|
|
190
|
-
timezone: string;
|
|
191
198
|
active: boolean;
|
|
192
199
|
generator: {
|
|
193
200
|
type: "CRON";
|
|
194
|
-
expression: string;
|
|
195
201
|
description: string;
|
|
202
|
+
expression: string;
|
|
196
203
|
};
|
|
204
|
+
timezone: string;
|
|
197
205
|
environments: {
|
|
198
206
|
type: string;
|
|
199
207
|
id: string;
|
|
@@ -215,12 +223,12 @@ declare class ApiClient {
|
|
|
215
223
|
description: zod.ZodString;
|
|
216
224
|
}, "strip", zod.ZodTypeAny, {
|
|
217
225
|
type: "CRON";
|
|
218
|
-
expression: string;
|
|
219
226
|
description: string;
|
|
227
|
+
expression: string;
|
|
220
228
|
}, {
|
|
221
229
|
type: "CRON";
|
|
222
|
-
expression: string;
|
|
223
230
|
description: string;
|
|
231
|
+
expression: string;
|
|
224
232
|
}>;
|
|
225
233
|
timezone: zod.ZodString;
|
|
226
234
|
nextRun: zod.ZodOptional<zod.ZodNullable<zod.ZodDate>>;
|
|
@@ -240,13 +248,13 @@ declare class ApiClient {
|
|
|
240
248
|
}, "strip", zod.ZodTypeAny, {
|
|
241
249
|
id: string;
|
|
242
250
|
task: string;
|
|
243
|
-
timezone: string;
|
|
244
251
|
active: boolean;
|
|
245
252
|
generator: {
|
|
246
253
|
type: "CRON";
|
|
247
|
-
expression: string;
|
|
248
254
|
description: string;
|
|
255
|
+
expression: string;
|
|
249
256
|
};
|
|
257
|
+
timezone: string;
|
|
250
258
|
environments: {
|
|
251
259
|
type: string;
|
|
252
260
|
id: string;
|
|
@@ -258,13 +266,13 @@ declare class ApiClient {
|
|
|
258
266
|
}, {
|
|
259
267
|
id: string;
|
|
260
268
|
task: string;
|
|
261
|
-
timezone: string;
|
|
262
269
|
active: boolean;
|
|
263
270
|
generator: {
|
|
264
271
|
type: "CRON";
|
|
265
|
-
expression: string;
|
|
266
272
|
description: string;
|
|
273
|
+
expression: string;
|
|
267
274
|
};
|
|
275
|
+
timezone: string;
|
|
268
276
|
environments: {
|
|
269
277
|
type: string;
|
|
270
278
|
id: string;
|
|
@@ -277,13 +285,13 @@ declare class ApiClient {
|
|
|
277
285
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
278
286
|
id: string;
|
|
279
287
|
task: string;
|
|
280
|
-
timezone: string;
|
|
281
288
|
active: boolean;
|
|
282
289
|
generator: {
|
|
283
290
|
type: "CRON";
|
|
284
|
-
expression: string;
|
|
285
291
|
description: string;
|
|
292
|
+
expression: string;
|
|
286
293
|
};
|
|
294
|
+
timezone: string;
|
|
287
295
|
environments: {
|
|
288
296
|
type: string;
|
|
289
297
|
id: string;
|
|
@@ -296,13 +304,13 @@ declare class ApiClient {
|
|
|
296
304
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
297
305
|
id: string;
|
|
298
306
|
task: string;
|
|
299
|
-
timezone: string;
|
|
300
307
|
active: boolean;
|
|
301
308
|
generator: {
|
|
302
309
|
type: "CRON";
|
|
303
|
-
expression: string;
|
|
304
310
|
description: string;
|
|
311
|
+
expression: string;
|
|
305
312
|
};
|
|
313
|
+
timezone: string;
|
|
306
314
|
environments: {
|
|
307
315
|
type: string;
|
|
308
316
|
id: string;
|
|
@@ -315,13 +323,13 @@ declare class ApiClient {
|
|
|
315
323
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
316
324
|
id: string;
|
|
317
325
|
task: string;
|
|
318
|
-
timezone: string;
|
|
319
326
|
active: boolean;
|
|
320
327
|
generator: {
|
|
321
328
|
type: "CRON";
|
|
322
|
-
expression: string;
|
|
323
329
|
description: string;
|
|
330
|
+
expression: string;
|
|
324
331
|
};
|
|
332
|
+
timezone: string;
|
|
325
333
|
environments: {
|
|
326
334
|
type: string;
|
|
327
335
|
id: string;
|
|
@@ -334,13 +342,13 @@ declare class ApiClient {
|
|
|
334
342
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): ApiPromise<{
|
|
335
343
|
id: string;
|
|
336
344
|
task: string;
|
|
337
|
-
timezone: string;
|
|
338
345
|
active: boolean;
|
|
339
346
|
generator: {
|
|
340
347
|
type: "CRON";
|
|
341
|
-
expression: string;
|
|
342
348
|
description: string;
|
|
349
|
+
expression: string;
|
|
343
350
|
};
|
|
351
|
+
timezone: string;
|
|
344
352
|
environments: {
|
|
345
353
|
type: string;
|
|
346
354
|
id: string;
|
|
@@ -388,41 +396,6 @@ declare class ClockAPI {
|
|
|
388
396
|
/** Entrypoint for clock API */
|
|
389
397
|
declare const clock: ClockAPI;
|
|
390
398
|
|
|
391
|
-
declare class AbortTaskRunError extends Error {
|
|
392
|
-
constructor(message: string);
|
|
393
|
-
}
|
|
394
|
-
declare function parseError(error: unknown): TaskRunError;
|
|
395
|
-
declare function createErrorTaskError(error: TaskRunError): any;
|
|
396
|
-
declare const SerializedError: z.ZodObject<{
|
|
397
|
-
message: z.ZodString;
|
|
398
|
-
name: z.ZodOptional<z.ZodString>;
|
|
399
|
-
stackTrace: z.ZodOptional<z.ZodString>;
|
|
400
|
-
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
message: string;
|
|
402
|
-
name?: string | undefined;
|
|
403
|
-
stackTrace?: string | undefined;
|
|
404
|
-
}, {
|
|
405
|
-
message: string;
|
|
406
|
-
name?: string | undefined;
|
|
407
|
-
stackTrace?: string | undefined;
|
|
408
|
-
}>;
|
|
409
|
-
type SerializedError = z.infer<typeof SerializedError>;
|
|
410
|
-
declare function createJsonErrorObject(error: TaskRunError): SerializedError;
|
|
411
|
-
declare function sanitizeError(error: TaskRunError): TaskRunError;
|
|
412
|
-
declare function correctErrorStackTrace(stackTrace: string, projectDir?: string, options?: {
|
|
413
|
-
removeFirstLine?: boolean;
|
|
414
|
-
isDev?: boolean;
|
|
415
|
-
}): string;
|
|
416
|
-
declare function groupTaskMetadataIssuesByTask(tasks: any, issues: z.ZodIssue[]): Record<number, {
|
|
417
|
-
id: any;
|
|
418
|
-
exportName: string;
|
|
419
|
-
filePath: string;
|
|
420
|
-
issues: Array<{
|
|
421
|
-
message: string;
|
|
422
|
-
path?: string;
|
|
423
|
-
}>;
|
|
424
|
-
}>;
|
|
425
|
-
|
|
426
399
|
declare const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 256;
|
|
427
400
|
declare const OTEL_LOG_ATTRIBUTE_COUNT_LIMIT = 256;
|
|
428
401
|
declare const OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = 1028;
|
|
@@ -434,24 +407,6 @@ declare const OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT = 10;
|
|
|
434
407
|
declare const OFFLOAD_IO_PACKET_LENGTH_LIMIT: number;
|
|
435
408
|
declare function imposeAttributeLimits(attributes: Attributes): Attributes;
|
|
436
409
|
|
|
437
|
-
declare class LoggerAPI implements TaskLogger {
|
|
438
|
-
#private;
|
|
439
|
-
private static _instance?;
|
|
440
|
-
private constructor();
|
|
441
|
-
static getInstance(): LoggerAPI;
|
|
442
|
-
disable(): void;
|
|
443
|
-
setGlobalTaskLogger(taskLogger: TaskLogger): boolean;
|
|
444
|
-
debug(message: string, metadata?: Record<string, unknown>): void;
|
|
445
|
-
log(message: string, metadata?: Record<string, unknown>): void;
|
|
446
|
-
info(message: string, metadata?: Record<string, unknown>): void;
|
|
447
|
-
warn(message: string, metadata?: Record<string, unknown>): void;
|
|
448
|
-
error(message: string, metadata?: Record<string, unknown>): void;
|
|
449
|
-
trace<T>(name: string, fn: (span: Span) => Promise<T>): Promise<T>;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/** Entrypoint for logger API */
|
|
453
|
-
declare const logger: LoggerAPI;
|
|
454
|
-
|
|
455
410
|
declare class RuntimeAPI {
|
|
456
411
|
#private;
|
|
457
412
|
private static _instance?;
|
|
@@ -519,61 +474,6 @@ declare class APIClientManagerAPI {
|
|
|
519
474
|
/** Entrypoint for logger API */
|
|
520
475
|
declare const apiClientManager: APIClientManagerAPI;
|
|
521
476
|
|
|
522
|
-
declare const SemanticInternalAttributes: {
|
|
523
|
-
ENVIRONMENT_ID: string;
|
|
524
|
-
ENVIRONMENT_TYPE: string;
|
|
525
|
-
ORGANIZATION_ID: string;
|
|
526
|
-
ORGANIZATION_SLUG: string;
|
|
527
|
-
ORGANIZATION_NAME: string;
|
|
528
|
-
PROJECT_ID: string;
|
|
529
|
-
PROJECT_REF: string;
|
|
530
|
-
PROJECT_NAME: string;
|
|
531
|
-
PROJECT_DIR: string;
|
|
532
|
-
ATTEMPT_ID: string;
|
|
533
|
-
ATTEMPT_NUMBER: string;
|
|
534
|
-
RUN_ID: string;
|
|
535
|
-
RUN_IS_TEST: string;
|
|
536
|
-
BATCH_ID: string;
|
|
537
|
-
TASK_SLUG: string;
|
|
538
|
-
TASK_PATH: string;
|
|
539
|
-
TASK_EXPORT_NAME: string;
|
|
540
|
-
QUEUE_NAME: string;
|
|
541
|
-
QUEUE_ID: string;
|
|
542
|
-
MACHINE_PRESET_NAME: string;
|
|
543
|
-
MACHINE_PRESET_CPU: string;
|
|
544
|
-
MACHINE_PRESET_MEMORY: string;
|
|
545
|
-
MACHINE_PRESET_CENTS_PER_MS: string;
|
|
546
|
-
SPAN_PARTIAL: string;
|
|
547
|
-
SPAN_ID: string;
|
|
548
|
-
OUTPUT: string;
|
|
549
|
-
OUTPUT_TYPE: string;
|
|
550
|
-
STYLE: string;
|
|
551
|
-
STYLE_ICON: string;
|
|
552
|
-
STYLE_VARIANT: string;
|
|
553
|
-
STYLE_ACCESSORY: string;
|
|
554
|
-
METADATA: string;
|
|
555
|
-
TRIGGER: string;
|
|
556
|
-
PAYLOAD: string;
|
|
557
|
-
PAYLOAD_TYPE: string;
|
|
558
|
-
SHOW: string;
|
|
559
|
-
SHOW_ACTIONS: string;
|
|
560
|
-
WORKER_ID: string;
|
|
561
|
-
WORKER_VERSION: string;
|
|
562
|
-
CLI_VERSION: string;
|
|
563
|
-
SDK_VERSION: string;
|
|
564
|
-
SDK_LANGUAGE: string;
|
|
565
|
-
RETRY_AT: string;
|
|
566
|
-
RETRY_DELAY: string;
|
|
567
|
-
RETRY_COUNT: string;
|
|
568
|
-
LINK_TITLE: string;
|
|
569
|
-
IDEMPOTENCY_KEY: string;
|
|
570
|
-
USAGE_DURATION_MS: string;
|
|
571
|
-
USAGE_COST_IN_CENTS: string;
|
|
572
|
-
RATE_LIMIT_LIMIT: string;
|
|
573
|
-
RATE_LIMIT_REMAINING: string;
|
|
574
|
-
RATE_LIMIT_RESET: string;
|
|
575
|
-
};
|
|
576
|
-
|
|
577
477
|
declare class TaskCatalogAPI {
|
|
578
478
|
#private;
|
|
579
479
|
private static _instance?;
|
|
@@ -593,73 +493,8 @@ declare class TaskCatalogAPI {
|
|
|
593
493
|
/** Entrypoint for runtime API */
|
|
594
494
|
declare const taskCatalog: TaskCatalogAPI;
|
|
595
495
|
|
|
596
|
-
declare const NULL_SENTINEL = "$@null((";
|
|
597
|
-
declare function flattenAttributes(obj: Record<string, unknown> | Array<unknown> | string | boolean | number | null | undefined, prefix?: string): Attributes;
|
|
598
|
-
declare function unflattenAttributes(obj: Attributes): Record<string, unknown> | string | number | boolean | null | undefined;
|
|
599
|
-
declare function primitiveValueOrflattenedAttributes(obj: Record<string, unknown> | Array<unknown> | string | boolean | number | undefined, prefix: string | undefined): Attributes | string | number | boolean | undefined;
|
|
600
|
-
|
|
601
|
-
declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, ...keys: K[]): Omit<T, K>;
|
|
602
|
-
|
|
603
|
-
declare const defaultRetryOptions: {
|
|
604
|
-
maxAttempts: number;
|
|
605
|
-
factor: number;
|
|
606
|
-
minTimeoutInMs: number;
|
|
607
|
-
maxTimeoutInMs: number;
|
|
608
|
-
randomize: true;
|
|
609
|
-
};
|
|
610
|
-
declare const defaultFetchRetryOptions: {
|
|
611
|
-
byStatus: {
|
|
612
|
-
"429,408,409,5xx": {
|
|
613
|
-
maxAttempts: number;
|
|
614
|
-
factor: number;
|
|
615
|
-
minTimeoutInMs: number;
|
|
616
|
-
maxTimeoutInMs: number;
|
|
617
|
-
randomize: true;
|
|
618
|
-
strategy: "backoff";
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
connectionError: {
|
|
622
|
-
maxAttempts: number;
|
|
623
|
-
factor: number;
|
|
624
|
-
minTimeoutInMs: number;
|
|
625
|
-
maxTimeoutInMs: number;
|
|
626
|
-
randomize: true;
|
|
627
|
-
};
|
|
628
|
-
timeout: {
|
|
629
|
-
maxAttempts: number;
|
|
630
|
-
factor: number;
|
|
631
|
-
minTimeoutInMs: number;
|
|
632
|
-
maxTimeoutInMs: number;
|
|
633
|
-
randomize: true;
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
*
|
|
638
|
-
* @param options
|
|
639
|
-
* @param attempt - The current attempt number. If the first attempt has failed, this will be 1.
|
|
640
|
-
* @returns
|
|
641
|
-
*/
|
|
642
|
-
declare function calculateNextRetryDelay(options: RetryOptions, attempt: number): number | undefined;
|
|
643
|
-
declare function calculateResetAt(resets: string | undefined | null, format: "unix_timestamp" | "iso_8601" | "iso_8601_duration_openai_variant" | "unix_timestamp_in_ms", now?: number): number | undefined;
|
|
644
|
-
|
|
645
496
|
declare function accessoryAttributes(accessory: Accessory): Attributes;
|
|
646
497
|
|
|
647
498
|
declare function detectDependencyVersion(dependency: string): string | undefined;
|
|
648
499
|
|
|
649
|
-
type
|
|
650
|
-
data?: string | undefined;
|
|
651
|
-
dataType: string;
|
|
652
|
-
};
|
|
653
|
-
declare function parsePacket(value: IOPacket): Promise<any>;
|
|
654
|
-
declare function stringifyIO(value: any): Promise<IOPacket>;
|
|
655
|
-
declare function conditionallyExportPacket(packet: IOPacket, pathPrefix: string, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
656
|
-
declare function packetRequiresOffloading(packet: IOPacket, lengthLimit?: number): {
|
|
657
|
-
needsOffloading: boolean;
|
|
658
|
-
size: number;
|
|
659
|
-
};
|
|
660
|
-
declare function conditionallyImportPacket(packet: IOPacket, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
661
|
-
declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataTypeKey: string): Promise<Attributes | undefined>;
|
|
662
|
-
declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
|
|
663
|
-
declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
|
|
664
|
-
|
|
665
|
-
export { AbortTaskRunError, Accessory, ApiClient, type ApiClientConfiguration, ApiPromise, ApiRequestOptions, BackgroundWorkerProperties, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, type CreateEnvironmentVariableParams, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CursorPageParams, CursorPagePromise, type IOPacket, type ImportEnvironmentVariablesParams, type ListProjectRunsQueryParams, ListRunResponseItem, type ListRunsQueryParams, ListScheduleOptions, 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, RescheduleRunRequestBody, RetryOptions, RunStatus, SemanticInternalAttributes, SerializedError, TaskFileMetadata, TaskMetadataWithFilePath, TaskMetadataWithFunctions, TaskRunContext, TaskRunError, TaskRunExecutionResult, type TriggerOptions, TriggerTaskRequestBody, TriggerTracer, type UpdateEnvironmentVariableParams, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, groupTaskMetadataIssuesByTask, imposeAttributeLimits, logger, mergeRequestOptions, omit, packetRequiresOffloading, parseError, parsePacket, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, sanitizeError, stringifyIO, taskCatalog, taskContext, unflattenAttributes };
|
|
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 };
|