@trigger.dev/core 3.0.0-beta.32 → 3.0.0-beta.34

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.
@@ -163,6 +163,20 @@ type HandleErrorArgs = {
163
163
  retryDelayInMs?: number;
164
164
  };
165
165
  type HandleErrorFunction = (payload: any, error: unknown, params: HandleErrorArgs) => HandleErrorResult;
166
+ type ResolveEnvironmentVariablesOptions = {
167
+ variables: Record<string, string> | Array<{
168
+ name: string;
169
+ value: string;
170
+ }>;
171
+ override?: boolean;
172
+ };
173
+ type ResolveEnvironmentVariablesResult = ResolveEnvironmentVariablesOptions | Promise<void | undefined | ResolveEnvironmentVariablesOptions> | void | undefined;
174
+ type ResolveEnvironmentVariablesParams = {
175
+ projectRef: string;
176
+ environment: "dev" | "staging" | "prod";
177
+ env: Record<string, string>;
178
+ };
179
+ type ResolveEnvironmentVariablesFunction = (params: ResolveEnvironmentVariablesParams) => ResolveEnvironmentVariablesResult;
166
180
  type TaskMetadataWithFunctions = TaskMetadata & {
167
181
  fns: {
168
182
  run: (payload: any, params: RunFnParams<any>) => Promise<any>;
@@ -2493,4 +2507,4 @@ interface TaskCatalog {
2493
2507
  taskExists(id: string): boolean;
2494
2508
  }
2495
2509
 
2496
- export { type HandleErrorArgs as A, type HandleErrorFunction as B, type Clock as C, type RequireKeys as D, EnvironmentType as E, FixedWindowRateLimit as F, type ProjectConfig as G, type HandleErrorFnParams as H, type InitOutput as I, logLevels as J, type LogLevel as L, MachineCpu as M, OtelTaskLogger as O, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, type TaskLogger as T, WaitReason as W, type ClockTime as a, type TaskCatalog as b, type TaskMetadataWithFunctions as c, TaskFileMetadata as d, TaskMetadataWithFilePath as e, TriggerTracer as f, MachineMemory as g, Machine as h, TaskRunExecutionPayload as i, ProdTaskRunExecution as j, ProdTaskRunExecutionPayload as k, RateLimitOptions as l, TaskMetadata as m, PostStartCauses as n, PreStopCauses as o, Config as p, type ResolvedConfig as q, type RunFnParams as r, type MiddlewareFnParams as s, type InitFnParams as t, type StartFnParams as u, type Context as v, type SuccessFnParams as w, type FailureFnParams as x, type HandleErrorModificationOptions as y, type HandleErrorResult as z };
2510
+ export { type HandleErrorArgs as A, type HandleErrorFunction as B, type Clock as C, type ResolveEnvironmentVariablesResult as D, EnvironmentType as E, FixedWindowRateLimit as F, type ResolveEnvironmentVariablesParams as G, type HandleErrorFnParams as H, type InitOutput as I, type ResolveEnvironmentVariablesFunction as J, type RequireKeys as K, type LogLevel as L, MachineCpu as M, type ProjectConfig as N, OtelTaskLogger as O, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, type TaskLogger as T, logLevels as U, WaitReason as W, type ClockTime as a, type TaskCatalog as b, type TaskMetadataWithFunctions as c, TaskFileMetadata as d, TaskMetadataWithFilePath as e, TriggerTracer as f, MachineMemory as g, Machine as h, TaskRunExecutionPayload as i, ProdTaskRunExecution as j, ProdTaskRunExecutionPayload as k, RateLimitOptions as l, TaskMetadata as m, PostStartCauses as n, PreStopCauses as o, Config as p, type ResolvedConfig as q, type RunFnParams as r, type MiddlewareFnParams as s, type InitFnParams as t, type StartFnParams as u, type Context as v, type SuccessFnParams as w, type FailureFnParams as x, type HandleErrorModificationOptions as y, type HandleErrorResult as z };
@@ -163,6 +163,20 @@ type HandleErrorArgs = {
163
163
  retryDelayInMs?: number;
164
164
  };
165
165
  type HandleErrorFunction = (payload: any, error: unknown, params: HandleErrorArgs) => HandleErrorResult;
166
+ type ResolveEnvironmentVariablesOptions = {
167
+ variables: Record<string, string> | Array<{
168
+ name: string;
169
+ value: string;
170
+ }>;
171
+ override?: boolean;
172
+ };
173
+ type ResolveEnvironmentVariablesResult = ResolveEnvironmentVariablesOptions | Promise<void | undefined | ResolveEnvironmentVariablesOptions> | void | undefined;
174
+ type ResolveEnvironmentVariablesParams = {
175
+ projectRef: string;
176
+ environment: "dev" | "staging" | "prod";
177
+ env: Record<string, string>;
178
+ };
179
+ type ResolveEnvironmentVariablesFunction = (params: ResolveEnvironmentVariablesParams) => ResolveEnvironmentVariablesResult;
166
180
  type TaskMetadataWithFunctions = TaskMetadata & {
167
181
  fns: {
168
182
  run: (payload: any, params: RunFnParams<any>) => Promise<any>;
@@ -2493,4 +2507,4 @@ interface TaskCatalog {
2493
2507
  taskExists(id: string): boolean;
2494
2508
  }
2495
2509
 
2496
- export { type HandleErrorArgs as A, type HandleErrorFunction as B, type Clock as C, type RequireKeys as D, EnvironmentType as E, FixedWindowRateLimit as F, type ProjectConfig as G, type HandleErrorFnParams as H, type InitOutput as I, logLevels as J, type LogLevel as L, MachineCpu as M, OtelTaskLogger as O, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, type TaskLogger as T, WaitReason as W, type ClockTime as a, type TaskCatalog as b, type TaskMetadataWithFunctions as c, TaskFileMetadata as d, TaskMetadataWithFilePath as e, TriggerTracer as f, MachineMemory as g, Machine as h, TaskRunExecutionPayload as i, ProdTaskRunExecution as j, ProdTaskRunExecutionPayload as k, RateLimitOptions as l, TaskMetadata as m, PostStartCauses as n, PreStopCauses as o, Config as p, type ResolvedConfig as q, type RunFnParams as r, type MiddlewareFnParams as s, type InitFnParams as t, type StartFnParams as u, type Context as v, type SuccessFnParams as w, type FailureFnParams as x, type HandleErrorModificationOptions as y, type HandleErrorResult as z };
2510
+ export { type HandleErrorArgs as A, type HandleErrorFunction as B, type Clock as C, type ResolveEnvironmentVariablesResult as D, EnvironmentType as E, FixedWindowRateLimit as F, type ResolveEnvironmentVariablesParams as G, type HandleErrorFnParams as H, type InitOutput as I, type ResolveEnvironmentVariablesFunction as J, type RequireKeys as K, type LogLevel as L, MachineCpu as M, type ProjectConfig as N, OtelTaskLogger as O, type Prettify as P, QueueOptions as Q, RetryOptions as R, SlidingWindowRateLimit as S, type TaskLogger as T, logLevels as U, WaitReason as W, type ClockTime as a, type TaskCatalog as b, type TaskMetadataWithFunctions as c, TaskFileMetadata as d, TaskMetadataWithFilePath as e, TriggerTracer as f, MachineMemory as g, Machine as h, TaskRunExecutionPayload as i, ProdTaskRunExecution as j, ProdTaskRunExecutionPayload as k, RateLimitOptions as l, TaskMetadata as m, PostStartCauses as n, PreStopCauses as o, Config as p, type ResolvedConfig as q, type RunFnParams as r, type MiddlewareFnParams as s, type InitFnParams as t, type StartFnParams as u, type Context as v, type SuccessFnParams as w, type FailureFnParams as x, type HandleErrorModificationOptions as y, type HandleErrorResult as z };
package/dist/index.d.mts CHANGED
@@ -5713,6 +5713,17 @@ declare const RunJobAutoYieldWithCompletedTaskExecutionErrorSchema: z.ZodObject<
5713
5713
  output?: string | undefined;
5714
5714
  }>;
5715
5715
  type RunJobAutoYieldWithCompletedTaskExecutionError = z.infer<typeof RunJobAutoYieldWithCompletedTaskExecutionErrorSchema>;
5716
+ declare const RunJobAutoYieldRateLimitErrorSchema: z.ZodObject<{
5717
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
5718
+ reset: z.ZodNumber;
5719
+ }, "strip", z.ZodTypeAny, {
5720
+ status: "AUTO_YIELD_RATE_LIMIT";
5721
+ reset: number;
5722
+ }, {
5723
+ status: "AUTO_YIELD_RATE_LIMIT";
5724
+ reset: number;
5725
+ }>;
5726
+ type RunJobAutoYieldRateLimitError = z.infer<typeof RunJobAutoYieldRateLimitErrorSchema>;
5716
5727
  declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
5717
5728
  status: z.ZodLiteral<"INVALID_PAYLOAD">;
5718
5729
  errors: z.ZodArray<z.ZodObject<{
@@ -6518,6 +6529,15 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6518
6529
  }, {
6519
6530
  status: "YIELD_EXECUTION";
6520
6531
  key: string;
6532
+ }>, z.ZodObject<{
6533
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
6534
+ reset: z.ZodNumber;
6535
+ }, "strip", z.ZodTypeAny, {
6536
+ status: "AUTO_YIELD_RATE_LIMIT";
6537
+ reset: number;
6538
+ }, {
6539
+ status: "AUTO_YIELD_RATE_LIMIT";
6540
+ reset: number;
6521
6541
  }>, z.ZodObject<{
6522
6542
  status: z.ZodLiteral<"ERROR">;
6523
6543
  error: z.ZodObject<{
@@ -7663,6 +7683,15 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7663
7683
  }, {
7664
7684
  status: "YIELD_EXECUTION";
7665
7685
  key: string;
7686
+ }>, z.ZodObject<{
7687
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
7688
+ reset: z.ZodNumber;
7689
+ }, "strip", z.ZodTypeAny, {
7690
+ status: "AUTO_YIELD_RATE_LIMIT";
7691
+ reset: number;
7692
+ }, {
7693
+ status: "AUTO_YIELD_RATE_LIMIT";
7694
+ reset: number;
7666
7695
  }>, z.ZodObject<{
7667
7696
  status: z.ZodLiteral<"ERROR">;
7668
7697
  error: z.ZodObject<{
@@ -8685,6 +8714,9 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8685
8714
  imageUrl?: string[] | undefined;
8686
8715
  }[] | undefined;
8687
8716
  output?: string | undefined;
8717
+ } | {
8718
+ status: "AUTO_YIELD_RATE_LIMIT";
8719
+ reset: number;
8688
8720
  } | {
8689
8721
  status: "INVALID_PAYLOAD";
8690
8722
  errors: {
@@ -8919,6 +8951,9 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8919
8951
  imageUrl?: string[] | undefined;
8920
8952
  }[] | undefined;
8921
8953
  output?: string | undefined;
8954
+ } | {
8955
+ status: "AUTO_YIELD_RATE_LIMIT";
8956
+ reset: number;
8922
8957
  } | {
8923
8958
  status: "INVALID_PAYLOAD";
8924
8959
  errors: {
@@ -9146,6 +9181,15 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9146
9181
  }, {
9147
9182
  status: "YIELD_EXECUTION";
9148
9183
  key: string;
9184
+ }>, z.ZodObject<{
9185
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
9186
+ reset: z.ZodNumber;
9187
+ }, "strip", z.ZodTypeAny, {
9188
+ status: "AUTO_YIELD_RATE_LIMIT";
9189
+ reset: number;
9190
+ }, {
9191
+ status: "AUTO_YIELD_RATE_LIMIT";
9192
+ reset: number;
9149
9193
  }>, z.ZodObject<{
9150
9194
  status: z.ZodLiteral<"ERROR">;
9151
9195
  error: z.ZodObject<{
@@ -9853,6 +9897,15 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9853
9897
  }, {
9854
9898
  status: "YIELD_EXECUTION";
9855
9899
  key: string;
9900
+ }>, z.ZodObject<{
9901
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
9902
+ reset: z.ZodNumber;
9903
+ }, "strip", z.ZodTypeAny, {
9904
+ status: "AUTO_YIELD_RATE_LIMIT";
9905
+ reset: number;
9906
+ }, {
9907
+ status: "AUTO_YIELD_RATE_LIMIT";
9908
+ reset: number;
9856
9909
  }>, z.ZodObject<{
9857
9910
  status: z.ZodLiteral<"ERROR">;
9858
9911
  error: z.ZodObject<{
@@ -10875,6 +10928,9 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10875
10928
  imageUrl?: string[] | undefined;
10876
10929
  }[] | undefined;
10877
10930
  output?: string | undefined;
10931
+ } | {
10932
+ status: "AUTO_YIELD_RATE_LIMIT";
10933
+ reset: number;
10878
10934
  } | {
10879
10935
  status: "INVALID_PAYLOAD";
10880
10936
  errors: {
@@ -11109,6 +11165,9 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11109
11165
  imageUrl?: string[] | undefined;
11110
11166
  }[] | undefined;
11111
11167
  output?: string | undefined;
11168
+ } | {
11169
+ status: "AUTO_YIELD_RATE_LIMIT";
11170
+ reset: number;
11112
11171
  } | {
11113
11172
  status: "INVALID_PAYLOAD";
11114
11173
  errors: {
@@ -16657,4 +16716,4 @@ declare const PLATFORM_FEATURES: {
16657
16716
  };
16658
16717
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
16659
16718
 
16660
- export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, EventFilter, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, supportsFeature, urlWithSearchParams };
16719
+ export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, EventFilter, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldRateLimitError, RunJobAutoYieldRateLimitErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, supportsFeature, urlWithSearchParams };
package/dist/index.d.ts CHANGED
@@ -5713,6 +5713,17 @@ declare const RunJobAutoYieldWithCompletedTaskExecutionErrorSchema: z.ZodObject<
5713
5713
  output?: string | undefined;
5714
5714
  }>;
5715
5715
  type RunJobAutoYieldWithCompletedTaskExecutionError = z.infer<typeof RunJobAutoYieldWithCompletedTaskExecutionErrorSchema>;
5716
+ declare const RunJobAutoYieldRateLimitErrorSchema: z.ZodObject<{
5717
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
5718
+ reset: z.ZodNumber;
5719
+ }, "strip", z.ZodTypeAny, {
5720
+ status: "AUTO_YIELD_RATE_LIMIT";
5721
+ reset: number;
5722
+ }, {
5723
+ status: "AUTO_YIELD_RATE_LIMIT";
5724
+ reset: number;
5725
+ }>;
5726
+ type RunJobAutoYieldRateLimitError = z.infer<typeof RunJobAutoYieldRateLimitErrorSchema>;
5716
5727
  declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
5717
5728
  status: z.ZodLiteral<"INVALID_PAYLOAD">;
5718
5729
  errors: z.ZodArray<z.ZodObject<{
@@ -6518,6 +6529,15 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6518
6529
  }, {
6519
6530
  status: "YIELD_EXECUTION";
6520
6531
  key: string;
6532
+ }>, z.ZodObject<{
6533
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
6534
+ reset: z.ZodNumber;
6535
+ }, "strip", z.ZodTypeAny, {
6536
+ status: "AUTO_YIELD_RATE_LIMIT";
6537
+ reset: number;
6538
+ }, {
6539
+ status: "AUTO_YIELD_RATE_LIMIT";
6540
+ reset: number;
6521
6541
  }>, z.ZodObject<{
6522
6542
  status: z.ZodLiteral<"ERROR">;
6523
6543
  error: z.ZodObject<{
@@ -7663,6 +7683,15 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7663
7683
  }, {
7664
7684
  status: "YIELD_EXECUTION";
7665
7685
  key: string;
7686
+ }>, z.ZodObject<{
7687
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
7688
+ reset: z.ZodNumber;
7689
+ }, "strip", z.ZodTypeAny, {
7690
+ status: "AUTO_YIELD_RATE_LIMIT";
7691
+ reset: number;
7692
+ }, {
7693
+ status: "AUTO_YIELD_RATE_LIMIT";
7694
+ reset: number;
7666
7695
  }>, z.ZodObject<{
7667
7696
  status: z.ZodLiteral<"ERROR">;
7668
7697
  error: z.ZodObject<{
@@ -8685,6 +8714,9 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8685
8714
  imageUrl?: string[] | undefined;
8686
8715
  }[] | undefined;
8687
8716
  output?: string | undefined;
8717
+ } | {
8718
+ status: "AUTO_YIELD_RATE_LIMIT";
8719
+ reset: number;
8688
8720
  } | {
8689
8721
  status: "INVALID_PAYLOAD";
8690
8722
  errors: {
@@ -8919,6 +8951,9 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8919
8951
  imageUrl?: string[] | undefined;
8920
8952
  }[] | undefined;
8921
8953
  output?: string | undefined;
8954
+ } | {
8955
+ status: "AUTO_YIELD_RATE_LIMIT";
8956
+ reset: number;
8922
8957
  } | {
8923
8958
  status: "INVALID_PAYLOAD";
8924
8959
  errors: {
@@ -9146,6 +9181,15 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9146
9181
  }, {
9147
9182
  status: "YIELD_EXECUTION";
9148
9183
  key: string;
9184
+ }>, z.ZodObject<{
9185
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
9186
+ reset: z.ZodNumber;
9187
+ }, "strip", z.ZodTypeAny, {
9188
+ status: "AUTO_YIELD_RATE_LIMIT";
9189
+ reset: number;
9190
+ }, {
9191
+ status: "AUTO_YIELD_RATE_LIMIT";
9192
+ reset: number;
9149
9193
  }>, z.ZodObject<{
9150
9194
  status: z.ZodLiteral<"ERROR">;
9151
9195
  error: z.ZodObject<{
@@ -9853,6 +9897,15 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9853
9897
  }, {
9854
9898
  status: "YIELD_EXECUTION";
9855
9899
  key: string;
9900
+ }>, z.ZodObject<{
9901
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
9902
+ reset: z.ZodNumber;
9903
+ }, "strip", z.ZodTypeAny, {
9904
+ status: "AUTO_YIELD_RATE_LIMIT";
9905
+ reset: number;
9906
+ }, {
9907
+ status: "AUTO_YIELD_RATE_LIMIT";
9908
+ reset: number;
9856
9909
  }>, z.ZodObject<{
9857
9910
  status: z.ZodLiteral<"ERROR">;
9858
9911
  error: z.ZodObject<{
@@ -10875,6 +10928,9 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10875
10928
  imageUrl?: string[] | undefined;
10876
10929
  }[] | undefined;
10877
10930
  output?: string | undefined;
10931
+ } | {
10932
+ status: "AUTO_YIELD_RATE_LIMIT";
10933
+ reset: number;
10878
10934
  } | {
10879
10935
  status: "INVALID_PAYLOAD";
10880
10936
  errors: {
@@ -11109,6 +11165,9 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11109
11165
  imageUrl?: string[] | undefined;
11110
11166
  }[] | undefined;
11111
11167
  output?: string | undefined;
11168
+ } | {
11169
+ status: "AUTO_YIELD_RATE_LIMIT";
11170
+ reset: number;
11112
11171
  } | {
11113
11172
  status: "INVALID_PAYLOAD";
11114
11173
  errors: {
@@ -16657,4 +16716,4 @@ declare const PLATFORM_FEATURES: {
16657
16716
  };
16658
16717
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
16659
16718
 
16660
- export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, EventFilter, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, supportsFeature, urlWithSearchParams };
16719
+ export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, EventFilter, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldRateLimitError, RunJobAutoYieldRateLimitErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, supportsFeature, urlWithSearchParams };
package/dist/index.js CHANGED
@@ -970,6 +970,10 @@ var RunJobAutoYieldWithCompletedTaskExecutionErrorSchema = zod.z.object({
970
970
  output: zod.z.string().optional(),
971
971
  data: AutoYieldMetadataSchema
972
972
  });
973
+ var RunJobAutoYieldRateLimitErrorSchema = zod.z.object({
974
+ status: zod.z.literal("AUTO_YIELD_RATE_LIMIT"),
975
+ reset: zod.z.coerce.number()
976
+ });
973
977
  var RunJobInvalidPayloadErrorSchema = zod.z.object({
974
978
  status: zod.z.literal("INVALID_PAYLOAD"),
975
979
  errors: zod.z.array(SchemaErrorSchema)
@@ -1003,6 +1007,7 @@ var RunJobErrorResponseSchema = zod.z.union([
1003
1007
  RunJobAutoYieldExecutionErrorSchema,
1004
1008
  RunJobAutoYieldWithCompletedTaskExecutionErrorSchema,
1005
1009
  RunJobYieldExecutionErrorSchema,
1010
+ RunJobAutoYieldRateLimitErrorSchema,
1006
1011
  RunJobErrorSchema,
1007
1012
  RunJobUnresolvedAuthErrorSchema,
1008
1013
  RunJobInvalidPayloadErrorSchema,
@@ -1019,6 +1024,7 @@ var RunJobResponseSchema = zod.z.discriminatedUnion("status", [
1019
1024
  RunJobAutoYieldExecutionErrorSchema,
1020
1025
  RunJobAutoYieldWithCompletedTaskExecutionErrorSchema,
1021
1026
  RunJobYieldExecutionErrorSchema,
1027
+ RunJobAutoYieldRateLimitErrorSchema,
1022
1028
  RunJobErrorSchema,
1023
1029
  RunJobUnresolvedAuthErrorSchema,
1024
1030
  RunJobInvalidPayloadErrorSchema,
@@ -1971,6 +1977,7 @@ exports.RequestWithRawBodySchema = RequestWithRawBodySchema;
1971
1977
  exports.ResponseFilterSchema = ResponseFilterSchema;
1972
1978
  exports.RetryOptionsSchema = RetryOptionsSchema;
1973
1979
  exports.RunJobAutoYieldExecutionErrorSchema = RunJobAutoYieldExecutionErrorSchema;
1980
+ exports.RunJobAutoYieldRateLimitErrorSchema = RunJobAutoYieldRateLimitErrorSchema;
1974
1981
  exports.RunJobAutoYieldWithCompletedTaskExecutionErrorSchema = RunJobAutoYieldWithCompletedTaskExecutionErrorSchema;
1975
1982
  exports.RunJobBodySchema = RunJobBodySchema;
1976
1983
  exports.RunJobCanceledWithTaskSchema = RunJobCanceledWithTaskSchema;