@trigger.dev/core 3.0.0-beta.42 → 3.0.0-beta.43
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/v3/index.d.mts +12 -15
- package/dist/v3/index.d.ts +12 -15
- package/dist/v3/index.js +5 -3
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +5 -3
- 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/utils/durations.d.mts +15 -0
- package/dist/v3/utils/durations.d.ts +15 -0
- package/dist/v3/utils/durations.js +93 -0
- package/dist/v3/utils/durations.js.map +1 -0
- package/dist/v3/utils/durations.mjs +82 -0
- package/dist/v3/utils/durations.mjs.map +1 -0
- package/dist/v3/workers/index.js +5 -3
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +5 -3
- 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.js +18 -10
- package/dist/v3/zodMessageHandler.js.map +1 -1
- package/dist/v3/zodMessageHandler.mjs +18 -10
- package/dist/v3/zodMessageHandler.mjs.map +1 -1
- package/dist/v3/zodNamespace.js +18 -10
- package/dist/v3/zodNamespace.js.map +1 -1
- package/dist/v3/zodNamespace.mjs +18 -10
- package/dist/v3/zodNamespace.mjs.map +1 -1
- package/package.json +9 -1
package/dist/v3/index.d.mts
CHANGED
|
@@ -11,10 +11,11 @@ import { B as BackgroundWorkerProperties } from '../messages-xJbR1Vai.mjs';
|
|
|
11
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-xJbR1Vai.mjs';
|
|
12
12
|
import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-Sb0sJcEt.mjs';
|
|
13
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-Sb0sJcEt.mjs';
|
|
14
|
-
|
|
14
|
+
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.mjs';
|
|
15
15
|
export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.mjs';
|
|
16
16
|
import '@opentelemetry/api-logs';
|
|
17
17
|
import '@opentelemetry/instrumentation';
|
|
18
|
+
import 'humanize-duration';
|
|
18
19
|
|
|
19
20
|
declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
|
|
20
21
|
url: z.ZodString;
|
|
@@ -2419,7 +2420,9 @@ declare const RunScheduleDetails: z.ZodObject<{
|
|
|
2419
2420
|
type RunScheduleDetails = z.infer<typeof RunScheduleDetails>;
|
|
2420
2421
|
declare const RetrieveRunResponse: z.ZodObject<{
|
|
2421
2422
|
payload: z.ZodOptional<z.ZodAny>;
|
|
2423
|
+
payloadPresignedUrl: z.ZodOptional<z.ZodString>;
|
|
2422
2424
|
output: z.ZodOptional<z.ZodAny>;
|
|
2425
|
+
outputPresignedUrl: z.ZodOptional<z.ZodString>;
|
|
2423
2426
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
2424
2427
|
id: z.ZodString;
|
|
2425
2428
|
externalId: z.ZodOptional<z.ZodString>;
|
|
@@ -2544,7 +2547,9 @@ declare const RetrieveRunResponse: z.ZodObject<{
|
|
|
2544
2547
|
isFailed: boolean;
|
|
2545
2548
|
isCancelled: boolean;
|
|
2546
2549
|
payload?: any;
|
|
2550
|
+
payloadPresignedUrl?: string | undefined;
|
|
2547
2551
|
output?: any;
|
|
2552
|
+
outputPresignedUrl?: string | undefined;
|
|
2548
2553
|
schedule?: {
|
|
2549
2554
|
id: string;
|
|
2550
2555
|
generator: {
|
|
@@ -2586,7 +2591,9 @@ declare const RetrieveRunResponse: z.ZodObject<{
|
|
|
2586
2591
|
isFailed: boolean;
|
|
2587
2592
|
isCancelled: boolean;
|
|
2588
2593
|
payload?: any;
|
|
2594
|
+
payloadPresignedUrl?: string | undefined;
|
|
2589
2595
|
output?: any;
|
|
2596
|
+
outputPresignedUrl?: string | undefined;
|
|
2590
2597
|
schedule?: {
|
|
2591
2598
|
id: string;
|
|
2592
2599
|
generator: {
|
|
@@ -4655,7 +4662,9 @@ declare class ApiClient {
|
|
|
4655
4662
|
isFailed: boolean;
|
|
4656
4663
|
isCancelled: boolean;
|
|
4657
4664
|
payload?: any;
|
|
4665
|
+
payloadPresignedUrl?: string | undefined;
|
|
4658
4666
|
output?: any;
|
|
4667
|
+
outputPresignedUrl?: string | undefined;
|
|
4659
4668
|
schedule?: {
|
|
4660
4669
|
id: string;
|
|
4661
4670
|
generator: {
|
|
@@ -5079,18 +5088,6 @@ declare class TaskCatalogAPI {
|
|
|
5079
5088
|
/** Entrypoint for runtime API */
|
|
5080
5089
|
declare const taskCatalog: TaskCatalogAPI;
|
|
5081
5090
|
|
|
5082
|
-
type DurationOptions = {
|
|
5083
|
-
style?: "long" | "short";
|
|
5084
|
-
maxDecimalPoints?: number;
|
|
5085
|
-
units?: Unit[];
|
|
5086
|
-
};
|
|
5087
|
-
declare function formatDuration(start?: Date | null, end?: Date | null, options?: DurationOptions): string;
|
|
5088
|
-
declare function nanosecondsToMilliseconds(nanoseconds: number): number;
|
|
5089
|
-
declare function millisecondsToNanoseconds(milliseconds: number): number;
|
|
5090
|
-
declare function formatDurationNanoseconds(nanoseconds: number, options?: DurationOptions): string;
|
|
5091
|
-
declare function formatDurationMilliseconds(milliseconds: number, options?: DurationOptions): string;
|
|
5092
|
-
declare function formatDurationInDays(milliseconds: number): string;
|
|
5093
|
-
|
|
5094
5091
|
declare const NULL_SENTINEL = "$@null((";
|
|
5095
5092
|
declare function flattenAttributes(obj: Record<string, unknown> | Array<unknown> | string | boolean | number | null | undefined, prefix?: string): Attributes;
|
|
5096
5093
|
declare function unflattenAttributes(obj: Attributes): Record<string, unknown> | string | number | boolean | null | undefined;
|
|
@@ -5151,7 +5148,7 @@ type IOPacket = {
|
|
|
5151
5148
|
declare function parsePacket(value: IOPacket): Promise<any>;
|
|
5152
5149
|
declare function stringifyIO(value: any): Promise<IOPacket>;
|
|
5153
5150
|
declare function conditionallyExportPacket(packet: IOPacket, pathPrefix: string, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
5154
|
-
declare function packetRequiresOffloading(packet: IOPacket): {
|
|
5151
|
+
declare function packetRequiresOffloading(packet: IOPacket, lengthLimit?: number): {
|
|
5155
5152
|
needsOffloading: boolean;
|
|
5156
5153
|
size: number;
|
|
5157
5154
|
};
|
|
@@ -5160,4 +5157,4 @@ declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataT
|
|
|
5160
5157
|
declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
|
|
5161
5158
|
declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
|
|
5162
5159
|
|
|
5163
|
-
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,
|
|
5160
|
+
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, groupTaskMetadataIssuesByTask, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logger, omit, packetRequiresOffloading, parseError, parsePacket, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, stringPatternMatchers, stringifyIO, taskCatalog, taskContext, unflattenAttributes };
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -11,10 +11,11 @@ import { B as BackgroundWorkerProperties } from '../messages-xJbR1Vai.js';
|
|
|
11
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-xJbR1Vai.js';
|
|
12
12
|
import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-Sb0sJcEt.js';
|
|
13
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-Sb0sJcEt.js';
|
|
14
|
-
|
|
14
|
+
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.js';
|
|
15
15
|
export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.js';
|
|
16
16
|
import '@opentelemetry/api-logs';
|
|
17
17
|
import '@opentelemetry/instrumentation';
|
|
18
|
+
import 'humanize-duration';
|
|
18
19
|
|
|
19
20
|
declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
|
|
20
21
|
url: z.ZodString;
|
|
@@ -2419,7 +2420,9 @@ declare const RunScheduleDetails: z.ZodObject<{
|
|
|
2419
2420
|
type RunScheduleDetails = z.infer<typeof RunScheduleDetails>;
|
|
2420
2421
|
declare const RetrieveRunResponse: z.ZodObject<{
|
|
2421
2422
|
payload: z.ZodOptional<z.ZodAny>;
|
|
2423
|
+
payloadPresignedUrl: z.ZodOptional<z.ZodString>;
|
|
2422
2424
|
output: z.ZodOptional<z.ZodAny>;
|
|
2425
|
+
outputPresignedUrl: z.ZodOptional<z.ZodString>;
|
|
2423
2426
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
2424
2427
|
id: z.ZodString;
|
|
2425
2428
|
externalId: z.ZodOptional<z.ZodString>;
|
|
@@ -2544,7 +2547,9 @@ declare const RetrieveRunResponse: z.ZodObject<{
|
|
|
2544
2547
|
isFailed: boolean;
|
|
2545
2548
|
isCancelled: boolean;
|
|
2546
2549
|
payload?: any;
|
|
2550
|
+
payloadPresignedUrl?: string | undefined;
|
|
2547
2551
|
output?: any;
|
|
2552
|
+
outputPresignedUrl?: string | undefined;
|
|
2548
2553
|
schedule?: {
|
|
2549
2554
|
id: string;
|
|
2550
2555
|
generator: {
|
|
@@ -2586,7 +2591,9 @@ declare const RetrieveRunResponse: z.ZodObject<{
|
|
|
2586
2591
|
isFailed: boolean;
|
|
2587
2592
|
isCancelled: boolean;
|
|
2588
2593
|
payload?: any;
|
|
2594
|
+
payloadPresignedUrl?: string | undefined;
|
|
2589
2595
|
output?: any;
|
|
2596
|
+
outputPresignedUrl?: string | undefined;
|
|
2590
2597
|
schedule?: {
|
|
2591
2598
|
id: string;
|
|
2592
2599
|
generator: {
|
|
@@ -4655,7 +4662,9 @@ declare class ApiClient {
|
|
|
4655
4662
|
isFailed: boolean;
|
|
4656
4663
|
isCancelled: boolean;
|
|
4657
4664
|
payload?: any;
|
|
4665
|
+
payloadPresignedUrl?: string | undefined;
|
|
4658
4666
|
output?: any;
|
|
4667
|
+
outputPresignedUrl?: string | undefined;
|
|
4659
4668
|
schedule?: {
|
|
4660
4669
|
id: string;
|
|
4661
4670
|
generator: {
|
|
@@ -5079,18 +5088,6 @@ declare class TaskCatalogAPI {
|
|
|
5079
5088
|
/** Entrypoint for runtime API */
|
|
5080
5089
|
declare const taskCatalog: TaskCatalogAPI;
|
|
5081
5090
|
|
|
5082
|
-
type DurationOptions = {
|
|
5083
|
-
style?: "long" | "short";
|
|
5084
|
-
maxDecimalPoints?: number;
|
|
5085
|
-
units?: Unit[];
|
|
5086
|
-
};
|
|
5087
|
-
declare function formatDuration(start?: Date | null, end?: Date | null, options?: DurationOptions): string;
|
|
5088
|
-
declare function nanosecondsToMilliseconds(nanoseconds: number): number;
|
|
5089
|
-
declare function millisecondsToNanoseconds(milliseconds: number): number;
|
|
5090
|
-
declare function formatDurationNanoseconds(nanoseconds: number, options?: DurationOptions): string;
|
|
5091
|
-
declare function formatDurationMilliseconds(milliseconds: number, options?: DurationOptions): string;
|
|
5092
|
-
declare function formatDurationInDays(milliseconds: number): string;
|
|
5093
|
-
|
|
5094
5091
|
declare const NULL_SENTINEL = "$@null((";
|
|
5095
5092
|
declare function flattenAttributes(obj: Record<string, unknown> | Array<unknown> | string | boolean | number | null | undefined, prefix?: string): Attributes;
|
|
5096
5093
|
declare function unflattenAttributes(obj: Attributes): Record<string, unknown> | string | number | boolean | null | undefined;
|
|
@@ -5151,7 +5148,7 @@ type IOPacket = {
|
|
|
5151
5148
|
declare function parsePacket(value: IOPacket): Promise<any>;
|
|
5152
5149
|
declare function stringifyIO(value: any): Promise<IOPacket>;
|
|
5153
5150
|
declare function conditionallyExportPacket(packet: IOPacket, pathPrefix: string, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
5154
|
-
declare function packetRequiresOffloading(packet: IOPacket): {
|
|
5151
|
+
declare function packetRequiresOffloading(packet: IOPacket, lengthLimit?: number): {
|
|
5155
5152
|
needsOffloading: boolean;
|
|
5156
5153
|
size: number;
|
|
5157
5154
|
};
|
|
@@ -5160,4 +5157,4 @@ declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataT
|
|
|
5160
5157
|
declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
|
|
5161
5158
|
declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
|
|
5162
5159
|
|
|
5163
|
-
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,
|
|
5160
|
+
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, groupTaskMetadataIssuesByTask, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logger, omit, packetRequiresOffloading, parseError, parsePacket, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, stringPatternMatchers, stringifyIO, taskCatalog, taskContext, unflattenAttributes };
|
package/dist/v3/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// package.json
|
|
36
|
-
var version = "3.0.0-beta.
|
|
36
|
+
var version = "3.0.0-beta.43";
|
|
37
37
|
var dependencies = {
|
|
38
38
|
"@google-cloud/precise-date": "^4.0.0",
|
|
39
39
|
"@opentelemetry/api": "^1.8.0",
|
|
@@ -948,7 +948,9 @@ var CommonRunFields = {
|
|
|
948
948
|
var RetrieveRunResponse = zod.z.object({
|
|
949
949
|
...CommonRunFields,
|
|
950
950
|
payload: zod.z.any().optional(),
|
|
951
|
+
payloadPresignedUrl: zod.z.string().optional(),
|
|
951
952
|
output: zod.z.any().optional(),
|
|
953
|
+
outputPresignedUrl: zod.z.string().optional(),
|
|
952
954
|
schedule: RunScheduleDetails.optional(),
|
|
953
955
|
attempts: zod.z.array(zod.z.object({
|
|
954
956
|
id: zod.z.string(),
|
|
@@ -4089,7 +4091,7 @@ async function conditionallyExportPacket(packet, pathPrefix, tracer) {
|
|
|
4089
4091
|
return packet;
|
|
4090
4092
|
}
|
|
4091
4093
|
__name(conditionallyExportPacket, "conditionallyExportPacket");
|
|
4092
|
-
function packetRequiresOffloading(packet) {
|
|
4094
|
+
function packetRequiresOffloading(packet, lengthLimit) {
|
|
4093
4095
|
if (!packet.data) {
|
|
4094
4096
|
return {
|
|
4095
4097
|
needsOffloading: false,
|
|
@@ -4098,7 +4100,7 @@ function packetRequiresOffloading(packet) {
|
|
|
4098
4100
|
}
|
|
4099
4101
|
const byteSize = Buffer.byteLength(packet.data, "utf8");
|
|
4100
4102
|
return {
|
|
4101
|
-
needsOffloading: byteSize >= OFFLOAD_IO_PACKET_LENGTH_LIMIT,
|
|
4103
|
+
needsOffloading: byteSize >= (lengthLimit ?? OFFLOAD_IO_PACKET_LENGTH_LIMIT),
|
|
4102
4104
|
size: byteSize
|
|
4103
4105
|
};
|
|
4104
4106
|
}
|